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
Pricing.ts
WMatic_ADDRESS
is the address of your network Native Token
USDC_WMatic_03_POOL
is the address of the Native Token / USDC pair pool
WHITELIST_TOKENS
is the array of tokens, which many tokens usually are paired with, so we can trust their volume and liquidity
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