← All skills
Tencent SkillHub Β· Finance & Trading

XPR Lending (LOAN Protocol)

Interact with LOAN Protocol on XPR Network to supply assets, borrow against collateral, redeem, repay loans, and claim LOAN token rewards on mainnet.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Interact with LOAN Protocol on XPR Network to supply assets, borrow against collateral, redeem, repay loans, and claim LOAN token rewards on mainnet.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, skill.json, src/index.ts, test-read.mjs

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 7 sections Open source page

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. 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 collateral loan_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_markets with the market symbols you want to use Supply β€” loan_supply underlying tokens (e.g. 1.0 XBTC) β†’ auto-mints LBTC and deposits as collateral Borrow β€” loan_borrow against collateral (e.g. borrow 500 XUSDC using LBTC collateral) Repay β€” loan_repay when ready to pay back the loan Redeem β€” loan_redeem to withdraw your original tokens + earned interest Claim β€” loan_claim_rewards to 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

Category context

Trading, swaps, payments, treasury, liquidity, and crypto-financial operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Scripts1 Docs1 Config
  • SKILL.md Primary doc
  • src/index.ts Scripts
  • test-read.mjs Scripts
  • skill.json Config