summary/impact:
Updating parameters (e.g., lockedCreditRatio
, swap strategies, fees) in Vault.sol
without first accruing pending rewards/debt allows new parameters to retroactively affect historical rewards, unfairly penalizing users.
lockedCreditRatio
(credit locking %) and swap strategies are updated without accruing pending rewards.
Increasing lockedCreditRatio
without accruing rewards recalculates locked funds using the new ratio, reducing claimable rewards.
update()
function to accrue all pending rewards/debt before applying the new lockedCreditRatio
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.