2021-02-04 19:15:23 +01:00
|
|
|
import { createSelector } from 'reselect';
|
2021-04-28 21:53:59 +02:00
|
|
|
import txHelper from '../helpers/utils/tx-helper';
|
2019-07-03 22:33:44 +02:00
|
|
|
import {
|
|
|
|
roundExponential,
|
|
|
|
getTransactionFee,
|
|
|
|
addFiat,
|
|
|
|
addEth,
|
2021-02-04 19:15:23 +01:00
|
|
|
} from '../helpers/utils/confirm-tx.util';
|
2021-04-28 21:53:59 +02:00
|
|
|
import { transactionMatchesNetwork } from '../../shared/modules/transaction.utils';
|
2021-07-31 02:45:18 +02:00
|
|
|
import {
|
|
|
|
getGasEstimateType,
|
|
|
|
getGasFeeEstimates,
|
|
|
|
getNativeCurrency,
|
|
|
|
} from '../ducks/metamask/metamask';
|
2023-01-18 15:47:29 +01:00
|
|
|
import { TransactionEnvelopeType } from '../../shared/constants/transaction';
|
2021-11-06 01:59:23 +01:00
|
|
|
import {
|
2023-01-27 19:28:03 +01:00
|
|
|
GasEstimateTypes,
|
2021-11-06 01:59:23 +01:00
|
|
|
CUSTOM_GAS_ESTIMATE,
|
|
|
|
} from '../../shared/constants/gas';
|
2021-07-31 02:45:18 +02:00
|
|
|
import {
|
|
|
|
getMaximumGasTotalInHexWei,
|
|
|
|
getMinimumGasTotalInHexWei,
|
|
|
|
} from '../../shared/modules/gas.utils';
|
2022-03-07 19:54:36 +01:00
|
|
|
import { isEqualCaseInsensitive } from '../../shared/modules/string-utils';
|
2022-09-16 21:05:21 +02:00
|
|
|
import { calcTokenAmount } from '../../shared/lib/transactions-controller-utils';
|
2023-01-20 18:04:37 +01:00
|
|
|
import {
|
|
|
|
decGWEIToHexWEI,
|
|
|
|
getValueFromWeiHex,
|
|
|
|
sumHexes,
|
|
|
|
} from '../../shared/modules/conversion.utils';
|
2021-06-15 16:17:42 +02:00
|
|
|
import { getAveragePriceEstimateInHexWEI } from './custom-gas';
|
2021-03-12 23:23:26 +01:00
|
|
|
import { getCurrentChainId, deprecatedGetCurrentNetworkId } from './selectors';
|
2021-08-03 00:52:18 +02:00
|
|
|
import { checkNetworkAndAccountSupports1559 } from '.';
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const unapprovedTxsSelector = (state) => state.metamask.unapprovedTxs;
|
|
|
|
const unapprovedMsgsSelector = (state) => state.metamask.unapprovedMsgs;
|
2020-11-03 00:41:28 +01:00
|
|
|
const unapprovedPersonalMsgsSelector = (state) =>
|
2021-02-04 19:15:23 +01:00
|
|
|
state.metamask.unapprovedPersonalMsgs;
|
2020-11-03 00:41:28 +01:00
|
|
|
const unapprovedDecryptMsgsSelector = (state) =>
|
2021-02-04 19:15:23 +01:00
|
|
|
state.metamask.unapprovedDecryptMsgs;
|
2020-11-03 00:41:28 +01:00
|
|
|
const unapprovedEncryptionPublicKeyMsgsSelector = (state) =>
|
2021-02-04 19:15:23 +01:00
|
|
|
state.metamask.unapprovedEncryptionPublicKeyMsgs;
|
2020-11-03 00:41:28 +01:00
|
|
|
const unapprovedTypedMessagesSelector = (state) =>
|
2021-02-04 19:15:23 +01:00
|
|
|
state.metamask.unapprovedTypedMessages;
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
export const unconfirmedTransactionsListSelector = createSelector(
|
|
|
|
unapprovedTxsSelector,
|
|
|
|
unapprovedMsgsSelector,
|
|
|
|
unapprovedPersonalMsgsSelector,
|
2020-02-19 19:24:16 +01:00
|
|
|
unapprovedDecryptMsgsSelector,
|
|
|
|
unapprovedEncryptionPublicKeyMsgsSelector,
|
2018-06-23 08:52:45 +02:00
|
|
|
unapprovedTypedMessagesSelector,
|
2021-03-12 23:23:26 +01:00
|
|
|
deprecatedGetCurrentNetworkId,
|
2021-03-01 16:15:42 +01:00
|
|
|
getCurrentChainId,
|
2018-06-23 08:52:45 +02:00
|
|
|
(
|
|
|
|
unapprovedTxs = {},
|
|
|
|
unapprovedMsgs = {},
|
|
|
|
unapprovedPersonalMsgs = {},
|
2020-02-19 19:24:16 +01:00
|
|
|
unapprovedDecryptMsgs = {},
|
|
|
|
unapprovedEncryptionPublicKeyMsgs = {},
|
2018-06-23 08:52:45 +02:00
|
|
|
unapprovedTypedMessages = {},
|
2020-07-14 17:20:41 +02:00
|
|
|
network,
|
2021-03-01 16:15:42 +01:00
|
|
|
chainId,
|
2020-11-03 00:41:28 +01:00
|
|
|
) =>
|
|
|
|
txHelper(
|
|
|
|
unapprovedTxs,
|
|
|
|
unapprovedMsgs,
|
|
|
|
unapprovedPersonalMsgs,
|
|
|
|
unapprovedDecryptMsgs,
|
|
|
|
unapprovedEncryptionPublicKeyMsgs,
|
|
|
|
unapprovedTypedMessages,
|
|
|
|
network,
|
2021-03-01 16:15:42 +01:00
|
|
|
chainId,
|
2020-11-03 00:41:28 +01:00
|
|
|
) || [],
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
export const unconfirmedTransactionsHashSelector = createSelector(
|
|
|
|
unapprovedTxsSelector,
|
|
|
|
unapprovedMsgsSelector,
|
|
|
|
unapprovedPersonalMsgsSelector,
|
2020-02-19 19:24:16 +01:00
|
|
|
unapprovedDecryptMsgsSelector,
|
|
|
|
unapprovedEncryptionPublicKeyMsgsSelector,
|
2018-06-23 08:52:45 +02:00
|
|
|
unapprovedTypedMessagesSelector,
|
2021-03-12 23:23:26 +01:00
|
|
|
deprecatedGetCurrentNetworkId,
|
2021-03-01 16:15:42 +01:00
|
|
|
getCurrentChainId,
|
2018-06-23 08:52:45 +02:00
|
|
|
(
|
|
|
|
unapprovedTxs = {},
|
|
|
|
unapprovedMsgs = {},
|
|
|
|
unapprovedPersonalMsgs = {},
|
2020-02-19 19:24:16 +01:00
|
|
|
unapprovedDecryptMsgs = {},
|
|
|
|
unapprovedEncryptionPublicKeyMsgs = {},
|
2018-06-23 08:52:45 +02:00
|
|
|
unapprovedTypedMessages = {},
|
2020-07-14 17:20:41 +02:00
|
|
|
network,
|
2021-03-01 16:15:42 +01:00
|
|
|
chainId,
|
2018-06-23 08:52:45 +02:00
|
|
|
) => {
|
2020-11-03 00:41:28 +01:00
|
|
|
const filteredUnapprovedTxs = Object.keys(unapprovedTxs).reduce(
|
|
|
|
(acc, address) => {
|
2021-02-04 19:15:23 +01:00
|
|
|
const transactions = { ...acc };
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2021-03-01 16:15:42 +01:00
|
|
|
if (
|
|
|
|
transactionMatchesNetwork(unapprovedTxs[address], chainId, network)
|
|
|
|
) {
|
2021-02-04 19:15:23 +01:00
|
|
|
transactions[address] = unapprovedTxs[address];
|
2020-11-03 00:41:28 +01:00
|
|
|
}
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
return transactions;
|
2020-11-03 00:41:28 +01:00
|
|
|
},
|
|
|
|
{},
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-06-23 08:52:45 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
...filteredUnapprovedTxs,
|
|
|
|
...unapprovedMsgs,
|
|
|
|
...unapprovedPersonalMsgs,
|
2020-02-19 19:24:16 +01:00
|
|
|
...unapprovedDecryptMsgs,
|
|
|
|
...unapprovedEncryptionPublicKeyMsgs,
|
2018-06-23 08:52:45 +02:00
|
|
|
...unapprovedTypedMessages,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-07-14 17:20:41 +02:00
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-06-23 08:52:45 +02:00
|
|
|
|
2022-05-16 20:36:19 +02:00
|
|
|
export const unconfirmedMessagesHashSelector = createSelector(
|
|
|
|
unapprovedMsgsSelector,
|
|
|
|
unapprovedPersonalMsgsSelector,
|
|
|
|
unapprovedDecryptMsgsSelector,
|
|
|
|
unapprovedEncryptionPublicKeyMsgsSelector,
|
|
|
|
unapprovedTypedMessagesSelector,
|
|
|
|
(
|
|
|
|
unapprovedMsgs = {},
|
|
|
|
unapprovedPersonalMsgs = {},
|
|
|
|
unapprovedDecryptMsgs = {},
|
|
|
|
unapprovedEncryptionPublicKeyMsgs = {},
|
|
|
|
unapprovedTypedMessages = {},
|
|
|
|
) => {
|
|
|
|
return {
|
|
|
|
...unapprovedMsgs,
|
|
|
|
...unapprovedPersonalMsgs,
|
|
|
|
...unapprovedDecryptMsgs,
|
|
|
|
...unapprovedEncryptionPublicKeyMsgs,
|
|
|
|
...unapprovedTypedMessages,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
);
|
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export const currentCurrencySelector = (state) =>
|
|
|
|
state.metamask.currentCurrency;
|
|
|
|
export const conversionRateSelector = (state) => state.metamask.conversionRate;
|
2018-07-14 22:47:07 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
export const txDataSelector = (state) => state.confirmTransaction.txData;
|
|
|
|
const tokenDataSelector = (state) => state.confirmTransaction.tokenData;
|
|
|
|
const tokenPropsSelector = (state) => state.confirmTransaction.tokenProps;
|
2018-07-14 22:47:07 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
const contractExchangeRatesSelector = (state) =>
|
2021-02-04 19:15:23 +01:00
|
|
|
state.metamask.contractExchangeRates;
|
2018-07-14 22:47:07 +02:00
|
|
|
|
|
|
|
const tokenDecimalsSelector = createSelector(
|
|
|
|
tokenPropsSelector,
|
2021-06-24 01:50:24 +02:00
|
|
|
(tokenProps) => tokenProps && tokenProps.decimals,
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-07-14 22:47:07 +02:00
|
|
|
|
2020-08-22 04:29:19 +02:00
|
|
|
const tokenDataArgsSelector = createSelector(
|
2018-07-14 22:47:07 +02:00
|
|
|
tokenDataSelector,
|
2020-08-22 04:29:19 +02:00
|
|
|
(tokenData) => (tokenData && tokenData.args) || [],
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-07-14 22:47:07 +02:00
|
|
|
|
|
|
|
const txParamsSelector = createSelector(
|
|
|
|
txDataSelector,
|
2020-07-14 17:20:41 +02:00
|
|
|
(txData) => (txData && txData.txParams) || {},
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-07-14 22:47:07 +02:00
|
|
|
|
|
|
|
export const tokenAddressSelector = createSelector(
|
|
|
|
txParamsSelector,
|
2020-07-14 17:20:41 +02:00
|
|
|
(txParams) => txParams && txParams.to,
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-07-14 22:47:07 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const TOKEN_PARAM_TO = '_to';
|
|
|
|
const TOKEN_PARAM_VALUE = '_value';
|
2018-07-14 22:47:07 +02:00
|
|
|
|
|
|
|
export const sendTokenTokenAmountAndToAddressSelector = createSelector(
|
2020-08-22 04:29:19 +02:00
|
|
|
tokenDataArgsSelector,
|
2018-07-14 22:47:07 +02:00
|
|
|
tokenDecimalsSelector,
|
2020-08-22 04:29:19 +02:00
|
|
|
(args, tokenDecimals) => {
|
2021-02-04 19:15:23 +01:00
|
|
|
let toAddress = '';
|
|
|
|
let tokenAmount = '0';
|
2018-07-14 22:47:07 +02:00
|
|
|
|
2020-09-10 07:24:11 +02:00
|
|
|
// Token params here are ethers BigNumbers, which have a different
|
|
|
|
// interface than bignumber.js
|
2020-08-22 04:29:19 +02:00
|
|
|
if (args && args.length) {
|
2021-02-04 19:15:23 +01:00
|
|
|
toAddress = args[TOKEN_PARAM_TO];
|
|
|
|
let value = args[TOKEN_PARAM_VALUE].toString();
|
2018-07-14 22:47:07 +02:00
|
|
|
|
|
|
|
if (tokenDecimals) {
|
2020-09-10 07:24:11 +02:00
|
|
|
// bignumber.js return value
|
2021-02-04 19:15:23 +01:00
|
|
|
value = calcTokenAmount(value, tokenDecimals).toFixed();
|
2018-07-14 22:47:07 +02:00
|
|
|
}
|
2018-07-26 21:15:34 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
tokenAmount = roundExponential(value);
|
2018-07-14 22:47:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
|
|
toAddress,
|
|
|
|
tokenAmount,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-07-14 17:20:41 +02:00
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-07-14 22:47:07 +02:00
|
|
|
|
|
|
|
export const contractExchangeRateSelector = createSelector(
|
|
|
|
contractExchangeRatesSelector,
|
|
|
|
tokenAddressSelector,
|
2021-09-15 21:02:28 +02:00
|
|
|
(contractExchangeRates, tokenAddress) =>
|
|
|
|
contractExchangeRates[
|
|
|
|
Object.keys(contractExchangeRates).find((address) =>
|
|
|
|
isEqualCaseInsensitive(address, tokenAddress),
|
|
|
|
)
|
|
|
|
],
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-07-03 22:33:44 +02:00
|
|
|
|
|
|
|
export const transactionFeeSelector = function (state, txData) {
|
2021-02-04 19:15:23 +01:00
|
|
|
const currentCurrency = currentCurrencySelector(state);
|
|
|
|
const conversionRate = conversionRateSelector(state);
|
|
|
|
const nativeCurrency = getNativeCurrency(state);
|
2021-07-31 02:45:18 +02:00
|
|
|
const gasFeeEstimates = getGasFeeEstimates(state) || {};
|
|
|
|
const gasEstimateType = getGasEstimateType(state);
|
2022-07-31 20:26:40 +02:00
|
|
|
const networkAndAccountSupportsEIP1559 =
|
|
|
|
checkNetworkAndAccountSupports1559(state);
|
2019-07-03 22:33:44 +02:00
|
|
|
|
2021-07-31 02:45:18 +02:00
|
|
|
const gasEstimationObject = {
|
|
|
|
gasLimit: txData.txParams?.gas ?? '0x0',
|
|
|
|
};
|
2021-06-22 19:39:44 +02:00
|
|
|
|
2021-08-03 00:52:18 +02:00
|
|
|
if (networkAndAccountSupportsEIP1559) {
|
2021-08-06 21:31:30 +02:00
|
|
|
const { gasPrice = '0' } = gasFeeEstimates;
|
|
|
|
const selectedGasEstimates = gasFeeEstimates[txData.userFeeLevel] || {};
|
2023-01-18 15:47:29 +01:00
|
|
|
if (txData.txParams?.type === TransactionEnvelopeType.legacy) {
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.gasPrice =
|
|
|
|
txData.txParams?.gasPrice ?? decGWEIToHexWEI(gasPrice);
|
|
|
|
} else {
|
2022-07-31 20:26:40 +02:00
|
|
|
const { suggestedMaxPriorityFeePerGas, suggestedMaxFeePerGas } =
|
|
|
|
selectedGasEstimates;
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.maxFeePerGas =
|
2021-08-06 21:31:30 +02:00
|
|
|
txData.txParams?.maxFeePerGas &&
|
2021-11-06 01:59:23 +01:00
|
|
|
(txData.userFeeLevel === CUSTOM_GAS_ESTIMATE || !suggestedMaxFeePerGas)
|
2021-08-06 21:31:30 +02:00
|
|
|
? txData.txParams?.maxFeePerGas
|
|
|
|
: decGWEIToHexWEI(suggestedMaxFeePerGas || gasPrice);
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.maxPriorityFeePerGas =
|
2021-08-06 21:31:30 +02:00
|
|
|
txData.txParams?.maxPriorityFeePerGas &&
|
2021-11-06 01:59:23 +01:00
|
|
|
(txData.userFeeLevel === CUSTOM_GAS_ESTIMATE ||
|
|
|
|
!suggestedMaxPriorityFeePerGas)
|
2021-08-06 21:31:30 +02:00
|
|
|
? txData.txParams?.maxPriorityFeePerGas
|
|
|
|
: (suggestedMaxPriorityFeePerGas &&
|
|
|
|
decGWEIToHexWEI(suggestedMaxPriorityFeePerGas)) ||
|
|
|
|
gasEstimationObject.maxFeePerGas;
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.baseFeePerGas = decGWEIToHexWEI(
|
|
|
|
gasFeeEstimates.estimatedBaseFee,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
switch (gasEstimateType) {
|
2023-01-27 19:28:03 +01:00
|
|
|
case GasEstimateTypes.none:
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.gasPrice = txData.txParams?.gasPrice ?? '0x0';
|
|
|
|
break;
|
2023-01-27 19:28:03 +01:00
|
|
|
case GasEstimateTypes.ethGasPrice:
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.gasPrice =
|
|
|
|
txData.txParams?.gasPrice ??
|
|
|
|
decGWEIToHexWEI(gasFeeEstimates.gasPrice);
|
|
|
|
break;
|
2023-01-27 19:28:03 +01:00
|
|
|
case GasEstimateTypes.legacy:
|
2021-07-31 02:45:18 +02:00
|
|
|
gasEstimationObject.gasPrice =
|
|
|
|
txData.txParams?.gasPrice ?? getAveragePriceEstimateInHexWEI(state);
|
|
|
|
break;
|
2023-01-27 19:28:03 +01:00
|
|
|
case GasEstimateTypes.feeMarket:
|
2021-07-31 02:45:18 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2021-06-15 16:17:42 +02:00
|
|
|
}
|
2019-07-03 22:33:44 +02:00
|
|
|
|
2021-07-31 02:45:18 +02:00
|
|
|
const { txParams: { value = '0x0' } = {} } = txData;
|
|
|
|
|
2019-07-03 22:33:44 +02:00
|
|
|
const fiatTransactionAmount = getValueFromWeiHex({
|
2020-11-03 00:41:28 +01:00
|
|
|
value,
|
|
|
|
fromCurrency: nativeCurrency,
|
|
|
|
toCurrency: currentCurrency,
|
|
|
|
conversionRate,
|
|
|
|
numberOfDecimals: 2,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
2019-07-03 22:33:44 +02:00
|
|
|
const ethTransactionAmount = getValueFromWeiHex({
|
2020-11-03 00:41:28 +01:00
|
|
|
value,
|
|
|
|
fromCurrency: nativeCurrency,
|
|
|
|
toCurrency: nativeCurrency,
|
|
|
|
conversionRate,
|
|
|
|
numberOfDecimals: 6,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
2019-07-03 22:33:44 +02:00
|
|
|
|
2022-07-31 20:26:40 +02:00
|
|
|
const hexMinimumTransactionFee =
|
|
|
|
getMinimumGasTotalInHexWei(gasEstimationObject);
|
|
|
|
const hexMaximumTransactionFee =
|
|
|
|
getMaximumGasTotalInHexWei(gasEstimationObject);
|
2021-07-31 02:45:18 +02:00
|
|
|
|
|
|
|
const fiatMinimumTransactionFee = getTransactionFee({
|
|
|
|
value: hexMinimumTransactionFee,
|
|
|
|
fromCurrency: nativeCurrency,
|
|
|
|
toCurrency: currentCurrency,
|
|
|
|
numberOfDecimals: 2,
|
|
|
|
conversionRate,
|
|
|
|
});
|
2019-07-03 22:33:44 +02:00
|
|
|
|
2021-07-31 02:45:18 +02:00
|
|
|
const fiatMaximumTransactionFee = getTransactionFee({
|
|
|
|
value: hexMaximumTransactionFee,
|
2019-07-03 22:33:44 +02:00
|
|
|
fromCurrency: nativeCurrency,
|
|
|
|
toCurrency: currentCurrency,
|
|
|
|
numberOfDecimals: 2,
|
|
|
|
conversionRate,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
2021-07-31 02:45:18 +02:00
|
|
|
|
2019-07-03 22:33:44 +02:00
|
|
|
const ethTransactionFee = getTransactionFee({
|
2021-07-31 02:45:18 +02:00
|
|
|
value: hexMinimumTransactionFee,
|
2019-07-03 22:33:44 +02:00
|
|
|
fromCurrency: nativeCurrency,
|
|
|
|
toCurrency: nativeCurrency,
|
|
|
|
numberOfDecimals: 6,
|
|
|
|
conversionRate,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
2019-07-03 22:33:44 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
const fiatTransactionTotal = addFiat(
|
2021-07-31 02:45:18 +02:00
|
|
|
fiatMinimumTransactionFee,
|
2020-11-03 00:41:28 +01:00
|
|
|
fiatTransactionAmount,
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
const ethTransactionTotal = addEth(ethTransactionFee, ethTransactionAmount);
|
2021-07-31 02:45:18 +02:00
|
|
|
const hexTransactionTotal = sumHexes(value, hexMinimumTransactionFee);
|
2019-07-03 22:33:44 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
hexTransactionAmount: value,
|
|
|
|
fiatTransactionAmount,
|
|
|
|
ethTransactionAmount,
|
2021-07-31 02:45:18 +02:00
|
|
|
hexMinimumTransactionFee,
|
|
|
|
fiatMinimumTransactionFee,
|
|
|
|
hexMaximumTransactionFee,
|
|
|
|
fiatMaximumTransactionFee,
|
2019-07-03 22:33:44 +02:00
|
|
|
ethTransactionFee,
|
|
|
|
fiatTransactionTotal,
|
|
|
|
ethTransactionTotal,
|
|
|
|
hexTransactionTotal,
|
2021-08-06 21:31:30 +02:00
|
|
|
gasEstimationObject,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
|
|
|
};
|