Skip to content

FairBet contract code repository, suitable for EVM chains.

Notifications You must be signed in to change notification settings

FairBetClub/fairbet-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fairbet-contract

FairBet contract code repository, suitable for EVM chains.

Overview

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.

Key contract introduction

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

Contact

FairBet Homepage: https://www.fairbet.social/

Telegram Group: https://t.me/fairbetcommunity ( admin: https://t.me/fairbet_betting )

Twitter: https://twitter.com/FairBetClub

Development

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

Testing

Test contracts with Hardhat and generate gas report using hardhat-gas-reporter:

yarn run hardhat test

About

FairBet contract code repository, suitable for EVM chains.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published