pandora-cli-skills 1.1.57 → 1.1.58

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/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: pandora-cli-skills
3
3
  summary: Canonical skill and operator guide for Pandora CLI including mirror, polymarket, resolve, and LP flows.
4
- version: 1.1.57
4
+ version: 1.1.58
5
5
  ---
6
6
 
7
7
  # Pandora CLI & Skills
package/cli/pandora.cjs CHANGED
@@ -3211,7 +3211,11 @@ function maybeNormalizeReserveUnits(item, reserveYes, reserveNo) {
3211
3211
  const currentTvl = toOptionalNumber(item && item.currentTvl);
3212
3212
  let scale = 1;
3213
3213
 
3214
- if (Number.isFinite(currentTvl) && currentTvl > 0) {
3214
+ // Most indexer reserve fields are raw token units (USDC 6 decimals).
3215
+ // Normalize integer reserve payloads to human USDC units.
3216
+ if (Number.isInteger(reserveYes) && Number.isInteger(reserveNo) && Math.max(reserveYes, reserveNo) >= 1_000_000) {
3217
+ scale = 1_000_000;
3218
+ } else if (Number.isFinite(currentTvl) && currentTvl > 0) {
3215
3219
  const ratio = total / currentTvl;
3216
3220
  // Indexer payloads sometimes expose reserves in 1e6 units while TVL is already in USDC.
3217
3221
  if (Number.isFinite(ratio) && ratio > 500_000 && ratio < 2_500_000) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pandora-cli-skills",
3
- "version": "1.1.57",
3
+ "version": "1.1.58",
4
4
  "description": "Pandora CLI & Skills",
5
5
  "main": "cli/pandora.cjs",
6
6
  "bin": {