DefiLlama / DefiLlama-Adapters

844 stars 4.79k forks source link

Satoshi dex dev #10950

Closed satoshi-dex closed 2 weeks ago

satoshi-dex commented 2 weeks ago

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  • If you would like to add a volume adapter please submit the PR here.
  • If you would like to add a liquidations adapter, please refer to this readme document for details.
  1. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.
  2. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.
  3. Please fill the form below only if the PR is for listing a new protocol else it can be ignored/replaced with reason/details about the PR
  4. For updating listing info It is a different repo, you can find your listing in this file: https://github.com/DefiLlama/defillama-server/blob/master/defi/src/protocols/data2.ts, you can edit it there and put up a PR
  5. Do not edit/push package-lock.json file as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CI
  6. No need to go to our discord and announce that you've created a PR, we monitor all PRs and will review it asap

Name (to be shown on DefiLlama):

Satoshi DEX

Twitter Link:

https://x.com/satoshiDEX_ai

List of audit links if any:
  1. https://satoshidex.ai/audit.pdf

  2. https://github.com/0xGuard-com/audit-reports/blob/master/SatoshiDEX%20Token/SatoshiDEX%20Token.pdf

Website Link:

https://satoshidex.ai/

Logo (High resolution, will be shown with rounded borders):

180x180y

Current TVL:

$ 9.65k

Chain:

Stacks

Short Description (to be shown on DefiLlama):

SatoshiDEX is a decentralized exchange (DEX) built on the Stacks blockchain, a layer-2 blockchain connected to Bitcoin through Proof-of-Transfer (PoX) consensus

Category (full list at https://defillama.com/categories) *Please choose only one:

Dexes

methodology (what is being counted as tvl, how is tvl being calculated):

The calculated TVL is the current USD sum of all pools from core contract

llamatester commented 2 weeks ago

Error while running adapter at projects/satoshi-dex:

Error: Protocol doesn't have total tvl, make sure to export a tvl key either on the main object or in one of the chains
Truncated error stack:

    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:198:11
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'
    at Object.openSync (node:fs:596:3)
    at Object.writeFileSync (node:fs:2322:35)
    at process.saveCache (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/cache.js:152:17)
    at process.emit (node:events:529:35)
    at process.exit (node:internal/process/per_thread:191:15)
    at process.handleError (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/utils/handleError.js:18:11)
    at process.emit (node:events:529:35)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'
}
g1nt0ki commented 2 weeks ago

thanks for the PR