Smart Contracts on Solana

Job ID: 31940586

Budget: $250 – $750 USD

System:
A prediction bet platform which users can place bets using SOL in many different pairs
BTC/USD
ETH/USD
SOL/USD

It must provide liquidity for each event by adding bets in both sides (prize pools) of the smart contract.

Game logic:
Every %X minutes a new round starts
As the round starts
Fetch asset price from an oracle
System will place bets automatically in both UP and DOWN pools with a random amount between (a% and b%) from the platform bankroll (total value available).
User’s may place bets in which direction the price will go, options are UP or DOWN each one with its own prize pool.
At the end of the round winners are paid as below, discounting a Y% fee as platform commission.
If the price is higher, the down prize pool is paid to the winners proportionally
If the price is equal, the round is cancelled and bets are paid back
If the price is lower, the up prize pool is paid to the winners proportionally
As the round ends another one starts.

You can check pancakeswap.finance/prediction

There's a documentation page that should make it clear what is the base of the structure
Related categories: Blockchain Solidity Smart Contracts Solana