Programmatic trading rules are the core of decentralized exchanges
DeFi representative
Decentralized Exchange (DEX)
DeFi has been popular for more than half a year,
In the field of DeFi,
The most successful product may be the decentralized exchange (DEX) represented by Uniswap.
Of course, there is also a wave of decentralized exchanges in 2017.
However, most of the two years from 2018 to 2019 ended hastily due to poor management.
So why can decentralized exchanges like Uniswap rise?
One of the most important reasons,
They all introduce the automatic market maker model,
So what is an automated market maker?
Principle of Implementation
Centralized Exchange (CEX)
People familiar with the matter: Binance has been contacted by DOJ and regulators for information on the inner workings of FTX: Nov. 11, according to a person familiar with the matter, U.S. authorities, including the DOJ, have contacted Binance to learn about the Ann's recent talks with FTX about a potential acquisition. Binance received letters from U.S. financial regulators, as well as European regulators, asking Binance executives to reveal what they learned about the inner workings of FTX this week, the person said. Binance’s due diligence team quickly discovered that FTX’s relationship with trading firm Alameda Research was a conflict of interest, and that FTX’s client funds appeared to be being used for commercial purposes.
Additionally, FTX US General Counsel Ryne Miller directed employees on Wednesday to save emails, messages, notes and documents they generate while working for FTX, FTX US, Alameda and its affiliates. (CoinDesk) [2022/11/11 12:47:03]
Before we start introducing AMM,
Let's first take a look at how we usually achieve transactions in the exchange?
The Economist Intelligence Unit: Lack of crypto-related knowledge and understanding is the biggest barrier to cryptocurrency adoption: According to a survey report by the Economist Intelligence Unit (EIU) commissioned by Crypto.com, when compared with Bitcoin (BTC) Among the many complications associated with cryptocurrencies such as cryptocurrencies, lack of knowledge and understanding of cryptography is the biggest obstacle to the widespread adoption of cryptocurrencies. According to the survey results, 51 percent of respondents said that lack of knowledge is the main barrier to the adoption of open-source cryptocurrencies such as Bitcoin and Ethereum, while 34 percent cited security concerns as the main obstacle, and 29 percent cited Interviewees expressed difficulty knowing where to buy cryptocurrencies. In terms of the acceptance of cryptocurrencies by institutional investors and corporate balance sheets, 47% of respondents said that the market's overall trust or understanding of digital currencies is the biggest obstacle to the adoption of cryptocurrencies. Some 32% of respondents said cryptocurrency regulation was the main barrier to wider institutional acceptance, while 43% and 36% said financial market structure and asset volatility were the top barriers. The survey also noted that 55 percent of respondents are aware of cryptocurrencies despite never owning or using one. (Cointelegraph)[2021/5/27 22:49:54]
Dynamics | WTZex exchange responded to the so-called "Tuan Zhang was arrested": Cooperating with fan investigations is just a normal way to understand the situation: According to block rhythm news, on November 9, the staff of WTZex exchange responded to the so-called "Tuan Zhang" in the community. "Being arrested": "Today, the head of the delegation assisted a fan to cooperate with the investigation after participating in the Chengdu event. He just understood the situation normally. Some people outside deliberately spread rumors. I hope that the rumors will stop with the wise and stop spreading rumors." WTZex exchange is an exchange founded by Mr. Wang, a blockchain self-media person, in 2019. It is known as the world's largest membership-based exchange. According to spectators who participated in a mining event in Chengdu on November 9, Head Wang, who also participated in the event, was taken away by suspected plainclothes police after the event. [2019/11/10]
For example, I want to buy and sell WDC on an exchange,
I have two ways,
One is the market price transaction,
Directly set the quantity of WDC to buy/sell,
The exchange will match for me according to the market price,
Montana Delays Bitcoin Mining Ban Admits 'Not Knowing Enough': A County in Montana Delays Vote on a Year-Long Bitcoin Mining Ban, Says It Doesn't Know Enough About Cryptocurrency Mining Make an informed decision. “We all understand that we don’t understand,” Missoula County Commissioner Jean Curtiss said. "We don't know the future or long-term impact." [2018/6/17]
Match a sell order for a buyer,
Match a buy order for the seller;
There is also a limit order,
The exchange will buy or sell according to the price and quantity I set,
If there has been no matching order,
Then your pending order will always be pending,
Unable to close the transaction, waiting for the transaction.
1. Centralized exchanges adopt the order book model
2. If there is no order with a suitable price, it will not be executed
AMM
Decentralized Exchange Core
AMMs fundamentally change the way users trade cryptocurrencies,
Different from the traditional order book trading mode,
AMM transaction parties,
They are all interacting with the liquidity asset pool on the chain.
Liquidity pools allow users to
Seamlessly switch between tokens on the chain in a non-custodial and non-custodial manner.
And Liquidity Providers,
Earn passive income through transaction fees,
Whereas transaction fees are based on the percentage of their contribution to the asset pool.
More importantly,
Your assets are still in your personally controlled wallet,
Instead of entering the trading platform,
So the assets are still 100% safe,
This is impossible in any case with traditional CEX.
Since 2017,
There are mainly three primary designs of constant function market makers in the market:
The first type to appear is the Constant Product Market Maker (CPMM),
It is popularized in Bancor and Uniswap.
CPMM is based on the function x*y=k,
This function determines the price range for two tokens based on the available quantity (liquidity) of each token.
When the supply of token X increases,
Y's token supply must decrease, and vice versa,
To keep the product K constant.
When plotting this function,
The result is a hyperbola,
Liquidity is always available,
But the price will get higher and higher, approaching infinity at both ends.
The second type is Constant Sum Market Maker (CSMM),
It is ideal for zero-slip transactions,
But it cannot provide unlimited liquidity.
Constant Sum Market Maker (CSMM) follows the formula x+y=k,
When drawing it, a straight line is created.
Unfortunately,
If the off-chain reference price between tokens is not 1:1,
This design then allows arbitrageurs to deplete one of the reserve assets.
This situation will destroy one side of the liquidity pool,
forcing liquidity providers to suffer losses,
And make traders no longer have liquidity.
Therefore,
Not a common AMM model.
The third type is Constant Mean Market Maker (CMMM),
It allows the creation of more than two tokens,
and weighted AMMs outside the standard 50/50 distribution.
In this model,
The weighted geometric mean of each reserve asset remains unchanged.
For a liquidity pool with three assets,
Its formula is as follows: (x*y*z)^(⅓)=k.
With the development of AMM technology,
We see the emergence of advanced mixed constant function market makers CFMM,
It combines various functions and parameters,
To achieve specific behavior,
Such as adjusting the risk exposure of liquidity providers,
Or reduce price slippage for traders.
Author: Free
Responsible editor: Wozxd
Tags:
Social tokens have shown signs of rapid development in recent months. The overall market value of social tokens has exceeded 200 million US dollars.
Golden Finance Blockchain, October 12th. Nowadays.
The cross-chain project Cosmos development company Tendermint issued an official announcement that it will entrust and pledge about 19 million ATOM tokens to 70 verification nodes to reward these active-zce contributors t.
Programmatic trading rules are the core of decentralized exchanges DeFi representative Decentralized Exchange (DEX)DeFi has been popular for more than half a year, In the field of DeFi.
In the past few months, dozens of projects have been released, and a large amount of funds have poured in, and the DeFi field has reached new heights. The vast majority of DeFi applications are built on Ethereum.
Polkadot has made rapid progress recently, and the popularity is also high, and the limelight is the same for a while. But Rome was not built in a day.
One day in the currency circle, one year in the world, is by no means empty talk. Just like recently, you may have just read DeFi.