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

Function withdrawLP2MasterChef

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

Source from the content-addressed store, hash-verified

110}
111
112const withdrawLP2MasterChef = async () => {
113 const tx = await masterchefContract.withdraw(1, lpBalance.toString(), overrides)
114 tx.wait(1);
115 console.log(chalk.green(`Successfully withdraw LP token from masterchef`));
116 return tx;
117}
118
119const removeLPFromRouter = async () => {
120 const tx = await routerContract.removeLiquidity(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected