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

Corrected APY calculation #1629

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Corrected APY calculation #1629

merged 1 commit into from
Dec 3, 2024

Conversation

Divljo31
Copy link
Contributor

@Divljo31 Divljo31 commented Dec 2, 2024

Corrected yield calcuation for Polynomial liquidity, now it shows corrected values. Base apy of deposited tokens weren't calculated. Example: Deposit yield bearing asset and you earn base apy of it, platform fees + rewards token.

@llamatester
Copy link

The polynomial-liquidity adapter exports pools:

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

Nb of pools: 4
 

Sample pools:
┌─────────┬────────────┬──────────────┬────────────────────────┬──────────┬────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────┬───────────────────────────────────────────────────┐
│ (index) │    pool    │    chain     │        project         │  symbol  │       tvlUsd       │      apyBase       │     apyReward      │                   rewardTokens                   │                        url                        │
├─────────┼────────────┼──────────────┼────────────────────────┼──────────┼────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────┼───────────────────────────────────────────────────┤
│    0    │ '1-fxUSDC' │ 'polynomial' │ 'polynomial-liquidity' │  'USDC'  │   3132460.733087   │ 6.932350315907441  │ 26.384595862904415 │ [ '0x4200000000000000000000000000000000000042' ] │ 'https://polynomial.fi/en/mainnet/earn/liquidity' │
│    1    │ '1-usd0++' │ 'polynomial' │ 'polynomial-liquidity' │ 'usd0++' │ 1021132.7326807493 │ 48.81434217199238  │ 26.384595862904415 │ [ '0x4200000000000000000000000000000000000042' ] │ 'https://polynomial.fi/en/mainnet/earn/liquidity' │
│    2    │ '1-sUSDe'  │ 'polynomial' │ 'polynomial-liquidity' │ 'sUSDe'  │ 654026.5926775596  │ 36.11732487220352  │ 26.384595862904415 │ [ '0x4200000000000000000000000000000000000042' ] │ 'https://polynomial.fi/en/mainnet/earn/liquidity' │
│    3    │  '1-sDAI'  │ 'polynomial' │ 'polynomial-liquidity' │  'sDAI'  │ 87819.62861409744  │ 16.534487089724294 │ 26.384595862904415 │ [ '0x4200000000000000000000000000000000000042' ] │ 'https://polynomial.fi/en/mainnet/earn/liquidity' │
└─────────┴────────────┴──────────────┴────────────────────────┴──────────┴────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────┴───────────────────────────────────────────────────┘

@slasher125 slasher125 merged commit 60614d8 into DefiLlama:master Dec 3, 2024
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