CKB Pulse

All lessons · Apps and UI · Start here · Glossary

Nervos DAO hold time with term-locked withdrawalsWorkingFrom one fix

From one fix · Check: partly right · Checked 2026-11-19

The Nervos DAO pays out phase 2 only at a whole number of 180-epoch cycles counted from the deposit epoch D, so a withdrawal started after D + 180×n matures at D + 180×(n+1). If a lock refuses phase 1 until a term of n cycles has passed, then in practice the funds are held (n + 1) × 180 epochs, not n × 180, and interest stops at the phase 1 block. Only a phase 1 that lands exactly in the boundary epoch fraction avoids the extra cycle.

Why it matters: Without it the app tells users a one-term deposit is held about 30 days when it is really about 60, and the last cycle earns no interest.

Pattern

termMs = daoTermPeriods * 180 * EPOCH_MS  →  (daoTermPeriods + 1) * 180 * EPOCH_MS when the withdrawal can only be started after the term

A test changed in the same commit

It sits next to the fix. We did not run it.

Concepts
Since and time locks, Other
Evidence
From one fix: from one project, checked against its commit
First seen
2026-11-13
Last changed
2026-11-13
Last checked
2026-11-19
Check against the commit
partly right: a true core, with a part that is loose or too wide

Sources (1)

More about Apps and UI

All 9 in this topic

Do you maintain a project this lesson came from? Confirm or correct it

Cite this lesson
LusoCryptoLabs, "Nervos DAO hold time with term-locked withdrawals", CKB lessons, https://pulse.lusocryptolabs.com/learned/apps/nervos-dao-hold-time-with-term-locked-withdrawals, CC BY 4.0, last changed 2026-11-13.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.