tx · 7FZXu7prfvwUG1YEu62qwYjvqyza1NLtjNnqeJDbDear

3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn:  -0.01400000 Waves

2020.01.03 17:55 [837826] smart account 3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn > SELF 0.00000000 Waves

{ "type": 13, "id": "7FZXu7prfvwUG1YEu62qwYjvqyza1NLtjNnqeJDbDear", "fee": 1400000, "feeAssetId": null, "timestamp": 1578063426936, "version": 1, "sender": "3N6UbaxTBjMS5jZmJ9cxqX3YGfe7bsQAzyn", "senderPublicKey": "6ZjaNmnAvx6D1PtkZEHppdJPoEJ9mhBhRTq8fcTT59Xd", "proofs": [ "48GSQnzC2zQvgqtE6uBs6WbrdjPDVXGZ8QgUSQ2K4Zj6CEb7XdA91LMqZg6L3y3Z3NFzr1WUHVuSNLkbPNUinMXo" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAACAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAECAAAAB3ExX25leHQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAAB3ExX25leHQFAAAAB3Exc3RhcnQFAAAAAnExAQAAAAlxMkV4dHJhY3QAAAAABAAAAAJxMgMJAQAAAAlpc0RlZmluZWQAAAABAgAAAAdxMl9uZXh0CQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAdxMl9uZXh0BQAAAAdxMnN0YXJ0BQAAAAJxMgEAAAASZGVidEFtb3VudDFFeHRyYWN0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AIJAAQlAAAAAQgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyAgAAAA1fZXZlbnQyYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyCQAAaAAAAAIFAAAADGV2ZW50MmFtb3VudAAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAECAAAAKWV2ZW50IGRpZCBub3QgaGFwcGVuIG9yIHlvdSBoYXZlIHplcm8gd2luAAAAALpBkoM=", "chainId": 84, "height": 837826, "spentComplexity": 0 } View: original | compacted Prev: none Next: 9s1NiktmC9sNE1ar6FLuPqePF8LVuG7u28iuPWCEtutm Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = 190
5+
6+let b = 190
7+
8+let c = 52
9+
10+let d = 1000
11+
12+let e = 10
13+
14+let f = 2
15+
16+let g = 100
17+
18+func h () = {
19+ let i = if (isDefined("q1_next"))
20+ then getIntegerValue(this, "q1_next")
21+ else a
22+ i
23+ }
24+
25+
26+func j () = {
27+ let k = if (isDefined("q2_next"))
28+ then getIntegerValue(this, "q2_next")
29+ else b
30+ k
31+ }
32+
33+
34+func l () = {
35+ let m = if (isDefined("debtAmount1"))
36+ then getIntegerValue(this, "debtAmount1")
37+ else 0
38+ m
39+ }
40+
41+
42+func n () = {
43+ let o = if (isDefined("debtAmount2"))
44+ then getIntegerValue(this, "debtAmount2")
45+ else 0
46+ o
47+ }
48+
49+
50+func p (q,r) = {
51+ let s = getIntegerValue(this, q)
52+ let t = (((1 * 100000) - (s * 1000)) / (g - e))
53+ let u = ((1 * 100000) - (t * g))
54+ let v = (((r * t) + u) / 1000)
55+ v
56+ }
57+
58+
59+func w (s,c) = {
60+ let w = pow(((c + 1000) - (100000 / s)), 0, -1, 0, 5, DOWN)
61+ w
62+ }
63+
64+
65+func x (r,m,o) = if ((0 > m))
66+ then {
67+ let t = (((1 * 1000000) - (a * 10000)) / d)
68+ let u = ((1 * 1000000) - (t * d))
69+ let i = ((-(t) * m) + (u / 1000))
70+ let k = w(i, c)
71+[i, k]
72+ }
73+ else if ((m > 0))
74+ then {
75+ let t = (((1 * 1000000) - (a * 10000)) / d)
76+ let u = ((1 * 1000000) - (t * d))
77+ let k = ((-(t) * o) + (u / 1000))
78+ let i = w(k, c)
79+[i, k]
80+ }
81+ else {
82+ let i = a
83+ let k = b
84+[i, k]
85+ }
86+
87+
88+@Callable(y)
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 1
103+ else 0
104+ throw(toString(B))
105+ }
106+
107+
108+
109+@Callable(y)
110+func withdraw () = {
111+ let C = {
112+ let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
113+ if ($isInstanceOf(z, "Unit"))
114+ then {
115+ let D = z
116+ 0
117+ }
118+ else if ($isInstanceOf(z, "Int"))
119+ then {
120+ let E = z
121+ E
122+ }
123+ else throw()
124+ }
125+ let F = {
126+ let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
127+ if ($isInstanceOf(z, "Unit"))
128+ then {
129+ let D = z
130+ 0
131+ }
132+ else if ($isInstanceOf(z, "Int"))
133+ then {
134+ let E = z
135+ E
136+ }
137+ else throw()
138+ }
139+ let G = {
140+ let z = getBoolean(this, "result_event_1")
141+ if ($isInstanceOf(z, "Unit"))
142+ then {
143+ let D = z
144+ false
145+ }
146+ else if ($isInstanceOf(z, "Boolean"))
147+ then {
148+ let u = z
149+ u
150+ }
151+ else throw()
152+ }
153+ let H = {
154+ let z = getBoolean(this, "result_event_2")
155+ if ($isInstanceOf(z, "Unit"))
156+ then {
157+ let D = z
158+ false
159+ }
160+ else if ($isInstanceOf(z, "Boolean"))
161+ then {
162+ let u = z
163+ u
164+ }
165+ else throw()
166+ }
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)]))
171+ else throw("event did not happen or you have zero win")
172+ }
173+
174+

github/deemru/w8io/169f3d6 
23.30 ms