ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

lending

LOAN Protocol lending and borrowing on XPR Network (lending.loan contract)

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/paulgnz/xpr-lending
Or

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 factors
  • loan_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 markets
  • loan_get_user_rewards — get a user's unclaimed LOAN rewards per market
  • loan_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 API
  • loan_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.

Metadata

Author@paulgnz
Stars1217
Views1
Updated2026-02-20
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-paulgnz-xpr-lending": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.