Skip to content

Conversation

@giladm11
Copy link
Contributor

@giladm11 giladm11 commented Dec 8, 2025

project: kaspacom-dex
We need to change the way we retrieve the info since we are going to block access from the graph node in the future.

@llamatester
Copy link

The kaspacom-dex adapter exports pools:

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

Nb of pools: 19
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬────────────────┬───────────────┬────────────────────┬─────────────────────┬─────────────────────┬───────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────┐
│ (index) │ pool                                                 │ chain     │ project        │ symbol        │ tvlUsd             │ apyBase             │ apyBase7d           │ volumeUsd1d       │ volumeUsd7d        │ underlyingTokens                                                                               │ url                      │
├─────────┼──────────────────────────────────────────────────────┼───────────┼────────────────┼───────────────┼────────────────────┼─────────────────────┼─────────────────────┼───────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────┤
│ 0       │ '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-BMT'    │ 33916.17220851694  │ 34.7778618977997    │ 21.533188440497547  │ 3231.594392246012 │ 14044.679372045406 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x35fba50f52e2aa305438134c646957066608d976' ] │ 'https://defi.kaspa.com' │
│ 1       │ '0x6021ab661414eeb515a19e29ab27c8e777a72910-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KREP'   │ 9113.81190040231   │ 0                   │ 0                   │ 0                 │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x90192c285663e38be59d9569358a9d4554d3ff05' ] │ 'https://defi.kaspa.com' │
│ 2       │ '0xfa912718406851af85f981f73c5ccb6e0d3cf7fa-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-DOENER' │ 4013.9700324574915 │ 0.31412437596563564 │ 0.39077230707351107 │ 3.454481730384854 │ 30.164390963602887 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0xdc6f8b91add9233f49b3796ab8ca2de27d4b59df' ] │ 'https://defi.kaspa.com' │
│ 3       │ '0xbcabdc60754fa37a6a89be84452e3d93d77cfb46-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'KBROS-WKAS'  │ 3764.304058751006  │ 0                   │ 0                   │ 0                 │ 0                  │ [ '0x288df76d43e0a32c18e2ec0875e4e02c71418640', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
│ 4       │ '0x36814a7b05a4a7a8e6bc17c39eebc4d5c68aaa6e-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KAST'   │ 3737.952848235159  │ 0                   │ 1.6151712595627403  │ 0                 │ 116.10450019365604 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x6897bd6cb1453641cf1568aa42e107135d1073f7' ] │ 'https://defi.kaspa.com' │
│ 5       │ '0x49198539d255d9ce48ad82da22dd3252f1b15212-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-AXEL'   │ 3097.2908578484935 │ 0                   │ 0.01212628012577121 │ 0                 │ 0.7222810879473278 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x65d0f7b6a6697a14ef03f2d2b82ea6ed892fdeda' ] │ 'https://defi.kaspa.com' │
│ 6       │ '0x6e52e476999771f3ce03b5f2589a418eccffbdc7-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-LION'   │ 2481.7473008586535 │ 0                   │ 0                   │ 0                 │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x2e3bcfa281a70c09b83deb5d6553e2130756905d' ] │ 'https://defi.kaspa.com' │
│ 7       │ '0xaca98458be5e82fda3893fe76748d05241e441e0-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KOOK'   │ 2453.1434164446223 │ 0                   │ 0                   │ 0                 │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x75b6287871421dfdff84a733c5cd94a15a2f6a23' ] │ 'https://defi.kaspa.com' │
│ 8       │ '0xe851fe7939723ba909f138310bbc3d915a512286-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-SOMPG'  │ 2247.197225496382  │ 0                   │ 0                   │ 0                 │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x5fc38dbae0d03b374a246707d015e9881f2f7181' ] │ 'https://defi.kaspa.com' │
│ 9       │ '0xdf0f0fcabdd713b15e7c6bfca18f37fb1f209465-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'LUL-WKAS'    │ 2186.3628355296464 │ 0                   │ 0                   │ 0                 │ 0                  │ [ '0x10b814d6b257f894fd7f2298c8e5f2d23999ebda', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴────────────────┴───────────────┴────────────────────┴─────────────────────┴─────────────────────┴───────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The kaspacom-dex adapter exports pools:

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

