diff --git a/arb-bot.js b/arb-bot.js index 6fc7428b..89f7580f 100755 --- a/arb-bot.js +++ b/arb-bot.js @@ -127,8 +127,7 @@ const arbRound = async options => { { orderHash : options.orderHash, orderOwner : options.orderOwner, - orderInterpreter: options.orderInterpreter, - shuffle : options.shuffle + orderInterpreter: options.orderInterpreter } ); await clear( @@ -148,7 +147,6 @@ const main = async argv => { const rpcs = [...options.rpc]; let roundGap = 10000; let rpcTurn = 0; - let shuffle = 0; if (options.repetitions) { if (/^\d+$/.test(options.repetitions)) repetitions = Number(options.repetitions); @@ -169,7 +167,6 @@ const main = async argv => { // eslint-disable-next-line no-constant-condition if (repetitions === -1) while (true) { options.rpc = rpcs[rpcTurn]; - options.shuffle = shuffle; try { await arbRound(options); console.log("\x1b[32m%s\x1b[0m", "Round finished successfully!"); @@ -181,13 +178,10 @@ const main = async argv => { } if (rpcTurn === rpcs.length - 1) rpcTurn = 0; else rpcTurn++; - if (shuffle === 3) shuffle = 0; - else shuffle++; await sleep(roundGap); } else for (let i = 1; i <= repetitions; i++) { options.rpc = rpcs[rpcTurn]; - options.shuffle = shuffle; try { await arbRound(options); console.log("\x1b[32m%s\x1b[0m", `Round ${i} finished successfully!`); @@ -201,8 +195,6 @@ const main = async argv => { } if (rpcTurn === rpcs.length - 1) rpcTurn = 0; else rpcTurn++; - if (shuffle === 3) shuffle = 0; - else shuffle++; await sleep(roundGap); } }; diff --git a/docs/html/curve.js.html b/docs/html/curve.js.html index 218f30e2..d2a276cc 100644 --- a/docs/html/curve.js.html +++ b/docs/html/curve.js.html @@ -290,7 +290,7 @@
_eval
_shuffle
shuffle