Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add virtual token to whitelist for bsc #176

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion src/mappings/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ADDRESS_ZERO, factoryContract, ONE_BD, UNTRACKED_PAIRS, ZERO_BD } from

const WRAPPED_NATIVE_ADDRESS = '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c'
const BSC_USD_ADDRESS = '0x55d398326f99059ff775485246999027b3197955'
const VIRTUAL_ADDRESS = '0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b'
const USDC_ADDRESS = '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d'
const USDC_WRAPPED_NATIVE_PAIR = '0x8a1ed8e124fdfbd534bf48baf732e26db9cc0cf4'

Expand All @@ -19,7 +20,7 @@ export function getEthPriceInUSD(): BigDecimal {
}

// token where amounts should contribute to tracked volume and liquidity
let WHITELIST: string[] = [WRAPPED_NATIVE_ADDRESS, BSC_USD_ADDRESS]
let WHITELIST: string[] = [WRAPPED_NATIVE_ADDRESS, BSC_USD_ADDRESS, VIRTUAL_ADDRESS]

const STABLECOINS: string[] = [BSC_USD_ADDRESS, USDC_ADDRESS]

Expand Down
5 changes: 5 additions & 0 deletions subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ description: Uniswap is a decentralized protocol for automated token exchange on
repository: https://github.com/Uniswap/uniswap-v2-subgraph
schema:
file: ./schema.graphql
features:
- grafting
graft:
base: Qmf9xghXpYYNf3upz6p77kzeEcKszFWY2ETED87PpuinYm
block: 11817009
dataSources:
- kind: ethereum/contract
name: Factory
Expand Down