create account

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

View this thread on: hive.blogpeakd.comecency.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)
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
last_payout2019-04-15 18:09:48
cashout_time1969-12-31 23:59:59
total_payout_value32.194 HBD
curator_payout_value8.996 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,292
author_reputation448,535,049,068,622
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,703,955
net_rshares68,142,705,257,550
author_curate_reward""
vote details (649)
@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)
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
last_payout2019-04-17 09:52:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation643,152,584,552,032
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,797,928
net_rshares0
@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)
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
last_payout2019-04-17 10:43:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length156
author_reputation448,535,049,068,622
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,800,268
net_rshares4,087,947,064
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)
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
last_payout2019-04-15 23:38:00
cashout_time1969-12-31 23:59:59
total_payout_value5.272 HBD
curator_payout_value1.648 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length488
author_reputation121,547,934,535,311
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,714,967
net_rshares11,204,382,917,291
author_curate_reward""
vote details (17)
@utopian-io ·
Thank you for your review, @helo! Keep up the good work!
properties (22)
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
last_payout2019-04-18 02:48:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation152,955,367,999,756
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,852,308
net_rshares0
@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 (23)
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"],"image":[]}
created2019-04-08 23:27:48
last_update2019-04-08 23:27:48
depth1
children1
last_payout2019-04-15 23:27:48
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length186
author_reputation9,762,676,591,926
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,714,698
net_rshares81,971,931,418
author_curate_reward""
vote details (1)
@emrebeyler ·
Thank you @kabir88! :)
πŸ‘  
properties (23)
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
last_payout2019-04-17 10:43:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation448,535,049,068,622
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,800,231
net_rshares4,108,167,473
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)
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
last_payout2019-04-19 04:24:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length162
author_reputation22,890,191,383,200
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,927,095
net_rshares0
@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)
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
last_payout2019-04-17 01:13:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length227
author_reputation636,410,097,572,565
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,777,610
net_rshares583,365,460
author_curate_reward""
vote details (1)
@shadowspub ·
you've done some great working preparing for the voting for the proposals @emrebeyler .. thank you
properties (22)
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
last_payout2019-04-16 09:59:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length98
author_reputation630,162,013,273,624
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,733,867
net_rshares0
@emrebeyler ·
It’s a pleasure for me 🀘
πŸ‘  
properties (23)
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
last_payout2019-04-16 11:34:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length24
author_reputation448,535,049,068,622
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,737,084
net_rshares4,225,802,694
author_curate_reward""
vote details (1)
@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)
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
last_payout2019-04-16 09:23:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length592
author_reputation152,955,367,999,756
root_title"dPoll development update: A small step for the communities"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,732,481
net_rshares0