diff --git a/src/config/data/ccip/v1_2_0/mainnet/lanes.json b/src/config/data/ccip/v1_2_0/mainnet/lanes.json index 29768888cf6..8615060cc08 100644 --- a/src/config/data/ccip/v1_2_0/mainnet/lanes.json +++ b/src/config/data/ccip/v1_2_0/mainnet/lanes.json @@ -291,9 +291,9 @@ } }, "rateLimiterConfig": { - "capacity": "600000000000000000000000", + "capacity": "1000000000000000000000000", "isEnabled": true, - "rate": "167000000000000000000" + "rate": "277000000000000000000" } }, "ethereum-mainnet-base-1": { @@ -322,9 +322,9 @@ } }, "rateLimiterConfig": { - "capacity": "100000000000000000000000", + "capacity": "1000000000000000000000000", "isEnabled": true, - "rate": "167000000000000000000" + "rate": "277000000000000000000" } }, "ethereum-mainnet-blast-1": { @@ -335,12 +335,29 @@ "rate": "167000000000000000000" } }, + "ethereum-mainnet-mode-1": { + "onRamp": "0x4A83dA46c148AB5941a379b4cA49f42d14281C78", + "supportedTokens": { + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, "ethereum-mainnet-optimism-1": { "onRamp": "0x4FEB11A454C9E8038A8d0aDF599Fe7612ce114bA", "rateLimiterConfig": { - "capacity": "100000000000000000000000", + "capacity": "1000000000000000000000000", "isEnabled": true, - "rate": "167000000000000000000" + "rate": "277000000000000000000" } }, "mainnet": { @@ -408,6 +425,20 @@ "isEnabled": true, "rate": "520000000000000000000" } + }, + "WSDM": { + "rateLimiterConfig": { + "capacity": "1000000000000", + "isEnabled": true, + "rate": "12000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -639,9 +670,9 @@ } }, "rateLimiterConfig": { - "capacity": "600000000000000000000000", + "capacity": "1000000000000000000000000", "isEnabled": true, - "rate": "167000000000000000000" + "rate": "277000000000000000000" } }, "ethereum-mainnet-base-1": { @@ -724,7 +755,7 @@ "rate": "138880000" } }, - "WOETH": { + "wOETH": { "rateLimiterConfig": { "capacity": "114000000000000000000", "isEnabled": true, @@ -786,6 +817,13 @@ "isEnabled": true, "rate": "83300" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -802,6 +840,23 @@ "rate": "167000000000000000000" } }, + "ethereum-mainnet-mode-1": { + "onRamp": "0x3920BF474BB50fffb4B77c1e6e66F65210D1D722", + "supportedTokens": { + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, "ethereum-mainnet-optimism-1": { "onRamp": "0xC09b72E8128620C40D89649019d995Cc79f030C3", "supportedTokens": { @@ -853,6 +908,20 @@ "isEnabled": true, "rate": "83300" } + }, + "MILO": { + "rateLimiterConfig": { + "capacity": "5000000000000000000000000", + "isEnabled": true, + "rate": "115740000000000000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -934,7 +1003,7 @@ "rate": "138880000000000000000" } }, - "WOETH": { + "wOETH": { "rateLimiterConfig": { "capacity": "1500000000000000000000", "isEnabled": true, @@ -1083,9 +1152,9 @@ }, "hyETH": { "rateLimiterConfig": { - "capacity": "56000000000000000000", + "capacity": "500000000000000000000", "isEnabled": true, - "rate": "3900000000000000" + "rate": "34700000000000000" } }, "dsETH": { @@ -1122,6 +1191,20 @@ "isEnabled": true, "rate": "1666000000000000" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + }, + "WSDM": { + "rateLimiterConfig": { + "capacity": "1000000000000", + "isEnabled": true, + "rate": "12000000" + } } }, "rateLimiterConfig": { @@ -1259,9 +1342,9 @@ } }, "rateLimiterConfig": { - "capacity": "100000000000000000000000", + "capacity": "1000000000000000000000000", "isEnabled": true, - "rate": "167000000000000000000" + "rate": "277000000000000000000" } }, "ethereum-mainnet-arbitrum-1": { @@ -1344,7 +1427,7 @@ "rate": "138880000" } }, - "WOETH": { + "wOETH": { "rateLimiterConfig": { "capacity": "114000000000000000000", "isEnabled": true, @@ -1406,6 +1489,13 @@ "isEnabled": true, "rate": "83300" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1447,6 +1537,13 @@ "isEnabled": true, "rate": "27770000000000000000" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1499,6 +1596,13 @@ "isEnabled": true, "rate": "83300" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1601,7 +1705,7 @@ "rate": "138880000" } }, - "WOETH": { + "wOETH": { "rateLimiterConfig": { "capacity": "114000000000000000000", "isEnabled": true, @@ -1677,6 +1781,27 @@ "isEnabled": true, "rate": "83300" } + }, + "MEEM": { + "rateLimiterConfig": { + "capacity": "10000000000000000000000", + "isEnabled": true, + "rate": "2780000000000000000" + } + }, + "SUSDz": { + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1797,6 +1922,40 @@ } }, "ethereum-mainnet-mode-1": { + "bsc-mainnet": { + "onRamp": "0x8C5149ff7Cfd99dd561caE9B7abFAA0Ef79eAbeC", + "supportedTokens": { + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "ethereum-mainnet-arbitrum-1": { + "onRamp": "0x65Ad802d80aD6a96C5a4bc9e57E16099de99Dc7F", + "supportedTokens": { + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, "ethereum-mainnet-base-1": { "onRamp": "0x71dB32eF442c29d8cbf72a9AFcb1Ef12B35b0BF4", "supportedTokens": { @@ -1813,6 +1972,13 @@ "isEnabled": true, "rate": "27770000000000000000" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1821,6 +1987,23 @@ "rate": "555550000000000000000" } }, + "ethereum-mainnet-optimism-1": { + "onRamp": "0x659303e8d4306D3ea8676FB034d56FB6f37E19d9", + "supportedTokens": { + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, "mainnet": { "onRamp": "0xbD5F9C193a7fEF5D578C55Ddfe4d08d6BCc15648", "supportedTokens": { @@ -1830,6 +2013,20 @@ "isEnabled": true, "rate": "13880000000000000000" } + }, + "sDAI": { + "rateLimiterConfig": { + "capacity": "250000000000000000000000", + "isEnabled": true, + "rate": "69400000000000000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1860,9 +2057,9 @@ "bsc-mainnet": { "onRamp": "0xa3c9544B82846C45BE37593d5d9ACffbE61BF3A6", "rateLimiterConfig": { - "capacity": "100000000000000000000000", + "capacity": "1000000000000000000000000", "isEnabled": true, - "rate": "167000000000000000000" + "rate": "277000000000000000000" } }, "ethereum-mainnet-arbitrum-1": { @@ -1916,6 +2113,20 @@ "isEnabled": true, "rate": "83300" } + }, + "MILO": { + "rateLimiterConfig": { + "capacity": "5000000000000000000000000", + "isEnabled": true, + "rate": "115740000000000000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -1968,6 +2179,30 @@ "isEnabled": true, "rate": "83300" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + } + }, + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "ethereum-mainnet-mode-1": { + "onRamp": "0x034eA573B049210315110f7eA11c9618E32F08Ae", + "supportedTokens": { + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -2041,6 +2276,13 @@ "isEnabled": true, "rate": "83300" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -2203,6 +2445,20 @@ "isEnabled": true, "rate": "520000000000000000000" } + }, + "WSDM": { + "rateLimiterConfig": { + "capacity": "1000000000000", + "isEnabled": true, + "rate": "12000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -2318,7 +2574,7 @@ "rate": "138880000000000000000" } }, - "WOETH": { + "wOETH": { "rateLimiterConfig": { "capacity": "1500000000000000000000", "isEnabled": true, @@ -2467,9 +2723,9 @@ }, "hyETH": { "rateLimiterConfig": { - "capacity": "56000000000000000000", + "capacity": "500000000000000000000", "isEnabled": true, - "rate": "3900000000000000" + "rate": "34700000000000000" } }, "dsETH": { @@ -2506,6 +2762,20 @@ "isEnabled": true, "rate": "1666000000000000" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } + }, + "WSDM": { + "rateLimiterConfig": { + "capacity": "1000000000000", + "isEnabled": true, + "rate": "12000000" + } } }, "rateLimiterConfig": { @@ -2608,7 +2878,7 @@ "rate": "138880000" } }, - "WOETH": { + "wOETH": { "rateLimiterConfig": { "capacity": "114000000000000000000", "isEnabled": true, @@ -2684,6 +2954,27 @@ "isEnabled": true, "rate": "83300" } + }, + "MEEM": { + "rateLimiterConfig": { + "capacity": "10000000000000000000000", + "isEnabled": true, + "rate": "2780000000000000000" + } + }, + "SUSDz": { + "rateLimiterConfig": { + "capacity": "1000000000000000000000000", + "isEnabled": true, + "rate": "277000000000000000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -2718,6 +3009,20 @@ "isEnabled": true, "rate": "13880000000000000000" } + }, + "sDAI": { + "rateLimiterConfig": { + "capacity": "250000000000000000000000", + "isEnabled": true, + "rate": "69400000000000000000" + } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -2791,6 +3096,13 @@ "isEnabled": true, "rate": "83300" } + }, + "wUSDx": { + "rateLimiterConfig": { + "capacity": "490000000000", + "isEnabled": true, + "rate": "136111000" + } } }, "rateLimiterConfig": { @@ -2871,6 +3183,13 @@ "isEnabled": true, "rate": "4600000000000000000" } + }, + "WSDM": { + "rateLimiterConfig": { + "capacity": "1000000000000", + "isEnabled": true, + "rate": "12000000" + } } }, "rateLimiterConfig": { @@ -3184,6 +3503,13 @@ "isEnabled": true, "rate": "4600000000000000000" } + }, + "WSDM": { + "rateLimiterConfig": { + "capacity": "1000000000000", + "isEnabled": true, + "rate": "12000000" + } } }, "rateLimiterConfig": { diff --git a/src/config/data/ccip/v1_2_0/mainnet/tokens.json b/src/config/data/ccip/v1_2_0/mainnet/tokens.json index 51dbc8582a7..f0de679ceb4 100644 --- a/src/config/data/ccip/v1_2_0/mainnet/tokens.json +++ b/src/config/data/ccip/v1_2_0/mainnet/tokens.json @@ -783,6 +783,15 @@ "symbol": "WSDM", "decimals": 6 }, + "mainnet": { + "tokenAddress": "0x5F2F8818002dc64753daeDF4A6CB2CcB757CD220", + "allowListEnabled": false, + "poolAddress": "0x8c6028e38391cfC2A1a28f4359EA5732E9422e56", + "poolType": "burnMint", + "name": "Wisdomise", + "symbol": "WSDM", + "decimals": 6 + }, "matic-mainnet": { "tokenAddress": "0x5F2F8818002dc64753daeDF4A6CB2CcB757CD220", "allowListEnabled": false, @@ -822,6 +831,62 @@ "decimals": 18 } }, + "wUSDx": { + "bsc-mainnet": { + "tokenAddress": "0x2d7e22Fb0fb7A7F0d1fef70ad8873A9ffDe18007", + "allowListEnabled": false, + "poolAddress": "0xD9c00B874fB86d2A09b5BA1DfF7fb05554DB4B6d", + "poolType": "burnMint", + "name": "Wrapped USDx", + "symbol": "wUSDx", + "decimals": 6 + }, + "ethereum-mainnet-arbitrum-1": { + "tokenAddress": "0xB86fb1047A955C0186c77ff6263819b37B32440D", + "allowListEnabled": false, + "poolAddress": "0x86d99f9b22052645eA076cd16da091b9E87fB6d6", + "poolType": "lockRelease", + "name": "Wrapped USD+", + "symbol": "wUSD+", + "decimals": 6 + }, + "ethereum-mainnet-base-1": { + "tokenAddress": "0x1EaE7Ca39192a2B6E3EA2E852A0D4D20bCe89d14", + "allowListEnabled": false, + "poolAddress": "0xd54fE63Dbd928cA9BB89DB502F939DE673518EB7", + "poolType": "burnMint", + "name": "Wrapped USDx", + "symbol": "wUSDx", + "decimals": 6 + }, + "ethereum-mainnet-mode-1": { + "tokenAddress": "0xAe770d24ec1580A13392E0B71067571351029203", + "allowListEnabled": false, + "poolAddress": "0x66713d7E29D2F77AF7B0045a41D1770641D8AE93", + "poolType": "burnMint", + "name": "Wrapped USDx", + "symbol": "wUSDx", + "decimals": 6 + }, + "ethereum-mainnet-optimism-1": { + "tokenAddress": "0xe49465604e25cd5167005e0cEbD8Af461e833b83", + "allowListEnabled": false, + "poolAddress": "0xe660606961DF8855E589d59795FAe4b0ecD41FD3", + "poolType": "burnMint", + "name": "Wrapped USDx", + "symbol": "wUSDx", + "decimals": 6 + }, + "mainnet": { + "tokenAddress": "0xAe770d24ec1580A13392E0B71067571351029203", + "allowListEnabled": false, + "poolAddress": "0xd72F7010f0Fa621aB0869e61e9bb4e3cC887c66c", + "poolType": "burnMint", + "name": "Wrapped USDx", + "symbol": "wUSDx", + "decimals": 6 + } + }, "rsETH": { "bsc-mainnet": { "tokenAddress": "0x4186BFC76E2E237523CBC30FD220FE055156b41F", @@ -1161,7 +1226,7 @@ "decimals": 18 } }, - "WOETH": { + "wOETH": { "ethereum-mainnet-arbitrum-1": { "tokenAddress": "0xD8724322f44E5c58D7A815F542036fb17DbbF839", "allowListEnabled": false, @@ -1177,7 +1242,7 @@ "poolAddress": "0x1e89F91Ee35D7d21c8e8238c79146daF7aB8Bb94", "poolType": "burnMint", "name": "Wrapped OETH", - "symbol": "WOETH", + "symbol": "wOETH", "decimals": 18 }, "mainnet": { @@ -1458,6 +1523,26 @@ "decimals": 8 } }, + "MILO": { + "ethereum-mainnet-arbitrum-1": { + "tokenAddress": "0x8FfC46A1b7a3b12F4A11Db8877d302876DCA7Ab1", + "allowListEnabled": false, + "poolAddress": "0xA3906C0bA7f92B47A0D95Ce462Da8210FB418a3F", + "poolType": "lockRelease", + "name": "Milo", + "symbol": "MILO", + "decimals": 18 + }, + "ethereum-mainnet-optimism-1": { + "tokenAddress": "0xe22fe63E20c3D817121022316B2430b5A516a6CE", + "allowListEnabled": false, + "poolAddress": "0x656038F45357852A06D5a01F194899d48a24AA3C", + "poolType": "burnMint", + "name": "Milo", + "symbol": "MILO", + "decimals": 18 + } + }, "DFX": { "ethereum-mainnet-arbitrum-1": { "tokenAddress": "0x27f485b62C4A7E635F561A87560Adf5090239E93", @@ -1734,6 +1819,66 @@ "decimals": 18 } }, + "MEEM": { + "ethereum-mainnet-base-1": { + "tokenAddress": "0x15f9cec1c568352Cd48Da1E84D3e74F27f6ee160", + "allowListEnabled": false, + "poolAddress": "0xB5e3477feb00f79A2aF25c001dD4882d9fcD4545", + "poolType": "burnMint", + "name": "Cryptex Meme Index", + "symbol": "MEEM", + "decimals": 18 + }, + "mainnet": { + "tokenAddress": "0xA544b3F0c46c15F0B2b00ba3D67b56C250287905", + "allowListEnabled": false, + "poolAddress": "0xC456EaE992e4f2925E3F75Ac4809dF387756CD29", + "poolType": "lockRelease", + "name": "Cryptex Meme Index", + "symbol": "MEEM", + "decimals": 18 + } + }, + "SUSDz": { + "ethereum-mainnet-base-1": { + "tokenAddress": "0xe31eE12bDFDD0573D634124611e85338e2cBF0cF", + "allowListEnabled": false, + "poolAddress": "0x162a6D638c6d0a97CCd89f1d4E312191d27b8e00", + "poolType": "burnMint", + "name": "Staked USDz", + "symbol": "sUSDz", + "decimals": 18 + }, + "mainnet": { + "tokenAddress": "0x547213367cfB08ab418E7b54d7883b2C2AA27Fd7", + "allowListEnabled": false, + "poolAddress": "0x82Df5c453e854CFaD64EA3f16497B5c5b9DB012B", + "poolType": "lockRelease", + "name": "Staked USDz", + "symbol": "sUSDz", + "decimals": 18 + } + }, + "sDAI": { + "ethereum-mainnet-mode-1": { + "tokenAddress": "0x3f51c6c5927B88CDEc4b61e2787F9BD0f5249138", + "allowListEnabled": false, + "poolAddress": "0xEB7A57AA6F26a285A6FDef94bDA92a58aDe802B8", + "poolType": "burnMint", + "name": "Mode Savings Dai", + "symbol": "msDAI", + "decimals": 18 + }, + "mainnet": { + "tokenAddress": "0x83F20F44975D03b1b09e64809B757c47f942BEeA", + "allowListEnabled": false, + "poolAddress": "0xa904B9343632A6ca4f4a1b0C9eFa011cb319d000", + "poolType": "lockRelease", + "name": "Savings Dai", + "symbol": "sDAI", + "decimals": 18 + } + }, "BYTES": { "mainnet": { "tokenAddress": "0xa19f5264F7D7Be11c451C093D8f92592820Bea86", diff --git a/src/features/ccip/components/supported-networks/LaneConfig.astro b/src/features/ccip/components/supported-networks/LaneConfig.astro index 6e93ba60ac7..28a9ba46fc1 100644 --- a/src/features/ccip/components/supported-networks/LaneConfig.astro +++ b/src/features/ccip/components/supported-networks/LaneConfig.astro @@ -14,6 +14,7 @@ import BigNumber from "bignumber.js" import { utils } from "ethers" import { getExplorer, getExplorerAddressUrl } from "@features/utils" import { Tooltip } from "@features/common/Tooltip" +import { TokenExtraInfo } from "./types" import TokenSearch from "./TokenSearch" type ConfigProps = { @@ -100,15 +101,6 @@ if (!explorerUrl) throw Error(`Explorer url not found for ${sourceChain}`) const onRampExplorerUrl = getExplorerAddressUrl(explorerUrl)(onRamp) -interface TokenExtraInfo { - token: string - address: string - rateLimiterConfig: { capacity: string; isEnabled: boolean; rate: string } - name?: string - decimals: number - poolMechanism?: string -} - let tokensWithExtraInfo: TokenExtraInfo[] = [] const determineMechanism = ( @@ -156,6 +148,7 @@ if (supportedTokens) { return { token: supportedToken, + symbol: sourceData.symbol, address: sourceData.tokenAddress, rateLimiterConfig: rateLimiterConfig, decimals: sourceData.decimals, diff --git a/src/features/ccip/components/supported-networks/TokenSearch.tsx b/src/features/ccip/components/supported-networks/TokenSearch.tsx index 8a152facde3..dda6509aa1d 100644 --- a/src/features/ccip/components/supported-networks/TokenSearch.tsx +++ b/src/features/ccip/components/supported-networks/TokenSearch.tsx @@ -7,18 +7,7 @@ import { SupportedChain } from "@config" import { getExplorer, getExplorerAddressUrl } from "@features/utils" import Address from "@components/Address" import { SimplePreactTooltip } from "@features/common/Tooltip" - -interface TokenExtraInfo { - token: string - address: string - rateLimiterConfig: { - capacity: string - isEnabled: boolean - rate: string - } - decimals: number - poolMechanism?: string -} +import { TokenExtraInfo } from "./types" interface TokenSearchProps { tokens: TokenExtraInfo[] @@ -92,7 +81,9 @@ const TokenSearch: FunctionComponent = ({ tokens, sourceChain const handleInput = (event: h.JSX.TargetedEvent) => { const newSearchTerm = event.currentTarget.value.toLowerCase() setSearchTerm(newSearchTerm) - const newFilteredTokens = tokens.filter((token) => token.token.toLowerCase().includes(newSearchTerm)) + const newFilteredTokens = tokens.filter( + (token) => token.token.toLowerCase().includes(newSearchTerm) || token.symbol.toLowerCase().includes(newSearchTerm) + ) setFilteredTokens(newFilteredTokens) } @@ -159,7 +150,7 @@ const TokenSearch: FunctionComponent = ({ tokens, sourceChain {filteredTokens.length > 0 ? ( filteredTokens.map((token) => ( - {token.token} + {token.symbol}
= ({ tokens, sourceChain {token.poolMechanism} {token.rateLimiterConfig?.isEnabled - ? display(token.rateLimiterConfig.capacity, token.decimals) + " " + token.token + ? display(token.rateLimiterConfig.capacity, token.decimals) + " " + token.symbol : "N/A"} @@ -180,7 +171,7 @@ const TokenSearch: FunctionComponent = ({ tokens, sourceChain const { rateSecond, maxThroughput } = displayRate( token.rateLimiterConfig.capacity, token.rateLimiterConfig.rate, - token.token, + token.symbol, token.decimals ) return ( diff --git a/src/features/ccip/components/supported-networks/types.ts b/src/features/ccip/components/supported-networks/types.ts new file mode 100644 index 00000000000..be4ab088230 --- /dev/null +++ b/src/features/ccip/components/supported-networks/types.ts @@ -0,0 +1,9 @@ +export interface TokenExtraInfo { + token: string + symbol: string + address: string + rateLimiterConfig: { capacity: string; isEnabled: boolean; rate: string } + name?: string + decimals: number + poolMechanism?: string +}