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

Add R Savings Rate (Raft) from Base #1016

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

iamvukasin
Copy link
Contributor

No description provided.

@llamatester
Copy link

The raft adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬────────┬────────────┬──────────────────┬─────┬──────────┐
│ (index) │                     pool                     │ project │ symbol │   chain    │     poolMeta     │ apy │  tvlUsd  │
├─────────┼──────────────────────────────────────────────┼─────────┼────────┼────────────┼──────────────────┼─────┼──────────┤
│    0    │ '0x2ba26baE6dF1153e29813d7f926143f9c94402f3' │ 'raft'  │  'R'   │ 'ethereum' │ 'R Savings Rate' │  7  │ 10838925 │
│    1    │ '0xA5b3FEe253f9DE67201dC8572Bd2CbB4a81c1bEc' │ 'raft'  │  'R'   │   'base'   │ 'R Savings Rate' │  7  │    12    │
└─────────┴──────────────────────────────────────────────┴─────────┴────────┴────────────┴──────────────────┴─────┴──────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The raft adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬────────┬────────────┬──────────────────┬─────────────────┬────────────────────┐
│ (index) │                     pool                     │ project │ symbol │   chain    │     poolMeta     │       apy       │       tvlUsd       │
├─────────┼──────────────────────────────────────────────┼─────────┼────────┼────────────┼──────────────────┼─────────────────┼────────────────────┤
│    0    │ '0x2ba26baE6dF1153e29813d7f926143f9c94402f3' │ 'raft'  │  'R'   │ 'ethereum' │ 'R Savings Rate' │ 7.9999999977888 │ 10877354.012824563 │
│    1    │ '0xA5b3FEe253f9DE67201dC8572Bd2CbB4a81c1bEc' │ 'raft'  │  'R'   │   'base'   │ 'R Savings Rate' │ 7.9999999977888 │ 519.8021359513197  │
└─────────┴──────────────────────────────────────────────┴─────────┴────────┴────────────┴──────────────────┴─────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The raft adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬─────────┬────────┬────────────┬──────────────────┬─────────────────┬────────────────────┐
│ (index) │                     pool                     │ project │ symbol │   chain    │     poolMeta     │       apy       │       tvlUsd       │
├─────────┼──────────────────────────────────────────────┼─────────┼────────┼────────────┼──────────────────┼─────────────────┼────────────────────┤
│    0    │ '0x2ba26baE6dF1153e29813d7f926143f9c94402f3' │ 'raft'  │  'R'   │ 'ethereum' │ 'R Savings Rate' │ 7.9999999977888 │ 12445765.53526657  │
│    1    │ '0xA5b3FEe253f9DE67201dC8572Bd2CbB4a81c1bEc' │ 'raft'  │  'R'   │   'base'   │ 'R Savings Rate' │ 7.9999999977888 │ 1523.6242406441627 │
└─────────┴──────────────────────────────────────────────┴─────────┴────────┴────────────┴──────────────────┴─────────────────┴────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@0xngmi
Copy link
Member

0xngmi commented Sep 29, 2023

instead of using ethers with your hardcoded rpcs, why not keep using our sdk like the adapter was doing before?

@iamvukasin
Copy link
Contributor Author

I wanted to use that, but it fails with a cryptic error for Base. It's a bit hard to debug it since the error message is not that helpful for me (call cannot be found for undefined).

@llamatester
Copy link

Error while running raft adapter:

Test Suites: 1 failed, 1 total
Tests: 9 failed, 5 passed, 14 total
Snapshots: 0 total
Time: 0.347 s
Ran all test suites.

Nb of pools: 2
 

Sample pools:
┌─────────┬──────────┐
│ (index) │    0     │
├─────────┼──────────┤
│    0    │ [Object] │
│    1    │ [Object] │
└─────────┴──────────┘
}

@llamatester
Copy link

The raft adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬─────────┬────────┬────────────┬──────────────────┬─────────────────┬───────────────────┐
│ (index) │                         pool                          │ project │ symbol │   chain    │     poolMeta     │       apy       │      tvlUsd       │
├─────────┼───────────────────────────────────────────────────────┼─────────┼────────┼────────────┼──────────────────┼─────────────────┼───────────────────┤
│    0    │ '0x2ba26bae6df1153e29813d7f926143f9c94402f3-ethereum' │ 'raft'  │  'R'   │ 'Ethereum' │ 'R Savings Rate' │ 7.9999999977888 │ 7210793.979311508 │
│    1    │   '0xa5b3fee253f9de67201dc8572bd2cbb4a81c1bec-base'   │ 'raft'  │  'R'   │   'Base'   │ 'R Savings Rate' │ 7.9999999977888 │ 23855.84408235174 │
└─────────┴───────────────────────────────────────────────────────┴─────────┴────────┴────────────┴──────────────────┴─────────────────┴───────────────────┘

@iamvukasin
Copy link
Contributor Author

@0xngmi I realized I had to use SDK v4 for Base support. Updated the PR as requested.

@llamatester
Copy link

The raft adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬─────────┬────────┬────────────┬──────────────────┬─────────────────┬───────────────────┐
│ (index) │                         pool                          │ project │ symbol │   chain    │     poolMeta     │       apy       │      tvlUsd       │
├─────────┼───────────────────────────────────────────────────────┼─────────┼────────┼────────────┼──────────────────┼─────────────────┼───────────────────┤
│    0    │ '0x2ba26bae6df1153e29813d7f926143f9c94402f3-ethereum' │ 'raft'  │  'R'   │ 'Ethereum' │ 'R Savings Rate' │ 7.9999999977888 │ 7121451.818336875 │
│    1    │   '0xa5b3fee253f9de67201dc8572bd2cbb4a81c1bec-base'   │ 'raft'  │  'R'   │   'Base'   │ 'R Savings Rate' │ 7.9999999977888 │ 23863.94847258222 │
└─────────┴───────────────────────────────────────────────────────┴─────────┴────────┴────────────┴──────────────────┴─────────────────┴───────────────────┘

@Define101 Define101 merged commit 81871a2 into DefiLlama:master Oct 3, 2023
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.

4 participants