Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show amount of hopr tokens received by relaying data #664

Open
ausias-armesto opened this issue Jan 24, 2025 · 0 comments
Open

Show amount of hopr tokens received by relaying data #664

ausias-armesto opened this issue Jan 24, 2025 · 0 comments

Comments

@ausias-armesto
Copy link
Contributor

ausias-armesto commented Jan 24, 2025

The idea is that the hopr-admin tool shows the amount of wxHOPR tokens received by relaying a certain amount of data like for example 1 GB.

Formula:
Ticket price = 0.0015 wxHOPR
Payload size = 460 bytes
1 GB = (1024 * 1024 * 1024) / 460 bytes = 2334221 => Packets needed to relay 1 GB of data
Average number of tickets to get a winning ticket = 1 / win_probability = 1 / 0.0005 = 1 winning ticket per 2000 tickets relayed

Hopr Tokens received for relaying 1 GB of data= (2334221 / 2000) * 0.0015 = 1.75 wxHOPR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant