The PerpetualVault._handleReturn function does not account for partial withdrawals during position closure.
If multiple withdrawals occur while closing a position, this check may allocate funds incorrectly.
Multiple withdrawals could split collateral unevenly if the position is partially closed.
Users may receive incorrect withdrawal amounts during concurrent operations.
Manual Review
Foundry
Maintain explicit withdrawal state tracking instead of relying solely on balanceOf.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
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.