YieldBall.eth

YieldBall.eth: No-loss DeFi Pachinko game using ENS-driven physics & Yellow Network state channels.

YieldBall.eth

Created At

HackMoney 2026

Winner of

ENS

ENS - Integrate ENS

Prize Pool

Project Description

YieldBall.eth is a decentralized "No-Loss" arcade experience that transforms passive DeFi yield farming into an active, skill-based competition. Instead of a static dashboard, users deposit 100 USDC into an Aave V3 Vault, where the real-time interest accrued becomes "Yield Balls" on a cosmic Pachinko board. We introduced a novel primitive called "Identity-Driven Physics." By leveraging ENS Text Records, the game engine dynamically recalibrates physics variables (Mass, Restitution, and Multipliers) based on the user's .eth name. Every ball drop is a high-frequency interaction secured via Yellow Network State Channels, allowing for arcade-level speed and sub-millisecond feedback with on-chain cryptographic integrity. In YieldBall, players never risk their principal; they only play to multiply and claim the yield they generate, creating a fun, low-risk onboarding tool for the next generation of DeFi users.

How it's Made

The project is built on Base Sepolia using a React 18 frontend and the Matter.js physics engine. To solve the blockchain gaming trilemma of latency vs. security, we integrated the Yellow Network SDK to create a high-frequency state channel. Every peg collision is treated as a signed micro-transaction, allowing the game to run at 60FPS while preventing client-side score tampering. The ENS integration uses Wagmi hooks to fetch the yieldball.class text record, which is fed directly into the physics engine to scale body properties (like mass for the "Whale" class or restitution for the "Degen" class) in real-time. For the DeFi backend, we built a vault that simulates Aave V3 yield generation, which is then settled via a custom Solidity contract on Base. A particularly "hacky" but effective solution was the implementation of "invisible static stoppers" and "anti-stall jiggle logic" within Matter.js to prevent ball-sticking bugs common in browser-based physics. The UI was polished using ReactBits components, including a Galaxy Background, Shiny Text, and a custom Electric Border for the claiming page to provide high-fidelity visual feedback for on-chain events.

background image mobile

Join the mailing list

Get the latest news and updates

YieldBall.eth | ETHGlobal