Skip to content

Implement profitability calculator that uses diff over time averages #3

Closed

Description

@Venthos

Most "profitability calculators" use the in-the-moment network difficulty to calculate profitability. This ends up being wildly inaccurate and unhelpful.

Implement a facility in nodejs-pool to calculate profitability using an API endpoint.

  • Use average of network difficulty over time (customizable?)
  • Use some pool-side metric to make the profitability specific to the pool (pool avg hashrate? avg blocks per day?)

This will then need to be implemented on the poolui side fo the actual representation of it, but that's outside the scope of nodejs-pool

Activity

  1. added
    new feature
    on Mar 2, 2018
  2. Venthos commented on Mar 9, 2018

    @Venthos
    OwnerAuthor

    For reference, you could use something like this to produce a profitability calculation:

    {{(60 * 60 * 24) / ((avgDiffPastWeek | difficultyToHashRate)/USERHASHRATE*120) * network.value | toXMR}}

    Replace USERHASHRATE with the raw hashrate of a user measured in H/s and that would produce an estimated daily reward for ITNS (or any other coin with a 120 sec block target)

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

    new feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions