Skip to content
Documentation

Maximum Profit

In the contracts, every position has a maximum profit, fixed and reserved when it is opened.

This rule is what keeps the vault able to pay every position, whatever prices do.

How it works

  • When a position is opened, the contract computes its maximum profit as a multiple of its collateral. For a short, it is also never more than the position size, since a price cannot fall below zero.
  • That amount is reserved in the vault for the life of the position. If the vault cannot reserve it, the trade is rejected.
  • If the position reaches its maximum, it can be settled at that profit.

The maximum is returned when the position is opened, stored and emitted on-chain. It is a stated term of the position, not a hidden cap.

Why

A vault that promises unlimited profits can be drained by a single extreme move, and emerging tokens produce extreme moves. Reserving the maximum payout up front means the vault's balance always covers what it owes.