reduce gas limits

This commit is contained in:
Alexey 2021-02-15 14:07:15 +03:00 committed by Alexey Pertsev
parent 0f8d1cf010
commit fe98799786
2 changed files with 4 additions and 4 deletions

View File

@ -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',
}

View File

@ -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: '' })