-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Add Union TVL to escher project #16747
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
Conversation
The adapter at projects/escher exports TVL:
|
The adapter at projects/escher exports TVL:
|
projects/escher/index.js
Outdated
} | ||
|
||
async function eUTVL(api) { | ||
const lcd = 'https://rest.union.build'; |
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.
please use our SDK for EVM TVLs. Maybe use staking() from our helpers. Also since this is your own token, please export this as staking
rather than tvl
and use tvl: () => ({})
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.
hi @waynebruce0x thanks for the response. As for this initially we wanted to list it under union chain but it's not there yet so we listed under ethereum since our token currently only lives in ethereum.
Can you add the union chain? that way we can query using cosmos helper just like our eBABY
https://union.build/
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.
you should add 'union' to chains.json and then export a balance of either ethereum:0xba5ed44733953d79717f6269357c77718c8ba5ed or coingecko:union-2 under tvl.union
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.
hi @waynebruce0x I've updated the code with :
- added union chain to chain.js
- tvl now uses cosmos sdk rather than fetching to rest
- use union coingecko string as balance
I noticed that the build is failing, but it's not from our project folder
The adapter at projects/escher exports TVL:
|
The adapter at projects/escher exports TVL:
|
The adapter at projects/escher exports TVL:
|
oh yeah good catch |
https://lite-api.jup.ag/tokens/v2/tag?query=verified has 0 price for this asset |
@waynebruce0x is there anything else I need to change? |
Is there any other way we can price it? |
oh you mean the price of eU? this is a liquidstaking token and it's not listed yet on coingecko. cc @ohadbachner |
sorry those comments above were confusing |
The adapter at projects/escher exports TVL:
|
thanks @waynebruce0x ! |
We want to add TVL for our new token eU to our existing Escher project