Polygon PoS uses a validator share model for delegation. Delegators receive validator-specific ERC20 share tokens (referred to as VOL for a given validator) in exchange for staked POL, at a rate determined by the current exchange rate of the POL/VOL pair.Documentation Index
Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
Use this file to discover all available pages before exploring further.
POL is the staking token. A delegator needs POL tokens to participate in delegation.
Technical specification
Methods and variables
buyVoucher
- Transfers
_amountto stakeManager and updates the timeline data structure for active stake. updateValidatorStateupdates the timeline data structure.- Mints delegation shares using the current
exchangeRatefor_amount. amountStakedtracks active stake per delegator for liquid reward calculations.
sellVoucher
- Uses current
exchangeRateand share count to calculate total amount (active stake + rewards). - Unbonds active stake from validator and transfers rewards to delegator.
- Removes active stake from timeline via
updateValidatorStatein stakeManager. delegatorsmapping tracks stake in the withdrawal period.
withdrawRewards
- Calculates rewards for a delegator and transfers them.
- Burns shares proportional to the reward amount based on
exchangeRate. - Example: delegator with 100 shares at exchange rate 200 receives 100 tokens reward; 50 shares are burned; delegator retains 50 shares worth 100 tokens.
reStake
getLiquidRewards calculates accumulated rewards. Restaked amounts are counted as active stake and cannot be withdrawn immediately.