Fetching latest headlines…
I Built Cryptographic Proof for DeFi Liquidations Using Pyth Network
NORTH AMERICA
πŸ‡ΊπŸ‡Έ United Statesβ€’April 1, 2026

I Built Cryptographic Proof for DeFi Liquidations Using Pyth Network

20 views0 likes0 comments
Originally published byDev.to

Every time I got liquidated in DeFi, I had one question β€”
was that price actually fair?

There's no way to verify. So I built PythReceipt.

What it does

PythReceipt creates an immutable, on-chain receipt for every
liquidation β€” stamped with Pyth Network's live oracle data
at the exact moment of execution.

The Confidence Gate

Before any liquidation executes, PythReceipt checks Pyth Pro's
confidence interval:

  • Confidence < 0.2% β†’ βœ… Liquidation allowed
  • Confidence 0.2-0.5% β†’ ⚠️ Warning shown
  • Confidence > 0.5% β†’ πŸ”΄ Liquidation blocked

The Receipt

Every successful liquidation generates:

  • On-chain Solana transaction
  • Live Pyth price at exact moment
  • Confidence interval value
  • Best Bid / Best Ask
  • Downloadable JSON proof

Tech Stack

  • Next.js 14 + TypeScript
  • Solana Devnet + Anchor
  • Pyth Pro Lazer WebSocket
  • Vercel

Try it: https://pyth-receipt.vercel.app
GitHub: https://github.com/rajdeblol/PythReceipt

Comments (0)

Sign in to join the discussion

Be the first to comment!