Track total, performance and fee savings (and median metamask fee data) in metrics (#9833)

feature/default_network_editable
Dan J Miller 4 years ago committed by GitHub
parent 8443c3bdde
commit d094d2c227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui/app/ducks/swaps/swaps.js

@ -650,7 +650,10 @@ export const signAndSendTransactions = (history, metaMetricsEvent) => {
estimated_gas: estimatedGasLimit.toString(10),
suggested_gas_price: fastGasEstimate,
used_gas_price: hexWEIToDecGWEI(usedGasPrice),
average_savings: usedQuote.savings?.performance,
average_savings: usedQuote.savings?.total,
performance_savings: usedQuote.savings?.performance,
fee_savings: usedQuote.savings?.fee,
median_metamask_fee: usedQuote.savings?.medianMetaMaskFee,
}
const metaMetricsConfig = {

Loading…
Cancel
Save