MCPcopy Create free account
hub / github.com/Bot80926/ethers-scripts / depositLP2MasterChef

Function depositLP2MasterChef

script-4-bonus-getting-on-dex/index.js:104–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102}
103
104const depositLP2MasterChef = async () => {
105 lpBalance = await lpToken.balanceOf(wallet.address)
106 const tx = await masterchefContract.deposit(1, lpBalance.toString(), overrides)
107 tx.wait(1);
108 console.log(chalk.green(`Successfully deposit LP token to masterchef`));
109 return tx;
110}
111
112const withdrawLP2MasterChef = async () => {
113 const tx = await masterchefContract.withdraw(1, lpBalance.toString(), overrides)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected