-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Jarryd/update prov protocols #16113
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: main
Are you sure you want to change the base?
Jarryd/update prov protocols #16113
Conversation
The adapter at projects/figure-markets-democratized-prime exports TVL:
|
The adapter at projects/figure-markets exports TVL:
|
projects/figure-markets/index.js
Outdated
const collateralizedAssets = 'pm.sale.pool.3dxq3fk9llvhrqqwhodiap' | ||
|
||
const getPoolsCollateralValue = async (api) => { | ||
const collateralTotal = (await Promise.all(demoPrimePools.map(async pool => { | ||
const poolHash = (await get(recordsEndpoint(pool))).records[0]?.record?.outputs[0]?.hash | ||
const poolHash = (await await queryV1Beta1({ |
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.
do we need to await twice here?
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 sure don't. I removed it.
The adapter at projects/figure-markets-democratized-prime exports TVL:
|
The adapter at projects/figure-markets exports TVL:
|
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.json
file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CISmall PR to update the provenance protocols to use the cosmos queryV1Beta1 function and update the provenance api endpoint.