Skip to content

Migrate protocol icons to clean slugs #5

@igor53627

Description

@igor53627

Summary

Migrate 482 protocol icons from rsz-prefixed slugs to clean slugs (e.g., protocols/rszuniswapprotocols/uniswap).

Context

  • We completed chain icon migration (760 icons, ~0.026 ETH)
  • Protocol migration is optional/cosmetic - no on-chain mappings depend on protocol slugs
  • Both old and new slugs will continue to work (contract doesn't delete data)
  • Estimated cost: ~0.016 ETH at 0.05 gwei

Oracle Recommendation

Priority: Low - treat as cleanup/slug hygiene, run opportunistically when gas is cheap.

Pros

  • Cleaner canonical identifiers (protocols/uniswap vs protocols/rszuniswap)
  • Less friction for integrators
  • Consistency with chains and majority of protocol slugs already clean

Cons

  • State bloat: 482 additional SSTORE2 contracts with duplicate PNG bytes
  • Minor operational overhead

Alternative: Off-chain alias map

Instead of on-chain migration, maintain an off-chain alias map:

  • UI/API accepts clean slugs
  • Resolves to rsz slugs for on-chain lookups
  • Cost: 0 ETH

Execution (if proceeding)

# Dry run
DRY_RUN=true CATEGORY=protocols npx tsx scripts/migrate-clean-slugs.ts

# Live (when gas is cheap)
CATEGORY=protocols MAX_GAS_PRICE_GWEI=0.03 npx tsx scripts/migrate-clean-slugs.ts

Decision

  • Proceed with on-chain migration
  • Skip and use off-chain alias map

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions