Redfish Lottery

in #lottery5 years ago (edited)

As you can read here I recently started a program to help the redfish that suffer not having enough RC's to interact with the chain.

We are already supporting the first redfish with delegations, but there are many more requests than we are able to fill. We can really use more support, so please donate or delegate to @curatorbot if you want to support the redfish, which are the lifeblood for the steem ecosystem.

Delegation links: 20SP; 50SP ; 100SP ; 200SP ; 500SP
Note that any delegation or donation will give you daily free upvotes on your post as an added thanks to our supporters.


Today I am trying a new method to promote @curatorbot. I am holding an upvote lottery. The entire post payout (up to 5 steem) will be won by a random person choosen from all upvotes on this post. But the jackpot is not paid in steem but in redfish-shares. These work much like steem-basic-income in that the holder of these redfish-shares will get a lifetime of daily upvotes on their posts. However the shares are managed by @curatorbot and the steem is also used to help the redfish community. Just by upvoting you get a small chance to win, but your vote's value will help the redfish in any case.

If you want to participate in this raffle, simply upvote this post. The random drawing of the winner will be in roughly 48 hours from now. Good luck!


I am upvoting just for the fun of it but I think that this redfish subsidy RC workaround should come from the protocol itself. That's what the winesses are paid for afterall.

I do agree, but that is not the case (yet?).

But as a holder of steem power, we are part of the system and we have an interest to drive the price of steem up. And I beleive that supporting redfish is one of the best ways to do this.

This is the great part about open systems like steem, I can act without having to ask for permission. I think there should be more delegations to redfish and I can just build a system to make that happen. Then I can support it with my own stake and hope that others will follow and do the same.

I was called to perform a provably fair random drawing for @reversed-bidbot!

There are a 1333 tickets participating in this round.
@notagenius holds tickets number 0 - 11
@eforucom holds tickets number 12 - 22
@frdem3dot0 holds tickets number 23 - 73
@zero-profit holds tickets number 74 - 550
@curatorbot holds tickets number 551 - 587
@freebornsociety holds tickets number 588 - 633
@builderofcastles holds tickets number 634 - 667
@smjn holds tickets number 668 - 846
@johnvibes holds tickets number 847 - 859
@hueso holds tickets number 860 - 989
@albertvhons holds tickets number 990 - 1024
@paradigm42 holds tickets number 1025 - 1030
@reversed-bidbot holds tickets number 1031 - 1058
@freebornangel holds tickets number 1059 - 1166
@elleok holds tickets number 1167 - 1332
The merkle root of the block in which this post will appear determines the winner.

The block in which the above post is included has a merkle root of 5d64d894bc72583eadf1fed027324d8c30f0e50a.
To find the winner we:

  1. Convert the merkle root into base 10:
    5d64d894bc72583eadf1fed027324d8c30f0e50a = 533185083072510277447466028633619559836558615818.
  2. Compute the residual after dividing by the number of tickets: 1052.
  3. This is the winning ticket, held by @reversed-bidbot.


So... 738? @smjn wins?
Why didn't you do the last math?

1052 is the number of the winning ticket. The number of shares is 1333.
But 533185083072510277447466028633619559836558615818 % 1333 still is not 1052 so something went wrong. There should be some obvious mistake.

The real winner is @zero-profit with ticket 469

Silly me believed 1052 was the number of tickets, which is obviously not by the tickets list.
If you run a witness you would have 1/21 chances of cheating the raffle.

That is right, also a witnesses could try to cheat when participating. The latter can be fixed by me publishing a hash of a random number that will be added to the Merkle root. And this is simple to implement. I have not done this since the chance of a witness cheating now is almost zero, but should amounts rise I can do it.

To prevent me form cheating if I were a top 21 witness, users would need to be able to submit hashes and later within a time window provide the corresponding number. That would massively complicate the entire procedure. Right now I don't think this is nessecary as the plan to become a top 21 witness just to cheat 30 cent raffles is a bit redicoulous.

Posted using Partiko Android

thanks for pointing out the mistake. I found the problem. I was doing the following very simple calculation in python

int(merkle_root,16) % tickets
with the merkle root above and tickets = 1333

the correct result is 469, but python only finds that when tickets is an int. Hoever in my code tickets was assumed to be a float.
Ususally this is no problem but it causes python to use a numerical result that eventually fails for very big numbers. In this case python tells me that

533185083072510277447466028633619559836558615818 % 1333 = 469
533185083072510277447466028633619559836558615818 % 1333. = 1052

I have now fixed the bug. The old way was still random, but I am not sure it was fair (in the way that all tickets were equally likely to win).
I also changed the way the bot presents the result to make it more understandable what happens.

You got an upvote from @zero-profit at the courtesy of @frdem3dot0

Find more information about @zero-profit here.
Screenshot 2018-10-01 14.23.34.png

Delegation links: 20SP; 50SP ; 100SP ; 200SP ; 500SP

This post is promoted by @reversed-bidbot as an upvote lottery with a jackpot of 5.000 steem!

There are still up to 25000 tickets waiting to be distributed.

Tickets are distributed according to the value of your upvotes with a multiplier of 5000.0.
Upvote the post to participate and claim your tickets!

Excluded from participation are: bidbots, autovoters.

The jackpot is paid in redfish_shares by @curatorbot, giving you lifetime upvotes while supporting the redfish community. Find more information here.

Follow me to also earn steem on my other promoted posts. For more details please visit my discord server or read my introduction post

I wish, redfish read coz most of them don't

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by frdem3dot0 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.

Coin Marketplace

STEEM 0.25
TRX 0.14
JST 0.033
BTC 51549.47
ETH 3060.48
USDT 1.00
SBD 4.19