The depositCollateral function will receive less tokens than the specified amount when tokenCollateralAddress is fee-on-transfer tokens. This system allows users to easily fork the codebase, replace WETH & WBTC with any desired basket of assets, and ensure that the code functions seamlessly. Therefore, we should consider supproting fee-on-transfer tokens.
None
To determine the received amount, calculate the difference in token balance (using balanceOf) before and after the transferFrom.
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.