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

fix apr calculation #1066

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Conversation

syuhei176
Copy link
Contributor

No description provided.

@llamatester
Copy link

The predy-v5 adapter exports pools:

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

Nb of pools: 16
 

Sample pools:
┌─────────┬───────────────────────────────────────────────────────┬────────────┬────────────┬──────────┬───────────────────────────────────────────────────────────────┬────────────────────┬────────────────────┬────────────────────┬─────────────────────┬───────────────────────────────────────────────────────────────┐
│ (index) │                         pool                          │   chain    │  project   │  symbol  │                           poolMeta                            │       tvlUsd       │   totalSupplyUsd   │   totalBorrowUsd   │       apyBase       │                              url                              │
├─────────┼───────────────────────────────────────────────────────┼────────────┼────────────┼──────────┼───────────────────────────────────────────────────────────────┼────────────────────┼────────────────────┼────────────────────┼─────────────────────┼───────────────────────────────────────────────────────────────┤
│    0    │ '0x283EcE8488214877De901A71E4353f85C9Dc4B3C-arbitrum' │ 'Arbitrum' │ 'predy-v5' │  'WETH'  │       'Lending Pool for WETH-USDC.e 0.05% LP position'        │ 89662.35260834827  │ 112708.09275319711 │ 23045.740144848834 │ 0.37170932333203993 │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/1'  │
│    1    │ '0xEb8139E087EF67531746B7BF23A4eBc0a060fBa8-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │       'Lending Pool for WETH-USDC.e 0.05% LP position'        │ 62015.67557117141  │ 113148.88157805441 │  51133.206006883   │ 1.2688044646648626  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/1'  │
│    2    │ '0x1e7641254f161723d62eCeD0bf0D4DD9f73fcB38-arbitrum' │ 'Arbitrum' │ 'predy-v5' │  'WETH'  │ 'Lending Pool for WETH-USDC.e 0.05% narrow range LP position' │ 32843.22220203431  │ 40183.39888888195  │ 7340.176686847642  │ 1.5631420882242404  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/6'  │
│    3    │ '0x5037Df4301489C96F17E3E2eBE55bFF909098043-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │       'Gamma short strategy of WETH-USDC.e 0.05% pool'        │    27650.487859    │                    │                    │  69.73925269478485  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/strategy/1' │
│    4    │ '0x576938D19352f0e321a497FAf588254379339E02-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │ 'Lending Pool for WETH-USDC.e 0.05% narrow range LP position' │ 18066.440687296305 │ 34923.032540397304 │  16856.591853101   │  6.157767626189924  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/6'  │
│    5    │ '0xde2781A9eA08E75149EF5EdC9CF97d44F1c05a0c-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │    'Gamma short strategy of WETH-USDC.e 0.05% extra pool'     │    13822.81855     │                    │                    │ 52.440271231969355  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/strategy/4' │
│    6    │ '0xdD624fc00874cBcCA7c23BD245B78C7B9F1E4Bb3-arbitrum' │ 'Arbitrum' │ 'predy-v5' │  'ARB'   │        'Lending Pool for ARB-USDC.e 0.3% LP position'         │ 12998.888547550378 │ 14938.770835315241 │ 1939.882287764864  │ 0.20910912788319624 │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/2'  │
│    7    │ '0xd51DD2E45504b768ed90d997Ce527f89af2e0AD8-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │        'Lending Pool for ARB-USDC.e 0.3% LP position'         │ 12095.472821597099 │  23101.1625446251  │  11005.689723028   │ 1.5431678787229628  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/2'  │
│    8    │ '0xaA25788310eEf9E78e7D601EF727f19BE0944463-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │       'Gamma short strategy of LUSD-USDC.e 0.05% pool'        │    10526.781084    │                    │                    │ 7.6118777679490055  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/strategy/3' │
│    9    │ '0x1dd16C71FA1D29BACd0f59bB287B32ccC632B11b-arbitrum' │ 'Arbitrum' │ 'predy-v5' │ 'USDC.e' │       'Lending Pool for LUSD-USDC.e 0.05% LP position'        │ 6303.441866714733  │ 9835.916386288733  │   3532.474519574   │ 0.7202893850097599  │ 'https://v5app.predy.finance/arbitrum/trade/usdce/lending/5'  │
└─────────┴───────────────────────────────────────────────────────┴────────────┴────────────┴──────────┴───────────────────────────────────────────────────────────────┴────────────────────┴────────────────────┴────────────────────┴─────────────────────┴───────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit 5e6e223 into DefiLlama:master Nov 6, 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