fix: client should pass a list with "Symbol" and without "ChainID-" prefix to wallet_fetchMarketValues, wallet_fetchPrices (#21453)

Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
Andrey Bocharnikov 2024-10-22 19:15:47 +07:00 committed by GitHub
parent fae4b34863
commit 01c5cf2498
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View File

@ -566,6 +566,7 @@
(def ^:const bridge-name-erc-1155-transfer "ERC1155Transfer")
(def ^:const bridge-name-hop "Hop")
(def ^:const bridge-name-paraswap "Paraswap")
(def ^:const bridge-name-celer "CBridge")
(def ^:const bridge-assets #{"ETH" "USDT" "USDC" "DAI"})

View File

@ -495,9 +495,7 @@
:TokenIDTo token-id-to
:SlippagePercentage slippage-percentage))
(not (or (= bridge-name constants/bridge-name-erc-721-transfer)
(= bridge-name constants/bridge-name-transfer)
(= bridge-name constants/bridge-name-hop)))
(= bridge-name constants/bridge-name-celer)
(assoc :CbridgeTx
(assoc tx-data
:ChainID to-chain-id

View File

@ -50,8 +50,10 @@
data)
symbols (->> tokens
:by-symbol
keys
(remove utils.address/address?))]
vals
(map :symbol)
set
vec)]
{:fx [[:effects.wallet.tokens/fetch-market-values
{:symbols symbols
:currency constants/profile-default-currency