diff --git a/.env.example b/.env.example index 5eef4d42e1..5feb037385 100644 --- a/.env.example +++ b/.env.example @@ -46,6 +46,7 @@ ZKSYNC_RPC_API_KEY= LINEA_RPC_API_KEY= SONIC_RPC_API_KEY= CELO_RPC_API_KEY= +MONAD_RPC_API_KEY= FAMILY_API_KEY= FAMILY_API_URL= COINGECKO_API_KEY= diff --git a/package.json b/package.json index 9b6501b573..e8f478ab64 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "test:coverage": "jest --coverage" }, "dependencies": { - "@aave-dao/aave-address-book": "^4.49.3", + "@aave-dao/aave-address-book": "^4.55.6", "@aave/contract-helpers": "1.38.0", "@aave/graphql": "0.12.0", "@aave/math-utils": "1.38.0", diff --git a/pages/api/rpc-proxy.ts b/pages/api/rpc-proxy.ts index 0467289089..147c6b822c 100644 --- a/pages/api/rpc-proxy.ts +++ b/pages/api/rpc-proxy.ts @@ -1,6 +1,6 @@ import { ChainId } from '@aave/contract-helpers'; import { NextApiRequest, NextApiResponse } from 'next'; -import { mantle, megaeth, xLayer } from 'viem/chains'; +import { mantle, megaeth, monad, xLayer } from 'viem/chains'; // Documentation: ./server-side-rpc-proxy.md const NETWORK_CONFIG: Record = { @@ -31,6 +31,7 @@ const NETWORK_CONFIG: Record = { [megaeth.id]: { network: 'megaeth-mainnet', apiKey: process.env.MEGAETH_RPC_API_KEY || '' }, [mantle.id]: { network: 'mantle-mainnet', apiKey: process.env.MANTLE_RPC_API_KEY || '' }, [xLayer.id]: { network: 'xlayer-mainnet', apiKey: process.env.XLAYER_RPC_API_KEY || '' }, + [monad.id]: { network: 'monad-mainnet', apiKey: process.env.MONAD_RPC_API_KEY || '' }, // Testnets [ChainId.sepolia]: { network: 'eth-sepolia', apiKey: process.env.MAINNET_RPC_API_KEY || '' }, diff --git a/src/components/transactions/AssetInput.tsx b/src/components/transactions/AssetInput.tsx index 58094a2216..18635ee701 100644 --- a/src/components/transactions/AssetInput.tsx +++ b/src/components/transactions/AssetInput.tsx @@ -195,13 +195,24 @@ export const AssetInput = ({ )} {!onSelect || assets.length === 1 ? ( - + - + {symbol} diff --git a/src/components/transactions/Bridge/BridgeConfig.ts b/src/components/transactions/Bridge/BridgeConfig.ts index a0f594ca27..03f58258ff 100644 --- a/src/components/transactions/Bridge/BridgeConfig.ts +++ b/src/components/transactions/Bridge/BridgeConfig.ts @@ -273,6 +273,27 @@ const prodConfig: Config[] = [ }, ], }, + { + sourceChainId: 143, + chainSelector: '8481857512324358265', + burnMintTokenPool: '0xA5AE05b71c3F170E12E7620Fdf7679721aec1EC8', + router: '0x33566fE5976AAa420F3d5C64996641Fc3858CaDB', + tokenOracle: '0x26cBccD96502D2EfDb612737bD6aECe19f65109c', + wrappedNativeOracle: '0x432AAcD32253B6683f6483fB0d3285bA0082EfDb', + feeTokens: [ + { + name: 'Monad', + symbol: 'Mon', + decimals: 18, + address: constants.AddressZero, // Use zero address for network token ccip + chainId: 143, + extensions: { + isNative: true, + }, + balance: '0', + }, + ], + }, ]; const testnetConfig: Config[] = [ diff --git a/src/components/transactions/Withdraw/WithdrawModalContent.tsx b/src/components/transactions/Withdraw/WithdrawModalContent.tsx index 2037b67843..bc427401f9 100644 --- a/src/components/transactions/Withdraw/WithdrawModalContent.tsx +++ b/src/components/transactions/Withdraw/WithdrawModalContent.tsx @@ -167,6 +167,15 @@ export const WithdrawModalContent = ({ ? currentNetworkConfig.baseAssetSymbol : poolReserve.symbol } + sx={{ + maxWidth: { xs: '140px', sm: '180px' }, + '& > span:last-of-type': { + minWidth: 0, + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + }, + }} />