Author

Topic: Ethereum Binary Options Smart Contract! Bet Up/Down On Price Of EthPyramid! (Read 122 times)

newbie
Activity: 5
Merit: 0

If start price >= finishing price => bulls win(edited)

Otherwise bears will lose


Is that a bull always wining and the bear always loosing?
I think it still needs an edit.
With the rise in value of ETH and transaction fees, dApps games are costly to play with.

Hello,

Let me explain.

There's an Etherereum contract called EthPyramid/EthPhoenix (ethphoenix.io) where people buy/sell tokens which causes the price of those tokens to fluctuate.

What we're doing is betting whether the price of the tokens in that contract will go up within 15 minutes or down within 15 minutes.

If it goes up within 15 minutes you win.

If it goes down you lose.

Let me know if this is clear

member
Activity: 286
Merit: 11

If start price >= finishing price => bulls win(edited)

Otherwise bears will lose


Is that a bull always wining and the bear always loosing?
I think it still needs an edit.
With the rise in value of ETH and transaction fees, dApps games are costly to play with.
newbie
Activity: 5
Merit: 0
Website

https://ponzibet.github.io/bet.html


Verified Contract

https://etherscan.io/address/0x485b224c97ad56dc5b145eafdee71a7b5163f735#code

How This Works

1st slot 15 mins.

First person to place a bet triggers a call to the EthPyramid contract's buyPrice function.

People have 15 mins to claim a position up or down.

i.e. will the settlement be higher or lower than the start price

Once that 15 min period if finished we enter the claim period

Lasting another 15 mins

The person to claim sets the finishing price which will be compared to the start price

If start price >= finishing price => bulls win(edited)

Otherwise bears will lose

Everytime a claim is made the multiplier dwindles as winners are withrawing(edited)

Once that 15 mins is up

A new round has to be started in which case the relevant variables are set to zero and repeat

Notes:

Once a round's status is labelled as "expired" you can trigger a new round by placing an up or down bet. An "active" status naturally means a round is ongoing. An NAN value for the multiplier means winnings have been disbursed. High gas error means you've lost.

Discord

https://discord.gg/ApwvjSy
Jump to: