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
{{ message }}
Repository navigation
Implement profitability calculator that uses diff over time averages #3
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
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)
Activity
Venthos commentedon Mar 9, 2018
For reference, you could use something like this to produce a profitability calculation:
{{(60 * 60 * 24) / ((avgDiffPastWeek | difficultyToHashRate)/USERHASHRATE*120) * network.value | toXMR}}Replace
USERHASHRATEwith 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)