Maverick v2: The AI DEX with Programmable Pools

Maverick Protocol
Maverick Protocol
Published in
5 min readApr 16, 2024

The future of finance is decentralized. The ability to build and manage liquidity atop a composable infrastructure is crucial for developers, protocols, and liquidity providers. Moreover, the rapid rise of AI has only made the need for seamless, straightforward integrations with DEX-based liquidity more critical.

Having already proven itself as the most gas-efficient and flexible concentrated liquidity AMM, Maverick v2 now introduces Programmable Pools, which make it easy for anyone to use Maverick AMM as a platform for building new liquidity solutions.

What are Programmable Pools?

In Maverick v2, Programmable Pools are liquidity pools created with another smart contract designated as the “accessor.” This means that the accessor contract is the only address that can access functions that alter the pool’s state; for example, only the accessor contract can swap with the pool, add liquidity to it, or remove liquidity from it.

Making the accessor contract the only address that can call major functions on the liquidity pool provides developers with a straightforward method for wrapping Maverick pools in contracts of their own design. This makes it easy for them to harness the capital efficiency of Maverick AMM and implement new systems on top of it.

Deploying Programmable Pools is permissionless, meaning anyone can use them to leverage Maverick AMM’s cutting edge technology to develop even smarter liquidity products.

How can developers use Programmable Pools?

Programmable Pools are really only limited by the ingenuity of the developer community, and Maverick is excited to see the innovations people will build on top of Maverick AMM.

Some of the most immediate applications for programmable pools include:

AI in the loop

The blockchain AI revolution is coming. AI chains and trustless AI coprocessors are enabling DEX optimization through model inference. Programmable Pools enable the integration of these AI inference results as part of the pool, allowing for transaction-by-transaction optimization of pool parameters. The result is unlimited flexibility to incorporate AI model logic as part of trade-flow processing that comes to a pool.

Dynamic fees

Fee optimization is perhaps the biggest challenge for LPs in DEX-based liquidity. Almost all DEXes offer a choice of pools with static fee tiers, and LPs have to balance capturing volume without giving up too much in fee. Some LPs may find themselves having to move liquidity between pools in order to optimize this relationship. Pools with dynamic fees may be one solution to this difficulty, and Maverick’s programmable pools provide a pathway to implementing dynamic fees without relying on vaults or offchain services. One of the pool parameters that can be accessed by an accessor contract is fee, meaning that the accessor contract can change the fee on its Maverick pool at will. This opens up a range of possibilities for developers to design accessor contracts that alter pool fees according to inputs like volume, price, or even external oracles.

KYC-based pools

A protocol may find they have a need for a pool where only a whitelisted set of users can access the pool functions (including swaps). This is straightforward to implement using programmable pools: simply designate an accessor contract that has its own whitelisted set of users. These “KYC’d” users send instructions to the accessor contract, which checks their credentials before passing the instructions to the Maverick pool. Any protocol can use this method to create a permissioned pool on Maverick.

Single-sided LPing

Since programmable pools make it simple to restrict permissions to a Maverick pool, a user could use them to establish a “single-sided” pool. This would be useful if, for example, the user only wanted to sell a token and not buy it back. For example, if a user wanted to use an LP position to sell USDC to ETH, without ever buying ETH back, they could establish a USDC-ETH pool with an accessor contract. The accessor contract could be programmed only to accept swaps with USDC as an input, and refuse swaps with ETH as an input. The user could then design a USDC selling strategy using the full range of liquidity options available in Maverick AMM.

Ready to build on top of Maverick v2?

Read Maverick v2 Whitepaper (draft) here: https://bit.ly/MAV-V2-WP

Smarter Liquidity is the Future

Maverick v2 AMM offers an effective and versatile foundation for liquidity operations, and the accessibility of Programmable Pools will usher in an era of collective innovation, elevating liquidity management to new heights. This innovation will also facilitate the integration of AI into DeFi liquidity operations-laying the groundwork for even bigger advances in the future.

About Maverick Protocol

Maverick Protocol is a leading provider of smart contract solutions in DeFi, focusing on enabling projects to customize, automate, and incentivize liquidity effectively, powered by Maverick AMM.

Website | Twitter | Discord | Telegram |Medium | YouTube

DISCLAIMER: The information provided in this Medium Post pertaining to Maverick Protocol (the “Project”), its crypto-assets, business assets, strategy, and operations, is for general informational purposes only and is not a formal offer to sell or a solicitation of an offer to buy any securities, options, futures, or other derivatives related to securities in any jurisdiction and its content is not prescribed by securities laws. Information contained in this Medium Post should not be relied upon as advice to buy or sell or hold such securities or as an offer to sell such securities. This Medium Post does not take into account nor does it provide any tax, legal or investment advice or opinion regarding the specific investment objectives or financial situation of any person. The Project and its agents, advisors, directors, officers, employees and shareholders make no representation or warranties, expressed or implied, as to the accuracy of such information and the Project expressly disclaims any and all liability that may be based on such information or errors or omissions thereof. The Project reserves the right to amend or replace the information contained herein, in part or entirely, at any time, and undertakes no obligation to provide the recipient with access to the amended information or to notify the recipient thereof. The information contained in this Medium Post supersedes any prior Medium Post or conversation concerning the same, similar or related information. Any information, representations or statements not contained herein shall not be relied upon for any purpose. Neither the Project nor any of its representatives shall have any liability whatsoever, under contract, tort, trust or otherwise, to you or any person resulting from the use of the information in this Medium Post by you or any of your representatives or for omissions from the information in this Medium Post. Additionally, the Company undertakes no obligation to comment on the expectations of, or statements made by, third parties in respect of the matters discussed in this Medium Post.

--

--

Maverick Protocol
Maverick Protocol

Maverick is a leading infrastructure provider in DeFi, enabling projects to customize, automate, and incentivize liquidity effectively. Website: https://mav.xyz