DefiLlama / yield-server

140 stars 779 forks source link

Adding new pools adaptors/nucleon/index.js #1415

Closed 0xMattM closed 3 months ago

0xMattM commented 3 months ago

In this PR I'm adding two new pools from Nucleon protocol (Conflux eSpace).

llamatester commented 3 months ago

The nucleon adapter exports pools:

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

Nb of pools: 5

Sample pools:
┌─────────┬──────────────────────────────────────────────┬───────────┬───────────┬─────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────┐
│ (index) │                     pool                     │   chain   │  project  │   symbol    │       tvlUsd       │     apyReward      │                                        underlyingTokens                                        │                   rewardTokens                   │
├─────────┼──────────────────────────────────────────────┼───────────┼───────────┼─────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────────┤
│    0    │ '0x949b78ef2c8d6979098e195b08f27ff99cb20448' │ 'Conflux' │ 'nucleon' │ 'WCFX-xCFX' │ 1120849.7459968368 │ 2.528425678929491  │ [ '0x14b2D3bC65e74DAE1030EAFd8ac30c533c976A9b', '0x889138644274a7Dc602f25A7e7D53fF40E6d0091' ] │ [ '0xfe197e7968807b311d476915db585831b43a7e3b' ] │
│    1    │ '0x2899e1bec55e7dda574e80e8ef55f17b79df2f1d' │ 'Conflux' │ 'nucleon' │ 'xCFX-NUT'  │  95295.4780616225  │ 19.82595143473938  │ [ '0x889138644274a7Dc602f25A7e7D53fF40E6d0091', '0xFE197E7968807B311D476915DB585831B43A7E3b' ] │ [ '0xfe197e7968807b311d476915db585831b43a7e3b' ] │
│    2    │ '0x413039955c96b7fc4e4aa61786de577c3d5c126b' │ 'Conflux' │ 'nucleon' │ 'CFXs-NUT'  │ 42102.753310446526 │ 44.874108495209065 │ [ '0xb747a3317259e0aafE5A242C8E3f042a4B83627a', '0xFE197E7968807B311D476915DB585831B43A7E3b' ] │ [ '0xfe197e7968807b311d476915db585831b43a7e3b' ] │
│    3    │ '0xbeebccc7420fff17d1108ec12bbce1adc15c6b6c' │ 'Conflux' │ 'nucleon' │ 'NUT-USDT'  │ 31978.667502257624 │ 59.080745621018075 │ [ '0xFE197E7968807B311D476915DB585831B43A7E3b', '0xfe97E85d13ABD9c1c33384E796F10B73905637cE' ] │ [ '0xfe197e7968807b311d476915db585831b43a7e3b' ] │
│    4    │ '0xd9d5748cb36a81fe58f91844f4a0412502fd3105' │ 'Conflux' │ 'nucleon' │ 'WCFX-NUT'  │ 5191.157276337216  │         0          │ [ '0x14b2D3bC65e74DAE1030EAFd8ac30c533c976A9b', '0xFE197E7968807B311D476915DB585831B43A7E3b' ] │ [ '0xfe197e7968807b311d476915db585831b43a7e3b' ] │
└─────────┴──────────────────────────────────────────────┴───────────┴───────────┴─────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama