This time, Uniswap did not just release an aggregator platform and scheduling protocol, but released two complementary protocols, Permit2 and Universal Router. Written by: Shisijun For UniSwap, which has a daily trading volume of US$770 million and more than 4 million users, entering the NFT market also means the beginning of a new round of offense and defense. Many platforms are worried about whether the other party will throw out a good card like SudoSwap that is a king bomb at the beginning. However, the market data after three days of launch was disappointing. With the 500WUSDC airdrop and GAS discount, it only received 2% of the transaction share. For a while, mediocrity and unremarkability became synonymous with the Uniswap NFT market. Is that really the case? In fact, the current markets and contracts are not complete versions, and even many functions are not open. Please follow Shisijun. This article will start from the operation of the NFT trading market and the principle of aggregators, combined with Uniswap’s latest 1. Background1.1. What is an aggregator?Traditionally, aggregators are mainly used for data aggregation. They can collect data across various websites and then present the information in a platform in different categories to meet the needs of different users. Professional NFT aggregators need to collect all NFT transaction order information from different public chains and applications and integrate them into one platform. This provides users with a smooth trading experience and improves transaction efficiency. Therefore, the focus of the aggregator is:
So why is there a demand for aggregation in NFT purchases? Let’s first outline the operating model of the mainstream NFT market. 1.2. Mainstream trading market modelThe classification is based on the three core aspects of the transaction life cycle: how to publish, how to bid, and where to match transactions. Different implementations of these three aspects will lead to differences in their traffic sources, operating costs, and market audiences. The typical ones are:
The advantages of on-chain orders are: security, information disclosure, and decentralization, but the disadvantages are high costs and lack of traffic. The advantages of off-chain orders are: low cost and easy traffic aggregation, but the disadvantages are: centralization, trust cost and cancellation cost. The above is the model of a single NFT trading platform, and the aggregator is a tool that calls the system of the above single platform and completes the transaction. Currently, Uniswap has integrated the top 10 trading platforms: OpenSea, X2Y2, LooksRare, Sudoswap, Larva Labs, X2Y2, Foundation, NFT20 and NFTX. Currently, the third-party market model for off-chain orders is the mainstream (more than 90%), and its greatest competitiveness lies in traffic and user habits, which is closely related to the design of the contract system and is also combined with user cognitive habits. From the seller's perspective, they will place orders wherever there are buyers and where transactions are easy to complete, and buyers will naturally look for platforms with more seller orders to quickly complete transactions. However, although there is a giant OS, it is not the end of the competition. Although OS has a solid 80% of the transaction volume, it has always hoped to go the web2 listing route, so it has been slow to issue coins and share revenue with users. As a result, it has gradually been eroded by x2y2 and other aggregators this year. However, other platforms are trapped by their own small traffic, and most new users prefer large platforms, so they have mediocre development. 1.3. Working Principle of AggregatorThe aggregator is naturally a tool. It calls the trading system of other platforms rather than building its own trading protocol. Among the 9 platforms integrated by Uniswap, platforms like os and x2y2 all have open order pool systems. The purpose of this opening is to provide a system for programmatic order transactions, which is mostly used by robots. For a platform, a good platform is one that can complete transactions quickly. Opening an order pool is a mutually beneficial intention for ecological co-construction. The on-chain order system parses mainstream on-chain protocols such as sudoswap and nftx. How does aggregation replace third-party markets to complete orders? For example, as shown in the following figure The pre-process is
The execution flow is:
1.4 Why can aggregators save Gas?From the above process, the essence of the aggregator is to call the third-party contract, but it does not mean that the lower limit of the transaction is the third-party system, because the cost of an on-chain transaction is composed of three aspects:
Therefore, the part that can be saved is: the process of combining N transactions into 1 transaction, and the cost of N-1 transactions saved. Further reading: [Source code interpretation] What exactly is the NFT you bought? Combined with the following figure, the specific calculation of the efficiency
The transaction type and Gas table in the figure above (randomly selected, not statistical results) 1.5 What is the value of aggregators?The batch trading function catered to the demands of project hype, investors' rush to buy, and retail investors' easy-to-use tool competitions for a period of time, so it has good traffic and brings in order transactions. In fact, half of x2y2's orders come from aggregators. Compared with traditional trading markets, NFT aggregators have some obvious advantages, including:
On the whole, all kinds of users can benefit and be reached, including the project parties’ bulk buying and selling and market making, large investors’ bulk buying and selling, and retail investors’ observation of data information. Therefore, the aggregator is going further and further on the road of tool attributes, and the competition is becoming more and more fierce. It tests how to reduce the loss of 60,000 in the contract implementation, and how the tool platform can better present the data. However, the author believes that the main value and goal of Uniswap’s NFT market is not to make a good tool that is easy to use, but to realize a unified on-chain interaction protocol, which is aimed at how to achieve a smoother transaction process when the payment method is not ideal. 2. UniSwap’s NFT Exchange ProtocolDon’t be impatient, and don’t use the current low trading volume to fight back. The author is not endorsing the project or writing soft articles, but from its source code implementation, I can see that more functional points are reserved, not just the currently open functions. For UniSwap, which has a daily trading volume of over $770 million and more than 4 million users, there is no shortage of contract development capabilities or investment. The more important question is, what kind of NFT trading protocol do users need? This time, UniSwap did not just release an aggregator platform and scheduling protocol, but released two complementary protocols , Permit2 and Universal Router. 2.1. Permit2 - A new generation of efficient and secure authorization protocol2.1.1 Limitations of traditional authorization mechanisms Remember the x2y2 architecture diagram above? A new user wants to complete an NFT transaction. For such a simple request, the first thing he needs to do is to replace Weth and authorize the deduction of Weth and the corresponding NFT contract. The cost of one or two transactions is not only limited, but also involves the risk of unlimited deductions and theft. In the previous OS, the pending orders did not automatically expire, such as problems with the chain settings, which led to losses when users transferred high-net-value NFTs from cold wallets to low-priced transactions. 2.1.2. Withholding authorization is a common problem of ERC20 Although there is Eip-2612: "EIP-20 approval through EIP-712 secp256k1 signature" which has entered the final stage, from the perspective of the protocol, ERC20 is still a second-class token because users do not have the ability to interact with Ethereum without holding any ETH. The above picture shows how to use Eip-2612 to implement unauthorized deductions.
It is an improvement to the ERC20 standard that solves these shortcomings (additional approve expenses and unlimited withholding risk), but it can only be applied to new token contracts that integrate Eip-2612. 2.1.3、uniSwap’s Permit2 authorization optimization mechanism In order to solve the forward compatibility problem caused by the integration into the token contract layer based on Eip-2612 (that is, the old token cannot be used) permit2 is a design that is compatible with any token, which is equivalent to a unified authorization management contract.
Overall Although requiring users to authorize a license first seems like a step backwards. However, instead of granting it directly to a certain protocol, users grant it to a standard Permit2 contract (which can be unique to the public chain). Users only need to authorize once, and then they can skip all subsequent authorization operations for protocols and transactions with them, and use off-chain signatures instead. This means that users no longer need to initiate separate transactions to interact with various protocols. More scenario-specific capabilities can also be implemented here, such as automatic validity period of signature authorization, so there is no need to worry about the risks of long-term authorization, and batch approval (signatures for multiple deductions can be completed in one go, and batch cancellation of deduction authorization signatures can also be completed in one go). Automatic validity period is similar to: [Source code interpretation] How does Ethereum's new standard EIP-4907 realize NFT leasing? Once it is formed, or based on the popularity of Uniswap itself, a completely decentralized protocol that can only control authorization through user signatures will become a must-have for everyone (who would refuse something that is both safe and cheap?). So, what does this have to do with the launch of contracts for NFT trading markets? Yes, Permit2 has been integrated into the Universal Router released by Uniswap at the same time, which is the underlying protocol of the NFT market. The code has been integrated but the functions have not yet been opened (because the NFT version of Permit2 has not yet been released). Currently, the ERC20 version of Permit2 is only being tested on a small scale. 2.2. Universal Router - Unified FT and NFT Exchange ProtocolThe positioning of this protocol is: the next-generation router of Uniswap, which unifies the swap transactions of F and NFT into a highly flexible, gas-optimized, secure and scalable exchange router. This also means that the swap function used by subsequent 400W users by default will be executed by this protocol. Its application scenario is an aggregator, but it is not just an aggregator. Its target is a multi-asset swap protocol that can perform exchanges (such as Uniswap pools and NFT markets). 2.2.1. What is the value of the Universal Protocol? The value comes from the current complexity of executing NFT purchases.
In fact, the Seaport protocol, the culmination of OS, also realizes the exchange between any asset combinations (also, the web3 end website currently does not open all the protocol preset functions). The support of the full on-chain protocol layer can allow more applications to naturally integrate the direct exchange between on-chain FT and FT, FT and NFT combinations. Higher transaction efficiency will also open up more application scenarios (refer to the World of Warcraft trading system, the most basic point-to-point single commodity transaction will eventually be replaced by batch and mixed transactions). The ultimate value of multi-token payment is that users do not need to keep ETH as a handling fee. This will further reduce the transaction process. Of course, to fully achieve this, it probably depends on the future blueprint of the ERC-4337-based account system to be realized. Further reading: Ethereum Account Abstract 10,000-word research report: Disassembling 10 related EIP proposals and the seven-year journey to break the bottleneck of tens of millions of daily active users Of course, you cannot currently see the actual operation of such multi-token payments in on-chain transactions, because it has not been fully released (the NFT version of permit2 is still required) and is still in an optimization stage waiting for the vulnerability plan to be modified. 2.2.1. How much resources does approve occupy? Based on on-chain data statistics, as of block height 1597W, Ethereum has accumulated a total transaction volume of 1.757 billion. There are a total of 47.7 million transactions that executed the ERC20 approve function, with an average gas consumption of 84,699 per transaction and a historical average gasPrice of 73Gwei. Finally, converted into ETH, the cumulative consumption was SummarizeAlthough this article seems soft, and even in the case of significant on-chain data (insufficient transaction volume), it is still analyzing the pros and cons of such a transaction protocol. In the final analysis, the author is more optimistic about such a non-upgradeable ownerless protocol, which is completely open to code and SDK, and any application and protocol can be integrated. Similarly, although the Seaport protocol of os requires the coordination of a huge off-chain centralized system to operate, such a highly optimized, fully functional multi-order system is completely open to the outside world, providing a giant's shoulder for countless dapps (such as gamefi) that need to build their own internal trading platforms, and the world of web3 can gradually establish its value on decentralized protocols one by one. The current protocol does have limitationsIf you want to integrate this protocol to realize NFT interaction functions, the core problem is that it is too dependent on the centralized order pool. Today, order information is queried through the official website of Uniswap itself, such as os, x2y2, etc., in addition to direct queries of contracts that are fully supported on the chain like SudoSwap (the initial concept of SudoSwap was amazing, but the operation was bleak, and the token allocation protocol released was too biased towards the development team, and gradually no one was interested). The gas optimization effect of transaction aggregation still depends greatly on the number of NFTs traded, so the attribute positioning of tooling (for project investors) remains unchanged. Although Uniswap's protocol is positioned to build a public infrastructure that drives the development of cryptocurrencies, and adopts a model that is easier for developers to integrate with other dapps, the product's functions are still based on the starting point of an aggregator, but there are no more tools that meet the needs of aggregator users. Naturally, it was not well received at the beginning, even with the 500WUSDC airdrop. It has been half a year since Uniswap Labs acquired Genie, and the Uniswap NFT market launched today is almost the same as Genie half a year ago. Nowadays, due to the emergence of NFT markets such as X2Y2 and Blur that understand user needs, users have to endure the poor product experience and the era of using products is over. Scott, the head of Uniswap NFT products, once said on Twitter that Uniswap will implement NFT transactions by inheriting Sudoswap. It is expected that the infrastructure launched later will no longer be such a fat protocol, but a thin application. |
<<: Web3 security incidents in November: 36 in total, with losses of $590 million
>>: Variant co-founder: How does the FTX incident affect our view of user ownership?
Wu Shuo Author | Tan Shu Editor of this issue | C...
Fate is like an invisible thread that affects the...
Author: Bai Ye Editor: Tang Han This article is a...
Danfeng Eyes, What Are Danfeng Eyes? People with ...
No matter whether you have a face that brings bad...
1. Poor marriage fortune Generally, people with t...
Author: Jiang Xiaoyu, Editor: Qin Jin Bitmain, wh...
In traditional Chinese culture, it is important f...
236,237, which is the known large institutional B...
We all know that looking at our palm lines can in...
"Any change in the five senses will lead to ...
Being a housekeeper and being strong are not the ...
When we were young, we understood that what is ea...
Generally speaking, boys with long heads will gro...
Introduction: Today I officially dismantled my gr...