Uniswap V3, Convex Optimization, Arbitrage, Routing, English.
(negative) amount that we want to take out. In any case, if we have N tokens, then we have N-1 constraints. Figure 3. Code for self-financing constraints The code for the objective function is essentially the same as for the self-financing constraints, except that it is wrapped in a cp.Minimize