Swap formula
Similar to other AMMs, Möbius Exchange’s swap mechanism is designed to encourage trades that move the system towards equilibrium and discourage trades that move it away from equilibrium. The difference lies in the fact that Möbius Exchange's equilibrium is defined as the coverage ratios of all assets are equal.
Without loss of generality, assume token A has a higher coverage ratio than token B, . If a trader exchanges token B for token A, this action increases the under-covered and decreases the over-covered , hence bringing the pool closer to equilibrium. The pool would therefore offer a favorable rate in incentivize trades in this direction.
Conversely, if a trader exchanges token A for token B, this action further increases the over-covered and further decreases the under-covered , hence further diverging the pool from the equilibrium. The pool would therefore offer a worse rate to penalize the trades in this direction.
This dynamic rate can be expressed mathematically in terms of coverage ratios.
Recall from the previous section, the penalty function is defined as,
As the trader swaps token A to token B, amount of token A in the pool would increase while amount of token B would decrease. The coverage ratio of A increases from to while B decreases from to .
The swap rate is given by
Definition - 4.1
To evaluate the integral of −p(s) over the interval , we define the function
Since F(r) is a monotonically decreasing function, it attains its minimum at r=1. This boundary condition F(1)=0 follows naturally from the definition of the integral, as the integral over an interval of zero width vanishes. The closed-form solution for F(r) is derived as follows:
Formula - 4.2
As the system would penalize the action for reducing token B's coverage ratio, while at the same time, reward it for increasing token A's coverage ratio. The value of ensures that only when increasing the coverage ratio of an under-covered asset would be rewarded, and further amount that increases the over-covered asset would not be rewarded as for . Similarly, decreasing an under-covered asset will be penalized, while decreasing an over-covered asset would not be penalized.
Scenario 1: Coverage Ratios within normal range
Under normal market conditions, when both coverage ratios of the two assets to be traded remain above 80% (or a configurable threshold), the value of stays near zero. This ensures that swap rates remain stable and attractive for traders, preventing unnecessary slippage while optimizing liquidity efficiency.
Scenario 2: Extreme Coverage Ratios
In abnormal situations, such as when Token A's coverage ratio falls below 60% while Token B's rises to 150%. This implies that Token B is unwanted due to depegging or an increase in Token A's demand.
To safeguard Token A's solvency, the value of would become larger as begins to fall under 60%. Thus penalizing traders for further reducing Token A's coverage ratio. Conversely, the would be higher for trades from Token A to Token B as a reward for bringing the pool back from extreme to equilibrium coverage ratio.
Last updated