Skip to content
Open
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
37 changes: 32 additions & 5 deletions src/components/transactions/Bridge/BridgeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ import {
AaveV3BaseSepolia,
AaveV3Ethereum,
AaveV3Gnosis,
AaveV3InkWhitelabel,
AaveV3Sepolia,
GhoArbitrum,
GhoAvalanche,
GhoBase,
GhoEthereum,
GhoGnosis,
GhoInk,
GhoMantle,
} from '@bgd-labs/aave-address-book';
import { constants } from 'ethers';
import { TokenInfoWithBalance } from 'src/hooks/generic/useTokensBalance';
Expand All @@ -24,7 +29,7 @@ type Config = {
sourceChainId: ChainId | number;
router: string;
chainSelector: string;
subgraphKey: SubgraphKey;
subgraphKey: SubgraphKey | 'unsupported';
tokenOracle: string; // Used to get the GHO price
wrappedNativeOracle: string; // Used to get the fee price in USD
lockReleaseTokenPool?: string; // Only exists on Ethereum
Expand Down Expand Up @@ -149,7 +154,7 @@ const prodConfig: Config[] = [
{
sourceChainId: ChainId.avalanche,
chainSelector: '6433500567565415381',
burnMintTokenPool: '0xDe6539018B095353A40753Dc54C91C68c9487D4E',
burnMintTokenPool: GhoAvalanche.GHO_CCIP_TOKEN_POOL,
router: '0xF4c7E640EdA248ef95972845a62bdC74237805dB',
tokenOracle: '0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12',
wrappedNativeOracle: AaveV3Avalanche.ASSETS.WAVAX.ORACLE,
Expand Down Expand Up @@ -183,7 +188,7 @@ const prodConfig: Config[] = [
{
sourceChainId: ChainId.xdai,
chainSelector: '465200170687744372',
burnMintTokenPool: '0xDe6539018B095353A40753Dc54C91C68c9487D4E',
burnMintTokenPool: GhoGnosis.GHO_CCIP_TOKEN_POOL,
router: '0x4aAD6071085df840abD9Baf1697d5D5992bDadce',
tokenOracle: '0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12',
wrappedNativeOracle: AaveV3Gnosis.ASSETS.WXDAI.ORACLE,
Expand All @@ -205,10 +210,10 @@ const prodConfig: Config[] = [
{
sourceChainId: ChainId.ink,
chainSelector: '3461204551265785888',
burnMintTokenPool: '0xDe6539018B095353A40753Dc54C91C68c9487D4E',
burnMintTokenPool: GhoInk.GHO_CCIP_TOKEN_POOL,
router: '0xca7c90A52B44E301AC01Cb5EB99b2fD99339433A',
tokenOracle: '0x20fd5f3FCac8883a3A0A2bBcD658A2d2c6EFa6B6',
wrappedNativeOracle: '0xA17887fd35B14A4c6e6ec87458591941934d444c',
wrappedNativeOracle: AaveV3InkWhitelabel.ASSETS.WETH.ORACLE,
subgraphKey: 'ccip-ink',
feeTokens: [
{
Expand All @@ -224,6 +229,28 @@ const prodConfig: Config[] = [
},
],
},
{
sourceChainId: ChainId.mantle,
chainSelector: '1556008542357238666',
burnMintTokenPool: GhoMantle.GHO_CCIP_TOKEN_POOL,
router: '0x670052635a9850bb45882Cb2eCcF66bCff0F41B7',
tokenOracle: '0x360d8aa8F6b09B7BC57aF34db2Eb84dD87bf4d12',
wrappedNativeOracle: '0xD97F20bEbeD74e8144134C4b148fE93417dd0F96',
subgraphKey: 'unsupported',
feeTokens: [
{
name: 'Mantle',
symbol: 'MNT',
decimals: 18,
address: constants.AddressZero, // Use zero address for network token ccip
chainId: ChainId.mantle,
extensions: {
isNative: true,
},
balance: '0',
},
],
},
];

const testnetConfig: Config[] = [
Expand Down
Loading