-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
complexity-highLarge estimated workloadLarge estimated workloadenhancementNew feature or requestNew feature or requestpriority-highThis should take precedence over othersThis should take precedence over othersserviceSupporting services (bots, relayers, etc.)Supporting services (bots, relayers, etc.)
Milestone
Description
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
- Create an adapter for Templar following DefiLlama’s adapter requirements.
- Integrate with the pikespeak indexer-provided endpoint to retrieve protocol data (e.g., TVL, balances).
- Ensure the adapter exposes data in the format expected by DefiLlama (JSON structure with TVL by chain and other metrics).
- Test the adapter locally to verify data accuracy and endpoint compatibility.
- Submit the adapter to DefiLlama for review and inclusion.
- 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
joshuajbouw
Metadata
Metadata
Assignees
Labels
complexity-highLarge estimated workloadLarge estimated workloadenhancementNew feature or requestNew feature or requestpriority-highThis should take precedence over othersThis should take precedence over othersserviceSupporting services (bots, relayers, etc.)Supporting services (bots, relayers, etc.)