yolodice-validator 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yolodice_validator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03d4a04df2c05d0477c0058e9d6b7093c8f7faa2
|
4
|
+
data.tar.gz: 90398640c3e8737fcd4a75ab4e63b23c865bde8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc5e2bb8406acb67f6bf9c8fd473f70272282c8e1ec91cfa10a242c74d46439ec198aa4a58e382fb7ccec58e02135e14561b42a18d717bd74863cec48ca05fba
|
7
|
+
data.tar.gz: ccd71934606e527a9dc444fc33bde986dd00e61fe4c4da3390b4425b1c109d47fbb69eb59f4cbcc251a18e5e05152bc1f18dcaeb1c22d77e5058c15da3ca4c37
|
data/lib/yolodice_validator.rb
CHANGED
@@ -51,7 +51,7 @@ class YolodiceGenerator
|
|
51
51
|
# that include bet profit.
|
52
52
|
def generate_bet nonce, amount, target, range
|
53
53
|
result = roll nonce
|
54
|
-
profit = (amount * (1_000_000.
|
54
|
+
profit = (amount * (1_000_000.0 * (1 - 0.01) / target - 1)).floor
|
55
55
|
win = case range
|
56
56
|
when 'lo'
|
57
57
|
result < target
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yolodice-validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ethan_nx
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A utility that lets you verify your bets and seeds from the Bitcoin game
|
14
14
|
YOLOdice.com.
|