← 返回
效率工具 中文

xpr-xmd

Interact with Metal Dollar (XMD) stablecoin to mint, redeem, check supply, collateral reserves, and oracle prices with zero fees and multi-collateral support.
与 Metal Dollar (XMD) 稳定币交互,实现铸造、赎回、查询供应量、抵押品储备及预言机价格,零手续费并支持多抵押。
paulgnz
效率工具 clawhub v0.2.11 1 版本 99914.9 Key: 无需
★ 2
Stars
📥 1,134
下载
💾 19
安装
1
版本
#latest

概述

Metal Dollar (XMD)

You have tools to interact with XMD, XPR Network's native stablecoin. XMD is a multi-collateral stablecoin pegged to $1 USD, minted and redeemed through the xmd.treasury contract.

How XMD Works

  • Mint: Send a supported stablecoin (e.g. XUSDC) to xmd.treasury with memo mint → receive equivalent XMD at oracle price
  • Redeem: Send XMD to xmd.treasury with memo redeem,SYMBOL (e.g. redeem,XUSDC) → receive equivalent stablecoin back
  • 1:1 peg: Oracle-priced at $1, backed by stablecoin reserves in the treasury
  • Zero fees: Currently 0% mint and redemption fees on all collateral types

Supported Collateral

TokenContractOracle FeedMax Treasury %Status
------------------------------------------------------
XUSDCxtokensUSDC/USD60%Mint + Redeem
XPAXxtokensPAX/USD15%Mint + Redeem
XPYUSDxtokensPYUSD/USD15%Mint + Redeem
MPDmpd.tokenMPD/USD2%Mint + Redeem

Contracts

  • xmd.token — XMD token contract (precision 6, issuer = xmd.treasury)
  • xmd.treasury — Mint/redeem logic, collateral management, oracle integration
  • oracles — On-chain price feeds from multiple providers

Read-Only Tools (safe, no signing)

  • xmd_get_config — treasury config: paused state, fee account, minimum oracle price threshold
  • xmd_list_collateral — all supported collateral tokens with fees, limits, oracle prices, mint/redeem volumes
  • xmd_get_supply — XMD total circulating supply
  • xmd_get_balance — check any account's XMD balance
  • xmd_get_treasury_reserves — current stablecoin reserves backing XMD, with USD valuations and collateralization ratio
  • xmd_get_oracle_price — current oracle price for any collateral token (with individual provider data)

Write Tools (require confirmed: true)

  • xmd_mint — mint XMD by depositing a supported stablecoin
  • xmd_redeem — redeem XMD for a supported stablecoin

Safety Rules

  • Oracle price must be >= 0.995 (minOraclePrice) for mint/redeem to proceed
  • Each collateral has a maxTreasuryPercent cap — if the treasury already holds too much of one stablecoin, minting with it is blocked
  • Check isMintEnabled / isRedeemEnabled before attempting operations
  • The treasury can be paused by admins (isPaused) — check config first
  • XMD has precision 6 — all amounts use 6 decimal places (e.g. 1.000000 XMD)

版本历史

共 1 个版本

  • v0.2.11 当前
    2026-03-29 06:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 115,040
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 441 📥 148,474
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 448 📥 226,575