Skip to content
The Mog guide

PnL and closing

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.

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.

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
c

Loading market settings…

Before cap adjustment and the 5% fee. At the payout price, retention reaches 100% before fees.

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 Δ\Delta, the reference plot shows this fraction of raw profit:

pref=Δ2Δ2+c2p_{\mathrm{ref}}=\frac{\Delta^2}{\Delta^2+c^2}

The full position formula is:

W=Π3min(r2,  Π2+(Nc)2)W=\frac{\Pi^3}{\min\left(r^2,\;\Pi^2+(Nc)^2\right)}

NN is position size and Π=NΔ\Pi=N\Delta is positive raw PnL, limited to the profit cap rr. WW is settled profit before fees. Both Δ\Delta and cc 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.

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 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.

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.