Skip to content

Latest commit

 

History

History
53 lines (45 loc) · 2.2 KB

README.md

File metadata and controls

53 lines (45 loc) · 2.2 KB

Backend Install


Deploying YF_LP

🔧 Preconfiguration

  1. Install dependencies in project directory(working with node v10.19.0)
    npm i
  2. Install truffle globally
    npm i -g truffle
  3. Rename .env_example to .env and fill PRIVATE_KEYS&DEV_ADDRESS (rest later)
  4. Compile contracts
    truffle compile


📃 Instructions to deploy on ETH

  1. Get LP Token address(instructions or in Masterclass video) and add it to .env LP_TOKEN_ADDRESS
  2. In .env fill INFURA_KEY (instruction)
  3. Get Test Rinkeby ETH link
  4. Check the latest block on Rinkeby link
  5. Add to that number ~1000 blocks and put this number in .env START_BLOCK
  6. In .env END_BLOCK add higher number than START_BLOCK (e.g. 1M higher)
  7. Optionally edit also TOKENS_PER_BLOCK & ALLOCATION_POINT (More info in Masterclass video)
  8. Migrate contracts to ETH
    truffle migrate --reset --network rinkeby
    ...and then follow log instructions


📃 Instructions to deploy on BSC

  1. Get Test BNB link
  2. Create&Add liquidity pool on PancakeSwap
    truffle exec scripts/create_lp.js --network bsc_testnet
    ...and then follow log instructions
  3. Migrate Contracts to BSC
    truffle migrate --reset --network bsc_testnet
    ...and then follow log instructions

Frontend Install


YF_LP on Rinkeby & BSC

  1. Visit backend README.md 1st, then come back
  2. Install dependencies with yarn (working with: 1.22.10, to install type: npm i -g yarn@1.22.10):
    yarn add
  3. Run dApp:
    yarn start
  4. If you run dApp on BSC, remember to Setup BSC in your MetaMask HowTo# CASAdePERO