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 95% of raw profit at the payout price at launch. 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. At c, the position retains 50% of raw profit. Above c, the curve rises toward 95% at the payout price. A farther payout price reduces retention at the same intermediate move.

Select an asset and move across the plot to explore it. Each position keeps the c set when it filled.

Cap-relative close curve

Loading
c—

Loading market settings…

Illustrative cap distance: 10%. Retention reaches 95% before the settlement fee.

The plot combines the selected c with the illustrative cap distance shown below it. Your position uses its own frozen cap distance. Test settings are labeled; values are before fees. Positions filled before the curve upgrade retain their original curve and full raw cap payout.

View the close formulas

For a favorable price move Δ\Delta and cap distance D=r/ND=r/N:

p={Δ2/(Δ2+c2),0≤Δ≤c0.5+(a−0.5)⋅4t/(1+3t),c<Δ≤Dt=Δ−cD−c,W=pΠp=\begin{cases} \Delta^2/(\Delta^2+c^2), & 0\le\Delta\le c \\ 0.5+(a-0.5)\cdot 4t/(1+3t), & c<\Delta\le D \end{cases} \qquad t=\frac{\Delta-c}{D-c},\quad W=p\Pi

NN is position size and Π=NΔ\Pi=N\Delta is positive raw PnL, limited to the raw cap rr. WW is profit before the settlement fee. Both Δ\Delta and cc are price fractions: 0.15% is 0.0015. aa is the cap retention the position froze at fill: 95% at launch, where the upper branch is 0.5+1.8t/(1+3t)0.5+1.8t/(1+3t). Governance can change aa for future positions only. New positions require D>cD>c.

Losing closes realize the loss directly, limited to active collateral. At the payout price, new positions retain aa before fees: at launch 95%, or 90.25% after a 5% settlement fee. 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.

Mog can pause one market or the whole venue. A pause stops new orders, new fills, and new margin requests. You can still close all or part of a position, and the close settles at a later oracle update as usual. Liquidation and payout prices keep working. Deposits, withdrawals, and payout-queue payments continue. Pending orders under a pause do not fill. Anyone can void them, and the void returns their collateral and open fee.

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.