When the system parameters are constant, the price curve is also constant. Even if the inventory changes, it does not matter, just wait for the market environment and the system parameters to match again, the inventory can return to equilibrium. In other words, the gain/loss due to inventory changes is just a "floating gain/loss", and the term "impermanent loss" has been coined to describe this phenomenon.