Optimal Execution on Uniswap v2/v3 under Transient Price Impact
Abstract
We study the optimal liquidation of a large position on Uniswap v2 and Uniswap v3 in discrete time. The instantaneous price impact is derived from the AMM pricing rule. Transient impact is modelled to capture either exponential or approximately power-law decay, together with a permanent component. In the Uniswap v2 setting, we obtain optimal strategies in closed-form under general price dynamics. For Uniswap v3, we consider a two-layer liquidity framework, which naturally extends to multiple layers. We address the problem using dynamic programming under geometric Brownian motion dynamics and approximate the solution numerically using a discretization scheme. We obtain optimal strategies akin to classical ones in the LOB literature, with features specific to Uniswap. In particular, we show how the liquidity profile influences them.
Fields of Study & Subjects
Auction Theory and Applications
Stochastic processes and financial applications
Game Theory and Applications
Publication details
- Journal / source
- Applied Mathematical Finance
- Pages
- 1–34
- Publication date
- 14 September 2026
- Language
- EN