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