Uniswap Labs has posted on GitHub an early code implementation of the next version of the protocol called Uniswap v4.
https://twitter.com/uniswap/status/1668603580184502276
“We see Uniswap as a key financial infrastructure and believe it should be built publicly with feedback and community input,” the developers said.
One of the main features of the v4 version of the decentralized exchange will be the use of “hooks” (hooks). These are plugins that allow you to implement completely new functions for liquidity pools, such as dynamically adjusting commissions or creating different types of orders.
To demonstrate the capabilities of the option, the developers wrote several examples of “hooks”. Among them:
- time-weighted average market maker (TWAMM);
- individual on-chain oracles;
- limit orders.
https://twitter.com/uniswap/status/1668603590540247040
Since the diversity of pool settings will lead to an increase in their diversity, the team made changes to the architecture to better match this structure.
In Uniswap v3, a separate smart contract is deployed for each pool. In v4, one singleton contract will be used for this, which will provide significant gas savings.
“Preliminary estimates show that v4 reduces gas costs for pooling by 99%. Hooks open up a world of endless options, and singleton allows us to use them all effectively,” said Uniswap founder Hayden Adams.
https://twitter.com/uniswap/status/1668603594717667330
April 1 Uniswap Labs loses exclusive commercial rights to Uniswap v3 code due to license expiration BSL.
Stay in touch! Subscribe to bitcoinlinux.com at Telegram.

