Skip to content

Commit

Permalink
add unichain mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
mz- committed Jan 24, 2025
1 parent d31ae84 commit e0bacba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
16 changes: 9 additions & 7 deletions src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,34 +463,36 @@ export function getSubgraphConfig(): SubgraphConfig {
} else if (selectedNetwork == UNICHAIN_NETWORK_NAME) {
return {
factoryAddress: '0x1f98400000000000000000000000000000000003',
stablecoinWrappedNativePoolAddress: '', // USDC/WETH
stablecoinWrappedNativePoolAddress: '0xe4e90705598e9fa297eab1774573651759667258', // DAI/WETH
stablecoinIsToken0: true,
wrappedNativeAddress: '0x4200000000000000000000000000000000000006', // WETH
minimumNativeLocked: BigDecimal.fromString('1'),
stablecoinAddresses: [
'', // USDC
'0x078d782b760474a361dda0af3839290b0ef57ad6', // USDC
'0x20cab320a855b39f724131c69424240519573f81', // DAI
],
whitelistTokens: [
'0x4200000000000000000000000000000000000006', // WETH
'', // USDC
'0x078d782b760474a361dda0af3839290b0ef57ad6', // USDC
'0x20cab320a855b39f724131c69424240519573f81', // DAI
],
tokenOverrides: [],
poolsToSkip: [],
poolMappings: [],
}
} else if (selectedNetwork == UNICHAIN_SEPOLIA_NETWORK_NAME) {
return {
factoryAddress: '0x1F98431c8aD98523631AE4a59f267346ea31F984',
stablecoinWrappedNativePoolAddress: '0xE87b0A6C6611119deCF5C4e9203E1c46F561BdAE', // USDC/WETH
factoryAddress: '0x1f98431c8ad98523631ae4a59f267346ea31f984',
stablecoinWrappedNativePoolAddress: '0xe87b0a6c6611119decf5c4e9203e1c46f561bdae', // USDC/WETH
stablecoinIsToken0: true,
wrappedNativeAddress: '0x4200000000000000000000000000000000000006', // WETH
minimumNativeLocked: BigDecimal.fromString('1'),
stablecoinAddresses: [
'0x31d0220469e10c4E71834a79b1f276d740d3768F', // USDC
'0x31d0220469e10c4e71834a79b1f276d740d3768f', // USDC
],
whitelistTokens: [
'0x4200000000000000000000000000000000000006', // WETH
'0x31d0220469e10c4E71834a79b1f276d740d3768F', // USDC
'0x31d0220469e10c4e71834a79b1f276d740d3768f', // USDC
],
tokenOverrides: [],
poolsToSkip: [],
Expand Down
8 changes: 4 additions & 4 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ features:
dataSources:
- kind: ethereum/contract
name: Factory
network: sepolia
network: unichain-mainnet
source:
address: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c"
abi: Factory
startBlock: 3518270
address: "0x1f98400000000000000000000000000000000003"
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand All @@ -39,7 +39,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pool
network: sepolia
network: unichain-mainnet
source:
abi: Pool
mapping:
Expand Down

0 comments on commit e0bacba

Please sign in to comment.