pumperp

Risk management

Drawdown limits, desk halts, liquidation, and circuit breakers.

Perp desks use up to 75× leverage on Avantis. Liquidation is expected at scale, not exceptional.

Risk parameters

From config.RISK:

ParameterDefaultPurpose
maxPositionUsdc500Cap single deploy size
minDeployUsdc1Dust threshold before desk acts
maxDrawdownPct0.40Drawdown before reduction
drawdownReducePct0.50Fraction to reduce on drawdown
circuitBreakerPct0.50Halt threshold
liquidationWarningPct0.15Proximity alert band
earlyTakeProfitPct0.30Take-profit trigger
takeProfitReducePct0.25Reduce size after profit
reservePct0.20Keep collateral reserve
minWalletBalanceEth0.05Gas safety floor

Tune via environment variables — see Deployment.

Desk halts

desk-risk and profit checks can halt a token's desk (isTokenDeskHalted). While halted:

  • desk-manager skips open/increase
  • Pending perp USDC stays queued
  • PUM buyback leg continues (global, not desk-dependent)

PnL availability

Before acting on desk profit:

if (!position.pnlAvailable) {
  // price unavailable — not zero profit
}

pnlAvailable === false means oracle/data failure, not necessarily flat PnL.

Liquidation scenario

  1. Adverse move wipes USDC collateral on Avantis
  2. Desk position closed onchain
  3. No creator buyback from that collateral
  4. Future fee claims fund a new desk open (if agent allows)

Fission docs describe the same tradeoff: cumulative buyback pressure may exceed liquidation losses over time — not guaranteed.

Operational risks

RiskMitigation
Hot wallet compromiseMinimize balance; monitor Basescan
Venice / Pinata / Neynar key leakRotate keys; scope to least privilege
Extended backend downtimeIn-memory state loss; reconcile on boot
Smart contract bugRegistry is minimal Ownable — audit gap remains

Product disclaimer

Match tone from pumperp.com legal section: experimental, unaudited, not financial advice. High leverage can zero desk collateral quickly.

On this page