steemrewarding.com - curation performance is shown and other improvements

in #utopian-io7 years ago (edited)


rewarding_batch2.png

Repository

https://github.com/holgern/steemrewarding

steemrewarding.com is a feature-rich automatic voting tool. It can be used to create voting rules at https://steemrewarding.com, when posting authority was given to the @rewarding account. I created a discord server for all topics regarding steemrewarding.com: discord invitation.

New features

Curation performance is shown for all recorded votes in the vote log

image.png
The curation performance is calculated by the beem function get_curation_rewards:

c = Comment(authorperm, steem_instance=stm)
curation_rewards_SBD = c.get_curation_rewards(pending_payout_SBD=True)
performance = 0
for vote in c["active_votes"]:
    if vote["voter"] != vote_log["voter"]:
        continue
    vote_SBD = stm.rshares_to_sbd(int(vote["rshares"]))
    curation_SBD = curation_rewards_SBD["active_votes"][vote["voter"]]
    if vote_SBD > 0:
        performance = (float(curation_SBD) / vote_SBD * 100)

In every round, 4 votes are analyzed. Thus, the performance calculation of all votes should be updated every few hours.

A curation performance of 100% means that the upvote rshares will be returned as curation rewards.

Leaving a comment for each vote

When a upvote comment string is set in https://steemrewarding.com/settings and leave_comment is set to True in a vote rule, a comment is created below each voted post/comment.

For example, I stored the following upvote comment at https://steemrewarding.com/settings:

Hi {{name}},
{{voter}} was here.

{{name}} is replaced by the author username with a trailing @. {{voter}} is replaced by the voter user name with a trailing @.

Now the following comment will be created:
image.png

This feature is intended for community bots. I hope it will be useful.

Deleting of pending votes is possible

Pending votes in https://steemrewarding.com/show_pending_votes can now be deleted. Be careful, there is no confirmation.

Comment command parsing

Commands in comments and posts similar as shown here (I cannot write the command here, otherwise this post will be upvoted):
image.png
will be parsed and a pending vote will be created in the database. The syntax is
keyword upvote weight % vote delay min
Vote delay and upvote weight can also be switched. There are unit tests for the command parsing which tests the following cases:
image.png

New icon

I created a new icon for the project. I hope you like it:
steemrewarding2.png

Commits

fix missing parameter in dict

Account settings, delete of pending votes and vote comment added

  • commit cb3c74d
  • a new user settings page was added in which a upvote comment can be edited
  • pending votes can be deleted
  • vote comments with place holder for author and voter are working

New icon layout

several improvements and bug fixes

  • commit c95454a
  • delete old vote log added
  • fixed count of votes per day and week

add command parsing

  • commit 639e57f
  • commands e.g. $rewarding 100% 15min, or now parsed and processed
  • unit test for command parsing added

add curation performance calculation to vote logs

  • commit 8035d56
  • for each logged vote, the curation performance is shown and stored in the database
  • in each round, the performance for one vote log entry is updated

GitHub Account

https://github.com/holgern

Sort:  

Great updates, looks like steemrewarding will be the ultimate auto-voting solution with that all functionality you have been working on.

Regarding this:

Screen Shot 2019-01-30 at 11.59.51 AM.png

I saw this code repeated/duplicated almost on all views, refactoring this into a decorator might be better to maintain less code with the same functionality.


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]

Thank you for your review, @emrebeyler! Keep up the good work!

The reward of this comment goes 100 % to the author holger80. This is done by setting the beneficiaries of this comment to 100 %.

Congratulations @holger80! You've received the first place upvote this week :)

Thanks for participating in the Seeking Open-Source Projects contest! If you haven't already. Swing by our Discord and say hello https://discord.gg/MacHHF9

Wow this project is really going well. I have my own bots, but I'd like to try this.

btw, I have some questions. As far as I know, you also manage sbi. SBI also uses some ranking like steem-ua or is it purely based on their points? While I still don't fully understand the system nor philosophy, it seems a very well-made system.

Re steem-ua, previously there was a "bug" such that it sometimes voted utopian post as a regular post if the author delegated. (so kind of disadvantage). Is this still true? I think it happens if regular steem-ua cycle just comes before the cycle for utopian.

This is totally unrelated, but Are you using some tools to create this post? especially for commits section? I actually copied your style for my first dev post, but that commit section was very time-consuming to me. Hope there is easy way to create at least commit link. Many thanks!

