Skip to content

Commit 92172c2

Browse files
committed
fix: monad alert for factory-stable-ng-11 only on monad chain
1 parent 07df2c4 commit 92172c2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

apps/main/src/dex/components/MonadBannerAlert.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { Stack } from '@mui/material'
22
import { t } from '@ui-kit/lib/i18n'
33
import { Banner } from '@ui-kit/shared/ui/Banner'
4+
import { Chain } from '@ui-kit/utils'
45
import { usePoolIdByAddressOrId } from '../hooks/usePoolIdByAddressOrId'
56

67
const MonadBannerAlert = ({ chainId, poolIdOrAddress }: { chainId: number; poolIdOrAddress: string }) => {
78
const poolId = usePoolIdByAddressOrId({ chainId, poolIdOrAddress })
8-
const showFactoryStableNg11Banner = poolId === 'factory-stable-ng-11'
9+
const showFactoryStableNg11Banner = poolId === 'factory-stable-ng-11' && chainId === Chain.Monad
910

1011
if (showFactoryStableNg11Banner)
1112
return (

packages/curve-ui-kit/src/features/connect-wallet/lib/wagmi/rpc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const RPC: Record<ChainId, string[]> = {
3232
[ChainId.Strata]: ['https://stratareth3666f0713.devnet-annapurna.stratabtc.org'],
3333
[ChainId.ExpChain]: ['https://rpc0-testnet.expchain.ai'],
3434
[ChainId.ZkSync]: ['https://zksync.drpc.org', 'https://mainnet.era.zksync.io'],
35+
[ChainId.Monad]: [],
3536
} as const
3637

3738
/**

packages/curve-ui-kit/src/utils/network.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ export enum Chain {
3131
MegaEth = 6342,
3232
Strata = 8091,
3333
ExpChain = 18880,
34+
Monad = 143,
3435
}

0 commit comments

Comments
 (0)