some tokens like [usdc, usdt and others] will take fees on transfer in the future, so amountCollateral - tokenFee
should be taken into consideration since the amountCollateral
wont be the same as the real amount deposited
The function depositCollateral
doesn't account for potential transfer fees, leading to discrepancies between the expected and actual deposited amount.
Incorrect collateral tracking, potential financial inaccuracies or losses
Manual review
Implement a mechanism to account for potential transfer fees in the deposited collateral calculation. Something like when needing to know the real value just call tokenCollateralAddress.balanceOf(msg.sender)
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.