Nb of pools: 20
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬────────────────┬───────────────┬────────────────────┬────────────────────┬────────────────────┬──────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────┐
│ (index) │ pool                                                 │ chain     │ project        │ symbol        │ tvlUsd             │ apyBase            │ apyBase7d          │ volumeUsd1d      │ volumeUsd7d        │ underlyingTokens                                                                               │ url                      │
├─────────┼──────────────────────────────────────────────────────┼───────────┼────────────────┼───────────────┼────────────────────┼────────────────────┼────────────────────┼──────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────┤
│ 0       │ '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-BMT'    │ 30039.15119783196  │ 7.9971884264056365 │ 19.452679169850793 │ 658.160965200961 │ 11237.345592039697 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x35fba50f52e2aa305438134c646957066608d976' ] │ 'https://defi.kaspa.com' │
│ 1       │ '0x6021ab661414eeb515a19e29ab27c8e777a72910-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KREP'   │ 8405.720388025322  │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x90192c285663e38be59d9569358a9d4554d3ff05' ] │ 'https://defi.kaspa.com' │
│ 2       │ '0xfa912718406851af85f981f73c5ccb6e0d3cf7fa-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-DOENER' │ 3640.05295164887   │ 0                  │ 0.8299002025967297 │ 0                │ 58.093859269927336 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0xdc6f8b91add9233f49b3796ab8ca2de27d4b59df' ] │ 'https://defi.kaspa.com' │
│ 3       │ '0xbcabdc60754fa37a6a89be84452e3d93d77cfb46-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'KBROS-WKAS'  │ 3471.8389757389054 │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x288df76d43e0a32c18e2ec0875e4e02c71418640', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
│ 4       │ '0x36814a7b05a4a7a8e6bc17c39eebc4d5c68aaa6e-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KAST'   │ 3447.5351048775346 │ 0                  │ 1.212141877861366  │ 0                │ 80.3634937696007   │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x6897bd6cb1453641cf1568aa42e107135d1073f7' ] │ 'https://defi.kaspa.com' │
│ 5       │ '0x49198539d255d9ce48ad82da22dd3252f1b15212-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-AXEL'   │ 2856.6489188033675 │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x65d0f7b6a6697a14ef03f2d2b82ea6ed892fdeda' ] │ 'https://defi.kaspa.com' │
│ 6       │ '0x6e52e476999771f3ce03b5f2589a418eccffbdc7-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-LION'   │ 2288.9296062642616 │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x2e3bcfa281a70c09b83deb5d6553e2130756905d' ] │ 'https://defi.kaspa.com' │
│ 7       │ '0xaca98458be5e82fda3893fe76748d05241e441e0-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KOOK'   │ 2262.5480814946827 │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x75b6287871421dfdff84a733c5cd94a15a2f6a23' ] │ 'https://defi.kaspa.com' │
│ 8       │ '0xe851fe7939723ba909f138310bbc3d915a512286-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-SOMPG'  │ 2072.60274193667   │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x5fc38dbae0d03b374a246707d015e9881f2f7181' ] │ 'https://defi.kaspa.com' │
│ 9       │ '0xdf0f0fcabdd713b15e7c6bfca18f37fb1f209465-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'LUL-WKAS'    │ 2016.4948391595783 │ 0                  │ 0                  │ 0                │ 0                  │ [ '0x10b814d6b257f894fd7f2298c8e5f2d23999ebda', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴────────────────┴───────────────┴────────────────────┴────────────────────┴────────────────────┴──────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The kaspacom-dex adapter exports pools:

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

