Skip to content

feat: add Sonic, replace APW with SPECTRA#1700

Merged
slasher125 merged 1 commit intoDefiLlama:masterfrom
Ulydev:master
Jan 23, 2025
Merged

feat: add Sonic, replace APW with SPECTRA#1700
slasher125 merged 1 commit intoDefiLlama:masterfrom
Ulydev:master

Conversation

@Ulydev
Copy link
Contributor

@Ulydev Ulydev commented Jan 22, 2025

This PR adds the Sonic network to the configuration, and replaces all occurrences of APW with SPECTRA (token has been migrated).

@llamatester
Copy link

The spectra-v2 adapter exports pools:

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

Nb of pools: 130
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬────────────┬──────────────┬────────────────┬────────────────────┬────────────────────┬───────────────────┬──────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ (index) │ pool                                                 │ chain      │ project      │ symbol         │ tvlUsd             │ apyBase            │ apyReward         │ rewardTokens                                     │ underlyingTokens                                                                               │ poolMeta                                                  │ url                                                                                                       │
├─────────┼──────────────────────────────────────────────────────┼────────────┼──────────────┼────────────────┼────────────────────┼────────────────────┼───────────────────┼──────────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 0       │ '0x0d89f4583a6b5eceb76551d573ad49cd435f6064-mainnet' │ 'Ethereum' │ 'spectra-v2' │ 'WSTUSR'       │ 47283773.46327984  │ 21.37633761820302  │ 2.638661159822764 │ [ '0x6a89228055c7c28430692e342f149f37462b478b' ] │ [ '0xd0097149aa4cc0d0e1fc99b8bd73fc17dc32c1e9', '0x1202f5c7b4b9e47a1a484e8b270be34dbbc75055' ] │ 'For LP on Resolv | Maturity Sat Feb 22 2025'             │ 'https://app.spectra.finance/pools?ref=defillama#mainnet/0x0d89f4583a6b5eceb76551d573ad49cd435f6064'      │
│ 1       │ '0xd0097149aa4cc0d0e1fc99b8bd73fc17dc32c1e9-mainnet' │ 'Ethereum' │ 'spectra-v2' │ 'WSTUSR'       │ 47283773.46327984  │ 36.599861489603214 │                   │                                                  │ [ '0x66a1e37c9b0eaddca17d3662d6c05f4decf3e110' ]                                               │ 'For PT on Resolv  | Maturity Sat Feb 22 2025'            │ 'https://app.spectra.finance/fixed-rate?ref=defillama#mainnet/0x0d89f4583a6b5eceb76551d573ad49cd435f6064' │
│ 2       │ '0xa88595fdb5898861d371598468a1e9484b33f55f-base'    │ 'Base'     │ 'spectra-v2' │ 'UPLBTC'       │ 25945156.093122877 │ 2.2402034986608985 │ 3.159776854853158 │ [ '0x64fcc3a02eeeba05ef701b7eed066c6ebd5d4e51' ] │ [ '0x638884198c9f6974c6034e03cb5996808bebf267', '0x4e2d90f0307a93b54aca31dc606f93fe6b9132d2' ] │ 'For LP on Upshift (Lombard) | Maturity Sun Mar 30 2025'  │ 'https://app.spectra.finance/pools?ref=defillama#base/0xa88595fdb5898861d371598468a1e9484b33f55f'         │
│ 3       │ '0x638884198c9f6974c6034e03cb5996808bebf267-base'    │ 'Base'     │ 'spectra-v2' │ 'UPLBTC'       │ 25945156.093122877 │ 6.895970222617986  │                   │                                                  │ [ '0xecac9c5f704e954931349da37f60e39f515c11c1' ]                                               │ 'For PT on Upshift (Lombard)  | Maturity Sun Mar 30 2025' │ 'https://app.spectra.finance/fixed-rate?ref=defillama#base/0xa88595fdb5898861d371598468a1e9484b33f55f'    │
│ 4       │ '0xbd0f196071de8d7d1521c0ee53584875d2d97fc5-base'    │ 'Base'     │ 'spectra-v2' │ 'SW-MWETH'     │ 19037124.78997542  │ 7.774684116836491  │ 2.505815415719237 │ [ '0x64fcc3a02eeeba05ef701b7eed066c6ebd5d4e51' ] │ [ '0xe056e990faa14dce30c9c99f9ce4ed73d8a0bd9b', '0x7e32f4c44e22ab20df287f8a15eb6c0f54da6e30' ] │ 'For LP on Morpho (Moonwell) | Maturity Fri Jun 06 2025'  │ 'https://app.spectra.finance/pools?ref=defillama#base/0xbd0f196071de8d7d1521c0ee53584875d2d97fc5'         │
│ 5       │ '0xe056e990faa14dce30c9c99f9ce4ed73d8a0bd9b-base'    │ 'Base'     │ 'spectra-v2' │ 'SW-MWETH'     │ 19037124.78997542  │ 13.48801879047734  │                   │                                                  │ [ '0x4200000000000000000000000000000000000006' ]                                               │ 'For PT on Morpho (Moonwell)  | Maturity Fri Jun 06 2025' │ 'https://app.spectra.finance/fixed-rate?ref=defillama#base/0xbd0f196071de8d7d1521c0ee53584875d2d97fc5'    │
│ 6       │ '0x8d6c6b440054919875d3d7f9fecc400411643248-base'    │ 'Base'     │ 'spectra-v2' │ 'SW-9SETHCORE' │ 18804657.444742218 │ 6.633716854253901  │ 0                 │ []                                               │ [ '0xee7c77a89c39b21c86ecc2374afcff6e71566090', '0x55076e45a3ab31c4d9f92f63f0b7801c74b986f8' ] │ 'For LP on Morpho (9Summits) | Maturity Thu Apr 10 2025'  │ 'https://app.spectra.finance/pools?ref=defillama#base/0x8d6c6b440054919875d3d7f9fecc400411643248'         │
│ 7       │ '0xee7c77a89c39b21c86ecc2374afcff6e71566090-base'    │ 'Base'     │ 'spectra-v2' │ 'SW-9SETHCORE' │ 18804657.444742218 │ 7.298422997326237  │                   │                                                  │ [ '0x4200000000000000000000000000000000000006' ]                                               │ 'For PT on Morpho (9Summits)  | Maturity Thu Apr 10 2025' │ 'https://app.spectra.finance/fixed-rate?ref=defillama#base/0x8d6c6b440054919875d3d7f9fecc400411643248'    │
│ 8       │ '0x9429e06ffd09cf97007791b8bf3845171f1425e8-mainnet' │ 'Ethereum' │ 'spectra-v2' │ 'SW-STKGHO'    │ 10276555.571403254 │ 22.674904457304788 │ 5.139761558906675 │ [ '0x6a89228055c7c28430692e342f149f37462b478b' ] │ [ '0x0f7454c4537afe1243df65842c7919b5d6d6198c', '0xa94ec39c91df334dcab55adaa8edd9c1daf67ca7' ] │ 'For LP on Aave | Maturity Tue Mar 25 2025'               │ 'https://app.spectra.finance/pools?ref=defillama#mainnet/0x9429e06ffd09cf97007791b8bf3845171f1425e8'      │
│ 9       │ '0x0f7454c4537afe1243df65842c7919b5d6d6198c-mainnet' │ 'Ethereum' │ 'spectra-v2' │ 'SW-STKGHO'    │ 10276555.571403254 │ 23.709897423715077 │                   │                                                  │ [ '0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f' ]                                               │ 'For PT on Aave  | Maturity Tue Mar 25 2025'              │ 'https://app.spectra.finance/fixed-rate?ref=defillama#mainnet/0x9429e06ffd09cf97007791b8bf3845171f1425e8' │
└─────────┴──────────────────────────────────────────────────────┴────────────┴──────────────┴────────────────┴────────────────────┴────────────────────┴───────────────────┴──────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125 slasher125 merged commit 98f57eb into DefiLlama:master Jan 23, 2025
1 check passed
Carl-Takara pushed a commit to Carl-Takara/yield-server that referenced this pull request Feb 13, 2025
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