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 Adapter, Stader [Outdated] #11161

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Fix Adapter, Stader [Outdated] #11161

merged 2 commits into from
Jul 31, 2024

Conversation

0xpeluche
Copy link
Contributor

@0xpeluche 0xpeluche commented Jul 31, 2024

Minor fix on Stader (Outdated no refillable).
Currently the Stader API fails to fetch data for Terra2 and returns an error, which propagates in the terraTvl function and breaks the entire code. Added a condition terra-luna-2": res.terra?.native || 0, according to the latest data there is approximately ~~ 170k USD, IMO it is better to return 0 than to prevent the execution of the entire Stader code which is an adapter not refillable

@llamatester
Copy link

The adapter at projects/stader exports TVL:

ethereum                  490.01 M
hedera                    31.16 M
bsc                       15.39 M
fantom                    9.77 M
near                      442.12 k
terra2                    0

total                    546.77 M 

@llamatester
Copy link

The adapter at projects/stader exports TVL:

ethereum                  490.01 M
hedera                    31.16 M
bsc                       15.39 M
near                      442.12 k
fantom                    0
terra2                    0

total                    537.00 M 

@g1nt0ki g1nt0ki merged commit 0c79657 into DefiLlama:main Jul 31, 2024
1 check passed
@g1nt0ki
Copy link
Member

g1nt0ki commented Jul 31, 2024

can you also reach out to the stader team and let them know of the issue?

@0xpeluche 0xpeluche deleted the stader_fix branch August 8, 2024 07:53
tlatkdgus1 pushed a commit to bifrost-platform/DefiLlama-Adapters that referenced this pull request Nov 25, 2024
* fix stader

* revert last commit for fantom

---------

Co-authored-by: 0xpeluche <[email protected]>
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