Skip to content

Inconsistent blockchain names on volume endpoints for DEXes and Derivatives #1768

@JoaoVasques

Description

@JoaoVasques

Context

I am using the folllowing endpoints to pull data for volume

  1. DEXes - https://api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true&dataType=dailyVolume
  2. Derivatives - https://api.llama.fi/overview/derivatives?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true

Problem

Inside each protocol that contains the volume data there are two fields I am using. One is chains to get the list of available blockchains, the other is breakdown24h. I have noticed that some names in chains don't have a direct mapping (even using lower casing) to their counterparts in breakdown24h. The following image shows and example for the opBNB chain

Screenshot 2024-10-10 at 19 00 29

I have also detect some additional inconsistencies that I am sharing in the following mapping

    mapping = {
        "opBNB": "op_bnb",
        "Gnosis": "xdai",
        "ZKsync Era": "era",
        "Cronos zkEVM": "cronos_zkevm",
        "Polygon zkEVM": "polygon zkevm",
        "X Layer": "xlayer",
        "Avalanche": "avax",
        "ZetaChain": "zeta",
    }

Questions

  1. Why does this inconsistency exists?
  2. Is there any endpoint that I can use to resolve them?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions