update withdraw limits

This commit is contained in:
Alexey 2021-03-10 23:14:53 +04:00 committed by Danil Kovtonyuk
parent 66082a8fbc
commit 33b6561ffe
2 changed files with 2 additions and 1 deletions

View File

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

View File

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