Telegram (AI) YouTube Facebook X
Ру
Uniswap developers publish draft code for Uniswap v4

Uniswap developers publish draft code for Uniswap v4

Uniswap Labs has posted on GitHub an early implementation of the code for the protocol’s next version, dubbed Uniswap v4.

“We regard Uniswap as a key financial infrastructure and believe it should be built publicly with space for community feedback and contribution,” the developers said.

One of the main features of v4 will be the use of hooks. These are plugins that allow liquidity pools to implement entirely new functions, such as dynamically adjusting fees or creating different types of orders.

To demonstrate the capabilities of the feature, the developers wrote several examples of hooks. Among them:

  • time-weighted average market maker (TWAMM);
  • custom on-chain oracles;
  • on-chain limit orders.

As the range of pool configurations grows, the team has updated the architecture to better accommodate such variety.

In Uniswap v3, a separate smart contract is deployed for each pool. In v4, a single singleton contract will be used, delivering substantial gas savings.

“Preliminary estimates indicate that v4 reduces gas costs for creating a pool by 99%. Hooks open up a world of endless possibilities, and the singleton allows us to use them all efficiently,” said Uniswap founder Hayden Adams.

Back in April, Uniswap Labs lost the exclusive commercial rights to the Uniswap v3 code due to the expiration of the Business Source License BSL.

Подписывайтесь на ForkLog в социальных сетях

Telegram (основной канал) Facebook X
Нашли ошибку в тексте? Выделите ее и нажмите CTRL+ENTER

Рассылки ForkLog: держите руку на пульсе биткоин-индустрии!

We use cookies to improve the quality of our service.

By using this website, you agree to the Privacy policy.

OK