OpenHedgeDocs
Menu

Part IX · Deposits, Withdrawals and Fees

Section 086

Withdrawal State Machine

The states a withdrawal passes through, what each one waits for, and what happens on failure.

REQUESTEDSnapshotreconciledCLOSING_PRO_RATAReduce-only ordersPULLING_MARGINMargin releasedHL_WITHDRAW_SENTPayout to ArbitrumDONEUSDC receivedFAILED_MANUALUnits not burned until resolved
Figure 86Withdrawal states.

Withdrawals follow the treasury's state machine. Each state has one owner service and one condition to leave it.

StateWaits for
REQUESTEDA reconciled snapshot and enough free USDC in the strategy book.
CLOSING_PRO_RATAReduce-only orders that cut each position by your share. These orders are exits, so no brake can block them.
PULLING_MARGINReleased margin to become withdrawable on the venue.
HL_WITHDRAW_SENTThe venue's payout on Arbitrum, matched by nonce and amount.
DONETerminal. Units burned, USDC received, fee lines written.
FAILED_MANUALA condition that automation must not guess about. Units are not burned until it is resolved.

Idempotency: every state change is keyed by the withdrawal id. If a service restarts mid-step, it re-reads the venue and the chain before acting, so the same withdrawal cannot be paid twice.

NAV treatment: from the moment units are burned until the payout is confirmed, the amount is a liability (withdrawals owed), so remaining holders are neither credited nor charged for it.

Typical time end to end is a few minutes when no positions need to be reduced. Reducing positions adds the time needed to fill reduce-only orders at acceptable prices.

© 2026 HedgeFund DAO · OpenHedgeNot investment advice. Trading leveraged perpetuals can lose all deposited funds.