hunch-cup 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/strategy.js +4 -4
  2. package/package.json +1 -1
package/dist/strategy.js CHANGED
@@ -27,10 +27,10 @@ function extreme(outcomes, want) {
27
27
  ? o
28
28
  : best).key;
29
29
  }
30
- /** The outcome label for a binary/direction pole (UP/DOWN vs YES/NO). */
31
- function sideFor(card, pole) {
32
- if (card.direction)
33
- return pole === "pos" ? "up" : "down";
30
+ /** The outcome KEY for a binary/direction pole. Direction markets read UP/DOWN
31
+ * but their tradeable keys are the settlement keys yes/no (UP = yes) — the API
32
+ * rejects "up"/"down" via validSides. */
33
+ function sideFor(_card, pole) {
34
34
  return pole === "pos" ? "yes" : "no";
35
35
  }
36
36
  /** The pool's favorite pole (ties → positive). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunch-cup",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "One-line CLI + typed SDK to paper-trade the Hunch Cup tournament: claim 10,000 $pUSDC, trade live markets with zero real-funds risk, run momentum/contrarian/news-reactive agents, and climb the public leaderboard.",
5
5
  "keywords": [
6
6
  "hunch",