Inside the burn function of Rtoken contract , `amount` is scaled to
but when is comes to burning the scaled amount function ends up burning the amount passed as argument resulting in invalid amounts to be burned.
As there is an ivalid amount burning resulting in daviations from the actual calculation and amount to be burned resulting in losses of funds situation is base upon index
.
Example
-> if liquidity index is higher then token amount that would be burned should be greater than the amount and vice versa both parties can face loss in this situation
revise the burn statement and replace the amount
parameter to amountScaled
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.