Annualized fee APY dependence on the frequency of executing a function #280
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
Czar102
Vulnerability details
Impact
The APY of the annualized fee is dependent on the frequency of the execution of the
BasketFacet::chargeOutstandingAnnualizedFee()
. If it is called more frequently, the compounding is more frequent and the APY is higher. For less used baskets, the APY might be lower, because the compounding will happen at lower rate.Tools Used
Manual analysis
Recommended Mitigation Steps
Consider calculating the fee as the compounding was continous or with a constant compounding period.
The text was updated successfully, but these errors were encountered: