sync-earn-pools

Synchronize earn-pools.json with DefiLlama data by validating and pruning stale pool URLs.

46|22|Updated Oct 6, 2022
One-click install
npx skills add https://github.com/reserve-protocol/register --skill sync-earn-pools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-earn-pools
Source: https://github.com/reserve-protocol/register/tree/main/.claude/skills/sync-earn-pools
Command: npx skills add https://github.com/reserve-protocol/register --skill sync-earn-pools

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Synchronize earn pool URLs with DefiLlama data by validating, pruning stale entries, and provisioning new pools in the local earn-pools.json. This ensures the registry reflects current DefiLlama pools and avoids dead links.

Core Features & Use Cases

  • Validate and reconcile earn-pools.json against live DefiLlama pool data, removing stale pools and adding new ones.
  • Auto-fix Convex-based pool URLs by querying the on-chain pool mappings and generate correct URLs where possible.
  • On-demand syncing with optional URL validation checks to catch broken or generic URLs before deployment.
  • Use Case: A data engineer runs the script with --fix to clean the registry and refresh pool URLs for a quarterly audit.

Quick Start

Run the script with --fix to automatically clean stale pools, add new ones, and fix incorrect URLs.

Frequently Asked Questions about sync-earn-pools

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I synchronize earn pool URLs with DefiLlama data?

To synchronize earn pool URLs with DefiLlama data, run the sync script with the --fix flag to automatically validate entries, prune stale pools, and provision new pools in your local earn-pools.json file.

What is the best way to fix broken Convex pool URLs across Ethereum, Base, and Arbitrum?

Fixing broken Convex pool URLs is handled by the script's optional Convex URL auto-fix feature, which queries on-chain pool mappings across Ethereum, Base, and Arbitrum to generate correct URLs.

Why does my earn-pools.json registry contain stale or dead links?

Your earn-pools.json registry contains stale links because it is not synchronized with current DefiLlama pool data. Running an on-demand sync prunes stale entries and validates URLs to prevent dead links.

Can I validate earn pool URLs before deploying changes to the Reserve Protocol registry?

Yes, you can validate earn pool URLs before deployment by running the synchronization script with optional URL validation checks to catch broken or generic URLs before updating the registry.

Does the DefiLlama earn pool sync script support on-chain data queries for URL generation?

Yes, the sync script supports on-chain data queries specifically for auto-fixing Convex-based pool URLs by fetching pool mappings directly from the blockchain to generate accurate links.