From cf9d95d1a8d2ec02a3e4a0ecbaca841d7b43c699 Mon Sep 17 00:00:00 2001 From: jhl-alameda Date: Fri, 26 Feb 2021 03:26:22 -0500 Subject: [PATCH] remove unused --- src/utils/swap/eth.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/utils/swap/eth.js b/src/utils/swap/eth.js index 778c807..4c6dadf 100644 --- a/src/utils/swap/eth.js +++ b/src/utils/swap/eth.js @@ -124,33 +124,6 @@ function addDecimals(str, decimals) { const pendingNonces = new Set(); -function prepareWithdrawal(withdrawal) { - const { params, signature } = withdrawal.txData; - const swap = new web3.eth.Contract(SWAP_ABI, params[1]); - let method, nonce; - if (params[0] === 'withdrawErc20') { - method = swap.methods.withdrawErc20( - params[2], - params[3], - params[4], - params[5], - signature, - ); - nonce = params[5]; - } else if (params[0] === 'withdrawEth') { - method = swap.methods.withdrawEth( - params[2], - params[3], - params[4], - signature, - ); - nonce = params[4]; - } else { - return {}; - } - return { method, nonce }; -} - export async function withdrawEth(from, withdrawal, callAsync) { const { params, signature } = withdrawal.txData; const swap = new web3.eth.Contract(SWAP_ABI, params[1]);