pub fn deviation_per_m(
price_q64_64: U128,
reserves_a: u64,
reserves_b: u64,
) -> Result<i32, CoreError>Expand description
Computes deviation_per_m from inventory ratio. 0 = balanced (50/50), +1_000_000 = 100% token_a, -1_000_000 = 100% token_b. inventory_ratio = value_a / (value_a + value_b) where values are in q64.64.