ecency / esteem-surfer

Ecency desktop formerly known as Esteem Surfer - reimagined desktop social wallet, contribute and get rewarded (for Windows, Mac, Linux)
https://ecency.com
MIT License
101 stars 27 forks source link

incorrect effective SP & powerdown amount #197

Closed economicstudio closed 5 years ago

economicstudio commented 5 years ago

Effective SP should exclude powerdown amount, but esteem includes it.

This is important for calculating correct voting value (if this feature will be added).

While eSteem shows the powerdown amount separately at the bottom, which is very good, it also has the following problem.

Due to this "bug": https://github.com/steemit/steem/issues/3237, powerdown may take 14 weeks, not 13 weeks.

Even for the 14th week, withdrawal amount is still the same (i.e., very big), so min function is needed to determine the actual remaining withdrawal.

I'll submit PR.

feruzm commented 5 years ago

Good find, yes I agree power down amount should be taken out of vote calculation. We have vote calculation already so it should be considered, @talhasch. But total SP value I think showing up correctly, it is not effective SP per se but it is total amount of SP currently account holds, at any point if user decides to stop power down, they will have same amount of SP. Looking forward for PRs 👍 keep up the good contribution, we really appreciate it 😉

economicstudio commented 5 years ago

Thanks for your comment. I've just submitted PR.

Re total SP, people may have different opinions. But as shown in steemd, I think it's better to follow their practice. I personally prefer that way due to the name 'STEEM POWER', it's POWER from which most people think voting value is proportional to. Especially when approaching to the end of the powerdown cycle, e.g., after 10 weeks or so, the difference can be very huge. Busy also had such a problem with voting value due to that, which I fixed 😉

But if you really prefer not to exclude powerdown amount in the total SP, let me know, I'll change the code. But at least please think twice. It's POWER not asset :)

feruzm commented 5 years ago

I checked PR screenshot, it looks good to me, maybe you can add tooltip on last -amount saying that Power down portion or Current power down amount ?

economicstudio commented 5 years ago

Actually I already added tooltip, sorry I didn't upload that screenshot.

I used 'pending withdrawal steem power' but let me know if you prefer different wording. Maybe 'Next power down amount'? for consistency with the message on the bottom?

ps. Actually, it need to be localized anyway, and I thought there might be special process, so I intentionally didn't make tooltip with localization. So maybe that message can be determined after merging this PR. But let me know if you want me to change en_US.json too. I actually did it but rolled back just in case if there is a specialized process.

feruzm commented 5 years ago

I like Next power down amount. Yes, it can be added into en_US.json in dedicated section and our translators will automatically be notified about new phrase.

economicstudio commented 5 years ago

@feruzm, now it's done. Thanks for your feedback!