Skip to content

DefiLlama integration #171

@royalf00l

Description

@royalf00l

DefiLlama Integration

Description

Implement DefiLlama integration for the Templar smart contract protocol to enable TVL (Total Value Locked) and other metrics reporting, as outlined in the DefiLlama project submission guide. Use an endpoint provided by pikespeak indexer for the adapter to fetch necessary data.

Tasks

  1. Create an adapter for Templar following DefiLlama’s adapter requirements.
  2. Integrate with the pikespeak indexer-provided endpoint to retrieve protocol data (e.g., TVL, balances).
  3. Ensure the adapter exposes data in the format expected by DefiLlama (JSON structure with TVL by chain and other metrics).
  4. Test the adapter locally to verify data accuracy and endpoint compatibility.
  5. Submit the adapter to DefiLlama for review and inclusion.
  6. Document the integration process and endpoint usage in the project’s README.

Requirements

  • TVL (total deposits (collateral assets + borrow assets) - outstanding loans) calculated for each market and each chain as well as aggregate
  • Protocol Description and links to website, github and twitter
  • All metrics tracked in this example. In addition to TVL, we want to track Borrowed, Revenue, Fees, all developer metrics.
  • Ensure the adapter is lightweight and optimized for indexer data retrieval.
  • Handle errors gracefully (e.g., indexer downtime, invalid data).
  • Follow DefiLlama’s security and data accuracy guidelines.

Acceptance Criteria

  • Adapter successfully fetches and formats data from the indexer endpoint.
  • Data is correctly reported to DefiLlama (verified via test submission).
  • Integration is documented, and tests pass without errors.

References

Metadata

Metadata

Assignees

Labels

complexity-highLarge estimated workloadenhancementNew feature or requestpriority-highThis should take precedence over othersserviceSupporting services (bots, relayers, etc.)

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions