tx · G9VyeGTSJB3annR4NbFn3J4YvxigUSsprChZtP4Phr8h

3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD:  -0.01500000 Waves

2019.10.03 16:31 [703598] smart account 3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD > SELF 0.00000000 Waves

{ "type": 13, "id": "G9VyeGTSJB3annR4NbFn3J4YvxigUSsprChZtP4Phr8h", "fee": 1500000, "feeAssetId": null, "timestamp": 1570109309406, "version": 1, "sender": "3NBFHpzVTqcHQB6Zxec1f6N6ZGBWQ4VsBFD", "senderPublicKey": "8W9JLTJTfxrJrBNXxngzueBF4vJqeb6p9jFob7wb6QWQ", "proofs": [ "5FHSPfqyBE14uqgUsYEmQh4tXgouTN6VhM4syQTHsjhXZQfEGp8NAKhJrKzrC3wsadbTSJ2gyDTcG96SW6eYGuqu" ], "script": "base64:AAIDAAAAAAAAAAwIARIAEgYKBAgCAgIAAAAiAAAAAA1yc2FQdWJsaWNLZXkxCQACWwAAAAECAAAAh2Jhc2U2NDpNRnd3RFFZSktvWklodmNOQVFFQkJRQURTd0F3U0FKQkFPa2l1ei9CVjRFam94R2hUbU5DYnQyVGdrYlNQSC93NjliM0YxckttRDYxSmlQWHZ2RjhMMnBJOXhPWWNXNEZtb0VaVkhsUlF0QWxhSnlrbDMrcnNyRUNBd0VBQVE9PQAAAAANcnNhUHVibGljS2V5MgkAAlsAAAABAgAAAIdiYXNlNjQ6TUZ3d0RRWUpLb1pJaHZjTkFRRUJCUUFEU3dBd1NBSkJBSm5YemJNL1Yyc0RWMVVMYlBTT2xIa2xkT1RXUnJIaTVmeElrQm11ZXZyQ2xNUFZIN3JxY2N3aXJETmNNZElkd1hISTlBZGhqOUZXandHSXdmVS9LNk1DQXdFQUFRPT0AAAAADXJzYVB1YmxpY0tleTMJAAJbAAAAAQIAAACHYmFzZTY0Ok1Gd3dEUVlKS29aSWh2Y05BUUVCQlFBRFN3QXdTQUpCQU9SRGV2eTByNGt6THFPeV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oMQIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gxBQAAAAFhAAAAAAAAAAAABAAAABBhdmFpbGFibGVCYWxhbmNlCQAAZQAAAAIJAQAAAAx3YXZlc0JhbGFuY2UAAAABBQAAAAR0aGlzBQAAAA9yZXNlcnZlZEJhbGFuY2UEAAAAD2F2YWlsaWJsZUFtb3VudAkAAGcAAAACBQAAABBhdmFpbGFibGVCYWxhbmNlCAUAAAADdHR4AAAABmFtb3VudAQAAAAJc2lnbmF0dXJlCQAB9AAAAAMIBQAAAAN0dHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAN0dHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAADdHR4AAAAD3NlbmRlclB1YmxpY0tleQMFAAAAD2F2YWlsaWJsZUFtb3VudAUAAAAJc2lnbmF0dXJlBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAABHNzdHgFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAABHNzdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAARzc3R4AAAABnByb29mcwAAAAAAAAAAAAgFAAAABHNzdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAAEaXN0eAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAAEaXN0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAABGlzdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAAEaXN0eAAAAA9zZW5kZXJQdWJsaWNLZXkHjXEEYg==", "chainId": 84, "height": 703598, "spentComplexity": 0 } View: original | compacted Prev: G4NXVLtnvYqYtJAvYtU3vjp6QRtMxKj44ePTLsF5JReT Next: 6w5gnQyfma8Yz2Q4qwPtG1PmcUnDCQbycYReJCyzSdYF Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = fromBase64String("base64:1")
4+let a = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOkiuz/BV4EjoxGhTmNCbt2TgkbSPH/w69b3F1rKmD61JiPXvvF8L2pI9xOYcW4FmoEZVHlRQtAlaJykl3+rsrECAwEAAQ==")
55
6-let b = fromBase64String("base64:2")
6+let b = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJnXzbM/V2sDV1ULbPSOlHkldOTWRrHi5fxIkBmuevrClMPVH7rqccwirDNcMdIdwXHI9Adhj9FWjwGIwfU/K6MCAwEAAQ==")
77
8-let c = fromBase64String("base64:3")
8+let c = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAORDevy0r4kzLqOySloB63Huv2e4zeHKHjCsy5vtFKmWZbXJa8gZYt4+EklFIo1K9oqu5BAPVfJ3FOzs2U1A+g0CAwEAAQ==")
99
10-let d = 1440
10+let d = (1440 * 2)
1111
1212 let e = "Accepted"
1313
1717
1818 let h = "Lose"
1919
20-let i = fromBase58String("wBTC")
20+let i = unit
2121
22-let j = fromBase58String("wETH")
22+let j = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'
2323
24-let k = fromBase58String("wLTC")
24+let k = base58'BrmjyAWT5jjr3Wpsiyivyvg5vDuzoX2s93WgiexXetB3'
2525
26-let l = fromBase58String("VST")
26+let l = base58'BNdAstuFogzSyN2rY3beJbnBYwYcu7RzTHFjW88g8roK'
2727
28-let m = fromBase58String("WCT")
28+let m = base58'AMFteLfPzPhTsFc3NfvHG7fSRUnsp3tJXPH88G1PCisT'
2929
30-let n = 10000000
30+let n = base58'EmcmfM27TPaemhuREZGD8WLvsuLCdqx8WovMrDQKbXS1'
3131
32-let o = (n * 10)
32+let o = 100000000
3333
34-let p = 10000
34+let p = (o * 10)
3535
36-let q = (p * 10)
36+let q = 10000
3737
38-let r = 1000000
38+let r = (q * 10)
3939
40-let s = (r * 10)
40+let s = 1000000
4141
42-let t = 2000000
42+let t = (s * 10)
4343
44-let u = (t * 10)
44+let u = 2000000
4545
46-let v = 500000000
46+let v = (u * 10)
4747
48-let w = (v * 10)
48+let w = 500000000
4949
50-let x = 500000000
50+let x = (w * 10)
5151
52-let y = (x * 10)
52+let y = 500000000
5353
54-func z (A,B) = if ((A == "WAVES"))
55- then if (if ((B >= n))
56- then (o >= B)
54+let z = (y * 10)
55+
56+func A (B,C) = if ((B == "WAVES"))
57+ then if (if ((C >= o))
58+ then (p >= C)
5759 else false)
5860 then true
5961 else throw("Bet amount is not in range")
60- else if ((A == "BTC"))
61- then if (if ((B >= p))
62- then (q >= B)
62+ else if ((B == "BTC"))
63+ then if (if ((C >= q))
64+ then (r >= C)
6365 else false)
6466 then true
6567 else throw("Bet amount is not in range")
66- else if ((A == "ETH"))
67- then if (if ((B >= r))
68- then (s >= B)
68+ else if ((B == "ETH"))
69+ then if (if ((C >= s))
70+ then (t >= C)
6971 else false)
7072 then true
7173 else throw("Bet amount is not in range")
72- else if ((A == "LTC"))
73- then if (if ((B >= t))
74- then (u >= B)
74+ else if ((B == "LTC"))
75+ then if (if ((C >= u))
76+ then (v >= C)
7577 else false)
7678 then true
7779 else throw("Bet amount is not in range")
78- else if ((A == "WCT"))
79- then if (if ((B >= v))
80- then (w >= B)
80+ else if ((B == "WCT"))
81+ then if (if ((C >= w))
82+ then (x >= C)
8183 else false)
8284 then true
8385 else throw("Bet amount is not in range")
84- else if (if ((B >= x))
85- then (y >= B)
86+ else if (if ((C >= y))
87+ then (z >= C)
8688 else false)
8789 then true
8890 else throw("Bet amount is not in range")
8991
9092
91-func C (B,A) = {
92- let D = {
93- let E = getInteger(this, ("Reserved_" + A))
94- let F = E
95- if ($isInstanceOf(F, "Int"))
93+func D (C,B) = {
94+ let E = {
95+ let F = getInteger(this, ("Reserved_" + B))
96+ let G = F
97+ if ($isInstanceOf(G, "Int"))
9698 then {
97- let G = F
98- G
99+ let H = G
100+ H
99101 }
100102 else 0
101103 }
102- let H = (D + B)
103- if ((wavesBalance(this) >= H))
104+ let I = (E + C)
105+ if ((wavesBalance(this) >= I))
104106 then {
105- let C = H
106- C
107+ let D = I
108+ D
107109 }
108110 else throw("Bet was rejected. Insufficient funds on game account.")
109111 }
110112
111113
112-func I (J) = {
113- let K = getString(this, J)
114- let G = {
115- let F = K
116- if ($isInstanceOf(F, "String"))
114+func J (K) = {
115+ let L = getString(this, K)
116+ let H = {
117+ let G = L
118+ if ($isInstanceOf(G, "String"))
117119 then {
118- let G = F
119- G
120+ let H = G
121+ H
120122 }
121123 else throw("GameId was not found")
122124 }
123- split(G, "_")
125+ split(H, "_")
124126 }
125127
126128
127-func L (M) = if ((2 > M))
128- then "1"
129- else if ((4 > M))
130- then "2"
131- else if ((6 > M))
132- then "3"
133- else if ((8 > M))
129+func M (N) = if ((2 > N))
130+ then "7"
131+ else if ((4 > N))
132+ then "6"
133+ else if ((6 > N))
134+ then "5"
135+ else if ((8 > N))
134136 then "4"
135- else if ((10 > M))
136- then "5"
137- else if ((12 > M))
138- then "6"
139- else "7"
137+ else if ((10 > N))
138+ then "3"
139+ else if ((12 > N))
140+ then "2"
141+ else "1"
140142
141143
142-func N (J,O,P) = {
143- let Q = rsaVerify(SHA256, toBytes(J), O, P)
144- if (Q)
144+func O (K,P,Q) = {
145+ let R = rsaVerify(SHA256, toBytes(K), P, Q)
146+ if (R)
145147 then {
146- let M = ((toInt(sha256(O)) % 19) + 1)
147- if (if ((M > 0))
148- then (20 >= M)
148+ let N = ((toInt(sha256(P)) % 19) + 1)
149+ if (if ((N > 0))
150+ then (20 >= N)
149151 else false)
150- then M
152+ then N
151153 else throw("Rsa integer is not in range")
152154 }
153155 else throw("Rsa Signature is invalid")
154156 }
155157
156158
157-func R (S,T) = {
158- let E = getInteger(this, ("Reserved_" + T))
159- let U = {
160- let F = E
161- if ($isInstanceOf(F, "Int"))
159+func S (T,U) = {
160+ let F = getInteger(this, ("Reserved_" + U))
161+ let V = {
162+ let G = F
163+ if ($isInstanceOf(G, "Int"))
162164 then {
163- let G = F
164- G
165+ let H = G
166+ H
165167 }
166168 else 0
167169 }
168- let R = (U - S)
169- if ((R > 0))
170- then R
170+ let S = (V - T)
171+ if ((S > 0))
172+ then S
171173 else throw("Reserved balance couldn't be less than 0")
172174 }
173175
174176
175-func V (W,X) = if ((W == "111"))
176- then 1
177- else if ((W == "222"))
178- then 2
179- else if ((W == "333"))
180- then 3
181- else if ((W == "444"))
182- then 4
183- else if ((W == "555"))
184- then 5
185- else if ((W == "666"))
186- then 6
187- else if ((W == "777"))
188- then 7
189- else if ((X == "11"))
190- then 8
191- else if ((X == "22"))
192- then 9
193- else if ((X == "33"))
194- then 10
195- else if ((X == "44"))
196- then 11
197- else if ((X == "55"))
198- then 12
199- else if ((X == "66"))
200- then 13
201- else if ((X == "77"))
202- then 14
177+func W (X,Y) = if ((X == "777"))
178+ then 5370
179+ else if ((X == "666"))
180+ then 1300
181+ else if ((X == "555"))
182+ then 450
183+ else if ((X == "444"))
184+ then 200
185+ else if ((X == "333"))
186+ then 150
187+ else if ((X == "222"))
188+ then 110
189+ else if ((X == "111"))
190+ then 40
191+ else if ((Y == "77"))
192+ then 270
193+ else if ((Y == "66"))
194+ then 130
195+ else if ((Y == "55"))
196+ then 65
197+ else if ((Y == "44"))
198+ then 30
199+ else if ((Y == "33"))
200+ then 20
201+ else if ((Y == "22"))
202+ then 15
203+ else if ((Y == "11"))
204+ then 10
203205 else 0
204206
205207
206-@Callable(Y)
208+func Z (aa) = if ((aa == "WAVES"))
209+ then i
210+ else if ((aa == "BTC"))
211+ then j
212+ else if ((aa == "ETH"))
213+ then k
214+ else if ((aa == "LTC"))
215+ then l
216+ else if ((aa == "VST"))
217+ then m
218+ else if ((aa == "WCT"))
219+ then n
220+ else throw("Asset name is incorrect")
221+
222+
223+@Callable(ab)
207224 func bet () = {
208- let Z = extract(Y.payment)
209- let B = Z.amount
210- let J = toBase58String(Y.transactionId)
211- let aa = height
212- let ab = toBase58String(Y.callerPublicKey)
213- let A = if (!(isDefined(Z.assetId)))
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)))
214231 then "WAVES"
215- else if ((Z.assetId == i))
232+ else if ((ac.assetId == j))
216233 then "BTC"
217- else if ((Z.assetId == j))
234+ else if ((ac.assetId == k))
218235 then "ETH"
219- else if ((Z.assetId == k))
236+ else if ((ac.assetId == l))
220237 then "LTC"
221- else if ((Z.assetId == m))
238+ else if ((ac.assetId == n))
222239 then "WCT"
223- else if ((Z.assetId == l))
240+ else if ((ac.assetId == m))
224241 then "VST"
225242 else throw("AssetId is incorrect")
226- let ac = C(B, A)
227- let ad = z(A, B)
228- if (ad)
243+ let af = D(C, B)
244+ let ag = A(B, C)
245+ if (ag)
229246 then {
230- let ae = ((((((((e + "_") + ab) + "_") + toString(B)) + "_") + A) + "_") + toString(aa))
231- WriteSet([DataEntry(J, ae), DataEntry(("Reserved_" + A), ac)])
247+ let ah = ((((((((e + "_") + ae) + "_") + toString(C)) + "_") + B) + "_") + toString(ad))
248+ WriteSet([DataEntry(K, ah), DataEntry(("Reserved_" + B), af)])
232249 }
233250 else throw("assetId is incorrect")
234251 }
235252
236253
237254
238-@Callable(Y)
239-func withdraw (J,af,ag,ah) = {
240- let ai = I(J)
241- let aj = ai[0]
242- let ak = addressFromPublicKey(fromBase58String(ai[1]))
243- let S = parseIntValue(ai[2])
244- let T = ai[3]
245- let aa = parseIntValue(ai[4])
246- let al = (d > (height - aa))
247- let am = (aj == e)
248- let ac = R(S, T)
249- let an = {
250- let ao = N(J, af, a)
251- let ap = N(J, ag, b)
252- let aq = N(J, ah, c)
253- let ar = L(ao)
254- let as = L(ap)
255- let at = L(aq)
256-[ar, as, at]
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]
257275 }
258- let au = {
259- let W = ((an[0] + an[1]) + an[2])
260- let X = (an[0] + an[1])
261- let av = V(W, X)
262- (S * av)
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)
263281 }
264- let aw = ((((((ai[1] + "_") + ai[2]) + "_") + ai[3]) + "_") + ai[4])
265- let ax = ((an[0] + an[1]) + an[2])
266- if (am)
267- then if (al)
268- then if ((au == 0))
269- then WriteSet([DataEntry(J, (((h + aw) + toString(au)) + ax)), DataEntry(("Reserved_" + T), ac)])
270- else ScriptResult(WriteSet([DataEntry(J, (((f + aw) + toString(au)) + ax)), DataEntry(("Reserved_" + T), ac)]), TransferSet([ScriptTransfer(ak, au, fromBase58String(T))]))
271- else ScriptResult(WriteSet([DataEntry(J, (g + aw)), DataEntry(("Reserved_" + T), ac)]), TransferSet([ScriptTransfer(ak, S, fromBase58String(T))]))
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)]))
272290 else throw("Game state is incorrect")
273291 }
274292
275293
276-@Verifier(ay)
277-func az () = {
278- let F = ay
279- if ($isInstanceOf(F, "TransferTransaction"))
294+@Verifier(aC)
295+func aD () = {
296+ let G = aC
297+ if ($isInstanceOf(G, "TransferTransaction"))
280298 then {
281- let aA = F
282- let E = getInteger(this, "Reserved")
283- let aB = {
284- let aC = E
285- if ($isInstanceOf(aC, "Int"))
299+ let aE = G
300+ let F = getInteger(this, "Reserved")
301+ let aF = {
302+ let aG = F
303+ if ($isInstanceOf(aG, "Int"))
286304 then {
287- let G = aC
288- G
305+ let H = aG
306+ H
289307 }
290308 else 0
291309 }
292- let aD = (wavesBalance(this) - aB)
293- let aE = (aD >= aA.amount)
294- let aF = sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey)
295- if (aE)
296- then aF
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
297315 else false
298316 }
299- else if ($isInstanceOf(F, "SetScriptTransaction"))
317+ else if ($isInstanceOf(G, "SetScriptTransaction"))
300318 then {
301- let aG = F
302- sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
319+ let aK = G
320+ sigVerify(aK.bodyBytes, aK.proofs[0], aK.senderPublicKey)
303321 }
304- else if ($isInstanceOf(F, "InvokeScriptTransaction"))
322+ else if ($isInstanceOf(G, "InvokeScriptTransaction"))
305323 then {
306- let aH = F
307- sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
324+ let aL = G
325+ sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
308326 }
309327 else false
310328 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = fromBase64String("base64:1")
4+let a = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOkiuz/BV4EjoxGhTmNCbt2TgkbSPH/w69b3F1rKmD61JiPXvvF8L2pI9xOYcW4FmoEZVHlRQtAlaJykl3+rsrECAwEAAQ==")
55
6-let b = fromBase64String("base64:2")
6+let b = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJnXzbM/V2sDV1ULbPSOlHkldOTWRrHi5fxIkBmuevrClMPVH7rqccwirDNcMdIdwXHI9Adhj9FWjwGIwfU/K6MCAwEAAQ==")
77
8-let c = fromBase64String("base64:3")
8+let c = fromBase64String("base64:MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAORDevy0r4kzLqOySloB63Huv2e4zeHKHjCsy5vtFKmWZbXJa8gZYt4+EklFIo1K9oqu5BAPVfJ3FOzs2U1A+g0CAwEAAQ==")
99
10-let d = 1440
10+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
20-let i = fromBase58String("wBTC")
20+let i = unit
2121
22-let j = fromBase58String("wETH")
22+let j = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'
2323
24-let k = fromBase58String("wLTC")
24+let k = base58'BrmjyAWT5jjr3Wpsiyivyvg5vDuzoX2s93WgiexXetB3'
2525
26-let l = fromBase58String("VST")
26+let l = base58'BNdAstuFogzSyN2rY3beJbnBYwYcu7RzTHFjW88g8roK'
2727
28-let m = fromBase58String("WCT")
28+let m = base58'AMFteLfPzPhTsFc3NfvHG7fSRUnsp3tJXPH88G1PCisT'
2929
30-let n = 10000000
30+let n = base58'EmcmfM27TPaemhuREZGD8WLvsuLCdqx8WovMrDQKbXS1'
3131
32-let o = (n * 10)
32+let o = 100000000
3333
34-let p = 10000
34+let p = (o * 10)
3535
36-let q = (p * 10)
36+let q = 10000
3737
38-let r = 1000000
38+let r = (q * 10)
3939
40-let s = (r * 10)
40+let s = 1000000
4141
42-let t = 2000000
42+let t = (s * 10)
4343
44-let u = (t * 10)
44+let u = 2000000
4545
46-let v = 500000000
46+let v = (u * 10)
4747
48-let w = (v * 10)
48+let w = 500000000
4949
50-let x = 500000000
50+let x = (w * 10)
5151
52-let y = (x * 10)
52+let y = 500000000
5353
54-func z (A,B) = if ((A == "WAVES"))
55- then if (if ((B >= n))
56- then (o >= B)
54+let z = (y * 10)
55+
56+func A (B,C) = if ((B == "WAVES"))
57+ then if (if ((C >= o))
58+ then (p >= C)
5759 else false)
5860 then true
5961 else throw("Bet amount is not in range")
60- else if ((A == "BTC"))
61- then if (if ((B >= p))
62- then (q >= B)
62+ else if ((B == "BTC"))
63+ then if (if ((C >= q))
64+ then (r >= C)
6365 else false)
6466 then true
6567 else throw("Bet amount is not in range")
66- else if ((A == "ETH"))
67- then if (if ((B >= r))
68- then (s >= B)
68+ else if ((B == "ETH"))
69+ then if (if ((C >= s))
70+ then (t >= C)
6971 else false)
7072 then true
7173 else throw("Bet amount is not in range")
72- else if ((A == "LTC"))
73- then if (if ((B >= t))
74- then (u >= B)
74+ else if ((B == "LTC"))
75+ then if (if ((C >= u))
76+ then (v >= C)
7577 else false)
7678 then true
7779 else throw("Bet amount is not in range")
78- else if ((A == "WCT"))
79- then if (if ((B >= v))
80- then (w >= B)
80+ else if ((B == "WCT"))
81+ then if (if ((C >= w))
82+ then (x >= C)
8183 else false)
8284 then true
8385 else throw("Bet amount is not in range")
84- else if (if ((B >= x))
85- then (y >= B)
86+ else if (if ((C >= y))
87+ then (z >= C)
8688 else false)
8789 then true
8890 else throw("Bet amount is not in range")
8991
9092
91-func C (B,A) = {
92- let D = {
93- let E = getInteger(this, ("Reserved_" + A))
94- let F = E
95- if ($isInstanceOf(F, "Int"))
93+func D (C,B) = {
94+ let E = {
95+ let F = getInteger(this, ("Reserved_" + B))
96+ let G = F
97+ if ($isInstanceOf(G, "Int"))
9698 then {
97- let G = F
98- G
99+ let H = G
100+ H
99101 }
100102 else 0
101103 }
102- let H = (D + B)
103- if ((wavesBalance(this) >= H))
104+ let I = (E + C)
105+ if ((wavesBalance(this) >= I))
104106 then {
105- let C = H
106- C
107+ let D = I
108+ D
107109 }
108110 else throw("Bet was rejected. Insufficient funds on game account.")
109111 }
110112
111113
112-func I (J) = {
113- let K = getString(this, J)
114- let G = {
115- let F = K
116- if ($isInstanceOf(F, "String"))
114+func J (K) = {
115+ let L = getString(this, K)
116+ let H = {
117+ let G = L
118+ if ($isInstanceOf(G, "String"))
117119 then {
118- let G = F
119- G
120+ let H = G
121+ H
120122 }
121123 else throw("GameId was not found")
122124 }
123- split(G, "_")
125+ split(H, "_")
124126 }
125127
126128
127-func L (M) = if ((2 > M))
128- then "1"
129- else if ((4 > M))
130- then "2"
131- else if ((6 > M))
132- then "3"
133- else if ((8 > M))
129+func M (N) = if ((2 > N))
130+ then "7"
131+ else if ((4 > N))
132+ then "6"
133+ else if ((6 > N))
134+ then "5"
135+ else if ((8 > N))
134136 then "4"
135- else if ((10 > M))
136- then "5"
137- else if ((12 > M))
138- then "6"
139- else "7"
137+ else if ((10 > N))
138+ then "3"
139+ else if ((12 > N))
140+ then "2"
141+ else "1"
140142
141143
142-func N (J,O,P) = {
143- let Q = rsaVerify(SHA256, toBytes(J), O, P)
144- if (Q)
144+func O (K,P,Q) = {
145+ let R = rsaVerify(SHA256, toBytes(K), P, Q)
146+ if (R)
145147 then {
146- let M = ((toInt(sha256(O)) % 19) + 1)
147- if (if ((M > 0))
148- then (20 >= M)
148+ let N = ((toInt(sha256(P)) % 19) + 1)
149+ if (if ((N > 0))
150+ then (20 >= N)
149151 else false)
150- then M
152+ then N
151153 else throw("Rsa integer is not in range")
152154 }
153155 else throw("Rsa Signature is invalid")
154156 }
155157
156158
157-func R (S,T) = {
158- let E = getInteger(this, ("Reserved_" + T))
159- let U = {
160- let F = E
161- if ($isInstanceOf(F, "Int"))
159+func S (T,U) = {
160+ let F = getInteger(this, ("Reserved_" + U))
161+ let V = {
162+ let G = F
163+ if ($isInstanceOf(G, "Int"))
162164 then {
163- let G = F
164- G
165+ let H = G
166+ H
165167 }
166168 else 0
167169 }
168- let R = (U - S)
169- if ((R > 0))
170- then R
170+ let S = (V - T)
171+ if ((S > 0))
172+ then S
171173 else throw("Reserved balance couldn't be less than 0")
172174 }
173175
174176
175-func V (W,X) = if ((W == "111"))
176- then 1
177- else if ((W == "222"))
178- then 2
179- else if ((W == "333"))
180- then 3
181- else if ((W == "444"))
182- then 4
183- else if ((W == "555"))
184- then 5
185- else if ((W == "666"))
186- then 6
187- else if ((W == "777"))
188- then 7
189- else if ((X == "11"))
190- then 8
191- else if ((X == "22"))
192- then 9
193- else if ((X == "33"))
194- then 10
195- else if ((X == "44"))
196- then 11
197- else if ((X == "55"))
198- then 12
199- else if ((X == "66"))
200- then 13
201- else if ((X == "77"))
202- then 14
177+func W (X,Y) = if ((X == "777"))
178+ then 5370
179+ else if ((X == "666"))
180+ then 1300
181+ else if ((X == "555"))
182+ then 450
183+ else if ((X == "444"))
184+ then 200
185+ else if ((X == "333"))
186+ then 150
187+ else if ((X == "222"))
188+ then 110
189+ else if ((X == "111"))
190+ then 40
191+ else if ((Y == "77"))
192+ then 270
193+ else if ((Y == "66"))
194+ then 130
195+ else if ((Y == "55"))
196+ then 65
197+ else if ((Y == "44"))
198+ then 30
199+ else if ((Y == "33"))
200+ then 20
201+ else if ((Y == "22"))
202+ then 15
203+ else if ((Y == "11"))
204+ then 10
203205 else 0
204206
205207
206-@Callable(Y)
208+func Z (aa) = if ((aa == "WAVES"))
209+ then i
210+ else if ((aa == "BTC"))
211+ then j
212+ else if ((aa == "ETH"))
213+ then k
214+ else if ((aa == "LTC"))
215+ then l
216+ else if ((aa == "VST"))
217+ then m
218+ else if ((aa == "WCT"))
219+ then n
220+ else throw("Asset name is incorrect")
221+
222+
223+@Callable(ab)
207224 func bet () = {
208- let Z = extract(Y.payment)
209- let B = Z.amount
210- let J = toBase58String(Y.transactionId)
211- let aa = height
212- let ab = toBase58String(Y.callerPublicKey)
213- let A = if (!(isDefined(Z.assetId)))
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)))
214231 then "WAVES"
215- else if ((Z.assetId == i))
232+ else if ((ac.assetId == j))
216233 then "BTC"
217- else if ((Z.assetId == j))
234+ else if ((ac.assetId == k))
218235 then "ETH"
219- else if ((Z.assetId == k))
236+ else if ((ac.assetId == l))
220237 then "LTC"
221- else if ((Z.assetId == m))
238+ else if ((ac.assetId == n))
222239 then "WCT"
223- else if ((Z.assetId == l))
240+ else if ((ac.assetId == m))
224241 then "VST"
225242 else throw("AssetId is incorrect")
226- let ac = C(B, A)
227- let ad = z(A, B)
228- if (ad)
243+ let af = D(C, B)
244+ let ag = A(B, C)
245+ if (ag)
229246 then {
230- let ae = ((((((((e + "_") + ab) + "_") + toString(B)) + "_") + A) + "_") + toString(aa))
231- WriteSet([DataEntry(J, ae), DataEntry(("Reserved_" + A), ac)])
247+ let ah = ((((((((e + "_") + ae) + "_") + toString(C)) + "_") + B) + "_") + toString(ad))
248+ WriteSet([DataEntry(K, ah), DataEntry(("Reserved_" + B), af)])
232249 }
233250 else throw("assetId is incorrect")
234251 }
235252
236253
237254
238-@Callable(Y)
239-func withdraw (J,af,ag,ah) = {
240- let ai = I(J)
241- let aj = ai[0]
242- let ak = addressFromPublicKey(fromBase58String(ai[1]))
243- let S = parseIntValue(ai[2])
244- let T = ai[3]
245- let aa = parseIntValue(ai[4])
246- let al = (d > (height - aa))
247- let am = (aj == e)
248- let ac = R(S, T)
249- let an = {
250- let ao = N(J, af, a)
251- let ap = N(J, ag, b)
252- let aq = N(J, ah, c)
253- let ar = L(ao)
254- let as = L(ap)
255- let at = L(aq)
256-[ar, as, at]
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]
257275 }
258- let au = {
259- let W = ((an[0] + an[1]) + an[2])
260- let X = (an[0] + an[1])
261- let av = V(W, X)
262- (S * av)
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)
263281 }
264- let aw = ((((((ai[1] + "_") + ai[2]) + "_") + ai[3]) + "_") + ai[4])
265- let ax = ((an[0] + an[1]) + an[2])
266- if (am)
267- then if (al)
268- then if ((au == 0))
269- then WriteSet([DataEntry(J, (((h + aw) + toString(au)) + ax)), DataEntry(("Reserved_" + T), ac)])
270- else ScriptResult(WriteSet([DataEntry(J, (((f + aw) + toString(au)) + ax)), DataEntry(("Reserved_" + T), ac)]), TransferSet([ScriptTransfer(ak, au, fromBase58String(T))]))
271- else ScriptResult(WriteSet([DataEntry(J, (g + aw)), DataEntry(("Reserved_" + T), ac)]), TransferSet([ScriptTransfer(ak, S, fromBase58String(T))]))
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)]))
272290 else throw("Game state is incorrect")
273291 }
274292
275293
276-@Verifier(ay)
277-func az () = {
278- let F = ay
279- if ($isInstanceOf(F, "TransferTransaction"))
294+@Verifier(aC)
295+func aD () = {
296+ let G = aC
297+ if ($isInstanceOf(G, "TransferTransaction"))
280298 then {
281- let aA = F
282- let E = getInteger(this, "Reserved")
283- let aB = {
284- let aC = E
285- if ($isInstanceOf(aC, "Int"))
299+ let aE = G
300+ let F = getInteger(this, "Reserved")
301+ let aF = {
302+ let aG = F
303+ if ($isInstanceOf(aG, "Int"))
286304 then {
287- let G = aC
288- G
305+ let H = aG
306+ H
289307 }
290308 else 0
291309 }
292- let aD = (wavesBalance(this) - aB)
293- let aE = (aD >= aA.amount)
294- let aF = sigVerify(aA.bodyBytes, aA.proofs[0], aA.senderPublicKey)
295- if (aE)
296- then aF
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
297315 else false
298316 }
299- else if ($isInstanceOf(F, "SetScriptTransaction"))
317+ else if ($isInstanceOf(G, "SetScriptTransaction"))
300318 then {
301- let aG = F
302- sigVerify(aG.bodyBytes, aG.proofs[0], aG.senderPublicKey)
319+ let aK = G
320+ sigVerify(aK.bodyBytes, aK.proofs[0], aK.senderPublicKey)
303321 }
304- else if ($isInstanceOf(F, "InvokeScriptTransaction"))
322+ else if ($isInstanceOf(G, "InvokeScriptTransaction"))
305323 then {
306- let aH = F
307- sigVerify(aH.bodyBytes, aH.proofs[0], aH.senderPublicKey)
324+ let aL = G
325+ sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
308326 }
309327 else false
310328 }
311329

github/deemru/w8io/169f3d6 
105.76 ms