Terra Classic Market Module 2.0: A Secure On-Chain Swap Engine for LUNC and USTC
Community Context
n early 2025, respected contributors Vegas and StrathCole began drafting a governance proposal to reintroduce a strategic piece of on-chain infrastructure: the Market Module.
Their goal?
To provide a controlled, community-managed swap system between LUNC and a stablecoin (USTC or the more secure, collateralized EUTC) โ without going back to the flaws of the pre-crash algorithmic model.
The new version, called Market Module 2.0, builds on previous Terra code, follows Cosmos SDK principles, and is now adapted for the current economic and governance environment of Terra Classic.
What Is the Market Module 2.0?
The Market Module 2.0 is a custom module developed specifically for Terra, written using Cosmos SDK architecture. It allows on-chain swaps between LUNC and a stablecoin under strict, community-defined rules.
It is not part of the standard Cosmos SDK like modules bank, gov, or staking. Instead, it is a specialized component integrated into the Terra Classic blockchain at the L1 level.
๐ก Think of it as a governed swap engine embedded into the chain itself โ not an external DEX, and certainly not an automatic mint-burn loop.
How Does It Work?
| Component | Role |
|---|---|
| Reserve | Holds a fixed pool of LUNC and stablecoins (e.g., USTC, EUTC) |
| Oracle | Provides the reference price for swaps (e.g., 1 USTC = 10,000 LUNC) |
| Swap Engine | Executes conversions between LUNC and stablecoin |
| Tobin Tax | Applies a fee for swaps deviating from the oracle price |
| Daily Cap | Limits the total volume of swaps per day to prevent manipulation |
| Governance | Manages all parameters: limits, fees, reserve size, etc. |
It is not permissionless: it only operates within the limits of its reserves and the parameters set by the community.
Technical Note
The Market Module 2.0 is not part of the vanilla Cosmos SDK. It was custom-built for Terra and resides in the x/market directory of Terra Classicโs L1 codebase.
While it follows Cosmos SDK patterns and integrates with other modules (keepers, messages, etc.), it is specific to Terra Classic and maintained independently by the community.
Key Improvements Over 2022โs Crash Model
| 2022 Algorithmic System | Market Module 2.0 |
|---|---|
| Unlimited mint/burn | Fixed, limited reserve pool |
| Peg at all costs | Oracle-based pricing with swap penalties |
| No daily limits | Volume caps per day |
| Zero governance control | All parameters set via on-chain governance |
| Reactive and dangerous behavior | Transparent and predictable design |
Why Is This Module Important?
The Market Module 2.0 is a key milestone for restoring on-chain utility in the Terra Classic ecosystem โ without repeating past mistakes.
Benefits:
- Enables direct swaps between LUNC and stablecoins
- Avoids infinite mint/burn logic
- Community governance ensures responsible behavior
- Unlocks real use cases like payments, NFTs, DAO tools, DeFi apps
- Can support repeg strategies for USTC or collateralized approaches like EUTC
Whatโs Next?
- โ๏ธ Finalization of the proposal by Vegas & StrathCole
- ๐งช Deployment on testnet for review
- ๐ณ๏ธ Community on-chain vote to activate it
- ๐ฐ Reserve funding (via Community Pool or other revenue sources like Tobin Tax)
If adopted, the community will gain a flexible, secure, and transparent monetary mechanism โ no longer dependent on DEXs or inflationary gimmicks.
Further Reading
- Goblins Forum: Official Proposal Draft
- Terra Classic GitHub (classic-terra/core)
- Cosmos SDK Reference Docs
Related Articles
- What Is the EUTC Plan? Repegging a Terra Classic Stablecoin
- Understanding the Tobin Tax on Terra Classic
- How Community Governance Works on Terra Classic

