-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add arbera protocol for token prices #10333
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
base: master
Are you sure you want to change the base?
Conversation
|
We get 502 from https://backend.kodiak.finance/quote - is there another way we can fetch the value of these assets? |
|
I tested the script on my local again, and also tested kodiak backend endpoint. Can we resolve 502 error on your side? |
|
|
||
| // ERC20 contracts | ||
| const THREE_BC = "0x467aA1bFa3dCC714f7c16B3D779200431f6A833B"; | ||
| const ARBERO = "0xFa7767BBB3d832217ABaa86e5f2654429B3BF29F"; |
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.
for arBERO, we dont need custome pricing, we should only be counting the underlying LBGT assets
| const api = new ChainApi({ chain: CHAIN_NAME }); | ||
|
|
||
| // ERC20 contracts | ||
| const THREE_BC = "0x467aA1bFa3dCC714f7c16B3D779200431f6A833B"; |
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.
We cannot count 3BC right now because the mcap and liquidity is too low, therefore we dont need custom pricing. In future we can add support for this.
| const USDC_E = "0x549943e04f40284185054145c6E4e9568C1D3241"; | ||
| const BRARBERO = "0x0C1f965EB5221B8Daca960dAc1cCfdA5a97B7Dd7"; | ||
| const BRLBGT = "0x883899D0111d69f85Fdfd19e4B89E613F231B781"; | ||
| const STLBGT = "0xFace73a169e2CA2934036C8Af9f464b5De9eF0ca"; |
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.
We have just added pricing for stLBGT and therefore no longer need custom pricing
|
In which case I believe we can remove the kodiak quote endpoint dependancy? |
This PR introduces prices for