Uniswap V4: Powerful New Features and Controversial Code Allegations
Uniswap, among the top decentralized exchanges (DEX) released the draft code for its latest version, Uniswap V4. The code has been released as the developers wish V4 to be built in public. Launched in 2018, Uniswap is on...
Archive context
Older archive item. Useful for background and entity history, but not a fresh market-moving signal.
Uniswap, among the top decentralized exchanges (DEX) released the draft code for its latest version, Uniswap V4. The code has been released as the developers wish V4 to be built in public. Launched in 2018, Uniswap is one of the most known DEX for trading Ethereum and eth-based tokens.
In V2 which was released in 2020, Uniswap introduced ERC-20 trading pairs and Flash Swaps. In V3, concentrated liquidity was added to the protocol. Concentrated liquidity allows allocating liquidity to a price interval. This model improved the standard AMM model.
Liquidity providers (LPs) can execute as many positions as they wish in the pool. LPs have better control over what price ranges their funds will be used. The Uniswap V3 Business Source License (BSL) expired in April 2023.
Other DEX, such as SushiSwap, announced it is adding Concentrated Liquidity to 13 different chains. Arbitrum, Fuse, Polygon, and Gnosis are some of the blockchains that Concentrated Liquidity will be enabled for. The latest version has a new BSL license, which limits its use in commercial or production settings for up to 4 years.
What Is New in Uniswap V4?
The highlight of the new code is ‘Hooks.’ To simplify, Hooks are smart contracts that are executed at certain times in a pool. For example, hooks can be used when liquidity is added or removed from the pool. This allows pool creators to have better control over how their pool behaves in certain conditions.
Hooks can be used for on-chain limit orders and a time-weighted average market maker (TWAMM) pool. TWAMM enables traders to execute large trades (over $30M for example) with minimal gas fees and impact on the price.
The large order is broken down into multiple orders (an infinite number of small orders) using AMM for a predetermined period (days, weeks, etc.). The same applies to buying large amounts. The TWAMM algorithm will split the amount into multiple orders that will be spread across predefined parameters (hours, days, etc.).
TWAMM eliminates the need to use CEX or a trading desk for such transactions. Other features include customized on-chain oracles and internalized MEV profit, which are distributed across LP. Uniswap released several samples on github.
The Singleton Contract
Another major upgrade from V3 is the use of a ‘singleton’ contract. As opposed to V3 where each pool has its own smart contract, in V4 all pools reside within a single contract. Traders will benefit from lower fees on token swaps as routing is dramatically enhanced. Flash accounting will also be enabled. Changes in the pool will be calculated based on net balances rather than at the end of the swap, which will reduce some gas.
Did Uniswap Copy Shell Protocol’s Code?
There have been allegations that Uniswap copied some of the code from the Shell Protocol.
Uniswap even copied the variable name for this transient ledger, “BalanceDelta.sol”. The file names in github are verbatim the same. pic.twitter.com/7f2NNOg5Ne
— Kenny White 🐚 (@white_kenny_) June 14, 2023The Shell Protocol has an MIT license, and a permissive free software license. The allegations are that Uniswap used parts of the Shell Protocol for V4, which were then licensed (BSL). While permissive software licenses are likely to remain popular, more projects may choose to protect their code better. V4 will likely be deployed in several months and only once an agreement is made on the final version.
This article was written by Matti Williamson at www.financemagnates.com.Why this matters
This cryptocurrency story adds another data point to the current market tape and is useful when read alongside nearby source coverage.
Original source
Read on Finance MagnatesRelated market context
TopNod Wallet Debuts Access to Axil’s APT (Axil Pot), a T+0 On-Chain Yield Product for Everyday Idle Liquidity
Offering ~8% Target APY and Instant T+0 Liquidity with an Initial $10M Capacity Cap Singapore, October 1, 2026 —TopNod has integra...
Robinhood Wallet Can Now Route Stock Token Trades Through the Arcus Exchange
Swaps of Stock Tokens in Robinhood Wallet can now be filled through Arcus, a decentralized exchange from the team that built dYdX,...
Senate tax bill frees stablecoin spending while Bitcoin stays on IRS forms
A coffee bought with a qualifying dollar stablecoin would avoid gain-or-loss recognition under the ADAPT Act that Sen. Steve Daine...
Adam Back backs covenant opcodes as a possible ‘last soft-fork’ for Bitcoin
Adam Back's endorsement of covenant opcodes could stabilize Bitcoin's protocol, enhancing security and reducing the need for frequ...
The Ethena Crypto Buyback Math Puts the $2 ENA Target to the Test
Standard Chartered forecasts the Ethena crypto USDe supply will grow eightfold to $40Bn by the end of 2028 and has initiated cover...
Standard Chartered says Ethena’s ENA could crush Bitcoin and Ethereum returns by 2028
Standard Chartered expects Ethena’s ENA token to rise about sevenfold by 2028, provided the protocol can rebuild its shrinking syn...