Nb of pools: 20
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬────────────────┬───────────────┬────────────────────┬────────────────────┬───────────┬──────────────────┬─────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────┐
│ (index) │ pool                                                 │ chain     │ project        │ symbol        │ tvlUsd             │ apyBase            │ apyBase7d │ volumeUsd1d      │ volumeUsd7d │ underlyingTokens                                                                               │ url                      │
├─────────┼──────────────────────────────────────────────────────┼───────────┼────────────────┼───────────────┼────────────────────┼────────────────────┼───────────┼──────────────────┼─────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────┤
│ 0       │ '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-BMT'    │ 30039.15119783196  │ 7.9971884264056365 │ 0         │ 658.160965200961 │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x35fba50f52e2aa305438134c646957066608d976' ] │ 'https://defi.kaspa.com' │
│ 1       │ '0x6021ab661414eeb515a19e29ab27c8e777a72910-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KREP'   │ 8405.720388025322  │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x90192c285663e38be59d9569358a9d4554d3ff05' ] │ 'https://defi.kaspa.com' │
│ 2       │ '0xfa912718406851af85f981f73c5ccb6e0d3cf7fa-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-DOENER' │ 3640.05295164887   │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0xdc6f8b91add9233f49b3796ab8ca2de27d4b59df' ] │ 'https://defi.kaspa.com' │
│ 3       │ '0xbcabdc60754fa37a6a89be84452e3d93d77cfb46-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'KBROS-WKAS'  │ 3471.8389757389054 │ 0                  │ 0         │ 0                │ 0           │ [ '0x288df76d43e0a32c18e2ec0875e4e02c71418640', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
│ 4       │ '0x36814a7b05a4a7a8e6bc17c39eebc4d5c68aaa6e-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KAST'   │ 3447.5351048775346 │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x6897bd6cb1453641cf1568aa42e107135d1073f7' ] │ 'https://defi.kaspa.com' │
│ 5       │ '0x49198539d255d9ce48ad82da22dd3252f1b15212-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-AXEL'   │ 2856.6489188033675 │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x65d0f7b6a6697a14ef03f2d2b82ea6ed892fdeda' ] │ 'https://defi.kaspa.com' │
│ 6       │ '0x6e52e476999771f3ce03b5f2589a418eccffbdc7-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-LION'   │ 2288.9296062642616 │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x2e3bcfa281a70c09b83deb5d6553e2130756905d' ] │ 'https://defi.kaspa.com' │
│ 7       │ '0xaca98458be5e82fda3893fe76748d05241e441e0-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KOOK'   │ 2262.5480814946827 │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x75b6287871421dfdff84a733c5cd94a15a2f6a23' ] │ 'https://defi.kaspa.com' │
│ 8       │ '0xe851fe7939723ba909f138310bbc3d915a512286-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-SOMPG'  │ 2072.60274193667   │ 0                  │ 0         │ 0                │ 0           │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x5fc38dbae0d03b374a246707d015e9881f2f7181' ] │ 'https://defi.kaspa.com' │
│ 9       │ '0xdf0f0fcabdd713b15e7c6bfca18f37fb1f209465-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'LUL-WKAS'    │ 2016.4948391595783 │ 0                  │ 0         │ 0                │ 0           │ [ '0x10b814d6b257f894fd7f2298c8e5f2d23999ebda', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴────────────────┴───────────────┴────────────────────┴────────────────────┴───────────┴──────────────────┴─────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

@giladm11
apyBase for 'WKAS-BMT' seems to be inflated, its ~1.6% in the current version from the graph

@giladm11
Copy link
Contributor Author

giladm11 commented Dec 12, 2025

@slasher125
I see the difference here -

old version -

  {
    pool: '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex',
    chain: 'kasplex',
    project: 'kaspacom-dex',
    symbol: 'WKAS-BMT',
    tvlUsd: 28599.616751345166,
    apyBase: 13.092844191461628,
    apyBase7d: 14.32267513011226,
    volumeUsd1d: 1025.8913042763786,
    volumeUsd7d: 7877.365761062181,
    underlyingTokens: [
      '0x2c2ae87ba178f48637acae54b87c3924f544a83e',
      '0x35fba50f52e2aa305438134c646957066608d976'
    ],
    url: 'https://defi.kaspa.com'
  },

current version -

  {
    pool: '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex',
    chain: 'kasplex',
    project: 'kaspacom-dex',
    symbol: 'WKAS-BMT',
    tvlUsd: 28599.616751345166,
    apyBase: 13.092844191461628,
    apyBase7d: 16.048306689556586,
    volumeUsd1d: 1025.8913042763786,
    volumeUsd7d: 8826.450400564752,
    underlyingTokens: [
      '0x2c2ae87ba178f48637acae54b87c3924f544a83e',
      '0x35fba50f52e2aa305438134c646957066608d976'
    ],
    url: 'https://defi.kaspa.com'
  },

the reason for the difference from my investigation -
we took only the last 6 days in the graph version, because it's only daily info and calculated by that.
in our api, we actually sum up all the sales in the requested timeframe, which give more accurate information. so it will add the sales of the first day by the hour.
plus, on our server we do 5 minutes caching so it might not show the latest 5 minutes sales into considuration.

