From 7d0944cfd1724e82b854832f8dd315be7d804665 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Tue, 7 Dec 2021 13:08:31 +0200 Subject: [PATCH] [#12813] Remove POA network from the list --- src/status_im/ethereum/core.cljs | 2 -- src/status_im/ethereum/tokens.cljs | 4 ---- src/status_im/multiaccounts/login/data_test.cljs | 3 +-- src/status_im/utils/config.cljs | 6 ------ src/status_im/utils/prices.cljs | 2 +- 5 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/status_im/ethereum/core.cljs b/src/status_im/ethereum/core.cljs index d8e8a2a790..b2a56b4689 100644 --- a/src/status_im/ethereum/core.cljs +++ b/src/status_im/ethereum/core.cljs @@ -26,7 +26,6 @@ :testnet {:id 3 :name "Ropsten"} :rinkeby {:id 4 :name "Rinkeby"} :xdai {:id 100 :name "xDai"} - :poa {:id 99 :name "POA"} :goerli {:id 5 :name "Goerli"} :bsc {:id BSC-mainnet-chain-id :name "BSC"} @@ -57,7 +56,6 @@ (defn sidechain? [id] (contains? #{(chain-keyword->chain-id :xdai) - (chain-keyword->chain-id :poa) (chain-keyword->chain-id :bsc)} id)) (defn network-with-upstream-rpc? [network] diff --git a/src/status_im/ethereum/tokens.cljs b/src/status_im/ethereum/tokens.cljs index 2532cb172f..9f7898d3f9 100644 --- a/src/status_im/ethereum/tokens.cljs +++ b/src/status_im/ethereum/tokens.cljs @@ -28,10 +28,6 @@ :symbol :ETH :symbol-display :ETHri :decimals 18} - :poa {:name "POA" - :symbol :ETH - :symbol-display :POA - :decimals 18} :xdai {:name "xDAI" :symbol :ETH :symbol-display :xDAI diff --git a/src/status_im/multiaccounts/login/data_test.cljs b/src/status_im/multiaccounts/login/data_test.cljs index 490f027b45..5b2c6a2dcc 100644 --- a/src/status_im/multiaccounts/login/data_test.cljs +++ b/src/status_im/multiaccounts/login/data_test.cljs @@ -89,8 +89,7 @@ :mainnet #{:SNT} :rinkeby #{:MOKSHA :KDO} - :xdai #{} - :poa #{}} + :xdai #{}}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BAQEBAAAAAAEBAQEBAQEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAloYA4a9rBHIAAAAASUVORK5CYII=" diff --git a/src/status_im/utils/config.cljs b/src/status_im/utils/config.cljs index 762d7288cb..584258bf3c 100644 --- a/src/status_im/utils/config.cljs +++ b/src/status_im/utils/config.cljs @@ -110,12 +110,6 @@ :DataDir "/ethereum/xdai_rpc" :UpstreamConfig {:Enabled true :URL "https://dai.poa.network"}}} - {:id "poa_rpc", - :name "POA Network", - :config {:NetworkId (ethereum/chain-keyword->chain-id :poa) - :DataDir "/ethereum/poa_rpc" - :UpstreamConfig {:Enabled true - :URL "https://core.poa.network"}}} {:id "bsc_rpc", :chain-explorer-link "https://bscscan.com/address/", :name "BSC Network", diff --git a/src/status_im/utils/prices.cljs b/src/status_im/utils/prices.cljs index 2fc5797e26..96db33382c 100644 --- a/src/status_im/utils/prices.cljs +++ b/src/status_im/utils/prices.cljs @@ -22,7 +22,7 @@ (defn- format-price-resp [resp mainnet?] ;;NOTE(this check is to allow value conversion for sidechains with native currencies listed on cryptocompare - ;; under a symbol different than display symbol. Specific use case xDAI and POA. + ;; under a symbol different than display symbol. Specific use case xDAI. (if mainnet? (when-let [RAW (:RAW (types/json->clj resp))] (into {} (for [[from entries] RAW]