Skip to content

SparkDEX V3.1 yield adapter update #1937

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
merged 1 commit into from
Jun 24, 2025
Merged

Conversation

0xrmvdao
Copy link
Contributor

We have updated the adapter code affected by Flare Metrics API change.

@llamatester
Copy link

The sparkdex-v3.1 adapter exports pools:

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

Nb of pools: 116
 

Sample pools:
┌─────────┬────────────────────────────────────────────────────┬────────────────┬─────────────────┬─────────┬────────────────────┬─────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────┬──────────────────────────────────────────────────┐
│ (index) │ pool                                               │ symbol         │ project         │ chain   │ tvlUsd             │ apyBase             │ underlyingTokens                                                                               │ apyReward          │ rewardTokens                                     │
├─────────┼────────────────────────────────────────────────────┼────────────────┼─────────────────┼─────────┼────────────────────┼─────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────┼──────────────────────────────────────────────────┤
│ 0       │ '0x0b40111b4cf6dd1001f36f9c631956fefa56bc3b-flare' │ 'USD₮0-USDC.e' │ 'sparkdex-v3.1' │ 'Flare' │ 54805109.95247431  │ 0.05963246142694832 │ [ '0xe7cd86e13ac4309349f30b3435a9d337750fc82d', '0xfbda5f676cb37624f28265a144a48b0d6e87d3b6' ] │ 14.382559192873334 │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 1       │ '0xa8697b82a5e9f108296c6299859e82472340aea7-flare' │ 'WETH-flrETH'  │ 'sparkdex-v3.1' │ 'Flare' │ 5098616.655993967  │ 0.3313800230782799  │ [ '0x1502fa4be69d526124d453619276faccab275d3d', '0x26a1fab310bd080542dc864647d05985360b16a5' ] │ 9.461210409337673  │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 2       │ '0x99ed6dfd982d4b3ddd726625a585a3b019523bbb-flare' │ 'USD₮0-cUSDX'  │ 'sparkdex-v3.1' │ 'Flare' │ 4443103.914016201  │ 0.05414288375508911 │ [ '0xe7cd86e13ac4309349f30b3435a9d337750fc82d', '0xfe2907dfa8db6e320cdbf45f0aa888f6135ec4f8' ] │ 28.273953377734273 │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 3       │ '0xc9baba3f36ccaa54675deecc327ec7eaa48cb97d-flare' │ 'sFLR-WFLR'    │ 'sparkdex-v3.1' │ 'Flare' │ 2337241.6951376833 │ 0.40207856708098527 │ [ '0x12e605bc104e93b45e1ad99f9e555f659051c2bb', '0x1d80c49bbbcd1c0911346656b529df9e5c2f783d' ] │ 28.900960034386436 │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 4       │ '0x8cd69c359806af83120bc4b4e77663f1e31553e7-flare' │ 'WETH-USDC.e'  │ 'sparkdex-v3.1' │ 'Flare' │ 1434054.471556081  │ 23.030343347683253  │ [ '0x1502fa4be69d526124d453619276faccab275d3d', '0xfbda5f676cb37624f28265a144a48b0d6e87d3b6' ] │                    │                                                  │
│ 5       │ '0xe1d25fc5fd9a961cc924ea701d15c74571bfd6a9-flare' │ 'USDT-USD₮0'   │ 'sparkdex-v3.1' │ 'Flare' │ 999540.5443880119  │ 0.0432518112797567  │ [ '0x0b38e83b86d491735feaa0a791f65c2b99535396', '0xe7cd86e13ac4309349f30b3435a9d337750fc82d' ] │                    │                                                  │
│ 6       │ '0x724bd6413925dd4d513b35b1cf9c6f1c378e3691-flare' │ 'WETH-USD₮0'   │ 'sparkdex-v3.1' │ 'Flare' │ 979034.3947618466  │ 6.398897723214962   │ [ '0x1502fa4be69d526124d453619276faccab275d3d', '0xe7cd86e13ac4309349f30b3435a9d337750fc82d' ] │ 39.18668501213204  │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 7       │ '0x3bc1ecbcd645e525508c570a0ff04480a5614a86-flare' │ 'WFLR-USDC.e'  │ 'sparkdex-v3.1' │ 'Flare' │ 884687.978229796   │ 20.038297710031458  │ [ '0x1d80c49bbbcd1c0911346656b529df9e5c2f783d', '0xfbda5f676cb37624f28265a144a48b0d6e87d3b6' ] │ 20.666397805368863 │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 8       │ '0x63873f0d7165689022feef1b77428df357b33dcf-flare' │ 'WFLR-USD₮0'   │ 'sparkdex-v3.1' │ 'Flare' │ 704298.4596712904  │ 10.874751011841816  │ [ '0x1d80c49bbbcd1c0911346656b529df9e5c2f783d', '0xe7cd86e13ac4309349f30b3435a9d337750fc82d' ] │ 62.855014792065546 │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
│ 9       │ '0x512d3f01d6822fbc70de55be79882a1c08499841-flare' │ 'sFLR-flrETH'  │ 'sparkdex-v3.1' │ 'Flare' │ 294650.20301552076 │ 11.158388633634154  │ [ '0x12e605bc104e93b45e1ad99f9e555f659051c2bb', '0x26a1fab310bd080542dc864647d05985360b16a5' ] │ 23.302495772139242 │ [ '0x26d460c3Cf931Fb2014FA436a49e3Af08619810e' ] │
└─────────┴────────────────────────────────────────────────────┴────────────────┴─────────────────┴─────────┴────────────────────┴─────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────┴──────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit f07cd36 into DefiLlama:master Jun 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