MEL: trustless sound money

Despite using SYM for proof-of-stake consensus, Mel's native circulating currency is MEL. MEL is used extensively in the base-layer incentive design:

  • all transaction fees must be paid in MEL

  • block rewards are denominated in MEL

The most interesting feature of MEL is that it is probably the first ever cryptocurrency to have endogenous stability. This means that:

  • The way MEL is issued is entirely trustless and decentralized. Just like Bitcoin, no oracles, governance DAOs, or issuers are involved.

  • Nevertheless, MEL maintains a stable purchasing power.

Why endogenous stability?

Why do we want something like this in the first place?

First of all, volatile cryptocurrency prices actually do pose a serious problem. The value of a currency going up and down erratically makes it bad as money: it becomes less useful as a store of value or unit of account, and it greatly damages the ability to create interesting financial instruments. Nobody is going to sign a 30-year mortgage in Bitcoin without knowing whether Bitcoin will be worth 1, 1,000, or 1,000,000 apples 30 years in the future.

This also greatly impacts mechanism design and DeFi --- the ecosystem relies heavily on fiat-pegged stablecoins like USDC and Dai. But these stablecoins are not what we want: they inherently rely on exogenous trust, in oracles, central issuers, etc. Note that this is a problem even when the stablecoin aims to track a basket of commodities rather than fiat currency — we may lose centralized trust in the Fed, but not trust in oracles. Oracles supplying external information about the market are crucial for the feedback loop of any stablecoin backed by off-chain assets, and they rely heavily on preexisting trust in people or institutions, not endogenous trust guaranteed by protocol incentives.

Thus, we uses an oracle-free system that doesn’t try to peg MEL to any external asset. Instead, we define a new, trustlessly-measurable value unit, called the DOSC (day of sequential computation), which can be measured on-chain by an autonomous mechanism with full endogenous trust. This, and not dollars or gold, is what the core mechanism, called Melmint, then pegs MEL to.

How does Melmint work?

The one-sentence summary of Melmint’s job is to maintain peg 1 MEL to 1 DOSC.

The peg target: 1 DOSC

A “DOSC” is a “day of sequential computation”. It’s defined as the cost of running a sequential computation for 24 hours, using the fastest processor available. For example, a DOSC in the year 2000 is the cost of occupying the fastest single CPU core available in 2000 for 24 hours, while a DOSC in the year 2021 is the cost of doing the same with a 2021 processor.

The DOSC has two really cool properties that make it a great target for a peg:

  • It has a relatively stable purchasing power. Empirically, the “fastest processor” typically costs about the same, despite its performance drastically increasing over time. We explore this further in our DOSC analysis data.

  • More importantly, it’s trustlessly measurable through a “sequential proof of work”. A hash-based sequential proof of work, like the one invented by Cohen and Pietrzak, produces a succinct proof that starting from some seed x, a large amount of sequentially nested hashes H(H(H(H(...H(x))))) have been computed. By using a cleverly incentivized on-chain benchmark, we can then measure how fast the fastest processor is. This gets us a way of showing on-chain that we’ve wasted a day’s worth of sequential computation, letting us measure the DOSC with strong endogenous trust. The DOSC’s trustless measurability is the key to Melmint’s oracle-free mechanism.

How is this peg maintained?

There are two main steps to actually pegging the MEL to DOSC: erg-minting and the central mechanism, summarized in the following picture:

The central mechanism uses Melswap, a built-in, Uniswap-like decentralized exchange that supports all Mel-based tokens. Its objective is to peg 1 MEL to 1 DOSC worth of SYM, using a feedback loop that prints MEL and buys SYM or vice-versa. Recall that SYM is Mel's separate, proof-of-stake token. First, we read two exchange rates off of Melswap:

We now take a look at each individual step in this process:

Step 1: Minting erg

Proving work

Creating ergs

Selling the ergs

Because of the astronomical inflation rate, ergs are not very useful as money. Instead, minters would almost always want to sell their ergs soon for a more value-stable asset.

