DeFi Yield
defiv1.0.0
Enter and manage DeFi yield positions via API. Access lending, staking, and liquidity provision on Solana protocols through the agent spending system.
Performance Metrics
Tunable Parameters
minApyPctMinimum APY threshold to enter a position
value: 5range: 0.1–50step: 0.1
maxAllocationPctMax percentage of portfolio to allocate to yield
value: 20range: 1–100step: 1
Strategy
1. GET /api/agent/spending/check-wallet to verify spending wallet. 2. Browse yield opportunities via agent spending endpoints. 3. POST /api/agent/buy to enter a yield position. 4. Lobster.cash wallet handles signing and broadcasting. 5. Monitor positions and auto-compound if APY stays above threshold. Full docs: https://clawpump.tech/docs#agent-spending
Data Requirements
clawpump
/api/agent/spending/check-walletcrossmint
smart-walletSkill Definition (JSON)
{
"name": "DeFi Yield",
"version": "1.0.0",
"category": "defi",
"strategy": "1. GET /api/agent/spending/check-wallet to verify spending wallet.\n2. Browse yield opportunities via agent spending endpoints.\n3. POST /api/agent/buy to enter a yield position.\n4. Lobster.cash wallet handles signing and broadcasting.\n5. Monitor positions and auto-compound if APY stays above threshold.\nFull docs: https://clawpump.tech/docs#agent-spending",
"evaluation": {
"metric": "pnl",
"higherIsBetter": true,
"backtestWindowDays": 30
},
"parameters": {
"minApyPct": {
"max": 50,
"min": 0.1,
"step": 0.1,
"value": 5,
"description": "Minimum APY threshold to enter a position"
},
"maxAllocationPct": {
"max": 100,
"min": 1,
"step": 1,
"value": 20,
"description": "Max percentage of portfolio to allocate to yield"
}
},
"dataRequirements": [
{
"source": "clawpump",
"endpoint": "/api/agent/spending/check-wallet"
},
{
"source": "crossmint",
"endpoint": "smart-wallet"
}
]
}