helium / wallet-app

Apache License 2.0
59 stars 36 forks source link

Show Available Rewards for Stake Positions #794

Open Ryan-Goldstein opened 2 months ago

Ryan-Goldstein commented 2 months ago

An increasing number of community members have been requesting a means to see how much IOT/MOBILE they've accumulated in the Helium Wallet app's governance tab.

In response to one such request, waveform on the Helium Discord described how to manually calculate this:

Multiply your HNT locked up by a number between 0-100. Depending proportionally how many days you locked up for of a max of 1461 (4 years) Eg lock for 6 months = 183 days = 1/8 of 1461 and 1/8 of 100 =12.5 So if locked up 100 HNT then multiply 100x12.5 = 1250 veHNT Add that to the veHNT delegated number found at https://explorer.helium.com/stats Then work out your share of that = 1,250/(1,250+749,759,046) = 0.0000016671995125226 Then multiply that by the MOBILE given to HNT delegators daily which is 4,931,506.849316 so it would be 8.22 MOBILE if you had locked up yesterday.

Of course, it would be much simpler for end users if the value available to be claimed for each position, and/or in total, was shown in the app.

I'd mirror the way that claimable hotspot rewards are shown; the available rewards for each position next to each position, and the total rewards above the 'Claim Rewards' button in the panel at the bottom of the listed positions.

waveform06 commented 2 months ago

My calculation is for rewards for the future, not historical claims BTW