DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: high
Valid

SEV 17: Protocol does not account full collateral of trader as liquidatable amount and that losses can be greater than the maintenance margin

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Validated
Assigned finding tags:

deductAccountMargin() treats `required maintenance margin` as the `unrealized PnL` because it uses `requiredMaintenanceMarginUsdX18` in place of `pnlUsdX18`

Support

FAQs

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