Skip to content

Commit

Permalink
feat: add PoP Apex USDC gateway (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx authored Nov 18, 2024
1 parent 1403b8e commit 8637224
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/arb-token-bridge-ui/src/util/fetchL2Gateways.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
l2DaiGatewayAddresses,
l2LptGatewayAddresses,
l2MoonGatewayAddresses,
l2UsdcGatewayAddresses,
l2wstETHGatewayAddresses
} from '../util/networks'

Expand Down Expand Up @@ -34,6 +35,7 @@ export async function fetchL2Gateways(l2Provider: Provider) {
const l2wstETHGateway = l2wstETHGatewayAddresses[l2Network.chainId]
const l2LptGateway = l2LptGatewayAddresses[l2Network.chainId]
const l2MoonGateway = l2MoonGatewayAddresses[l2Network.chainId]
const l2UsdcGateway = l2UsdcGatewayAddresses[l2Network.chainId]

if (l2ArbReverseGateway) {
gatewaysToUse.push(l2ArbReverseGateway)
Expand All @@ -50,6 +52,9 @@ export async function fetchL2Gateways(l2Provider: Provider) {
if (l2MoonGateway) {
gatewaysToUse.push(l2MoonGateway)
}
if (l2UsdcGateway) {
gatewaysToUse.push(l2UsdcGateway)
}

return gatewaysToUse
}
5 changes: 5 additions & 0 deletions packages/arb-token-bridge-ui/src/util/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ export const l2MoonGatewayAddresses: { [chainId: number]: string } = {
[ChainId.ArbitrumNova]: '0xA430a792c14d3E49d9D00FD7B4BA343F516fbB81'
}

export const l2UsdcGatewayAddresses: { [chainId: number]: string } = {
// PoP Apex
70700: '0x97e2b88b44946cd932fb85675412699723200987'
}

const defaultL1Network: BlockNumberReferenceNetwork = {
blockTime: 10,
chainId: 1337,
Expand Down

0 comments on commit 8637224

Please sign in to comment.