1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

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

This commit is contained in:
Dan J Miller 2020-11-09 16:19:41 -03:30 committed by GitHub
parent 8443c3bdde
commit d094d2c227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {