Pages:
Author

Topic: smart contract (btc) that pays out winning bet in price prediction game? (Read 355 times)

legendary
Activity: 2338
Merit: 2106
I would get in touch with these guys at rootstock and see if they will provide the code for you.

https://blockgeeks.com/guides/ultimate-guide-rootstock-blockchain/

It would bring attention to their project which looks like its aim is to make ETH redundant and I'm all for that. Cheesy

If you do you might want to mention changing from RSK would be a good idea it just brings to mind risky. Lol

i will try that, nice link!
i asked some people at the understandingbitcoin conference in malta and they said it is not possible to write a script that securely/safely executes a bet. but maybe rootstock has a solution.

if it does not work via a script/contract then we have to do it with escrow and multisig. maybe we ask some guys well known in the community with a good reputation and do a 3 out of 5 multisig including micgoossens and me. 
legendary
Activity: 3780
Merit: 4842
Doomed to see the future and unable to prevent it
I would get in touch with these guys at rootstock and see if they will provide the code for you.

https://blockgeeks.com/guides/ultimate-guide-rootstock-blockchain/

It would bring attention to their project which looks like its aim is to make ETH redundant and I'm all for that. Cheesy

If you do you might want to mention changing from RSK would be a good idea it just brings to mind risky. Lol
hero member
Activity: 672
Merit: 526
Your topic reminded me of a game called secondstotrade. It was a fun game and lots of people relied on it. Until that was proven to be a scam. Smartcontracts is a very interesting idea to build a game like that, but it is still not easy to achieve using the Bitcoin framework. Eventually you will need some confidence in a person. And this is always complicated.
legendary
Activity: 3780
Merit: 4842
Doomed to see the future and unable to prevent it
Here is another idea, instead people forming pools.

You can add to the contract code to pay out the number of bets multiplied by the number of entrants bet level and then the contract will subtract that and continue to the next place winner if the first did not empty the account and so forth.

Then anyone could send what ever amount they wanted even more than .1
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
legendary
Activity: 2506
Merit: 12081
BTC + Crossfit, living life.
whats a multisig escrow?  sorry  Roll Eyes
legendary
Activity: 2338
Merit: 2106
it would be indeed a good thing if participants would not know what others picked. i am afraid though that if we start to make signing messages mandatory we will lose participants who need/want it easy. how about that bets be set only through PM towards "game managers" (for example micgossens) who then publishes the bet but leaves out the picked value. it would look like
I choose signed messages to make it provably fair: everyone is responsible for keeping his own guess safe. The problem with using a game manager is that it can't be verified he doesn't share the numbers in private, and even if he doesn't share them, he can never prove that he didn't. One way or another, it can lead to drama.

we would have to have an escrow or mic or me are doing this.
A multisig escrow could work too.


very good idea!
legendary
Activity: 2506
Merit: 12081
BTC + Crossfit, living life.
I also would ask someone "minerjones or someone" to just make a BTC address receive all the participating BTC's....

but not myself, cause a highly trusted member would be more satisfying for people I think to participate.... 

and I think we can maybe find someone who's willing to do this for free, a community game "free escrow donation if we are lucky"


legendary
Activity: 1652
Merit: 4392
Be a bank
random slots for entrants would solve some of the problems but create others  Undecided
just a thought
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
it would be indeed a good thing if participants would not know what others picked. i am afraid though that if we start to make signing messages mandatory we will lose participants who need/want it easy. how about that bets be set only through PM towards "game managers" (for example micgossens) who then publishes the bet but leaves out the picked value. it would look like
I choose signed messages to make it provably fair: everyone is responsible for keeping his own guess safe. The problem with using a game manager is that it can't be verified he doesn't share the numbers in private, and even if he doesn't share them, he can never prove that he didn't. One way or another, it can lead to drama.

we would have to have an escrow or mic or me are doing this.
A multisig escrow could work too.
legendary
Activity: 1652
Merit: 4392
Be a bank
the slots are way too big as currently envisaged - $50. all the most sensible slots would get snapped up very quickly

smart contracts are not a thing in bitcoin.

can there be script that executes such a contract? if not then we would have to have an escrow or mic or me are doing this.

no. it's totally unrealistic at this stage. maybe Augur or something is working on that sort of thing but it's not safe and not necessary.
escrow is fine and proven


further thoughts - you might have to pay the escrow
actually keep the number of entrants small, keep it down to known forum entities, otherwise you will have to have address signing.
people may be more willing to take part if a % of the pot goes to a charity
legendary
Activity: 2338
Merit: 2106
the slots are way too big as currently envisaged - $50. all the most sensible slots would get snapped up very quickly

smart contracts are not a thing in bitcoin.



can there be script that executes such a contract? if not then we would have to have an escrow or mic or me are doing this.
legendary
Activity: 1652
Merit: 4392
Be a bank
the slots are way too big as currently envisaged - $50. all the most sensible slots would get snapped up very quickly

