DeFi借贷·自动复利·超额抵押
简介
XPR Network上的Compound风格借贷协议,支持14种加密资产存入生息和超额抵押借贷,自动复利L代币机制,主网专用需谨慎操作。
原始描述
Interact with LOAN Protocol on XPR Network to supply assets, borrow against collateral, redeem, repay loans, and claim LOAN token rewards on mainnet.
通过你的 Agent 添加
安装目录:lending/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
LOAN Protocol是XPR Network上的去中心化借贷协议(lending.loan合约),采用Compound经典的资金池模式。用户通过loan_enter_markets进入市场后,可执行:
存款端:loan_supply将底层资产(如XBTC)转入合约,自动铸造L-Token(如LBTC)作为权益凭证,L-Token自动复利计息。
借款端:以L-Token为抵押,loan_borrow借出其他资产。协议采用动态利率模型——资金利用率越高,借款利率越高。
退出流程:loan_repay还款 → loan_redeem赎回L-Token取回本息 → loan_claim_rewards领取LOAN治理代币奖励。
显著优点
- 自动复利机制:L-Token设计省去手动复投操作,收益自动滚存
- 丰富市场覆盖:14个活跃市场涵盖主流资产(BTC、ETH、SOL、XRP等)及Meme币(DOGE)
- 数据透明可查:提供历史APY(7/30/90天)、TVL走势、个人仓位等全套只读工具
- 激励机制:存借双方均可获得LOAN代币奖励,提升资本效率
潜在缺点与局限
- 主网独占风险:无测试网环境,新手无法低成本试错;所有操作均为真实资金
- 单一预言机依赖:价格来源集中于Metal X自有系统,无多源对比
- 流动性挤兑风险:高利用率时
loan_redeem可能因资金池枯竭而失败 - 清算设计偏激进:10%清算激励+70%抵押率上限,市场波动下缓冲空间有限
适合人群
- 熟悉DeFi超额抵押借贷机制的进阶用户
- XPR Network生态持有者寻求被动收益
- 需要短期流动性但不愿抛售加密资产的长期投资者
- 能够主动监控仓位、及时补仓的风险管理者
常规风险
| 风险类型 | 具体表现 | 缓释建议 |
|---|---|---|
| 清算风险 | 抵押品价值下跌至阈值以下,10%罚金被清算人提取 | 借款率控制在50-60%以下,预留安全垫 |
| 利率波动风险 | 利用率激增导致借款成本飙升 | 监控loan_get_market实时利率,避免高利用率时段大额借款 |
| 赎回流动性风险 | 资金池枯竭时无法即时退出 | 查看loan_get_market的cash/reserves数据 |
| 智能合约风险 | 代码漏洞或参数配置错误 | 控制单协议敞口,分散资产存放 |
| 预言机故障风险 | 价格喂价延迟或偏差导致错误清算 | 关注官方公告,极端行情提前减仓 |
关键安全提示:系统强制要求confirmed: true才能执行写入操作,务必在签名前二次核对资产符号、金额、抵押率等关键参数。
技能正文
name: lending description: LOAN Protocol lending and borrowing on XPR Network (lending.loan contract)
LOAN Protocol (Metal X Lending)
You have tools to interact with the LOAN Protocol on XPR Network — a Compound-style pooled lending protocol at lending.loan. Users supply assets to earn interest and borrow against their collateral.
IMPORTANT: LOAN Protocol is mainnet only. There is no testnet deployment. All lending tools operate on mainnet.
Key Concepts
- L-Tokens — share tokens (LBTC, LUSDC, LXPR, etc.) representing a user's share in the lending pool. When you supply XBTC, you receive LBTC. L-tokens auto-compound interest.
- Collateral Factor — max borrow percentage of collateral value (e.g. 70% = can borrow up to $70 per $100 deposited). Borrowing close to this limit risks immediate liquidation.
- Utilization Rate — ratio of borrowed to total assets. High utilization = higher borrow rates. Each market targets an optimal utilization (kink point).
- Variable Rate — borrow rate that fluctuates with utilization. All borrowers in a market pay the same variable rate.
- Liquidation — when a user's borrow exceeds their collateral factor threshold, liquidators can repay the debt and seize discounted collateral. Liquidation incentive is currently 10%.
- LOAN Token — governance/reward token. Suppliers and borrowers earn LOAN rewards proportional to their position.
Available Markets
14 active markets including: XUSDC, XBTC, XETH, XPR, XMT, XDOGE, XLTC, XXRP, XSOL, XXLM, XADA, XHBAR, XUSDT, XMD.
Read-Only Tools (safe, no signing)
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)
Write Tools (require 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 rewards
Typical User Flow
- Enter markets —
loan_enter_marketswith the market symbols you want to use - Supply —
loan_supplyunderlying tokens (e.g. 1.0 XBTC) → auto-mints LBTC and deposits as collateral - Borrow —
loan_borrowagainst collateral (e.g. borrow 500 XUSDC using LBTC collateral) - Repay —
loan_repaywhen ready to pay back the loan - Redeem —
loan_redeemto withdraw your original tokens + earned interest - Claim —
loan_claim_rewardsto claim any LOAN token rewards
Safety Rules
- NEVER borrow close to the collateral factor limit — users will be liquidated
- Always recommend borrowing at most 50-60% of the collateral factor to leave a safety buffer
- Check utilization before redeeming — high utilization means less cash available for withdrawals
- Supply and repay use token transfers (to lending.loan with memo); borrow/redeem/withdraw use direct contract actions
- All write tools require
confirmed: true— present the details first and ask for confirmation
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。