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 kamino lend yields #1079

Merged
merged 1 commit into from
Nov 18, 2023
Merged

Add kamino lend yields #1079

merged 1 commit into from
Nov 18, 2023

Conversation

peroxy
Copy link
Contributor

@peroxy peroxy commented Nov 13, 2023

Added yields for kamino-lend (https://defillama.com/protocol/kamino-lend) by using our API - unfortunately, most of these APY metrics use historical data that is not available on-chain and had to use our API.

We do not have any rewards setup yet, so I've omitted those.

@llamatester
Copy link

The kamino-lend adapter exports pools:

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

Nb of pools: 20
 

Sample pools:
┌─────────┬────────────────────────────────────────────────┬──────────┬───────────────┬──────────────────────┬────────────────────────────────────────────────────┬────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────┬────────────────────┬────────────────────────┬──────────────────────┬──────┐
│ (index) │                      pool                      │  chain   │    project    │        symbol        │                  underlyingTokens                  │       tvlUsd       │                                            url                                            │        apyBase         │   totalSupplyUsd   │     totalBorrowUsd     │    apyBaseBorrow     │ ltv  │
├─────────┼────────────────────────────────────────────────┼──────────┼───────────────┼──────────────────────┼────────────────────────────────────────────────────┼────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┼────────────────────┼────────────────────────┼──────────────────────┼──────┤
│    0    │ '57U9pEC8NsWvHgWywd2xHTRkGQzWWYsWivxYRhtxZrLB' │ 'Solana' │ 'kamino-lend' │    'KSOLBSOLORCA'    │ [ '9HB4kAMLSYfGFfN142DKMyPyHyZQ8pXF8M1STbDudodY' ] │ 115813.13280044429 │ 'https://app.kamino.finance/lending/reserve/57U9pEC8NsWvHgWywd2xHTRkGQzWWYsWivxYRhtxZrLB' │           0            │ 115813.13280044429 │           0            │          0           │ 0.45 │
│    1    │ 'H9vmCVd77N1HZa36eBn3UnftYmg4vQzPfm1RxabHAMER' │ 'Solana' │ 'kamino-lend' │        'BSOL'        │ [ 'bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1' ]  │ 81691.03250861177  │ 'https://app.kamino.finance/lending/reserve/H9vmCVd77N1HZa36eBn3UnftYmg4vQzPfm1RxabHAMER' │ 0.0017688215452116296  │ 83115.76776321443  │   1424.7352546026632   │  0.1032406031253652  │ 0.45 │
│    2    │ 'EVbyPKrHG6WBfm4dLxLMJpUDY43cCAcHSpV3KYjKsktW' │ 'Solana' │ 'kamino-lend' │      'JITOSOL'       │ [ 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn' ] │ 74608.93191320341  │ 'https://app.kamino.finance/lending/reserve/EVbyPKrHG6WBfm4dLxLMJpUDY43cCAcHSpV3KYjKsktW' │  0.015956938572769808  │ 78806.49522365684  │   4197.563310453427    │  0.3000131565592312  │ 0.45 │
│    3    │ 'd4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q'  │ 'Solana' │ 'kamino-lend' │        'SOL'         │ [ 'So11111111111111111111111111111111111111112' ]  │ 53974.63591892518  │ 'https://app.kamino.finance/lending/reserve/d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q'  │   3.827354812500383    │ 184694.1318111267  │   130719.4958922015    │  5.451472909464394   │ 0.65 │
│    4    │ 'FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM' │ 'Solana' │ 'kamino-lend' │        'MSOL'        │ [ 'mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So' ]  │ 45010.48838946288  │ 'https://app.kamino.finance/lending/reserve/FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM' │  0.21194320675792522   │ 56012.97291044772  │   11002.484520984844   │  1.0836781275871177  │ 0.45 │
│    5    │ 'AxuWrPrJfwrUTvCWRxpkSQct6q8k1YSJzxhyYw2AAmv2' │ 'Solana' │ 'kamino-lend' │    'KUXDUSDCORCA'    │ [ '4G9USgnbg6fDTQ5AUfpCjM89zqbzWj32xfqvsaAu66DM' ] │ 37690.63213969656  │ 'https://app.kamino.finance/lending/reserve/AxuWrPrJfwrUTvCWRxpkSQct6q8k1YSJzxhyYw2AAmv2' │           0            │ 37690.63213969656  │           0            │          0           │ 0.75 │
│    6    │ 'D6q6wuQSrifJKZYpR1M8R4YawnLDtDsMmWM1NbBmgJ59' │ 'Solana' │ 'kamino-lend' │        'USDC'        │ [ 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' ] │ 18746.459847817412 │ 'https://app.kamino.finance/lending/reserve/D6q6wuQSrifJKZYpR1M8R4YawnLDtDsMmWM1NbBmgJ59' │   1.4292786234690658   │ 48676.78959206873  │   29930.329744251318   │   2.33491391758196   │ 0.8  │
│    7    │ 'Hcz1o77tF9TpdEHcvrx29tz7SBKoQEwJA1wuJqGZYnTw' │ 'Solana' │ 'kamino-lend' │        'TBTC'        │ [ '6DNSN2BJsaPFdFFc1zP37kkeNe4Usc1Sqkzr9C9vPWcU' ] │ 5604.239740281576  │ 'https://app.kamino.finance/lending/reserve/Hcz1o77tF9TpdEHcvrx29tz7SBKoQEwJA1wuJqGZYnTw' │ 0.00007282497258565002 │ 5621.857589472434  │   17.617849190857676   │ 0.023387945121466913 │ 0.4  │
│    8    │ 'DaGyAQJrdkLCzYZiUWg49NV8vabDnhR7ETwLu5eQgL56' │ 'Solana' │ 'kamino-lend' │        'USDH'        │ [ 'USDH1SM1ojwWUga67PGrgFWUHibbjqMvuMaDkRJTgkX' ]  │  5057.0537849397   │ 'https://app.kamino.finance/lending/reserve/DaGyAQJrdkLCzYZiUWg49NV8vabDnhR7ETwLu5eQgL56' │           0            │  5057.0537849397   │ 1.6451545930803484e-13 │ 0.009999925246972907 │ 0.7  │
│    9    │ '75WrtSz7rLCdBvAQhtHi8M2jC8HnpT8iUxcYkdeawr37' │ 'Solana' │ 'kamino-lend' │ 'KSOLJITOSOLRAYDIUM' │ [ 'GYiUmJ8reqYAdTQtx6CRFawHqPXx9yzkUFvaUVE8PskP' ] │ 1469.3166863803367 │ 'https://app.kamino.finance/lending/reserve/75WrtSz7rLCdBvAQhtHi8M2jC8HnpT8iUxcYkdeawr37' │           0            │ 1469.3166863803367 │           0            │          0           │ 0.45 │
└─────────┴────────────────────────────────────────────────┴──────────┴───────────────┴──────────────────────┴────────────────────────────────────────────────────┴────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────┴────────────────────┴────────────────────────┴──────────────────────┴──────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

getting 404 on urls

@peroxy
Copy link
Contributor Author

peroxy commented Nov 14, 2023

getting 404 on urls

Ah, sorry it's currently still in beta and we're going to release it in the coming days. Only whitelisted wallets can access it right now on https://beta.kamino.finance

I could add your Solana wallet to the whitelist if you want - or we can remove the URLs for now until it's fully public? Let me know what works for you.

@slasher125
Copy link
Collaborator

pls ping me here once its live ser

@peroxy
Copy link
Contributor Author

peroxy commented Nov 17, 2023

pls ping me here once its live ser

Hey @slasher125 Kamino Lend is now live, these urls should work now

@llamatester
Copy link

The kamino-lend adapter exports pools:

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

Nb of pools: 20
 

Sample pools:
┌─────────┬────────────────────────────────────────────────┬──────────┬───────────────┬──────────────────────┬────────────────────────────────────────────────────┬────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────┬────────────────────┬────────────────────┬──────────────────────┬──────┐
│ (index) │                      pool                      │  chain   │    project    │        symbol        │                  underlyingTokens                  │       tvlUsd       │                                            url                                            │        apyBase         │   totalSupplyUsd   │   totalBorrowUsd   │    apyBaseBorrow     │ ltv  │
├─────────┼────────────────────────────────────────────────┼──────────┼───────────────┼──────────────────────┼────────────────────────────────────────────────────┼────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┼────────────────────┼────────────────────┼──────────────────────┼──────┤
│    0    │ 'd4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q'  │ 'Solana' │ 'kamino-lend' │        'SOL'         │ [ 'So11111111111111111111111111111111111111112' ]  │  525890.508609642  │ 'https://app.kamino.finance/lending/reserve/d4A2prbA2whesmvHaL88BH6Ewn5N4bTSU2Ze8P6Bc4Q'  │   0.8726021809981166   │  796771.07525825   │  270880.566648608  │  2.5884804346593127  │ 0.65 │
│    1    │ 'AxuWrPrJfwrUTvCWRxpkSQct6q8k1YSJzxhyYw2AAmv2' │ 'Solana' │ 'kamino-lend' │    'KUXDUSDCORCA'    │ [ '4G9USgnbg6fDTQ5AUfpCjM89zqbzWj32xfqvsaAu66DM' ] │ 197923.43941055343 │ 'https://app.kamino.finance/lending/reserve/AxuWrPrJfwrUTvCWRxpkSQct6q8k1YSJzxhyYw2AAmv2' │           0            │ 197923.43941055343 │         0          │          0           │ 0.75 │
│    2    │ '57U9pEC8NsWvHgWywd2xHTRkGQzWWYsWivxYRhtxZrLB' │ 'Solana' │ 'kamino-lend' │    'KSOLBSOLORCA'    │ [ '9HB4kAMLSYfGFfN142DKMyPyHyZQ8pXF8M1STbDudodY' ] │ 186045.8885488081  │ 'https://app.kamino.finance/lending/reserve/57U9pEC8NsWvHgWywd2xHTRkGQzWWYsWivxYRhtxZrLB' │           0            │ 186045.8885488081  │         0          │          0           │ 0.45 │
│    3    │ 'FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM' │ 'Solana' │ 'kamino-lend' │        'MSOL'        │ [ 'mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So' ]  │ 172248.10174517115 │ 'https://app.kamino.finance/lending/reserve/FBSyPnxtHKLBZ4UeeUyAnbtFuAmTHLtso9YtsqRDRWpM' │  0.07611001043104082   │ 195156.18808919043 │ 22908.086344019266 │  0.6502441865472885  │ 0.45 │
│    4    │ 'H9vmCVd77N1HZa36eBn3UnftYmg4vQzPfm1RxabHAMER' │ 'Solana' │ 'kamino-lend' │        'BSOL'        │ [ 'bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1' ]  │ 170236.82623975573 │ 'https://app.kamino.finance/lending/reserve/H9vmCVd77N1HZa36eBn3UnftYmg4vQzPfm1RxabHAMER' │  0.03803445743408851   │ 185588.9437015806  │ 15352.11746182489  │  0.460760120177528   │ 0.45 │
│    5    │ 'EVbyPKrHG6WBfm4dLxLMJpUDY43cCAcHSpV3KYjKsktW' │ 'Solana' │ 'kamino-lend' │      'JITOSOL'       │ [ 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn' ] │ 153867.2918145283  │ 'https://app.kamino.finance/lending/reserve/EVbyPKrHG6WBfm4dLxLMJpUDY43cCAcHSpV3KYjKsktW' │  0.13520680569512056   │ 182465.94218225643 │ 28598.650367728136 │  0.8657903699240466  │ 0.45 │
│    6    │ 'D6q6wuQSrifJKZYpR1M8R4YawnLDtDsMmWM1NbBmgJ59' │ 'Solana' │ 'kamino-lend' │        'USDC'        │ [ 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' ] │ 76535.23133979118  │ 'https://app.kamino.finance/lending/reserve/D6q6wuQSrifJKZYpR1M8R4YawnLDtDsMmWM1NbBmgJ59' │   1.4405253176574595   │ 199972.46044970292 │ 123437.22910991174 │  2.344102445305807   │ 0.8  │
│    7    │ '75WrtSz7rLCdBvAQhtHi8M2jC8HnpT8iUxcYkdeawr37' │ 'Solana' │ 'kamino-lend' │ 'KSOLJITOSOLRAYDIUM' │ [ 'GYiUmJ8reqYAdTQtx6CRFawHqPXx9yzkUFvaUVE8PskP' ] │ 60207.84169423874  │ 'https://app.kamino.finance/lending/reserve/75WrtSz7rLCdBvAQhtHi8M2jC8HnpT8iUxcYkdeawr37' │           0            │ 60207.84169423874  │         0          │          0           │ 0.45 │
│    8    │ 'EAA3VVsxUuQB1Tm5x7TJkq9ATtiX5Qwq8ok7gXwim7oo' │ 'Solana' │ 'kamino-lend' │        'JLP'         │ [ '27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4' ] │ 49080.305112725124 │ 'https://app.kamino.finance/lending/reserve/EAA3VVsxUuQB1Tm5x7TJkq9ATtiX5Qwq8ok7gXwim7oo' │           0            │ 49080.305112725124 │         0          │          0           │ 0.5  │
│    9    │ 'febGYTnFX4GbSGoFHFeJXUHgNaK53fB23uDins9Jp1E'  │ 'Solana' │ 'kamino-lend' │        'ETH'         │ [ '7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs' ] │ 17455.26320404893  │ 'https://app.kamino.finance/lending/reserve/febGYTnFX4GbSGoFHFeJXUHgNaK53fB23uDins9Jp1E'  │ 0.00012744373683037935 │ 17532.845502588938 │ 77.58229854000933  │ 0.028904476292224146 │ 0.4  │
└─────────┴────────────────────────────────────────────────┴──────────┴───────────────┴──────────────────────┴────────────────────────────────────────────────────┴────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────┴────────────────────┴────────────────────┴──────────────────────┴──────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit f8fa115 into DefiLlama:master Nov 18, 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.

3 participants