Skip to content

Conversation

0xNx
Copy link

@0xNx 0xNx commented Aug 28, 2025

Add SparkDex project slug to DefiLlama

Overview

This PR adds a minimal SparkDex adapter to establish the project slug in DefiLlama without providing specific TVL calculations.

Some SparkDEX sub projects are already added: perps, v2, v3, v3.1. This project is added to marke sure the protocol slug available for it's staking token SPRK yield data can be added in the yield-server.

What is SparkDex?

SparkDex is a decentralized exchange protocol built on the Flare Network, offering various DeFi services including AMM trading, concentrated liquidity pools, and perpetual futures trading.

Changes Made

New Adapter: sparkdex/

  • Network: Flare
  • Purpose: Establish project slug for future integrations
  • Implementation: Minimal adapter returning empty TVL data
  • Location: projects/sparkdex/index.js

Technical Details

Adapter Structure

module.exports = {
  flare: {
    tvl: () => ({}),
  },
};

Features

  • Project Identification: Establishes sparkdex as a recognized project in DefiLlama
  • Network Support: Configured for Flare Network
  • Minimal Footprint: No TVL calculations, just project slug registration
  • Standard Compliance: Follows DefiLlama adapter structure requirements

Purpose

This minimal adapter serves as a foundation for:

  • Project Recognition: Establishing SparkDex presence in DefiLlama ecosystem
  • Future Integration: Enabling subsequent PRs to add specific functionality
  • Community Visibility: Making SparkDex discoverable in DefiLlama's project directory
  • Development Workflow: Supporting incremental feature additions

Benefits

  1. Project Foundation: Establishes SparkDex as a recognized DefiLlama project
  2. Incremental Development: Enables future PRs to add specific features
  3. Community Access: Makes SparkDex visible to DefiLlama users
  4. Standard Compliance: Follows DefiLlama project structure guidelines
  5. Zero Impact: No interference with existing functionality or data

Testing

Verification

  • Adapter structure follows DefiLlama standards
  • Network configuration correctly set to Flare
  • No TVL calculation interference
  • Proper export format and syntax

Related Information

  • Protocol: SparkDex on Flare Network
  • Category: DEX/DeFi Protocol
  • Status: Foundation adapter for future development

Checklist

  • Added minimal sparkdex adapter
  • Configured for Flare Network
  • Followed DefiLlama coding standards
  • No TVL calculations included
  • Ready for project slug establishment

Notes

  • This is a foundation PR to establish the project slug
  • Future PRs can build upon this base to add specific functionality
  • No conflicts with existing DefiLlama adapters
  • Minimal implementation focused on project identification only

Protocol: SparkDex
Network: Flare
Category: Project Foundation

@llamabutler
Copy link

The adapter at projects/sparkdex exports TVL:

flare                     0

total                    0 

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'

@waynebruce0x
Copy link
Collaborator

We need nonzero TVL to list on the TVL dashboard. If you want we can just make the slug without TVL?

@waynebruce0x waynebruce0x self-assigned this Aug 29, 2025
@0xNx
Copy link
Author

0xNx commented Aug 29, 2025

We need nonzero TVL to list on the TVL dashboard. If you want we can just make the slug without TVL?

I submitted PR on yield-server, which will have TVL data for the SparkDEX (SPRK) token staking yield. Which failed the test case due to lack of slug.

So, yes, please just make the slug without TVL here. Then the yield-server PR will pass the test.

@waynebruce0x
Copy link
Collaborator

Can you send logo and other metadata in a comment on this PR. Please include this info: https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/pull_request_template.md

@0xNx
Copy link
Author

0xNx commented Sep 1, 2025

I think we already sent these info when creating other SparkDEX sub projects.
https://defillama.com/protocol/dexs/sparkdex

It's fine to re-send, but I don't want to overwirte what were already setup.

@waynebruce0x
Copy link
Collaborator

You already have a project slug its sparkdex

@0xNx
Copy link
Author

0xNx commented Sep 1, 2025

You already have a project slug its sparkdex

Did you just add ? Then how can I re-run the test for the yield server PR? It failed due to no sparkdex slug.
DefiLlama/yield-server#2069

@waynebruce0x
Copy link
Collaborator

So we already have dimension adapters for perps, v2, v3, v3.1 - what is this for?

@waynebruce0x
Copy link
Collaborator

It doesnt seem necessary to create a new protocol just for your SPRK staking yield - can you add it to an existing adapter?

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