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 termA test changed in the same commit
It sits next to the fix. We did not run it.
- toastmanAu/daowow:
apps/web/test/model-timeline.test.js
- 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)
- 2026-11-13 · toastmanAu/daowow · more from this project
More about Apps and UI
- Saving local state after the first step of a multi-step flow
- Exact CKB-to-shannon conversion with BigInt
- Lock-based fallback when a stored out point goes stale
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.