|
| 1 | +import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts/index' |
| 2 | + |
| 3 | +export const FACTORY_ADDRESS = '0x89e5db8b5aa49aa85ac63f691524311aeb649eba' |
| 4 | + |
| 5 | +// Arc (chainId 5042) is Circle's USDC-native L1: the native gas token is USDC and there is no |
| 6 | +// wrapped native (the deployment's "WETH9" slot is the UnsupportedProtocol stub), so pairs pair |
| 7 | +// against native USDC and USDC is the reference token. Because the reference token IS the dollar, |
| 8 | +// getEthPriceInUSD() returns 1 — opted in by including REFERENCE_TOKEN in STABLE_TOKEN_PAIRS. |
| 9 | +const USDC = '0x3600000000000000000000000000000000000000'.toLowerCase() |
| 10 | +const EURC = '0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a'.toLowerCase() |
| 11 | +const USYC = '0xe9185F0c5F296Ed1797AaE4238D26CCaBEadb86C'.toLowerCase() |
| 12 | +const CIRBTC = '0x171A4217b86A807A64eB94757Db6849fb4bDbAA0'.toLowerCase() // cirBTC (BTC-pegged) — whitelist only, not a USD stable |
| 13 | +const WETH = '0x128cC466B61f542da60c70e3aA11c10e19B84EDB'.toLowerCase() // bridged ETH — whitelist only (not the native/reference; Arc's native is USDC) |
| 14 | + |
| 15 | +export const REFERENCE_TOKEN = USDC |
| 16 | +export const STABLE_TOKEN_PAIRS = [REFERENCE_TOKEN] |
| 17 | + |
| 18 | +// token where amounts should contribute to tracked volume and liquidity |
| 19 | +export const WHITELIST: string[] = [USDC, EURC, USYC, CIRBTC, WETH] |
| 20 | + |
| 21 | +// USD-pegged stablecoins only (EURC is EUR-pegged, USYC is yield-bearing → excluded) |
| 22 | +export const STABLECOINS = [USDC] |
| 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('40000') |
| 26 | + |
| 27 | +// minimum liquidity for price to get tracked |
| 28 | +export const MINIMUM_LIQUIDITY_THRESHOLD_ETH = BigDecimal.fromString('2000') |
| 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[] = [] |
0 commit comments