Uniswap V3, Convex Optimization, Arbitrage, Routing, English.
AMM, do negative numbers are outflows, and positive numbers are inflows. Optimization however happens from the point of view of the trader, and it is easy to see that in both cases the problem is a minimization problem Paying into the AMM, the trader prefers a smaller (positive) amount to a bigger