hackquest logo

Super Squares

Super Squares is an onchain version of the popular SuperBowl Game Squares , featuring tradeable NFTs that represent each Square , supporting NBA and NFL events , adding NCAA March Madness and World Cup in the future.

Videos

Tech Stack

Next
Python
Solidity
Node
Web3

Description

SuperSquares

One-Line Description

A fully on-chain sports prediction platform where users buy squares on a 10x10 grid, with winners determined by real-time game scores and automatic crypto payouts.


Overview

SuperSquares is a decentralized sports prediction platform built on ApeChain that brings the classic "squares" game fully on-chain. Users purchase squares on a 10x10 grid, each representing a unique combination of score digits. As the game progresses, winners at each scoring checkpoint (quarters for NBA, periods for NFL) receive instant, automatic payouts—no claiming required.

The platform eliminates the trust issues of traditional squares games by leveraging blockchain technology for transparent ownership, provable randomness for fair digit assignment, and automated smart contract execution for payouts.


Problem Statement

Traditional sports squares games suffer from several issues:

  • Trust: Participants must trust a central organizer to collect funds and distribute winnings fairly

  • Transparency: No verifiable way to ensure random number assignment wasn't manipulated

  • Delays: Winners often wait hours or days to receive payouts

  • Liquidity: Once you buy a square, your funds are locked with no secondary market

  • Accessibility: Limited to social circles and manual coordination


Solution

SuperSquares solves these problems through:

  1. On-Chain Ownership: Each square is an ERC-721 NFT, providing verifiable proof of ownership

  1. Provable Randomness: Pyth Network's Entropy oracle assigns row/column digits, ensuring fair and tamper-proof randomness

  1. Automated Payouts: Smart contracts automatically send winnings directly to the NFT owner's wallet at each checkpoint

  1. Built-in Marketplace: Trade squares before the game—buy low, sell high based on early score predictions

  1. Multi-Currency Support: Pay with native APE or USDC.e

  1. Token Gating: Pool creators can restrict access using ERC-20, ERC-721, or ERC-1155 tokens


Key Features

For Players

  • Simple UX: Connect wallet via social login (X/Twitter, Google, Apple, Discord) or crypto wallet

  • Real-Time Updates: Live score tracking with automatic winner determination

  • Instant Payouts: Winnings sent directly to your wallet—no claiming required

  • NFT Ownership: Your squares are tradeable NFTs with on-chain metadata

  • Secondary Market: Buy and sell squares on the integrated marketplace

For Pool Creators (Creator Economy)

  • Custom Pools: Create pools for any supported game with custom pricing

  • Flexible Payouts: Configure payout percentages for each checkpoint (default: 20%/20%/20%/40%)

  • Token Gating: Restrict pools to specific communities (NFT holders, token holders)

  • Creator Fees: Earn 1% of the total pot as the pool creator

Technical Innovation

  • UUPS Upgradeable Contracts: Future-proof architecture with strict access control

  • Relayer Architecture: Automated backend service handles score updates and payouts

  • Sportsradar Integration: Real-time sports data from trusted API providers

  • Multi-Sport Support: NBA and NFL supported, with World Cup and March Madness coming soon


Technical Architecture

Smart Contracts (Solidity ^0.8.20)

Contract

Purpose

PoolFactory

Creates new pools, manages global config, tracks all pools

Pool

Individual pool lifecycle, square purchases, score updates, payout distribution

SquaresNFT

ERC-721 NFTs for squares with on-chain metadata and batch transfers

SquaresMarketplace

Secondary market for listing, bidding, and trading squares

Pool Lifecycle

Draft → Published → Locked → NumbersAssigned → InProgress → Settled

                                                      ↓

                                                 (Cancelled if not full)

Tech Stack

  • Blockchain: ApeChain (EVM-compatible L2)

  • Smart Contracts: Solidity, OpenZeppelin, Hardhat

  • Randomness: Pyth Network Entropy

  • Frontend: Next.js 14, React 18, TypeScript, Thirdweb SDK

  • Backend: Node.js relayer, Supabase (indexing/storage)

  • Sports Data: Sportsradar API, ESPN API


Fee Structure

Fee Type

Amount

Recipient

Creator Fee

1%

Pool creator

Protocol Fee

1% per checkpoint

Protocol treasury

House Fee

0-5% (configurable)

Platform


Security Features

  • UUPS Upgradeable Proxies: Controlled upgrade path with role separation

  • Reentrancy Protection: All payment functions protected

  • Provable Randomness: Pyth Entropy ensures no manipulation of digit assignment

  • Lock Mechanism: Pools lock 2 minutes before kickoff to prevent last-second gaming

  • Emergency Pause: Admin can pause pools in case of issues

  • Automatic Refunds: Unfilled or cancelled pools automatically refund participants


Deployed Contracts (ApeChain Mainnet)

Contract

Address

PoolFactory

0xC7015134Ec32Bc25D28C7c2E63a22380e4FA15b6

SquaresNFT

0x0d56168f0635E07F5d993AbAeD025c3275D0338E

Marketplace

0xE008AA486d2AabE6a000612C38B7B2Bf522fC017

Pool Implementation

0x7dd810110cE755056B1f0d07D752096366d2A7A8


Current Status

  • Live on ApeChain Mainnet ( Arbitrum One coming soon)

  • Supporting: NFL (Super Bowl), NBA (full season)

  • Coming Soon: World Cup, March Madness


Links

  • Website: https://supersquares.fun

  • Twitter/X: https://x.com/ClutchMarkets

  • Block Explorer: https://apescan.io


Team

Built with ApeCoin ecosystem support, powered by Pyth Network for randomness, and Sportsradar for real-time sports data.


Why ApeChain?

SuperSquares chose ApeChain for its:

  • Fast, low-cost transactions ideal for micro-payments

  • Strong community of engaged users

  • Native APE token integration

  • EVM compatibility for robust tooling


Future Roadmap

  1. More Sports: March Madness brackets, World Cup 2026, MLB, NHL

  1. AI Agent: Automated pool creation and management

  1. Mobile App: Native iOS/Android experience

Progress During Hackathon

Feb 5th: V1 Build complete Feb 5th: Deployed on ApeChain

Fundraising Status

N/A
Team Leader
SSimple -
Project Link
Sector
GamingDeFiNFT