From Selling Apples to a Liquidity Market
You have an apple tree in your backyard and you recently harvested 100 apples from it. Now you want to set up a stand to sell them. The simplest and most obvious idea is to sell all of them at a constant price, say $1 for an apple.
You soon discover that the market is better than you expected and so many people in the neighborhood are coming to buy your apples that you have fewer and fewer apples in your inventory. That’s when you realize that the price may have been set too low. You figure that the more apples you sell, the stronger the demand for apples is, so you should sell them at a higher price to make a larger profit overall. As the number of apples sold goes up, so does the price.
This relationship is captured by the following pricing curve (it’s a curve because it’s not a straight line anymore). The yellow area above the dotted line represents the extra profit you will make by using this new pricing model.
Some of your customers ask you if they can return an apple after they’ve bought it if they don’t want it anymore (let us assume that your apples never go bad).
This refund/buyback policy means that the market for your apples is now two-way: people can buy and sell apples. Congratulations! You’ve just created a market where apples have great liquidity, since apples can now be bought and sold instantly near their fair market value. The apple price will fluctuate as people continue to trade apples.
But why is it good to have high liquidity? Because a highly liquid market is efficient and usually associated with less risk.
So what do you need to create such a liquidity market for your apples? The answer is extremely simple:
- A pricing curve
That’s exactly what the DODO Vending Machine model does.
After reading this, you will definitely ask, what specific use cases are there for DODO vending machine?
Suppose you are a blockchain developer and want to build a community-driven project. You can issue 10 million tokens, of which 1% or 100 thousand is for yourself. The rest (i.e. 9.9 million tokens) is distributed to the community and let’s say you set the token price to $1. If you want to create a liquidity market for all 9.9 million tokens on an AMM, you need another $9.9 million as the bid-side liquidity to do it, which is obviously a huge amount of money that you probably don’t have, and therefore this project becomes infeasible.
Your alternative is to create a simple AMM pool with much fewer tokens and less liquidity in it, say $1,000 and 1,000 tokens, but if someone wants to invest $100,000 in your project token, he will have to pay $100,000 and receive only 1,000 tokens in return, which amounts to $100 per token, 100x the market price you set! This is, of course, not desirable, and this market is definitely not an efficient market.
However, you can choose to build a DODO Vending Machine with these 9.9 million tokens at an initial price of $1 and with k value set to 1 (which means the pricing curve is a bonding curve, as discussed above). If a community member is bullish on your project and buys 100,000 tokens, his average price is only $1.005 per token! Much more desirable.
You are a project team with a need to maintain and manage the price of your token. DODO Vending Machine can help you buy and set up liquidity in a flexible manner to achieve your objectives.
Let us use an algorithmic stablecoin that is meant to be pegged to 1 DAI as an example. Call the token X. If X’s token price dips below 1 DAI, then you, the project team, need to raise bid-side liquidity as soon as possible to counter the selling pressure to avoid the death spiral, a vicious cycle where tokens are dumped continuously as the price decreases. If the dumping can be stopped at 1 X = 0.9 DAI, then you will instill confidence in your project’s investors and users, convincing them that you can be trusted to maintain the peg. Conversely, if the dumping stopped at 1 X =0.5 DAI, the consequences could be catastrophic — the lack of liquidity might have already triggered an irreversible death spiral.
So here’s what you can do. You can use DODO Vending Machine to set up a DAI-X pool, set the initial price to 1 X = 1 DAI, and set k to a very small value, say 0.01. In addition, you incentivize liquidity providers to deposit their LP tokens into this pool with rewards in X. This way, you can ensure ample bid-side liquidity that is allocated near 1 X = 1 DAI, which is much more capital-efficient funding than traditional AMMs.
Even if it’s not an algorithmic stablecoin project, you can still raise funds for your token at key support price levels with DODO Vending Machine, coupled with reward incentive program to encourage liquidity provision.
You can use the DODO Vending Machine model to control the magnitude of your token’s pumps in order to discourage speculative trading and the formation of a speculative bubble.
For most people who are new to the cryptocurrency world, this need may be a bit baffling and difficult to understand. In fact, it is not good for the price to go up too high in a project’s very early stages. An asset’s price being driven up to unsubstantiated levels often indicates a bubble, which will lead to many people eventually being dumped on by whales and speculators.
The most effective way to curb speculation is to provide enough liquidity at low prices to keep the average token price low for most people. This is exactly the kind of flexibility DODO Vending Machine can provide. To minimize speculation, set i at a low price and k to a small value.
DODO vending machine also uses the PMM algorithm. There may be a question, doesn't PMM adjust prices in real time based on oracle? There is no external price for the long tail tokens in the pool.
Here we will introduce PMM ：A compressed order book. DODO vending machine uses the PMM algorithm to arrange a selling liquidity with a price ranging from i to ∞. Here i no longer represents the external price, but represents the starting price. The specific pricing formula is as follows:
B0 in the above formula is the number of tokens initially recharged, and B is the current token inventory.
It can be seen from the formula that the pool is an one side PMM algorithm (the current token amount B is less than the initial token amount B0), so it has the following properties:
- In the beginning, there is no quote, only need the project's base tokens to start, and the amount is unlimited.
- Starting price i
- As base tokens are sold, the balance in the contract decreases and the price increases
- The quote token is used as buying liquidity, and the consumed selling liquidity will be "flipped" into buying liquidity, so buying liquidity can always support selling pressure
- The price curve is adjustable, the smaller k, the slower price changes, the larger k, the faster price changes. When k=0, it is a constant price, when k=1, it is a bonding curve
ps: DODO vending machine allows anyone to deposit and withdraw freely, but it must be based on the current ratio of base and quote. For example, if the current price is 2$, there are 100w base and 10w quote, the ration will be base:quote = 10:1. This design is to make the deposit and withdrawal do not affecting the price. Note that the current price does not affect the deposit and withdrawal ratio, only the inventory affects.
The money and apples placed in the pool provide liquidity for market. And this money and apples have opportunity costs. Therefore, we will charge liquidity providers fee to all those who trade apples.
Of course, you can manage your assets in the pool. Deposit and withdraw apples and money in a proportions. If someone else is willing to join, they can also deposit or withdraw the two assets in a proportions. This will neither affect your assets nor market prices.