15,000 USDC
View results
Submission Details
Severity: medium
Valid

Unaccounted Transfer Fees in depositCollateral Function

Summary

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

Vulnerability Details

The function depositCollateral doesn't account for potential transfer fees, leading to discrepancies between the expected and actual deposited amount.

Impact

Incorrect collateral tracking, potential financial inaccuracies or losses

Tools Used

Manual review

Recommendations

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)

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.