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+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAACAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQIAAAAHcTFfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQIAAAAHcTJfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAUAAAAHcTJzdGFydAUAAAAC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gMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABdQUAAAAHJG1hdGNoMAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIJAQAAAAV0aHJvdwAAAAADBQAAAAZldmVudDEJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyAgAAAA1fZXZlbnQxYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyCQAAaAAAAAIFAAAADGV2ZW50MWFtb3VudAAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsAwUAAAAGZXZlbnQyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgIAAAANX2V2ZW50MmFtb3VudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDJhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAClldmVudCBkaWQgbm90IGhhcHBlbiBvciB5b3UgaGF2ZSB6ZXJvIHdpbgAAAAD16vRZ", "chainId": 84, "height": 837837, "spentComplexity": 0 } View: original | compacted Prev: G7UyRohLprpcNZjdimVfUn5psdSBfUwxeBjFr6jYy9mL Next: 2rgx6WjLpSMMgUe1yo2fzgTeAwMZBWvmEDrCCmRTZSUk Diff:
OldNewDifferences
1616 let g = 100
1717
1818 func h () = {
19- let i = if (isDefined("q1_next"))
19+ let i = if (!(isDefined("q1_next")))
2020 then getIntegerValue(this, "q1_next")
2121 else a
2222 i
2424
2525
2626 func j () = {
27- let k = if (isDefined("q2_next"))
27+ let k = if (!(isDefined("q2_next")))
2828 then getIntegerValue(this, "q2_next")
2929 else b
3030 k
3232
3333
3434 func l () = {
35- let m = if (isDefined("debtAmount1"))
35+ let m = if (!(isDefined("debtAmount1")))
3636 then getIntegerValue(this, "debtAmount1")
3737 else 0
3838 m
4040
4141
4242 func n () = {
43- let o = if (isDefined("debtAmount2"))
43+ let o = if (!(isDefined("debtAmount2")))
4444 then getIntegerValue(this, "debtAmount2")
4545 else 0
4646 o
101101 let B = if (!(isDefined("count")))
102102 then getIntegerValue(this, "count")
103103 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")
105164 }
106165
107166
108167
109168 @Callable(y)
110169 func withdraw () = {
111- let C = {
170+ let O = {
112171 let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
113172 if ($isInstanceOf(z, "Unit"))
114173 then {
115- let D = z
174+ let P = z
116175 0
117176 }
118177 else if ($isInstanceOf(z, "Int"))
119178 then {
120- let E = z
121- E
179+ let Q = z
180+ Q
122181 }
123182 else throw()
124183 }
125- let F = {
184+ let R = {
126185 let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
127186 if ($isInstanceOf(z, "Unit"))
128187 then {
129- let D = z
188+ let P = z
130189 0
131190 }
132191 else if ($isInstanceOf(z, "Int"))
133192 then {
134- let E = z
135- E
193+ let Q = z
194+ Q
136195 }
137196 else throw()
138197 }
139- let G = {
198+ let S = {
140199 let z = getBoolean(this, "result_event_1")
141200 if ($isInstanceOf(z, "Unit"))
142201 then {
143- let D = z
202+ let P = z
144203 false
145204 }
146205 else if ($isInstanceOf(z, "Boolean"))
150209 }
151210 else throw()
152211 }
153- let H = {
212+ let T = {
154213 let z = getBoolean(this, "result_event_2")
155214 if ($isInstanceOf(z, "Unit"))
156215 then {
157- let D = z
216+ let P = z
158217 false
159218 }
160219 else if ($isInstanceOf(z, "Boolean"))
164223 }
165224 else throw()
166225 }
167- if (G)
168- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (C * 1000000), unit)]))
169- else if (H)
170- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (F * 1000000), unit)]))
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)]))
171230 else throw("event did not happen or you have zero win")
172231 }
173232
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 190
55
66 let b = 190
77
88 let c = 52
99
1010 let d = 1000
1111
1212 let e = 10
1313
1414 let f = 2
1515
1616 let g = 100
1717
1818 func h () = {
19- let i = if (isDefined("q1_next"))
19+ let i = if (!(isDefined("q1_next")))
2020 then getIntegerValue(this, "q1_next")
2121 else a
2222 i
2323 }
2424
2525
2626 func j () = {
27- let k = if (isDefined("q2_next"))
27+ let k = if (!(isDefined("q2_next")))
2828 then getIntegerValue(this, "q2_next")
2929 else b
3030 k
3131 }
3232
3333
3434 func l () = {
35- let m = if (isDefined("debtAmount1"))
35+ let m = if (!(isDefined("debtAmount1")))
3636 then getIntegerValue(this, "debtAmount1")
3737 else 0
3838 m
3939 }
4040
4141
4242 func n () = {
43- let o = if (isDefined("debtAmount2"))
43+ let o = if (!(isDefined("debtAmount2")))
4444 then getIntegerValue(this, "debtAmount2")
4545 else 0
4646 o
4747 }
4848
4949
5050 func p (q,r) = {
5151 let s = getIntegerValue(this, q)
5252 let t = (((1 * 100000) - (s * 1000)) / (g - e))
5353 let u = ((1 * 100000) - (t * g))
5454 let v = (((r * t) + u) / 1000)
5555 v
5656 }
5757
5858
5959 func w (s,c) = {
6060 let w = pow(((c + 1000) - (100000 / s)), 0, -1, 0, 5, DOWN)
6161 w
6262 }
6363
6464
6565 func x (r,m,o) = if ((0 > m))
6666 then {
6767 let t = (((1 * 1000000) - (a * 10000)) / d)
6868 let u = ((1 * 1000000) - (t * d))
6969 let i = ((-(t) * m) + (u / 1000))
7070 let k = w(i, c)
7171 [i, k]
7272 }
7373 else if ((m > 0))
7474 then {
7575 let t = (((1 * 1000000) - (a * 10000)) / d)
7676 let u = ((1 * 1000000) - (t * d))
7777 let k = ((-(t) * o) + (u / 1000))
7878 let i = w(k, c)
7979 [i, k]
8080 }
8181 else {
8282 let i = a
8383 let k = b
8484 [i, k]
8585 }
8686
8787
8888 @Callable(y)
8989 func bet (q) = {
9090 let r = {
9191 let z = y.payment
9292 if ($isInstanceOf(z, "AttachedPayment"))
9393 then {
9494 let A = z
9595 if ((f > A.amount))
9696 then throw("low payment")
9797 else A.amount
9898 }
9999 else throw("Payment not attached")
100100 }
101101 let B = if (!(isDefined("count")))
102102 then getIntegerValue(this, "count")
103103 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")
105164 }
106165
107166
108167
109168 @Callable(y)
110169 func withdraw () = {
111- let C = {
170+ let O = {
112171 let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
113172 if ($isInstanceOf(z, "Unit"))
114173 then {
115- let D = z
174+ let P = z
116175 0
117176 }
118177 else if ($isInstanceOf(z, "Int"))
119178 then {
120- let E = z
121- E
179+ let Q = z
180+ Q
122181 }
123182 else throw()
124183 }
125- let F = {
184+ let R = {
126185 let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
127186 if ($isInstanceOf(z, "Unit"))
128187 then {
129- let D = z
188+ let P = z
130189 0
131190 }
132191 else if ($isInstanceOf(z, "Int"))
133192 then {
134- let E = z
135- E
193+ let Q = z
194+ Q
136195 }
137196 else throw()
138197 }
139- let G = {
198+ let S = {
140199 let z = getBoolean(this, "result_event_1")
141200 if ($isInstanceOf(z, "Unit"))
142201 then {
143- let D = z
202+ let P = z
144203 false
145204 }
146205 else if ($isInstanceOf(z, "Boolean"))
147206 then {
148207 let u = z
149208 u
150209 }
151210 else throw()
152211 }
153- let H = {
212+ let T = {
154213 let z = getBoolean(this, "result_event_2")
155214 if ($isInstanceOf(z, "Unit"))
156215 then {
157- let D = z
216+ let P = z
158217 false
159218 }
160219 else if ($isInstanceOf(z, "Boolean"))
161220 then {
162221 let u = z
163222 u
164223 }
165224 else throw()
166225 }
167- if (G)
168- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (C * 1000000), unit)]))
169- else if (H)
170- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (F * 1000000), unit)]))
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)]))
171230 else throw("event did not happen or you have zero win")
172231 }
173232
174233

github/deemru/w8io/169f3d6 
74.93 ms