Skip to content
Merged
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
2 changes: 2 additions & 0 deletions config/robinhood-mainnet/.subgraph-env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
V2_TOKEN_SUBGRAPH_NAME="uniswap-v2-tokens-robinhood-mainnet"
V2_SUBGRAPH_NAME="uniswap-v2-robinhood-mainnet"
36 changes: 36 additions & 0 deletions config/robinhood-mainnet/chain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts/index'

export const FACTORY_ADDRESS = '0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f'

// Robinhood chain (chainId 4663). Standard ETH-native config: the reference token is WETH, priced
// via the WETH/USDG pair. USDG ("Global Dollar", 6 dec) is the USD stablecoin.
// STABLE_TOKEN_PAIRS is empty until the WETH/USDG v2 pair is created + seeded; until then
// getEthPriceInUSD() returns 0 (USD metrics read 0; indexing still works). This is NOT the Arc
// sentinel (which puts REFERENCE_TOKEN in STABLE_TOKEN_PAIRS to force a price of 1) — WETH is volatile.
const WETH = '0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73'.toLowerCase()
const USDG = '0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168'.toLowerCase()

export const REFERENCE_TOKEN = WETH
export const STABLE_TOKEN_PAIRS: string[] = [] // TODO: [WETH_USDG_PAIR] once the v2 pair is seeded

// token where amounts should contribute to tracked volume and liquidity
export const WHITELIST: string[] = [WETH, USDG]

export const STABLECOINS = [USDG]

// minimum liquidity required to count towards tracked volume for pairs with small # of Lps
export const MINIMUM_USD_THRESHOLD_NEW_PAIRS = BigDecimal.fromString('40000')

// minimum liquidity for price to get tracked
export const MINIMUM_LIQUIDITY_THRESHOLD_ETH = BigDecimal.fromString('1')

export class TokenDefinition {
address: Address
symbol: string
name: string
decimals: BigInt
}

export const STATIC_TOKEN_DEFINITIONS: TokenDefinition[] = []

export const SKIP_TOTAL_SUPPLY: string[] = []
5 changes: 5 additions & 0 deletions config/robinhood-mainnet/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"network": "robinhood-mainnet",
"factory": "0x8bceaa40b9acdfaedf85adf4ff01f5ad6517937f",
"startblock": "8928"
}
1 change: 1 addition & 0 deletions script/utils/prepareNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum NETWORK {
MEGAETH = 'megaeth-mainnet',
MONAD = 'monad',
OPTIMISM = 'optimism',
ROBINHOOD = 'robinhood-mainnet',
SONEIUM = 'soneium-mainnet',
UNICHAIN = 'unichain-mainnet',
WORLDCHAIN = 'worldchain-mainnet',
Expand Down
Loading