Closed gordsport closed 2 years ago
The spec is written be forward looking but of course for cash settled futures the "product value" is just the price that they're trading at.
@EVODelavega - please can you confirm that it is not possible for the price to be negative here?
If so we can move out / close this issue as its already as per the spec.
Prices in core are of the type uint256, so in that sense it is impossible to have negative prices. Pegged orders and LP orders are only deployed during continuous trading, and we correct the price point to be within the bounds set by price monitoring. Unless the price monitoring component doesn't account for uint256 overflow, it shouldn't be possible to have negative (or rather int overflow) prices. When pricing/applying the offsets when deploying LP orders, we ensure the offset is not greater than the reference price, so I cannot see how we could end up with an invalid price
The 0038 spec has been updated:
with the following info:
This change is covered in the feature test:l
However the change needs to also be implemented on the core side.