Skip to content

Conversation

@Taump
Copy link
Contributor

@Taump Taump commented Nov 25, 2025

Hi, here are the fixes for the PR: #17119

The TVL was originally TVL and backed by GBYTE — I’ve reverted it and added the correct staking display.

@llamabutler
Copy link

The adapter at projects/obyte-city exports TVL:

obyte-staking             8.40 k
staking                   8.40 k
obyte                     3.59 k

total                    3.59 k 

@llamabutler
Copy link

The adapter at projects/obyte-city exports TVL:

obyte-staking             8.40 k
staking                   8.40 k
obyte                     3.16 k

total                    3.16 k 

@Taump Taump marked this pull request as ready for review November 25, 2025 13:51
Copilot AI review requested due to automatic review settings November 25, 2025 13:51
Copilot finished reviewing on behalf of Taump November 25, 2025 13:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the incorrect assignment of TVL and staking metrics for the Obyte City adapter. Previously, the staking function was calculating total TVL (all assets), while the TVL was empty. The fix correctly separates these concerns: TVL now tracks GBYTE locked in the platform, while staking tracks deposited CITY tokens.

Key changes:

  • Simplified totalTvl() to calculate only GBYTE balances instead of all assets
  • Added new totalStaking() function to track deposited CITY token supply
  • Corrected module exports to properly assign tvl and staking functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@llamabutler
Copy link

The adapter at projects/obyte-city exports TVL:

obyte-staking             8.40 k
staking                   8.40 k
obyte                     3.16 k

total                    3.16 k 

@waynebruce0x
Copy link
Collaborator

Where on the app UI can users deposit GBYTE tokens?

@waynebruce0x waynebruce0x self-assigned this Nov 26, 2025
@Taump
Copy link
Contributor Author

Taump commented Nov 26, 2025

Where on the app UI can users deposit GBYTE tokens?

It was possible during the initial sale: https://city.obyte.org/faq#what-is-the-initial-sale-period
You can check the definition and GBYTE balance here: https://explorer.obyte.org/address/CITYC3WWO5DD2UM6HQR3H333RRTD253Q

@waynebruce0x
Copy link
Collaborator

Can users withdraw their GBYTE deposits? If not, it cant be counted as TVL

@Taump
Copy link
Contributor Author

Taump commented Nov 26, 2025

Can users withdraw their GBYTE deposits? If not, it cant be counted as TVL

fixed

@llamabutler
Copy link

The adapter at projects/obyte-city exports TVL:

obyte-staking             8.39 k
staking                   8.39 k
obyte                     0.00

total                    0.00 

@waynebruce0x waynebruce0x merged commit 8983b25 into DefiLlama:main Nov 27, 2025
1 check passed
Amir0uch pushed a commit to NawaTeam/DefiLlama-Adapters that referenced this pull request Nov 28, 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