<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: RajLol</title>
    <description>The latest articles on Forem by RajLol (@rajdeblol).</description>
    <link>https://forem.com/rajdeblol</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3855014%2F4ac81499-f188-49f9-879e-20f842ed1b99.jpeg</url>
      <title>Forem: RajLol</title>
      <link>https://forem.com/rajdeblol</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rajdeblol"/>
    <language>en</language>
    <item>
      <title>I Built Cryptographic Proof for DeFi Liquidations Using Pyth Network</title>
      <dc:creator>RajLol</dc:creator>
      <pubDate>Wed, 01 Apr 2026 07:31:34 +0000</pubDate>
      <link>https://forem.com/rajdeblol/i-built-cryptographic-proof-for-defi-liquidations-using-pyth-network-4e0j</link>
      <guid>https://forem.com/rajdeblol/i-built-cryptographic-proof-for-defi-liquidations-using-pyth-network-4e0j</guid>
      <description>&lt;p&gt;Every time I got liquidated in DeFi, I had one question — &lt;br&gt;
was that price actually fair?&lt;/p&gt;

&lt;p&gt;There's no way to verify. So I built PythReceipt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;PythReceipt creates an immutable, on-chain receipt for every &lt;br&gt;
liquidation — stamped with Pyth Network's live oracle data &lt;br&gt;
at the exact moment of execution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Confidence Gate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before any liquidation executes, PythReceipt checks Pyth Pro's &lt;br&gt;
confidence interval:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Confidence &amp;lt; 0.2% → ✅ Liquidation allowed&lt;/li&gt;
&lt;li&gt;Confidence 0.2-0.5% → ⚠️ Warning shown
&lt;/li&gt;
&lt;li&gt;Confidence &amp;gt; 0.5% → 🔴 Liquidation blocked&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Receipt&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every successful liquidation generates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On-chain Solana transaction&lt;/li&gt;
&lt;li&gt;Live Pyth price at exact moment&lt;/li&gt;
&lt;li&gt;Confidence interval value&lt;/li&gt;
&lt;li&gt;Best Bid / Best Ask&lt;/li&gt;
&lt;li&gt;Downloadable JSON proof&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tech Stack&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js 14 + TypeScript&lt;/li&gt;
&lt;li&gt;Solana Devnet + Anchor&lt;/li&gt;
&lt;li&gt;Pyth Pro Lazer WebSocket&lt;/li&gt;
&lt;li&gt;Vercel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it: &lt;a href="https://pyth-receipt.vercel.app" rel="noopener noreferrer"&gt;https://pyth-receipt.vercel.app&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/rajdeblol/PythReceipt" rel="noopener noreferrer"&gt;https://github.com/rajdeblol/PythReceipt&lt;/a&gt;&lt;/p&gt;

</description>
      <category>blockchain</category>
      <category>cryptocurrency</category>
      <category>showdev</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
