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 stader apy #1791

Merged
merged 1 commit into from
Mar 27, 2025
Merged

Fix stader apy #1791

merged 1 commit into from
Mar 27, 2025

Conversation

Jumbo-Infinex
Copy link
Contributor

Issue:
stader apy was returning 0 periodically.

  • this was because the exchange rate was not being updated daily so the current exchange rate vs the exchange rate a day ago were the same.

Solution:

  • use apy over 7 days instead of daily.

@llamatester
Copy link

The stader adapter exports pools:

Test Suites: 1 passed, 1 total
Tests: 16 passed, 16 total
Snapshots: 0 total
Time: 0.284 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬──────────┬──────────┬────────────────────┬───────────────────┬───────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool                                         │ chain      │ project  │ symbol   │ tvlUsd             │ apyBase           │ apyBase7d         │ underlyingTokens                                 │
├─────────┼──────────────────────────────────────────────┼────────────┼──────────┼──────────┼────────────────────┼───────────────────┼───────────────────┼──────────────────────────────────────────────────┤
│ 0       │ '0xa35b1b31ce002fbf2058d22f30f95d405200a15b' │ 'ethereum' │ 'stader' │ 'ethx'   │ 287932785.8447762  │ 2.780851089793426 │ 2.780851089793426 │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │
│ 1       │ '0xf03A7Eb46d01d9EcAA104558C732Cf82f6B6B645' │ 'polygon'  │ 'stader' │ 'maticx' │ 29472588.734499287 │ 8.651481322181468 │ 8.651481322181468 │ [ '0x0000000000000000000000000000000000001010' ] │
└─────────┴──────────────────────────────────────────────┴────────────┴──────────┴──────────┴────────────────────┴───────────────────┴───────────────────┴──────────────────────────────────────────────────┘

@slasher125 slasher125 merged commit 0493493 into DefiLlama:master Mar 27, 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