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)