The Core Loop
LPs deposit USDC into the vault
A liquidity provider deposits USDC into the pool. The vault mints share tokens proportional to the
current share price, representing the LP’s ownership of the pool. The deposited USDC becomes
available as counterparty capital for trader positions.
Trader deposits collateral
A trader adds USDC to their margin account. This collateral backs their positions but is not yet
locked — it sits as free balance until a position is opened.
Trader opens a position
The trader specifies:
- Side: LONG (betting EUR/USD goes up) or SHORT (betting it goes down)
- Tenor: 1 Day, 1 Week, or 1 Month
- Notional: The face value of the contract in USDC
- Margin: The amount of collateral to lock (must be at least 2% of notional)
Entry price is locked
At the moment of opening, the protocol fetches the current forward price for the position’s
maturity date. This becomes the entry strike — the reference price against which all PnL is
calculated. The entry strike never changes.
Position is live — PnL moves with the market
While the position is open, unrealized PnL fluctuates as the forward price changes. During this
period, the trader can:
- Add margin to reduce liquidation risk
- Remove excess margin to free collateral
- Partially reduce the position
- Close the position early at the current forward price
Liquidation guard
If a position’s equity (locked margin + unrealized PnL) drops below the maintenance margin
threshold (1% of notional), the position becomes liquidatable. Anyone can trigger the liquidation,
with a penalty deducted from the trader’s remaining margin.
Maturity settlement
When the maturity date arrives, the position settles. The fixing price — the Pyth EUR/USD spot
price recorded at 4 PM UTC on the maturity business day — determines the final PnL.
Zero-Sum Dynamics
The protocol creates no value and destroys no value in trading itself. Every unit of USDC that flows to a trader as profit is drawn from the pool, and every unit lost by a trader flows into the pool.The zero-sum property is enforced as an onchain invariant. The sum of all trader PnL plus pool PnL
equals zero at all times.
Forward Pricing
Forward prices are the core pricing mechanism. Unlike spot prices that reflect current exchange rates, forward prices project the rate at a specific future date by incorporating the interest rate differential between EUR and USD. See Oracle & Forward Pricing for the full formula and parameter details.Margin Model
The protocol uses isolated margin — each position has its own independent margin that does not interact with other positions or free collateral.Initial Margin (IM)
Initial Margin (IM)
The minimum collateral required to open a position: 2% of notional by default (50x max
leverage). Traders can choose to lock more margin, reducing their leverage and liquidation risk.
Maintenance Margin (MM)
Maintenance Margin (MM)
The minimum equity threshold below which a position becomes liquidatable: 1% of notional by
default. If position equity drops below this level, anyone can liquidate it.
Equity and Liquidation
Equity and Liquidation
Position equity = locked margin + unrealized PnL. A position is healthy when equity >= MM, and
liquidatable when equity < MM.Example: A LONG position with 200 USDC margin and -110 USDC unrealized PnL has equity of 90 USDC.
If maintenance margin is 100 USDC, this position is liquidatable (90 < 100).
Variable Leverage
Variable Leverage
| Margin | Notional | Leverage | Liquidation Distance |
|---|---|---|---|
| 200 USDC (2%) | 10,000 USDC | 50x | ~1% price move |
| 500 USDC (5%) | 10,000 USDC | 20x | ~4% price move |
| 2,000 USDC (20%) | 10,000 USDC | 5x | ~19% price move |
| 10,000 USDC (100%) | 10,000 USDC | 1x | Cannot be liquidated |
Settlement
A position can close in four ways:- Maturity
- Early Termination
- Liquidation
- Partial Reduction
When: The maturity date has passed and a fixing price has been recorded.Price used: The fixing price — Pyth EUR/USD spot at 4 PM UTC on the maturity business day.Fee: Standard trading fee (0.05% of notional).
Fixing timestamps are business-day adjusted. If a position’s theoretical maturity falls on a weekend,
the fixing timestamp is rolled forward to the next Monday at 4 PM UTC.
Next Steps
Quick Start
Set up your environment and query the protocol on Sepolia in 15 minutes.
Core Concepts
Deep dive into non-deliverable forwards, tenors, sides, margin, and protocol modes.
Position Lifecycle
Detailed walkthrough of every state transition from open to close.