π¦ ClawHub
xpr-xmd
by @paulgnz
Interact with Metal Dollar (XMD) stablecoin to mint, redeem, check supply, collateral reserves, and oracle prices with zero fees and multi-collateral support.
TERMINAL
clawhub install xmdπ About This Skill
name: xmd description: Metal Dollar (XMD) stablecoin β mint, redeem, supply analytics, collateral reserves, oracle prices
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
xmd.treasury with memo mint β receive equivalent XMD at oracle pricexmd.treasury with memo redeem,SYMBOL (e.g. redeem,XUSDC) β receive equivalent stablecoin backSupported Collateral
| Token | Contract | Oracle Feed | Max Treasury % | Status | |-------|----------|-------------|----------------|--------| | XUSDC | xtokens | USDC/USD | 60% | Mint + Redeem | | XPAX | xtokens | PAX/USD | 15% | Mint + Redeem | | XPYUSD | xtokens | PYUSD/USD | 15% | Mint + Redeem | | MPD | mpd.token | MPD/USD | 2% | Mint + Redeem |
Contracts
xmd.token β XMD token contract (precision 6, issuer = xmd.treasury)xmd.treasury β Mint/redeem logic, collateral management, oracle integrationoracles β On-chain price feeds from multiple providersRead-Only Tools (safe, no signing)
xmd_get_config β treasury config: paused state, fee account, minimum oracle price thresholdxmd_list_collateral β all supported collateral tokens with fees, limits, oracle prices, mint/redeem volumesxmd_get_supply β XMD total circulating supplyxmd_get_balance β check any account's XMD balancexmd_get_treasury_reserves β current stablecoin reserves backing XMD, with USD valuations and collateralization ratioxmd_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 stablecoinxmd_redeem β redeem XMD for a supported stablecoinSafety Rules
minOraclePrice) for mint/redeem to proceedmaxTreasuryPercent cap β if the treasury already holds too much of one stablecoin, minting with it is blockedisMintEnabled / isRedeemEnabled before attempting operationsisPaused) β check config first1.000000 XMD)