diff --git a/bots/wallet/bot.js b/bots/wallet/bot.js index 05448e9e9e..b796fe32d5 100644 --- a/bots/wallet/bot.js +++ b/bots/wallet/bot.js @@ -5,7 +5,8 @@ function calculateFee(n, tx) { } var gasMultiplicator = Math.pow(1.4, n).toFixed(3); - return web3.fromWei(web3.eth.gasPrice * gasMultiplicator * estimatedGas, "ether"); + var weiFee = web3.eth.gasPrice * gasMultiplicator * estimatedGas; + return parseFloat(web3.fromWei(weiFee, "ether")).toFixed(7); } function calculateGasPrice(n) {