Zaros Part 1

DeFiFoundry
60,000 USDC
Submission Details
Severity: high
Valid

PnL calculation for the user's old position is wrong in `OrderBranch::createMarketOrder`

Updates

Lead Judging Commences

InAllHonesty Lead Judge
about 1 month ago
InAllHonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Design choice

Appeal created

InAllHonesty Lead Judge
8 days ago
InAllHonesty Lead Judge 8 days ago
Submission Judgement Published
Validated
Assigned finding tags:

Including the positive uPnL of new position in the margin balance leads to an artificial increase of the total margin balance, which leads to the ability to drain the protocol

Support

FAQs

Can’t find an answer? Join our Discord or follow us on Twitter.