<?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>DEV Community: John_Titor_1991</title>
    <description>The latest articles on DEV Community by John_Titor_1991 (@john_titor_1991).</description>
    <link>https://dev.to/john_titor_1991</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4256452%2Fad770dcb-54aa-4a86-b3d0-8ccb7a941c31.png</url>
      <title>DEV Community: John_Titor_1991</title>
      <link>https://dev.to/john_titor_1991</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/john_titor_1991"/>
    <language>en</language>
    <item>
      <title>I Built a Non-Custodial CAKE Lottery with a Windows 98 UI and Chainlink VRF v2.5</title>
      <dc:creator>John_Titor_1991</dc:creator>
      <pubDate>Fri, 20 Nov 2026 23:10:57 +0000</pubDate>
      <link>https://dev.to/john_titor_1991/i-built-a-non-custodial-cake-lottery-with-a-windows-98-ui-and-chainlink-vrf-v25-2ogl</link>
      <guid>https://dev.to/john_titor_1991/i-built-a-non-custodial-cake-lottery-with-a-windows-98-ui-and-chainlink-vrf-v25-2ogl</guid>
      <description>&lt;p&gt;Modern Web3 apps tend to look the same: heavy dark-mode templates, nested modals, and sluggish JS bundles. With &lt;strong&gt;Retrò Lottery 98&lt;/strong&gt;, I wanted to build something deliberately different—a fast, static &lt;strong&gt;Windows 98 desktop interface&lt;/strong&gt; wired directly to a &lt;strong&gt;non-custodial, autonomous smart contract&lt;/strong&gt; on &lt;strong&gt;BNB Smart Chain Mainnet&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;No user accounts, no backend database, no off-chain RNG, and no manual admin button to trigger draws.&lt;/p&gt;

&lt;p&gt;Here is a technical breakdown of how the frontend and on-chain logic fit together.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a Windows 98 Desktop UI?
&lt;/h2&gt;

&lt;p&gt;Instead of a single scrolling landing page, the interface works like a classic 1998 desktop: each feature opens inside its own draggable window.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Static &amp;amp; Lightweight:&lt;/strong&gt; The frontend is hosted on &lt;strong&gt;Cloudflare Pages&lt;/strong&gt;, keeping load times fast and eliminating centralized backend dependencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Direct Wallet-to-Contract Flow:&lt;/strong&gt; There is no login form, email collection, or KYC wall. Users connect a standard Web3 wallet and sign transactions directly against the verified contract on BSC.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Smart Contract Architecture
&lt;/h2&gt;

&lt;p&gt;The core contract is deployed on BNB Smart Chain Mainnet and uses &lt;strong&gt;CAKE&lt;/strong&gt; (1 CAKE per ticket). The main design goal was removing operator trust from the entire lifecycle of a round.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Provably Fair Randomness (Chainlink VRF v2.5)
&lt;/h3&gt;

&lt;p&gt;Using block timestamps or hashes for randomness is exploitable, and off-chain servers require blind trust. Winner selection in Retrò Lottery 98 runs exclusively through &lt;strong&gt;Chainlink VRF v2.5&lt;/strong&gt; (funded with native BNB), making every draw cryptographically verifiable on-chain and impossible to predict or manipulate—even by the deployer.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Zero-Touch Execution (Chainlink Automation)
&lt;/h3&gt;

&lt;p&gt;Manual draws create two obvious risks: human delay or selective execution. &lt;strong&gt;Chainlink Automation&lt;/strong&gt; handles round closures, VRF requests, prize settlement, and refunds automatically once the round conditions are met.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Pool Economics &amp;amp; Anti-Lock Refund Logic
&lt;/h3&gt;

&lt;p&gt;To keep the rules transparent and prevent edge-case fund locks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;95% Automatic Payout:&lt;/strong&gt; Upon draw completion, 95% of the CAKE prize pool is sent directly to the winner's wallet by the contract.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;5% Protocol Upkeep:&lt;/strong&gt; A flat 5% fee covers ongoing Chainlink VRF and Automation operational costs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Minimum Ticket Threshold (Anti-Lock):&lt;/strong&gt; If a round closes with fewer than &lt;strong&gt;5 tickets&lt;/strong&gt;, the contract skips the draw and automatically triggers a refund mechanism so user funds can never sit trapped in an under-subscribed round.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Inspect the Code &amp;amp; Live App
&lt;/h2&gt;

&lt;p&gt;Everything on the protocol side is open for verification on BscScan:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live dApp (Win98 UI):&lt;/strong&gt; &lt;a href="https://retrolottery98.com" rel="noopener noreferrer"&gt;https://retrolottery98.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smart Contract (BSC Mainnet):&lt;/strong&gt; &lt;code&gt;0xCec1F2845C979D19d1fD9cAf06C6BDC58D8EE57B&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verified Solidity Source:&lt;/strong&gt; &lt;a href="https://bscscan.com/address/0xCec1F2845C979D19d1fD9cAf06C6BDC58D8EE57B#code" rel="noopener noreferrer"&gt;https://bscscan.com/address/0xCec1F2845C979D19d1fD9cAf06C6BDC58D8EE57B#code&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to poke around the Windows 98 interface or review the Solidity contract on BscScan, I'd appreciate any technical feedback on the UX, gas efficiency, or Chainlink VRF v2.5 / Automation setup.&lt;/p&gt;

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