tx · CQtpGyE8cLV179sjX2m9PL36MuvGVHcBhxp2u3Zcv6e9

3MvuSn7KBR39PoLQ9jDM117mDyzFuBJs3qy:  -0.01400000 Waves

2020.01.04 21:03 [839463] smart account 3MvuSn7KBR39PoLQ9jDM117mDyzFuBJs3qy > SELF 0.00000000 Waves

{ "type": 13, "id": "CQtpGyE8cLV179sjX2m9PL36MuvGVHcBhxp2u3Zcv6e9", "fee": 1400000, "feeAssetId": null, "timestamp": 1578161083432, "version": 1, "sender": "3MvuSn7KBR39PoLQ9jDM117mDyzFuBJs3qy", "senderPublicKey": "4hZyqjUHP9eJzVZcavLKsYDRYgGbGqXnSkJ2SFPg8oL2", "proofs": [ "5x4g7PqZzSTtFH9FYMq5g6wmRAVLoMTkmCH3NpGoFfYukWAZgjqK4vNKnxaV8r9xmTVUiNj3wFGM7ZHuRUWVztB9" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAOAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAN2aWcAAAAAAAAAADQAAAAACnJpc2tBbW91bnQAAAAAAAAAA+gAAAAADGJldFRocmVzaG9sZAAAAAAAAAAACgAAAAAGYmV0TWluAAAAAAAAAAABAAAAAAZiZXRNYXgAAAAAAAAAAGQBAAAACXExRXh0cmFjdAAAAAAEAAAAAnExAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTFfbmV4dAUAAAAHcTFzdGFydAUAAAACcTEBAAAACXEyRXh0cmFjdAAAAAAEAAAAAnEyAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAHcTJfbmV4dAUAAAAHcTJzd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AAAAAWIJAQAAAAV0aHJvdwAAAAADBQAAAAZldmVudDEJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyAgAAAA1fZXZlbnQxYW1vdW50AAAAAAAAAAAABQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyCQAAaAAAAAIFAAAADGV2ZW50MWFtb3VudAAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsAwUAAAAGZXZlbnQyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgIAAAANX2V2ZW50MmFtb3VudAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgkAAGgAAAACBQAAAAxldmVudDJhbW91bnQAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAClldmVudCBkaWQgbm90IGhhcHBlbiBvciB5b3UgaGF2ZSB6ZXJvIHdpbgAAAADZKrDi", "chainId": 84, "height": 839463, "spentComplexity": 0 } View: original | compacted Prev: none Next: 7hCL9jWbkNpkS5bByZZYYgPWvGEpRSpHPutbQ5V23tEM 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 = 1
15+
16+let g = 100
17+
18+func h () = {
19+ let i = if (isDefined(getInteger(this, "q1_next")))
20+ then getIntegerValue(this, "q1_next")
21+ else a
22+ i
23+ }
24+
25+
26+func j () = {
27+ let k = if (isDefined(getInteger(this, "q2_next")))
28+ then getIntegerValue(this, "q2_next")
29+ else b
30+ k
31+ }
32+
33+
34+func l () = {
35+ let m = if (isDefined(getInteger(this, "debtAmount1")))
36+ then getIntegerValue(this, "debtAmount1")
37+ else 0
38+ m
39+ }
40+
41+
42+func n () = {
43+ let o = if (isDefined(getInteger(this, "debtAmount2")))
44+ then getIntegerValue(this, "debtAmount2")
45+ else 0
46+ o
47+ }
48+
49+
50+func p (q,r,s) = {
51+ let t = (((1 * 100000) - (s * 1000)) / (g - e))
52+ let u = ((1 * 100000) - (t * g))
53+ let v = (((r * t) + u) / 1000)
54+ v
55+ }
56+
57+
58+func w (s,c) = {
59+ let w = pow(((c + 1000) - (100000 / s)), 0, -1, 0, 5, DOWN)
60+ w
61+ }
62+
63+
64+func x (r,m,o) = if ((0 > m))
65+ then {
66+ let t = (((1 * 1000000) - (a * 10000)) / d)
67+ let u = ((1 * 1000000) - (t * d))
68+ let i = (((-(t) * m) + u) / 10000)
69+ let k = w(i, c)
70+[i, k]
71+ }
72+ else if ((m > 0))
73+ then {
74+ let t = (((1 * 1000000) - (b * 10000)) / d)
75+ let u = ((1 * 1000000) - (t * d))
76+ let k = (((-(t) * o) + u) / 10000)
77+ let i = w(k, c)
78+[i, k]
79+ }
80+ else {
81+ let i = a
82+ let k = b
83+[i, k]
84+ }
85+
86+
87+@Callable(y)
88+func bet (q) = {
89+ let r = {
90+ let z = y.payment
91+ if ($isInstanceOf(z, "AttachedPayment"))
92+ then {
93+ let A = z
94+ if ((f > A.amount))
95+ then throw("low payment")
96+ else A.amount
97+ }
98+ else throw("Payment not attached")
99+ }
100+ let B = if (isDefined(getInteger(this, "count")))
101+ then getIntegerValue(this, "count")
102+ else 0
103+ let C = if (isDefined(getInteger(this, (toString(y.caller) + "_event1DebtForThisPlayer"))))
104+ then getIntegerValue(this, (toString(y.caller) + "_event1DebtForThisPlayer"))
105+ else 0
106+ let D = if (isDefined(getInteger(this, (toString(y.caller) + "_event2DebtForThisPlayer"))))
107+ then getIntegerValue(this, (toString(y.caller) + "_event2DebtForThisPlayer"))
108+ else 0
109+ let m = l()
110+ let o = n()
111+ let i = h()
112+ let k = j()
113+ let E = (B + 1)
114+ if ((q == 1))
115+ then if ((e >= r))
116+ then {
117+ let F = (C + (i * r))
118+ let G = ((m + r) - ((i * r) / 100))
119+ let H = (o + r)
120+ let I = x(r, G, H)
121+ let J = I[0]
122+ let K = I[1]
123+ WriteSet([DataEntry((toString(y.caller) + "_event1DebtForThisPlayer"), F), DataEntry((toString(E) + "_event"), q), DataEntry((toString(E) + "_qoef1"), i), DataEntry((toString(E) + "_bettor"), toString(y.caller)), DataEntry((toString(E) + "_qoef2"), k), DataEntry("debtAmount1", G), DataEntry("debtAmount2", H), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)])
124+ }
125+ else if (if ((r > e))
126+ then (g > r)
127+ else false)
128+ then {
129+ let L = p("q1_next", r, i)
130+ let F = (C + (L * r))
131+ let G = ((m + r) - ((L * r) / 100))
132+ let H = (o + r)
133+ let I = x(r, G, H)
134+ let J = I[0]
135+ let K = I[1]
136+ 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("debtAmount1", G), DataEntry("debtAmount2", H), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)])
137+ }
138+ else throw("incorrect bet amount")
139+ else if ((q == 2))
140+ then if ((e >= r))
141+ then {
142+ let M = (D + (k * r))
143+ let H = ((o + r) - ((k * r) / 100))
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("debtAmount1", G), DataEntry("debtAmount2", H), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)])
149+ }
150+ else if (if ((r > e))
151+ then (g > r)
152+ else false)
153+ then {
154+ let N = p("q2_next", r, k)
155+ let M = (D + (N * r))
156+ let H = ((o + r) - ((N * r) / 100))
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) + "_bettor"), toString(y.caller)), DataEntry((toString(E) + "_qoef2"), k), DataEntry("debtAmount1", G), DataEntry("debtAmount2", H), DataEntry("q1_next", J), DataEntry("q2_next", K), DataEntry("count", E)])
162+ }
163+ else throw("incorrect bet amount")
164+ else throw("incorrect event id")
165+ }
166+
167+
168+
169+@Callable(y)
170+func withdraw () = {
171+ let O = {
172+ let z = getInteger(this, (toString(y.caller) + "__event1DebtForThisPlayer"))
173+ if ($isInstanceOf(z, "Unit"))
174+ then {
175+ let P = z
176+ 0
177+ }
178+ else if ($isInstanceOf(z, "Int"))
179+ then {
180+ let Q = z
181+ Q
182+ }
183+ else throw()
184+ }
185+ let R = {
186+ let z = getInteger(this, (toString(y.caller) + "__event2DebtForThisPlayer"))
187+ if ($isInstanceOf(z, "Unit"))
188+ then {
189+ let P = z
190+ 0
191+ }
192+ else if ($isInstanceOf(z, "Int"))
193+ then {
194+ let Q = z
195+ Q
196+ }
197+ else throw()
198+ }
199+ let S = {
200+ let z = getBoolean(this, "result_event_1")
201+ if ($isInstanceOf(z, "Unit"))
202+ then {
203+ let P = z
204+ false
205+ }
206+ else if ($isInstanceOf(z, "Boolean"))
207+ then {
208+ let u = z
209+ u
210+ }
211+ else throw()
212+ }
213+ let T = {
214+ let z = getBoolean(this, "result_event_2")
215+ if ($isInstanceOf(z, "Unit"))
216+ then {
217+ let P = z
218+ false
219+ }
220+ else if ($isInstanceOf(z, "Boolean"))
221+ then {
222+ let u = z
223+ u
224+ }
225+ else throw()
226+ }
227+ if (S)
228+ then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event1amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (O * 1000000), unit)]))
229+ else if (T)
230+ then ScriptResult(WriteSet([DataEntry((toString(y.caller) + "_event2amount"), 0)]), TransferSet([ScriptTransfer(y.caller, (R * 1000000), unit)]))
231+ else throw("event did not happen or you have zero win")
232+ }
233+
234+

github/deemru/w8io/169f3d6 
27.71 ms