Skip to content

Commit 8f2eeaa

Browse files
authored
Fix/plasma rpc (#2666)
1 parent fded129 commit 8f2eeaa

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

pages/api/rpc-proxy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const NETWORK_CONFIG: Record<number, { network: string; apiKey: string }> = {
2626
[ChainId.celo]: { network: 'celo-mainnet', apiKey: process.env.CELO_RPC_API_KEY || '' },
2727
[ChainId.soneium]: { network: 'soneium-mainnet', apiKey: process.env.SONEIUM_RPC_API_KEY || '' },
2828
[57073]: { network: 'ink-mainnet', apiKey: process.env.INK_RPC_API_KEY || '' },
29+
[9745]: { network: 'plasma-mainnet', apiKey: process.env.PLASMA_RPC_API_KEY || '' },
2930

3031
// Testnets
3132
[ChainId.sepolia]: { network: 'eth-sepolia', apiKey: process.env.MAINNET_RPC_API_KEY || '' },
@@ -46,11 +47,6 @@ const NETWORK_CONFIG: Record<number, { network: string; apiKey: string }> = {
4647
};
4748

4849
function getRpcUrl(chainId: number): string | null {
49-
// Temp patch for Plasma
50-
if (chainId === 9745) {
51-
return 'https://rpc.plasma.to';
52-
}
53-
5450
const config = NETWORK_CONFIG[chainId];
5551
if (!config) return null;
5652
return `https://${config.network}.g.alchemy.com/v2/${config.apiKey}`;

src/ui-config/marketsConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ export const marketsData: {
614614
UI_POOL_DATA_PROVIDER: '0xc851e6147dcE6A469CC33BE3121b6B2D4CaD2763', //AaveV3Plasma.UI_POOL_DATA_PROVIDER,
615615
UI_INCENTIVE_DATA_PROVIDER: AaveV3Plasma.UI_INCENTIVE_DATA_PROVIDER,
616616
COLLECTOR: AaveV3Plasma.COLLECTOR,
617-
}
617+
},
618618
},
619619
[CustomMarket.proto_polygon_v3]: {
620620
marketTitle: 'Polygon',

0 commit comments

Comments
 (0)