Skip to content

Commit ca439f6

Browse files
committed
chore: request rawNetworkFees from updated functions
1 parent 4397ee6 commit ca439f6

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

ui/pages/swaps/prepare-swap-page/review-quote.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export default function ReviewQuote({ setReceiveToAmount }) {
421421
sourceTokenValue,
422422
} = renderableDataForUsedQuote;
423423

424-
let { feeInFiat, feeInEth, rawEthFee, feeInUsd } =
424+
let { feeInFiat, feeInEth, rawEthFee, feeInUsd, rawNetworkFees } =
425425
getRenderableNetworkFeesForQuote({
426426
tradeGas: usedGasLimit,
427427
approveGas,
@@ -472,14 +472,15 @@ export default function ReviewQuote({ setReceiveToAmount }) {
472472
smartTransactionFees?.tradeTxFees.maxFeeEstimate +
473473
(smartTransactionFees?.approvalTxFees?.maxFeeEstimate || 0);
474474

475-
({ feeInFiat, feeInEth, rawEthFee, feeInUsd } = getFeeForSmartTransaction({
476-
chainId,
477-
currentCurrency,
478-
conversionRate,
479-
USDConversionRate,
480-
nativeCurrencySymbol,
481-
feeInWeiDec: stxEstimatedFeeInWeiDec,
482-
}));
475+
({ feeInFiat, feeInEth, rawEthFee, feeInUsd, rawNetworkFees } =
476+
getFeeForSmartTransaction({
477+
chainId,
478+
currentCurrency,
479+
conversionRate,
480+
USDConversionRate,
481+
nativeCurrencySymbol,
482+
feeInWeiDec: stxEstimatedFeeInWeiDec,
483+
}));
483484
additionalTrackingParams.stx_fee_in_usd = Number(feeInUsd);
484485
additionalTrackingParams.stx_fee_in_eth = Number(rawEthFee);
485486
additionalTrackingParams.estimated_gas =

0 commit comments

Comments
 (0)