{
  "schemaVersion": "1.0",
  "item": {
    "slug": "xpr-lending",
    "name": "XPR Lending (LOAN Protocol)",
    "source": "tencent",
    "type": "skill",
    "category": "金融交易",
    "sourceUrl": "https://clawhub.ai/paulgnz/xpr-lending",
    "canonicalUrl": "https://clawhub.ai/paulgnz/xpr-lending",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/xpr-lending",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=xpr-lending",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "skill.json",
      "src/index.ts",
      "test-read.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/xpr-lending"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/xpr-lending",
    "agentPageUrl": "https://openagent3.xyz/skills/xpr-lending/agent",
    "manifestUrl": "https://openagent3.xyz/skills/xpr-lending/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/xpr-lending/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "LOAN Protocol (Metal X Lending)",
        "body": "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.\n\nIMPORTANT: LOAN Protocol is mainnet only. There is no testnet deployment. All lending tools operate on mainnet."
      },
      {
        "title": "Key Concepts",
        "body": "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.\nCollateral 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.\nUtilization Rate — ratio of borrowed to total assets. High utilization = higher borrow rates. Each market targets an optimal utilization (kink point).\nVariable Rate — borrow rate that fluctuates with utilization. All borrowers in a market pay the same variable rate.\nLiquidation — when a user's borrow exceeds their collateral factor threshold, liquidators can repay the debt and seize discounted collateral. Liquidation incentive is currently 10%.\nLOAN Token — governance/reward token. Suppliers and borrowers earn LOAN rewards proportional to their position."
      },
      {
        "title": "Available Markets",
        "body": "14 active markets including: XUSDC, XBTC, XETH, XPR, XMT, XDOGE, XLTC, XXRP, XSOL, XXLM, XADA, XHBAR, XUSDT, XMD."
      },
      {
        "title": "Read-Only Tools (safe, no signing)",
        "body": "loan_list_markets — list all lending markets with utilization, reserves, interest models, and collateral factors\nloan_get_market — get detailed info for a specific market by L-token symbol (e.g. \"LBTC\")\nloan_get_user_positions — get a user's supply (L-token shares) and borrow positions across all markets\nloan_get_user_rewards — get a user's unclaimed LOAN rewards per market\nloan_get_config — get global lending config (oracle, close factor, liquidation incentive)\nloan_get_market_apy — get historical deposit/borrow APY including LOAN rewards (7d, 30d, 90d) from Metal X API\nloan_get_market_tvl — get historical TVL (total value locked) in USD with utilization ratio (7d, 30d, 90d)"
      },
      {
        "title": "Write Tools (require confirmed: true)",
        "body": "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.\n\nloan_enter_markets — enter markets to enable lending/borrowing (must do this first)\nloan_exit_markets — exit markets (only if no outstanding positions)\nloan_supply — supply underlying tokens to earn interest (transfers to lending.loan with \"mint\" memo)\nloan_borrow — borrow underlying tokens against deposited collateral\nloan_repay — repay variable or stable borrows (transfers to lending.loan with \"repay\" memo)\nloan_redeem — redeem L-tokens for underlying tokens (burns deposited shares)\nloan_withdraw_collateral — withdraw L-tokens from collateral (reduces borrowing capacity)\nloan_claim_rewards — claim accrued LOAN token rewards"
      },
      {
        "title": "Typical User Flow",
        "body": "Enter markets — loan_enter_markets with the market symbols you want to use\nSupply — loan_supply underlying tokens (e.g. 1.0 XBTC) → auto-mints LBTC and deposits as collateral\nBorrow — loan_borrow against collateral (e.g. borrow 500 XUSDC using LBTC collateral)\nRepay — loan_repay when ready to pay back the loan\nRedeem — loan_redeem to withdraw your original tokens + earned interest\nClaim — loan_claim_rewards to claim any LOAN token rewards"
      },
      {
        "title": "Safety Rules",
        "body": "NEVER borrow close to the collateral factor limit — users will be liquidated\nAlways recommend borrowing at most 50-60% of the collateral factor to leave a safety buffer\nCheck utilization before redeeming — high utilization means less cash available for withdrawals\nSupply and repay use token transfers (to lending.loan with memo); borrow/redeem/withdraw use direct contract actions\nAll write tools require confirmed: true — present the details first and ask for confirmation"
      }
    ],
    "body": "LOAN Protocol (Metal X Lending)\n\nYou 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.\n\nIMPORTANT: LOAN Protocol is mainnet only. There is no testnet deployment. All lending tools operate on mainnet.\n\nKey Concepts\nL-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.\nCollateral 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.\nUtilization Rate — ratio of borrowed to total assets. High utilization = higher borrow rates. Each market targets an optimal utilization (kink point).\nVariable Rate — borrow rate that fluctuates with utilization. All borrowers in a market pay the same variable rate.\nLiquidation — when a user's borrow exceeds their collateral factor threshold, liquidators can repay the debt and seize discounted collateral. Liquidation incentive is currently 10%.\nLOAN Token — governance/reward token. Suppliers and borrowers earn LOAN rewards proportional to their position.\nAvailable Markets\n\n14 active markets including: XUSDC, XBTC, XETH, XPR, XMT, XDOGE, XLTC, XXRP, XSOL, XXLM, XADA, XHBAR, XUSDT, XMD.\n\nRead-Only Tools (safe, no signing)\nloan_list_markets — list all lending markets with utilization, reserves, interest models, and collateral factors\nloan_get_market — get detailed info for a specific market by L-token symbol (e.g. \"LBTC\")\nloan_get_user_positions — get a user's supply (L-token shares) and borrow positions across all markets\nloan_get_user_rewards — get a user's unclaimed LOAN rewards per market\nloan_get_config — get global lending config (oracle, close factor, liquidation incentive)\nloan_get_market_apy — get historical deposit/borrow APY including LOAN rewards (7d, 30d, 90d) from Metal X API\nloan_get_market_tvl — get historical TVL (total value locked) in USD with utilization ratio (7d, 30d, 90d)\nWrite Tools (require confirmed: true)\n\nAll 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.\n\nloan_enter_markets — enter markets to enable lending/borrowing (must do this first)\nloan_exit_markets — exit markets (only if no outstanding positions)\nloan_supply — supply underlying tokens to earn interest (transfers to lending.loan with \"mint\" memo)\nloan_borrow — borrow underlying tokens against deposited collateral\nloan_repay — repay variable or stable borrows (transfers to lending.loan with \"repay\" memo)\nloan_redeem — redeem L-tokens for underlying tokens (burns deposited shares)\nloan_withdraw_collateral — withdraw L-tokens from collateral (reduces borrowing capacity)\nloan_claim_rewards — claim accrued LOAN token rewards\nTypical User Flow\nEnter markets — loan_enter_markets with the market symbols you want to use\nSupply — loan_supply underlying tokens (e.g. 1.0 XBTC) → auto-mints LBTC and deposits as collateral\nBorrow — loan_borrow against collateral (e.g. borrow 500 XUSDC using LBTC collateral)\nRepay — loan_repay when ready to pay back the loan\nRedeem — loan_redeem to withdraw your original tokens + earned interest\nClaim — loan_claim_rewards to claim any LOAN token rewards\nSafety Rules\nNEVER borrow close to the collateral factor limit — users will be liquidated\nAlways recommend borrowing at most 50-60% of the collateral factor to leave a safety buffer\nCheck utilization before redeeming — high utilization means less cash available for withdrawals\nSupply and repay use token transfers (to lending.loan with memo); borrow/redeem/withdraw use direct contract actions\nAll write tools require confirmed: true — present the details first and ask for confirmation"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/paulgnz/xpr-lending",
    "publisherUrl": "https://clawhub.ai/paulgnz/xpr-lending",
    "owner": "paulgnz",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/xpr-lending",
    "downloadUrl": "https://openagent3.xyz/downloads/xpr-lending",
    "agentUrl": "https://openagent3.xyz/skills/xpr-lending/agent",
    "manifestUrl": "https://openagent3.xyz/skills/xpr-lending/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/xpr-lending/agent.md"
  }
}