The protocol allows users to redeem deposited tokens through redeem function. The function ensures that the token is allowed through the entry in s_tokenToAssetToken mapping. In case there is no entry in the mapping function reverts. This leads to the scenario where in case the owner of ThunderLoan contract removes the token from the mapping it will be impossible to withdraw tokens by the users.
Owner adds WETH token to allowed through setAllowedToken
Users deposits funds and earn interest
Owner removes WETH token from allowed through setAllowedToken
Users cannot withdraw their funds
Users that deposited tokens to the protocol loose access to their funds.
Manual Review
It is recommended to allow users to withdraw funds from the protocol even when the token was disallowed.
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.