
SukaTani
Pixel onchain game!
About
The problem it solves **The problem** Mass adoption of onchain games remains low due to technical UX barriers, gas fees, and opaque game economies. New users are often forced to navigate wallets, manage seed phrases, and top-up gas just to attempt gameplay, creating a high barrier to entry that leads to significant user drop-off. **Sukatani** solves these issues by delivering a seamless user experience supported by transparent infrastructure on Base: - **Gas‑less onboarding** Leveraging the **Base Paymaster**, we subsidize gas fees for Coinbase and OnchainKit users. This allows players to start the game immediately without requiring ETH for transaction costs. - **Transparency & Verified Ownership** All core actions are recorded fully onchain to ensure clear provenance and absolute user ownership. We utilize standard protocols: **STKN (ERC-20 utility token)**, **FarmPlot (ERC-721 land ownership)**, and **Seed & Harvest items (ERC-1155 assets)**. This ensures all assets are verifiable by the public. - **Economic Sink & Inflation Control** The STKN token has tangible utility; it is required to unlock plots and purchase seeds. This mechanism creates a necessary economic sink to help maintain token value stability over time. - **Integrated Mini DeFi** Players can swap assets securely directly within the game via **PairSwapV2**. This connects the game economy to the broader onchain ecosystem through available liquidity pairs: **ETH/IDRX, ETH/STKN, and IDRX/STKN.** - **Multi-Platform Access** SukaTani is designed for maximum distribution and is accessible across **Base**, **Farcaster**, and **Web Based**. **The Strategic Role of IDRX** **IDRX** serves as the **core stablecoin** within the SukaTani economy: **Stable Pricing:** It is used as the standard for purchasing STKN and seeds, offering players a stable and understandable price point. **Local-Global Bridge:** It acts as a seamless gateway for Indonesian users while functioning as a liquid stable asset for international players, bridging local familiarity with global accessibility.
How it's made
Challenges we ran into **Challenges** - **Ensuring Provable Fairness & State Consistency** The primary challenge was implementing a harvest mechanism that is both tamper-proof and consistent. Randomness cannot be easily manipulated, yet the process involves asynchronous blockchain transactions. we solved this by implementing a **Commit-Reveal scheme combined with Chainlink VRF**. Additionally, we built a robust slot/pending state validation system to ensure the user's progress remains consistent between the UI and the onchain state. - **Economic Stability & Swap Integrity** Integrating a mini DeFi ecosystem (PairSwapV2) required strict safeguards. The challenge was to ensure that the exchange rates between **ETH ↔ STKN ↔ IDRX** remained consistent and secure. we had to implement logic to prevent slippage and ensure users are not disadvantaged during volatility or low liquidity periods within the game loop. - **Synchronizing Real-Time Gameplay **with Onchain Logic Bridging a real-time game engine (**Phaser**) with the inherent latency of blockchain transactions was complex. The goal was to keep the UI responsive ("game-feel") while waiting for block confirmations. I achieved this by synchronizing the local game state with onchain events, ensuring reliable transaction feedback without breaking the seamless experience. - **Implementing Robust Gas-less Onboarding** Creating a truly friction-free experience for non-Web3 users was critical. Integrating the **Base Paymaster** via OnchainKit to subsidize gas fees required careful handling to ensure stability. The challenge was to abstract the gas complexities for Coinbase Wallet users while maintaining strict transaction security standards.