-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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", |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 i think we can also try to finish this |
No description provided.