From 87572cd499f84dbf08c3c31e542ed12ecc8a7cbe Mon Sep 17 00:00:00 2001 From: Alexey Date: Tue, 17 Dec 2019 02:59:10 +0300 Subject: [PATCH] fix --- src/relayController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relayController.js b/src/relayController.js index ab2fec7..fea3dc9 100644 --- a/src/relayController.js +++ b/src/relayController.js @@ -101,7 +101,7 @@ withdrawQueue.process(async function(job, done){ gas += 50000 const ethPrices = fetcher.ethPrices - const { isEnough, reason } = isEnoughFee({ gas, gasPrices, currency, amount, refund, ethPrices, fee: toBN(fee) }) + const { isEnough, reason } = isEnoughFee({ gas, gasPrices, currency, amount, refund: toBN(refund), ethPrices, fee: toBN(fee) }) if (!isEnough) { console.log(`Wrong fee: ${reason}`) done(null, {