pub type Qty = i64;Expand description
Quantity/size represented as fixed-point integer for performance
Each unit represents 0.0001 (1/10,000) of a token Examples:
- 100.0 tokens = 1,000,000 units
- 0.0001 tokens = 1 unit (minimum size increment)
Why i64?
- Can represent quantities from -922,337,203,685.4775 to +922,337,203,685.4775
- Signed because we need to handle both buys (+) and sells (-)
- Large enough for any realistic trading size