SBI is purely based on units each member has. More units -> higher upvote. I'm not managing it, I have programmed the automation for it.

No, I'm doing it by hand. It is time-consuming, I will think of a way to automate this :), it should be possible to read out commit messages and github links.

Thanks a lot for your replies. I'm actively using beem too together with official library. I'd really appreciate that. I've added a question about steem-ua you might have missed. Thanks!

btw, I've just voted you for witness. I wanted to do it long time ago, but you didn't answer to my questions related to beem before three times in a row, basically never :) I'm not a kid, but two things I think very important as witness is communication and (in my case, dev, but this is just personal taste, I don't think this is must). So I wanted/had to follow my philosophy though I felt guilty to use your beem :) Now I'm very happy that I voted you for witness and looking forward to seeing your exciting projects. thanks!

Are you using some tools to create this post? especially for commits section? I actually copied your style for my first dev post, but that commit section was very time-consuming to me.

You can also just create a pull request and link that instead, it saves a lot of time!

Thanks for your advice! Will do that way next time though @holger80's style looks very cool :) By the way, what's the min num of commits for utopian dev? I try to gather more, but sometimes, PO doesn't merge often. Since I'm external contributor, this may lead to just one commit for a 14 day window.

While I expected that if latest one is within 14 day, even passed one should be fine, but it seemed not based on the review for my submission.

By the way, what's the min num of commits for utopian dev?

There is no minimum (apart from 1 I guess, lol). As for the time limit rule: if it's a pull request it's within 14 days of it being merged. If commits aren't part of a pull request, then it's 14 days from them being committed.

Thanks a lot! I have a clarifying question though. I'm not a PO. Is it still okay to submit PR that hasn't been merged? If this isn't allowed, I may end up with one commit in some cases due to infrequent/irregular merging by PO.

Sorry for the late reply, I somehow completely missed this! As for your question, you are correct in saying that a PR must have been merged, so unfortunately this means that in the case of irregular merging by a PO there could be a problem. However, we try to use common sense and be a bit lenient towards stuff like this, so it's always worth asking us beforehand if you have any doubts!

No problem and thanks a lot for your answer. Yes, it should be lenient :) Thanks!

Steemrewarding gets everytime more intressting!

Thank you for this tool.
What is the different between steemrewarding.com and steemauto.com ?

steemrewarding.com has more options. It is possible to include/exclude tags and apps. It is also possible to vote not timebased but votepower based (only vote when vp is 100%).

Thank you so much for participating the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

what would be really nice is if someone could stop people from autovoting on you. I have someone who has it preset from ages ago. they are no longer active and it still autovotes before the 15 mins. So all the delayed voting in the world isn't going to help that. :(

I got a few of those too. Mine are pretty little though. It is a funny thing to be bothered by, but it does mess up the payout potential for active users.

I think that app makers would have to agree to wash out (or at least adjust to after the 15 min mark) old settings these inactive users had set up. Many people used steemauto before they went inactive, and have never returned, thinking it would continue to reward them.

I like things to move on to the new ways, so every time I see the autovote , I wince. I don't know how it scales as far as payout tbh, I'm just ocd about it. lol

I did think this might be a steemauto thing, but honestly I am too lazy to make a fuss about it. I just assume developers don't care to keep things updated otherwise they would think to stop this from happening when the new rules came into play. I actually think there are accounts that deliberately vote before the 15 mins anyway.

It's just that in the past I've seen holger go out of his way to delay his voting on my post and he seems big on this delay rewarding thing. I always think, "but holger, someone has already autovoted before 15 mins!" I just finally couldn't be quiet anymore. XD

The 15 min penalty does not reduce the author reward only the curation reward is reduced.

In some cases, a higher curation reward can be achieved when voting before 15 min due to the non-linear curation reward function. Thus, some people are vote earlier than 15 min. The author reward is not changed by this, only the curation reward.

Nice work. Enjoying the improvements. Thank you for your time.

Hi, @holger80!

You just got a 2.55% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 7.353 which ranks you at #61 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 238 contributions, your post is ranked at #4.

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

This post has been included in the latest edition of SoS Daily News - a digest of all you need to know about the State of Steem.



Congratulations @holger80! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 6000 as payout for your posts. Your next target is to reach a total payout of 7000

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

Support SteemitBoard's project! Vote for its witness and get one more award!

Hey, @holger80!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!