Skip to content

Commit 8eb2f1b

Browse files
committed
BSC support
1 parent 74b42f6 commit 8eb2f1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ChainConfig.jsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ export function getChainConfigs() {
2727
chain.addresses.maglevAddrs = {
2828
maglevLens: '0xb4876B74638F417Fa620B6169cdf7690351441fE',
2929
};
30+
} else if (chain.chainId === 56) {
31+
chain.addresses.eulerSwapAddrs = {
32+
eulerSwapFactory: '0x3e378e5E339DF5e0Da32964F9EEC2CDb90D28Cc7',
33+
eulerSwapPeriphery: '0xa8826Bb29f875Db4c4b482463961776390774525',
34+
};
35+
36+
chain.addresses.maglevAddrs = {
37+
maglevLens: '0x487554e593fD6Ac15F6D0ED3C3D84A599fdCD704',
38+
};
3039
} else if (chain.chainId === 130) {
3140
chain.addresses.eulerSwapAddrs = {
3241
eulerSwapFactory: '0x45b146BC07c9985589B52df651310e75C6BE066A',
@@ -57,6 +66,8 @@ export function getWagmiChainConfigs() {
5766

5867
if (chain.id === 1) {
5968
chain.rpcUrls.default.http[0] = 'https://lb.drpc.org/ogrpc?network=ethereum&dkey=AqqUmy43EUMFg-KecrSxzlod45SCPT4R8I63FuhS1q00';
69+
} else if (chain.id === 56) {
70+
chain.rpcUrls.default.http[0] = 'https://lb.drpc.org/ogrpc?network=bsc&dkey=AqqUmy43EUMFg-KecrSxzlod45SCPT4R8I63FuhS1q00';
6071
} else if (chain.id === 130) {
6172
chain.rpcUrls.default.http[0] = 'https://lb.drpc.org/ogrpc?network=unichain&dkey=AqqUmy43EUMFg-KecrSxzlod45SCPT4R8I63FuhS1q00';
6273
}

0 commit comments

Comments
 (0)