Skip to content

AuroraLantean/Stellar-Soroban-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stellar-Soroban-demo

Installation

Install Rust

Install the target For Rust v1.85.0 or higher: rustup target add wasm32v1-none

Install Stellar CLI

cargo install --locked stellar-cli --features opt
echo "source <(stellar completion --shell zsh)" >> ~/.zshrc
stellar -V

Reference of Stellar Soroban Setup https://developers.stellar.org/docs/build/smart-contracts/getting-started/setup

Prediction Game Rules:

  • game commission_fee = (sum of game.values) * commission
  • game users_profit = sum of game.values - commission_fee
  • game total_wins = sum of winning choices
  • user claim amount = users_profit * sum of user's winning bet amounts / total_wins

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages