From 76d004f875740b6f1e7994c58295df6982a5678f Mon Sep 17 00:00:00 2001 From: Noah Boisserie <51783223+JeanBrasse@users.noreply.github.com> Date: Wed, 23 Sep 2026 01:12:17 +0400 Subject: [PATCH] docs(prl): correct the epoch length, the unstaking cooldown and the chain 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 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 --- scripts/md-components.ts | 40 ++++++++++++++++--- .../contract-addresses/parallel-v3/index.mdx | 2 +- .../parallel-v3/prl/index.mdx | 4 +- .../tokenomics/epoch-concept.mdx | 14 +++++-- .../tokenomics/staking-mechanisms.mdx | 8 ++-- src/pages/governance/sprl.mdx | 6 +-- src/pages/products/parallel-v3/fees.mdx | 2 +- src/pages/resources/factsheets/prl.mdx | 8 ++-- src/pages/resources/user-guides.mdx | 2 +- src/pages/resources/user-guides/stake-prl.mdx | 18 ++++----- src/pages/security/risks.mdx | 6 +-- tests/mdComponents.test.ts | 28 +++++++++++++ 12 files changed, 102 insertions(+), 36 deletions(-) diff --git a/scripts/md-components.ts b/scripts/md-components.ts index 90a1bef..00bcd02 100644 --- a/scripts/md-components.ts +++ b/scripts/md-components.ts @@ -32,14 +32,44 @@ function markdownTable(header: string[], rows: string[][]): string { ].join("\n"); } +/** + * The chains that carry the token itself, which is not the same as the chains + * the address book lists. PRL's book covers nine, but Avalanche and HyperEVM + * hold only tokenomics contracts and Fantom only a deprecated migration + * contract, so "PRL is deployed on 9 chains" reads as false to anyone + * checking. A chain counts when it holds the canonical token or its + * `Peripheral` OFT; every USDp chain does, so USDp is unaffected. + */ +function tokenChains(stablecoin: string, book: AddressBook): string[] { + const tokenNames = new Set([stablecoin.toLowerCase(), `peripheral${stablecoin.toLowerCase()}`]); + return Object.keys(book) + .filter((chain) => + book[chain].some((entry) => { + const name = entry.name.toLowerCase(); + return tokenNames.has(name) && !name.includes("deprecated"); + }), + ) + .sort(); +} + /** Renders one address book as a section per chain, module headings preserved. */ export function renderAddressBook(stablecoin: string, book: AddressBook): string { const chains = Object.keys(book).sort(); - const out: string[] = [ - `${stablecoin} is deployed on ${chains.length} chain${chains.length > 1 ? "s" : ""}: ` + - `${chains.map(chainLabel).join(", ")}.`, - "", - ]; + // A book whose token entries we cannot recognise falls back to listing every + // chain, so an unknown naming convention degrades to the old sentence rather + // than claiming the token is deployed nowhere. + const carrying = tokenChains(stablecoin, book); + const listed = carrying.length > 0 ? carrying : chains; + const others = chains.filter((chain) => !listed.includes(chain)); + let lead = + `${stablecoin} is deployed on ${listed.length} chain${listed.length > 1 ? "s" : ""}: ` + + `${listed.map(chainLabel).join(", ")}.`; + if (others.length > 0) { + lead += + ` This page also lists ${stablecoin}-related contracts on ` + + `${others.map(chainLabel).join(", ")}, which do not carry the token.`; + } + const out: string[] = [lead, ""]; for (const chain of chains) { out.push(`### ${chainLabel(chain)}`, ""); out.push( diff --git a/src/pages/developers-hub/contract-addresses/parallel-v3/index.mdx b/src/pages/developers-hub/contract-addresses/parallel-v3/index.mdx index c2e9875..ab13163 100644 --- a/src/pages/developers-hub/contract-addresses/parallel-v3/index.mdx +++ b/src/pages/developers-hub/contract-addresses/parallel-v3/index.mdx @@ -1,6 +1,6 @@ --- title: Parallel V3 — Contract Addresses -description: "Contract addresses for Parallel V3, split by token: USDp and sUSDp across 24 chains, and the PRL governance token across the 9 chains that carry it." +description: "Contract addresses for Parallel V3, split by token: USDp and sUSDp across 24 chains, and the PRL governance token across the 6 chains that carry it." subtitle: List of Parallel V3 contract addresses --- diff --git a/src/pages/developers-hub/contract-addresses/parallel-v3/prl/index.mdx b/src/pages/developers-hub/contract-addresses/parallel-v3/prl/index.mdx index 5c1b323..830dd29 100644 --- a/src/pages/developers-hub/contract-addresses/parallel-v3/prl/index.mdx +++ b/src/pages/developers-hub/contract-addresses/parallel-v3/prl/index.mdx @@ -1,6 +1,6 @@ --- title: PRL Contract Addresses -description: Deployed PRL governance token contract addresses across the 9 chains that carry it, including Ethereum, Base, Avalanche and HyperEVM. +description: Deployed PRL contract addresses. The PRL governance token is on 6 chains (Ethereum, Base, Arbitrum, Optimism, Polygon and Sonic); this page also lists PRL tokenomics contracts on Avalanche and HyperEVM and a deprecated migration contract on Fantom. --- import { ContractAddressesPage } from '@/components/ContractAddressesPage'; @@ -8,6 +8,8 @@ import { PRL_ADDRESSES } from '@/data/prl-addresses'; # PRL Contract Addresses +The PRL governance token is deployed on 6 chains: Ethereum, where the canonical ERC-20 lives, and Base, Arbitrum, Optimism, Polygon PoS and Sonic, which each hold a `PeripheralPRL` OFT. This page also lists PRL tokenomics contracts on Avalanche and HyperEVM, and a deprecated migration contract on Fantom; none of those three carries the token itself. + For a one-page summary of key facts, contracts and integration links, see the [PRL factsheet](/resources/factsheets/prl). diff --git a/src/pages/governance/parallel-governance-token-prl/tokenomics/epoch-concept.mdx b/src/pages/governance/parallel-governance-token-prl/tokenomics/epoch-concept.mdx index a695c0f..e8359f4 100644 --- a/src/pages/governance/parallel-governance-token-prl/tokenomics/epoch-concept.mdx +++ b/src/pages/governance/parallel-governance-token-prl/tokenomics/epoch-concept.mdx @@ -1,12 +1,18 @@ --- title: Epoch Concept description: >- - An epoch is the 30-day unit of time in Parallel tokenomics, setting the - ParaBoost calculation window, the sPRL unstaking cooldown and the fee sharing - schedule. + An epoch is one calendar month in Parallel tokenomics, setting the ParaBoost + calculation window and the fee sharing schedule. The sPRL unstaking cooldown + is a separate, fixed 28 days. subtitle: Understanding the Epoch Concept --- # Epoch Concept -The epoch will serve as the central unit of time in the new tokenomics. An epoch consists of a number of 30 days. It will be used to determine the [ParaBoost](/governance/parallel-governance-token-prl/tokenomics/paraboost) calculation period, the duration of the cooldown during unstaking sPRL1 and sPRL2 and to manage the [fee sharing](/governance/parallel-governance-token-prl/tokenomics/fee-distribution) distribution to sPRL1 and sPRL2 holders. +The epoch is the central unit of time in the tokenomics. An epoch is one calendar month, so it lasts 28, 29, 30 or 31 days depending on the month. It is used to determine the [ParaBoost](/governance/parallel-governance-token-prl/tokenomics/paraboost) calculation period and to manage the [fee sharing](/governance/parallel-governance-token-prl/tokenomics/fee-distribution) distribution to sPRL1 and sPRL2 holders. + +On-chain, the `RewardMerkleDistributor` enforces an `EPOCH_LENGTH` of 28 days as the minimum window between two epochs, which every calendar month satisfies. + +:::info +The cooldown applied when unstaking sPRL1 and sPRL2 is **not** one epoch. It is a separate, fixed period of 28 days, held per staking contract as `timeLockDuration` and changeable by governance within a 1 to 365 day range. See [Staking Mechanisms](/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms). +::: diff --git a/src/pages/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms.mdx b/src/pages/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms.mdx index 8e247b5..0e5823b 100644 --- a/src/pages/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms.mdx +++ b/src/pages/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms.mdx @@ -2,7 +2,7 @@ title: Staking Mechanisms description: >- PRL can be staked two ways: sPRL1 for single-sided staking, and sPRL2 for the - PRL/wETH 80/20 Balancer pool token. Both unstake against an epoch-long + PRL/wETH 80/20 Balancer pool token. Both unstake against a 28-day cooldown. subtitle: Understanding Staking Mechanisms --- @@ -21,13 +21,13 @@ The PRL staking modules can be deployed on several blockchains at once.

Staking Mechanisms Summary

-It is possible for sPRL1 and sPRL2 to initiate unstaking at any time, against a cooldown period of 1 epoch. However, they are able to bypass the vesting period by paying a penalty fee, starting at 50% and decreasing linearly over time. The penalty fee is taken from the amount of sPRL1 or sPRL2 being unstaked and is sent to the DAO Treasury. +It is possible for sPRL1 and sPRL2 to initiate unstaking at any time, against a cooldown period of 28 days. However, they are able to bypass the vesting period by paying a penalty fee, starting at 50% and decreasing linearly over time. The penalty fee is taken from the amount of sPRL1 or sPRL2 being unstaked and is sent to the DAO Treasury.

Penalty Fee Over Time

### sPRL1: Single PRL Staking -A basic single-sided staking for users who do not want to take an impermanent loss from tokens in liquidity pools. Each PRL staked as sPRL1 will count as x1 voting power, with a 1 epoch unstaking cooldown. +A basic single-sided staking for users who do not want to take an impermanent loss from tokens in liquidity pools. Each PRL staked as sPRL1 will count as x1 voting power, with a 28-day unstaking cooldown. sPRL1 is currently deployed on: @@ -44,7 +44,7 @@ sPRL1 can technically be deployed on more chains in the future, conditioned to t A PRL/wETH 80/20 Balancer Pool Token staking for users who want to get the maximum voting power. The staked LP as sPRL2 is itself staked on Aura under the hood, with rewards in \$BAL and \$AURA automatically sent to the DAO treasury. -As these stakers help Parallel increase the PRL liquidity a x2.5 boost on the equivalent value of PRL tokens staked (in \$) is applied. This boost ise applied for ParaBoost. sPRL2 holders are able to unstake their BPT tokens against a 1 epoch unstaking cooldown. +As these stakers help Parallel increase the PRL liquidity a x2.5 boost on the equivalent value of PRL tokens staked (in \$) is applied. This boost ise applied for ParaBoost. sPRL2 holders are able to unstake their BPT tokens against a 28-day unstaking cooldown. sPRL2 is currently deployed on: diff --git a/src/pages/governance/sprl.mdx b/src/pages/governance/sprl.mdx index 5a2a881..7bb37db 100644 --- a/src/pages/governance/sprl.mdx +++ b/src/pages/governance/sprl.mdx @@ -16,13 +16,13 @@ sPRL1 & sPRL2 are represented in form of tokens and will be freely transferable,

Staking Mechanisms Summary

-It is possible for sPRL1 and sPRL2 to initiate unstaking at any time, against a cooldown period of 1 epoch. However, they are able to bypass the vesting period by paying a penalty fee, starting at 50% and decreasing linearly over time. The penalty fee is taken from the amount of sPRL1 or sPRL2 being unstaked and is sent to the DAO Treasury. +It is possible for sPRL1 and sPRL2 to initiate unstaking at any time, against a cooldown period of 28 days. However, they are able to bypass the vesting period by paying a penalty fee, starting at 50% and decreasing linearly over time. The penalty fee is taken from the amount of sPRL1 or sPRL2 being unstaked and is sent to the DAO Treasury.

Penalty Fee Over Time

### sPRL1: Single PRL Staking -A basic single-sided staking for users who do not want to take an impermanent loss from tokens in liquidity pools. Each PRL staked as sPRL1 will count as x1 voting power, with a 1 epoch unstaking cooldown. +A basic single-sided staking for users who do not want to take an impermanent loss from tokens in liquidity pools. Each PRL staked as sPRL1 will count as x1 voting power, with a 28-day unstaking cooldown. sPRL1 is currently deployed on: @@ -35,7 +35,7 @@ sPRL1 is currently deployed on: A PRL/wETH 80/20 Balancer Pool Token staking for users who want to get the maximum voting power. The staked LP as sPRL2 is itself staked on Aura under the hood, with rewards in \$BAL and \$AURA automatically sent to the DAO treasury. -As these stakers help Parallel increase the PRL liquidity a x2.5 boost on the equivalent value of PRL tokens staked (in \$) is applied. This boost ise applied for ParaBoost. sPRL2 holders are able to unstake their BPT tokens against a 1 epoch unstaking cooldown. +As these stakers help Parallel increase the PRL liquidity a x2.5 boost on the equivalent value of PRL tokens staked (in \$) is applied. This boost ise applied for ParaBoost. sPRL2 holders are able to unstake their BPT tokens against a 28-day unstaking cooldown. sPRL2 is currently deployed on: diff --git a/src/pages/products/parallel-v3/fees.mdx b/src/pages/products/parallel-v3/fees.mdx index ddbc56e..2d67ef7 100644 --- a/src/pages/products/parallel-v3/fees.mdx +++ b/src/pages/products/parallel-v3/fees.mdx @@ -20,7 +20,7 @@ Parallel charges very little today, but none of its fees are hard-coded. Mint an | Bridge USDp | 0.00% protocol fee | You pay the LayerZero native gas fee on the source chain. Delivery takes around 10 minutes. | The LayerZero network (verifiers and executors), not Parallel | | Flashloan | 0.00% | Up to 100,000 per transaction on each chain. | Fee collector, when a fee is set | | sUSDp deposit or withdraw | None | ERC-4626 vault, no slippage, yield accrues from the first block. | Not applicable | -| PRL staking | No fee to stake, or to unstake after the cooldown | Skipping the one-epoch cooldown costs a penalty that starts at 50% and decreases linearly. See [Staking Mechanisms](/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms). | DAO Treasury (penalty only) | +| PRL staking | No fee to stake, or to unstake after the cooldown | Skipping the 28-day cooldown costs a penalty that starts at 50% and decreases linearly. See [Staking Mechanisms](/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms). | DAO Treasury (penalty only) | | x402 facilitator | No platform fee | Gas is sponsored on Base, HyperEVM and Avalanche only; Ethereum is supported but the agent pays its own gas. Agents pay in USDp, USDC or sUSDp, and funds settle straight to the merchant's wallet. See [x402 concepts](/agents/x402/concepts). | Not applicable | ## Minting and burning diff --git a/src/pages/resources/factsheets/prl.mdx b/src/pages/resources/factsheets/prl.mdx index 316295a..bbd32fd 100644 --- a/src/pages/resources/factsheets/prl.mdx +++ b/src/pages/resources/factsheets/prl.mdx @@ -25,9 +25,9 @@ PRL is the governance token of the Parallel Protocol. It replaced MIMO, and stak | Total supply | 1,000,000,000 PRL, fixed. No mint, pause or admin function on the token | | Decimals | 18 | | Canonical contract (Ethereum) | [0x6c0aeceeDc55c9d55d8B99216a670D85330941c3](https://etherscan.io/address/0x6c0aeceeDc55c9d55d8B99216a670D85330941c3) | -| Chains | 9 chain deployments in the [PRL contract addresses](/developers-hub/contract-addresses/parallel-v3/prl): Ethereum, Base, Arbitrum, Optimism, Polygon, Sonic (token contract), plus Avalanche, HyperEVM (fee distributors only) and Fantom (deprecated migration contract) | -| Staking | sPRL1 (single-sided PRL) and sPRL2 (80/20 PRL/wETH Balancer pool staked on Aura). See [Staking Mechanisms](/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms) | -| Epochs | 30 days. Unstaking has a 1-epoch cooldown; leaving early costs a penalty that starts at 50% and decays linearly. See [Epoch Concept](/governance/parallel-governance-token-prl/tokenomics/epoch-concept) | +| Chains | The token is on 6 chains: Ethereum, Base, Arbitrum, Optimism, Polygon and Sonic. The [PRL contract addresses](/developers-hub/contract-addresses/parallel-v3/prl) page also lists PRL tokenomics contracts on Avalanche and HyperEVM, and a deprecated migration contract on Fantom, none of which carry the token | +| Staking | sPRL1 (single-sided PRL) and sPRL2 (80/20 PRL/wETH Balancer pool staked on Aura). Unstaking has a separate, fixed 28-day cooldown; leaving early costs a penalty that starts at 50% and decays linearly. See [Staking Mechanisms](/governance/parallel-governance-token-prl/tokenomics/staking-mechanisms) | +| Epochs | One calendar month (28 to 31 days). Epochs set the ParaBoost window and the fee distribution schedule. See [Epoch Concept](/governance/parallel-governance-token-prl/tokenomics/epoch-concept) | | Fee share | sPRL1 and sPRL2 holders receive a share of protocol fees each epoch, weighted by ParaBoost, claimable for 12 epochs. See [Fee Distribution](/governance/parallel-governance-token-prl/tokenomics/fee-distribution) and [Fees](/products/parallel-v3/fees) | | Governance role | sPRL1 and sPRL2 carry voting power, weighted by the previous epoch's [ParaBoost](/governance/parallel-governance-token-prl/tokenomics/paraboost). See [sPRL and Voting Power](/governance/sprl) | | Issuance | Under PIP-46, 100% of PRL issuance goes to the DAO PRL Inflation Multisig on Ethereum. See [Issuance](/governance/parallel-governance-token-prl/issuance) | @@ -36,7 +36,7 @@ PRL is the governance token of the Parallel Protocol. It replaced MIMO, and stak ## How it works -PRL itself is a plain, immutable ERC-20 on Ethereum; every other chain holds a `PeripheralPRL` OFT that mints and burns against PRL locked in the Ethereum `LockBox`, over LayerZero with DAO-configured DVNs. See the [PRL Bridging Module](/governance/parallel-governance-token-prl/bridging-module). To take part in governance you stake PRL as sPRL1, or provide 80/20 PRL/wETH liquidity and stake the pool token as sPRL2, which counts x2.5 in ParaBoost. A keeper (Cooper Labs) computes ParaBoost off-chain at the end of each 30-day epoch and publishes a merkle root to the `RewardMerkleDistributor`, from which stakers claim their fee share. Transferring sPRL resets the accumulated ParaBoost, so voting power and rewards stay with long-term stakers. The full model is in [Tokenomics](/governance/parallel-governance-token-prl/tokenomics). +PRL itself is a plain, immutable ERC-20 on Ethereum; every other chain holds a `PeripheralPRL` OFT that mints and burns against PRL locked in the Ethereum `LockBox`, over LayerZero with DAO-configured DVNs. See the [PRL Bridging Module](/governance/parallel-governance-token-prl/bridging-module). To take part in governance you stake PRL as sPRL1, or provide 80/20 PRL/wETH liquidity and stake the pool token as sPRL2, which counts x2.5 in ParaBoost. A keeper (Cooper Labs) computes ParaBoost off-chain at the end of each monthly epoch and publishes a merkle root to the `RewardMerkleDistributor`, from which stakers claim their fee share. Transferring sPRL resets the accumulated ParaBoost, so voting power and rewards stay with long-term stakers. The full model is in [Tokenomics](/governance/parallel-governance-token-prl/tokenomics). ## Backing and risk diff --git a/src/pages/resources/user-guides.mdx b/src/pages/resources/user-guides.mdx index c8b1c87..38a4da1 100644 --- a/src/pages/resources/user-guides.mdx +++ b/src/pages/resources/user-guides.mdx @@ -34,7 +34,7 @@ Deposit USDp into the Savings Module and receive sUSDp, the liquid ERC-4626 shar Move USDp between its 24 chains, and PRL between its chains, one for one over LayerZero. Covers the DVN security set-up, the daily and global limits, the fees you pay, and how to track a delayed transfer. **[How to stake PRL](/resources/user-guides/stake-prl)** -Stake PRL as sPRL1 (single-sided) or sPRL2 (80/20 PRL/wETH Balancer pool) to earn a share of protocol fees and voting power. Covers 30-day epochs, ParaBoost, claiming rewards, and the unstaking cooldown and early-exit penalty. +Stake PRL as sPRL1 (single-sided) or sPRL2 (80/20 PRL/wETH Balancer pool) to earn a share of protocol fees and voting power. Covers monthly epochs, ParaBoost, claiming rewards, and the 28-day unstaking cooldown and early-exit penalty. ## Closed diff --git a/src/pages/resources/user-guides/stake-prl.mdx b/src/pages/resources/user-guides/stake-prl.mdx index e20f144..35359f6 100644 --- a/src/pages/resources/user-guides/stake-prl.mdx +++ b/src/pages/resources/user-guides/stake-prl.mdx @@ -1,6 +1,6 @@ --- title: How to stake PRL -description: Stake PRL as sPRL1 or sPRL2 in the Parallel app, step by step. How 30-day epochs, ParaBoost, fee rewards, the unstaking cooldown and early-exit penalty work. +description: Stake PRL as sPRL1 or sPRL2 in the Parallel app, step by step. How monthly epochs, ParaBoost, fee rewards, the 28-day unstaking cooldown and early-exit penalty work. subtitle: Earn a share of protocol fees and voting power with sPRL1 or sPRL2 --- @@ -20,7 +20,7 @@ Staking PRL gives you two things: a share of the fees the protocol generates, an | ParaBoost weight | 1x on the dollar value staked | 2.5x on the dollar value staked | | Voting power | 1 PRL = 1 vote | Boosted, through the 2.5x ParaBoost weight | | Under the hood | PRL held in the sPRL1 contract | BPT staked on Aura; BAL and AURA rewards go to the DAO Treasury | -| Unstaking | 1 epoch cooldown, or early exit with a penalty | 1 epoch cooldown, or early exit with a penalty | +| Unstaking | 28-day cooldown, or early exit with a penalty | 28-day cooldown, or early exit with a penalty | | Best for | Holders who want governance rights without liquidity risk | Holders who want the maximum weight and are willing to provide PRL liquidity | Both sPRL1 and sPRL2 are transferable ERC-20 tokens. Transferring them resets the ParaBoost attached to them, so keep them in the wallet that staked. @@ -31,7 +31,7 @@ sPRL1 and sPRL2 contracts are deployed on Ethereum and Base. The [PRL contract a ## Epochs and ParaBoost -An **epoch** is the 30-day unit of time in the PRL tokenomics. It sets three things: the window over which ParaBoost is computed, the length of the unstaking cooldown, and the schedule on which fees are shared with stakers. See the [epoch concept](/governance/parallel-governance-token-prl/tokenomics/epoch-concept). +An **epoch** is one calendar month in the PRL tokenomics, so it runs 28 to 31 days depending on the month. It sets two things: the window over which ParaBoost is computed, and the schedule on which fees are shared with stakers. The unstaking cooldown is not an epoch; it is a separate, fixed 28 days. See the [epoch concept](/governance/parallel-governance-token-prl/tokenomics/epoch-concept). **ParaBoost** is the score that decides how much of the fee distribution you receive and how much voting power you hold. It is based on the dollar value of your sPRL1 and sPRL2, with sPRL2 counted 2.5 times, and it accumulates while you stay staked. At the end of each epoch a keeper (Cooper Labs) computes every staker's ParaBoost off-chain and publishes a Merkle root to the reward distributor contract, which is what you claim against. The current version is deliberately simple; a fuller ParaBoost is planned for tokenomics v2.1. Read [ParaBoost](/governance/parallel-governance-token-prl/tokenomics/paraboost) for the design. @@ -88,13 +88,13 @@ To claim in the app, open the **Stake** page, find **Available Rewards** and cli Unstaking is a two-step process for both sPRL1 and sPRL2: -1. **Start the cooldown.** On the Stake page, click **Unstake**, enter the amount and confirm. This opens a cooldown of 1 epoch (30 days). During the cooldown the tokens stay locked and your ParaBoost is reset. +1. **Start the cooldown.** On the Stake page, click **Unstake**, enter the amount and confirm. This opens a fixed 28-day cooldown. During the cooldown the tokens stay locked and your ParaBoost is reset. 2. **Withdraw.** Once the cooldown has matured, come back to the Stake page and withdraw. You receive PRL (sPRL1) or BPT (sPRL2). **Early exit.** You can skip the remaining cooldown by paying a penalty taken from the amount you unstake. The penalty starts at 50% and decreases linearly as the cooldown progresses; it is sent to the DAO Treasury. The app shows the exact penalty before you confirm, and the MCP server flags it as `EARLY_UNSTAKE_PENALTY`. :::warning -An early exit right after you start the cooldown costs up to half of your stake. Unless you need the tokens now, let the cooldown run its 30 days. +An early exit right after you start the cooldown costs up to half of your stake. Unless you need the tokens now, let the cooldown run its 28 days. ::: ## Voting power and delegation @@ -112,18 +112,18 @@ Stake before a vote's snapshot is taken. PRL that is not staked at the snapshot diff --git a/tests/mdComponents.test.ts b/tests/mdComponents.test.ts index 84ab94b..60076aa 100644 --- a/tests/mdComponents.test.ts +++ b/tests/mdComponents.test.ts @@ -15,6 +15,15 @@ const BOOKS: Record = { }, }; +// Shaped like the real PRL book: the token on some chains, and chains that +// carry only tokenomics or deprecated migration contracts. +const PRL_BOOK: AddressBook = { + ethereum: [{ name: "PRL", address: "0xaaa", description: "Parallel Governance Token" }], + base: [{ name: "PeripheralPRL", address: "0xbbb", description: "PRL Bridging Module" }], + avalanche: [{ name: "SideChainFeeDistributor (USDp)", address: "0xccc", description: "PRL Tokenomics" }], + fantom: [{ name: "PeripheralMigrationContract (deprecated)", address: "0xddd" }], +}; + const expand = (md: string) => expandComponents(md, BOOKS); describe("expandComponents", () => { @@ -112,6 +121,25 @@ describe("renderAddressBook", () => { expect(out.indexOf("### Base")).toBeLessThan(out.indexOf("### X Layer")); expect(out).toContain("| Contract | Address | Module |"); }); + + it("counts only the chains that carry the token", () => { + // PRL's address book lists chains that hold tokenomics or deprecated + // migration contracts and no PRL at all; counting them said the token was + // on nine chains when it is on six. + const out = renderAddressBook("PRL", PRL_BOOK); + expect(out).toContain("PRL is deployed on 2 chains: Base, Ethereum."); + expect(out).toContain( + "This page also lists PRL-related contracts on Avalanche, Fantom, which do not carry the token.", + ); + // The chains that hold no token still get their section. + expect(out).toContain("### Avalanche"); + }); + + it("falls back to every chain when no entry looks like the token", () => { + const out = renderAddressBook("XYZ", { base: [{ name: "Vault", address: "0xaaa" }] }); + expect(out).toContain("XYZ is deployed on 1 chain: Base."); + expect(out).not.toContain("do not carry the token"); + }); }); describe("stripComponentImports", () => {