From f4838194d61a9497e631c9a5a921d241320b8084 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Tue, 20 Oct 2020 10:36:00 -0230 Subject: [PATCH] Remove unused `customGasLimit` parameter (#9656) This parameter to the `quotesToRenderableData` function was never passed in. It has been removed. --- ui/app/pages/swaps/swaps.util.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/app/pages/swaps/swaps.util.js b/ui/app/pages/swaps/swaps.util.js index 32974d5b6..8cba3ea6c 100644 --- a/ui/app/pages/swaps/swaps.util.js +++ b/ui/app/pages/swaps/swaps.util.js @@ -292,7 +292,7 @@ export function getRenderableGasFeesForQuote (tradeGas, approveGas, gasPrice, cu } } -export function quotesToRenderableData (quotes, gasPrice, conversionRate, currentCurrency, approveGas, tokenConversionRates, customGasLimit) { +export function quotesToRenderableData (quotes, gasPrice, conversionRate, currentCurrency, approveGas, tokenConversionRates) { return Object.values(quotes).map((quote) => { const { destinationAmount = 0, sourceAmount = 0, sourceTokenInfo, destinationTokenInfo, slippage, aggType, aggregator, gasEstimateWithRefund, averageGas } = quote const sourceValue = calcTokenAmount(sourceAmount, sourceTokenInfo.decimals || 18).toString(10) @@ -305,7 +305,6 @@ export function quotesToRenderableData (quotes, gasPrice, conversionRate, curren feeInEth, } = getRenderableGasFeesForQuote( ( - customGasLimit || gasEstimateWithRefund || decimalToHex(averageGas || 800000) ),