From 33b6561ffe57ae2426b6377973ecc520dacc72d9 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 10 Mar 2021 23:14:53 +0400 Subject: [PATCH] update withdraw limits --- src/config.js | 1 + src/worker.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index a8bf0cc..4b80a3f 100644 --- a/src/config.js +++ b/src/config.js @@ -21,6 +21,7 @@ module.exports = { tornadoGoerliProxy: '0x454d870a72e29d5E5697f635128D18077BD04C60', gasLimits: { [jobType.TORNADO_WITHDRAW]: 390000, + WITHDRAW_WITH_EXTRA: 420000, [jobType.MINING_REWARD]: 455000, [jobType.MINING_WITHDRAW]: 400000, }, diff --git a/src/worker.js b/src/worker.js index 6bae613..f660fa3 100644 --- a/src/worker.js +++ b/src/worker.js @@ -211,7 +211,7 @@ async function getTxObject({ data }) { value: data.args[5], to: contract._address, data: calldata, - gasLimit: gasLimits[data.type], + gasLimit: gasLimits['WITHDRAW_WITH_EXTRA'], } } else { const method = data.type === jobType.MINING_REWARD ? 'reward' : 'withdraw'