@llamatester
Copy link

The kaspacom-dex adapter exports pools:

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

Nb of pools: 20
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬────────────────┬───────────────┬────────────────────┬──────────────────┬────────────────────┬───────────────────┬───────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────┐
│ (index) │ pool                                                 │ chain     │ project        │ symbol        │ tvlUsd             │ apyBase          │ apyBase7d          │ volumeUsd1d       │ volumeUsd7d       │ underlyingTokens                                                                               │ url                      │
├─────────┼──────────────────────────────────────────────────────┼───────────┼────────────────┼───────────────┼────────────────────┼──────────────────┼────────────────────┼───────────────────┼───────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────┤
│ 0       │ '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-BMT'    │ 26226.15374553197  │ 9.75837485203349 │ 19.231069872558155 │ 701.1633950026387 │ 9699.172984014964 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x35fba50f52e2aa305438134c646957066608d976' ] │ 'https://defi.kaspa.com' │
│ 1       │ '0x6021ab661414eeb515a19e29ab27c8e777a72910-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KREP'   │ 7824.405596808732  │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x90192c285663e38be59d9569358a9d4554d3ff05' ] │ 'https://defi.kaspa.com' │
│ 2       │ '0xfa912718406851af85f981f73c5ccb6e0d3cf7fa-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-DOENER' │ 3379.328220767608  │ 0                │ 0.6273694858049508 │ 0                 │ 40.77091169671411 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0xdc6f8b91add9233f49b3796ab8ca2de27d4b59df' ] │ 'https://defi.kaspa.com' │
│ 3       │ '0xbcabdc60754fa37a6a89be84452e3d93d77cfb46-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'KBROS-WKAS'  │ 3231.7368481218095 │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x288df76d43e0a32c18e2ec0875e4e02c71418640', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
│ 4       │ '0x36814a7b05a4a7a8e6bc17c39eebc4d5c68aaa6e-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KAST'   │ 3209.113761174648  │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x6897bd6cb1453641cf1568aa42e107135d1073f7' ] │ 'https://defi.kaspa.com' │
│ 5       │ '0x49198539d255d9ce48ad82da22dd3252f1b15212-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-AXEL'   │ 2659.0915182289964 │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x65d0f7b6a6697a14ef03f2d2b82ea6ed892fdeda' ] │ 'https://defi.kaspa.com' │
│ 6       │ '0x6e52e476999771f3ce03b5f2589a418eccffbdc7-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-LION'   │ 2130.633996280551  │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x2e3bcfa281a70c09b83deb5d6553e2130756905d' ] │ 'https://defi.kaspa.com' │
│ 7       │ '0xaca98458be5e82fda3893fe76748d05241e441e0-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KOOK'   │ 2106.076939832004  │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x75b6287871421dfdff84a733c5cd94a15a2f6a23' ] │ 'https://defi.kaspa.com' │
│ 8       │ '0xe851fe7939723ba909f138310bbc3d915a512286-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-SOMPG'  │ 1929.2676588520317 │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x5fc38dbae0d03b374a246707d015e9881f2f7181' ] │ 'https://defi.kaspa.com' │
│ 9       │ '0xdf0f0fcabdd713b15e7c6bfca18f37fb1f209465-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'LUL-WKAS'    │ 1877.0400128861147 │ 0                │ 0                  │ 0                 │ 0                 │ [ '0x10b814d6b257f894fd7f2298c8e5f2d23999ebda', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴────────────────┴───────────────┴────────────────────┴──────────────────┴────────────────────┴───────────────────┴───────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@llamatester
Copy link

The kaspacom-dex adapter exports pools:

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

Nb of pools: 20
 

