Rewards Calculator
Protocol APR means Annual Percentage Rate (APR) — the overall Consensus Layer (CL) and Execution Layer (EL) rewards received by Lido validators relative to total ETH in the protocol. APR may be calculated over a variety of time ranges. The APR displayed on Lido UI is calculated as a rolling moving average over the last 7 days. The detailed info could be found here.
APR Calculation
To estimate the protocol's APR over a historical period and calculate rewards for a specific account, you can track the change in the
totalPooledEther / totalSharesvalue over time, known as the share rate. This value defines how much ETH corresponds to the underlying minted stETH token shares and changes only during the stETH token rebase event (accessible programmatically in the Lido contract asTokenRebased).// Emits when token rebased (total supply and/or total shares were changed) event TokenRebased( uint256 indexed reportTimestamp, uint256 timeElapsed, uint256 preTotalShares, uint256 preTotalEther, /* preTotalPooledEther */ uint256 postTotalShares, uint256 postTotalEther, /* postTotalPooledEther */ uint256 sharesMintedAsFees /* fee part included in `postTotalShares` */ ); preShareRate = preTotalEther * 1e27 / preTotalShares postShareRate = postTotalEther * 1e27 / postTotalShares userAPR = secondsInYear * ( (postShareRate - preShareRate) / preShareRate ) / timeElapsed