Skip to content

yield farming - This protocol used to make money out of thin air

License

Notifications You must be signed in to change notification settings

Madjarx/exec-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

accd401 · Oct 8, 2023

History

1 Commit
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023
Oct 8, 2023

Repository files navigation

nvm Fork avalanche mainnet in a separate terminal:


npx hardhat node --fork https://api.avax.network/ext/bc/C/rpc  

** Feature Pay: **

npx hardhat pay --person michael --amount 2500 --origin VINEYARD_GRAPE_WINE_LP_STAKED --network local

available options for person: michael, matt, mukhtar, dan available options for origin: WINE, MIM, GRAPE, VINEYARD_GRAPE_WINE_LP_STAKED, VINEYARD_GRAPE_MIM_LP_STAKED, VINEYARD_MIM_WINE_LP_STAKED

*to-do/in-process: WINERY_GRAPE_STAKED; VINEYARD_GRAPE_STAKED

Flow commands:

1- Swap AVAX for MIM at TraderJoe:

  

npx hardhat swapnative --network local --protocol traderjoe --tokenin wavax --tokenout mim --amount 1000.0

  

2- Swap MIM for GRAPE at TraderJoe:

  

npx hardhat swaptokens --network local --protocol traderjoe --tokenin mim --tokenout grape --amount 20000.0

  

3- Add Liquidity to GRAPEMIMLP at TraderJoe:

  

npx hardhat addliquidity --network local --protocol traderjoe --token1 grape --token2 mim --amount1 4000.0 --amount2 2920.0

  

4- Deposit GRAPEMIMLP at the Vineyard:

  

npx hardhat deposit --network local --protocol grapefinance-vineyard --amount 1900.0 --liquiditypair grape-mim-lp

  

5.1. - Claim $WINE from the GRAPEMIMLP pool at the Vineyard:

  

npx hardhat poolclaim --network local --protocol grapefinance-vineyard --pool grapemimlp --amount 0

  

5.2. - Claim $WINE from NODE-WINE:

  

npx hardhat claim --network local --protocol grapefinance-winenode

  

5.3. - Claim $GRAPE from NODE-GRAPE:

  

npx hardhat claim --network local --protocol grapefinance-grapenode

  

6.1 - Stake $WINE at the Winery:

  

npx hardhat stake --network local --protocol grapefinance-winery --token wine --amount 1.0

  

6.2 - Stake $GRAPE at the Vineyard:

  

npx hardhat stake --network local --protocol grapefinance-vineyard --token grape --amount 10.0

  

7- Claim $GRAPE from the Winery: (CHECKED OK MAINNET) -- after claim there is a 12h lockup (2 epochs).

  

npx hardhat claim --network local --protocol grapefinance-winery

  

8- Buy GRAPE Node:

  

npx hardhat buynode --network local --protocol grapefinance-grapenode --node grape --amount 50.0

  

9- Buy WINE Node:

  

npx hardhat buynode --network local --protocol grapefinance-winenode --node wine --amount 0.5

  

Other available commands:

  

npx hardhat checkfunds --network local

  
npx hardhat mine --network local
npx hardhat journal --network local

Withdraw GRAPE-MIM-LP Liquidity at Vineyard

  

npx hardhat poolclaim --network local --protocol grapefinance-vineyard --pool grapemimlp --amount 10

  

Remove GRAPE-MIM-LP Liquidity at Trader Joe:

  

npx hardhat removeliquidity --network local --protocol traderjoe --liquiditypair grape-mim-lp --token1 grape --token2 mim --amount 100.0

  

Swap MIM for WINE at TraderJoe:

  

npx hardhat swaptokens --network local --protocol traderjoe --tokenin mim --tokenout wine --amount 1000.0

  

Withdraw GRAPE staked at the VINEYARD:

npx hardhat poolclaim --network local --protocol grapefinance-vineyard --pool vineyard --amount 10

Withdraw WINE staked at the WINERY:

npx hardhat withdraw --network local --protocol grapefinance-winery --pool winery --amount 0.5

Flows:


  

npx hardhat grapeFlow05 --network local

  

  

npx hardhat simGrapeFlow05 --network local

  

About

yield farming - This protocol used to make money out of thin air

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published