smart contracts are not a thing in bitcoin.
legendary
Activity: 2338
Merit: 2106
cause of-course many chose later on because its not fun to get someone a dollar above your price, certainly not when there is some @stake from your own pocket.
I came up with the (rather complicated) system of signing a message, posting the signature, and keeping the message private until everybody has joined. That gives all participants equal opportunities and you can't choose a dollar above someone else's guess.

it would be indeed a good thing if participants would not know what others picked. i am afraid though that if we start to make signing messages mandatory we will lose participants who need/want it easy. how about that bets be set only through PM towards "game managers" (for example micgossens) who then publishes the bet but leaves out the picked value. it would look like

"april 24th 2019: member mr example has placed a valid bet on $xxxx. btc fee is paid."

if two bets want the same spot, the later incoming bet gets notified that slot was taken already and that he/they need to pick a different slot.  on a certain date AFTER the betting is closed, all real bet values get published.
legendary
Activity: 2506
Merit: 12081
BTC + Crossfit, living life.
Like also if someones friend is interested and wanna bid under a members name...?

Like i take my price and Maybe Some friend of me wanna participate as well and i take another guess for them or so....

I think it could gain Some traction but we Will see ofcourse and the donated BTc Will surely make it very appealing to participate imo
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
cause of-course many chose later on because its not fun to get someone a dollar above your price, certainly not when there is some @stake from your own pocket.
I came up with the (rather complicated) system of signing a message, posting the signature, and keeping the message private until everybody has joined. That gives all participants equal opportunities and you can't choose a dollar above someone else's guess.
legendary
Activity: 2506
Merit: 12081
BTC + Crossfit, living life.
I tried something similar with a 0.001BTC buy-in, and nobody joined.
Micgoossens runs free prediction games, and got 155 entries in the most recent one.

I don't think you'll find anything close to 50 participants willing to pay 0.1BTC.


maybe if we team up and try again it will gain some traction. I plan to find some sponsors who are willing to spice up the amount that can be won. I already have one member who is willing to donate 1 btc for this game.

WoW with free gifts it surely Will get Some traction
Then it get way more interesting for people to join with Some extra to win
Nicely done

And Maybe Some taking more than 1 slot as well.... etc
legendary
Activity: 2338
Merit: 2106
Yeah I was thinking the idea through. Some thoughts, not about the contracts bit.

Cost
0.1 might limit participants
0.01 if you get 10 times the people will be the same prize.
Community thoughts on this advised to be sought


Price guesses
The should probably a guess at fixed range instead of a set price say 3500 to 3549


Other thoughts
Allowing multiple entries would enable someone who wanted to bet 0.1 to have the same odds as in the higher roller version

Rules set and guidance notes
Need some rules and guidance around what if a blank space wins, how do you determine the winner and when etc.
Perhaps on a blank, it goes to the next highest entrant, that might encourage a few extra higher bets with a big "luck" range


I was only thinking escrow tbh, I don't know much about smart contract except my million nothing tokens on ether somewhere.


I also thought of the range but we are still thinking for best rules etc

I maybe would think closest to a price like for example I choose  7000 than between a determined number let us say 20 "still thinking what would be good" nobody can choose anything between 6980 and 7020 or so, maybe higher number?

cause of-course many chose later on because its not fun to get someone a dollar above your price, certainly not when there is some @stake from your own pocket.

and a blank never can win if the closest to it wins...

if 0.1 is to high then maybe 0.05 or so? cause the option to make a pool is still their and its the same thing ...

also I don't know is it best one player one guess or could we allow more guesses from a single person? its stays the same and its better for the price pool of-course ...

still everybody keep the idea's coming

THX and sure its a good idea from 600watt


also we can ask a good forum member to HOLD the send BTC, maybe for a game like this one will do it for free, cause its all that goes in goes to the winner 





ranges seem a good idea.

how about $50 slots? if one wants to bet $6100 the bet would cover a range between 6100 and 6149.99 

if winning/actual price is not covered by bet then the closest one wins. it is possible that the actual price will be right in the middle of two bets. then both bets win 50% of price.
legendary
Activity: 2338
Merit: 2106
I tried something similar with a 0.001BTC buy-in, and nobody joined.
Micgoossens runs free prediction games, and got 155 entries in the most recent one.

I don't think you'll find anything close to 50 participants willing to pay 0.1BTC.


maybe if we team up and try again it will gain some traction. I plan to find some sponsors who are willing to spice up the amount that can be won. I already have one member who is willing to donate 1 btc for this game.
legendary
Activity: 2506
Merit: 12081
BTC + Crossfit, living life.
I tried something similar with a 0.001BTC buy-in, and nobody joined.
Micgoossens runs free prediction games, and got 155 entries in the most recent one.

I don't think you'll find anything close to 50 participants willing to pay 0.1BTC.

maybe, but also never know it maybe could intrest more other people... like they do a raffle for an item, there the host wins some, here the winner takes all and their is a chance to play with a small amount and maybe to win some FULL BTC, and if it wouldn't work then it was just a try Smiley
but i like the idea
Pages:
Jump to: