Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions src/ui-config/marketsConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export type MarketDataType = {

export enum CustomMarket {
etherlink_testnet = 'etherlink_testnet',
arb_sepolia = 'arb_sepolia',
polygon_amoy = 'polygon_amoy',
}

export const marketsData: {
Expand All @@ -77,4 +79,42 @@ export const marketsData: {
},
faucetUrl: 'https://faucet.plend.finance/receiveFaucetTokens',
},
[CustomMarket.arb_sepolia]: {
marketTitle: 'Arbitrum Sepolia',
chainId: 421614, //ChainId.etherlink_testnet,
v3: true,
enabledFeatures: {
liquiditySwap: false,
collateralRepay: false,
faucet: false,
},
addresses: {
LENDING_POOL_ADDRESS_PROVIDER: '0xfAF21dcB6185571128306B2ffAdef9600cF6E922',
LENDING_POOL: '0xa8b69d6fE496554d0292D058aDd7DC858CA95E5F',
WALLET_BALANCE_PROVIDER: '0xBAF39030C44Ef4E959aFb47F1B7820F562F4CC94',
UI_POOL_DATA_PROVIDER: '0x9C937bf9377Cf90Eea5Dbe3aA2F101E286958509',
UI_INCENTIVE_DATA_PROVIDER: '0xeFcDF7327c897812f2e09442a579Db942F2486ba',
WETH_GATEWAY: '0xC947242338Eb580E2F8212586755F36D20449153',
},
faucetUrl: 'https://faucet.plend.finance/receiveFaucetTokens',
},
[CustomMarket.polygon_amoy]: {
marketTitle: 'Polygon Amoy',
chainId: 80002, //ChainId.etherlink_testnet,
v3: true,
enabledFeatures: {
liquiditySwap: false,
collateralRepay: false,
faucet: false,
},
addresses: {
LENDING_POOL_ADDRESS_PROVIDER: '0xb764c672f31A83B3929845E737DB6F20928890C9',
LENDING_POOL: '0x1fe68e15Ec31894501667129615117f5AA37fa68',
WALLET_BALANCE_PROVIDER: '0x14D5EA200025011533cB5A5954Ab3e08116EddDC',
UI_POOL_DATA_PROVIDER: '0x1b8A658e134883194A16c85622Ad35ceE14c46F8',
UI_INCENTIVE_DATA_PROVIDER: '0x855FEEf492CA6Da186a4F4F98e9D5B8b689E7aAA',
WETH_GATEWAY: '0x56130f7f03600FC86aa3c49C72d7e3C7C3b3394E',
},
faucetUrl: 'https://faucet.plend.finance/receiveFaucetTokens',
},
} as const;
27 changes: 27 additions & 0 deletions src/ui-config/networksConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ export type BaseNetworkConfig = Omit<NetworkConfig, 'explorerLinkBuilder'>;
export enum ChainId {
mainnet = 1,
etherlink_testnet = 128123,
arb_sepolia = 421614,
amoy = 80002,
}

export const ChainIdToNetwork: Record<number, string> = {
1: 'mainnet',
128123: 'etherlink_testnet',
421614: 'arb_sepolia',
80002: 'amoy',
};

export const networkConfigs: Record<string, BaseNetworkConfig> = {
Expand Down Expand Up @@ -94,4 +98,27 @@ export const networkConfigs: Record<string, BaseNetworkConfig> = {
isTestnet: true,
networkLogoPath: '/icons/networks/etherlink.svg',
},
[ChainId.arb_sepolia]: {
name: 'Arbitrum Sepolia',
publicJsonRPCUrl: ['https://arb-sepolia.g.alchemy.com/v2/yCPtGQdadgolaqzEQN5WJUt50kGyM939'],
publicJsonRPCWSUrl: 'wss://arb-sepolia.g.alchemy.com/v2/yCPtGQdadgolaqzEQN5WJUt50kGyM939',
baseUniswapAdapter: '0x0',
baseAssetSymbol: 'ETH',
wrappedBaseAssetSymbol: 'WETH',
baseAssetDecimals: 18,
explorerLink: 'https://sepolia.arbiscan.io',
isTestnet: true,
networkLogoPath: '/icons/networks/arbitrum.svg',
},
[ChainId.amoy]: {
name: 'Amoy',
publicJsonRPCUrl: ['https://rpc-amoy.polygon.technology'],
baseUniswapAdapter: '0x0',
baseAssetSymbol: 'MATIC',
wrappedBaseAssetSymbol: 'WMATIC',
baseAssetDecimals: 18,
explorerLink: 'https://amoyscan.io',
isTestnet: true,
networkLogoPath: '/icons/networks/polygon.svg',
},
} as const;