openclaw/skills/lending/SKILL.md
LOAN Protocol lending and borrowing on XPR Network (lending.loan contract)
npx skillsauth add XPRNetwork/xpr-agents lendingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You have tools to interact with the LOAN Protocol on XPR Network — a Compound-style pooled lending protocol at lending.loan, available within the Metal X App (metalx.com). Users supply assets to earn interest and borrow against their collateral. Always refer to it as "LOAN Protocol" (not "Metal Lending Protocol").
IMPORTANT: LOAN Protocol is mainnet only. There is no testnet deployment. All lending tools operate on mainnet.
14 active markets including: XUSDC, XBTC, XETH, XPR, XMT, XDOGE, XLTC, XXRP, XSOL, XXLM, XADA, XHBAR, XUSDT, XMD.
loan_list_markets — list all lending markets with utilization, reserves, interest models, and collateral factorsloan_get_market — get detailed info for a specific market by L-token symbol (e.g. "LBTC")loan_get_user_positions — get a user's supply (L-token shares) and borrow positions across all marketsloan_get_user_rewards — get a user's unclaimed LOAN rewards per marketloan_get_config — get global lending config (oracle, close factor, liquidation incentive)loan_get_market_apy — get historical deposit/borrow APY including LOAN rewards (7d, 30d, 90d) from Metal X APIloan_get_market_tvl — get historical TVL (total value locked) in USD with utilization ratio (7d, 30d, 90d)confirmed: true)All write operations require explicit confirmation. For supply and repay, the tool builds a token transfer to lending.loan. For borrow/redeem/withdraw, it calls the lending contract directly.
loan_enter_markets — enter markets to enable lending/borrowing (must do this first)loan_exit_markets — exit markets (only if no outstanding positions)loan_supply — supply underlying tokens to earn interest (transfers to lending.loan with "mint" memo)loan_borrow — borrow underlying tokens against deposited collateralloan_repay — repay variable or stable borrows (transfers to lending.loan with "repay" memo)loan_redeem — redeem L-tokens for underlying tokens (burns deposited shares)loan_withdraw_collateral — withdraw L-tokens from collateral (reduces borrowing capacity)loan_claim_rewards — claim accrued LOAN token rewardsloan_enter_markets with the market symbols you want to useloan_supply underlying tokens (e.g. 1.0 XBTC) → auto-mints LBTC and deposits as collateralloan_borrow against collateral (e.g. borrow 500 XUSDC using LBTC collateral)loan_repay when ready to pay back the loanloan_redeem to withdraw your original tokens + earned interestloan_claim_rewards to claim any LOAN token rewardsconfirmed: true — present the details first and ask for confirmationdevelopment
Operate an autonomous AI agent on XPR Network's trustless registry
data-ai
Metal Dollar (XMD) stablecoin — mint, redeem, supply analytics, collateral reserves, oracle prices
tools
Web scraping tools for fetching and extracting data from web pages
business
Crypto tax reporting for XPR Network with regional support