M0 Extensions: Building Custom Stablecoins on $M
What Are $M Extensions?
$M Extensions are custom stablecoin implementations built by developers and organizations, leveraging the M0 Protocol's foundational $M token. They allow builders to create unique, branded (or unbranded), feature-rich digital dollars that inherit the security, stability, and interoperability of the underlying $M infrastructure, which is fully collateralized by short-term US Treasury bills.
Think of $M as the core, secure building block. Extensions wrap this $M block into a new, customized ERC-20 token tailored for specific applications, ecosystems, or user needs.
How Extensions Work
Extensions utilize a modular architecture built upon the M0 protocol:

-
Foundation ($M Token): The core $M token provides the secure, yield-bearing, and collateralized base value on Ethereum & Solana and its representation exists on connected Spoke chains.
-
Wrapping Contract (Your Extension): Developers deploy their own ERC-20 contract (often inheriting from
MExtension.sol
) on the desired chain(s). This contract:- Holds the underlying $M token (or its representation on a Spoke chain).
- Defines the unique logic, features (like compliance rules), and optional branding for the new stablecoin extension.
- Must implement standard
wrap(address recipient, uint256 amount)
andunwrap(address recipient, uint256 amount)
functions to manage conversion between $M and the extension token.
-
Customizable Yield Distribution: The extension contract, holding $M, is eligible to earn the underlying yield (if approved as an M0 Earner). The extension developer has full control over how this accrued yield is distributed - this includes complete flexibility on the yield destination and allocation strategy. For example, yield can be:
- Forwarded entirely to a specific partner, treasury, or entity
- Distributed fully to the extension token holders
- Split in any proportion between multiple destinations (e.g., 70% to token holders, 30% to protocol treasury)
- Used for ecosystem incentives, liquidity mining, or other tokenomic designs
This design allows Extensions to implement unique value propositions and business models while maintaining the security and stability of the underlying $M infrastructure.
-
Independent Features & Compliance: Implement bespoke logic directly within the extension for features like access controls, fee mechanisms, or specific compliance integrations.
Key Benefits
Building an $M Extension offers significant advantages:
- Full Control & Customization: Define your stablecoin's features, yield logic, compliance rules, and branding.
- Inherited Security & Stability: Leverage M0's battle-tested infrastructure, collateral management, and regulatory clarity.
- Shared Liquidity: Extensions can tap into the M0 ecosystem's liquidity network, where M lives.
- Faster Time-to-Market: Reduce development time and cost compared to building from scratch.
- Flexible Branding: Launch a fully branded stablecoin or an internal, unbranded token.
- Focus on Your Core Product: Let M0 handle the core stablecoin infrastructure.
Who Should Build Extensions?
$M Extensions are the recommended path for most projects building on or with M0, especially:
- Demand Sinks: Applications where users hold stablecoins (e.g., gaming, payments). Benefit: Full control over yield/UX.
- Ecosystem Plays: Blockchains or DeFi protocols needing a native stablecoin. Benefit: Branding, tailored features.
- Fintech & Enterprises: Businesses needing bespoke solutions with specific compliance/yield needs. Benefit: Customizability, clarity.
- Treasury Management Solutions: Platforms offering yield-bearing accounts backed by $M. Benefit: Control over yield flow.
Building Extensions vs. Integrations: Extensions involve deploying a custom wrapper contract. Integrations typically use the pre-existing Wrapped M ($wM) token, offering less control and mainly suited for market infrastructure (like some bridges/AMMs). M0 generally encourages application and ecosystem builders to use the Extension model.