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

multiply Liqwid APYs by 100 #1004

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

kylixafonso
Copy link
Contributor

Summary

Fix Liqwid APYs displaying as 100x smaller than expected (reason is that DefiLlama percentualizes the APYs for display).

@llamatester
Copy link

The liqwid adapter exports pools:

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

Nb of pools: 5
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────────────┬───────────┬──────────┬────────┬────────────────────┬──────────────────────┬───────────┬──────────────────┬──────────────────┬────────────────────┬─────────────────┬────────────────────┬────────────────────┬──────┐
│ (index) │                             pool                             │   chain   │ project  │ symbol │       tvlUsd       │       apyBase        │ apyReward │   rewardTokens   │ underlyingTokens │   apyBaseBorrow    │ apyRewardBorrow │   totalSupplyUsd   │   totalBorrowUsd   │ ltv  │
├─────────┼──────────────────────────────────────────────────────────────┼───────────┼──────────┼────────┼────────────────────┼──────────────────────┼───────────┼──────────────────┼──────────────────┼────────────────────┼─────────────────┼────────────────────┼────────────────────┼──────┤
│    0    │ 'addr1wyf3xpvwjd82wtnax8tw8u5k6r5yfh0sza76k7c3y3pgpjcye7ar2' │ 'Cardano' │ 'liqwid' │ 'ADA'  │ 12990971.699788228 │      0.08094443      │     0     │ [ 'ADA', 'LQ' ]  │    [ 'ADA' ]     │     2.81994251     │        0        │ 13474439.357945165 │  483467.658156937  │ 0.75 │
│    1    │ 'addr1wx5sg32ljez3t25jjr9yg0h7j0lg6e2vr67z9v2k9tc8cwgtw4pw3' │ 'Cardano' │ 'liqwid' │ 'DJED' │   1605507.070028   │      2.74369811      │     0     │ [ 'DJED', 'LQ' ] │    [ 'DJED' ]    │     4.86158103     │        0        │  5450788.75812698  │ 3845281.6880989796 │ 0.75 │
│    2    │ 'addr1w89fy5nrmfx9n0m8tu7vfpwgj3t4el5m9dg2uhp6xc9x9ng8f88h2' │ 'Cardano' │ 'liqwid' │ 'SHEN' │ 1591041.810438071  │ 0.017222499999999998 │     0     │ [ 'SHEN', 'LQ' ] │    [ 'SHEN' ]    │     2.22087149     │        0        │ 1606615.6195987556 │ 15573.80916068464  │ 0.75 │
│    3    │ 'addr1wyr3h4l5khs9n65sua35vl84tyt8kgwg9mcukhlrf7m6negqfmr8f' │ 'Cardano' │ 'liqwid' │ 'iUSD' │ 1567077.9888286751 │  2.3274212999999997  │     0     │ [ 'iUSD', 'LQ' ] │    [ 'iUSD' ]    │     4.5756008      │        0        │ 4303078.243210829  │ 2736000.254382154  │ 0.75 │
│    4    │ 'addr1wxx955evvve0shn2jfm4pcff4w54fmkxatfqnntj6z845vsk0nq0d' │ 'Cardano' │ 'liqwid' │ 'USDC' │ 307583.7954246025  │      1.37765062      │     0     │ [ 'USDC', 'LQ' ] │    [ 'USDC' ]    │ 3.8196455300000003 │        0        │ 560102.5025857359  │ 252518.70716113335 │ 0.75 │
└─────────┴──────────────────────────────────────────────────────────────┴───────────┴──────────┴────────┴────────────────────┴──────────────────────┴───────────┴──────────────────┴──────────────────┴────────────────────┴─────────────────┴────────────────────┴────────────────────┴──────┘

@slasher125 slasher125 merged commit 400372d into DefiLlama:master Sep 19, 2023
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