All collateral tokens have an associated depositCap
The total deposits can never exceed this depositCap
, it is enforced in depositMargin
as follows
The issue is that amountX18
and totalCollateralDepositedX18
are values scaled up to 18 decimals if the collateral token has < 18 decimals BUT depositCapX18
is never scaled up.
depositCap will be easily surpassed for tokens with < 18 decimals
Manual Review
Scale up depositCapX18
by the appropriate number of decimals
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.