/harvest-bsc

Primary LanguageSolidityMIT LicenseMIT

Harvest Finance - Binance Smart Chain

The people are hungry and only solution for Chad the Farmer was to increase his output. Chad put down his old pastries, Ganache and Truffle, and picked up his Hardhat. For Chad knew, it was time to build. Cross-chain Yield Farming was Chad's newest innovation in giving bread to the people.

Installation

  1. Install dependencies with Yarn
yarn install
  1. Compile contracts & build artifacts with Hardhat
yarn compile
  1. Run tests with Waffle
yarn test
yarn test test/MasterChefStrategy.test.ts

Usage

  • Deploy the contracts
npx hardhat --network testnet deploy

yarn testnet:deploy
yarn mainnet:deploy
  • Run a script
npx hardhat --network testnet run scripts/my_script.ts

yarn testnet:run scripts/my_script.ts
yarn mainnet:run scripts/my_script.ts
npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1" "Constructor argument 2"

yarn testnet:verify 0x314D178737D8F63a53f362a2145BBC2272537A02 "0xff3b7e5Ff30fCd84CC2351f56F3e20397e54E52D" "0x935f7Bc1ba9015cEbaE8d98D4B5F8Dae30a2E84d"
yarn mainnet:verify 0xbF39886B4F91F5170934191b0d96Dd277147FBB2

References

Tokens

PancakeSwap

Venus Protocol

Binance Bridge Contracts