core3.mappings

Documentation for eth_defi.core3.mappings Python module.

Mapping between our vault protocol slugs and Core3 project slugs.

Our vault protocol metadata lives in eth_defi/data/vaults/metadata/*.yaml and uses its own slug system (e.g. ipor-fusion, lagoon-finance).

Core3 uses CoinGecko-style slugs (e.g. instadapp for Fluid, syrup for Maple). This module provides the canonical mapping between the two.

Unmapped protocols (value None) have no known Core3 equivalent.

To update this mapping, run:

poetry run python scripts/core3/update-core3-mappings.py

See README-core3 for details.

Module Attributes

CORE3_MAPPINGS

Mapping from our vault protocol slug to Core3 project slug.

CORE3_MAPPINGS: dict[str, str | None] = {'altura': 'altura', 'centrifuge': 'centrifuge-2', 'dolomite': 'dolomite', 'ethena': 'ethena', 'euler': 'euler', 'fluid': 'instadapp', 'frax-finance': 'frax-share', 'gains-network': 'gains-network', 'gearbox': 'gearbox', 'harvest-finance': 'harvest-finance', 'hyperliquid': 'hyperliquid', 'inverse-finance': 'inverse-finance', 'lighter': 'lighter', 'maple': 'syrup', 'morpho': 'morpho', 'resolv': 'resolv', 'sky': 'sky', 'spark': 'spark-2', 'superform': 'superform', 'truefi': 'truefi', 'yearn': 'yearn-finance'}

Mapping from our vault protocol slug to Core3 project slug.

  • None means no Core3 equivalent is known.

  • A string value is the Core3 slug for that protocol.

  • Each mapping has a comment with the date it was added and how it was identified.