orderStrikes function
The strikes an OrderRange prices against, in USD, with null for each
infinite side — the shape boundaryProbabilities takes. tickSizeRaw is
the market's raw tick size.
Implementation
({double? lower, double? upper}) orderStrikes(
OrderRange range, BigInt tickSizeRaw) {
return (
lower: range.lowerTick == BigInt.zero
? null
: fromRaw(range.lowerTick * tickSizeRaw, 9),
upper: range.higherTick == POS_INF_TICK
? null
: fromRaw(range.higherTick * tickSizeRaw, 9),
);
}