lidofinance/lido-oracle

Incorrect APR results when new funds appeared

Closed this issue · 0 comments

APR calculation returns incorrect results if the totalPooled Eth has been increased due to new submissions. APR should take into account beacon rewards only, and the logic should must assume that interest=newBeaconBalance - rewardBase as calculated in Lido.sol:273.