Skip to content
Open
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
6 changes: 6 additions & 0 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,11 @@
"address": "0x0227628f3F023bb0B980b67D528571c95c6DaC1c",
"startBlock": 3518270
}
},
"soneium-mainnet": {
"Factory": {
"address": "0x42ae7ec7ff020412639d443e245d936429fbe717",
"startBlock": 3254740
}
}
}
19 changes: 19 additions & 0 deletions src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const WORLDCHAIN_MAINNET_NETWORK_NAME = 'worldchain-mainnet'
const SEPOLIA_NETWORK_NAME = 'sepolia'
const UNICHAIN_NETWORK_NAME = 'unichain-mainnet'
const UNICHAIN_SEPOLIA_NETWORK_NAME = 'unichain-sepolia'
const SONEIUM_NETWORK_NAME = 'soneium-mainnet'

// Note: All token and pool addresses should be lowercased!
export class SubgraphConfig {
Expand Down Expand Up @@ -498,6 +499,24 @@ export function getSubgraphConfig(): SubgraphConfig {
poolsToSkip: [],
poolMappings: [],
}
} else if (selectedNetwork == SONEIUM_NETWORK_NAME) {
return {
factoryAddress: '0x42ae7ec7ff020412639d443e245d936429fbe717',
stablecoinWrappedNativePoolAddress: '0xcd4255ceae51803a9333aa1a559991e17b024efc', // USDC/WETH 0.05% pool
stablecoinIsToken0: true,
wrappedNativeAddress: '0x4200000000000000000000000000000000000006', // WETH
minimumNativeLocked: BigDecimal.fromString('1'),
stablecoinAddresses: [
'0xba9986d2381edf1da03b0b9c1f8b00dc4aacc369', // USDC
],
whitelistTokens: [
'0x4200000000000000000000000000000000000006', // WETH
'0xba9986d2381edf1da03b0b9c1f8b00dc4aacc369', // USDC
],
tokenOverrides: [],
poolsToSkip: [],
poolMappings: [],
}
} else {
throw new Error('Unsupported Network')
}
Expand Down
Loading