The deposit
function in the Stability Pool incorrectly updates user balances based on the requested amount
instead of the actual transferred amount. Since rToken
operates with scaled balances, the recorded deposit amount can differ from what is actually received.
The function deposit
uses:
However, rToken
scales transfers internally:
This discrepancy means the user's recorded deposit might be inaccurate.
Users may have incorrect deposit balances, which can lead to miscalculations in rewards, withdrawals, or overall pool accounting.
Manual code review.
Use the actual transferred amount to update deposits:
Ensure that reward calculations use the correct deposit amounts.
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.