Types, constants, units, and rounding¶
Do not infer decimals or economic meaning from Solidity integer widths. Distinguish account IDs, market IDs, order IDs, slots, token-native units, lot/tick precision, quote scale, fee rates, margin ratios, funding indices, packed flags, and sentinel values.
Use terminology alongside the parameter and return descriptions in the function browser. Product-specific packed layouts and reserved-bit policies are normative; Spot and Perp are not interchangeable.