Skip to content

docs(prl): correct the epoch length, the unstaking cooldown and the chain count - #28

Merged
Nexarion434 merged 1 commit into
mainfrom
docs/prl-epoch-cooldown-chains
Sep 24, 2026
Merged

Nexarion434 merged 1 commit into
mainfrom
docs/prl-epoch-cooldown-chains

Conversation

@JeanBrasse

Copy link
Copy Markdown
Contributor

Three PRL facts were wrong across the docs. Two of them were wrong in a way that compounds: the epoch and the unstaking cooldown were described as the same 30-day period, so fixing either one alone would have left the pages contradicting each other.

The facts

1. An epoch is one calendar month — 28, 29, 30 or 31 days depending on the month. It is not "30 days". The on-chain RewardMerkleDistributor enforces EPOCH_LENGTH = 28 days only as a minimum window between epochs, which every calendar month satisfies. Epochs set the ParaBoost calculation window and the fee-distribution schedule.

2. The unstaking cooldown is a separate, fixed 28 days — not "1 epoch". It is the timeLockDuration of the sPRL1 and sPRL2 contracts. Read on 23 September 2026 via eth_call 0xff96df44 against ethereum-rpc.publicnode.com and base-rpc.publicnode.com:

Contract Chain Address timeLockDuration()
sPRL1 Ethereum 0xeAd729472f82E5eC2FF4e691d67633077C1B5901 2419200 (28 days)
sPRL2 v2 Ethereum 0xa13BFA24b189271Ac00b148BE565D609AC847A4B 2419200 (28 days)
sPRL1 Base 0x01fA35fDE0E813e2D6687660a74A313d8D922E48 2419200 (28 days)
sPRL2 Base 0xB22f5eDbc62adCC093307025B8fdf75a0aa00e24 2419200 (28 days)

All four returned 0x24ea00 = 2,419,200 s = exactly 28 days. The value is governance-settable within a 1 to 365 day range, so the epoch concept page now says where the number lives and that it can change, rather than presenting 28 as immutable.

3. The PRL token is on 6 chains: Ethereum, Base, Arbitrum, Optimism, Polygon and Sonic. src/data/prl-addresses.ts is correct and unchanged — it lists nine chains because Avalanche and HyperEVM carry only PRL tokenomics contracts (ParallelAccessManager + SideChainFeeDistributor) and Fantom only a deprecated migration contract. The prose calling that "9 chains" is what was wrong.

Per-file changes

Epoch → one calendar month

  • governance/.../tokenomics/epoch-concept.mdx — canonical definition rewritten; adds the EPOCH_LENGTH note and an info block stating the cooldown is not an epoch.
  • resources/factsheets/prl.mdx — Epochs row; "each 30-day epoch" → "each monthly epoch".
  • resources/user-guides.mdx, resources/user-guides/stake-prl.mdx — descriptions and the "Epochs and ParaBoost" definition.

Cooldown → a separate, fixed 28 days

  • governance/.../tokenomics/staking-mechanisms.mdx and governance/sprl.mdx — these two carry near-identical text; both updated (3–4 occurrences each).
  • resources/user-guides/stake-prl.mdx — comparison table, the unstake step, the early-exit warning, and three FAQ entries. The "How long is an epoch?" question is rewritten to answer both halves, since the old answer folded the cooldown into the epoch.
  • security/risks.mdx — risk table, section 7 and the FAQ.
  • products/parallel-v3/fees.mdx — "the one-epoch cooldown" in the fee table.

The early-exit penalty wording (50%, decaying linearly) is unchanged and now reads consistently against a 28-day cooldown.

PRL chains → 6

  • developers-hub/contract-addresses/parallel-v3/index.mdx — "9 chains that carry it" → 6.
  • developers-hub/contract-addresses/parallel-v3/prl/index.mdx — the description was wrong twice (the count, and naming Avalanche and HyperEVM as chains carrying the token). Rewritten, plus a body paragraph naming the 6 chains and explaining what else the page lists.
  • resources/factsheets/prl.mdx — the Chains row now leads with the 6 token chains.

