Trader Lifecycle Sim— LEVER v1.1 mechanics, all formulas faithful to whitepaper

Status
ACTIVE
at hour 0
Equity (now)
$0
— of collateral
PnL
$0
0.0%
Total fees paid
$0
borrow + funding + tx
Configure your position on the left. The simulator will compute every parameter and run the full position lifecycle.

Pre-trade breakdown (computed at t=0)

Position evolution over time

Cumulative fee composition

Sandbox simplifications vs spec

This simulator implements the LEVER v1.1 math faithfully where it can, but intentionally omits a few features that are not central to a single-position lifecycle view. Calling them out so behavior stays interpretable:

  • Single trader, no book interaction. Your position doesn't change longOI/shortOI dynamically over the lifecycle. Funding, borrow surcharge, and M_market's concentration term assume the book stays at the configured imbalance.
  • Hourly time step. Sim advances 1h at a time. Liquidation timing is granular to 1h. In production, checks fire on every oracle update (down to 30s near resolution per §5.9).
  • Sandbox-calibrated market inputs. The spec leaves σ_baseline and depth_threshold unpinned (§8.16). The sandbox uses σ_baseline = 0.01 and expresses external depth as a ratio (external_depth/depth_threshold), default 1.0× = neutral.

Faithful to spec: τ_effective compression, dual risk curves R(τ)/R_borrow(τ), §8.11 market adjustment R_adjusted = R(τ) × M_market (Vol × Depth × Concentration, threaded into every derived parameter), platform ceiling pipeline (TVL/IFR/Util mults), imbalance-adjusted linear impact with [0, 5%] bounds, MM_Multiplier(R), §11.3 IM adjustments (volatility/risk/utilization) with the §11.6 open gate (soft-capped + reject badge), §11.4 50 bps liquidation buffer δ, borrow M_ttR up to 25× with imbalance surcharge, 1× borrow exemption, funding split (matched↔traders, unmatched→LP), 5 bps/hr funding cap, §13.4 liquidation via execution impact, 1% liquidation fee, 20 bps settlement fee on winners only, void refund logic, bad debt detection.