Precision Loss Risk Due to Integer Division in collateralToWithdraw
Description:
The calculation:
uses Solidity integer division, which truncates values and can introduce precision loss.
Impact:
May under- or overestimate collateral withdrawal, potentially:
Causing insufficient swap output → transaction revert
Withdrawing excess collateral → suboptimal financial outcome
Recommended Mitigation:
Use full-precision multiplication/division via Math.mulDiv:
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.
The contest is complete and the rewards are being distributed.