Skip to content

feat(feeds): DefiLlama protocol-label ingest feed#160

Merged
rinjanianalytics merged 1 commit into
masterfrom
feat/defillama-label-feed
Jun 17, 2026
Merged

feat(feeds): DefiLlama protocol-label ingest feed#160
rinjanianalytics merged 1 commit into
masterfrom
feat/defillama-label-feed

Conversation

@rinjanianalytics

Copy link
Copy Markdown
Owner

What

Pre-populates the wallets table with ~2.9k DeFi protocol labels (Lido, Aave V3, Uniswap, …) from DefiLlama so the free on-chain lookup (#159) resolves protocol addresses DB-first instead of calling DefiLlama live every time.

Details

  • Source: api.llama.fi/protocols (free, no key) — 3,994 protocols carry an address; ~2,891 resolve to valid EVM addresses.
  • Benign labels → wallets only, NOT iocs. Protocol identities aren't threats; tagging Uniswap as an IOC would pollute the indicator feed + landscape shift. (Contrast: OFAC/ScamSniffer dual-sink to iocs because they're malicious.)
  • entityType=defi, confidence=70, attributionSource=defillama, riskTags=[defi, defillama, <category>].
  • Confidence-preserving upsert (GREATEST + CASE): a protocol label never overwrites an OFAC sanctioned (100) / ScamSniffer scam (75) / analyst attribution.
  • Registered as defillama; scheduled weekly (Mon 04:00 UTC). No migration (reuses wallets).

Verified live

2891 EVM protocol labels upserted, 0 failed (Lido, SSV Network, Aave V3). Gateway tsc + api tests (17-feed registry) green.

Pairs with #159 (the free lookup aggregator, which already queries DefiLlama live; this just makes it DB-resident).

🤖 Generated with Claude Code

…ibution)

Pre-populates the wallets table with ~2.9k DeFi protocol labels (Lido, Aave,
Uniswap, …) so the free on-chain lookup resolves protocol addresses DB-first
instead of calling DefiLlama live every time.

Source: api.llama.fi/protocols (free, no key). Benign labels → sink to
`wallets` ONLY (not iocs — these are protocol identities, not threats;
labelling Uniswap as an IOC would pollute the indicator feed + landscape
shift). entityType `defi`, confidence 70, attributionSource `defillama`.

Confidence-preserving upsert (GREATEST + CASE) so a protocol label never
overwrites an OFAC sanctioned (100) / ScamSniffer scam (75) / analyst
attribution. Registered as `defillama`; weekly Mon 04:00 UTC. No migration.

Verified live: 2891 EVM protocol labels upserted, 0 failed (Lido, SSV
Network, Aave V3). gateway tsc + api tests (17-feed registry) green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rinjanianalytics rinjanianalytics merged commit 6502098 into master Jun 17, 2026
5 checks passed
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.

1 participant