Skip to content

Adds support for BNB chain tracking on term-finance. #15571

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 3 additions & 0 deletions projects/term-finance-vaults/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const vaultsGraphs = {
"https://api.mainnet.termfinance.io/avalanche/subgraph/vaults",
base:
"https://api.mainnet.termfinance.io/base/subgraph/vaults",
bsc:
"https://api.mainnet.termfinance.io/bnb/subgraph/vaults",
}

const termVaultStrategiesQuery = `
Expand Down Expand Up @@ -46,6 +48,7 @@ const vaultsGraphStartBlock = {
ethereum: 21433264,
avax: 54438973,
base: 30797402,
bsc: 54505207,
}

module.exports = {
Expand Down
6 changes: 6 additions & 0 deletions projects/term-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const graphs = {
"https://api.mainnet.termfinance.io/avalanche/subgraph/term",
base:
"https://api.mainnet.termfinance.io/base/subgraph/term",
bsc:
"https://api.mainnet.termfinance.io/bnb/subgraph/term",
};

const vaultsGraphs = {
Expand All @@ -18,6 +20,8 @@ const vaultsGraphs = {
"https://api.mainnet.termfinance.io/avalanche/subgraph/vaults",
base:
"https://api.mainnet.termfinance.io/base/subgraph/vaults",
bsc:
"https://api.mainnet.termfinance.io/bnb/subgraph/vaults",
}

const query = `
Expand Down Expand Up @@ -109,12 +113,14 @@ const graphStartBlock = {
ethereum: 5240462,
avax: 43162227,
base: 30797402,
bsc: 54505207,
}

const vaultsGraphStartBlock = {
ethereum: 21433264,
avax: 54438973,
base: 30797402,
bsc: 54505207,
}

module.exports = {
Expand Down
Loading