FutureCast is a decentralized market where users can stake on a question and get exciting and high returns. We can provide you more returns with the help of external network staking clients. What are you waiting for? Lets stake some Matic with minimal gas fee!๐ฅณ
- An owner:
- can post a new question
- can set start time & end time
- will get the rewards at the end
- A user:
- can stake on an option
- Pay some validation+platform fee, which increases as we reach closer to the end time
- Can change their option at any time
- Get reward after resolution phase
- can change their option by paying a small amount of fee
- can stake on an option
- Validators:
- Can validate on an option
- Get rewards if their option turns out to be correct
- Right users will always get profit
- Right validators will always get profit
- Owner will get their benefit
- Contract states: Betting, inactive, reporting, resolved
- External staking through smart contract, ps: more profit to everyone
- Deployment on matic
- Compatible with metamask and portis
The platform fee increases with degree 5 polynomial function as the number of days increases, explained by the given formula y = k*x^5
, where x
is the number of days and k
is a normalizing constant.
- Smart contract:
.
โโโ contracts
โ โโโ Factory
โ โ โโโ EIP1167_Factory.sol
โ โโโ Question
โ โ โโโ EIP1167_Question.sol
โ โโโ Utils
โ โโโ CloneFactory.sol
โ โโโ console.sol
โ โโโ Formulas.sol
โ โโโ SafeMath.sol
โโโ hardhat.config.js
โโโ helper
โ โโโ components-ganache.js
โ โโโ components-hre.js
โโโ integ
โ โโโ info.json
โโโ migrations
โ โโโ 1_local_node.js
โ โโโ 2_any.js
โโโ package.json
โโโ README.md
โโโ test
โโโ 1_EIP1167_Tests.js
โโโ 2_Require_Tests.js
โโโ 3_Random_market_Simulation.js
npm i
: Installationnpm run compile
: Compile the contractsnpm run test
: Run the testsnpm run node
: Run the local hardhat nodenpm run hh
: Deploy on local hardhat nodenpm run any
: Deploy on custom specified network
- Solidity by Juan Blanco: error messages in the editor
- Prettier - Code Formatter: formatting js files
Anupam Kumar |
Chinmay Sai Vemuri |
Saurabh Kumar Suryan |
Tushar Rohilla |
VIPIN K P |