Skip to content

fix(usualx): add base and reward ap for usualX #1831

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

Merged

Conversation

zgorizzo69
Copy link
Contributor

fix APY calculation + split base and reward apy for usualX

@llamatester
Copy link

The usual adapter exports pools:

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

Nb of pools: 3
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬─────────┬──────────┬────────────────────┬───────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬───────────────────┬──────────────────────────────────────────────────────────────────┐
│ (index) │ pool                                         │ chain      │ project │ symbol   │ tvlUsd             │ apyReward         │ rewardTokens                                     │ underlyingTokens                                 │ apyBase           │ url                                                              │
├─────────┼──────────────────────────────────────────────┼────────────┼─────────┼──────────┼────────────────────┼───────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼───────────────────┼──────────────────────────────────────────────────────────────────┤
│ 0       │ '0x35D8949372D46B7a3D5A56006AE77B215fc69bC0' │ 'Ethereum' │ 'usual' │ 'USD0++' │ 578874473.6114192  │ 15.04870527582678 │ [ '0xC4441c2BE5d8fA8126822B9929CA0b81Ea0DE38E' ] │ [ '0x73A15FeD60Bf67631dC6cd7Bc5B6e8da8190aCF5' ] │                   │                                                                  │
│ 1       │ '0x06B964d96f5dCF7Eae9d7C559B09EDCe244d4B8E' │ 'Ethereum' │ 'usual' │ 'USUALx' │ 58940382.43985818  │ 55.38163710950914 │ [ '0x73A15FeD60Bf67631dC6cd7Bc5B6e8da8190aCF5' ] │ [ '0xC4441c2BE5d8fA8126822B9929CA0b81Ea0DE38E' ] │ 62.48701270077317 │ 'https://app.usual.money/swap?action=stake&from=USUAL&to=USUALx' │
│ 2       │ '0x2B65F9d2e4B84a2dF6ff0525741b75d1276a9C2F' │ 'Arbitrum' │ 'usual' │ 'USD0++' │ 104747.32211985545 │ 15.04870527582678 │ [ '0xC4441c2BE5d8fA8126822B9929CA0b81Ea0DE38E' ] │ [ '0x35f1C5cB7Fb977E669fD244C567Da99d8a3a6850' ] │                   │                                                                  │
└─────────┴──────────────────────────────────────────────┴────────────┴─────────┴──────────┴────────────────────┴───────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴───────────────────┴──────────────────────────────────────────────────────────────────┘

@slasher125 slasher125 merged commit f8aef57 into DefiLlama:master Apr 24, 2025
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