Refactor. Rename var to be more intention revealing

pull/3947/head
Hwee-Boon Yar 3 years ago
parent 221267631c
commit d23a773c51
  1. 2
      AlphaWallet/Settings/Types/Constants.swift
  2. 2
      AlphaWallet/Transfer/Controllers/TransactionConfigurator.swift

@ -109,7 +109,7 @@ public struct Constants {
static let ENSRegistrarRinkeby = ENSRegistrarAddress
static let ENSRegistrarGoerli = ENSRegistrarAddress
static let highStandardGasThresholdGwei = BigInt(130)
static let highStandardEthereumMainnetGasThresholdGwei = BigInt(130)
//DAS
static let dasLookupURL = URL(string: "https://indexer.da.systems/")!

@ -304,7 +304,7 @@ class TransactionConfigurator {
}
switch session.server {
case .main:
if (configurations.standard.gasPrice / BigInt(EthereumUnit.gwei.rawValue)) > Constants.highStandardGasThresholdGwei {
if (configurations.standard.gasPrice / BigInt(EthereumUnit.gwei.rawValue)) > Constants.highStandardEthereumMainnetGasThresholdGwei {
return .networkCongested
}
case .kovan, .ropsten, .rinkeby, .poa, .sokol, .classic, .callisto, .xDai, .goerli, .artis_sigma1, .artis_tau1, .binance_smart_chain, .fantom, .fantom_testnet, .binance_smart_chain_testnet, .custom, .heco, .heco_testnet, .avalanche, .avalanche_testnet, .polygon, .mumbai_testnet, .optimistic, .optimisticKovan, .cronosTestnet, .arbitrum, .arbitrumRinkeby, .palm, .palmTestnet:

Loading…
Cancel
Save