I Built a Non-Custodial CAKE Lottery with a Windows 98 UI and Chainlink VRF v2.5

i-built-a-non-custodial-cake-lottery-with-a-windows-98-ui-and-chainlink-vrf-v2.5

Modern Web3 apps tend to look the same: heavy dark-mode templates, nested modals, and sluggish JS bundles. With Retrò Lottery 98, I wanted to build something deliberately different—a fast, static Windows 98 desktop interface wired directly to a non-custodial, autonomous smart contract on BNB Smart Chain Mainnet.

No user accounts, no backend database, no off-chain RNG, and no manual admin button to trigger draws.

Here is a technical breakdown of how the frontend and on-chain logic fit together.

Why a Windows 98 Desktop UI?

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

  • Static & Lightweight: The frontend is hosted on Cloudflare Pages, keeping load times fast and eliminating centralized backend dependencies.
  • Direct Wallet-to-Contract Flow: 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.

Smart Contract Architecture

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

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 Chainlink VRF v2.5 (funded with native BNB), making every draw cryptographically verifiable on-chain and impossible to predict or manipulate—even by the deployer.

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

3. Pool Economics & Anti-Lock Refund Logic

To keep the rules transparent and prevent edge-case fund locks:

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

Inspect the Code & Live App

Everything on the protocol side is open for verification on BscScan:

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.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
what-is-ganttpro?-uses,-features-and-pricing

What Is GanttPRO? Uses, Features and Pricing

Next Post
do-you-really-understand-how-the-process-works?

Do You Really Understand How the Process Works?

Related Posts