project screenshot 1
project screenshot 2
project screenshot 3

Game Blitz

A real time Gaming prediction protocol built on Arbitrum Staylus

Game Blitz

Created At

ETHGlobal Brussels

Winner of

Circle - Best Application for Crypto Capital Markets

Arbitrum - Stylus Project 1st place

Project Description

Game Blitz is an on-chain gaming protocol that calculates gamers winning chances for a tournament in real time.

This means that gamers gameplay will update their predictions to win a gaming competition.

Theses predictions are then used to calculate their odds betting value at each point in time allowing their supporters to buy their challenge token.

How it's Made

The project leverages embedded wallets with social logins, allowing any user to participate without needing a preexisting wallet. Users simply sign into our app with their email, and a wallet is automatically created for them. This wallet can be funded using an onramp service, which enables the purchase of USDC tokens with a credit card.

Once logged in, users can participate in the game by depositing their tokens into a liquidity pool. These tokens are locked in the pool until the challenge is completed. This liquidity pool utilizes hooks to create a unique mechanism that supports the betting process.

Here's how it works:

Challenge Tokens: Users buy challenge tokens from a USDC/CHALLENGE liquidity pool when they place a bet on a specific gamer.

Metadata and Betting: This process is managed using a pool hook. When a user places a bet, the hook receives the user's chosen gamer's address in the calldata. The hook decodes this address and stores the relationship between the purchased tokens and the gamer's address, ensuring that the tokens are linked to the specific participant.

Unified Pool and Liquidity: By using a single liquidity pool, we eliminate the need to create separate tokens for each gamer, solving the liquidity problem. This also encourages supporters to buy and hold the challenge tokens, as these tokens represent shares in the winning pool, which consists of the combined liquidity from all gamers.

Dynamic Odds and Fees: As the competition progresses, the odds of each gamer winning change. To reflect this in the challenge token price, we apply dynamic fees using pool hook. The hook determines the fee by retrieving the probability of the gamer winning. This probability is retrieved based on the gamer's address sent in the metadata. The probability is used to apply a higher fee for trades supporting gamers with higher winning odds. All of this occurs on-chain, and the additional fees are redirected to the pool, increasing the winning pool's value.

Probability Calculation: The probability of a gamer winning is calculated using historical data, including all games played, scores, and completion times. This computation is performed efficiently on an Arbitrum Stylus contract, which processes the data and publishes the results on-chain. The liquidity pool dynamically checks this value to adjust the swap fees accordingly.

By implementing this system with pool hooks, we ensure a smooth and fair betting process, maintaining liquidity and incentivizing users to participate and hold their tokens.

background image mobile

Join the mailing list

Get the latest news and updates