tx · GtvfjEuvtjzB9GoK3UJ2EcuqmFKCAj87nxabLxTUAEAQ

3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn:  -0.01400000 Waves

2020.01.04 00:00 [838203] smart account 3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn > SELF 0.00000000 Waves

{ "type": 13, "id": "GtvfjEuvtjzB9GoK3UJ2EcuqmFKCAj87nxabLxTUAEAQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1578085224173, "version": 1, "sender": "3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn", "senderPublicKey": "6ZjaNmnAvx6D1PtkZEHppdJPoEJ9mhBhRTq8fcTT59Xd", "proofs": [ "44JS3otcGvReyZU9RXZJsXUuPWXrQahVddDTsMfVK5Dr8VX65yTcWTQZmVkMiTxJ4zE6TxhLg7b6ffLdFZDGNFkS" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAACAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQIAAAAHcTJfbmV4dAUAAAAHcTJzdGFydAUAAAAHcTJzdGFydAUAAAACcTIBAAAAEmRlYnRBbW91bnQxRXh0cmFjdAAAAAAEAAAAC2RlYnRBbW91bnQxAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVk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EJQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgIAAAANX2V2ZW50MmFtb3VudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDJhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAClldmVudCBkaWQgbm90IGhhcHBlbiBvciB5b3UgaGF2ZSB6ZXJvIHdpbgAAAABC43+3", "chainId": 84, "height": 838203, "spentComplexity": 0 } View: original | compacted Prev: E7Va7TFWcsadevtdFM8uk4Aaqm9tHpbxFDA6ektZCQak Next: 5f8rhV2ezoHocaG57C9hRBWPjmLAKvQyD38piAn9iGrj Diff:
OldNewDifferences
9898 }
9999 else throw("Payment not attached")
100100 }
101- let B = if (!(isDefined("count")))
102- then getIntegerValue(this, "count")
103- else 0
101+ let B = getIntegerValue(this, "count")
104102 throw(toString(B))
105103 }
106104
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 a
2121 else a
2222 i
2323 }
2424
2525
2626 func j () = {
2727 let k = if (!(isDefined("q2_next")))
2828 then b
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)
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 }
101- let B = if (!(isDefined("count")))
102- then getIntegerValue(this, "count")
103- else 0
101+ let B = getIntegerValue(this, "count")
104102 throw(toString(B))
105103 }
106104
107105
108106
109107 @Callable(y)
110108 func withdraw () = {
111109 let C = {
112110 let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
113111 if ($isInstanceOf(z, "Unit"))
114112 then {
115113 let D = z
116114 0
117115 }
118116 else if ($isInstanceOf(z, "Int"))
119117 then {
120118 let E = z
121119 E
122120 }
123121 else throw()
124122 }
125123 let F = {
126124 let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
127125 if ($isInstanceOf(z, "Unit"))
128126 then {
129127 let D = z
130128 0
131129 }
132130 else if ($isInstanceOf(z, "Int"))
133131 then {
134132 let E = z
135133 E
136134 }
137135 else throw()
138136 }
139137 let G = {
140138 let z = getBoolean(this, "result_event_1")
141139 if ($isInstanceOf(z, "Unit"))
142140 then {
143141 let D = z
144142 false
145143 }
146144 else if ($isInstanceOf(z, "Boolean"))
147145 then {
148146 let u = z
149147 u
150148 }
151149 else throw()
152150 }
153151 let H = {
154152 let z = getBoolean(this, "result_event_2")
155153 if ($isInstanceOf(z, "Unit"))
156154 then {
157155 let D = z
158156 false
159157 }
160158 else if ($isInstanceOf(z, "Boolean"))
161159 then {
162160 let u = z
163161 u
164162 }
165163 else throw()
166164 }
167165 if (G)
168166 then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (C * 1000000), unit)]))
169167 else if (H)
170168 then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (F * 1000000), unit)]))
171169 else throw("event did not happen or you have zero win")
172170 }
173171
174172

github/deemru/w8io/169f3d6 
45.22 ms