Token Price Betting Game on zkSync using Chainlink DataFeed and ChainLink Automation
Features Token Price Betting: Bet on the price movement of tokens on the zkSync chain. Time Intervals: Place bets for specific time intervals (e.g., 5 minutes). Live Price Feeds: Utilize Chainlink Data Feeds for accurate and reliable price information. Automation: Use Chainlink Automation to fetch prices and determine bet outcomes. Rewards Distribution: Winners are rewarded based on the bet outcomes.
Usage Place a Bet:
Users can place bets on the price movement (increase or decrease) of a specific token. Specify the token, bet amount, and the time interval (e.g., 5 minutes). Fetch Live Prices:
The system automatically fetches live token prices using Chainlink Data Feeds at the end of the betting interval. Determine Outcome:
Chainlink Automation is used to determine the outcome of the bets based on the fetched prices. Winners are identified based on the correct prediction of the price movement. Distribute Rewards:
Rewards are distributed to the winners according to the predefined reward structure.
Smart Contracts Betting Contract: Manages bets, fetches prices, and determines outcomes. Reward Contract: Distributes rewards to the winners.
Built With
- automation
- chainlink
- next
Log in or sign up for Devpost to join the conversation.