FairBet contract code repository, suitable for EVM chains.
FairBet V2.0 is a deposit mode prediction platform. Users need to deposit corresponding tokens into FairBet's contract before participating in the prediction game. When participating in the product in the future, they only need to send signature information and do not need to interact on the chain every time. This can enhance user experience and save gas fees, thereby facilitating and attracting users to participate in prediction games.
Contract | Intro |
---|---|
Vault.sol | FairBet core contract for betting products includes various functions of issuing products and participating in products |
FBET.sol | FBET Token contract code |
Ticket.sol | FairBet platform has expanded usage rights based on ERC-1155, making it convenient for users to rent their NFTs to others in different quantities and periods, thereby obtaining rental income without losing ownership |
FairBet Homepage: https://www.fairbet.social/
Telegram Group: https://t.me/fairbetcommunity ( admin: https://t.me/fairbet_betting )
Twitter: https://twitter.com/FairBetClub
Install dependencies via Yarn:
yarn install
Setup Husky to format code on commit:
yarn prepare
Compile contracts via Hardhat:
yarn run hardhat compile
Automatically upgrade dependencies with yarn-up:
yarn upgrade-dependencies
Test contracts with Hardhat and generate gas report using hardhat-gas-reporter
:
yarn run hardhat test