Live · Pyth ETH/USD

Watch the premium price itself — live.

This runs PegGuard's actual on-chain pricing formula in your browser against a live Pyth ETH/USD feed. Anchor a pool price, and as the oracle drifts away from it, see exactly what the hook would charge the correcting (arbitrage) leg — and nothing on the benign leg. It shows what the hook would charge, not fees accruing from live swaps.

Live oracle (Pyth)

connecting…

Pool price — you set this

pool 60 bps belowat fair60 bps above

What PegGuard charges, right now

Correcting / toxic leg
base + premium
Benign leg
5.00 bps
base fee only — no premium
fee on the correcting leg vs |deviation| · the dot is live
base 5 bpsα = 0.5deadband 0.5 bpcap 50 bps

The premium is α · (|deviation| − deadband), clamped at the cap, charged only on the leg that moves the pool toward Pyth's price — the exact SignalMath logic from src/lib/SignalMath.sol. Price and confidence are pulled live from Pyth's public Hermes API; the live confidence above (in bps) is typically far larger than the ~1 bp signal, which is why PegGuard gates on confidence relative to its own trend rather than absolutely. On-chain, a slow basis EMA de-trends persistent venue basis before this is computed — this widget prices the instantaneous deviation you set, with basis assumed neutral.

← Back to the dashboard  ·  GitHub ↗