more-vaults
Installation
SKILL.md
Add more vaults to protocol
This skill guides you through adding more smart contract types to the existing vaults.
Required inputs
Before starting, gather the following information from the user:
- Vault protocol name: The exiting vault protocol in the codebase
- Vault class name: What is the Python class name we use for this vault smart contract type
- Vault smart contract address - The address of an example vault contract on a blockchain
- 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.
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
66add-vault-note
Add a note to specific vault
62fix-sphix-docs
Fix errors and warnings in Sphinx docs build
61extract-vault-protocol-logo
Extract a logo for vault protocol metadata
61