tx · 6w5gnQyfma8Yz2Q4qwPtG1PmcUnDCQbycYReJCyzSdYF

3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD:  -0.01500000 Waves

2019.10.03 17:52 [703675] smart account 3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD > SELF 0.00000000 Waves

{ "type": 13, "id": "6w5gnQyfma8Yz2Q4qwPtG1PmcUnDCQbycYReJCyzSdYF", "fee": 1500000, "feeAssetId": null, "timestamp": 1570114363137, "version": 1, "sender": "3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD", "senderPublicKey": "8W9JLTJTfxrJrBNXxngzueBF4vJqeb6p9jFob7wb6QWQ", "proofs": [ "3kMtxoEZhmq9ekDzWwZH7mbRGMNffZN3xmd1mL9z9TtGJHsGv4UU6MaBwVxYYdteLth2bys5By6PQxSRrAN6FyFa" ], "script": "base64:AAIDAAAAAAAAAAwIARIAEgYKBAgCAgIAAAAjAAAAAA1yc2FQdWJsaWNLZXkxCQACWwAAAAECAAAAh2Jhc2U2NDpNRnd3RFFZSktvWklodmNOQVFFQkJRQURTd0F3U0FKQkFPa2l1ei9CVjRFam94R2hUbU5DYnQyVGdrYlNQSC93NjliM0YxckttRDYxSmlQWHZ2RjhMMnBJOXhPWWNXNEZtb0VaVkhsUlF0QWxhSnlrbDMrcnNyRUNBd0VBQVE9PQAAAAANcnNhUHVibGljS2V5MgkAAlsAAAABAgAAAIdiYXNlNjQ6TUZ3d0RRWUpLb1pJaHZjTkFRRUJCUUFEU3dBd1NBSkJBSm5YemJNL1Yyc0RWMVVMYlBTT2xIa2xkT1RXUnJIaTVmeElrQm11ZXZyQ2xNUFZIN3JxY2N3aXJETmNNZElkd1hISTlBZGhqOUZXandHSXdmVS9LNk1DQXdFQUFRPT0AAAAADXJzYVB1YmxpY0tleTMJAAJbAAAAAQIAAACHYmFzZTY0Ok1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQU9SRGV2eTByN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AAA9zZW5kZXJQdWJsaWNLZXkHCFRVYA==", "chainId": 84, "height": 703675, "spentComplexity": 0 } View: original | compacted Prev: G9VyeGTSJB3annR4NbFn3J4YvxigUSsprChZtP4Phr8h Next: F8138U8E9hDf27kAe4xjZXqXftVsNcJyQ4yZHwM7Go8G Diff:
OldNewDifferences
2929
3030 let n = base58'EmcmfM27TPaemhuREZGD8WLvsuLCdqx8WovMrDQKbXS1'
3131
32-let o = 100000000
32+let o = 1000
3333
34-let p = (o * 10)
34+let p = (100000000 / o)
3535
36-let q = 10000
36+let q = (p * 10)
3737
38-let r = (q * 10)
38+let r = (10000 / o)
3939
40-let s = 1000000
40+let s = (r * 10)
4141
42-let t = (s * 10)
42+let t = (1000000 / o)
4343
44-let u = 2000000
44+let u = (t * 10)
4545
46-let v = (u * 10)
46+let v = (2000000 / o)
4747
48-let w = 500000000
48+let w = (v * 10)
4949
50-let x = (w * 10)
50+let x = (500000000 / o)
5151
52-let y = 500000000
52+let y = (x * 10)
5353
54-let z = (y * 10)
54+let z = (500000000 / o)
5555
56-func A (B,C) = if ((B == "WAVES"))
57- then if (if ((C >= o))
58- then (p >= C)
56+let A = (z * 10)
57+
58+func B (C,D) = if ((C == "WAVES"))
59+ then if (if ((D >= p))
60+ then (q >= D)
5961 else false)
6062 then true
6163 else throw("Bet amount is not in range")
62- else if ((B == "BTC"))
63- then if (if ((C >= q))
64- then (r >= C)
64+ else if ((C == "BTC"))
65+ then if (if ((D >= r))
66+ then (s >= D)
6567 else false)
6668 then true
6769 else throw("Bet amount is not in range")
68- else if ((B == "ETH"))
69- then if (if ((C >= s))
70- then (t >= C)
70+ else if ((C == "ETH"))
71+ then if (if ((D >= t))
72+ then (u >= D)
7173 else false)
7274 then true
7375 else throw("Bet amount is not in range")
74- else if ((B == "LTC"))
75- then if (if ((C >= u))
76- then (v >= C)
76+ else if ((C == "LTC"))
77+ then if (if ((D >= v))
78+ then (w >= D)
7779 else false)
7880 then true
7981 else throw("Bet amount is not in range")
80- else if ((B == "WCT"))
81- then if (if ((C >= w))
82- then (x >= C)
82+ else if ((C == "WCT"))
83+ then if (if ((D >= x))
84+ then (y >= D)
8385 else false)
8486 then true
8587 else throw("Bet amount is not in range")
86- else if (if ((C >= y))
87- then (z >= C)
88+ else if (if ((D >= z))
89+ then (A >= D)
8890 else false)
8991 then true
9092 else throw("Bet amount is not in range")
9193
9294
93-func D (C,B) = {
94- let E = {
95- let F = getInteger(this, ("Reserved_" + B))
96- let G = F
97- if ($isInstanceOf(G, "Int"))
95+func E (D,C) = {
96+ let F = {
97+ let G = getInteger(this, ("Reserved_" + C))
98+ let H = G
99+ if ($isInstanceOf(H, "Int"))
98100 then {
99- let H = G
100- H
101+ let I = H
102+ I
101103 }
102104 else 0
103105 }
104- let I = (E + C)
105- if ((wavesBalance(this) >= I))
106+ let J = (F + D)
107+ if ((wavesBalance(this) >= J))
106108 then {
107- let D = I
108- D
109+ let E = J
110+ E
109111 }
110112 else throw("Bet was rejected. Insufficient funds on game account.")
111113 }
112114
113115
114-func J (K) = {
115- let L = getString(this, K)
116- let H = {
117- let G = L
118- if ($isInstanceOf(G, "String"))
116+func K (L) = {
117+ let M = getString(this, L)
118+ let I = {
119+ let H = M
120+ if ($isInstanceOf(H, "String"))
119121 then {
120- let H = G
121- H
122+ let I = H
123+ I
122124 }
123125 else throw("GameId was not found")
124126 }
125- split(H, "_")
127+ split(I, "_")
126128 }
127129
128130
129-func M (N) = if ((2 > N))
131+func N (O) = if ((2 > O))
130132 then "7"
131- else if ((4 > N))
133+ else if ((4 > O))
132134 then "6"
133- else if ((6 > N))
135+ else if ((6 > O))
134136 then "5"
135- else if ((8 > N))
137+ else if ((8 > O))
136138 then "4"
137- else if ((10 > N))
139+ else if ((10 > O))
138140 then "3"
139- else if ((12 > N))
141+ else if ((12 > O))
140142 then "2"
141143 else "1"
142144
143145
144-func O (K,P,Q) = {
145- let R = rsaVerify(SHA256, toBytes(K), P, Q)
146- if (R)
146+func P (L,Q,R) = {
147+ let S = rsaVerify(SHA256, toBytes(L), Q, R)
148+ if (S)
147149 then {
148- let N = ((toInt(sha256(P)) % 19) + 1)
149- if (if ((N > 0))
150- then (20 >= N)
150+ let O = ((toInt(sha256(Q)) % 19) + 1)
151+ if (if ((O > 0))
152+ then (20 >= O)
151153 else false)
152- then N
154+ then O
153155 else throw("Rsa integer is not in range")
154156 }
155157 else throw("Rsa Signature is invalid")
156158 }
157159
158160
159-func S (T,U) = {
160- let F = getInteger(this, ("Reserved_" + U))
161- let V = {
162- let G = F
163- if ($isInstanceOf(G, "Int"))
161+func T (U,V) = {
162+ let G = getInteger(this, ("Reserved_" + V))
163+ let W = {
164+ let H = G
165+ if ($isInstanceOf(H, "Int"))
164166 then {
165- let H = G
166- H
167+ let I = H
168+ I
167169 }
168170 else 0
169171 }
170- let S = (V - T)
171- if ((S > 0))
172- then S
172+ let T = (W - U)
173+ if ((T > 0))
174+ then T
173175 else throw("Reserved balance couldn't be less than 0")
174176 }
175177
176178
177-func W (X,Y) = if ((X == "777"))
179+func X (Y,Z) = if ((Y == "777"))
178180 then 5370
179- else if ((X == "666"))
181+ else if ((Y == "666"))
180182 then 1300
181- else if ((X == "555"))
183+ else if ((Y == "555"))
182184 then 450
183- else if ((X == "444"))
185+ else if ((Y == "444"))
184186 then 200
185- else if ((X == "333"))
187+ else if ((Y == "333"))
186188 then 150
187- else if ((X == "222"))
189+ else if ((Y == "222"))
188190 then 110
189- else if ((X == "111"))
191+ else if ((Y == "111"))
190192 then 40
191- else if ((Y == "77"))
193+ else if ((Z == "77"))
192194 then 270
193- else if ((Y == "66"))
195+ else if ((Z == "66"))
194196 then 130
195- else if ((Y == "55"))
197+ else if ((Z == "55"))
196198 then 65
197- else if ((Y == "44"))
199+ else if ((Z == "44"))
198200 then 30
199- else if ((Y == "33"))
201+ else if ((Z == "33"))
200202 then 20
201- else if ((Y == "22"))
203+ else if ((Z == "22"))
202204 then 15
203- else if ((Y == "11"))
205+ else if ((Z == "11"))
204206 then 10
205207 else 0
206208
207209
208-func Z (aa) = if ((aa == "WAVES"))
210+func aa (ab) = if ((ab == "WAVES"))
209211 then i
210- else if ((aa == "BTC"))
212+ else if ((ab == "BTC"))
211213 then j
212- else if ((aa == "ETH"))
214+ else if ((ab == "ETH"))
213215 then k
214- else if ((aa == "LTC"))
216+ else if ((ab == "LTC"))
215217 then l
216- else if ((aa == "VST"))
218+ else if ((ab == "VST"))
217219 then m
218- else if ((aa == "WCT"))
220+ else if ((ab == "WCT"))
219221 then n
220222 else throw("Asset name is incorrect")
221223
222224
223-@Callable(ab)
225+@Callable(ac)
224226 func bet () = {
225- let ac = extract(ab.payment)
226- let C = ac.amount
227- let K = toBase58String(ab.transactionId)
228- let ad = height
229- let ae = toBase58String(ab.callerPublicKey)
230- let B = if (!(isDefined(ac.assetId)))
227+ let ad = extract(ac.payment)
228+ let D = ad.amount
229+ let L = toBase58String(ac.transactionId)
230+ let ae = height
231+ let af = toBase58String(ac.callerPublicKey)
232+ let C = if (!(isDefined(ad.assetId)))
231233 then "WAVES"
232- else if ((ac.assetId == j))
234+ else if ((ad.assetId == j))
233235 then "BTC"
234- else if ((ac.assetId == k))
236+ else if ((ad.assetId == k))
235237 then "ETH"
236- else if ((ac.assetId == l))
238+ else if ((ad.assetId == l))
237239 then "LTC"
238- else if ((ac.assetId == n))
240+ else if ((ad.assetId == n))
239241 then "WCT"
240- else if ((ac.assetId == m))
242+ else if ((ad.assetId == m))
241243 then "VST"
242244 else throw("AssetId is incorrect")
243- let af = D(C, B)
244- let ag = A(B, C)
245- if (ag)
245+ let ag = E(D, C)
246+ let ah = B(C, D)
247+ if (ah)
246248 then {
247- let ah = ((((((((e + "_") + ae) + "_") + toString(C)) + "_") + B) + "_") + toString(ad))
248- WriteSet([DataEntry(K, ah), DataEntry(("Reserved_" + B), af)])
249+ let ai = ((((((((e + "_") + af) + "_") + toString(D)) + "_") + C) + "_") + toString(ae))
250+ WriteSet([DataEntry(L, ai), DataEntry(("Reserved_" + C), ag)])
249251 }
250252 else throw("assetId is incorrect")
251253 }
252254
253255
254256
255-@Callable(ab)
256-func withdraw (K,ai,aj,ak) = {
257- let al = J(K)
258- let am = al[0]
259- let an = addressFromPublicKey(fromBase58String(al[1]))
260- let T = parseIntValue(al[2])
261- let aa = al[3]
262- let ad = parseIntValue(al[4])
263- let ao = Z(aa)
264- let ap = (d > (height - ad))
265- let aq = (am == e)
266- let af = S(T, aa)
267- let ar = {
268- let as = O(K, ai, a)
269- let at = O(K, aj, b)
270- let au = O(K, ak, c)
271- let av = M(as)
272- let aw = M(at)
273- let ax = M(au)
274-[av, aw, ax]
257+@Callable(ac)
258+func withdraw (L,aj,ak,al) = {
259+ let am = K(L)
260+ let an = am[0]
261+ let ao = addressFromPublicKey(fromBase58String(am[1]))
262+ let U = parseIntValue(am[2])
263+ let ab = am[3]
264+ let ae = parseIntValue(am[4])
265+ let ap = aa(ab)
266+ let aq = (d > (height - ae))
267+ let ar = (an == e)
268+ let ag = T(U, ab)
269+ let as = {
270+ let at = P(L, aj, a)
271+ let au = P(L, ak, b)
272+ let av = P(L, al, c)
273+ let aw = N(at)
274+ let ax = N(au)
275+ let ay = N(av)
276+[aw, ax, ay]
275277 }
276- let ay = {
277- let X = ((ar[0] + ar[1]) + ar[2])
278- let Y = (ar[0] + ar[1])
279- let az = W(X, Y)
280- ((T * az) / 10)
278+ let az = {
279+ let Y = ((as[0] + as[1]) + as[2])
280+ let Z = (as[0] + as[1])
281+ let aA = X(Y, Z)
282+ ((U * aA) / 10)
281283 }
282- let aA = ((((((al[1] + "_") + al[2]) + "_") + al[3]) + "_") + al[4])
283- let aB = ((ar[0] + ar[1]) + ar[2])
284- if (aq)
285- then if (ap)
286- then if ((ay == 0))
287- then WriteSet([DataEntry(K, (((h + aA) + toString(ay)) + aB)), DataEntry(("Reserved_" + aa), af)])
288- else ScriptResult(WriteSet([DataEntry(K, (((f + aA) + toString(ay)) + aB)), DataEntry(("Reserved_" + aa), af)]), TransferSet([ScriptTransfer(an, ay, ao)]))
289- else ScriptResult(WriteSet([DataEntry(K, (g + aA)), DataEntry(("Reserved_" + aa), af)]), TransferSet([ScriptTransfer(an, T, ao)]))
284+ let aB = ((((((am[1] + "_") + am[2]) + "_") + am[3]) + "_") + am[4])
285+ let aC = ((as[0] + as[1]) + as[2])
286+ if (ar)
287+ then if (aq)
288+ then if ((az == 0))
289+ then WriteSet([DataEntry(L, (((h + aB) + toString(az)) + aC)), DataEntry(("Reserved_" + ab), ag)])
290+ else ScriptResult(WriteSet([DataEntry(L, (((f + aB) + toString(az)) + aC)), DataEntry(("Reserved_" + ab), ag)]), TransferSet([ScriptTransfer(ao, az, ap)]))
291+ else ScriptResult(WriteSet([DataEntry(L, (g + aB)), DataEntry(("Reserved_" + ab), ag)]), TransferSet([ScriptTransfer(ao, U, ap)]))
290292 else throw("Game state is incorrect")
291293 }
292294
293295
294-@Verifier(aC)
295-func aD () = {
296- let G = aC
297- if ($isInstanceOf(G, "TransferTransaction"))
296+@Verifier(aD)
297+func aE () = {
298+ let H = aD
299+ if ($isInstanceOf(H, "TransferTransaction"))
298300 then {
299- let aE = G
300- let F = getInteger(this, "Reserved")
301- let aF = {
302- let aG = F
303- if ($isInstanceOf(aG, "Int"))
301+ let aF = H
302+ let G = getInteger(this, "Reserved")
303+ let aG = {
304+ let aH = G
305+ if ($isInstanceOf(aH, "Int"))
304306 then {
305- let H = aG
306- H
307+ let I = aH
308+ I
307309 }
308310 else 0
309311 }
310- let aH = (wavesBalance(this) - aF)
311- let aI = (aH >= aE.amount)
312- let aJ = sigVerify(aE.bodyBytes, aE.proofs[0], aE.senderPublicKey)
313- if (aI)
314- then aJ
312+ let aI = (wavesBalance(this) - aG)
313+ let aJ = (aI >= aF.amount)
314+ let aK = sigVerify(aF.bodyBytes, aF.proofs[0], aF.senderPublicKey)
315+ if (aJ)
316+ then aK
315317 else false
316318 }
317- else if ($isInstanceOf(G, "SetScriptTransaction"))
319+ else if ($isInstanceOf(H, "SetScriptTransaction"))
318320 then {
319- let aK = G
320- sigVerify(aK.bodyBytes, aK.proofs[0], aK.senderPublicKey)
321+ let aL = H
322+ sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
321323 }
322- else if ($isInstanceOf(G, "InvokeScriptTransaction"))
324+ else if ($isInstanceOf(H, "InvokeScriptTransaction"))
323325 then {
324- let aL = G
325- sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
326+ let aM = H
327+ sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey)
326328 }
327329 else false
328330 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOkiuz/BV4EjoxGhTmNCbt2TgkbSPH/w69b3F1rKmD61JiPXvvF8L2pI9xOYcW4FmoEZVHlRQtAlaJykl3+rsrECAwEAAQ==")
55
66 let b = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJnXzbM/V2sDV1ULbPSOlHkldOTWRrHi5fxIkBmuevrClMPVH7rqccwirDNcMdIdwXHI9Adhj9FWjwGIwfU/K6MCAwEAAQ==")
77
88 let c = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAORDevy0r4kzLqOySloB63Huv2e4zeHKHjCsy5vtFKmWZbXJa8gZYt4+EklFIo1K9oqu5BAPVfJ3FOzs2U1A+g0CAwEAAQ==")
99
1010 let d = (1440 * 2)
1111
1212 let e = "Accepted"
1313
1414 let f = "Win"
1515
1616 let g = "WinByTimeout"
1717
1818 let h = "Lose"
1919
2020 let i = unit
2121
2222 let j = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'
2323
2424 let k = base58'BrmjyAWT5jjr3Wpsiyivyvg5vDuzoX2s93WgiexXetB3'
2525
2626 let l = base58'BNdAstuFogzSyN2rY3beJbnBYwYcu7RzTHFjW88g8roK'
2727
2828 let m = base58'AMFteLfPzPhTsFc3NfvHG7fSRUnsp3tJXPH88G1PCisT'
2929
3030 let n = base58'EmcmfM27TPaemhuREZGD8WLvsuLCdqx8WovMrDQKbXS1'
3131
32-let o = 100000000
32+let o = 1000
3333
34-let p = (o * 10)
34+let p = (100000000 / o)
3535
36-let q = 10000
36+let q = (p * 10)
3737
38-let r = (q * 10)
38+let r = (10000 / o)
3939
40-let s = 1000000
40+let s = (r * 10)
4141
42-let t = (s * 10)
42+let t = (1000000 / o)
4343
44-let u = 2000000
44+let u = (t * 10)
4545
46-let v = (u * 10)
46+let v = (2000000 / o)
4747
48-let w = 500000000
48+let w = (v * 10)
4949
50-let x = (w * 10)
50+let x = (500000000 / o)
5151
52-let y = 500000000
52+let y = (x * 10)
5353
54-let z = (y * 10)
54+let z = (500000000 / o)
5555
56-func A (B,C) = if ((B == "WAVES"))
57- then if (if ((C >= o))
58- then (p >= C)
56+let A = (z * 10)
57+
58+func B (C,D) = if ((C == "WAVES"))
59+ then if (if ((D >= p))
60+ then (q >= D)
5961 else false)
6062 then true
6163 else throw("Bet amount is not in range")
62- else if ((B == "BTC"))
63- then if (if ((C >= q))
64- then (r >= C)
64+ else if ((C == "BTC"))
65+ then if (if ((D >= r))
66+ then (s >= D)
6567 else false)
6668 then true
6769 else throw("Bet amount is not in range")
68- else if ((B == "ETH"))
69- then if (if ((C >= s))
70- then (t >= C)
70+ else if ((C == "ETH"))
71+ then if (if ((D >= t))
72+ then (u >= D)
7173 else false)
7274 then true
7375 else throw("Bet amount is not in range")
74- else if ((B == "LTC"))
75- then if (if ((C >= u))
76- then (v >= C)
76+ else if ((C == "LTC"))
77+ then if (if ((D >= v))
78+ then (w >= D)
7779 else false)
7880 then true
7981 else throw("Bet amount is not in range")
80- else if ((B == "WCT"))
81- then if (if ((C >= w))
82- then (x >= C)
82+ else if ((C == "WCT"))
83+ then if (if ((D >= x))
84+ then (y >= D)
8385 else false)
8486 then true
8587 else throw("Bet amount is not in range")
86- else if (if ((C >= y))
87- then (z >= C)
88+ else if (if ((D >= z))
89+ then (A >= D)
8890 else false)
8991 then true
9092 else throw("Bet amount is not in range")
9193
9294
93-func D (C,B) = {
94- let E = {
95- let F = getInteger(this, ("Reserved_" + B))
96- let G = F
97- if ($isInstanceOf(G, "Int"))
95+func E (D,C) = {
96+ let F = {
97+ let G = getInteger(this, ("Reserved_" + C))
98+ let H = G
99+ if ($isInstanceOf(H, "Int"))
98100 then {
99- let H = G
100- H
101+ let I = H
102+ I
101103 }
102104 else 0
103105 }
104- let I = (E + C)
105- if ((wavesBalance(this) >= I))
106+ let J = (F + D)
107+ if ((wavesBalance(this) >= J))
106108 then {
107- let D = I
108- D
109+ let E = J
110+ E
109111 }
110112 else throw("Bet was rejected. Insufficient funds on game account.")
111113 }
112114
113115
114-func J (K) = {
115- let L = getString(this, K)
116- let H = {
117- let G = L
118- if ($isInstanceOf(G, "String"))
116+func K (L) = {
117+ let M = getString(this, L)
118+ let I = {
119+ let H = M
120+ if ($isInstanceOf(H, "String"))
119121 then {
120- let H = G
121- H
122+ let I = H
123+ I
122124 }
123125 else throw("GameId was not found")
124126 }
125- split(H, "_")
127+ split(I, "_")
126128 }
127129
128130
129-func M (N) = if ((2 > N))
131+func N (O) = if ((2 > O))
130132 then "7"
131- else if ((4 > N))
133+ else if ((4 > O))
132134 then "6"
133- else if ((6 > N))
135+ else if ((6 > O))
134136 then "5"
135- else if ((8 > N))
137+ else if ((8 > O))
136138 then "4"
137- else if ((10 > N))
139+ else if ((10 > O))
138140 then "3"
139- else if ((12 > N))
141+ else if ((12 > O))
140142 then "2"
141143 else "1"
142144
143145
144-func O (K,P,Q) = {
145- let R = rsaVerify(SHA256, toBytes(K), P, Q)
146- if (R)
146+func P (L,Q,R) = {
147+ let S = rsaVerify(SHA256, toBytes(L), Q, R)
148+ if (S)
147149 then {
148- let N = ((toInt(sha256(P)) % 19) + 1)
149- if (if ((N > 0))
150- then (20 >= N)
150+ let O = ((toInt(sha256(Q)) % 19) + 1)
151+ if (if ((O > 0))
152+ then (20 >= O)
151153 else false)
152- then N
154+ then O
153155 else throw("Rsa integer is not in range")
154156 }
155157 else throw("Rsa Signature is invalid")
156158 }
157159
158160
159-func S (T,U) = {
160- let F = getInteger(this, ("Reserved_" + U))
161- let V = {
162- let G = F
163- if ($isInstanceOf(G, "Int"))
161+func T (U,V) = {
162+ let G = getInteger(this, ("Reserved_" + V))
163+ let W = {
164+ let H = G
165+ if ($isInstanceOf(H, "Int"))
164166 then {
165- let H = G
166- H
167+ let I = H
168+ I
167169 }
168170 else 0
169171 }
170- let S = (V - T)
171- if ((S > 0))
172- then S
172+ let T = (W - U)
173+ if ((T > 0))
174+ then T
173175 else throw("Reserved balance couldn't be less than 0")
174176 }
175177
176178
177-func W (X,Y) = if ((X == "777"))
179+func X (Y,Z) = if ((Y == "777"))
178180 then 5370
179- else if ((X == "666"))
181+ else if ((Y == "666"))
180182 then 1300
181- else if ((X == "555"))
183+ else if ((Y == "555"))
182184 then 450
183- else if ((X == "444"))
185+ else if ((Y == "444"))
184186 then 200
185- else if ((X == "333"))
187+ else if ((Y == "333"))
186188 then 150
187- else if ((X == "222"))
189+ else if ((Y == "222"))
188190 then 110
189- else if ((X == "111"))
191+ else if ((Y == "111"))
190192 then 40
191- else if ((Y == "77"))
193+ else if ((Z == "77"))
192194 then 270
193- else if ((Y == "66"))
195+ else if ((Z == "66"))
194196 then 130
195- else if ((Y == "55"))
197+ else if ((Z == "55"))
196198 then 65
197- else if ((Y == "44"))
199+ else if ((Z == "44"))
198200 then 30
199- else if ((Y == "33"))
201+ else if ((Z == "33"))
200202 then 20
201- else if ((Y == "22"))
203+ else if ((Z == "22"))
202204 then 15
203- else if ((Y == "11"))
205+ else if ((Z == "11"))
204206 then 10
205207 else 0
206208
207209
208-func Z (aa) = if ((aa == "WAVES"))
210+func aa (ab) = if ((ab == "WAVES"))
209211 then i
210- else if ((aa == "BTC"))
212+ else if ((ab == "BTC"))
211213 then j
212- else if ((aa == "ETH"))
214+ else if ((ab == "ETH"))
213215 then k
214- else if ((aa == "LTC"))
216+ else if ((ab == "LTC"))
215217 then l
216- else if ((aa == "VST"))
218+ else if ((ab == "VST"))
217219 then m
218- else if ((aa == "WCT"))
220+ else if ((ab == "WCT"))
219221 then n
220222 else throw("Asset name is incorrect")
221223
222224
223-@Callable(ab)
225+@Callable(ac)
224226 func bet () = {
225- let ac = extract(ab.payment)
226- let C = ac.amount
227- let K = toBase58String(ab.transactionId)
228- let ad = height
229- let ae = toBase58String(ab.callerPublicKey)
230- let B = if (!(isDefined(ac.assetId)))
227+ let ad = extract(ac.payment)
228+ let D = ad.amount
229+ let L = toBase58String(ac.transactionId)
230+ let ae = height
231+ let af = toBase58String(ac.callerPublicKey)
232+ let C = if (!(isDefined(ad.assetId)))
231233 then "WAVES"
232- else if ((ac.assetId == j))
234+ else if ((ad.assetId == j))
233235 then "BTC"
234- else if ((ac.assetId == k))
236+ else if ((ad.assetId == k))
235237 then "ETH"
236- else if ((ac.assetId == l))
238+ else if ((ad.assetId == l))
237239 then "LTC"
238- else if ((ac.assetId == n))
240+ else if ((ad.assetId == n))
239241 then "WCT"
240- else if ((ac.assetId == m))
242+ else if ((ad.assetId == m))
241243 then "VST"
242244 else throw("AssetId is incorrect")
243- let af = D(C, B)
244- let ag = A(B, C)
245- if (ag)
245+ let ag = E(D, C)
246+ let ah = B(C, D)
247+ if (ah)
246248 then {
247- let ah = ((((((((e + "_") + ae) + "_") + toString(C)) + "_") + B) + "_") + toString(ad))
248- WriteSet([DataEntry(K, ah), DataEntry(("Reserved_" + B), af)])
249+ let ai = ((((((((e + "_") + af) + "_") + toString(D)) + "_") + C) + "_") + toString(ae))
250+ WriteSet([DataEntry(L, ai), DataEntry(("Reserved_" + C), ag)])
249251 }
250252 else throw("assetId is incorrect")
251253 }
252254
253255
254256
255-@Callable(ab)
256-func withdraw (K,ai,aj,ak) = {
257- let al = J(K)
258- let am = al[0]
259- let an = addressFromPublicKey(fromBase58String(al[1]))
260- let T = parseIntValue(al[2])
261- let aa = al[3]
262- let ad = parseIntValue(al[4])
263- let ao = Z(aa)
264- let ap = (d > (height - ad))
265- let aq = (am == e)
266- let af = S(T, aa)
267- let ar = {
268- let as = O(K, ai, a)
269- let at = O(K, aj, b)
270- let au = O(K, ak, c)
271- let av = M(as)
272- let aw = M(at)
273- let ax = M(au)
274-[av, aw, ax]
257+@Callable(ac)
258+func withdraw (L,aj,ak,al) = {
259+ let am = K(L)
260+ let an = am[0]
261+ let ao = addressFromPublicKey(fromBase58String(am[1]))
262+ let U = parseIntValue(am[2])
263+ let ab = am[3]
264+ let ae = parseIntValue(am[4])
265+ let ap = aa(ab)
266+ let aq = (d > (height - ae))
267+ let ar = (an == e)
268+ let ag = T(U, ab)
269+ let as = {
270+ let at = P(L, aj, a)
271+ let au = P(L, ak, b)
272+ let av = P(L, al, c)
273+ let aw = N(at)
274+ let ax = N(au)
275+ let ay = N(av)
276+[aw, ax, ay]
275277 }
276- let ay = {
277- let X = ((ar[0] + ar[1]) + ar[2])
278- let Y = (ar[0] + ar[1])
279- let az = W(X, Y)
280- ((T * az) / 10)
278+ let az = {
279+ let Y = ((as[0] + as[1]) + as[2])
280+ let Z = (as[0] + as[1])
281+ let aA = X(Y, Z)
282+ ((U * aA) / 10)
281283 }
282- let aA = ((((((al[1] + "_") + al[2]) + "_") + al[3]) + "_") + al[4])
283- let aB = ((ar[0] + ar[1]) + ar[2])
284- if (aq)
285- then if (ap)
286- then if ((ay == 0))
287- then WriteSet([DataEntry(K, (((h + aA) + toString(ay)) + aB)), DataEntry(("Reserved_" + aa), af)])
288- else ScriptResult(WriteSet([DataEntry(K, (((f + aA) + toString(ay)) + aB)), DataEntry(("Reserved_" + aa), af)]), TransferSet([ScriptTransfer(an, ay, ao)]))
289- else ScriptResult(WriteSet([DataEntry(K, (g + aA)), DataEntry(("Reserved_" + aa), af)]), TransferSet([ScriptTransfer(an, T, ao)]))
284+ let aB = ((((((am[1] + "_") + am[2]) + "_") + am[3]) + "_") + am[4])
285+ let aC = ((as[0] + as[1]) + as[2])
286+ if (ar)
287+ then if (aq)
288+ then if ((az == 0))
289+ then WriteSet([DataEntry(L, (((h + aB) + toString(az)) + aC)), DataEntry(("Reserved_" + ab), ag)])
290+ else ScriptResult(WriteSet([DataEntry(L, (((f + aB) + toString(az)) + aC)), DataEntry(("Reserved_" + ab), ag)]), TransferSet([ScriptTransfer(ao, az, ap)]))
291+ else ScriptResult(WriteSet([DataEntry(L, (g + aB)), DataEntry(("Reserved_" + ab), ag)]), TransferSet([ScriptTransfer(ao, U, ap)]))
290292 else throw("Game state is incorrect")
291293 }
292294
293295
294-@Verifier(aC)
295-func aD () = {
296- let G = aC
297- if ($isInstanceOf(G, "TransferTransaction"))
296+@Verifier(aD)
297+func aE () = {
298+ let H = aD
299+ if ($isInstanceOf(H, "TransferTransaction"))
298300 then {
299- let aE = G
300- let F = getInteger(this, "Reserved")
301- let aF = {
302- let aG = F
303- if ($isInstanceOf(aG, "Int"))
301+ let aF = H
302+ let G = getInteger(this, "Reserved")
303+ let aG = {
304+ let aH = G
305+ if ($isInstanceOf(aH, "Int"))
304306 then {
305- let H = aG
306- H
307+ let I = aH
308+ I
307309 }
308310 else 0
309311 }
310- let aH = (wavesBalance(this) - aF)
311- let aI = (aH >= aE.amount)
312- let aJ = sigVerify(aE.bodyBytes, aE.proofs[0], aE.senderPublicKey)
313- if (aI)
314- then aJ
312+ let aI = (wavesBalance(this) - aG)
313+ let aJ = (aI >= aF.amount)
314+ let aK = sigVerify(aF.bodyBytes, aF.proofs[0], aF.senderPublicKey)
315+ if (aJ)
316+ then aK
315317 else false
316318 }
317- else if ($isInstanceOf(G, "SetScriptTransaction"))
319+ else if ($isInstanceOf(H, "SetScriptTransaction"))
318320 then {
319- let aK = G
320- sigVerify(aK.bodyBytes, aK.proofs[0], aK.senderPublicKey)
321+ let aL = H
322+ sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
321323 }
322- else if ($isInstanceOf(G, "InvokeScriptTransaction"))
324+ else if ($isInstanceOf(H, "InvokeScriptTransaction"))
323325 then {
324- let aL = G
325- sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
326+ let aM = H
327+ sigVerify(aM.bodyBytes, aM.proofs[0], aM.senderPublicKey)
326328 }
327329 else false
328330 }
329331

github/deemru/w8io/169f3d6 
107.82 ms