Skip to content

Conversation

BigBeraBarney
Copy link

@BigBeraBarney BigBeraBarney commented Oct 12, 2025

(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.

@llamabutler
Copy link

The adapter at projects/berapaw exports TVL:

berachain                 2.76 M
berachain-staking         1.58 M
staking                   1.58 M
berachain-pool2           85.67 k
pool2                     85.67 k

total                    2.76 M 


// counts total supply of LBGT and pBERA tokens
async function tvl(api) {
const lbgtDeposit = await api.call({
Copy link
Collaborator

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?

}

// counts tokens staked in LBGT and pBERA vaults
function stakingTvl() {
Copy link
Collaborator

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

@waynebruce0x waynebruce0x self-assigned this Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants