Skip to content

Commit

Permalink
feat: Arbitrum support to network controller (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickk137 authored Apr 29, 2024
1 parent 9292a2e commit 33af071
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/deployments/8453-andromeda/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "synthetix-omnibus",
"version": "19",
"version": "23",
"preset": "andromeda",
"url": "ipfs://QmeSt2mnJKE8qmRhLyYbHQQxDKpsFbcWnw5e7JF4xVbN6k",
"chainId": 8453,
Expand Down
2 changes: 1 addition & 1 deletion contracts/deployments/84532-andromeda/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "synthetix-omnibus",
"version": "22",
"version": "24",
"preset": "andromeda",
"url": "ipfs://QmeSt2mnJKE8qmRhLyYbHQQxDKpsFbcWnw5e7JF4xVbN6k",
"chainId": 84532,
Expand Down
3 changes: 2 additions & 1 deletion liquidity/ui/src/layouts/Default/NetworkController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export function NetworkController() {
</MenuButton>
<MenuList>
{networks.map(({ id, label }) => {
if ((id === 84532 || id === 11155111) && !showTestnets) return null;
if ((id === 84532 || id === 11155111 || id === 421614) && !showTestnets)
return null;
return (
<MenuItem key={`${id}`} onClick={() => setNetwork(id)}>
<NetworkIcon networkId={id} />
Expand Down
4 changes: 2 additions & 2 deletions liquidity/ui/src/utils/onboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import coinbaseModule from '@web3-onboard/coinbase';
import { init } from '@web3-onboard/react';

// LP App Supported Networks
// MAINNET, SEPOLIA, BASE, BASE SEPOLIA,
const supportedNetworks = [1, 11155111, 8453, 84532];
// MAINNET, SEPOLIA, BASE, BASE SEPOLIA, Arbitrum
const supportedNetworks = [1, 11155111, 8453, 84532, 421614, 42161];

// Filter networks to only supported ones
export const networks = NETWORKS.filter((n) => supportedNetworks.includes(n.id)).map((n) => ({
Expand Down

0 comments on commit 33af071

Please sign in to comment.