dPoll development update: A small step for the communities by emrebeyler

View this thread on steempeak.com
· @emrebeyler · (edited)
$41.19
dPoll development update: A small step for the communities
<center><img src="https://steemitimages.com/p/4i88GgaV8qiFU89taP2MgKXzwntUGAvkoQiKU7VxyD37q94Wi9c7sckcogtYxZUCMZDdF5zmwoKUZWw1iZw1YDMLq33p3D4GSpz3CzvSn3BMn9D8qospTKaVPt?format=match&mode=fit&width=640"></center>
<center><sup>See it online at [dpoll.xyz](https://dpoll.xyz/), and the source code at [github repository.](https://github.com/emre)</sup></center>
***

Community Polls is a requested feature for a while. By saying *Community Polls*, I mean special polls targeted to a specific audience. We don't favor implementing off-chain rules. So, we allow any account to vote for any poll. There is no change on that, however, with communities module, we have new result filters that poll detail offers breakdown on communities.

# Pilot experiment: @steemalliance 

@steemalliance has a similar use case where they need to see their poll results only for whitelisted accounts. The communities feature is not open to everyone yet. I plan to expand with more communities soon. (@dolphincouncil is next). 

That being said, if you have a community and need a similar voting tool, let me know so we can hook you up with a registered community at dPoll.

<center><img src="https://ipfs.busy.org/ipfs/QmYMCsS717eFXEdm3bHAvQfq54r9ExyT1vpALxKNPfGAzL"></center>
<center><sup>New result filters on poll detail page</sup></center>

# Custom stake based voting view

@steemalliance also needed a custom stake based voting weight algorithm where they decrease the power of the top stakeholders.

It's basically same with the traditional stake-based weight except accounts having more than 500M VESTS (roughly 250k SP). You can find more details on [this](https://steemit.com/steem/@steemalliance/extended-voter-registration-deadline-schedule-updates-and-chosen-voting-method-for-election) post.


Python implementation:
***
```
SA_STAKE_LIMIT = 500000000

def sa_stake_based_voting_point(vests):
    point = vests
    if vests > SA_STAKE_LIMIT:
        point = SA_STAKE_LIMIT * (
                math.log10(vests) - math.log10(SA_STAKE_LIMIT) + 1)

    return float(point)
```
# Notes

- The registered member list of steemalliance is not set on the dPoll yet. So, trying it with the current state may not mean much. Community owners are free to manage that list via dPoll interface.

- Community management is not synced to blockchain at the moment. All data stored off-chain inside the dPoll's database. This will be handled in the next iteration along with better community management tools.

# Pull Requests and Commits

- https://github.com/emre/dpoll.xyz/pull/101
- https://github.com/emre/dpoll.xyz/pull/102
- https://github.com/emre/dpoll.xyz/pull/103
- [Commit #9538e9aa](https://github.com/emre/dpoll.xyz/commit/9538e9aa867fdb50e8cd0e971b636d48cb1e815d)
- [Commit #b8d93504](https://github.com/emre/dpoll.xyz/commit/b8d93504635500ae37121149753283ec75bf0638)
- [Commit #d1882d1d](https://github.com/emre/dpoll.xyz/commit/d1882d1d8954f2c9cbb02753430c661bd0d7d0ae)
- [Commit #7369237b](https://github.com/emre/dpoll.xyz/commit/7369237bde0bdf3844731a06cf90388ae2d09a49)

### Vote for my witness
***
*If you like what I do, consider casting a vote on [Steemconnect](https://steemconnect.com/sign/account-witness-vote?witness=emrebeyler&approve=1) or on [Steemit](https://steemit.com/~witnesses)*


πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 585 others
properties (23)
post_id72,741,364
authoremrebeyler
permlinkdpoll-development-update-communities
categorydpoll
json_metadata{"community":"busy","app":"busy\/2.5.6","format":"markdown","tags":["dpoll","utopian-io","development","busy"],"users":["steemalliance","dolphincouncil"],"links":["https:\/\/dpoll.xyz\/","https:\/\/github.com\/emre","\/@steemalliance","\/@steemalliance","\/@dolphincouncil","\/@steemalliance","https:\/\/steemit.com\/steem\/@steemalliance\/extended-voter-registration-deadline-schedule-updates-and-chosen-voting-method-for-election","https:\/\/github.com\/emre\/dpoll.xyz\/pull\/101","https:\/\/github.com\/emre\/dpoll.xyz\/pull\/102","https:\/\/github.com\/emre\/dpoll.xyz\/pull\/103"],"image":["https:\/\/steemitimages.com\/p\/4i88GgaV8qiFU89taP2MgKXzwntUGAvkoQiKU7VxyD37q94Wi9c7sckcogtYxZUCMZDdF5zmwoKUZWw1iZw1YDMLq33p3D4GSpz3CzvSn3BMn9D8qospTKaVPt?format=match&mode=fit&width=640","https:\/\/ipfs.busy.org\/ipfs\/QmYMCsS717eFXEdm3bHAvQfq54r9ExyT1vpALxKNPfGAzL"]}
created2019-04-08 18:09:48
last_update2019-04-08 18:16:18
depth0
children11
net_rshares68,142,705,257,550
last_payout2019-04-15 18:09:48
cashout_time1969-12-31 23:59:59
total_payout_value32.194 SBD
curator_payout_value8.996 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,292
author_reputation319,480,565,467,431
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (649)
@kabir88 ·
$0.05
That's awesome @emrebeyler, this should really help the @dolphincouncil with keeping our development going and making sure there's a clear audit trail on chain of how decisions are made.
properties (22)
post_id72,750,954
authorkabir88
permlinkre-emrebeyler-dpoll-development-update-communities-20190408t232746034z
categorydpoll
json_metadata{"community":"busy","app":"busy\/2.5.6","format":"markdown","tags":["dpoll"],"users":["emrebeyler","dolphincouncil"],"links":["\/@emrebeyler","\/@dolphincouncil"]}
created2019-04-08 23:27:48
last_update2019-04-08 23:27:48
depth1
children1
net_rshares81,971,931,418
last_payout2019-04-15 23:27:48
cashout_time1969-12-31 23:59:59
total_payout_value0.038 SBD
curator_payout_value0.012 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length186
author_reputation9,428,539,925,480
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@emrebeyler ·
Thank you @kabir88! :)
πŸ‘  
properties (23)
post_id72,830,074
authoremrebeyler
permlinkre-kabir88-re-emrebeyler-dpoll-development-update-communities-20190410t104305756z
categorydpoll
json_metadata{"tags":["dpoll"],"users":["kabir88"],"app":"steemit\/0.1"}
created2019-04-10 10:43:06
last_update2019-04-10 10:43:06
depth2
children0
net_rshares4,108,167,473
last_payout2019-04-17 10:43:06
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_length22
author_reputation319,480,565,467,431
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@helo ·
$6.92
- Good article, good code & good idea!

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/3/2-3-1-1-1-1-3-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , ,
properties (23)
post_id72,751,198
authorhelo
permlinkre-emrebeyler-dpoll-development-update-communities-20190408t233801612z
categorydpoll
json_metadata{"tags":["dpoll"],"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/3\/2-3-1-1-1-1-3-","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1"}
created2019-04-08 23:38:00
last_update2019-04-08 23:38:00
depth1
children1
net_rshares11,204,382,917,291
last_payout2019-04-15 23:38:00
cashout_time1969-12-31 23:59:59
total_payout_value5.272 SBD
curator_payout_value1.648 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length488
author_reputation119,612,833,307,875
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (17)
@utopian-io ·
Thank you for your review, @helo! Keep up the good work!
properties (22)
post_id72,879,072
authorutopian-io
permlinkre-re-emrebeyler-dpoll-development-update-communities-20190408t233801612z-20190411t024853z
categorydpoll
json_metadata{"app":"beem\/0.20.17"}
created2019-04-11 02:48:54
last_update2019-04-11 02:48:54
depth2
children0
net_rshares0
last_payout2019-04-18 02:48: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_length56
author_reputation152,913,012,544,965
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
Hey, @emrebeyler!

**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_id72,767,070
authorutopian-io
permlinkre-dpoll-development-update-communities-20190409t092322z
categorydpoll
json_metadata{"app":"beem\/0.20.17"}
created2019-04-09 09:23:24
last_update2019-04-09 09:23:24
depth1
children0
net_rshares0
last_payout2019-04-16 09:23: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_length592
author_reputation152,913,012,544,965
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@shadowspub ·
you've done some great working preparing for the voting for the proposals @emrebeyler .. thank you
properties (22)
post_id72,768,363
authorshadowspub
permlinkre-emrebeyler-dpoll-development-update-communities-20190409t095919070z
categorydpoll
json_metadata{"tags":["dpoll"],"users":["emrebeyler"],"app":"steemit\/0.1"}
created2019-04-09 09:59:21
last_update2019-04-09 09:59:21
depth1
children1
net_rshares0
last_payout2019-04-16 09:59:21
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_length98
author_reputation122,086,225,405,906
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@emrebeyler ·
It’s a pleasure for me 🀘
πŸ‘  
properties (23)
post_id72,771,331
authoremrebeyler
permlinkre-shadowspub-re-emrebeyler-dpoll-development-update-communities-20190409t113359428z
categorydpoll
json_metadata{"tags":["dpoll"],"app":"steemit\/0.1"}
created2019-04-09 11:34:00
last_update2019-04-09 11:34:00
depth2
children0
net_rshares4,225,802,694
last_payout2019-04-16 11:34:00
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_length24
author_reputation319,480,565,467,431
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@pennsif ·
This post has been included in the latest edition of  [**The Steem News in 10 posts**](https://steemit.com/steem/@pennsif/the-steem-news-in-10-posts-8-april-2019) - a compilation of the key news stories on the Steem blockchain.
πŸ‘  
properties (23)
post_id72,808,949
authorpennsif
permlinkre-emrebeyler-dpoll-development-update-communities-20190410t011308110z
categorydpoll
json_metadata{"tags":["dpoll"],"links":["https:\/\/steemit.com\/steem\/@pennsif\/the-steem-news-in-10-posts-8-april-2019"],"app":"steemit\/0.1"}
created2019-04-10 01:13:09
last_update2019-04-10 01:13:09
depth1
children0
net_rshares583,365,460
last_payout2019-04-17 01:13: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_length227
author_reputation1,130,663,397,949,642
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@gadrian ·
That's a a very useful update for communities! When do you estimate to open up the new feature for any community?
properties (22)
post_id72,827,916
authorgadrian
permlinkre-emrebeyler-dpoll-development-update-communities-20190410t095229915z
categorydpoll
json_metadata{"tags":["dpoll"],"app":"steemit\/0.1"}
created2019-04-10 09:52:30
last_update2019-04-10 09:52:30
depth1
children1
net_rshares0
last_payout2019-04-17 09:52:30
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_length113
author_reputation36,400,815,307,582
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@emrebeyler ·
We will see how this will work out with a couple of communities. However, If any community wants to be a part of the test group, I am happy to hook them up.
πŸ‘  
properties (23)
post_id72,830,111
authoremrebeyler
permlinkre-gadrian-re-emrebeyler-dpoll-development-update-communities-20190410t104350382z
categorydpoll
json_metadata{"tags":["dpoll"],"app":"steemit\/0.1"}
created2019-04-10 10:43:51
last_update2019-04-10 10:43:51
depth2
children0
net_rshares4,087,947,064
last_payout2019-04-17 10:43:51
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_length156
author_reputation319,480,565,467,431
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@magicdice ·
re-emrebeyler-dpoll-development-update-communities-20190412t042453979z
<p><strong>Magic Dice</strong> has rewarded your post with a <strong>14%</strong> upvote. Thanks for playing <a href="https://magic-dice.com/">Magic Dice</a>.</p>
properties (22)
post_id72,949,236
authormagicdice
permlinkre-emrebeyler-dpoll-development-update-communities-20190412t042453979z
categorydpoll
json_metadata{"tags":["magicdice"],"app":"magicdice"}
created2019-04-12 04:24:54
last_update2019-04-12 04:24:54
depth1
children0
net_rshares0
last_payout2019-04-19 04:24: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_length162
author_reputation22,908,676,527,677
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000