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 midas-rwa #1701

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

add midas-rwa #1701

wants to merge 5 commits into from

Conversation

Jojoooo1
Copy link

@llamatester
Copy link

The midas-rwa adapter exports pools:

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

Nb of pools: 6
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────────┬──────────┬───────────────┬─────────┬────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project     │ symbol   │ tvlUsd        │ apyBase │ url                        │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────────┼──────────┼───────────────┼─────────┼────────────────────────────┤
│ 0       │ '0x2a8c22E3b10036f3AEF5875d04f8441d4188b656-ethereum' │ 'Ethereum' │ 'midas-rwa' │ 'MBASIS' │ 6806128.32868 │ 11.76   │ 'https://midas.app/mbasis' │
│ 1       │ '0x1C2757c1FeF1038428b5bEF062495ce94BBe92b2-base'     │ 'Base'     │ 'midas-rwa' │ 'MBASIS' │ 3584794.36909 │ 11.76   │ 'https://midas.app/mbasis' │
│ 2       │ '0x007115416AB6c266329a03B09a8aa39aC2eF7d9d-ethereum' │ 'Ethereum' │ 'midas-rwa' │ 'MBTC'   │ 3234704.51461 │ 4       │ 'https://midas.app/mbtc'   │
│ 3       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-ethereum' │ 'Ethereum' │ 'midas-rwa' │ 'MTBILL' │ 2559354.56636 │ 4.31    │ 'https://midas.app/mtbill' │
│ 4       │ '0xDD629E5241CbC5919847783e6C96B2De4754e438-sapphire' │ 'Sapphire' │ 'midas-rwa' │ 'MTBILL' │ 2003794.78685 │ 4.31    │ 'https://midas.app/mtbill' │
│ 5       │ '0xDD629E5241CbC5919847783e6C96B2De4754e438-base'     │ 'Base'     │ 'midas-rwa' │ 'MTBILL' │ 1039544.62579 │ 4.31    │ 'https://midas.app/mtbill' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────────┴──────────┴───────────────┴─────────┴────────────────────────────┘

@slasher125
Copy link
Collaborator

gm @Jojoooo1
pls refactor to on chain calls using our sdk instead

@slasher125
Copy link
Collaborator

gm @Jojoooo1 are u still working on this?

@Jojoooo1
Copy link
Author

hi @slasher125 yes we will resume the work this week :).

@llamatester
Copy link

The midas-rwa adapter exports pools:

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

Nb of pools: 2
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────────┬─────────┬────────────────────┬─────────┬───────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project     │ symbol  │ tvlUsd             │ apyBase │ url                       │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────────┼─────────┼────────────────────┼─────────┼───────────────────────────┤
│ 0       │ '0xbb51e2a15a9158ebe2b0ceb8678511e063ab7a55-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mEDGE' │ 2048753.2542621095 │ 6.88    │ 'https://midas.app/medge' │
│ 1       │ '0x007115416ab6c266329a03b09a8aa39ac2ef7d9d-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBTC'  │ 1797071.3007473643 │ 3.56    │ 'https://midas.app/mbtc'  │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────────┴─────────┴────────────────────┴─────────┴───────────────────────────┘

@llamatester
Copy link

The midas-rwa adapter exports pools:

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

Nb of pools: 10
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────────┬──────────┬────────────────────┬─────────┬────────────────────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project     │ symbol   │ tvlUsd             │ apyBase │ url                                        │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────────┼──────────┼────────────────────┼─────────┼────────────────────────────────────────────┤
│ 0       │ '0x2a8c22e3b10036f3aef5875d04f8441d4188b656-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBASIS' │ 5437330.820342541  │ 22.05   │ 'https://midas.app/mbasis'                 │
│ 1       │ '0x1c2757c1fef1038428b5bef062495ce94bbe92b2-base'     │ 'base'     │ 'midas-rwa' │ 'mBASIS' │ 3133907.5640939944 │ 22.05   │ 'https://midas.app/mbasis'                 │
│ 2       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-sapphire' │ 'sapphire' │ 'midas-rwa' │ 'mTBILL' │ 3012350.3506821645 │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 3       │ '0xbb51e2a15a9158ebe2b0ceb8678511e063ab7a55-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mEDGE'  │ 2048753.2542621095 │ 6.88    │ 'https://midas.app/medge'                  │
│ 4       │ '0x007115416ab6c266329a03b09a8aa39ac2ef7d9d-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBTC'   │ 1797071.3007473643 │ 3.56    │ 'https://midas.app/mbtc'                   │
│ 5       │ '0x030b69280892c888670edcdcd8b69fd8026a0bf3-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mMEV'   │ 1762113.8418387773 │ 12.11   │ 'https://midas.app/https://midas.app/mmev' │
│ 6       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mTBILL' │ 1142555.509970682  │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 7       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-base'     │ 'base'     │ 'midas-rwa' │ 'mTBILL' │ 1018546.9870581634 │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 8       │ '0x4089dc8b6637218f13465d28950a82a7e90cbe27-base'     │ 'base'     │ 'midas-rwa' │ 'mEDGE'  │ 0                  │ 6.88    │ 'https://midas.app/medge'                  │
│ 9       │ '0x141f0e9ed8ba2295254c9df9476cce7bc29172b1-base'     │ 'base'     │ 'midas-rwa' │ 'mMEV'   │ 0                  │ 12.11   │ 'https://midas.app/https://midas.app/mmev' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────────┴──────────┴────────────────────┴─────────┴────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The midas-rwa adapter exports pools:

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

