diff --git a/src/config.js b/src/config.js index 852c45e..4393e02 100644 --- a/src/config.js +++ b/src/config.js @@ -20,8 +20,8 @@ module.exports = { rewardAccount: process.env.REWARD_ACCOUNT, gasLimits: { [jobType.TORNADO_WITHDRAW]: 350000, - [jobType.MINING_REWARD]: 800000, - [jobType.MINING_WITHDRAW]: 800000, + [jobType.MINING_REWARD]: 455000, + [jobType.MINING_WITHDRAW]: 400000, }, - minimumBalance: 1000000000000000000, + minimumBalance: '1000000000000000000', } diff --git a/src/healthWatcher.js b/src/healthWatcher.js index 55f2ed3..6a8f02f 100644 --- a/src/healthWatcher.js +++ b/src/healthWatcher.js @@ -14,7 +14,7 @@ async function main() { const balance = await web3.eth.getBalance(address) if (toBN(balance).lt(toBN(minimumBalance))) { - throw new Error(`Not enough balance, less than ${fromWei(minimumBalance.toString())} ETH`) + throw new Error(`Not enough balance, less than ${fromWei(minimumBalance)} ETH`) } await redis.hset('health', { status: true, error: '' })