Busy - reward balance + etc
Repository
https://github.com/busyorg/busy
New Features / Bug Fixes
Reward balance refresh
https://github.com/busyorg/busy/pull/2184
Previously, if the claimable balances were claimed externally, then even if click the "Claim rewards" button, it only tried to re-claim but didn't update anything.
When the claim is failed, currently it doesn't refresh the balance. So I fix this. After the fix, if claimed externally, it shows the updated amount if there are new balances.
Note: The remaining part was previously submitted here, but not voted by utopian due to limited VP. I missed two dev votings. Hope this post could be evaluated considering that :)
Powerdown information
https://github.com/busyorg/busy/pull/2147
- Show the powerdown amount in the wallet
- Show the tooltip with next powerdown schedule
Previously, Busy doesn't show any powerdown information in the wallet.
Before: Busy shows nothing!
After: Busy shows both powerdown and delegation in a compact form.
const getFormattedPendingWithdrawalSP = (user, totalVestingShares, totalVestingFundSteem) => {
const pendingWithdrawalSP = calculatePendingWithdrawalSP(
user,
totalVestingShares,
totalVestingFundSteem,
);
if (pendingWithdrawalSP !== 0) {
return (
<BTooltip
title={
<span>
<FormattedMessage
id="steem_power_pending_withdrawal_tooltip"
defaultMessage="The next power down is scheduled to happen on "
/>
<FormattedDate value={`${user.next_vesting_withdrawal}Z`} />{' '}
<FormattedTime value={`${user.next_vesting_withdrawal}Z`} />
</span>
}
>
<span>
{' - '}
<FormattedNumber value={pendingWithdrawalSP} />
</span>
</BTooltip>
);
}
Note: Probably the more important thing about this powerdown is the powerdown amount should be excluded for voting value calculations. Many UIs had/have such bugs. I've fixed some on my own.
Benefits
Hacking prevention
There are many cases where hackers start the powerdown and victims even don't recognize it! If the information is properly shown, this hacking can be prevented.Vote value consistency
Powerdown amount is excluded for vote value, but without powerdown amount information, users may wonder why their vote value is quite low. Note that around the end of 13 weeks of powerdown, the difference can be huge.Stopping powerdown
Users may change their mind to stop the powerdown if the information is clearly shown everyday. Especially when it's almost done, the powerdown amount can be quite big compared to the remaining so the chance of changing their mind might be pretty high :)
Show zero payout
https://github.com/busyorg/busy/pull/2174
- Show
$0.00for payout-declined post all the time - Show $0.00 or
$0.00depending on the declined status even for posts with pending payout lower than $0.005.
Before: Busy shows nothing when payout is zero. So it's hard to tell whether it's due to downvoting or decline.
After: Busy shows it as
$0.00for both posts just posted and paid out.
https://github.com/busyorg/busy/pull/2174/commits/2a52cbc59776a4763d4b3c54017d9f734409733e#diff-63ae944f92a07351d09d0b828b70223eR16
Benefits
- For a payout-declined post, you can easily tell if it's declined or not in the beginning
- When a post is paid out with $0, you can easily tell if it was due to decline or downvoting. (But maybe due to both :)
- Easy to understand for newbies. Newbie may not even understand why some post is paid out with zero.
3-digit precision for small values of votings
https://github.com/busyorg/busy/pull/2176
- 3-digit precision when 0 < abs(STU) < $0.02
Currently, Busy shows only up to 2-digit precision, while SBD has 3-digit precision.
This might be an aesthetical choice. While many people like 3-digit on Steempeak, for instance, I still prefer 2-digit when the amount is large enough. But currently $0.01 needs a full voting with about 500 SP, which means even $0.005 needs 250 SP. As you know, most newbies are much below than that. Their voting always marks as $0.00 which can't be a good user experience.
Why $0.02?
This is not a random pick, but related to dust payout threshold (STEEM_MIN_PAYOUT_SBD), if payout is less than $0.02, it is not actually paid out. It just disappears! See my Utopian post for more details: Effect of haircut, early voting, beneficiary on dust payout
But still 0 is better to be shown as $0.00 instead of $0.000. That's why 3-digit precision when 0 < abs(STU) < $0.02, 2-dight precision otherwise, which made the following final decision:
const USDDisplay = ({ value }) => {
const negative = value < 0;
const absValue = Math.abs(value);
// 0.02 is dust payout threshold (STEEM_MIN_PAYOUT_SBD)
const precision = absValue < 0.02 && value > 0 ? 3 : 2;
return (
<span>
{negative && '-'}
{'$'}
<FormattedNumber
value={absValue}
minimumFractionDigits={precision}
maximumFractionDigits={precision}
/>
</span>
);
};
Note: See the bug fix "Remove US
from US$
in non-English locales" for the reason why style={'currency'}
is avoided.
before
after
but still 2-digit for >= $0.02, which is better aesthetically :)
voting details
voting details for downvoting
Remove US
from US$
in non-English locales
This is a common mistake in using FormattedNumber
.
<FormattedNumber
value={value}
style={'currency'}
currency={'USD'}
currencyDisplay={'symbol'}
/>
This show
US$
instead of$
in non-en locales as below,
before
Thus, it should be wrapped with en locale
<IntlProvider locale='en'>
<FormattedNumber
value={value}
style={'currency'}
currency={'USD'}
currencyDisplay={'symbol'}
minimumFractionDigits={precision}
maximumFractionDigits={precision}
/>
</IntlProvider>
after
While this resolves the problem, lint
will complain about the code. See a walk-around, e.g, https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md). But for vote detail list, this way may lead to slow performance, it's better to be handled by USDDisplay
class in the above.
Fix no negative sign for small values
https://github.com/busyorg/busy/pull/2176
Previously there was no - sign for small negative values, i.e., no way to tell if it's + or -.
Hi @blockchainstudio,
Busy is an awesome project to contribute. @sekhmet is great in terms of helping contributors. All of the pull requests and issues demonstrate great collabration. I really liked the next powerdown schedule tooltip. Great job!
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Hi @emrebeyler, thank you so much for your review! Hope I'll also contribute to dpoll and your other projects :) Thanks to @sekhmet too! And @ekitcho, now my commits are more than yours :)
Thank you for your review, @emrebeyler! Keep up the good work!
In Korean: 리워드 밸런스 외부에서 변경되었을때 업데이트 해주게끔 하는 부분인데 이건 포스팅 안하려다 지난번 dev포스팅이 보팅파워문제로 두번이나 보팅을 못받아서 해당 사실 본문에 공지하고 합쳐서 올렸습니다. dev포스트가 점점 보팅 받기가 힘들어지는 추세인데 못받으면 어쩔 수 없지만 기록삼아 남깁니다.
ps. 역시 월말 다가오니 busy가 또 일을 시작하네요. 월급 수령때문에 주로 월말가까워질때 일 시작하는 것 같습니다^^ 어느덧 제가 busy CEO보다 커밋수가 많아졌군요. 비록 busy CEO가 비개발자이긴 한데 그건 저도 마찬가지니ㅎㅎ
비지가 날로 발전하는 모습이 보기 좋습니다. 그리고 스팀잇처럼 스팀커넥트가 아닌 포스팅키로 로그인하는 기능도 생겼으면 좋겠어요.
그럼 좋을텐데 어떤 믿을만한 앱을 거치지 않고 하긴 쉽지는 않을 것 같아요ㅠㅠ 사람들이 못믿어서 안쓸테니ㅠㅠ 이 글은 다행히 친절한 예비증인이 리뷰해서 좋은 점수를 주고 갔네요. 잘하면 밀린 보팅 챙겨받겠습니다.
곰돌이가 @anpigon님의 소중한 댓글에 $0.018을 보팅해서 $0.005을 살려드리고 가요. 곰돌이가 지금까지 총 3230번 $38.704을 보팅해서 $40.269을 구했습니다. @gomdory 곰도뤼~
fego님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
fego님의 Weekly overview of the bug-hunting category- week 58, 2019
@blockchainstudio 님~ 비지에서 수정하려고 하는데 이렇게 뜨고 수정이 안되는데요~ 왜그럴까요 ㅠㅠ
ㅋㅋ busy 고객상담센터가 되었군요. 어제 @lostmine27님도 알려주셨었는데 왜 저는 재현이 안되죠ㅠㅠ 특정조건이 있는 것 같은데 스팀커넥트 관련 유료화테스트를 진행했던게 아닌가 싶은데. 아마 busy자체의 문제는 아니었을거에요. 아직도 그런가요?
ㅠ-ㅠ 아직도 안되네요 설정에 나이트 모드 빼놓고 다 체크하고, 임시보관함도 비웠는데 뭐가 문제인지 모르겠어요 .. lostmine27님이 시간이 지나서 된다고 말씀하셨는데, 전 아직도 안되네요 ㅋㅋㅋㅋㅋ
어제까지만해도됐었는데요 ㅋㅋ
어떤 글인가요? 제가 해볼 순 없어도 글에 어떤 설정이나 특징이 있나 궁금해서요.
https://staging.busy.org/@bbooaae/18-danbain
요기 있습니다.태그가 너무 길어서 그런건지. 감사합니당 ^^
안그래도 좀전에 혹시 staging서버에서만 그런가 했는데 그렇군요. 어제 실제 staging 서버에 beneficiary기능 넣으면서 제 예상대로 이게 beneficiary 세팅이 글 작성시에만 할 수 있는건데 넣으려고 하니 에러가 나는 겁니다. 일단 정통 busy.org쓰세요.
참 해당 기능은 제가 추가한거 아닙니다^^ 스팀커넥트와도 무관할듯 합니다. 깃허브에도 리포트했으니 곧 고쳐질겁니다. @lostmine27님도 참고하세요.
알려주셔서 정말~감사합니다!!!
정통 비지 busy.org 를 사용했더니 수정이 되었습니다. 비지를 영원히 못쓰는줄 알았네요 ^^
갓블록체인스튜디오님 만세!
staging에 꽤 괜찮은 기능이 많이 추가되었는데 저거 하나때문에 당분간 못쓰겠네요ㅠㅠ 그래도 큰 문제니 곧 고쳐질듯합니다.
곰돌이가 @bbooaae님의 소중한 댓글에 $0.018을 보팅해서 $0.005을 살려드리고 가요. 곰돌이가 지금까지 총 3239번 $38.798을 보팅해서 $40.382을 구했습니다. @gomdory 곰도뤼~
곰돌이가 @blockchainstudio님의 소중한 댓글에 $0.006을 보팅해서 $0.017을 살려드리고 가요. 곰돌이가 지금까지 총 3237번 $38.779을 보팅해서 $40.355을 구했습니다. @gomdory 곰도뤼~
곰돌이가 @blockchainstudio님의 소중한 댓글에 $0.005을 보팅해서 $0.018을 살려드리고 가요. 곰돌이가 지금까지 총 3236번 $38.773을 보팅해서 $40.338을 구했습니다. @gomdory 곰도뤼~
곰돌이가 @bbooaae님의 소중한 댓글에 $0.018을 보팅해서 $0.005을 살려드리고 가요. 곰돌이가 지금까지 총 3228번 $38.675을 보팅해서 $40.252을 구했습니다. @gomdory 곰도뤼~
짱짱맨 호출에 응답하였습니다.
fego님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
fego님의 Weekly overview of the bug-hunting category- week 59, 2019
@blockchainstudio님 곰돌이가 13.8배로 보팅해드리고 가요~! 영차~
Hi @blockchainstudio!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
gomdory님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
gomdory님의 곰돌이 일기장 2월 19일 - 댓글 구조 3100개 돌파!
zorba님이 blockchainstudio님을 멘션하셨습니당. 아래 링크를 누르시면 연결되용~ ^^
zorba님의 [2019/2/18] 가장 빠른 해외 소식! 해외 스티미언 소모임 회원들의 글을 소개해드립니다.