pub const SCALE_FACTOR: i64 = 10_000;Expand description
Scale factor for converting between Decimal and fixed-point
We use 10,000 (1e4) as our scale factor, giving us 4 decimal places of precision. This is perfect for most prediction markets where prices are between $0.01-$0.99 and we need precision to the nearest $0.0001.