Fee on token transfers may cause unexpected behaviors
Tokens like STA and PXG are fee on transfer and USDC and USDT may become in the future. This implies the amount that actually is moved into protocol on transfer is less the fee and not the amount input
For flashloan this will lead to inability to flashloan the market/pool of token as function will always revert if the following in ThunderLoan.sol line 213 fails.
Above will be true in case fee of protocol < feeOnTransferFee of the token
Minting more asset token than amount passed in giving extra tokens to depositor ThunderLoan.sol lin 150
The actual amount in above is less as its amount- feeOnTransferFee
As seen above fee on transfer tokens may causes unexpected behaviours as in the above and many other potential that may not be outlined above or other potential attack vectors so are not ideal unless handled fully with care and their associated risks
Manual Analysis
Wierd ERC20 Tokens => https://github.com/d-xo/weird-erc20
Recommended to exclude these tokens via the whitelist
Recommended to not use amounts in the minting and redemption calculations but use actual balance of tokens moving into and out of protocol
Recommend plausibility and emergency patterns for the protocol
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.