From e84145905f01b83ef98c499ddcc8f1f99a719e4c Mon Sep 17 00:00:00 2001 From: Junaid Saeed Uppal Date: Thu, 26 Feb 2026 00:09:21 +0500 Subject: [PATCH] fix bet recommendations to show actual coin amounts on fav and 2nd pick --- static/predictions.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/static/predictions.html b/static/predictions.html index a0cdaccae..c3c9c73d0 100644 --- a/static/predictions.html +++ b/static/predictions.html @@ -494,22 +494,24 @@ function renderBetAdvisor(data, pot) { const recs = computeBetRecommendations(); let whaleHtml = '', pubHtml = ''; if (recs) { - const wPrimary = recs.whaleAvg[best] || 0; - const wSecondary = Math.round(wPrimary / 2); + const wOnBest = recs.whaleAvg[best] || 0; + const wOn2nd = recs.whaleAvg[second] || 0; whaleHtml = `
-
Whale Avg Bet
-
${fmt(wPrimary)}
-
on ${best} (primary) · ${fmt(wSecondary)} on ${second} (2nd)
+
Bet Like Whales
+
${fmt(wOnBest)} on ${best}
+
${fmt(wOn2nd)} on ${second}
+
${recs.whaleCount} whales avg this round
`; - const pPrimary = recs.pubAvg[best] || 0; - const pSecondary = Math.round(pPrimary / 2); + const pOnBest = recs.pubAvg[best] || 0; + const pOn2nd = recs.pubAvg[second] || 0; pubHtml = `
-
Public Avg Bet
-
${fmt(pPrimary)}
-
on ${best} (primary) · ${fmt(pSecondary)} on ${second} (2nd)
+
Bet Like Public
+
${fmt(pOnBest)} on ${best}
+
${fmt(pOn2nd)} on ${second}
+
${recs.pubCount} bettors avg this round
`; }