Skip to content
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

Fix reference from ustake to utoken to fix accounting #11805

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

silostaking
Copy link
Contributor

Fixing a reference in our adapter. You can see it here, querying the state directly. As of 10/2/2024 the state is:

{
  "data": {
    "total_ustake": "156329708588359",
    "total_utoken": "161521021712271",
    "exchange_rate": "1.033207463704685547",
    "unlocked_coins": [
      {
        "denom": "usei",
        "amount": "12828721273"
      }
    ],
    "unbonding": "3425220778859",
    "available": "150481022080",
    "tvl_utoken": "165096723513210"
  }
}

The total_ustake is the amount of iSEI issued (which because is rewards-bearing the price is diverging from SEI). To get the proper TVL in SEI/dollars, we change this to using total_utoken.

Thanks to jas*** for finding and identifying this bug.

@llamatester
Copy link

The adapter at projects/silostake exports TVL:

sei                       72.38 M

total                    72.38 M 

@g1nt0ki g1nt0ki merged commit a12d3c3 into DefiLlama:main Oct 2, 2024
1 check passed
@g1nt0ki
Copy link
Member

g1nt0ki commented Oct 2, 2024

thanks for the finding the bug & fixing it

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