-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
✅ Deploy Preview for ubiquibot-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@pavlovcik I'm not quite sure if I understand how the reward should be calculated. If my understanding is correct: if the config has If config has |
@pavlovcik still waiting |
Yes double count please thank you for your follow up. |
Proposed config format change: incentives:
comment:
elements:
code: 5
img: 5
h1: 1
li: 0.5
a: 0.5
blockquote: 0
totals:
word: 0.1 This way is easier for the type system. |
That seems fine to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks pretty good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whilefoo please fix ci/cd issue first.
QA issue: whilefoo#10 Because we are calculating with float we get 22.400000000000002 WXDAI. One solution is to round up to 2 decimals to fix this. |
I'm surprised there isn't a more proper way to instruct JavaScript to calculate this accurately. It seems like a workaround to round up to two decimals for this but if this is the only solution proposal let's do it. |
Another solution would be using a library like decimal.js |
Agreed I'm also ready to merge this in! |
Github single comment limit is 65536 characters. Looked into the possibility of an exploit before a user completes a task and makes a big comment. It went well. The reward is a small amount with configs being used in this PR. Tested max words, generated 1.5045 WXDAI incentive. web4erOrg#54 |
Thanks for testing for exploits. As a heads up, once things are ironed out (we test comment incentives in production for awhile) I plan to crank up those numbers quite a bit. |
I think we need to get this PR merged ASAP for comment incentives. |
I agree just as long as this is mostly functional and passes some QA (looks like it did) I think it just depends on @web4er to approve so we can merge! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it just depends on @web4er to approve so we can merge!
Looks good.
QA: normal comment incentive working ok: web4erOrg#60
QA: generating permits when PR is merged web4erOrg#64
QA: stopping permits when PR is merged but amount is above payment-permit-max-price
web4erOrg#62
QA: payment-permit-max-price
is being respected now. But it is still leaving and empty comment incentive reward comment. web4erOrg#61 I will approve it as team is planning merge soon and apply hotfix.
Resolves #496