add-vault-protocol
Installation
SKILL.md
Add vault protocol
This skill guides you through adding support for a new ERC-4626 vault protocol to the eth_defi library.
Required inputs
Before starting, gather the following information from the user:
- Vault smart contract address - The address of an example vault contract on a blockchain
- Protocol name - Human-readable name (e.g., "Plutus", "IPOR", "Morpho")
- Protocol slug - Snake_case identifier for code (e.g., "plutus", "ipor", "morpho")
- Chain - Which blockchain (Ethereum, Arbitrum, Base, etc.)
- Block explorer URL - To fetch the ABI (e.g., Etherscan, Arbiscan, Basescan)
- Single vault protocol: Some protocols, especially ones issuing out their own stablecoin, are know to have only a single vault for the stablecoin staking. Example protocols are like like Spark, Ethena, Cap. In this case use
HARDCODED_PROTOCOLSclassification later, as there is no point to create complex vault smart contract detection patterns if the protocol does not need it. - Risk level: Optional. If not given, set to
None
Step-by-step implementation
Step 1: Download and store the ABI
Related skills
More from tradingstrategy-ai/web3-ethereum-defi
get-block-number
Get the latest block number for a blockchain using Web3.py and JSON-RPC environment variables
71extract-project-logo
Extract a project's logo from its website, brand kit, or other sources
67check-vault-onchain
Check our feature flagging against an onchain vault
66more-vaults
Add more vault smart contract types to an existing protocol
64add-vault-note
Add a note to specific vault
62fix-sphix-docs
Fix errors and warnings in Sphinx docs build
61