Incorrect variable usage
Alexangelj opened this issue · comments
Alexander commented
concentrated/contracts/Concentrated.sol
Lines 166 to 168 in 0668a37
I think I got the price variables mixed up. If the actual price change is greater than the max price change computed from change in price in a tick, then we set the price equal to the next price. And for computing the swap amounts, we need to use the actual price change or the maximum price change in the tick, not the max price change by default.