PostPromoter Change vote_value to use market prices

in utopian-io •  3 months ago

Repository

https://github.com/MattyIce/postpromoter/pull/98

PostPromoter bug fix

Change vote_value to use market prices. Median prices are only closer estimates of payout for votes sold on post older than 5.25 days (7 day minus half median time).

By calculating vote value based on current steem market price instead of median price, we can correctly apply a fair fill limit and vote calculation.

GitHub Account

https://github.com/AusPrinzip

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thanks for the contribution, @lightproject! Since you submitted it to the bug hunting category, and it doesn't really follow their guidelines (the project must be included in the Utopian bug hunting whitelist, or must be associated to a bug hunting task request), we've decided to change it to the development category instead.

It's a small change, but a pretty important one. Great work!


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

·

Hi , my pleasure, thanks for the kind attention. Have a good one.

·

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

For bots that accept both STEEM and SBD, hopefully they are also not using the Median price to figure what the STEEM is worth as SBD and SBD worth as STEEM when ranking bid windows internally.

·

Yes exactly. Addressing your concern in regards of 'postpromoter' software I have tackled the issue by enforcing steem market price in the 'Fill Limit' internal function.

Hey, @lightproject!

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!

Thank you so much for sharing this amazing post with us!

Have you heard about Partiko? It’s a really convenient mobile app for Steem! With Partiko, you can easily see what’s going on in the Steem community, make posts and comments (no beneficiary cut forever!), and always stayed connected with your followers via push notification!

Partiko also rewards you with Partiko Points (3000 Partiko Point bonus when you first use it!), and Partiko Points can be converted into Steem tokens. You can earn Partiko Points easily by making posts and comments using Partiko.

We also noticed that your Steem Power is low. We will be very happy to delegate 15 Steem Power to you once you have made a post using Partiko! With more Steem Power, you can make more posts and comments, and earn more rewards!

If that all sounds interesting, you can:

Thank you so much for reading this message!