Skip to content

Conversation

@jansoren
Copy link
Contributor

Updated YieldBricks adapter to show stats more correctly. Added LP stats and ethereum as second chain.

@llamabutler
Copy link

The adapter at projects/yieldbricks exports TVL:

arbitrum                  24.82 k
pool2                     4.11 k
arbitrum-pool2            3.38 k
ethereum-pool2            721
ethereum                  0

total                    24.81 k 

tokens: TOKENS_YBR_ARBITRUM,
tvl: sumTokensExport({
owners: ARB_STAKING_POOLS,
tokens: ARB_CONTRACTS_YBR,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any YBR TVL should be exported as staking like it was previously

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, how do we calculate the TVL ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have no other TVL then use tvl: () => ({})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do have tvl, that is why I would like it to be added to the tvl value. If I use tvl: () => ({}) then tvl will show wrong value (0 value)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any YBR TVL is exported as staking and will show as TVL depending on end user settings. Any core TVL can be added to this adapter with further changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waynebruce0x I have now completed the changes that you commented and cleaned up the implementation. Please review again.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good, one last thing, please move the YBR addresses from coreAssets file to inside your adapter file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waynebruce0x - all done 🫡

@waynebruce0x waynebruce0x self-assigned this Oct 20, 2025
@llamabutler
Copy link

The adapter at projects/yieldbricks exports TVL:

arbitrum-staking          23.88 k
staking                   23.88 k
pool2                     4.04 k
arbitrum-pool2            3.33 k
ethereum-pool2            715
arbitrum                  0
ethereum                  0
ethereum-staking          0

total                    0 

@llamabutler
Copy link

The adapter at projects/yieldbricks exports TVL:

arbitrum-staking          25.94 k
staking                   25.94 k
pool2                     4.20 k
arbitrum-pool2            3.46 k
ethereum-pool2            730
arbitrum                  0
ethereum                  0
ethereum-staking          0

total                    0 

@jansoren
Copy link
Contributor Author

@waynebruce0x please review

@waynebruce0x waynebruce0x merged commit a73cac3 into DefiLlama:main Oct 21, 2025
1 check passed
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