Skip to content

feat: added reward apr for superlend yield adaptor #1809

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

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

priyam-anand
Copy link
Contributor

No description provided.

@llamatester
Copy link

The superlend adapter exports pools:

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

Nb of pools: 7
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────┬─────────────┬─────────────┬──────────┬────────────────────┬──────────────────────┬───────────────────┬──────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────┬─────────────────────┬──────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────┬────────────┬──────────┐
│ (index) │ pool                                              │ chain       │ project     │ symbol   │ tvlUsd             │ apyBase              │ apyReward         │ apy                  │ underlyingTokens                                 │ rewardTokens                                     │ totalSupplyUsd     │ totalBorrowUsd     │ debtCeilingUsd │ apyBaseBorrow       │ ltv  │ url                                                                                                                               │ borrowable │ mintedCoin │ poolMeta │
├─────────┼───────────────────────────────────────────────────┼─────────────┼─────────────┼──────────┼────────────────────┼──────────────────────┼───────────────────┼──────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────┼─────────────────────┼──────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────┼────────────┼──────────┤
│ 0       │ '0xfca0802cb10b3b134a91e07f03965f63ef4b23ea-etlk' │ 'Etherlink' │ 'superlend' │ 'WBTC'   │ 916369.1200200492  │ 0.4866733421152499   │ 51.40971121846491 │ 51.89638456058017    │ [ '0xbFc94CD2B1E55999Cfc7347a9313e88702B83d0F' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 1244517.6577240776 │ 328148.5377040284  │ null           │ 2.0508093538733085  │ 0.73 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xbfc94cd2b1e55999cfc7347a9313e88702b83d0f&marketName=etherlink' │ true       │ null       │ null     │
│ 1       │ '0x187b7b83e8cab442ad0bfeae38067f3eb38a2d72-etlk' │ 'Etherlink' │ 'superlend' │ 'mTBILL' │ 905774.8569530315  │ 0                    │ 36.77089259892415 │ 36.77089259892415    │ [ '0xDD629E5241CbC5919847783e6C96B2De4754e438' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 905774.8569530315  │ 0                  │ null           │ 0                   │ 0.78 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xdd629e5241cbc5919847783e6c96b2de4754e438&marketName=etherlink' │ false      │ null       │ null     │
│ 2       │ '0x660adef5993167acdb490df287f4db6cc226ffeb-etlk' │ 'Etherlink' │ 'superlend' │ 'mBASIS' │ 883602.4379002684  │ 0                    │ 37.42725347121076 │ 37.42725347121076    │ [ '0x2247B5A46BB79421a314aB0f0b67fFd11dd37Ee4' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 883602.4379002684  │ 0                  │ null           │ 0                   │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x2247b5a46bb79421a314ab0f0b67ffd11dd37ee4&marketName=etherlink' │ false      │ null       │ null     │
│ 3       │ '0x008ae222661b6a42e3a097bd7aac15412829106b-etlk' │ 'Etherlink' │ 'superlend' │ 'WXTZ'   │ 542618.4445002722  │ 2.737384283818243    │ 91.11736251162417 │ 93.85474679544241    │ [ '0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 1521933.6970456557 │ 979315.2525453835  │ null           │ 5.004793778665042   │ 0.65 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xc9b53ab2679f573e480d01e0f49e2b5cfb7a3eab&marketName=etherlink' │ true       │ null       │ null     │
│ 4       │ '0xd03bfdf9b26db1e6764724d914d7c3d18106a9fb-etlk' │ 'Etherlink' │ 'superlend' │ 'USDC'   │ 494958.46058302524 │ 4.248295501474316    │ 47.76509152785996 │ 52.013387029334275   │ [ '0x796Ea11Fa2dD751eD01b53C372fFDB4AAa8f00F9' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 2494946.407914663  │ 1999987.947331638  │ null           │ 6.234844999705543   │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x796ea11fa2dd751ed01b53c372ffdb4aaa8f00f9&marketName=etherlink' │ true       │ null       │ null     │
│ 5       │ '0x301bea8b7c0ef6722c937c07da4d53931f61969c-etlk' │ 'Etherlink' │ 'superlend' │ 'WETH'   │ 413941.342250952   │ 0.002503255138378485 │ 0                 │ 0.002503255138378485 │ [ '0xfc24f770F94edBca6D6f885E12d4317320BcB401' ] │ []                                               │ 421920.05943388416 │ 7978.717182932189  │ null           │ 0.14708184489289633 │ 0.77 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xfc24f770f94edbca6d6f885e12d4317320bcb401&marketName=etherlink' │ true       │ null       │ null     │
│ 6       │ '0x998098a1b2e95e2b8f15360676428edfd976861f-etlk' │ 'Etherlink' │ 'superlend' │ 'USDT'   │ 358793.78255985474 │ 4.235946626479413    │ 64.49106416193673 │ 68.72701078841615    │ [ '0x2C03058C8AFC06713be23e58D2febC8337dbfE6A' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 1797996.9189560942 │ 1439203.1363962395 │ null           │ 6.225776732952265   │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x2c03058c8afc06713be23e58d2febc8337dbfe6a&marketName=etherlink' │ true       │ null       │ null     │
└─────────┴───────────────────────────────────────────────────┴─────────────┴─────────────┴──────────┴────────────────────┴──────────────────────┴───────────────────┴──────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────┴─────────────────────┴──────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────┴────────────┴──────────┘

@llamatester
Copy link

The superlend adapter exports pools:

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

Nb of pools: 7
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────┬─────────────┬─────────────┬──────────┬────────────────────┬────────────────────┬───────────────────┬────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────┬────────────────────┬──────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────┬────────────┬──────────┐
│ (index) │ pool                                              │ chain       │ project     │ symbol   │ tvlUsd             │ apyBase            │ apyReward         │ apy                │ underlyingTokens                                 │ rewardTokens                                     │ totalSupplyUsd     │ totalBorrowUsd     │ debtCeilingUsd │ apyBaseBorrow      │ ltv  │ url                                                                                                                               │ borrowable │ mintedCoin │ poolMeta │
├─────────┼───────────────────────────────────────────────────┼─────────────┼─────────────┼──────────┼────────────────────┼────────────────────┼───────────────────┼────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────┼────────────────────┼──────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────┼────────────┼──────────┤
│ 0       │ '0xfca0802cb10b3b134a91e07f03965f63ef4b23ea-etlk' │ 'Etherlink' │ 'superlend' │ 'WBTC'   │ 1887405.9103526226 │ 1.5658334760462478 │ 13.53356811503401 │ 15.099401591080257 │ [ '0xbFc94CD2B1E55999Cfc7347a9313e88702B83d0F' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 3581130.2065629037 │ 1693724.296210281  │ null           │ 3.678572309665355  │ 0.73 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xbfc94cd2b1e55999cfc7347a9313e88702b83d0f&marketName=etherlink' │ true       │ null       │ null     │
│ 1       │ '0xd03bfdf9b26db1e6764724d914d7c3d18106a9fb-etlk' │ 'Etherlink' │ 'superlend' │ 'USDC'   │ 1230113.8408651648 │ 3.867476415393428  │ 19.38021636581606 │ 23.247692781209487 │ [ '0x796Ea11Fa2dD751eD01b53C372fFDB4AAa8f00F9' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 5231097.673179315  │ 4000983.8323141504 │ null           │ 5.948837960646714  │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x796ea11fa2dd751ed01b53c372ffdb4aaa8f00f9&marketName=etherlink' │ true       │ null       │ null     │
│ 2       │ '0x187b7b83e8cab442ad0bfeae38067f3eb38a2d72-etlk' │ 'Etherlink' │ 'superlend' │ 'mTBILL' │ 912916.4492394627  │ 0                  │ 39.28961067358692 │ 39.28961067358692  │ [ '0xDD629E5241CbC5919847783e6C96B2De4754e438' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 912916.4492394627  │ 0                  │ null           │ 0                  │ 0.78 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xdd629e5241cbc5919847783e6c96b2de4754e438&marketName=etherlink' │ false      │ null       │ null     │
│ 3       │ '0x660adef5993167acdb490df287f4db6cc226ffeb-etlk' │ 'Etherlink' │ 'superlend' │ 'mBASIS' │ 902601.569373757   │ 0                  │ 39.45782150523159 │ 39.45782150523159  │ [ '0x2247B5A46BB79421a314aB0f0b67fFd11dd37Ee4' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 902601.569373757   │ 0                  │ null           │ 0                  │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x2247b5a46bb79421a314ab0f0b67ffd11dd37ee4&marketName=etherlink' │ false      │ null       │ null     │
│ 4       │ '0x998098a1b2e95e2b8f15360676428edfd976861f-etlk' │ 'Etherlink' │ 'superlend' │ 'USDT'   │ 741389.9515192292  │ 4.250765560308525  │ 26.85192941192697 │ 31.102694972235497 │ [ '0x2C03058C8AFC06713be23e58D2febC8337dbfE6A' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 3741615.3010716294 │ 3000225.3495524004 │ null           │ 6.236657279015338  │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x2c03058c8afc06713be23e58d2febc8337dbfe6a&marketName=etherlink' │ true       │ null       │ null     │
│ 5       │ '0x008ae222661b6a42e3a097bd7aac15412829106b-etlk' │ 'Etherlink' │ 'superlend' │ 'WXTZ'   │ 507565.5719513024  │ 3.838465667667299  │ 58.3339647788689  │ 62.172430446536204 │ [ '0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 2132394.946789962  │ 1624829.3748386593 │ null           │ 5.926484224200784  │ 0.65 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xc9b53ab2679f573e480d01e0f49e2b5cfb7a3eab&marketName=etherlink' │ true       │ null       │ null     │
│ 6       │ '0x301bea8b7c0ef6722c937c07da4d53931f61969c-etlk' │ 'Etherlink' │ 'superlend' │ 'WETH'   │ 261613.51437598237 │ 1.2497243929758222 │ 0                 │ 1.2497243929758222 │ [ '0xfc24f770F94edBca6D6f885E12d4317320BcB401' ] │ []                                               │ 453032.8365806913  │ 191419.3222047089  │ null           │ 3.2863486343820303 │ 0.77 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xfc24f770f94edbca6d6f885e12d4317320bcb401&marketName=etherlink' │ true       │ null       │ null     │
└─────────┴───────────────────────────────────────────────────┴─────────────┴─────────────┴──────────┴────────────────────┴────────────────────┴───────────────────┴────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────┴────────────────────┴──────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────┴────────────┴──────────┘

@slasher125
Copy link
Collaborator

pls remove apy, we compute sums server side

@llamatester
Copy link

The superlend adapter exports pools:

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

Nb of pools: 7
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────┬─────────────┬─────────────┬──────────┬────────────────────┬────────────────────┬───────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────┬────────────────────┬──────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────┬────────────┬──────────┐
│ (index) │ pool                                              │ chain       │ project     │ symbol   │ tvlUsd             │ apyBase            │ apyReward         │ underlyingTokens                                 │ rewardTokens                                     │ totalSupplyUsd     │ totalBorrowUsd     │ debtCeilingUsd │ apyBaseBorrow      │ ltv  │ url                                                                                                                               │ borrowable │ mintedCoin │ poolMeta │
├─────────┼───────────────────────────────────────────────────┼─────────────┼─────────────┼──────────┼────────────────────┼────────────────────┼───────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────┼────────────────────┼──────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────┼────────────┼──────────┤
│ 0       │ '0xfca0802cb10b3b134a91e07f03965f63ef4b23ea-etlk' │ 'Etherlink' │ 'superlend' │ 'WBTC'   │ 1866506.4109217015 │ 1.5877309195496625 │ 13.50557934491467 │ [ '0xbFc94CD2B1E55999Cfc7347a9313e88702B83d0F' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 3563750.6909335866 │ 1697244.280011885  │ null           │ 3.704204557461102  │ 0.73 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xbfc94cd2b1e55999cfc7347a9313e88702b83d0f&marketName=etherlink' │ true       │ null       │ null     │
│ 1       │ '0xd03bfdf9b26db1e6764724d914d7c3d18106a9fb-etlk' │ 'Etherlink' │ 'superlend' │ 'USDC'   │ 1140160.8592792356 │ 4.004078470645533  │ 19.78429404953857 │ [ '0x796Ea11Fa2dD751eD01b53C372fFDB4AAa8f00F9' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 5141332.661323756  │ 4001171.80204452   │ null           │ 6.052984927189448  │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x796ea11fa2dd751ed01b53c372ffdb4aaa8f00f9&marketName=etherlink' │ true       │ null       │ null     │
│ 2       │ '0x187b7b83e8cab442ad0bfeae38067f3eb38a2d72-etlk' │ 'Etherlink' │ 'superlend' │ 'mTBILL' │ 952220.2549129925  │ 0                  │ 37.66789425352988 │ [ '0xDD629E5241CbC5919847783e6C96B2De4754e438' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 952220.2549129925  │ 0                  │ null           │ 0                  │ 0.78 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xdd629e5241cbc5919847783e6c96b2de4754e438&marketName=etherlink' │ false      │ null       │ null     │
│ 3       │ '0x660adef5993167acdb490df287f4db6cc226ffeb-etlk' │ 'Etherlink' │ 'superlend' │ 'mBASIS' │ 912639.936285832   │ 0                  │ 39.02808571010859 │ [ '0x2247B5A46BB79421a314aB0f0b67fFd11dd37Ee4' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 912639.936285832   │ 0                  │ null           │ 0                  │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x2247b5a46bb79421a314ab0f0b67ffd11dd37ee4&marketName=etherlink' │ false      │ null       │ null     │
│ 4       │ '0x998098a1b2e95e2b8f15360676428edfd976861f-etlk' │ 'Etherlink' │ 'superlend' │ 'USDT'   │ 764456.5774916862  │ 4.198983760290907  │ 26.65643314171233 │ [ '0x2C03058C8AFC06713be23e58D2febC8337dbfE6A' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 3764917.968805702  │ 3000461.3913140157 │ null           │ 6.198554155896109  │ 0.75 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0x2c03058c8afc06713be23e58d2febc8337dbfe6a&marketName=etherlink' │ true       │ null       │ null     │
│ 5       │ '0x008ae222661b6a42e3a097bd7aac15412829106b-etlk' │ 'Etherlink' │ 'superlend' │ 'WXTZ'   │ 505497.1198565037  │ 3.838465667667299  │ 57.50417281702862 │ [ '0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb' ] │ [ '0x6E9C1F88a960fE63387eb4b71BC525a9313d8461' ] │ 2123717.45731958   │ 1618220.3374630762 │ null           │ 5.926484224200784  │ 0.65 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xc9b53ab2679f573e480d01e0f49e2b5cfb7a3eab&marketName=etherlink' │ true       │ null       │ null     │
│ 6       │ '0x301bea8b7c0ef6722c937c07da4d53931f61969c-etlk' │ 'Etherlink' │ 'superlend' │ 'WETH'   │ 259523.04548832387 │ 1.2497243929758222 │ 0                 │ [ '0xfc24f770F94edBca6D6f885E12d4317320BcB401' ] │ []                                               │ 449413.66145112657 │ 189890.6159628027  │ null           │ 3.2863486343820303 │ 0.77 │ 'https://markets.superlend.xyz/reserve-overview/?underlyingAsset=0xfc24f770f94edbca6d6f885e12d4317320bcb401&marketName=etherlink' │ true       │ null       │ null     │
└─────────┴───────────────────────────────────────────────────┴─────────────┴─────────────┴──────────┴────────────────────┴────────────────────┴───────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────┴────────────────────┴──────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────┴────────────┴──────────┘

@priyam-anand
Copy link
Contributor Author

pls remove apy, we compute sums server side

Hi @slasher125, the 'apy' field has been removed !

@slasher125 slasher125 merged commit e5c2412 into DefiLlama:master Apr 14, 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.

3 participants