DefiLlama / yield-server

140 stars 779 forks source link

chore: add blitz support #1418

Closed yruej301 closed 1 month ago

llamatester commented 3 months ago

The blitz adapter exports pools:

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

Nb of pools: 2

Sample pools:
┌─────────┬────────────┬─────────┬─────────┬────────┬───────────────────┬──────────────────────┐
│ (index) │    pool    │  chain  │ project │ symbol │      tvlUsd       │         apy          │
├─────────┼────────────┼─────────┼─────────┼────────┼───────────────────┼──────────────────────┤
│    0    │ 'Ethereum' │ 'blast' │ 'blitz' │ 'ETH'  │ 18382142.64507666 │ 0.013296678309771002 │
│    1    │   'USDB'   │ 'blast' │ 'blitz' │ 'USDB' │ 4528192.511684862 │  2.212133286022403   │
└─────────┴────────────┴─────────┴─────────┴────────┴───────────────────┴──────────────────────┘
slasher125 commented 3 months ago

same feedback as here: https://github.com/DefiLlama/yield-server/pull/1417#issuecomment-2213106600

llamatester commented 3 months ago

Error while running blitz adapter:

Test Suites: 1 failed, 1 total Tests: 2 failed, 12 passed, 14 total Snapshots: 0 total Time: 0.289 s Ran all test suites.

Nb of pools: 2

Sample pools:
┌─────────┬────────────┬─────────┬─────────┬────────┬───────────────────┬────────────────────┬────────────────────┐
│ (index) │    pool    │  chain  │ project │ symbol │      tvlUsd       │        apy         │     apyBorrow      │
├─────────┼────────────┼─────────┼─────────┼────────┼───────────────────┼────────────────────┼────────────────────┤
│    0    │ 'Ethereum' │ 'blast' │ 'blitz' │ 'ETH'  │ 18370169.35715765 │ 3.406159295902417  │ 4.442327451298752  │
│    1    │   'USDB'   │ 'blast' │ 'blitz' │ 'USDB' │ 4431292.950372831 │ 10.249157303011689 │ 12.334449533381335 │
└─────────┴────────────┴─────────┴─────────┴────────┴───────────────────┴────────────────────┴────────────────────┘
}
llamatester commented 3 months ago

The blitz adapter exports pools:

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

Nb of pools: 2

Sample pools:
┌─────────┬────────────┬─────────┬─────────┬────────┬────────────────────┬────────────────────┬────────────────────┐
│ (index) │    pool    │  chain  │ project │ symbol │       tvlUsd       │      apyBase       │   apyBaseBorrow    │
├─────────┼────────────┼─────────┼─────────┼────────┼────────────────────┼────────────────────┼────────────────────┤
│    0    │ 'Ethereum' │ 'blast' │ 'blitz' │ 'ETH'  │ 18464484.007437564 │ 3.406144789587926  │ 4.442242490356249  │
│    1    │   'USDB'   │ 'blast' │ 'blitz' │ 'USDB' │ 4431055.464173189  │ 10.249232662541234 │ 12.334513137030061 │
└─────────┴────────────┴─────────┴─────────┴────────┴────────────────────┴────────────────────┴────────────────────┘
slasher125 commented 3 months ago

@yruej301 just to confirm, pls refactor using our sdk

slasher125 commented 1 month ago

closing this, feel free to reopen with a fix