Skip to content

Commit 4d61a2d

Browse files
authored
Merge pull request #205 from Uniswap/monad-support
monad
2 parents 347e9b1 + dd9bc36 commit 4d61a2d

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

config/monad/.subgraph-env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
V2_TOKEN_SUBGRAPH_NAME="v2-tokens-monad"
2+
V2_SUBGRAPH_NAME="uniswap-v2-monad"

config/monad/chain.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts/index'
2+
3+
export const FACTORY_ADDRESS = '0x182a927119d56008d921126764bf884221b10f59'
4+
5+
export const REFERENCE_TOKEN = '0x3bd359c1119da7da1d913d1c4d2b7c461115433a'
6+
export const STABLE_TOKEN_PAIRS = ['0x3fe12728ea1b89e4bac6e59a9130b61a27d032f8']
7+
8+
// token where amounts should contribute to tracked volume and liquidity
9+
export const WHITELIST: string[] = [
10+
'0x3bd359c1119da7da1d913d1c4d2b7c461115433a', // WMON
11+
'0x754704bc059f8c67012fed69bc8a327a5aafb603', // USDC
12+
'0x00000000efe302beaa2b3e6e1b18d08d69a9012a', // AUSD
13+
'0xe7cd86e13ac4309349f30b3435a9d337750fc82d', // USDT
14+
'0xee8c0e9f1bffb4eb878d8f15f368a02a35481242', // WETH
15+
'0xea17e5a9efebf1477db45082d67010e2245217f1', // WSOL
16+
]
17+
18+
export const STABLECOINS = [
19+
'0x754704bc059f8c67012fed69bc8a327a5aafb603', // USDC
20+
'0x00000000efe302beaa2b3e6e1b18d08d69a9012a', // AUSD
21+
'0xe7cd86e13ac4309349f30b3435a9d337750fc82d', // USDT
22+
]
23+
24+
// minimum liquidity required to count towards tracked volume for pairs with small # of Lps
25+
export const MINIMUM_USD_THRESHOLD_NEW_PAIRS = BigDecimal.fromString('10000')
26+
27+
// minimum liquidity for price to get tracked
28+
export const MINIMUM_LIQUIDITY_THRESHOLD_ETH = BigDecimal.fromString('100000')
29+
30+
export class TokenDefinition {
31+
address: Address
32+
symbol: string
33+
name: string
34+
decimals: BigInt
35+
}
36+
37+
export const STATIC_TOKEN_DEFINITIONS: TokenDefinition[] = []
38+
39+
export const SKIP_TOTAL_SUPPLY: string[] = []

config/monad/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"network": "monad",
3+
"factory": "0x182a927119D56008d921126764bF884221b10f59",
4+
"startblock": "29255814"
5+
}

script/utils/prepareNetwork.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export enum NETWORK {
1212
CELO = 'celo',
1313
ETHEREUM = 'ethereum',
1414
MATIC = 'matic',
15+
MONAD = 'monad',
1516
OPTIMISM = 'optimism',
1617
SONEIUM = 'soneium-mainnet',
1718
UNICHAIN = 'unichain-mainnet',

0 commit comments

Comments
 (0)