Nb of pools: 10
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────────┬──────────┬────────────────────┬─────────┬────────────────────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project     │ symbol   │ tvlUsd             │ apyBase │ url                                        │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────────┼──────────┼────────────────────┼─────────┼────────────────────────────────────────────┤
│ 0       │ '0x2a8c22e3b10036f3aef5875d04f8441d4188b656-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBASIS' │ 5437330.820342541  │ 22.05   │ 'https://midas.app/mbasis'                 │
│ 1       │ '0x1c2757c1fef1038428b5bef062495ce94bbe92b2-base'     │ 'base'     │ 'midas-rwa' │ 'mBASIS' │ 3133907.5640939944 │ 22.05   │ 'https://midas.app/mbasis'                 │
│ 2       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-sapphire' │ 'sapphire' │ 'midas-rwa' │ 'mTBILL' │ 3012350.3506821645 │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 3       │ '0xbb51e2a15a9158ebe2b0ceb8678511e063ab7a55-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mEDGE'  │ 2048753.2542621095 │ 6.88    │ 'https://midas.app/medge'                  │
│ 4       │ '0x007115416ab6c266329a03b09a8aa39ac2ef7d9d-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBTC'   │ 1797071.3007473643 │ 3.56    │ 'https://midas.app/mbtc'                   │
│ 5       │ '0x030b69280892c888670edcdcd8b69fd8026a0bf3-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mMEV'   │ 1762113.8418387773 │ 12.11   │ 'https://midas.app/https://midas.app/mmev' │
│ 6       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mTBILL' │ 1142555.509970682  │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 7       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-base'     │ 'base'     │ 'midas-rwa' │ 'mTBILL' │ 1018546.9870581634 │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 8       │ '0x4089dc8b6637218f13465d28950a82a7e90cbe27-base'     │ 'base'     │ 'midas-rwa' │ 'mEDGE'  │ 0                  │ 6.88    │ 'https://midas.app/medge'                  │
│ 9       │ '0x141f0e9ed8ba2295254c9df9476cce7bc29172b1-base'     │ 'base'     │ 'midas-rwa' │ 'mMEV'   │ 0                  │ 12.11   │ 'https://midas.app/https://midas.app/mmev' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────────┴──────────┴────────────────────┴─────────┴────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The midas-rwa adapter exports pools:

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

Nb of pools: 10
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬─────────────┬──────────┬────────────────────┬─────────┬────────────────────────────────────────────┐
│ (index) │ pool                                                  │ chain      │ project     │ symbol   │ tvlUsd             │ apyBase │ url                                        │
├─────────┼───────────────────────────────────────────────────────┼────────────┼─────────────┼──────────┼────────────────────┼─────────┼────────────────────────────────────────────┤
│ 0       │ '0x2a8c22e3b10036f3aef5875d04f8441d4188b656-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBASIS' │ 5437341.820342541  │ 22.05   │ 'https://midas.app/mbasis'                 │
│ 1       │ '0x1c2757c1fef1038428b5bef062495ce94bbe92b2-base'     │ 'base'     │ 'midas-rwa' │ 'mBASIS' │ 3136658.9073414584 │ 22.05   │ 'https://midas.app/mbasis'                 │
│ 2       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-sapphire' │ 'sapphire' │ 'midas-rwa' │ 'mTBILL' │ 3012350.3506821645 │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 3       │ '0xbb51e2a15a9158ebe2b0ceb8678511e063ab7a55-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mEDGE'  │ 2052513.7616161094 │ 6.88    │ 'https://midas.app/medge'                  │
│ 4       │ '0x007115416ab6c266329a03b09a8aa39ac2ef7d9d-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mBTC'   │ 1992901.099652743  │ 3.56    │ 'https://midas.app/mbtc'                   │
│ 5       │ '0x030b69280892c888670edcdcd8b69fd8026a0bf3-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mMEV'   │ 1765405.2690937773 │ 12.11   │ 'https://midas.app/https://midas.app/mmev' │
│ 6       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-ethereum' │ 'ethereum' │ 'midas-rwa' │ 'mTBILL' │ 1141210.4158330744 │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 7       │ '0xdd629e5241cbc5919847783e6c96b2de4754e438-base'     │ 'base'     │ 'midas-rwa' │ 'mTBILL' │ 998498.3902507685  │ 4.04    │ 'https://midas.app/mtbill'                 │
│ 8       │ '0x4089dc8b6637218f13465d28950a82a7e90cbe27-base'     │ 'base'     │ 'midas-rwa' │ 'mEDGE'  │ 0                  │ 6.88    │ 'https://midas.app/medge'                  │
│ 9       │ '0x141f0e9ed8ba2295254c9df9476cce7bc29172b1-base'     │ 'base'     │ 'midas-rwa' │ 'mMEV'   │ 0                  │ 12.11   │ 'https://midas.app/https://midas.app/mmev' │
└─────────┴───────────────────────────────────────────────────────┴────────────┴─────────────┴──────────┴────────────────────┴─────────┴────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

@Jojoooo1
seems like for some pools like mBASIS on ethereum the yield is quite different than whats being displayed on your ui.
probably related to the yearly offset you use in the calculation? on our end, we should use 24h offsets for apyBase. optionally, you can add apyBase7d with a 7day window

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