|
|
@ -16,7 +16,6 @@ import { |
|
|
|
|
|
|
|
|
|
|
|
const selectors = { |
|
|
|
const selectors = { |
|
|
|
accountsWithSendEtherInfoSelector, |
|
|
|
accountsWithSendEtherInfoSelector, |
|
|
|
// autoAddToBetaUI,
|
|
|
|
|
|
|
|
getAddressBook, |
|
|
|
getAddressBook, |
|
|
|
getAmountConversionRate, |
|
|
|
getAmountConversionRate, |
|
|
|
getBlockGasLimit, |
|
|
|
getBlockGasLimit, |
|
|
@ -72,23 +71,6 @@ function accountsWithSendEtherInfoSelector (state) { |
|
|
|
return accountsWithSendEtherInfo |
|
|
|
return accountsWithSendEtherInfo |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// function autoAddToBetaUI (state) {
|
|
|
|
|
|
|
|
// const autoAddTransactionThreshold = 12
|
|
|
|
|
|
|
|
// const autoAddAccountsThreshold = 2
|
|
|
|
|
|
|
|
// const autoAddTokensThreshold = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const numberOfTransactions = state.metamask.selectedAddressTxList.length
|
|
|
|
|
|
|
|
// const numberOfAccounts = Object.keys(getMetaMaskAccounts(state)).length
|
|
|
|
|
|
|
|
// const numberOfTokensAdded = state.metamask.tokens.length
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// const userPassesThreshold = (numberOfTransactions > autoAddTransactionThreshold) &&
|
|
|
|
|
|
|
|
// (numberOfAccounts > autoAddAccountsThreshold) &&
|
|
|
|
|
|
|
|
// (numberOfTokensAdded > autoAddTokensThreshold)
|
|
|
|
|
|
|
|
// const userIsNotInBeta = !state.metamask.featureFlags.betaUI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return userIsNotInBeta && userPassesThreshold
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getAddressBook (state) { |
|
|
|
function getAddressBook (state) { |
|
|
|
return state.metamask.addressBook |
|
|
|
return state.metamask.addressBook |
|
|
|
} |
|
|
|
} |
|
|
|