@liberfi.io/ui-predict 0.1.139 → 0.1.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -13,7 +13,7 @@ declare global {
13
13
  };
14
14
  }
15
15
  }
16
- declare const _default: "0.1.139";
16
+ declare const _default: "0.1.140";
17
17
 
18
18
  /**
19
19
  * A single category entry in the static navigation model.
@@ -278,7 +278,13 @@ declare function floorToDecimals(value: number, decimals: number): number;
278
278
  declare function parsePolymarketError(raw: string, t: (...args: any[]) => string, side?: "buy" | "sell"): string;
279
279
  /**
280
280
  * Format a share count for display: floor-truncate to the given number of
281
- * decimal places (default 4) and strip trailing zeros.
281
+ * decimal places and strip trailing zeros.
282
+ *
283
+ * Default is 2, matching the official Polymarket CLOB client where
284
+ * `ROUNDING_CONFIG[tickSize].size` is always 2 for all tick sizes.
285
+ * DFlow/Kalshi uses 0 decimals, so 2 is a safe upper bound for both.
286
+ *
287
+ * @see https://github.com/Polymarket/clob-client/blob/main/src/order-builder/helpers.ts
282
288
  */
283
289
  declare function formatShares(size: number, maxDecimals?: number): string;
284
290
  declare function fireCelebration(): void;
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ declare global {
13
13
  };
14
14
  }
15
15
  }
16
- declare const _default: "0.1.139";
16
+ declare const _default: "0.1.140";
17
17
 
18
18
  /**
19
19
  * A single category entry in the static navigation model.
@@ -278,7 +278,13 @@ declare function floorToDecimals(value: number, decimals: number): number;
278
278
  declare function parsePolymarketError(raw: string, t: (...args: any[]) => string, side?: "buy" | "sell"): string;
279
279
  /**
280
280
  * Format a share count for display: floor-truncate to the given number of
281
- * decimal places (default 4) and strip trailing zeros.
281
+ * decimal places and strip trailing zeros.
282
+ *
283
+ * Default is 2, matching the official Polymarket CLOB client where
284
+ * `ROUNDING_CONFIG[tickSize].size` is always 2 for all tick sizes.
285
+ * DFlow/Kalshi uses 0 decimals, so 2 is a safe upper bound for both.
286
+ *
287
+ * @see https://github.com/Polymarket/clob-client/blob/main/src/order-builder/helpers.ts
282
288
  */
283
289
  declare function formatShares(size: number, maxDecimals?: number): string;
284
290
  declare function fireCelebration(): void;