-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add user active unstaked liquidity TVL
- Loading branch information
Showing
6 changed files
with
498 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
export const enum CHAINS { | ||
L2_CHAIN_ID = 59144, | ||
} | ||
export const enum PROTOCOLS { | ||
LYNEX = 0, | ||
} | ||
import { createPublicClient, http } from "viem"; | ||
import { linea } from "viem/chains"; | ||
|
||
export const enum AMM_TYPES { | ||
LYNEX = 0, | ||
} | ||
export const V2_SUBGRAPH_URL = | ||
"https://api.studio.thegraph.com/query/59052/lynex-v1/version/latest"; | ||
export const GAUGE_SUBGRAPH_URL = | ||
"https://api.goldsky.com/api/public/project_cltyhthusbmxp01s95k9l8a1u/subgraphs/lynex-gauges/1.1.0/gn"; | ||
export const V3_SUBGRAPH_URL = | ||
"https://api.studio.thegraph.com/query/59052/lynex-cl/v0.0.1"; | ||
|
||
export const SUBGRAPH_URLS = { | ||
[CHAINS.L2_CHAIN_ID]: { | ||
[PROTOCOLS.LYNEX]: { | ||
[AMM_TYPES.LYNEX]: | ||
"https://api.goldsky.com/api/public/project_cltyhthusbmxp01s95k9l8a1u/subgraphs/lynex-gauges/1.1.0/gn", | ||
}, | ||
}, | ||
}; | ||
export const RPC_URLS = { | ||
[CHAINS.L2_CHAIN_ID]: "https://rpc.linea.build", | ||
}; | ||
export const client = createPublicClient({ | ||
chain: linea, | ||
transport: http("https://rpc.linea.build"), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.