Skip to content

jefedeoro/CASAdePERO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 

Repository files navigation


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

About

Liquidity mining site for LP tokens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published