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

Function removeLPFromRouter

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

Source from the content-addressed store, hash-verified

117}
118
119const removeLPFromRouter = async () => {
120 const tx = await routerContract.removeLiquidity(
121 tokens["kcc-testnet"].BASE_TOKEN,
122 tokens["kcc-testnet"].USDT,
123 lpBalance.toString(),
124 '0',
125 '0',
126 wallet.address,
127 Date.now() + 1000 * 60 * 10,
128 overrides
129 );
130 tx.wait(1);
131 console.log(chalk.green(`Successfully remove liquidity KCS/USDT `));
132 return tx;
133}
134
135const main = async () => {
136

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected