APR is solely provided for informational purposes.
APR calculation
The APR (Annual Percentage Rate) is the potential annual yield generated by staking LP tokens into their gauge.
For Strategies we have two cases : Current APR and Projected APR.
Current APR
On an harvest, the earned rewards are distributed to users that staked their LP tokens into the gauge during the following week.
The gauge updates the rate
and the period_finish
properties returned by the reward_data
view, and it means that the reward token will be distributed at this rate
per second until the period_finish
.
Based on this rate and the price of the reward token, Stake DAO can then compute the APR of a user using his working_balance
(a boosted balance based on the users' veSDT position).
The current APR is then the following :
After computing this APR, Stake DAO deduce fees to sdTOKENs holders for the boost provided, aswell as protocol fees.
Projected APR
If a strategy has not been harvested since at least 7 days, the gauge does not stream rewards. However, the rewards are still accumulating and will be redistributed to stakers on the next harvest. The projected APR reflects this accumulating rewards waiting for harvest, and are either computed from protocols' API or by replicating protocols' logics for their APR. After computing this APR, Stake DAO deduce fees to sdBAL holders, aswell as protocol fees.
Curve
Curve has many API endpoints depending on the pool type and compute the base APR:
-
https://api.curve.fi/api/getPools/ethereum/factory-crvusd (opens in a new tab)
-
https://api.curve.fi/api/getPools/ethereum/factory-crypto (opens in a new tab)
-
https://api.curve.fi/api/getPools/ethereum/factory-tricrypto (opens in a new tab)
-
https://api.curve.fi/api/getPools/ethereum/factory (opens in a new tab)
-
https://api.curve.fi/api/getPools/ethereum/main (opens in a new tab)
-
https://api.curve.fi/api/getPools/ethereum/crypto (opens in a new tab)
-
https://api.curve.fi/getSubgraphData/ethereum (opens in a new tab)
-
https://api.curve.fi/getPools/polygon/main (opens in a new tab)
-
https://api.curve.fi/getSubgraphData/polygon (opens in a new tab)
-
https://api.curve.fi/getPools/arbitrum/factory (opens in a new tab)
-
https://api.curve.fi/getPools/arbitrum/main (opens in a new tab)
-
https://api.curve.fi/getPools/arbitrum/crypto (opens in a new tab)
-
https://api.curve.fi/getSubgraphData/arbitrum (opens in a new tab)
Angle
Angle provides an API endpoint for the APR of vaults and gauges:
https://api.angle.money/v1/apr (opens in a new tab)
Pendle
Pendle provides an API endpoint for the APR of their LPs:
https://api-v2.pendle.finance/core/v1/1/markets/ (opens in a new tab) + lp address
Yearn
Yearn provides an API endpoint for the APR of their vaults:
Balancer
Balancer provides a subgraph for the trading fees of their pools:
https://thegraph.com/hosted-service/subgraph/balancer-labs/balancer-v2 (opens in a new tab)
In addition to this trading fees, Stake DAO compute the projected BAL APR by fetching current BAL emission and the allocation to the pool during next week.
The projected APR is then the following :