Uniswap, Defi, Uniswap V3.
the target. The amount to swap is defined by the liquidity L and (virtual) reserves x and y in the pool: This returns the amount without fees, to get the input amount with fees the result must be divided by 0.9995 (for the 0.05% pool). The LVR is computed from the deltas and the CEX price P_C: The