Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/main/src/dex/lib/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export async function getNetworks() {

const liteNetworks = Object.values(resp).reduce(
(prev, { chainId, ...config }) => {
const isUpgraded = chainId == Chain.Sonic // sonic is upgraded from lite to full
const isUpgraded = [Chain.Sonic, Chain.Hyperliquid].includes(chainId) // networks upgraded from lite to full
prev[chainId] = {
...getBaseNetworksConfig<NetworkEnum>(Number(chainId), config),
...DEFAULT_NETWORK_CONFIG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const hyperliquid = defineChain({
testnet: false,
nativeCurrency: { name: 'Hype', symbol: 'HYPE', decimals: 18 },
rpcUrls: { default: { http: ['https://rpc.hyperliquid.xyz/evm'] } },
blockExplorers: { default: { name: 'Purrsec', url: 'https://purrsec.com/' } },
blockExplorers: { default: { name: 'Hyperscan', url: 'https://www.hyperscan.com/' } },
})

export const tac = defineChain({
Expand Down
1 change: 1 addition & 0 deletions packages/curve-ui-kit/src/utils/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export enum Chain {
XLayer = 196,
Mantle = 5000,
Sonic = 146,
Hyperliquid = 999,
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/prices-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/prices-api",
"version": "1.1.6",
"version": "1.1.7",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/prices-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const chains = [
'polygon',
'fraxtal',
'sonic',
'hyperliquid',
] as const

export type Chain = (typeof chains)[number]
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/src/utils/utilsNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ export const NETWORK_BASE_CONFIG = {
nativeCurrencySymbol: 'S',
explorerUrl: 'https://sonicscan.org/',
},
[Chain.Hyperliquid]: {
id: 'hyperliquid',
chainId: Chain.Hyperliquid,
rpcUrl: `https://rpc.hyperliquid.xyz/evm`,
nativeCurrencySymbol: 'HYPE',
explorerUrl: 'https://www.hyperscan.com/',
},
} satisfies { [key in Chain]: { chainId: key; [_: string]: any } }

export type BaseConfig<TId = string> = {
Expand Down