A51 Finance: AMM With Liquidity Shaping Intents On Uniswap V4

Problem Statement

Today, the average AMM liquidity provider loses more money than they make in swap fees. In most cases, they are better off holding on to their capital than providing liquidity. Liquidity providers operate in the dark.

  1. The lack of tooling makes it difficult to monitor and operate positions effectively.

  2. LPs can only place static liquidity positions that need manual updating.

Deep liquidity for tokens is a public good in DeFi. It allows us to get our favorite tokens in a decentralized manner, but unfortunately, the LPs who contribute to it are often an afterthought for AMM projects. If we want to compete against CEX volume, we need to make LPing easier.

Secondly, LPing has become so hard due to a lack of tooling and frequent losses that it is dominated by private market makers leading to centralization which is against the ethos of DeFi and crypto. We need to make LPing democratic again.

Uniswap V3

Concentrated liquidity provision, introduced by Uniswap V3, allows liquidity providers (LPs) to allocate their assets within a specific price range. This approach offers several advantages, such as enhanced returns from capturing trading fees within that range, reduced exposure to extreme price volatility, and potentially better capital utilization. The ability to select custom ranges ushered in a new era, enabling liquidity providers to tailor their investment strategies to achieve specific goals.

However, this freedom has its challenges. It demands a deep understanding of market dynamics and a comprehensive grasp of the risks associated with it. The current AMMs are deficient in tools essential for effective liquidity provisioning. Liquidity providers have limited control over assets and utilization optimization, as well as restricted ability to manage associated risks. Addressing these challenges requires retail liquidity providers to invest time, acquire knowledge, and exercise patience in manually managing capital and making informed decisions.

While Uniswap V3 was revolutionary as it opened a whole new design space in concentrated liquidity provision, projects building for LPs had a hard time building on it, and they usually had a centralized component as part of their system to enable liquidity management.

Uniswap V4

The concept of hooks is again revolutionizing the AMM space. Hooks are customizable pieces of code that execute at specific points in the lifecycle of a swap or liquidity provision event. Hooks enable developers to implement unique functionalities, such as dynamic fees, on-chain limit orders, time-weighted average pricing, and more, directly within the pool logic.

It is now possible to build unique and innovative AMMs and liquidity management tools that directly access the liquidity in the Uniswap protocol, and the best part is that it would all be on-chain.

Proliferation of Hooks

Hundreds of open-source hooks have already been built for Uniswap V4, some focused on solving a broad problem while some focused on narrow use cases.

Some of them are:

  1. UniCast: A hook that would save you from LVR experienced at a specific time each day when ETH staking yield is distributed.

  2. FlexFee: A hook that hikes the swap fees in times of volatility.

  3. Dynamic Tick Adjustor: A hook that automatically adjusts your position ranges based on market conditions.

  4. Idle Liquidity Optimizer: A hook that utilizes your idle liquidity to earn a yield on other protocols.

  5. Copy Trading: A hook designed to mimic copy-trading behavior.

These are just some of the hooks that have been built in the past year. More community-built hooks can be explored here

Read the 2025 predictions by Neel here:

It is clear that a lot of innovation is going on, and most of it is on the liquidity provisioning side. This innovation won't slow down as we transition into the world of Uniswap V4. Many projects will realize the network effects offered by Uniswap V4 and will start building a hook-based use case.

What are the chances that LPs will find a protocol that is built for their use case?

This is where Carbon comes in. Carbon is a sequel to A51 Finance V3 that offers the flexibility to combine hooks in any way possible so LPs can have pools that fit their needs. Each LP has different needs and motivations, and instead of offering opinionated features, it makes sense to enable LPs to experiment in the vast design canvas offered by Uniswap V4.

What is A51 Carbon?

A51 Carbon is an LP-first AMM that takes advantage of all the hooks innovation going on in the open-source community to offer the most popular and effective intents as hooks to LPs. Carbon will come with broad categories of intents with new ones being released regularly keeping pace with the innovation and always providing LPs with all the tools they need under one roof.

Under the hood, Carbon comes with 10 major intent categories as mentioned here:

A51 Carbon is for those DeFi-savvy users who mostly have had bad experiences with liquidity provisioning either on AMMs directly or on Liquidity Managers.

Let's discuss some of the intents here:

Market Shifting & Rebalancing

Market Shifting allows the liquidity position to shift autonomously as market prices change. It could be in the direction of bull from the perspective of one asset against the other, it could be bear, or it could also be dynamic that shift in both directions. With Carbon, we are also introducing JIT which would allow the liquidity to be added in a very narrow range usually one tick, and then becomes inactive.

Asset rebalancing can be done by trailing or actively swapping from one asset to another to achieve the desired ratio.

LPs would also now be able to customize the TWAP duration for shifting and rebalancing.

Using Idle Liquidity

A51 Carbon has a feature that allows pools to earn additional yield by depositing idle assets into external protocols. This mechanism maximizes the efficiency of capital within the pool and increases returns for liquidity providers (LPs). Any protocol that implements ERC-4626 will be compatible with A51.

This feature can be used in conjunction with JIT (Just-in-time) mode in Market Shift intent where liquidity is earning yield in any external protocol most of the time like AAVE, but is brought to A51 when the range becomes active.

Auto-Exit

Automate liquidity exits based on set conditions.

Auto-exit can be configured in three different ways:

  1. Exit & Hold: Exit the position and hold the assets in the same proportion as in the liquidity pool.

  2. Exit & Swap: Exit the position and swap from one asset to another to reach the desired asset.

  3. Exit & Reinvest: Exit the position and reinvest in either external protocol or in any other pool in A51.

Auto-exit will usually be used by LPs to hedge against asset devaluation. If one asset falls in a liquidity pool against the other, you end up with the devaluing asset and you keep selling that asset at lower and lower prices. Auto-Exit can save you from that and you can instead convert your liquidity into the appreciating asset. This can also be used in pools like wstETH-ETH to hedge against depegs.

Wrap Up

These are just some of the intents that can be used by LPs. We want Carbon to be as unopinionated as possible. You can read in detail about Carbon here:

We envision A51 Carbon to be extremely modular with new modes being introduced regularly. This way, active LPs can have access to a wide array of tools under one roof.

Carbon will be available alongside Uniswap v4. If you are an active LP and want to contribute to the development of A51, feel free to reach out here. We are always looking for awesome feedback.

Subscribe to Abdul Sami
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.