> The source of truth for a market’s valid prices remains the price_ranges array on the market object
But `price_ranges` still seems underspecified to me without a bound type on the `start` and `end`.
> The source of truth for a market’s valid prices remains the price_ranges array on the market object
But `price_ranges` still seems underspecified to me without a bound type on the `start` and `end`.
i treat it as inclusive [start, end], and validate that each range's end is always equal to the next range's start, which seems to have held for all of the existing structures, but agree that it's underspecified in the docs and we'll see if my assumption holds with these new ones
i treat it as inclusive [start, end], and validate that each range's end is always equal to the next range's start, which seems to have held for all of the existing structures, but agree that it's underspecified in the docs and we'll see if my assumption holds with these new ones
Agreed. I currently have an assertion in place that should crash if my assumption proves wrong.
Agreed. I currently have an assertion in place that should crash if my assumption proves wrong.
Treating all `start` and `end` as inclusive works if there are only three ranges. `start` and `end` cannot be inclusive for adjoining ranges.
Treating all `start` and `end` as inclusive works if there are only three ranges. `start` and `end` cannot be inclusive for adjoining ranges.