Skip to content

Commit

Permalink
chore: re-order chains by tvl according to defillama
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Sep 12, 2024
1 parent a612879 commit de2f3bb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/sushi/src/chain/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const ChainId = {
MANTLE: 5000,
// RONIN: 2020,
CURTIS: 33111,
// APTOS: 'aptos',
} as const
export type ChainId = (typeof ChainId)[keyof typeof ChainId]

Expand Down
29 changes: 18 additions & 11 deletions packages/ui/src/components/network-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,33 @@ export type NetworkSelectorOnSelectCallback<T extends number = ChainId> = (

const PREFERRED_CHAINID_ORDER: ChainId[] = [
ChainId.ETHEREUM,
ChainId.BSC,
ChainId.ARBITRUM,
ChainId.ARBITRUM_NOVA,
ChainId.BASE,
ChainId.AVALANCHE,
ChainId.POLYGON,
ChainId.POLYGON_ZKEVM,
ChainId.BLAST,
ChainId.SCROLL,
ChainId.OPTIMISM,
ChainId.LINEA,
ChainId.ROOTSTOCK,
ChainId.BLAST,
ChainId.ZETACHAIN,
ChainId.MANTLE,
// ChainId.MODE,
// APTOS?
ChainId.CRONOS,
// ChainId.ZKLINK,
ChainId.CORE,
ChainId.FILECOIN,
ChainId.BSC,
ChainId.THUNDERCORE,
ChainId.GNOSIS,
ChainId.AVALANCHE,
ChainId.ROOTSTOCK,
ChainId.KAVA,
ChainId.CELO,
ChainId.FANTOM,
ChainId.ARBITRUM_NOVA,
ChainId.HARMONY,
ChainId.ZKSYNC_ERA,
ChainId.FILECOIN,
ChainId.METIS,
ChainId.TELOS,
ChainId.POLYGON_ZKEVM,
ChainId.ZETACHAIN,
]

export interface NetworkSelectorProps<T extends number = ChainId> {
Expand All @@ -55,7 +63,6 @@ export interface NetworkSelectorProps<T extends number = ChainId> {
const NEW_CHAINS: number[] = [
ChainId.ZKSYNC_ERA,
ChainId.MANTLE,
ChainId.CRONOS,
] satisfies ChainId[]

const NetworkSelector = <T extends number>({
Expand Down

0 comments on commit de2f3bb

Please sign in to comment.