The Vulnerability is present in the ThunderLoan Contract, and it is solved in the ThunderLoanUpgraded
Redeeming will return more tokens without any flashloans, as deposit function will update the exchange rate.
There are 2 scenarios:
Single depositor, and wants to redeem. This will not be possible, as if he wants to convert all the AssetTokens to Underlying it will revert. This is caused by increasing the exchange rate without accumulate any fees in the contract.
Low - I think that if it is fixed in the new contract, ThunderLoanUpgraded, I can't put a higher severity. If it wasn't, I think a medium can work, as if multiple deposits are placed, not everybody can redeem not even their initial deposited amount, as it will take by others that redeemed before him.
Some feedback here please :)
manual, unit test
Remove updating the exchange rate in the deposit
function
PoC:
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.