Mel conveniently comes with a built-in decentralized exchange, called Melswap, where any Mel-based token (including custom tokens) can be exchanged for any other. This, of course, includes ergs. Minters can easily take their ergs and exchange them for other tokens, most likely the two main Mel tokens Sym and Mel.

In particular, the SYM/erg market is "special" --- it is crucial for driving Melmint's core pegging mechanism, and in fact it's subsidized by diverting half of all SYM block rewards to the SYM/erg Melswap pool.

Step 2: Core pegging mechanism

Inflation-backed MEL/SYM peg

For example, consider a Melswap market with the following exchange rates:

Thus, to support the peg, every block Melmint will print up some SYM to buy up MEL, until the peg holds.

What backs MEL?

Any stablecoin can easily hold a peg when the stablecoin is too expensive --- just print more. The true challenge is when the peg must be defended when the market price is below the peg. The stablecoin must in some way be "backed" by another asset, with an independent value, that it can be redeemed for at the pegged value.

In our case, MEL's value is backed by the value that can be extracted by inflating sym. We call this value the implicit reserve of Melmint. Because inflating SYM is essentially a tax on all holders of SYM, the implicit reserve is very roughly the market capitalization of SYM. We can therefore say that SYM backs MEL.

Thus, to be stable in a worst-case scenario where everybody wants to sell their mels, the MEL marketcap must stay below the SYM marketcap. Fortunately, as the original Melmint paper shows that's likely to be the case in any reasonable economic conditions.

Failure scenarios

Drastic changes in DOSC purchasing power

Because Melmint pegs 1 MEL to 1 DOSC, if the value of a DOSC drastically changes, MEL will lose its stable purchasing power. Historically, this has not really happened, and due to the definition of a DOSC in terms of time rather than amount of computation, usual technological improvements will not cause shocks to the value of a DOSC. Instead, an external shock must greatly affect how expensive is running the fastest processor available. Here are some hypothetical scenarios where the value of a DOSC will drastically change:

Sudden increases in DOSC value:

  • Massive energy crisis makes electricity 10x more expensive than before.

  • Somebody finds a way to build an extremely expensive, energy-inefficient machine that does sequential computation 10x faster than top-end machines, at 100x the daily cost.

Sudden decreases in DOSC value:

  • Breakthrough in energy generation makes electricity nearly free

  • Breakthrough in processor design leads to the domination of extremely high core-count machines where the per-core operational cost is drastically lower, yet sequential speed is comparable to current processors

    • "GPU except every core is a fully general-purpose CPU"

Sudden decrease in Mel market sentiment

For a variety of reasons (say, a general cryptocurrency crash), there might be extremely rare scenarios where a large amount of SYM or MEL is simultaneously panic-sold. This threatens the basis of the Melmint peg by reducing both MEL demand and its implicit reserve, and in a case where MEL issuance cannot be backed by the implicit reserve, the peg may no longer be tenable.

The danger here is hyperinflation of SYM and subsequent mechanism collapse, as Melmint desperately prints SYM to buy and prop up the value of MEL, until both SYM and MEL are utterly worthless. Fortunately, this is inherently prevented by the way Melmint works --- per the Melmint specification, the amount of assets printed to support the peg is proportional to existing liquidity in the SYM/MEL market. This means that "how fast" Melmint reacts depends on market conditions. In a panic where market participants anticipate a possible Melmint-driven SYM hyperinflation that will cause both MEL and SYM to become worthless, liquidity will quickly drain from the MEL/SYM market as both MEL and SYM are dumped for alternative assets, making the prophecy self-refuting.

Without MEL/SYM liquidity on Melswap, Melmint is effectively turned off. The peg will fail, massively increasing MEL volatility, but a wholesale monetary collapse will be averted. This is especially because unlike users of USD stablecoins, MEL users never expected zero exchange-rate risk and are unlikely to completely dump MEL due to a temporary pause of the peg. The economic impact of such a depeg is likely to be around the same order of magnitude as a fiat "currency crisis" --- bad but not catastrophic.

Once sufficient liquidity returns to the Melswap MEL/SYM market, the peg will gradually be restored.

Last updated