Skip to content

cryption-network/B4real-smart-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fixed-apr-staking-pool

Install dependencies

To install dependencies, run npm i on command line.

Compiling Contracts

To compile contracts, first install dependencies. Run npm run compile on command line

Deployment of contracts

Add PRIVATE_KEY and ETHERSCAN_KEY environment variables. PRIVATE_KEY variable will be deployer address for smart contract deployment. ETHERSCAN_KEY variable is used for smart contract verification on block explorer.

Deployment scripts of smart contracts can be found under scripts folder. Refer package json for deployement of contracts on mumbai matic testnet and polygon network.

Run tests

To run test-case for StakingPoolUpdatableFixedAPR contract, execute below on command line :

npx hardhat test test/deploy_staking_pool_updateable_fixed_apr.js

To run test-case for StakingPoolUpdatableFixedAPRWhitelisting contract, execute below on command line :

npx hardhat test test/deploy_staking_pool_fixed_apr_updateable_merkle.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published