huntalan81
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 07:21:15 AM |
|
Yes! Finally a good work, good site! I will take into some ETH!
|
Delete my negative trust, pls.
|
|
|
densuj
Legendary
Offline
Activity: 910
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 07:33:43 AM |
|
Hi all! I have sucesfully started my site: http://ethereumlottery.net. I hope you like it. In case of failure write here in the topic. BR: -iFA I have opened your website via android everything is ok, but there are not FAQ on there and it is make me confuse. I hope you can add it or you add something are like tutorial on the website or in here. Thanks
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 09:23:26 AM |
|
Hey there. I think there is a problem with loterry D. I like the concept but I check my chance of winning and it's ridicilously low !!!! If I place a 5 ETH bet, I can win *10 but only have a chance of winning of 1/26000000 !!!!! ONE OVER 26 MILLIONS ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) ?? that's crazy, no one in his right mind will play this game !! We win if : bigNumber * difficultyMultipler % difficulty_ == 0 but with the max bet of 5 ETH, difficulty is equal to 26 000 000. So 1 chance / 26000000 that the remainder of the division will be 0. Insanely low for a *10 gain !!! Scam ? ![Angry](https://bitcointalk.org/Smileys/default/angry.gif)
|
|
|
|
huntalan81
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 10:10:35 AM |
|
Hey there. I think there is a problem with loterry D. I like the concept but I check my chance of winning and it's ridicilously low !!!! If I place a 5 ETH bet, I can win *10 but only have a chance of winning of 1/26000000 !!!!! ONE OVER 26 MILLIONS ![Huh](https://bitcointalk.org/Smileys/default/huh.gif) ?? that's crazy, no one in his right mind will play this game !! We win if : bigNumber * difficultyMultipler % difficulty_ == 0 but with the max bet of 5 ETH, difficulty is equal to 26 000 000. So 1 chance / 26000000 that the remainder of the division will be 0. Insanely low for a *10 gain !!! Scam ? ![Angry](https://bitcointalk.org/Smileys/default/angry.gif) No, you calculaded badly. Chance 1/26 - not 1/26000000.
|
Delete my negative trust, pls.
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 11:11:53 AM Last edit: June 05, 2016, 12:00:04 PM by sydhelly |
|
No I did not make a mistake.
Check in mist : enter 5e18 in bet you get 26000000
And it's not a rate. It's the value of diffculty in the equation.
bigNumber * difficultyMultipler % difficulty_ == 0
So the hash number * 1000 (diff multipler) has to be a multiple of 260000000 for you to win. 1 chance over 260 000.
I know solidity. I did not make a mistake.
This game is a scam.
|
|
|
|
iFA88 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 11:52:41 AM |
|
Dear densuj, I dont have FAQ yet, but i would write one ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) The website is created for desktop use at most. Best regards: -iFA Hi all! I have sucesfully started my site: http://ethereumlottery.net. I hope you like it. In case of failure write here in the topic. BR: -iFA I have opened your website via android everything is ok, but there are not FAQ on there and it is make me confuse. I hope you can add it or you add something are like tutorial on the website or in here. Thanks
|
|
|
|
huntalan81
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 12:05:53 PM |
|
No I did not make a mistake.
Check in mist : enter 5e18 in bet you get 26000000
And it's not a rate. It's the value of diffculty in the equation.
bigNumber * difficultyMultipler % difficulty_ == 0
So the hash number * 1000 (diff multipler) has to be a multiple of 260000000 for you to win. 1 chance over 260 000.
I know solidity. I did not make a mistake.
This game is a scam.
"a multiple of 260000000" / 1 000 000 - this step is missing in your calculation But contact the developer - he told me this.
|
Delete my negative trust, pls.
|
|
|
iFA88 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 12:09:59 PM |
|
Dear sydhelly, Thank you for your respond. I have disabled the contract until i check this! I don't want to create a scam contract. Best regards: -iFA No I did not make a mistake.
Check in mist : enter 5e18 in bet you get 26000000
And it's not a rate. It's the value of diffculty in the equation.
bigNumber * difficultyMultipler % difficulty_ == 0
So the hash number * 1000 (diff multipler) has to be a multiple of 260000000 for you to win. 1 chance over 26 millions.
I know solidity. I did not make a mistake.
This game is a scam.
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 12:13:22 PM |
|
Ok good to know,
Thanks a lot for the feedback Ifa
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 12:14:37 PM |
|
"a multiple of 260000000" / 1 000 000 - this step is missing in your calculation
But contact the developer - he told me this.
The solidity code is all I trust, it never lies. And in the code, it is not divided by 1million.
|
|
|
|
iFA88 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 12:39:51 PM |
|
Dear sydhelly, You have confused me ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) I have checked the source code and i think it stills fine. I try prove my right: I think you have not checked this: (this is in the makeRoll function) if (bigNumber * difficultyMultipler % difficulty_ == 0) { Thats mean when i multiple the A number what i module with the B number i got the same result. Examples: #1 (with lose) bigNumber = 16171794848463 difficultyMultipler = 1000000 difficulty_ = 26000000 bigNumber * difficultyMultipler % difficulty_ = 7000000 #2 (with lose) bigNumber = 16171794848463 difficultyMultipler = 100000 difficulty_ = 2600000 bigNumber * difficultyMultipler % difficulty_ = 700000 #3 (with lose) bigNumber = 16171794848463 difficultyMultipler = 1 difficulty_ = 26 bigNumber * difficultyMultipler % difficulty_ = 7 #4 (with win) bigNumber = 118268331246 difficultyMultipler = 1000000 difficulty_ = 26000000 bigNumber * difficultyMultipler % difficulty_ = 0 #5 (with win) bigNumber = 118268331246 difficultyMultipler = 100000 difficulty_ = 2600000 bigNumber * difficultyMultipler % difficulty_ = 0 #6 (with win) bigNumber = 118268331246 difficultyMultipler = 1 difficulty_ = 26 bigNumber * difficultyMultipler % difficulty_ = 0 I wait for you respone. I dont create new contract until we dont have cleared the situation. Best regards: -iFA
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 01:48:11 PM Last edit: June 05, 2016, 03:24:10 PM by sydhelly |
|
Thanks for the clarification IFA,
I think it's clearer now, but I'm not sure it's solved.
So If I understand you, you say that
big Number * 1 million % 26 * 1 million
is the same as
big Number % 26 ?
I'm not sure the probabilities are preserved. In this case yes because we can factor 1million in each side.
But take for instance a bet of 1.1 ether, difficulty of 118181817.
so now it would be big Number * 1 million % 118181817
your proof does not work for this case, you can't divide anymore without altering the result.
|
|
|
|
iFA88 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 03:16:24 PM |
|
Your welcome! Yes correct! So i create the contract again ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thanks for the clarification IFA,
Hmm I think it's clearer now.
so it's like this :
big Number * 1 million % 26 * 1 million ?
so it's like big Number % 26 ?
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 03:24:38 PM |
|
I have edited my message, I think it is not correct in fact !
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 03:28:18 PM |
|
But take for instance a bet of 1.1 ether, difficulty of 118181817.
so now it would be big Number * 1 million % 118181817
your proof does not work for this case, you can't divide anymore without altering the result.
so suppose you have bigNumber % 118 =0 you don't have big Number * 1 million % 118181817
|
|
|
|
iFA88 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 03:43:14 PM |
|
I have a lot times tested today. If the Difficulty is 26'000'000 you have 1:26 rate for win. When you play with 1.1 ether, then the Difficulty is 118'181'817. Thats mean you have 1:118.181817 to win. This is simple Math ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) But take for instance a bet of 1.1 ether, difficulty of 118181817.
so now it would be big Number * 1 million % 118181817
your proof does not work for this case, you can't divide anymore without altering the result.
so suppose you have bigNumber % 118 =0 you don't have big Number * 1 million % 118181817
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 03:48:59 PM |
|
When you play with 1.1 ether, then the Difficulty is 118'181'817. Thats mean you have 1:118.181817 to win. This is simple Math ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) no it's false. You assume you can divide both sides of the modulo and preserve the chances, it does not work like that. the bignumber*1million should be a multiple of 118'181'817 for your contract to trigger the transaction. that's 1 chance over 118'181'817 it's not the same as bigNumber divisable by 118 which is a chance over 118. Btw you should know that there are no float (real) numbers in solidity so your 118.18 makes no sense.
|
|
|
|
iFA88 (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 05, 2016, 04:38:31 PM |
|
This is the reason that we need to work with big numbers. Please check this my Friend: http://pastebin.com/fhF3i6y0If you see, when you increase the number then the result will be 0 on every 26 time. This mean: 1:26 for get the result: 0 ! I have now whats wrong! When the Difficulty changes under 1 million then the success rate is absolute high. Example when you want play with 1.1 ether and you get 118181817 Diffi, then you have 1 : 59 090 908 rate. This means the calculation is wrong. I disable the contract until i can fix this problem.Very thankful for your report! I will reply when i'm done with the contract. Best regards: -iFA no it's false. You assume you can divide both sides of the modulo and preserve the chances, it does not work like that.
the bignumber*1million should be a multiple of 118'181'817 for your contract to trigger the transaction. that's 1 chance over 118'181'817
it's not the same as bigNumber divisable by 118 which is a chance over 118.
Btw you should know that there are no float (real) numbers in solidity so your 118.18 makes no sense.
|
|
|
|
|
sydhelly
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
June 06, 2016, 04:59:50 PM |
|
GJob for the update. I will read the code when I have time and let you know what I think. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
|