Force Closing Positions
Symmio is a peer-to-peer perpetuals protocol: every position you hold is against a specific solver (PartyB), and filling your close requests is that solver's job. Usually this is uneventful. You submit a close, the solver fills it, the position settles. But solvers are off-chain actors, and once in a while one could go offline, fall behind, or ignore a close it no longer likes. Force close is the backstop. If the market has clearly reached your close price and your solver still hasn't filled, you can close the position yourself, directly against the contract, without the solver's cooperation.
This page covers when force close is available, what price you get, what it costs, and the handful of things that can make it fail.
When you can force close
There's an open close request. The quote must be in
CLOSE_PENDING, meaning you've already submitted arequestToClosePositionthat the solver hasn't filled.The close request is a LIMIT order. Market closes can't be force-closed, because there's no specific price the solver has failed to honor.
The cooldowns have elapsed. Two timers protect the solver from being force-closed on a brief spike: an initial cooldown after the close request is submitted, and a second one measured from the moment the market hits your price. Both must pass.
The market has reached your close price. The contract checks this against a signed Muon oracle price.
If any of these fails, the transaction reverts and the close stays pending as usual.
The price you actually get
Your force-close price is your requested close price, nudged slightly against you by a small gap. The gap exists so a solver isn't punished for a single wick that touches your limit and then retraces. Its size is set per symbol by forceCloseGapRatio, and your frontend should show the estimated force-close price before you submit, so you know what you're agreeing to.
That gap is why force close is best treated as a safety net rather than an execution strategy: you'll get a price near your limit, but not quite at it. When a solver is filling you normally, fillCloseRequest will almost always give you a better price.
The close fee
Force close runs a full solvency check before it touches your position, and that check includes a close fee on top of any open-side trading fee already baked into the quote. It's computed as:
closeFee = filledAmount × closedPrice × quote.closeFee / 1e36and subtracted from your available balance in the solvency math. The close fee rate depends on the affiliate your frontend is registered under, so different frontends can charge different close fees on the same symbol.
What happens under the hood
You submit one transaction. Internally the contract walks through up to three stages:
Initialize. Validates the cooldowns and order type, reads the market price from a signed oracle snapshot, computes your force-close price including the gap, and runs the solvency check.
Settle (conditional). If you or the solver doesn't currently have enough free balance to cover the close, usually because the funds are sitting as unrealized profit in other open positions, this stage realizes those profits into available balance so the close can finalize. Most force closes skip it; it only kicks in when funds are tied up elsewhere.
Finalize. Refreshes the price snapshot, closes the position, transfers the uPnL, and emits a
ForceClosePositionevent.
Frontend builders can run all three in a single bundled call, forceCloseAndSettlePositionsUnified.
Last updated

