Unlike other liquidity pool models such as Uniswap and Balancer, mStable employs a straight line bonding curve between bASSETS, meaning that anyone can trade these underlying stablecoins at a 1:1 ratio.
These swaps incur no price slippage, and so long as they do not breach weight requirements, can be for any quantity. mStable charges a fixed swap fee in exchange for this. In our mUSD basket, for example, users will be able to swap between these underlying stablecoins.
mStable pools stablecoins and tokenized assets of similar value. For example, mUSD will pool USD stablecoins, mBTC will pool tokenized BTC and so on. This has important implications, one being: any deviation from the peg is highly likely to be impermanent.
Take USD stablecoins as an example. Say we allow 4 USD stablecoins in the basket. These stablecoins will constantly move slightly from their $1.00 peg, but over time they are very likely to trade around $1.00. For any given time period, each stablecoin will will look something like this:
So far, 100% of the peg deviations of the major USD stablecoins have been impermanent. Since losses are only impermanent, we can allow our bonding curve to be constant, namely:
Therefore, the USD stablecoins can be exchanged 1 for 1, a constant bonding curve. The slope is constant, meaning price is independent of supplies of coin x and coin y.
Apart from a trading fee, there is zero slippage trading stablecoins and tokenized assets on mStable. Price remains the same independently of assets in the basket.
Since assets are interchangeable, mStable allows minting and redemption of any coin instead of the exact basket (as long as max weights are not breached).
swapfunction can be used to arbitrage between bASSETS when a spread exists. This will occur when:
When the price differential is greater than the swap fee plus its gas cost.
There is excess room in the system between a bASSET and its max weights to allow mStable to take on more of that undervalued asset.
This persistent arbitrage implies that the price of the mASSET will track the value of the lowest price underlying assets at their maximum weights. We do not judge this to be an issue, as we believe impermanent losses between stablecoins are an inherent and normal part of the DeFi ecosystem. In fact, it is a core pillar of mStable SAVE product, which is in part built to compensate liquidity providers for thier exposure to impermanent loss.
mStable should positively contribute to the efficiency of stablecoin markets, whilst simultaneously allowing arbitrageurs and the platform to profit from normal and safe oscillations in stablecoin prices.
Allowing users to swap bASSETS at 1:1 introduces risks into the system that must be managed. As a result of this, the system has been built so that no individual bASSET can exceed a maximum weight for any given bASSET (35%, of total, for example). If an underlying bASSET has hit its maximum weight, the rules within the system change, so that minting, redemption and swap rules are altered.
Swaps that would push a bASSET above its max weight are not allowed. Swaps that do not affect the bASSET at maximum weight are unaffected.
Minting and redemption activity that would push a bASSET above its max weight are not allowed. Importantly, those wishing to redeem mASSETS at these times must redeem the basket at its underlying weights; this is presented as "multi redemption". Read more in the Forging section.
Swap fees are a flat fee, charged in the asset received by a user. These fees will be set by Governors.