When markets close overnight, every other venue freezes prices and snaps at open — triggering liquidation cascades. Watch what Perpify does differently.
10,000 worst-case S&P 500 reopen scenarios. 30 years of SPY close-to-open data. Seed 1. Reproducible. Full Python script available on request.
The naive venue breached its loss buffer in 1 out of 10,000 scenarios — meaning the exchange itself went insolvent and traders could not be made whole. Perpify held max buffer usage at 13.12% across all 10,000 scenarios.
The margin of safety is not marginal. It is structural.
This is the real contract on Base Sepolia. Every button below sends an actual on-chain transaction. Watch the events fire live — not simulated.
Need testnet ETH? Get some free at app.optimism.io/faucet
Configure three positions — size, leverage, direction, risk tier. Higher leverage = higher risk tier = more exposure to the weekend gap.
Enter Friday's closing price. This is passed as basePrice to triggerReopen(). Perpify locks gap-aware margins for HIGH and MED risk positions.
Set Monday's open price. The gap is auto-calculated and fired on-chain — sequenced clearing runs HIGH → MED → LOW in a single transaction.
Each replay pulls a Pyth-signed SPY/USD price for the exact Friday close and the next trading-day open. The contract verifies both Pythnet signatures on Base mainnet before computing the gap and running sequenced clearing. The Friday and Monday prices are not inputs — they're proven on-chain.
npx hardhat run scripts/deploy-pyth.js --network base, then paste the printed address into PERPIFY_PYTH_CONTRACT at the top of the inline script below and push.
After deploying, this panel becomes fully live — each button fires two real transactions on Base mainnet (~$0.15 total in gas).
Five real Q1 2026 SPY reopens. Click one to load both Pyth price updates and see the gap before connecting a wallet.
Open three positions on the contract before the close. HIGH and MED tiers face gap-aware margin tightening. Clearing runs HIGH → MED → LOW when the gap fires.
These prices come from Pyth's Benchmarks API, signed by Pythnet validators. The contract will reject any blob with a mismatched signature.
Connect MetaMask on Base mainnet (chain 8453). Two transactions: closeMarket then fireReopen. ~$0.15 in gas total. Watch events emit below.