Dynamic Exponent Market Maker: Personalized Portfolio Manager and One Pool to Trade Them All
Wittawat Kositwattanarerk · 2025
Read Dynamic Exponent Market Maker: Personalized Portfolio Manager and One Pool to Trade Them All by Wittawat Kositwattanarerk (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-22732.txt.
Introduction
Wittawat Kositwattanarerk proposes a new design for automated crypto trading pools, in a 2025 paper. On decentralized exchanges, each trading pair usually needs its own pool, and savers who fund the pools have to deposit tokens in fixed proportions. Traders hopping between pools pay extra fees at each step.
His design lets savers deposit any amount of any token into one shared pool. The pool keeps each saver's share balanced by value, acting like a personal, self-adjusting portfolio. Because the pool's pricing rule shifts as trades happen, every pair can trade inside the single pool. He warns, however, that the scheme is open to flash loan attacks and needs added defenses before real use.
Catalog record
| CREATOR | Wittawat Kositwattanarerk |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 54 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-22732
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Dynamic Exponent Market Maker: Personalized Portfolio Manager and One Pool to Trade Them All Wittawat Kositwattanarerk Abstract Decentralized exchange platforms such as Uniswap and Balancer operate on several pools where each pool contains two or more cryptocurrencies and constitutes direct trading pairs. The drawbacks here are that liquidity providing requires contribution of tokens in a specific proportion, and trading may require hopping between pools, hence increasing transaction fee and gas fee. We propose an automated market maker (AMM) protocol where liquidity providers can deposit any amount of tokens into the pool. The protocol will preserve the proportion of tokens by total value at the time of deposit and can be seen as a personalized self-balancing portfolio manager. In addition, since the invariant function is dynamic, all exchange pairs are executed from a single composite pool. Nevertheless, the scheme is vulnerable to flash loan attacks and must be used in conjunction with preventive measures. Keywords: cryptocurrency, decentralized finance, decentralized exchange, automated market maker 1 Introduction Blockchain has promising applications in many areas such as Internet of Things (IoT), supply chain, art and entertainment, healthcare, and obviously finance [ 1 , 2 , 3 , 4 , 5 ] . While Bitcoin and its underlying infrastructure can be considered the world’s first decentralized payment system, the term decentralized finance (DeFi) is nowadays used to refer to the post-Ethereum era where more advanced financial protocols such as lending and borrowing are made possible via smart contracts. Particularly, one of the cornerstones in a DeFi ecosystem is decentralized exchange (DEX), which allows a large number of users to trade cryptocurrencies without the need for a middleman. Traditionally, large-scale exchanges such as a stock market require a centralized exchange (CEX). Here, buyers and sellers submit their orders which consist of asset prices and volumes to an intermediary who is in charge of keeping and maintaining an order book. A trade is settled if the there are matching orders. This approach contrasts sharply with blockchain ideologies since the process is centralized and participants of the trade have to entrust their funds to a third party. The disastrous collapses of Mt. Gox and FTX Trading Ltd., to name a few, serve as a bitter reminder of the risks associated with CEX. On the other hand, decentralized exchange (DEX) is one of the remarkable innovations in DeFi. Instead of relying on the conventional market order book or a central authority, DEX is a set of smart contract algorithms where a trade is made against a pool of two or more cryptocurrencies. Typically, liquidity providers deposit two different types of tokens into a pool. At any time, a user can make a trade by swapping one type of token for another where the exchange rate is determined by a mathematical formula known as automated market maker (AMM). Once a trade is executed, liquidity providers earn a small transaction fee. Since there is an opportunity for a financial gain, providing funds for DEX becomes a new type of investment unique to DeFi called “liquidity mining” or “yield farming”. Here, we refer interested readers to [ 6 ] for a comprehensive survey on decentralized exchange, to [ 7 ] for a discussion on hybrid exchange, and to [ 8 ] for an overview on yield farming. The aforementioned concepts of DEX come into existence with the launch of Uniswap [ 9 , 10 , 11 ] , the first Ethereum-based and currently largest [ 12 ] decentralized exchange. It utilizes a simple yet elegant formula known as the constant product market maker (CPMM) xy=k . While many exchanges follow suit and adopt the same formula [ 13 , 14 , 15 ] , many alternatives exist and have since served different purposes. For example, StableSwap (Curve) uses adaptive formula and is particularly suitable for exchanging stablecoins [ 16 ] . Balancer uses weighted exponent so that the pool doubles as a self-balancing portfolio manager [ 17 ] . Nowadays, decentralized exchanges have become a multi-billion dollars industry [ 18 ] , and the underlying mechanism has been extensively studied [ 6 , 19 , 20 , 21 ] . Particularly, the use of liquidity pool as an investment is studied in [ 22 , 23 ] , and the constant product formula is generalized in [ 24 , 25 ] . Decentralized exchange surely benefits from the transparent and permissionless nature of blockchain—anyone can scrutinize the underlying smart contract and pseudonymously participate. The use of liquidity pools brings about an unconventional trading mechanism where liquidity providers can act both as buyers and sellers. Fractional ownership of the pool is possible, and is represented with a special-purpose cryptocurrency called LP token. The pool also allows the contract to accommodate the demands from a large number of traders at the same time. Lastly, mathematical properties of CPMM guarantee that an exchange is possible regardless of the size of the order and the size of the pool. The exchange system described, however, is not without drawbacks. The widely adopted CPMM equation xy=k only permits one trading pair per pool. In practice, a DEX will host several pools where one of the tokens in each pool is the chain’s native currency. For example, a DEX on Ethereum blockchain will have several pools of the form X/ETH where X’s are Ethereum tokens. An exchange from X to Y requires a “hop” X \rightarrow ETH \rightarrow Y and results in the trader paying transaction fee twice. Another inconvenience is that, to become a liquidity provider, one must deposit two tokens of equal value into the pool. Since users rarely possess idle cryptocurrencies of equal value, they may have to perform an unnecessary conversion so that they can maximize potential gain. Meanwhile, since the expected return from each pool is not the same, liquidity providers with several tokens have to make a difficult and strategic financial decision on how to convert and invest their funds. Another interesting property of the CPMM equation xy=k is that, when the price of the assets changes in an external market, an arbitrage opportunity exists so long as the total value of the two tokens in the pool is not equal. In other words, as liquidity providers deposit two tokens of equal value into the pool, this equilibrium will be maintained as traders use the pool to execute arbitrages. As a result, the liquidity pool can also be seen as an automated portfolio manager. However, since liquidity providers may not necessarily want their portfolio balanced at the 50:50 ratio, this concept is expanded upon by the Balancer protocol where the token value ratio can be set to any proportion [ 17 ] . Nonetheless, the shortcoming is that isolated pools are needed to handle different ratios. While, in theory, each user can create a pool customized to their portfolio preference, doing so would leave the protocol with several shallow pools. Performing a swap over such an illiquid pool results in a high price impact, which is disadvantageous to the trader [ 26 ] . In this paper, we propose a novel dynamic exponent market maker (DEMM) that operates in conjunction with token-specific LP tokens. The equation underlying the proposed scheme can be seen