scripts/md-components.ts — the markdown exports and llms-full.txt generated "PRL is deployed on 9 chains: …" from the number of keys in the address book, so the wrong claim would have survived in the answer-engine surfaces even with every page fixed. It now counts only chains holding the canonical token or its Peripheral<TOKEN> OFT, and names the remainder in a second sentence. A book whose token entries it cannot recognise falls back to the previous behaviour. Two tests added in tests/mdComponents.test.ts.

USDp is unaffected: all 24 of its address-book chains carry the token, so its sentence is byte-identical before and after.

Verification

  • pnpm build passes — 333 files, 163 pages, sitemap and JSON-LD emitted as usual.
  • pnpm test: 338 passed (31 files), including the 2 new ones.
  • pnpm lint: 88 errors, 1 warning — identical to the origin/main baseline measured in a clean worktree. No new errors.
  • Build output swept: no PRL epoch or cooldown described as 30 days anywhere (no 30 day/30-day string survives in any HTML, markdown export or llms-full.txt), and no "9 chains" anywhere.
  • stake-prl FAQ structured data matches the visible text — both render from the same items prop; verified in the built FAQPage JSON-LD.
  • Not touched, as intended: src/data/*, security/insurance-fund.mdx, security/risks.mdx:91, the MIMO→PRL migration pages, the Sonic wind-down sentences, and the files in docs(usdp): state the deployed chain counts and deprecate the Sonic data sources #27.

🤖 Generated with Claude Code

…hain count

Three facts about PRL were wrong across the docs, and they were wrong in
ways that compound: the epoch and the cooldown were described as the same
30-day period, so correcting one without the other would have left the
pages contradicting each other.

An epoch is one calendar month, not 30 days, so it runs 28, 29, 30 or 31
days depending on the month. The on-chain RewardMerkleDistributor sets
EPOCH_LENGTH = 28 days as a minimum window between epochs, which every
calendar month satisfies.

The unstaking cooldown is a separate, fixed 28 days, not "1 epoch". It is
the timeLockDuration of the sPRL1 and sPRL2 contracts, read as 2,419,200 s
on 23 September 2026 on all four live deployments:

  sPRL1    Ethereum  0xeAd729472f82E5eC2FF4e691d67633077C1B5901
  sPRL2 v2 Ethereum  0xa13BFA24b189271Ac00b148BE565D609AC847A4B
  sPRL1    Base      0x01fA35fDE0E813e2D6687660a74A313d8D922E48
  sPRL2    Base      0xB22f5eDbc62adCC093307025B8fdf75a0aa00e24

The value is governance-settable within a 1 to 365 day range, which the
epoch concept page now states so the number can be re-checked rather than
trusted.

The PRL token is on 6 chains: Ethereum, Base, Arbitrum, Optimism, Polygon
and Sonic. src/data/prl-addresses.ts is correct and untouched; it lists
nine chains because Avalanche and HyperEVM carry only PRL tokenomics
contracts and Fantom only a deprecated migration contract. The prose
calling that "9 chains" was what needed fixing.

scripts/md-components.ts generated the same wrong claim into the markdown
exports and llms-full.txt, from the number of keys in the address book.
It now counts only the chains holding the canonical token or its
Peripheral<TOKEN> OFT and names the rest separately. USDp is unaffected:
all 24 of its chains carry the token, so its sentence is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-parallel Ready Ready Preview Sep 22, 2026 9:13pm UTC
parallel-docs Ready Ready Preview Sep 22, 2026 9:13pm UTC

@Nexarion434 Nexarion434 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: matches the description. Epoch = calendar month, cooldown = fixed 28 days (re-read on-chain: timeLockDuration() = 2,419,200 s on all four sPRL contracts), PRL on 6 chains; tests pass (338).


Generated by Claude Code

@Nexarion434
Nexarion434 merged commit fda4e28 into main Sep 24, 2026
3 checks passed

This branch was successfully deployed

2 active deployments
Preview – docs-parallel — 76d004f8 Deployed Sep 22, 2026 by vercel[bot]
Preview – parallel-docs — 76d004f8 Deployed Sep 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants