Summary
Migrate 482 protocol icons from rsz-prefixed slugs to clean slugs (e.g., protocols/rszuniswap → protocols/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
Summary
Migrate 482 protocol icons from rsz-prefixed slugs to clean slugs (e.g.,
protocols/rszuniswap→protocols/uniswap).Context
Oracle Recommendation
Priority: Low - treat as cleanup/slug hygiene, run opportunistically when gas is cheap.
Pros
protocols/uniswapvsprotocols/rszuniswap)Cons
Alternative: Off-chain alias map
Instead of on-chain migration, maintain an off-chain alias map:
Execution (if proceeding)
Decision