tx · 31LBh7QrsQK8wUTHmRHcpE5E2cWU4ghUT4PfeSBA6D5g 3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn: -0.01400000 Waves 2020.01.03 18:09 [837837] smart account 3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn > SELF 0.00000000 Waves
{ "type": 13, "id": "31LBh7QrsQK8wUTHmRHcpE5E2cWU4ghUT4PfeSBA6D5g", "fee": 1400000, "feeAssetId": null, "timestamp": 1578064177273, "version": 1, "sender": "3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn", "senderPublicKey": "6ZjaNmnAvx6D1PtkZEHppdJPoEJ9mhBhRTq8fcTT59Xd", "proofs": [ "3rHLAYVupvLGEbnF57up2SeJSkovisVnNiEiWvuqXC5VH1SS5Gysz4dhMe4gYifR1Sr4FH3ekXGTwoWk3v6B3Teq" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAACAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQIAAAAHcTFfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQIAAAAHcTJfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAUAAAAHcTJzdGFydAUAAAACc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MJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABdQUAAAAHJG1hdGNoMAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIJAQAAAAV0aHJvdwAAAAADBQAAAAZldmVudDEJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyAgAAAA1fZXZlbnQxYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyCQAAaAAAAAIFAAAADGV2ZW50MWFtb3VudAAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsAwUAAAAGZXZlbnQyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgIAAAANX2V2ZW50MmFtb3VudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDJhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAClldmVudCBkaWQgbm90IGhhcHBlbiBvciB5b3UgaGF2ZSB6ZXJvIHdpbgAAAAD16vRZ", "chainId": 84, "height": 837837, "spentComplexity": 0 } View: original | compacted Prev: G7UyRohLprpcNZjdimVfUn5psdSBfUwxeBjFr6jYy9mL Next: 2rgx6WjLpSMMgUe1yo2fzgTeAwMZBWvmEDrCCmRTZSUk Diff:
Old | New | Differences | |
---|---|---|---|
16 | 16 | let g = 100 | |
17 | 17 | ||
18 | 18 | func h () = { | |
19 | - | let i = if (isDefined("q1_next")) | |
19 | + | let i = if (!(isDefined("q1_next"))) | |
20 | 20 | then getIntegerValue(this, "q1_next") | |
21 | 21 | else a | |
22 | 22 | i | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func j () = { | |
27 | - | let k = if (isDefined("q2_next")) | |
27 | + | let k = if (!(isDefined("q2_next"))) | |
28 | 28 | then getIntegerValue(this, "q2_next") | |
29 | 29 | else b | |
30 | 30 | k | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func l () = { | |
35 | - | let m = if (isDefined("debtAmount1")) | |
35 | + | let m = if (!(isDefined("debtAmount1"))) | |
36 | 36 | then getIntegerValue(this, "debtAmount1") | |
37 | 37 | else 0 | |
38 | 38 | m | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func n () = { | |
43 | - | let o = if (isDefined("debtAmount2")) | |
43 | + | let o = if (!(isDefined("debtAmount2"))) | |
44 | 44 | then getIntegerValue(this, "debtAmount2") | |
45 | 45 | else 0 | |
46 | 46 | o | |
101 | 101 | let B = if (!(isDefined("count"))) | |
102 | 102 | then getIntegerValue(this, "count") | |
103 | 103 | else 0 | |
104 | - | throw(toString(B)) | |
104 | + | let C = if (!(isDefined((toString(y.caller) + "_event1DebtForThisPlayer")))) | |
105 | + | then getIntegerValue(this, (toString(y.caller) + "_event1DebtForThisPlayer")) | |
106 | + | else 0 | |
107 | + | let D = if (!(isDefined((toString(y.caller) + "_event2DebtForThisPlayer")))) | |
108 | + | then getIntegerValue(this, (toString(y.caller) + "_event2DebtForThisPlayer")) | |
109 | + | else 0 | |
110 | + | let m = l() | |
111 | + | let o = n() | |
112 | + | let i = h() | |
113 | + | let k = j() | |
114 | + | let E = (B + 1) | |
115 | + | if ((q == 1)) | |
116 | + | then if ((e > r)) | |
117 | + | then { | |
118 | + | let F = (C + (i * r)) | |
119 | + | let G = (m - (i * r)) | |
120 | + | let H = (o + r) | |
121 | + | let I = x(r, G, H) | |
122 | + | let J = I[0] | |
123 | + | let K = I[1] | |
124 | + | WriteSet([DataEntry((toString(y.caller) + "_event1DebtForThisPlayer"), F), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
125 | + | } | |
126 | + | else if (if ((r > e)) | |
127 | + | then (g > r) | |
128 | + | else false) | |
129 | + | then { | |
130 | + | let L = p("q1_next", r) | |
131 | + | let F = (C + (L * r)) | |
132 | + | let G = (m - (L * r)) | |
133 | + | let H = (o + r) | |
134 | + | let I = x(r, G, H) | |
135 | + | let J = I[0] | |
136 | + | let K = I[1] | |
137 | + | WriteSet([DataEntry((toString(y.caller) + "_event1DebtForThisPlayer"), F), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
138 | + | } | |
139 | + | else throw("incorrect bet amount") | |
140 | + | else if ((e > r)) | |
141 | + | then { | |
142 | + | let M = (D + (k * r)) | |
143 | + | let H = (o - (k * r)) | |
144 | + | let G = (m + r) | |
145 | + | let I = x(r, G, H) | |
146 | + | let J = I[0] | |
147 | + | let K = I[1] | |
148 | + | WriteSet([DataEntry((toString(y.caller) + "_event2DebtForThisPlayer"), M), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
149 | + | } | |
150 | + | else if (if ((r > e)) | |
151 | + | then (f > r) | |
152 | + | else false) | |
153 | + | then { | |
154 | + | let N = p("q2_next", r) | |
155 | + | let M = (D + (N * r)) | |
156 | + | let H = (o - (N * r)) | |
157 | + | let G = (m + r) | |
158 | + | let I = x(r, G, H) | |
159 | + | let J = I[0] | |
160 | + | let K = I[1] | |
161 | + | WriteSet([DataEntry((toString(y.caller) + "_event2DebtForThisPlayer"), M), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
162 | + | } | |
163 | + | else throw("incorrect bet amount") | |
105 | 164 | } | |
106 | 165 | ||
107 | 166 | ||
108 | 167 | ||
109 | 168 | @Callable(y) | |
110 | 169 | func withdraw () = { | |
111 | - | let | |
170 | + | let O = { | |
112 | 171 | let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer")) | |
113 | 172 | if ($isInstanceOf(z, "Unit")) | |
114 | 173 | then { | |
115 | - | let | |
174 | + | let P = z | |
116 | 175 | 0 | |
117 | 176 | } | |
118 | 177 | else if ($isInstanceOf(z, "Int")) | |
119 | 178 | then { | |
120 | - | let | |
121 | - | | |
179 | + | let Q = z | |
180 | + | Q | |
122 | 181 | } | |
123 | 182 | else throw() | |
124 | 183 | } | |
125 | - | let | |
184 | + | let R = { | |
126 | 185 | let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer")) | |
127 | 186 | if ($isInstanceOf(z, "Unit")) | |
128 | 187 | then { | |
129 | - | let | |
188 | + | let P = z | |
130 | 189 | 0 | |
131 | 190 | } | |
132 | 191 | else if ($isInstanceOf(z, "Int")) | |
133 | 192 | then { | |
134 | - | let | |
135 | - | | |
193 | + | let Q = z | |
194 | + | Q | |
136 | 195 | } | |
137 | 196 | else throw() | |
138 | 197 | } | |
139 | - | let | |
198 | + | let S = { | |
140 | 199 | let z = getBoolean(this, "result_event_1") | |
141 | 200 | if ($isInstanceOf(z, "Unit")) | |
142 | 201 | then { | |
143 | - | let | |
202 | + | let P = z | |
144 | 203 | false | |
145 | 204 | } | |
146 | 205 | else if ($isInstanceOf(z, "Boolean")) | |
150 | 209 | } | |
151 | 210 | else throw() | |
152 | 211 | } | |
153 | - | let | |
212 | + | let T = { | |
154 | 213 | let z = getBoolean(this, "result_event_2") | |
155 | 214 | if ($isInstanceOf(z, "Unit")) | |
156 | 215 | then { | |
157 | - | let | |
216 | + | let P = z | |
158 | 217 | false | |
159 | 218 | } | |
160 | 219 | else if ($isInstanceOf(z, "Boolean")) | |
164 | 223 | } | |
165 | 224 | else throw() | |
166 | 225 | } | |
167 | - | if ( | |
168 | - | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, ( | |
169 | - | else if ( | |
170 | - | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, ( | |
226 | + | if (S) | |
227 | + | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (O * 1000000), unit)])) | |
228 | + | else if (T) | |
229 | + | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (R * 1000000), unit)])) | |
171 | 230 | else throw("event did not happen or you have zero win") | |
172 | 231 | } | |
173 | 232 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 190 | |
5 | 5 | ||
6 | 6 | let b = 190 | |
7 | 7 | ||
8 | 8 | let c = 52 | |
9 | 9 | ||
10 | 10 | let d = 1000 | |
11 | 11 | ||
12 | 12 | let e = 10 | |
13 | 13 | ||
14 | 14 | let f = 2 | |
15 | 15 | ||
16 | 16 | let g = 100 | |
17 | 17 | ||
18 | 18 | func h () = { | |
19 | - | let i = if (isDefined("q1_next")) | |
19 | + | let i = if (!(isDefined("q1_next"))) | |
20 | 20 | then getIntegerValue(this, "q1_next") | |
21 | 21 | else a | |
22 | 22 | i | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func j () = { | |
27 | - | let k = if (isDefined("q2_next")) | |
27 | + | let k = if (!(isDefined("q2_next"))) | |
28 | 28 | then getIntegerValue(this, "q2_next") | |
29 | 29 | else b | |
30 | 30 | k | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func l () = { | |
35 | - | let m = if (isDefined("debtAmount1")) | |
35 | + | let m = if (!(isDefined("debtAmount1"))) | |
36 | 36 | then getIntegerValue(this, "debtAmount1") | |
37 | 37 | else 0 | |
38 | 38 | m | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func n () = { | |
43 | - | let o = if (isDefined("debtAmount2")) | |
43 | + | let o = if (!(isDefined("debtAmount2"))) | |
44 | 44 | then getIntegerValue(this, "debtAmount2") | |
45 | 45 | else 0 | |
46 | 46 | o | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func p (q,r) = { | |
51 | 51 | let s = getIntegerValue(this, q) | |
52 | 52 | let t = (((1 * 100000) - (s * 1000)) / (g - e)) | |
53 | 53 | let u = ((1 * 100000) - (t * g)) | |
54 | 54 | let v = (((r * t) + u) / 1000) | |
55 | 55 | v | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func w (s,c) = { | |
60 | 60 | let w = pow(((c + 1000) - (100000 / s)), 0, -1, 0, 5, DOWN) | |
61 | 61 | w | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func x (r,m,o) = if ((0 > m)) | |
66 | 66 | then { | |
67 | 67 | let t = (((1 * 1000000) - (a * 10000)) / d) | |
68 | 68 | let u = ((1 * 1000000) - (t * d)) | |
69 | 69 | let i = ((-(t) * m) + (u / 1000)) | |
70 | 70 | let k = w(i, c) | |
71 | 71 | [i, k] | |
72 | 72 | } | |
73 | 73 | else if ((m > 0)) | |
74 | 74 | then { | |
75 | 75 | let t = (((1 * 1000000) - (a * 10000)) / d) | |
76 | 76 | let u = ((1 * 1000000) - (t * d)) | |
77 | 77 | let k = ((-(t) * o) + (u / 1000)) | |
78 | 78 | let i = w(k, c) | |
79 | 79 | [i, k] | |
80 | 80 | } | |
81 | 81 | else { | |
82 | 82 | let i = a | |
83 | 83 | let k = b | |
84 | 84 | [i, k] | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | @Callable(y) | |
89 | 89 | func bet (q) = { | |
90 | 90 | let r = { | |
91 | 91 | let z = y.payment | |
92 | 92 | if ($isInstanceOf(z, "AttachedPayment")) | |
93 | 93 | then { | |
94 | 94 | let A = z | |
95 | 95 | if ((f > A.amount)) | |
96 | 96 | then throw("low payment") | |
97 | 97 | else A.amount | |
98 | 98 | } | |
99 | 99 | else throw("Payment not attached") | |
100 | 100 | } | |
101 | 101 | let B = if (!(isDefined("count"))) | |
102 | 102 | then getIntegerValue(this, "count") | |
103 | 103 | else 0 | |
104 | - | throw(toString(B)) | |
104 | + | let C = if (!(isDefined((toString(y.caller) + "_event1DebtForThisPlayer")))) | |
105 | + | then getIntegerValue(this, (toString(y.caller) + "_event1DebtForThisPlayer")) | |
106 | + | else 0 | |
107 | + | let D = if (!(isDefined((toString(y.caller) + "_event2DebtForThisPlayer")))) | |
108 | + | then getIntegerValue(this, (toString(y.caller) + "_event2DebtForThisPlayer")) | |
109 | + | else 0 | |
110 | + | let m = l() | |
111 | + | let o = n() | |
112 | + | let i = h() | |
113 | + | let k = j() | |
114 | + | let E = (B + 1) | |
115 | + | if ((q == 1)) | |
116 | + | then if ((e > r)) | |
117 | + | then { | |
118 | + | let F = (C + (i * r)) | |
119 | + | let G = (m - (i * r)) | |
120 | + | let H = (o + r) | |
121 | + | let I = x(r, G, H) | |
122 | + | let J = I[0] | |
123 | + | let K = I[1] | |
124 | + | WriteSet([DataEntry((toString(y.caller) + "_event1DebtForThisPlayer"), F), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
125 | + | } | |
126 | + | else if (if ((r > e)) | |
127 | + | then (g > r) | |
128 | + | else false) | |
129 | + | then { | |
130 | + | let L = p("q1_next", r) | |
131 | + | let F = (C + (L * r)) | |
132 | + | let G = (m - (L * r)) | |
133 | + | let H = (o + r) | |
134 | + | let I = x(r, G, H) | |
135 | + | let J = I[0] | |
136 | + | let K = I[1] | |
137 | + | WriteSet([DataEntry((toString(y.caller) + "_event1DebtForThisPlayer"), F), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
138 | + | } | |
139 | + | else throw("incorrect bet amount") | |
140 | + | else if ((e > r)) | |
141 | + | then { | |
142 | + | let M = (D + (k * r)) | |
143 | + | let H = (o - (k * r)) | |
144 | + | let G = (m + r) | |
145 | + | let I = x(r, G, H) | |
146 | + | let J = I[0] | |
147 | + | let K = I[1] | |
148 | + | WriteSet([DataEntry((toString(y.caller) + "_event2DebtForThisPlayer"), M), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
149 | + | } | |
150 | + | else if (if ((r > e)) | |
151 | + | then (f > r) | |
152 | + | else false) | |
153 | + | then { | |
154 | + | let N = p("q2_next", r) | |
155 | + | let M = (D + (N * r)) | |
156 | + | let H = (o - (N * r)) | |
157 | + | let G = (m + r) | |
158 | + | let I = x(r, G, H) | |
159 | + | let J = I[0] | |
160 | + | let K = I[1] | |
161 | + | WriteSet([DataEntry((toString(y.caller) + "_event2DebtForThisPlayer"), M), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_qoef2"), k), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)]) | |
162 | + | } | |
163 | + | else throw("incorrect bet amount") | |
105 | 164 | } | |
106 | 165 | ||
107 | 166 | ||
108 | 167 | ||
109 | 168 | @Callable(y) | |
110 | 169 | func withdraw () = { | |
111 | - | let | |
170 | + | let O = { | |
112 | 171 | let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer")) | |
113 | 172 | if ($isInstanceOf(z, "Unit")) | |
114 | 173 | then { | |
115 | - | let | |
174 | + | let P = z | |
116 | 175 | 0 | |
117 | 176 | } | |
118 | 177 | else if ($isInstanceOf(z, "Int")) | |
119 | 178 | then { | |
120 | - | let | |
121 | - | | |
179 | + | let Q = z | |
180 | + | Q | |
122 | 181 | } | |
123 | 182 | else throw() | |
124 | 183 | } | |
125 | - | let | |
184 | + | let R = { | |
126 | 185 | let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer")) | |
127 | 186 | if ($isInstanceOf(z, "Unit")) | |
128 | 187 | then { | |
129 | - | let | |
188 | + | let P = z | |
130 | 189 | 0 | |
131 | 190 | } | |
132 | 191 | else if ($isInstanceOf(z, "Int")) | |
133 | 192 | then { | |
134 | - | let | |
135 | - | | |
193 | + | let Q = z | |
194 | + | Q | |
136 | 195 | } | |
137 | 196 | else throw() | |
138 | 197 | } | |
139 | - | let | |
198 | + | let S = { | |
140 | 199 | let z = getBoolean(this, "result_event_1") | |
141 | 200 | if ($isInstanceOf(z, "Unit")) | |
142 | 201 | then { | |
143 | - | let | |
202 | + | let P = z | |
144 | 203 | false | |
145 | 204 | } | |
146 | 205 | else if ($isInstanceOf(z, "Boolean")) | |
147 | 206 | then { | |
148 | 207 | let u = z | |
149 | 208 | u | |
150 | 209 | } | |
151 | 210 | else throw() | |
152 | 211 | } | |
153 | - | let | |
212 | + | let T = { | |
154 | 213 | let z = getBoolean(this, "result_event_2") | |
155 | 214 | if ($isInstanceOf(z, "Unit")) | |
156 | 215 | then { | |
157 | - | let | |
216 | + | let P = z | |
158 | 217 | false | |
159 | 218 | } | |
160 | 219 | else if ($isInstanceOf(z, "Boolean")) | |
161 | 220 | then { | |
162 | 221 | let u = z | |
163 | 222 | u | |
164 | 223 | } | |
165 | 224 | else throw() | |
166 | 225 | } | |
167 | - | if ( | |
168 | - | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, ( | |
169 | - | else if ( | |
170 | - | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, ( | |
226 | + | if (S) | |
227 | + | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (O * 1000000), unit)])) | |
228 | + | else if (T) | |
229 | + | then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (R * 1000000), unit)])) | |
171 | 230 | else throw("event did not happen or you have zero win") | |
172 | 231 | } | |
173 | 232 | ||
174 | 233 |
github/deemru/w8io/169f3d6 74.93 ms ◑