Submitted by t4sk, also found by Bauchibred, lanrebayode77, and hunter_w3b
Price difference is calculated in 2 ways depending on whether price > verified price or not.
If price > verified price, this is the equation:
Otherwise price is calculated with this equation:
When the 2 equations above are graphed with price = horizontal axis, we get 2 different curves, see here.
The first equation produces a asymptotic curve (shown in red). The second equation produces a linear curve (shown in green). Therefore, the rate at which the price difference changes is different depending on whether price > verified price or not.
Price difference of +1 or -1 from verified price are not symmetric:
Desmos graphing calculator and python
Use a different equation to check price difference (shown in blue here):
Assuming verifyPriceX96 > 0:
Math
kalinbas (Revert) confirmed
Revert mitigated:
Status: Mitigation Confirmed. Full details in reports from ktg and b0g0.
