-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat: add pBERA and stpBERA, add LBGT, clean up staking #16640
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/berapaw exports TVL: |
projects/berapaw/index.js
Outdated
|
|
||
| // counts total supply of LBGT and pBERA tokens | ||
| async function tvl(api) { | ||
| const lbgtDeposit = await api.call({ |
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.
is it possible to count the balance of underlying asset deposits here rather than total supply of receipt tokens?
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.
Done
projects/berapaw/index.js
Outdated
| } | ||
|
|
||
| // counts tokens staked in LBGT and pBERA vaults | ||
| function stakingTvl() { |
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.
If we are counting the underlying deposits of these tokens in tvl() then we cant also count the staked amounts here in staking() since its double count of the same underlying 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.
So do I just remove this or mark it as doublecount somehow?
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.
it should be removed
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.
done
|
The adapter at projects/berapaw exports TVL: |
|
The adapter at projects/berapaw exports TVL: |
|
The adapter at projects/berapaw exports TVL: |
(Cant find the option to allow changes to PR, sorry 🙁)
Added new product pBERA and its staking contract TVL.
pBERA is minted using BERA derivates and effectively pBERA can be redeemed for BERA, so its fully backed by BERA, therefore I defined BERA as lower bound TVL value. (Check infrared/index.ts for reference, similar product).
Added LBGT (before, only staked LBGT was tracked).
Similar situation here: is backed by BGT, which can be redeemed 1:1 for BERA, so BERA used as lower bound TVL.
pBERA and pBERA staking show now TVL currently. Probably price is not tracked yet.