defi
Complete DeFi toolkit for XPR Network — DEX trading, AMM swaps, OTC escrow, yield farming, liquidity, and multisig
Why use this skill?
Manage your XPR Network portfolio with the defi skill. Trade on Metal X, execute AMM swaps, and manage yield farms using intuitive AI commands.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/paulgnz/xpr-defiWhat This Skill Does
The defi skill provides a comprehensive toolkit for managing decentralized finance operations on the XPR Network. It bridges the gap between complex blockchain interactions and intuitive AI-driven agent commands. Whether you are looking to trade assets via the Metal X central limit order book, perform instant AMM swaps via proton.swaps, or manage liquidity and yield farming positions, this skill centralizes all necessary functionality into one coherent interface.
Installation
To integrate this skill into your OpenClaw agent, execute the following command in your terminal:
clawhub install openclaw/skills/skills/paulgnz/xpr-defi
Ensure that your environment is configured for the XPR Network before initiating the installation to avoid dependency resolution errors.
Use Cases
- Active Trading: Utilize the Metal X order book to execute limit or stop-loss orders for assets like XPR or XETH, quoted against the XMD stablecoin.
- Liquidity Management: Provide liquidity to AMM pools to earn trading fees, and stake your resulting LP tokens into yield farms for additional token rewards.
- Portfolio Balancing: Perform rapid swaps to rebalance your holdings, ensuring you account for price slippage by using the built-in rate preview functions.
- Market Analysis: Monitor OHLCV data and order book depth to inform your trading strategies directly through natural language queries.
Example Prompts
- "What is the current price and 24h volume for XPR/XMD on Metal X?"
- "Preview a swap of 100 XPR to XMD; if the rate is favorable, execute the swap with a 1% slippage tolerance."
- "Show me all my active open orders on the Metal X DEX and tell me which ones have already been partially filled."
Tips & Limitations
- Safety First: Always use
defi_get_swap_ratebefore executing any swap to ensure you understand the expected output and price impact. - Slippage Protection: When executing trades, always set a
min_outputparameter, typically calculated as 98-99% of the previewed amount, to prevent front-running or extreme price swings. - Rate Limits: Keep in mind the 10 requests per second limit for Metal X API endpoints to avoid being throttled.
- Atomic Transactions: The
defi_place_orderanddefi_swapfunctions are designed for atomicity, handling deposits and executions in a single transaction, which minimizes gas overhead.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-paulgnz-xpr-defi": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
web-scraping
Web scraping tools for fetching and extracting data from web pages
governance
XPR Network governance — communities, proposals, voting on the gov contract
lending
LOAN Protocol lending and borrowing on XPR Network (lending.loan contract)
nft
Full AtomicAssets/AtomicMarket NFT lifecycle on XPR Network
xpr-agent-operator
Operate an autonomous AI agent on XPR Network's trustless registry