Repository navigation
docs(prl): correct the epoch length, the unstaking cooldown and the chain count - #28
Merged
Merged
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Nexarion434
approved these changes
Sep 24, 2026
Nexarion434
left a comment
Collaborator
There was a problem hiding this comment.
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
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
RewardMerkleDistributorenforcesEPOCH_LENGTH = 28 daysonly 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
timeLockDurationof the sPRL1 and sPRL2 contracts. Read on 23 September 2026 viaeth_call 0xff96df44againstethereum-rpc.publicnode.comandbase-rpc.publicnode.com:timeLockDuration()0xeAd729472f82E5eC2FF4e691d67633077C1B59012419200(28 days)0xa13BFA24b189271Ac00b148BE565D609AC847A4B2419200(28 days)0x01fA35fDE0E813e2D6687660a74A313d8D922E482419200(28 days)0xB22f5eDbc62adCC093307025B8fdf75a0aa00e242419200(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.tsis 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 theEPOCH_LENGTHnote 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.mdxandgovernance/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 andllms-full.txtgenerated "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 itsPeripheral<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 intests/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 buildpasses — 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 theorigin/mainbaseline measured in a clean worktree. No new errors.30 day/30-daystring survives in any HTML, markdown export orllms-full.txt), and no "9 chains" anywhere.stake-prlFAQ structured data matches the visible text — both render from the sameitemsprop; verified in the builtFAQPageJSON-LD.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