User can inflate the totalSupply
of deToken
, this way lowering the rewards of other users in StabilityPool
. This is possible due to the deToken
total supply in the computation of rewards
Imagine the following scenario:
User wants to withdraw his rToken
, this way getting his RAACToken
rewards as well
Malicious user sees his transaction in the mempool and gets a big flash loan, deposits in the LendingPool
to receive rToken
and the inflates the supply of deToken
by depositing the rToken
into the StabilityPool
This way he will intentionally lower the rewards of the user and realise profit from it. This is possible due to the calculateRaacRewards
function, that look like this:
A user can realise profit by doing the attack described above
Manual Review
put a slippage protection in the withdraw
function to prevent this scenario from happening
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.