Skip to content

Earnings estimate: subtract the XMRig developer share (follow-up to #3731) #3840

Open

Description

@pithead-developer

What's the problem

#3731 requires the Earnings estimate to subtract each rig's XMRig developer share, weighted by that rig's hashrate. The Sovereign Earnings page still shows "Expected per day: Unavailable", and no estimate consumes /api/state.xmrig_donation (published by PR #3838).

What it impacts

Owners who donate to the XMRig developers see an expected-earnings figure that does not account for the donated share, once expected earnings are shown.

How I found it

Code reading of dashboard/mining_dashboard/web/static/sovereign/earnings.mjs on PR #3838: the expected rows are hard-coded "Unavailable". #2525, which owned the estimate, is closed without a donation term.

How important is it

Low to medium: the figure is not shown today, so nothing is wrong yet, but the #3731 criterion would be dropped.

Acceptance criteria

  • When Earnings shows an expected figure, it is reduced by each rig's reported donate level weighted by that rig's hashrate.
  • A fleet with an unknown level shows the figure as unavailable or labelled, never as 0 % donation.
  • A frontend test covers the weighted subtraction and the unknown case.

Possible solutions

Consume xmrig_donation.percent (already hashrate-weighted) in the Earnings estimate once the estimate lands.

Activity

  1. added this to the v2.1.0 milestone on Nov 20, 2026
  2. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v2.1.0 to v2.1.3. Donation UI follows the dark-released backend (2.0.7/2.0.8) and the Advanced pages; second UI chunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions