SteemFlagRewards Project Update: Doubling Down on Dust! by anthonyadavisii

View this thread on steempeak.com
· @anthonyadavisii · (edited)
$45.58
SteemFlagRewards Project Update: Doubling Down on Dust!
![image.png](https://ipfs.busy.org/ipfs/QmP168RXXVTzVX2wUqDP71jbFbNSytkj2b4VavHNYBKEUF)

### Hello, My Flaggy fellows fighting abuse on the Steem blockchain!

<center>https://ipfs.busy.org/ipfs/QmaXfDVjczpqNts6ptxDijzCjQwAjYcu134dcwdwJa6EMn</center>

### Repository

https://github.com/anthonyadavisii/steemflagrewards

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; We try our best to be and equal opportunity flag reward service. That means we try our best to reward meaningful tracking / downvoting of abuse from lil stake to BIG stake.

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; We want to encourage everyone while optimizing the Steem Power.  To be good stewards of our bot's delegated SP, we must make smart decision. 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Our greatest shortfall is decisive support in terms of Steem Power. We are very thankful for the delegators of our existing 14k SP but we could use a lot more help to reward as many legitimate flags as possible. We make a difference everyday with the stake allotted and desire to do more. If you are frustrated seeing the prevalent abuses on the platform, this is YOUR fight. 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  We may reach a point in which we give priority to delegating flaggers to be fair. I like to consider us a team so believe it is critical that we support or bot which, in turn, supports one another.

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; By delegating to the SFR bot, we invest not only in the health of the platform but also in own our stake. That's the way it should be. We'll discuss that more but let's get back to the topic of dust.

### What is the challenge in regard to dust downvotes?

The minimum payout threshold. You can see the code for yourself on [Github](https://github.com/steemit/steem/blob/181099297954c86608744a956715753c937356f9/libraries/protocol/include/steem/protocol/config.hpp).

```#define STEEM_MIN_PAYOUT_SBD                  (asset(20,SBD_SYMBOL))```

Simply put, if your comment or post is not worth 0.02 SBD or above, no payout for you!

<center>https://i.imgflip.com/2p7o85.jpg
*Rewards Nazi don't play!*</center>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The goal is for every @steemflagrewards bot comment to exceed minimum payout of 0.02 SBD.  This allows the SFR account to grow via curation rewards. This is especially important with the occurrence of retaliatory flags from abusers.

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; It is ideal to be well above this threshold in that case. Even so, we have given near dust voters a little bit of wiggle room to accomodate fluctuating vote values. Below is the code we use to evaluate dust. Note that this value will be moved to the config file in future updates to facilitate ease of adjusting.

```
if stm.rshares_to_sbd(abs(int(v['rshares']))) < 0.0195:
	dust = True
``` 

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This modified the approve function to bypass upvoting the mentions below the threshold. It's still tracked for the regular 8 Flagger beneficiary reward posts. Still yet, I wanted to do more for these brave dust flaggers as I value them especially in numbers. You never know when it could be a dust vote that brings an abuse post below payout so they matter. 

### What did I do about that?

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Our reports are currently set up to rewards quantity of flags. It doesn't matter if you are a 10,000 SP flagger or a 500 SP flagger. Rather, we use the number of abuse posts the user has reviewed and flagged for beneficiary weight.

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;I figured we are able to make up for the lack of votes on dust flags by giving an extra count for the beneficiary posts. It's far from perfect especially considering the variability of @steemflagrewards post payouts.  Still yet, I hope it will encourage lower SP users to participate in community moderation.

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; It took me a bit of finessing the Structured Query Language code but I finally figured it out. The code is below. I'd be happy to provide a copy of our sqlite DB if anybody believes they can improve it. I am always open to suggestions and how I can learn from other coders on the platform.

```
    benlist = []
    flags = []
    #queries flags exceeding minimum payout
    payoutflags = cursor.execute(
        'SELECT flagger FROM steemflagrewards WHERE included == 0 AND flagger IN flaggers')
    for q in payoutflags.fetchall():
        flags.append(str(q).split('\'')[1])#extracts username from tuple
    #queries flags below dust threshold
    dustflags = cursor.execute(
        'SELECT flagger FROM steemflagrewards WHERE (included == 0 AND dust == 1) AND flagger IN flaggers')
    for q in dustflags.fetchall():
        flags.append(str(q).split('\'')[1])#extracts username from tuple
    flaggers = set(flags)
    for flagger in flaggers:
        benlist.append({'account': flagger, 'weight': int(flags.count(flagger)/len(flags)*9500)})
    benlist= sorted(benlist, key=lambda k: k['account'],reverse=False) 
```

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; We had been running from a couple of sophisticated queries created by @flugschwein.  Problem was that I was having a hard time understanding them. It makes sense to offload the logic to our Python interpreter which I am more capable of adjusting.  I  have acquired a bit of SQL knowledge in my professional career but it's pretty basic. It is obvious that, if I will be committing my time and energy to maintaining the bot, need to make it as easy as possible. Trying to understand nested SELECT statements makes my head spin a little.

<center>https://media.giphy.com/media/cLtvKDcQYkSRO/giphy.gif
*me_irl*</center>

This is the one we were using for the flagger posts previously:

```sql = cursor.execute(
	'''SELECT flagger, COUNT(*) * 95 * 10 / (SELECT COUNT(*) FROM steemflagrewards WHERE included == 0 AND
	flagger IN flaggers) FROM steemflagrewards WHERE flagger in flaggers AND included == 0 GROUP BY flagger ORDER
	BY flagger;''')
```

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This is the query I had attempted for the dust votes and then divide by 2 to get the actual beneficiary weight. It seemed to have worked but with a margin of error. The new code is a bit more slim and the last post checks out with the dust beneficiary rewards.

For example, see the following for beneficiary rewards on this [post](https://steemit.com/steemflagrewards/@steemflagrewards/steem-flag-rewards-report---8-flagger-post---2018-12-16-2330)

![image.png](https://ipfs.busy.org/ipfs/QmQi3J9BpL3PryY82CRVceLyXowM8ZFJZ81DtMcuwTYLcg)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @noblebot, our friendly neighborhood dust flagger coded by @reazuliqbal, sent 6 flags, whereas @freebornangel, a more heavy hitting flagger above the min. payout value, sent 9 flags. As you can see, @noblebot's beneficiary weight is greater by 483 so this means that they will get a bigger slice of the pie on the flagger post which is nice. 

<center>![image.png](https://ipfs.busy.org/ipfs/QmUwqaG3SsSoWnv3q3jzvktzPyjRG72zS7B7mmHwvJCqPg)
*This tends to be my silver lining go-to meme*</center>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; You never know when that dust downvote will be the proverbial straw that breaks the camel's back.  It is my belief that Steem as a community will benefit supporting these flagger posts. For example, they aid in the development of flag support bots such as this.. Hope you will take this as food for thought if you are not already a supporter.

<center><sub> Hint hint: SFR is on [SteemAuto](https://steemauto.com/dash.php?i=2&fan=steemflagrewards)! Follow it to support the cause! Every vote helps. </sub></center>

![image.png](https://ipfs.busy.org/ipfs/QmShV8vvU7LfKTDAgy2DCZEthCotvqYq4Tb1ZuA5pX1RGi)

[Dust Bunny Clip Art](http://worldartsme.com/dust-bunny-clipart.html#gal_post_23226_dust-bunny-clipart-1.jpg)

### Would you like to delegate to the Steem Flag Rewards project and promote decentralized moderation? Here are some handy delegation links!

[50 SP](https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=50%20SP)[100 SP](https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=100%20SP)[500 SP](https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=500%20SP)[1000 SP](https://steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=1000%20SP)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 65 others
πŸ‘Ž  
properties (23)
post_id67,553,222
authoranthonyadavisii
permlinksteemflagrewards-project-update-doubling-down-on-dust
categoryutopian-io
json_metadata{"format":"markdown","users":["steemflagrewards","flugschwein","noblebot","reazuliqbal","freebornangel"],"image":["https:\/\/ipfs.busy.org\/ipfs\/QmP168RXXVTzVX2wUqDP71jbFbNSytkj2b4VavHNYBKEUF"],"community":"busy","app":"steemit\/0.1","tags":["utopian-io","antiabuse","steemflagrewards","dust","busy"],"links":["https:\/\/github.com\/anthonyadavisii\/steemflagrewards","https:\/\/github.com\/steemit\/steem\/blob\/181099297954c86608744a956715753c937356f9\/libraries\/protocol\/include\/steem\/protocol\/config.hpp","https:\/\/steemit.com\/steemflagrewards\/@steemflagrewards\/steem-flag-rewards-report---8-flagger-post---2018-12-16-2330","https:\/\/steemauto.com\/dash.php?i=2&fan=steemflagrewards","http:\/\/worldartsme.com\/dust-bunny-clipart.html#gal_post_23226_dust-bunny-clipart-1.jpg","https:\/\/steemconnect.com\/sign\/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=50%20SP","https:\/\/steemconnect.com\/sign\/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=100%20SP","https:\/\/steemconnect.com\/sign\/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=500%20SP","https:\/\/steemconnect.com\/sign\/delegateVestingShares?delegator=&delegatee=steemflagrewards&vesting_shares=1000%20SP"]}
created2018-12-17 23:25:27
last_update2018-12-18 12:44:42
depth0
children10
net_rshares85,544,753,697,433
last_payout2018-12-24 23:25:27
cashout_time1969-12-31 23:59:59
total_payout_value33.599 SBD
curator_payout_value11.985 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length8,466
author_reputation126,215,040,536,555
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries
0.
accountsteemplus-pay
weight500
1.
accountutopian.pay
weight500
max_accepted_payout100,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (130)
@kalif ·
So for the minnows. I'm receiving right now before this change 0.65 Steem/week from my flag reports. Just to put it numbers to see how much it will change in 2 weeks :D
πŸ‘  
properties (23)
post_id67,554,797
authorkalif
permlinkre-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t002025204z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-12-18 00:20:24
last_update2018-12-18 00:20:24
depth1
children1
net_rshares4,068,410,300
last_payout2018-12-25 00:20:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length168
author_reputation4,222,362,886,512
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@anthonyadavisii ·
The bene. rewards are helpful. The change has been in effect a couple of day so let us know!
πŸ‘  , ,
πŸ‘Ž  , , ,
properties (23)
post_id67,559,043
authoranthonyadavisii
permlinkre-kalif-re-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t024959563z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-12-18 02:50:03
last_update2018-12-18 02:50:03
depth2
children0
net_rshares33,765,402,191
last_payout2018-12-25 02:50:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length92
author_reputation126,215,040,536,555
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (7)
@enforcer48 ·
$6.18
Good day @anthonyadavisii!

You are thoughtful to consider incentives for planktons who cannot flag above $0.02. Flagging is dirty business and often puts abuse fighters at risk for retaliation. I hope the extra bonus will encourage more flags from those whose values dropped due to the bear market.

An important aspect that you have pointed out was understanding another coder's codes. It is an open source project, and anyone is welcome to contribute. At the same time, that is the type of obstacle contributors would have to hurdle.

It would be interesting to see if this change will promote more flags from smaller flaggers.

___

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/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](https://review.utopian.io/result/13/1-1-1-3-2-1-3-1-4-2-).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , ,
properties (23)
post_id67,555,287
authorenforcer48
permlinkre-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t003913341z
categoryutopian-io
json_metadata{"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/13\/1-1-1-3-2-1-3-1-4-2-","https:\/\/support.utopian.io\/","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"users":["anthonyadavisii"],"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-12-18 00:39:18
last_update2018-12-18 00:39:18
depth1
children1
net_rshares10,700,351,260,700
last_payout2018-12-25 00:39:18
cashout_time1969-12-31 23:59:59
total_payout_value4.676 SBD
curator_payout_value1.501 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,140
author_reputation72,258,491,181,307
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (16)
@utopian-io ·
Thank you for your review, @enforcer48! Keep up the good work!
properties (22)
post_id67,667,370
authorutopian-io
permlinkre-re-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t003913341z-20181220t104325z
categoryutopian-io
json_metadata{"app":"beem\/0.20.9"}
created2018-12-20 10:43:27
last_update2018-12-20 10:43:27
depth2
children0
net_rshares0
last_payout2018-12-27 10:43:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length62
author_reputation152,913,012,544,965
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @anthonyadavisii!

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](https://discord.gg/KpBNYGz)**
πŸ‘  ,
properties (23)
post_id67,555,745
authorsteem-ua
permlinkre-steemflagrewards-project-update-doubling-down-on-dust-20181218t005601z
categoryutopian-io
json_metadata{"app":"beem\/0.20.14"}
created2018-12-18 00:56:03
last_update2018-12-18 00:56:03
depth1
children1
net_rshares6,944,263,607
last_payout2018-12-25 00:56:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length294
author_reputation23,203,609,903,979
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@anthonyadavisii ·
Thank you!
πŸ‘  
properties (23)
post_id67,559,058
authoranthonyadavisii
permlinkre-steem-ua-re-steemflagrewards-project-update-doubling-down-on-dust-20181218t005601z-20181218t025024702z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-12-18 02:50:27
last_update2018-12-18 02:50:27
depth2
children0
net_rshares4,195,070,393
last_payout2018-12-25 02:50:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length10
author_reputation126,215,040,536,555
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steevc ·
Keep up the good work. I really admire minnows who are willing to flag and I'll give them a vote for doing so
πŸ‘  
properties (23)
post_id67,567,497
authorsteevc
permlinkre-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t072400389z
categoryutopian-io
json_metadata{"app":"steemit\/0.1","tags":["utopian-io"]}
created2018-12-18 07:24:03
last_update2018-12-18 07:24:03
depth1
children0
net_rshares3,930,361,490
last_payout2018-12-25 07:24:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length109
author_reputation273,317,013,544,223
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steemhq ·
re-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t134753953z
![YOU JUST GOT UPVOTED](https://www.steemhq.com/CommunityBotUpvote.png)

**Congratulations,**
you just received a 11.05% upvote from @steemhq - Community Bot!

***Wanna join and receive free upvotes yourself?***
Vote for `steemhq.witness` on [Steemit](https://steemit.com/~witnesses) or directly on [SteemConnect](https://steemconnect.com/sign/account-witness-vote?witness=steemhq.witness&approve=1 "This link will take you away from steemit.com") and join the [Community Witness](https://www.steemhq.com/witness).
![](https://steemitimages.com/0x0/https://www.steemhq.com/steemhq_voting.gif)

This service was brought to you by [SteemHQ.com](https://www.steemhq.com)
properties (22)
post_id67,579,733
authorsteemhq
permlinkre-anthonyadavisii-steemflagrewards-project-update-doubling-down-on-dust-20181218t134753953z
categoryutopian-io
json_metadata{"app":"communitybot\/1.1.0"}
created2018-12-18 13:47:54
last_update2018-12-18 13:47:54
depth1
children0
net_rshares0
last_payout2018-12-25 13:47:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length667
author_reputation4,222,362,886,512
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-plus ·
SteemPlus upvote
Hi, @anthonyadavisii!

You just got a **8.65%** 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](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
properties (22)
post_id67,585,064
authorsteem-plus
permlinksteemflagrewards-project-update-doubling-down-on-dust---vote-steemplus
categoryutopian-io
json_metadata{}
created2018-12-18 15:59:09
last_update2018-12-18 15:59:09
depth1
children0
net_rshares0
last_payout2018-12-25 15:59:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length442
author_reputation247,995,867,762,997
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
Hey, @anthonyadavisii!

**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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

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

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
post_id67,588,253
authorutopian-io
permlinkre-steemflagrewards-project-update-doubling-down-on-dust-20181218t172151z
categoryutopian-io
json_metadata{"app":"beem\/0.20.9"}
created2018-12-18 17:21:54
last_update2018-12-18 17:21:54
depth1
children0
net_rshares0
last_payout2018-12-25 17:21:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length597
author_reputation152,913,012,544,965
root_title"SteemFlagRewards Project Update: Doubling Down on Dust!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000