Skip to content

Comments

Fix stader apy#1791

Merged
slasher125 merged 1 commit intomasterfrom
unknown repository
Mar 27, 2025
Merged

Fix stader apy#1791
slasher125 merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Mar 27, 2025

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.

2 participants