Skip to content

Commit e0bacba

Browse files
committed
add unichain mainnet
1 parent d31ae84 commit e0bacba

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/utils/chains.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -463,34 +463,36 @@ export function getSubgraphConfig(): SubgraphConfig {
463463
} else if (selectedNetwork == UNICHAIN_NETWORK_NAME) {
464464
return {
465465
factoryAddress: '0x1f98400000000000000000000000000000000003',
466-
stablecoinWrappedNativePoolAddress: '', // USDC/WETH
466+
stablecoinWrappedNativePoolAddress: '0xe4e90705598e9fa297eab1774573651759667258', // DAI/WETH
467467
stablecoinIsToken0: true,
468468
wrappedNativeAddress: '0x4200000000000000000000000000000000000006', // WETH
469469
minimumNativeLocked: BigDecimal.fromString('1'),
470470
stablecoinAddresses: [
471-
'', // USDC
471+
'0x078d782b760474a361dda0af3839290b0ef57ad6', // USDC
472+
'0x20cab320a855b39f724131c69424240519573f81', // DAI
472473
],
473474
whitelistTokens: [
474475
'0x4200000000000000000000000000000000000006', // WETH
475-
'', // USDC
476+
'0x078d782b760474a361dda0af3839290b0ef57ad6', // USDC
477+
'0x20cab320a855b39f724131c69424240519573f81', // DAI
476478
],
477479
tokenOverrides: [],
478480
poolsToSkip: [],
479481
poolMappings: [],
480482
}
481483
} else if (selectedNetwork == UNICHAIN_SEPOLIA_NETWORK_NAME) {
482484
return {
483-
factoryAddress: '0x1F98431c8aD98523631AE4a59f267346ea31F984',
484-
stablecoinWrappedNativePoolAddress: '0xE87b0A6C6611119deCF5C4e9203E1c46F561BdAE', // USDC/WETH
485+
factoryAddress: '0x1f98431c8ad98523631ae4a59f267346ea31f984',
486+
stablecoinWrappedNativePoolAddress: '0xe87b0a6c6611119decf5c4e9203e1c46f561bdae', // USDC/WETH
485487
stablecoinIsToken0: true,
486488
wrappedNativeAddress: '0x4200000000000000000000000000000000000006', // WETH
487489
minimumNativeLocked: BigDecimal.fromString('1'),
488490
stablecoinAddresses: [
489-
'0x31d0220469e10c4E71834a79b1f276d740d3768F', // USDC
491+
'0x31d0220469e10c4e71834a79b1f276d740d3768f', // USDC
490492
],
491493
whitelistTokens: [
492494
'0x4200000000000000000000000000000000000006', // WETH
493-
'0x31d0220469e10c4E71834a79b1f276d740d3768F', // USDC
495+
'0x31d0220469e10c4e71834a79b1f276d740d3768f', // USDC
494496
],
495497
tokenOverrides: [],
496498
poolsToSkip: [],

subgraph.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ features:
99
dataSources:
1010
- kind: ethereum/contract
1111
name: Factory
12-
network: sepolia
12+
network: unichain-mainnet
1313
source:
14-
address: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c"
1514
abi: Factory
16-
startBlock: 3518270
15+
address: "0x1f98400000000000000000000000000000000003"
16+
startBlock: 0
1717
mapping:
1818
kind: ethereum/events
1919
apiVersion: 0.0.7
@@ -39,7 +39,7 @@ dataSources:
3939
templates:
4040
- kind: ethereum/contract
4141
name: Pool
42-
network: sepolia
42+
network: unichain-mainnet
4343
source:
4444
abi: Pool
4545
mapping:

0 commit comments

Comments
 (0)