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

refactor(subgraphs/exchange): fix build:fuse execution errors #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

diegofigs
Copy link
Contributor

No description provided.

@diegofigs diegofigs requested a review from mul53 April 11, 2022 12:39
Copy link
Contributor Author

@diegofigs diegofigs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self-review

@@ -25,7 +25,7 @@

"deploy:avax": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ traderjoe-xyz/exchange exchange.avax.yaml",
"deploy:rinkeby": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ traderjoe-xyz/exchange-rinkeby-ii exchange.rinkeby.yaml",
"deploy:fuse": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ voltfinance/voltage-exchange exchange.fuse.yaml",
"deploy:fuse": "graph deploy --access-token $GRAPH_TOKEN --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ diegofigs/voltfinance-exchange exchange.fuse.yaml",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REMINDER: this should be changed back before merge

@@ -4,7 +4,7 @@ import {
BIG_DECIMAL_ZERO,
FACTORY_ADDRESS,
WHITELIST,
JOE_USDT_PAIR_ADDRESS,
VOLT_FUSD_PAIR_ADDRESS,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opted on using this pair since its the most liquid, regardless I think this reference is not used

@@ -30,43 +30,43 @@ export function getJoePrice(block: ethereum.Block = null): BigDecimal {
}

/*
* JOE price is the weighted average of JOE/AVAX * AVAX and JOE/USDT.
* VOLT price is the weighted average of VOLT/WFUSE * WFUSE and VOLT/USDC.
*
*/
export function getWavgJoePrice(block: ethereum.Block = null): BigDecimal {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function was changed because build:fuse command failed reading a reference here; think this method is not called regardless.

@diegofigs diegofigs changed the title refactor(exchange): fix build:fuse execution errors refactor(subgraphs/exchange): fix build:fuse execution errors Apr 11, 2022
@mul53
Copy link
Contributor

mul53 commented Apr 21, 2022

@diegofigs i think we can also try to finish this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants