In constant product AMMs like Uniswap v2 and SushiSwap, impermanent loss is computed by comparing the relative change in portfolio value V compared to a “holding” portfolio V_H in response to a small change P’→α P in the price of the underlying . where the range factor r = √(tH/tL).