Skip to main content

Position Lifecycle Interactions

Each trading operation involves multiple contracts coordinating through the Protocol registry. These diagrams show the exact contract-to-contract call sequence for every position operation.
A trader deposits collateral, then opens a position. The PositionManager coordinates oracle pricing, risk validation, margin locking, and fee collection in a single transaction.For PnL and fee formulas, see PnL Calculation and Fee Structure.

Next Steps

System Flows

Oracle publishing, keeper automation, fee distribution, and LP deposits.

Position Lifecycle

State machine and status transitions for positions.

Fee Structure

Trading fees, oracle fees, and liquidation penalties.