Dutch-VAMM
Last updated
Last updated
To achieve efficient price discovery, the price of YT will initially open at a higher level and then decrease at a certain rate until someone is willing to trade at that price. This is very similar to a Dutch auction. The bonding curve of pricing is given by:
Where :
is the initial price of YT;
is the time elapsed in the current epoch, measured in days.
When a user buys YT, the price will experience a jump due to changes in the supply and demand dynamics. This is different from a standard Dutch auction. So the price decline appears as shown in the following chart.
We draw inspiration from Uniswap's classic AMM mechanism to facilitate the purchase of YT. In our contract, we have virtually created a trading pair of YT and underlying assets, but only allow one-way purchasing of YT.
In a standard AMM, the relationship is
Where:
Therefore, we can use the above formula to calculate how many YT (m) can be purchased with '𝑛' units of the underlying asset.
Then we can get
Where
Therefore, the final formula for calculating ‘𝑚’ is:
is the number of YT;
is the number of underlying assets which is virtually generated by the contract.
is a constant
However, because we have incorporated a Dutch auction-style Bonding Curve, in our VAMM is not constant but instead continuously decays over time.
is the constant at the beginning;
is the time elapsed in the current epoch, measured in days.