Subgraph Settings
Before deploying subgraphs you need to tweak some things to your needs:
Algebra
Constants.ts
Algebra/src/utils/constants.ts
FACTORY_ADDRESS is the address of the AlgebraFactory.sol contract
export const FACTORY_ADDRESS = '0x9742E5C4452ccA62ce115d302756e9150CbA36Aa'Pricing.ts
WMatic_ADDRESS is the address of your network Native Token
const WMatic_ADDRESS = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'USDC_WMatic_03_POOL is the address of the Native Token / USDC pair pool
const USDC_WMatic_03_POOL = '0xc3c4074fbc2d504fb8ccd28e3ae46914a1ecc5ed'WHITELIST_TOKENS is the array of tokens, which many tokens usually are paired with, so we can trust their volume and liquidity
export let WHITELIST_TOKENS: string[] = [
'0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', // WMATIC
'0x2791bca1f2de4661ed88a30c99a7a9449aa84174', // USDC
'0xc2132d05d31c914a87c6611c10748aeb04b58e8f' // USDT
]
STABLE_COINS is the array of stablecoins
MINIMUM_Matic_LOCKED is the required number of native tokens in the pool to include it when calculating prices
Subgraph.yaml
network is your network name
For every contract you should change its startBlock - the block to sync from, and address from your contract deployment
AlgebraFarming
Constants.ts
AlgebraFarming/src/utils/constants.ts
FarmingCenterAddress is the FarmingCenter contract address from your contracts deployment
Subgraph.yaml
network is your network name
For every contract you should change its startBlock - the block to sync from, and address from your contract deployment
PolygonBlocks
Subgraph.yaml
network is your network name