/LP-Betting-Pools

Smart contracts for decentralized betting games, powered by Chainlink's VRF.

Primary LanguageSolidityMIT LicenseMIT

Betting games with yield generation for LPs - powered by Chainlink

License: MIT

Overview

The repository contains contracts for decentralized betting games, powered by Chainlink's VRF. The betting games contracts are paired with House Pools, where LPs can generate yield by providing liquidity for payouts to the players.

Installation

$ yarn

Compile

$ yarn compile

This task will compile all smart contracts in the contracts directory. ABI files will be automatically exported in artifacts directory.

Testing

$ yarn test

Code coverage

$ yarn coverage

The report will be printed in the console and a static website containing full report will be generated in coverage directory.

Code style

$ yarn prettier

Verify & Publish contract source code

$ npx hardhat  verify --network mainnet $CONTRACT_ADDRESS $CONSTRUCTOR_ARGUMENTS