DefiLlama / yield-server

140 stars 779 forks source link

resolv adapter. retrieving previous apy value when new apy is not yet updated #1519

Closed fextr closed 3 weeks ago

fextr commented 3 weeks ago

Updated the yield adapter to avoid inconsistent chart behavior.

Screenshot 2024-09-25 at 10 51 23 AM
llamatester commented 3 weeks ago

The resolv adapter exports pools:

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

Nb of pools: 1

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬────────────┬──────────┬───────────────────┬────────────────────┐
│ (index) │                     pool                     │ symbol  │   chain    │ project  │      tvlUsd       │      apyBase       │
├─────────┼──────────────────────────────────────────────┼─────────┼────────────┼──────────┼───────────────────┼────────────────────┤
│    0    │ '0x6c8984bc7DBBeDAf4F6b2FD766f16eBB7d10AAb4' │ 'stUSR' │ 'ethereum' │ 'resolv' │ 8968461.274394104 │ 5.2784322128734535 │
└─────────┴──────────────────────────────────────────────┴─────────┴────────────┴──────────┴───────────────────┴────────────────────┘