LiquidationBranch.liquidateAccounts
should cancel all off-chain orders of the liquidated account.
LiquidationBranch.liquidateAccounts
clears a pending market order, but does not update the nonce to cancel off-chain orders.
An off-chain order may be executed after the account is liquidated if the user deposits more funds to the account.
Users should call OrderBranch.cancelAllOffchainOrders
manually.
Manual.
Update as below.
https://github.com/Cyfrin/2024-07-zaros/blob/7439d79e627286ade431d4ea02805715e46ccf42/src/perpetuals/branches/LiquidationBranch.sol#L163-L164
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.