Author

Topic: [Contrat intelligent] Gagnez l'ETH via le contrat intelligent Ethereum (Read 339 times)

sr. member
Activity: 602
Merit: 264
ben si 2 joueurs jouent a 0.1 ETH et que le gagnant empoche 0.195 et le perdant 0.003, ça fait 0.198.....quelqu'un empoche donc 0.002 à chaque "duel"

Si tu as réelement une chance sur 2 de gagner, sur le long terme tu vas tendre à perdre.....c'est comme au casino :-)
sr. member
Activity: 812
Merit: 388
Me suis dit la même chose.

C'est le casino qui gagne à chaque fois non ?
sr. member
Activity: 602
Merit: 264
Pas très clair ce jeu!!

Et combien dans la poche du développeur?


newbie
Activity: 6
Merit: 0
[Contrat intelligent] Gagnez l'ETH via le contrat intelligent Ethereum

Voici le contrat Adresse: 0x9425503158208603dFF6FcD82De4dEE425290bA1

Vous pouvez le visiter ici: https://etherscan.io/address/0x9425503158208603dFF6FcD82De4dEE425290bA1

Il s'agit d'un contrat simple très simple, tout comme le filage d'une pièce. Vous pariez 0.1 eth, si vous gagnez, obtenez 0.195 éth. Si vous perdez, récupérez 0.003 ans.

Le gagnant / perdant dépend de la difficulté du dernier bloc éthique et de la monnaie et du hash. Le code source de ce contrat intelligent a été vérifié et publié, vous pouvez le visiter ici:
http://Https://etherscan.io/address/0x9425503158208603dFF6FcD82De4dEE425290bA1#code


Comment jouer:

Envoyez simplement 0.1 eth à 0x9425503158208603dFF6FcD82De4dEE425290bA1, PLUS NON PLUS MOINS. TERMINÉ.
Vous obtiendrez 0.195 eth (gagner) /0.003 eth (perdre) quand il y a un autre joueur envoie 0.1 eth au contrat samrt.
Si vous n'êtes pas en train d'envoyer 0.1 eth, le contrat intelligent le renverra.


[Smart Contract]Win ETH via Ethereum smart contract

Here is the contract Address :      0x9425503158208603dFF6FcD82De4dEE425290bA1

You can visit it here:       https://etherscan.io/address/0x9425503158208603dFF6FcD82De4dEE425290bA1

This is a very simple smart contract just like filpping coin.You bet 0.1 eth, if you win,get 0.195 eth. If you lose, get 0.003 eth back.

Winner/loser are depends on the last ethereum block's difficulty&coinbase&hash.The source code of this smart contract has been verified and published, you can visit it here:
https://etherscan.io/address/0x9425503158208603dFF6FcD82De4dEE425290bA1#code


How To Play:

Just send 0.1 eth to 0x9425503158208603dFF6FcD82De4dEE425290bA1  , NO MORE No LESS .  DONE.
You will get 0.195 eth(win)/0.003 eth(lose) when there is another player send 0.1 eth to the samrt contract.
If you are not sending 0.1 eth, the smart contract will send it back.


If you are using Mist,you can watch this contract,the contract json interface is :

[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "Bet 0.1ETH,no more no less.Get 0.195ETH if you win,or 0.003ETH if you lose. " } ], "payable": false, "type": "function" }, { "constant": false, "inputs": [], "name": "bet", "outputs": [], "payable": true, "type": "function" }, { "constant": true, "inputs": [], "name": "gambler2", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "bet1", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "bet2", "outputs": [ { "name": "", "type": "uint256", "value": "0" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "gambler1", "outputs": [ { "name": "", "type": "address", "value": "0x0000000000000000000000000000000000000000" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "fee", "outputs": [ { "name": "", "type": "address", "value": "0xa540e0c3ff31b57de9afd1d7067a51878bb4d601" } ], "payable": false, "type": "function" }, { "constant": true, "inputs": [], "name": "gamblers", "outputs": [ { "name": "", "type": "uint8", "value": "0" } ], "payable": false, "type": "function" }, { "inputs": [ { "name": "_fee", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": " _ fee", "template": "elements_input_address", "value": "" } ], "payable": false, "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "gambler", "type": "address" }, { "indexed": false, "name": "bid", "type": "uint256" } ], "name": "gamblerevent", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "winner", "type": "address" }, { "indexed": false, "name": "price", "type": "uint256" } ], "name": "winner", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "loser", "type": "address" }, { "indexed": false, "name": "change", "type": "uint256" } ], "name": "loser", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" } ]


Good Luck.
Jump to: