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

Aqua Patina APY adapter #1597

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Conversation

sponnet
Copy link
Contributor

@sponnet sponnet commented Nov 10, 2024

aqua patina APY calculation

@llamatester
Copy link

The aqua-patina adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬───────────────┬─────────┬───────────┬──────┐
│ (index) │                     pool                     │   chain    │    project    │ symbol  │  tvlUsd   │ apy  │
├─────────┼──────────────────────────────────────────────┼────────────┼───────────────┼─────────┼───────────┼──────┤
│    0    │ '0xAaAaAAaBC6CBc3A1FD3a0fe0FDec43251C6562F5' │ 'Ethereum' │ 'aqua-patina' │ 'APETH' │ 939694.29 │ 8.07 │
└─────────┴──────────────────────────────────────────────┴────────────┴───────────────┴─────────┴───────────┴──────┘

@slasher125
Copy link
Collaborator

slasher125 commented Nov 11, 2024

@sponnet gm, how is the apy calculated?

@sponnet
Copy link
Contributor Author

sponnet commented Nov 14, 2024

TVL versus contract's ETH balance - averaged out over 7 days. We are updating our api backend to reflect this value on a rolling basis. I will ping you here when that is deployed (should be done tomorrow hopefully) Please wait with merging this PR until that is done.
Currently at DevCon so updates are a bit slower than usual. Thx.

@sponnet
Copy link
Contributor Author

sponnet commented Nov 25, 2024

hey @slasher125 - the API endpoint now returns the 10-day moving average APY, which is calculated and updated daily from onchain data. If you need more details let me know. This PR is ready to be merged from our side. Thanks !

@llamatester
Copy link

The aqua-patina adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬───────────────┬─────────┬────────────┬───────────────────┐
│ (index) │                     pool                     │   chain    │    project    │ symbol  │   tvlUsd   │        apy        │
├─────────┼──────────────────────────────────────────────┼────────────┼───────────────┼─────────┼────────────┼───────────────────┤
│    0    │ '0xAaAaAAaBC6CBc3A1FD3a0fe0FDec43251C6562F5' │ 'Ethereum' │ 'aqua-patina' │ 'APETH' │ 1005416.64 │ 8.008956132833893 │
└─────────┴──────────────────────────────────────────────┴────────────┴───────────────┴─────────┴────────────┴───────────────────┘

@llamatester
Copy link

The aqua-patina adapter exports pools:

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

Nb of pools: 1
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬───────────────┬─────────┬───────────┬───────────────────┐
│ (index) │                     pool                     │   chain    │    project    │ symbol  │  tvlUsd   │        apy        │
├─────────┼──────────────────────────────────────────────┼────────────┼───────────────┼─────────┼───────────┼───────────────────┤
│    0    │ '0xAaAaAAaBC6CBc3A1FD3a0fe0FDec43251C6562F5' │ 'Ethereum' │ 'aqua-patina' │ 'APETH' │ 967282.12 │ 6.980615163957922 │
└─────────┴──────────────────────────────────────────────┴────────────┴───────────────┴─────────┴───────────┴───────────────────┘

@slasher125 slasher125 merged commit 5afa690 into DefiLlama:master Nov 26, 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.

4 participants