> ## Content Index
> Fetch the complete content index at: https://www.metatalks.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Uniswap Presented v4 of DEX, with 'Pretty Endless' Possibilities
- URL: https://www.metatalks.ai/uniswap-presented-v4-of-dex-with-pretty-endless-possibilities/
- Published: 2023-06-14T22:40:13.000Z
- Updated: 2023-06-14T22:40:52.000Z
- Author: Katelyn Chow
- Tags: uniswap, dex, defi, ethereum

[Uniswap Labs](https://twitter.com/Uniswap?ref=metatalks.ai), the team behind the popular decentralized exchange (DEX) [Uniswap](https://app.uniswap.org/?ref=metatalks.ai), has [released](https://twitter.com/Uniswap/status/1668603580184502276?ref=metatalks.ai) a draft of the [code for Uniswap V4](https://github.com/Uniswap/v4-core?ref=metatalks.ai) for the community to give feedback (see [guidelines](https://github.com/Uniswap/v4-core/blob/main/CONTRIBUTING.md?ref=metatalks.ai)), find optimizations, and prepare to build on top of it.

This new protocol version promises to be faster, more efficient, and more customizable than its predecessors.

![](https://lh3.googleusercontent.com/APG4SwkaqH8KX-AOQZHoOz-6qnsgKLD3VeQP5dwcTPkfPd2FZ-UAeKDbJhK_aac120uxW2LTk2gS3Bb4iLysyMA6i-7nka4b1dsPSBeG-OcAb5RNvWDHSPvPiDb41FPktm0y8SHdmtyMb2h99Sz5NQvMmEVh5GHH)

![](https://lh6.googleusercontent.com/nHui5ZuF6UmaHyFhbelcBlVwJWoG0W2UU_Ezeze6GxQpFK2dCERWASONexJxzOHzf2u_E0XEyrPVnutqlsPgnBeewZXzCY_rYpI9g_7qjNTWxajda08Kw6yRtcv_qLN9EgJZ3fM2MKoXCYClZfBZmBKW8XgEQmU9)

## **What’s New in Uniswap v4**

In the [blog post](https://blog.uniswap.org/uniswap-v4?ref=metatalks.ai), the team shared their vision for Uniswap v4 and the planned changes.

### **Hooks & Custom Pools**

One of the key features of Uniswap V4 is the introduction of hooks ([wtf is it, thread](https://twitter.com/Zer0dots/status/1668624869767118849?ref=metatalks.ai)).

*"Hooks are contracts that run at various points of a pool action's lifecycle. Pools can make the same tradeoffs as v3, or they can add totally new functionality. For example, v4 will allow pools that natively support dynamic fees, add on-chain limit orders, or act as a time-weighted average market maker (TWAMM) to spread out large orders over time."*

![](https://lh4.googleusercontent.com/6G-PBpvFXJpurwQJYuusoN8MlaiaS62Qhv-FLjs6LmLhi6EsBx3zeBsvw9XHZ-mIXp0YysfUphvkPkDCk8pEOzyxrLCZkt33RdcmCNj35wWGY4f3af5lcUMRlf7ifFPx7EnBIepku2dzweqYwTVxuzjyJyTlc4jJ)

**Improved Architecture and Gas Savings**

Another major improvement in Uniswap V4 is using singleton contract architecture and a new "flash accounting" system.

In v4, all pools are held in a single contract, resulting in significant gas savings. Tokens will be moving within that single smart contract instead of transferring between pools in different contracts. The introduction of hooks and the singleton architecture allows for efficient routing across various options.

![](https://lh3.googleusercontent.com/D1A19-7TlIceRtLF0n3FhDqPQswPBfLyVB0Hh7IyPDygQsdu5of6lnz512Eluhzer9WXFtXSSOJ79mQqWPAtCsnfLI9Ns_b3iu6rAW7ShLLQzs7BBrdfvf3BHzN3OG_p9sBfju-Y9dCXNNExxHnpEd39ke6q4bfg)

Additionally, the new "flash accounting" system optimizes asset transfers by only processing net balances, further enhancing gas efficiency. The implementation of [EIP-1153](https://eips.ethereum.org/EIPS/eip-1153?ref=metatalks.ai), if approved in the [#Ethereum](https://twitter.com/hashtag/Ethereum?src=hashtag%5Fclick&ref=metatalks.ai) Cancun hardfork, is expected to bring even greater gas improvements and cleaner contract designs. With these enhancements, fee tiers can be customized and set competitively, and native [$ETH](https://twitter.com/search?q=%24ETH&src=cashtag%5Fclick&ref=metatalks.ai) support is reintroduced, providing additional gas savings.

### **Overall**

Overall, Uniswap V4 [represents a major step forward for DEX](https://blog.uniswap.org/uniswap-v4?ref=metatalks.ai) and the broader DeFi ecosystem: increased functionality, gas & capital efficiency. Also, V4 makes Uniswap a far more composable protocol.

“The possibilities are pretty endless,” as Sara Reynolds of Uniswap Labs [said to Decrypt](https://decrypt.co/144307/uniswap-v4-open-source-hooks-singleton?ref=metatalks.ai), “can take it anywhere.”

![](https://lh3.googleusercontent.com/E9HOj-Mm6kGTLlVWlwNyXwU2xagKWv7aZa4tX4XTs7BmrwO7MXjfQOLzQq26sEFmVKVfusB9WLKx3MSo1WuXXEKCzMcezTNN_G8_iYT-PKDWBHUr2sHmSADFA4KwmPmsA8bKwB2tsxZCfGY8sUvh18CMCaC_r3Ih)

![](https://lh5.googleusercontent.com/ysttjhbDeIZq3-ugx-XeTFnrJCSZuxLRiTqgrxdt8VGhQ2AJMqh3QWe30EqsCWskT2hIlwV4A3wQyV1mV7BgUYyE8EHUwJBUk8c5Sj8UlZ2mSIkecijTlCX2UbDHsWUkf43C7QG5QF0jqTdLYr5wod6RajvWnTFf)

![](https://lh4.googleusercontent.com/EmqNjG9_eCyVDeJsGVSJU3DcNKj-WIYosN1nPlx-TK8PLJGWQizseSjkVr3yovAFrSEoLIRmMRAT_sJF5_85lhw4xRrz5X9Xze2FNz75gf2VrbVkfceUMpzE-K3dbTJ5A-v3SHd-SlgaLdp-TVc1g593DeiEzEKY)