Skip to content

handle tokemak multi rewards and add sonic support #1913

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codenutt
Copy link
Contributor

Adds support for Sonic chain for Tokemak Autopilot
Handle multiple rewarders for Autopools

@llamatester
Copy link

The tokemak adapter exports pools:

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

Nb of pools: 10
 

Sample pools:
┌─────────┬──────────────────────────────────────────────┬────────────┬───────────┬──────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────┬────────────────────┬────────────────────┬──────────────────────────────────────────────────────────────────────────────────┬─────────────┐
│ (index) │ pool                                         │ chain      │ project   │ symbol   │ tvlUsd             │ rewardTokens                                                                                   │ underlyingTokens                                 │ apyBase            │ apyReward          │ url                                                                              │ poolMeta    │
├─────────┼──────────────────────────────────────────────┼────────────┼───────────┼──────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────┼────────────────────┼────────────────────┼──────────────────────────────────────────────────────────────────────────────────┼─────────────┤
│ 0       │ '0x0a2b94f6871c1d7a32fe58e1ab5e6dea2f114e56' │ 'Ethereum' │ 'tokemak' │ 'WETH'   │ 42944878.925182715 │ [ '0x2e9d63788249371f1dfc918a52f8d799f4a38c94' ]                                               │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 4.473028175840826  │ 0.6796364196741989 │ 'https://app.tokemak.xyz/autopool?id=0x0a2b94f6871c1d7a32fe58e1ab5e6dea2f114e56' │ 'autoETH'   │
│ 1       │ '0xa7569a44f348d3d70d8ad5889e50f78e33d80d35' │ 'Ethereum' │ 'tokemak' │ 'USDC'   │ 19851026.233372133 │ [ '0x2e9d63788249371f1dfc918a52f8d799f4a38c94' ]                                               │ [ '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' ] │ 6.862              │ 3.4115211973325414 │ 'https://app.tokemak.xyz/autopool?id=0xa7569a44f348d3d70d8ad5889e50f78e33d80d35' │ 'autoUSD'   │
│ 2       │ '0x9c6864105aec23388c89600046213a44c384c831' │ 'Base'     │ 'tokemak' │ 'USDC'   │ 11135224.530965626 │ [ '0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950' ]                                               │ [ '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913' ] │ 8.736394091530796  │ 5.106057037494657  │ 'https://app.tokemak.xyz/autopool?id=0x9c6864105aec23388c89600046213a44c384c831' │ 'baseUSD'   │
│ 3       │ '0x79eb84b5e30ef2481c8f00fd0aa7aad6ac0aa54d' │ 'Ethereum' │ 'tokemak' │ 'DOLA'   │ 4047980.0238270336 │ [ '0x865377367054516e17014ccded1e7d814edc9ce4', '0x2e9d63788249371f1dfc918a52f8d799f4a38c94' ] │ [ '0x865377367054516e17014ccded1e7d814edc9ce4' ] │ 8.890309921852953  │ 9.958238280013813  │ 'https://app.tokemak.xyz/autopool?id=0x79eb84b5e30ef2481c8f00fd0aa7aad6ac0aa54d' │ 'autoDOLA'  │
│ 4       │ '0x35911af1b570e26f668905595ded133d01cd3e5a' │ 'Ethereum' │ 'tokemak' │ 'WETH'   │ 2016876.3845428994 │ [ '0x2e9d63788249371f1dfc918a52f8d799f4a38c94' ]                                               │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 2.497323706858632  │ 0                  │ 'https://app.tokemak.xyz/autopool?id=0x35911af1b570e26f668905595ded133d01cd3e5a' │ 'dineroETH' │
│ 5       │ '0xe800e3760fc20aa98c5df6a9816147f190455af3' │ 'Ethereum' │ 'tokemak' │ 'WETH'   │ 1627806.3287107826 │ [ '0x2e9d63788249371f1dfc918a52f8d799f4a38c94' ]                                               │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 2.2375689963792142 │ 0                  │ 'https://app.tokemak.xyz/autopool?id=0xe800e3760fc20aa98c5df6a9816147f190455af3' │ 'autoLRT'   │
│ 6       │ '0xaadf01dd90ae0a6bb9eb908294658037096e0404' │ 'Base'     │ 'tokemak' │ 'WETH'   │ 1608025.749327632  │ [ '0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950' ]                                               │ [ '0x4200000000000000000000000000000000000006' ] │ 4.386034230598746  │ 0                  │ 'https://app.tokemak.xyz/autopool?id=0xaadf01dd90ae0a6bb9eb908294658037096e0404' │ 'baseETH'   │
│ 7       │ '0x6dc3ce9c57b20131347fdc9089d740daf6eb34c5' │ 'Ethereum' │ 'tokemak' │ 'WETH'   │ 979688.5345707581  │ [ '0x2e9d63788249371f1dfc918a52f8d799f4a38c94' ]                                               │ [ '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' ] │ 3.1034424705875256 │ 0                  │ 'https://app.tokemak.xyz/autopool?id=0x6dc3ce9c57b20131347fdc9089d740daf6eb34c5' │ 'balETH'    │
│ 8       │ '0xcb119265aa1195ea363d7a243ad56c73ea42eb59' │ 'Sonic'    │ 'tokemak' │ 'USDC.e' │ 749471.8860207215  │ [ '0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950' ]                                               │ [ '0x29219dd400f2bf60e5a23d13be72b486d4038894' ] │ 8.433763943383568  │ 26.172038479466313 │ 'https://app.tokemak.xyz/autopool?id=0xcb119265aa1195ea363d7a243ad56c73ea42eb59' │ 'sonicUSD'  │
│ 9       │ '0xec4f2f260cfaa25c4524c4cac8eb4222f25ff73e' │ 'Sonic'    │ 'tokemak' │ 'wS'     │ 861.5584293711086  │ [ '0x223c0d94dbc8c0e5df1f6b2c75f06c0229c91950' ]                                               │ [ '0x039e2fb66102314ce7b64ce5ce3e5183bc94ad38' ] │ 0                  │ 68919.75206559637  │ 'https://app.tokemak.xyz/autopool?id=0xec4f2f260cfaa25c4524c4cac8eb4222f25ff73e' │ 'autoS'     │
└─────────┴──────────────────────────────────────────────┴────────────┴───────────┴──────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────┴────────────────────┴────────────────────┴──────────────────────────────────────────────────────────────────────────────────┴─────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

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.

2 participants