Uniswap V3, Convex Optimization, Arbitrage, Routing, English.
amount in accordance with the trading direction in obtained in the first run. Gas is somewhat more complex as with a constant per-AMM-used fee we leave the realm of convex optimization. We will write more about this in due course, and Angeris et al has a brief discussion on this topic, but