setAllowedToken() could result in user funds being locked by the contract owner.
setAllowedToken() will delete the address of the assetToken from the mapping s_tokenToAssetToken
if allowed
is set to false. If the assetToken contract still has a positive assetToken supply (meaning there are still lenders and their funds are in the contract), this would prevent these lenders from redeeming their shares.
When removing allowed tokens, lenders could be prevented from withdrawing their funds. This also affects the newer ThunderLoanUpgraded.sol.
Manual Review.
Disabling allowed tokens should only be done if the assetToken contract does not hold any user funds.
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.