tx · Ds2FD1uGvSTGr473yiPwjXW5963phP91kuF7LjjttmVs

3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP:  -0.01400000 Waves

2020.01.03 17:52 [837823] smart account 3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP > SELF 0.00000000 Waves

{ "type": 13, "id": "Ds2FD1uGvSTGr473yiPwjXW5963phP91kuF7LjjttmVs", "fee": 1400000, "feeAssetId": null, "timestamp": 1578063144386, "version": 1, "sender": "3MrC1oqVCoLkfHabhJtrLJS6GxcooQwRWuP", "senderPublicKey": "3bmZaUZ9wp3K1YZQFqTkN1oZzumQPi7WLQ9QowMaqqEZ", "proofs": [ "38yQXaJnXxWbNrfgKnxnD7P9Zopb4GwKihZnG3BRhZDnphE5XZDcNQmT5PTmJ3uLJUhqLJaXnU8NajZLzoPa4yXU" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAACAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAECAAAAB3ExX25leHQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAAB3ExX25leHQFAAAAB3Exc3RhcnQFAAAAAnExAQAAAAlxMkV4dHJhY3QAAAAABAAAAAJxMgMJAQAAAAlpc0RlZmluZWQAAAABAgAAAAdxMl9uZXh0CQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAdxMl9uZXh0BQAAAAdxMnN0YXJ0BQAAAAJxMgEAAAASZGVidEFtb3VudDFFeHRyYWN0AAAAAAQAAAALZGVidE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QABLAAAAAIJAAQlAAAAAQgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyAgAAAA1fZXZlbnQyYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyCQAAaAAAAAIFAAAADGV2ZW50MmFtb3VudAAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAECAAAAKWV2ZW50IGRpZCBub3QgaGFwcGVuIG9yIHlvdSBoYXZlIHplcm8gd2luAAAAAEIdOZ0=", "chainId": 84, "height": 837823, "spentComplexity": 0 } View: original | compacted Prev: FTPgkFVmb66JK3ZRZvwmYUdKYn8aZLBHDt4e1T96EjWR Next: D4cHqUaVd8nJZRMptNGfzNfb6aVCd4yvrjutUSJKoyc8 Diff:
OldNewDifferences
8686
8787
8888 @Callable(y)
89-func bet (q) = throw("mdam")
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+ throw("count")
105+ }
90106
91107
92108
93109 @Callable(y)
94110 func withdraw () = {
95- let z = {
96- let A = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
97- if ($isInstanceOf(A, "Unit"))
111+ let C = {
112+ let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
113+ if ($isInstanceOf(z, "Unit"))
98114 then {
99- let B = A
115+ let D = z
100116 0
101117 }
102- else if ($isInstanceOf(A, "Int"))
118+ else if ($isInstanceOf(z, "Int"))
103119 then {
104- let C = A
105- C
120+ let E = z
121+ E
106122 }
107123 else throw()
108124 }
109- let D = {
110- let A = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
111- if ($isInstanceOf(A, "Unit"))
125+ let F = {
126+ let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
127+ if ($isInstanceOf(z, "Unit"))
112128 then {
113- let B = A
129+ let D = z
114130 0
115131 }
116- else if ($isInstanceOf(A, "Int"))
132+ else if ($isInstanceOf(z, "Int"))
117133 then {
118- let C = A
119- C
134+ let E = z
135+ E
120136 }
121137 else throw()
122138 }
123- let E = {
124- let A = getBoolean(this, "result_event_1")
125- if ($isInstanceOf(A, "Unit"))
139+ let G = {
140+ let z = getBoolean(this, "result_event_1")
141+ if ($isInstanceOf(z, "Unit"))
126142 then {
127- let B = A
143+ let D = z
128144 false
129145 }
130- else if ($isInstanceOf(A, "Boolean"))
146+ else if ($isInstanceOf(z, "Boolean"))
131147 then {
132- let u = A
148+ let u = z
133149 u
134150 }
135151 else throw()
136152 }
137- let F = {
138- let A = getBoolean(this, "result_event_2")
139- if ($isInstanceOf(A, "Unit"))
153+ let H = {
154+ let z = getBoolean(this, "result_event_2")
155+ if ($isInstanceOf(z, "Unit"))
140156 then {
141- let B = A
157+ let D = z
142158 false
143159 }
144- else if ($isInstanceOf(A, "Boolean"))
160+ else if ($isInstanceOf(z, "Boolean"))
145161 then {
146- let u = A
162+ let u = z
147163 u
148164 }
149165 else throw()
150166 }
151- if (E)
152- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (z * 1000000), unit)]))
153- else if (F)
154- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (D * 1000000), unit)]))
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)]))
155171 else throw("event did not happen or you have zero win")
156172 }
157173
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 () = {
1919 let i = if (isDefined("q1_next"))
2020 then getIntegerValue(this, "q1_next")
2121 else a
2222 i
2323 }
2424
2525
2626 func j () = {
2727 let k = if (isDefined("q2_next"))
2828 then getIntegerValue(this, "q2_next")
2929 else b
3030 k
3131 }
3232
3333
3434 func l () = {
3535 let m = if (isDefined("debtAmount1"))
3636 then getIntegerValue(this, "debtAmount1")
3737 else 0
3838 m
3939 }
4040
4141
4242 func n () = {
4343 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)
89-func bet (q) = throw("mdam")
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+ throw("count")
105+ }
90106
91107
92108
93109 @Callable(y)
94110 func withdraw () = {
95- let z = {
96- let A = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
97- if ($isInstanceOf(A, "Unit"))
111+ let C = {
112+ let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
113+ if ($isInstanceOf(z, "Unit"))
98114 then {
99- let B = A
115+ let D = z
100116 0
101117 }
102- else if ($isInstanceOf(A, "Int"))
118+ else if ($isInstanceOf(z, "Int"))
103119 then {
104- let C = A
105- C
120+ let E = z
121+ E
106122 }
107123 else throw()
108124 }
109- let D = {
110- let A = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
111- if ($isInstanceOf(A, "Unit"))
125+ let F = {
126+ let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
127+ if ($isInstanceOf(z, "Unit"))
112128 then {
113- let B = A
129+ let D = z
114130 0
115131 }
116- else if ($isInstanceOf(A, "Int"))
132+ else if ($isInstanceOf(z, "Int"))
117133 then {
118- let C = A
119- C
134+ let E = z
135+ E
120136 }
121137 else throw()
122138 }
123- let E = {
124- let A = getBoolean(this, "result_event_1")
125- if ($isInstanceOf(A, "Unit"))
139+ let G = {
140+ let z = getBoolean(this, "result_event_1")
141+ if ($isInstanceOf(z, "Unit"))
126142 then {
127- let B = A
143+ let D = z
128144 false
129145 }
130- else if ($isInstanceOf(A, "Boolean"))
146+ else if ($isInstanceOf(z, "Boolean"))
131147 then {
132- let u = A
148+ let u = z
133149 u
134150 }
135151 else throw()
136152 }
137- let F = {
138- let A = getBoolean(this, "result_event_2")
139- if ($isInstanceOf(A, "Unit"))
153+ let H = {
154+ let z = getBoolean(this, "result_event_2")
155+ if ($isInstanceOf(z, "Unit"))
140156 then {
141- let B = A
157+ let D = z
142158 false
143159 }
144- else if ($isInstanceOf(A, "Boolean"))
160+ else if ($isInstanceOf(z, "Boolean"))
145161 then {
146- let u = A
162+ let u = z
147163 u
148164 }
149165 else throw()
150166 }
151- if (E)
152- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (z * 1000000), unit)]))
153- else if (F)
154- then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (D * 1000000), unit)]))
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)]))
155171 else throw("event did not happen or you have zero win")
156172 }
157173
158174

github/deemru/w8io/026f985 
43.31 ms