You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dashboard): fold Tari revenue into the energy/profit net calculation (#520) (#614)
dashboard.energy.tari_price adds Tari merge-mining earnings to the Energy
tab's net profit, using the same what-if Tari/day estimate the Tari tab
already shows. XvB stays excluded (raffle status, no clean per-day
estimate). The net-profit heading and tooltip now say exactly what's
included so the figure is never silently P2Pool-only.
Copy file name to clipboardExpand all lines: build/dashboard/mining_dashboard/web/static/components.mjs
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -566,12 +566,21 @@ class EarningsCard extends Component {
566
566
// Energy & profit tab body (#260). Fleet power draw + efficiency (always, when any power is known),
567
567
// then energy cost once an electricity price is set, then net profit once an XMR price is also set —
568
568
// each layer appears only when its inputs exist, so the operator never sees a fabricated figure.
569
-
// `est` is the earnings for the shared what-if hashrate; the client does the kWh/cost/net math.
569
+
// Setting a Tari price too (#520) folds the Tari merge-mining estimate into gross; the heading and
570
+
// the Net/day tooltip say exactly what's counted so a Tari merge-miner's net is never silently
571
+
// P2Pool-only. `est` is the earnings for the shared what-if hashrate; the client does the
572
+
// kWh/cost/net math.
570
573
functionEnergyPanel({ energy, est }){
571
574
consten=computeEnergy(energy,est);
572
575
constcur=energy.currency;
573
576
consthaveCost=energy.cost_per_kwh>0;
574
577
consthaveNet=haveCost&&energy.xmr_price>0;
578
+
// Honest label (#520): say exactly what gross counts so the net figure is never silently
579
+
// partial. XvB never appears here — raffle status, not a clean per-day estimate.
580
+
constnetLabel=en.includesTari ? "P2Pool + Tari, after power" : "P2Pool XMR only, after power";
581
+
constnetTitle=en.includesTari
582
+
? "P2Pool XMR + Tari (merge-mined) earnings at your set prices, minus power cost. Excludes XvB (raffle status, not a per-day income estimate)."
583
+
: "P2Pool XMR earnings at your XMR price, minus power cost. Excludes Tari (set dashboard.energy.tari_price to include it) and XvB (raffle status, not a per-day income estimate).";
0 commit comments