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:
parent
fae4b34863
commit
01c5cf2498
|
@ -566,6 +566,7 @@
|
||||||
(def ^:const bridge-name-erc-1155-transfer "ERC1155Transfer")
|
(def ^:const bridge-name-erc-1155-transfer "ERC1155Transfer")
|
||||||
(def ^:const bridge-name-hop "Hop")
|
(def ^:const bridge-name-hop "Hop")
|
||||||
(def ^:const bridge-name-paraswap "Paraswap")
|
(def ^:const bridge-name-paraswap "Paraswap")
|
||||||
|
(def ^:const bridge-name-celer "CBridge")
|
||||||
|
|
||||||
(def ^:const bridge-assets #{"ETH" "USDT" "USDC" "DAI"})
|
(def ^:const bridge-assets #{"ETH" "USDT" "USDC" "DAI"})
|
||||||
|
|
||||||
|
|
|
@ -495,9 +495,7 @@
|
||||||
:TokenIDTo token-id-to
|
:TokenIDTo token-id-to
|
||||||
:SlippagePercentage slippage-percentage))
|
:SlippagePercentage slippage-percentage))
|
||||||
|
|
||||||
(not (or (= bridge-name constants/bridge-name-erc-721-transfer)
|
(= bridge-name constants/bridge-name-celer)
|
||||||
(= bridge-name constants/bridge-name-transfer)
|
|
||||||
(= bridge-name constants/bridge-name-hop)))
|
|
||||||
(assoc :CbridgeTx
|
(assoc :CbridgeTx
|
||||||
(assoc tx-data
|
(assoc tx-data
|
||||||
:ChainID to-chain-id
|
:ChainID to-chain-id
|
||||||
|
|
|
@ -50,8 +50,10 @@
|
||||||
data)
|
data)
|
||||||
symbols (->> tokens
|
symbols (->> tokens
|
||||||
:by-symbol
|
:by-symbol
|
||||||
keys
|
vals
|
||||||
(remove utils.address/address?))]
|
(map :symbol)
|
||||||
|
set
|
||||||
|
vec)]
|
||||||
{:fx [[:effects.wallet.tokens/fetch-market-values
|
{:fx [[:effects.wallet.tokens/fetch-market-values
|
||||||
{:symbols symbols
|
{:symbols symbols
|
||||||
:currency constants/profile-default-currency
|
:currency constants/profile-default-currency
|
||||||
|
|
Loading…
Reference in New Issue