The Speculative AMM's volatility pricing model adopts two conditions:
1.
appreciation of the token
2.
risk-free interest rate.
Thus, in theory, a deflation token over the Ethereum network can assume that neither of these two conditions will change.
Therefore, the sAMM can simplify the volatility pricing model by averaging the volatility effect. To achieve a deflationary sAMM model, the formula changes to:
PtCt=NtStAt(r−μP1−α)α1
And the average μ of the volatility as the following:
(r−μP1−α)α1⟹K1
The value of
K
should be reasonably maintained as a constant, say
K=1
. Thus, the deflationary sAMM pricing model becomes:
K=PtCtNtStAt=1
Price Tick
The sAMM utilities the above formula's inverse function to represent the order's quantity at price
Pt
. For example, to stake amount
Ma
of DEXG tokens and
Mb
collateral tokens to the exchange Pool at time
(t+1)
, the price of the deflation token can be determined as:
Pt+1−1=Nt+MbCt+Ma
In the example, collateral tokens are required prior to pooling DEXG tokens. The Speculative AMM can use this model to reduce price volatility and ensure a stabilized exchange rate. Thus, the DEXToken Protocol can use the Token Swap mechanism to exchange tokens. More details about the token swap function can be viewed in the DEXToken Protocol Whitepaper.
The underlying algorithmic implementation of the smart contract can be found at the early staging commit algo-1 on Github.