Skip to content

Commit

Permalink
Merge branch 'main' into matteen/support-zora
Browse files Browse the repository at this point in the history
  • Loading branch information
matteenm committed Sep 17, 2024
2 parents ca9d680 + 1394f59 commit 8fa2adb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
23 changes: 15 additions & 8 deletions src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export enum ChainId {
MATIC = 137,
OPTIMISM = 10,
ZKSYNC_ERA = 324,
ZORA = 7777777
ZORA = 7777777,
}

// subgraph does not support string enums, hence these constants
Expand Down Expand Up @@ -371,33 +371,40 @@ export function getSubgraphConfig(): SubgraphConfig {
minimumNativeLocked: BigDecimal.fromString('1'),
stablecoinAddresses: [
'0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4', // USDC.e
'0xa07028b453a1f6ac277e93f3a0ea73b4be5c7d63', // USDT
'0x1d17cbcf0d6d143135ae902365d2e5e2a16538d4' // USDC
'0x493257fd37edb34451f62edf8d2a0c418852ba4c', // USDT
'0x1d17cbcf0d6d143135ae902365d2e5e2a16538d4', // USDC
],
whitelistTokens: [
'0x5aea5775959fbc2557cc8789bc1bf90a239d9a91', // WETH
'0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4', // USDC.e
'0xa07028b453a1f6ac277e93f3a0ea73b4be5c7d63', // USDT
'0x493257fd37edb34451f62edf8d2a0c418852ba4c', // USDT
'0x1d17cbcf0d6d143135ae902365d2e5e2a16538d4', // USDC
'0x5a7d6b2f92c77fad6ccabd7ee0624e64907eaf3e', // ZK
],
tokenOverrides: [],
tokenOverrides: [
{
address: Address.fromString('0x3355df6d4c9c3035724fd0e3914de96a5a83aaf4'),
symbol: 'USDC.e',
name: 'Bridged USDC (zkSync)',
decimals: BigInt.fromI32(6),
},
],
poolsToSkip: [],
poolMappings: [],
}
} else if (selectedNetwork == ZORA_NETWORK_NAME) {
return {
factoryAddress: '0x7145f8aeef1f6510e92164038e1b6f8cb2c42cbb',
stablecoinWrappedNativePoolAddress: '0xbc59f8f3b275aa56a90d13bae7cce5e6e11a3b17', // WETH/USDC 3% pool
stablecoinWrappedNativePoolAddress: '0xbc59f8f3b275aa56a90d13bae7cce5e6e11a3b17', // WETH/USDzC 3% pool
stablecoinIsToken0: false,
wrappedNativeAddress: '0x4200000000000000000000000000000000000006', // WETH
minimumNativeLocked: BigDecimal.fromString('1'),
stablecoinAddresses: [
'0xcccccccc7021b32ebb4e8c08314bd62f7c653ec4' // USDC
'0xcccccccc7021b32ebb4e8c08314bd62f7c653ec4', // USDzC
],
whitelistTokens: [
'0x4200000000000000000000000000000000000006', // WETH
'0xcccccccc7021b32ebb4e8c08314bd62f7c653ec4', // USDC
'0xcccccccc7021b32ebb4e8c08314bd62f7c653ec4', // USDzC
],
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: base
network: mainnet
source:
address: '0x1F98431c8aD98523631AE4a59f267346ea31F984'
abi: Factory
address: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD"
startBlock: 2009445
startBlock: 12369621
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand All @@ -39,7 +39,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pool
network: base
network: mainnet
source:
abi: Pool
mapping:
Expand Down

0 comments on commit 8fa2adb

Please sign in to comment.