From ac1adc54bb2ebf6eac9f5df3244bd3db4f2c15c9 Mon Sep 17 00:00:00 2001 From: umeshraj1000 <78073302+umeshraj1000@users.noreply.github.com> Date: Sun, 2 Jan 2022 04:40:29 +0530 Subject: [PATCH] 1 line that was an instruction is commented. 1 instruction line was not commented and that was resulting in an error. --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 873336c..bde0297 100644 --- a/src/index.js +++ b/src/index.js @@ -324,7 +324,7 @@ async function trade(flashTokenSymbol, flashTokenAddress, arbTokenAddress, order // Calculate slippage const minReturnWtihSplippage = minReturnWithSlippage = (new web3.utils.BN(minReturn)).mul(new web3.utils.BN('995')).div(new web3.utils.BN('1000')).toString() - Perform Trade + // Perform Trade receipt = await traderContract.methods.getFlashloan( flashTokenAddress, // address flashToken, FLASH_AMOUNT, // uint256 flashAmount, @@ -403,4 +403,4 @@ playSound() // Check markets every n seconds const POLLING_INTERVAL = process.env.POLLING_INTERVAL || 3000 // 3 seconds -const marketChecker = setInterval(async () => { await checkMarkets() }, POLLING_INTERVAL) \ No newline at end of file +const marketChecker = setInterval(async () => { await checkMarkets() }, POLLING_INTERVAL)