SuperNeko is a game where your skill directly determines the quality of your swap
SuperNeko reimagines the DeFi user experience by transforming a standard token swap into a fun, skill-based game. Instead of just clicking "Swap" on a static interface, users initiate a trade and are then dropped into a "Bounce Classic" style level as our hero, SuperNeko. The gameplay is directly tied to the financial outcome:
The Goal: Navigate SuperNeko through the level to reach the "Exit Portal."
Slippage Spikes: Avoid red obstacles. Each one you hit represents market slippage and slightly worsens your final swap rate.
Liquidity Gems: Collect yellow gems. Each one represents the 1inch Pathfinder finding a more efficient route, improving your final swap rate.
SuperNeko was built from the ground up during the ETHGlobal hackathon, combining standard web technologies with powerful DeFi APIs.
Frontend & Game Engine: The entire game is built on HTML5 Canvas with vanilla JavaScript, providing a lightweight and universally accessible experience with no installs required. We used Tailwind CSS for rapid UI styling of the swap interface and game overlays.
Blockchain & Wallet Integration: We use the ethers.js library to connect to the user's browser wallet (like MetaMask). This handles wallet connection, fetching the user's address, and prompting the user to sign the final swap transaction.
DeFi Integration (The Core): The project is powered by the 1inch Aggregation Protocol API.
1inch Spot Price API: To fetch the initial, best-case-scenario quote for the token swap, which sets the player's starting "score."
1inch Swap API: After the game is won, we use this API to generate the final transaction data based on the player's performance. This data is then passed to the user's wallet via ethers.js for secure, on-chain execution.