Watch-only address balance should not be included in the overall balance by default #19657 (#19716)

This commit is contained in:
mmilad75 2024-04-29 15:34:39 +01:00 committed by GitHub
parent e9c2d24cc3
commit 42e407fbcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -290,7 +290,7 @@
(rf/reg-sub
:wallet/aggregated-tokens
:<- [:wallet/accounts]
:<- [:wallet/accounts-without-watched-accounts]
(fn [accounts]
(utils/aggregate-tokens-for-all-accounts accounts)))

View File

@ -495,7 +495,7 @@
eth-token (some #(when (= (:symbol %) "ETH") %) result)
eth-mainnet-raw-balance (get-in eth-token [:balances-per-chain 1 :raw-balance])]
(is (match? 2 (count result)))
(is (money/equal-to (money/bignumber 7520) eth-mainnet-raw-balance)))))
(is (money/equal-to (money/bignumber 2520) eth-mainnet-raw-balance)))))
(h/deftest-sub :wallet/aggregated-token-values-and-balance
[sub-name]
@ -505,7 +505,7 @@
(assoc-in [:wallet :accounts] accounts)))
(let [{:keys [formatted-balance tokens]} (rf/sub [sub-name])]
(is (match? 2 (count tokens)))
(is (match? "$4506.00" formatted-balance)))))
(is (match? "$2106.00" formatted-balance)))))
(h/deftest-sub :wallet/accounts-with-customization-color
[sub-name]
@ -656,8 +656,8 @@
(let [result (rf/sub [sub-name])
chains (keys result)]
(is (match? (count chains) 3))
(is (match? (get result constants/ethereum-mainnet-chain-id) "$3504.00"))
(is (match? (get result constants/optimism-mainnet-chain-id) "$1002.00")))))
(is (match? (get result constants/ethereum-mainnet-chain-id) "$1504.00"))
(is (match? (get result constants/optimism-mainnet-chain-id) "$602.00")))))
(h/deftest-sub :wallet/current-viewing-account-fiat-balance-per-chain
[sub-name]