Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 2.24 KB

README.md

File metadata and controls

55 lines (37 loc) · 2.24 KB

prediction-game

SolPredict - Prediction Game deployed on the Solana Blockchain

Introduction

SolPredict is my first project which I am developing to learn Rust + Solana Blockchain tech.

Devnet

Currently SolPredict is deployed on the Solana Devnet
The current price displayed on the game in the frontend is pulled from the game's state on the blockchain.
With 5 game cranks running on one IP address, the rate limiting which could occur requires a slow rate of transactions to update the game state.
This can be remidied by pulling the oracle data for each frontend client (live price feed updates).

Submodules

sdk - Typescript SDK
frontend - VueJS Frontend
server - NodeJS Host for Frontend/Aggr and API
crank - Typescript Crank Bot

How does it work?

The idea is heavily inspired by BSC PancakeSwap's Prediction Game
Speculate if the price is going to be higher/lower than the starting price
Round Length by default is 5 minutes

the first half of the round is unlocked for placing predictions
the second half of the round is locked until the end
at the end of the round each prediction is settled

winning predictions gain a % of the losing pools' total amount

placing a prediction when there is a claimable amount, subtracts from the claimable before requesting for more quote asset to be deposited

Checklist

  • Solana Devnet
  • Pyth, Chainlink, Switchboard Oracles (feel free to request more solana oracles through github issues)
  • Crank Code
  • Airdrop Devnet USDC
  • Claim Winnings
  • Admin UI
  • Dedicated RPC
  • UX/UI Developer

Website

https://devnet.solpredict.io --- not running, don't have a reliable RPC

image image image