Sample pools:
┌─────────┬──────────────────────────────────────────────────────┬───────────┬────────────────┬───────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────────────┐
│ (index) │ pool                                                 │ chain     │ project        │ symbol        │ tvlUsd             │ apyBase            │ apyBase7d          │ volumeUsd1d        │ volumeUsd7d        │ underlyingTokens                                                                               │ url                      │
├─────────┼──────────────────────────────────────────────────────┼───────────┼────────────────┼───────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────┤
│ 0       │ '0x119968f5d4345a0dc34d86e95eafbb0d46a57295-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-BMT'    │ 25564.01730654746  │ 17.294949099249255 │ 16.58674182780775  │ 1211.3106249015486 │ 8154.302983563692  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x35fba50f52e2aa305438134c646957066608d976' ] │ 'https://defi.kaspa.com' │
│ 1       │ '0x6021ab661414eeb515a19e29ab27c8e777a72910-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KREP'   │ 7175.776955140773  │ 7.0641041849900015 │ 1.0063929249848769 │ 138.87790690236915 │ 138.87790690236915 │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x90192c285663e38be59d9569358a9d4554d3ff05' ] │ 'https://defi.kaspa.com' │
│ 2       │ '0xfa912718406851af85f981f73c5ccb6e0d3cf7fa-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-DOENER' │ 3219.149789574669  │ 0                  │ 0.5817335287472436 │ 0                  │ 36.01321858952344  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0xdc6f8b91add9233f49b3796ab8ca2de27d4b59df' ] │ 'https://defi.kaspa.com' │
│ 3       │ '0xbcabdc60754fa37a6a89be84452e3d93d77cfb46-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'KBROS-WKAS'  │ 3078.5541725890434 │ 0                  │ 0                  │ 0                  │ 0                  │ [ '0x288df76d43e0a32c18e2ec0875e4e02c71418640', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
│ 4       │ '0x36814a7b05a4a7a8e6bc17c39eebc4d5c68aaa6e-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KAST'   │ 2868.7099303930727 │ 11.978750229553285 │ 1.7065616765390978 │ 94.14673900607617  │ 94.14673900607617  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x6897bd6cb1453641cf1568aa42e107135d1073f7' ] │ 'https://defi.kaspa.com' │
│ 5       │ '0x49198539d255d9ce48ad82da22dd3252f1b15212-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-AXEL'   │ 2533.051938773284  │ 0                  │ 0                  │ 0                  │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x65d0f7b6a6697a14ef03f2d2b82ea6ed892fdeda' ] │ 'https://defi.kaspa.com' │
│ 6       │ '0x6e52e476999771f3ce03b5f2589a418eccffbdc7-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-LION'   │ 2029.6430333805224 │ 0                  │ 0                  │ 0                  │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x2e3bcfa281a70c09b83deb5d6553e2130756905d' ] │ 'https://defi.kaspa.com' │
│ 7       │ '0xaca98458be5e82fda3893fe76748d05241e441e0-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-KOOK'   │ 2006.2499688616354 │ 0                  │ 0                  │ 0                  │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x75b6287871421dfdff84a733c5cd94a15a2f6a23' ] │ 'https://defi.kaspa.com' │
│ 8       │ '0xe851fe7939723ba909f138310bbc3d915a512286-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'WKAS-SOMPG'  │ 1837.8213574696824 │ 0                  │ 0                  │ 0                  │ 0                  │ [ '0x2c2ae87ba178f48637acae54b87c3924f544a83e', '0x5fc38dbae0d03b374a246707d015e9881f2f7181' ] │ 'https://defi.kaspa.com' │
│ 9       │ '0xdf0f0fcabdd713b15e7c6bfca18f37fb1f209465-kasplex' │ 'kasplex' │ 'kaspacom-dex' │ 'LUL-WKAS'    │ 1788.0692752398681 │ 0                  │ 0                  │ 0                  │ 0                  │ [ '0x10b814d6b257f894fd7f2298c8e5f2d23999ebda', '0x2c2ae87ba178f48637acae54b87c3924f544a83e' ] │ 'https://defi.kaspa.com' │
└─────────┴──────────────────────────────────────────────────────┴───────────┴────────────────┴───────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────────────┘
This adapter contains some pools with <10k TVL, these pools won't be shown in DefiLlama

@slasher125
Copy link
Collaborator

we took only the last 6 days in the graph version, because it's only daily info and calculated by that.
in our api, we actually sum up all the sales in the requested timeframe, which give more accurate information. so it will add the sales of the first day by the hour.

and this leads to a difference btw 17% ? your ui is still tracking 0.2% hmm

@giladm11
Copy link
Contributor Author

@slasher125 yes, we will change the UI to show the more accurate data, hopefully this week. I can let you know when we will upload the new version

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