You can close all or part of a position. Your position size and the price move determine raw PnL; a profitable close applies Mog’s close curve, then the settlement fee.
How the close curve works
Section titled “How the close curve works”The close curve helps trading activity build Mog’s liquidity. Larger favorable moves settle a greater share of raw profit, reaching the full profit cap at the payout price. The settlement fee applies afterward.
The curve also limits profit from small, short-lived distortions in oracle prices.
Why the curve differs by market
Section titled “Why the curve differs by market”Each market has a setting called c, its reference distance. It shapes the close curve: a higher c means a larger favorable move is needed for the same share of profit on the reference curve below.
Select an asset and move across the plot to explore it. Each position keeps the c set when it filled.
Reference close curve
Loading market settings…
The plot isolates c. A position’s full curve also accounts for the distance from entry to its payout price. Test settings are labeled; the plot shows values before fees.
View the close formulas
For a favorable price move , the reference plot shows this fraction of raw profit:
The full position formula is:
is position size and is positive raw PnL, limited to the profit cap . is settled profit before fees. Both and are price fractions: 0.15% is 0.0015.
Losing closes realize the loss directly, limited to active collateral. Reaching the payout price settles the full profit cap before fees. On-chain rounding can slightly reduce calculated amounts.
Closing a position
Section titled “Closing a position”A close uses a later oracle price update, so the market can move after you submit. If the price touches your liquidation or payout price first, that closes the position instead.
If an update exceeds the oracle delivery staleness limit, it voids the pending close request. The position remains open unless a recorded barrier touch closes it. Review the position and submit a new close if needed.
A partial close reduces position size, collateral, and the profit cap by the same proportion. The remaining position keeps its liquidation and payout prices. A remainder below the minimum size, or below 50× effective leverage after rounding, triggers a full close. The close preview shows when this applies.
Adding margin leaves the profitable-close curve unchanged.
Your balance after closing
Section titled “Your balance after closing”Your remaining cash margin returns to your balance. With enough treasury cash, profit after fees is available as cash at settlement. Only an unfunded amount enters the payout queue.
When a market retires
Section titled “When a market retires”You can request a close during the market’s drain period. Once its final oracle record is posted, new close requests stop. That record settles remaining positions at their barrier or the final mark; a pending close request does not survive retirement.