tx · 5rp5RY6dnDGDfLuXAhHQWyZSFd2jZXua6mnHFAZvunDf

3MxCigsbn8cZ32ArGVPUq69mJPjRBi6Jvx5:  -0.01000000 Waves

2019.07.28 20:58 [606249] smart account 3MxCigsbn8cZ32ArGVPUq69mJPjRBi6Jvx5 > SELF 0.00000000 Waves

{ "type": 13, "id": "5rp5RY6dnDGDfLuXAhHQWyZSFd2jZXua6mnHFAZvunDf", "fee": 1000000, "feeAssetId": null, "timestamp": 1564336677348, "version": 1, "sender": "3MxCigsbn8cZ32ArGVPUq69mJPjRBi6Jvx5", "senderPublicKey": "4nED9xFqctRddzg9Lr9sbECR9GUBfyp9qpaVUTrLabR4", "proofs": [ "5W2eWZVmkHQVEjzbKZkRJRCirgXaJorCxmxKiVQCnxk6bLb7ajrmLCedftMkdH5X4Z7xahbP1ThTX1UjsRsm8Xjm" ], "script": "base64:AAIDAAAAAAAAAAAAAAAzAAAAAAV3YXZlcwAAAAAABfXhAAAAAAAObGlnYUNvbW1pc3Npb24AAAAAAAAAAAQAAAAACnRvdGFsVGVhbXMAAAAAAAAAAAIAAAAADWxpZ2FQdWJsaWNLZXkBAAAAIDz1Wd7VAqxkhwXXdekZDWeZHlcDxk6CXoR+2JlrB7MjAAAAAA5ldmVudFB1YmxpY0tleQEAAAAgOCkiHsc6z3bzc95F8Gp6U4miZ2bKRgBuhZWXWk9tzzMAAAAAD29yYWNsZVB1YmxpY0tleQEAAAAgsosShleYTa1oTuDQD5PKZVWH7RfTvqf5d6Wxw3pofCgAAAAAEmxlYXNlTm9kZVB1YmxpY0tleQEAAAAgsosShleYTa1oTuDQD5PKZVWH7RfTvqf5d6Wxw3pofCgAAAAAEGV2ZW50RW5kc0F0QmxvY2sAAAAAAAAJQDIAAAAAGXdpbm5lckRlY2xhcmF0aW9uSW50ZXJ2YWwAAAAAAAAAABQAAAAADnBheW91dEludGVydmFsAAAAAAAAAAAUAQAAAAhnZXRJbnRPcgAAAAIAAAADa2V5AAAAB2RlZmF1bHQDC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kc0F0QmxvY2sFAAAABmhlaWdodAkAAfQAAAADCAUAAAABbwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAW8AAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5ldmVudFB1YmxpY0tleQcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEExlYXNlVHJhbnNhY3Rpb24EAAAAAWwFAAAAByRtYXRjaDADAwkAAAAAAAACCQEAAAAFc3RhZ2UAAAAABQAAAAZTVEFHRTEJAAAAAAAAAggFAAAAAWwAAAAJcmVjaXBpZW50CQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABJsZWFzZU5vZGVQdWJsaWNLZXkHCQAAZgAAAAIIBQAAAAFsAAAABmFtb3VudAkAAGgAAAACAAAAAAAAAABkBQAAAAV3YXZlcwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFkxlYXNlQ2FuY2VsVHJhbnNhY3Rpb24EAAAAAmNsBQAAAAckbWF0Y2gwCQEAAAACIT0AAAACCQEAAAAFc3RhZ2UAAAAABQAAAAZTVEFHRTEHHmWrOA==", "chainId": 84, "height": 606249, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = 100000000
5+
6+let b = 4
7+
8+let c = 2
9+
10+let d = base58'56xTC8QUv2imTCZqZSvWNbjiKbPLMqbfrUk9nNPd1ra6'
11+
12+let e = base58'4nED9xFqctRddzg9Lr9sbECR9GUBfyp9qpaVUTrLabR4'
13+
14+let f = base58'D1xZrihCFb5HYa4arsKZaq7twr6WiwRcQ3TQYyMXG9Hq'
15+
16+let g = base58'D1xZrihCFb5HYa4arsKZaq7twr6WiwRcQ3TQYyMXG9Hq'
17+
18+let h = 606258
19+
20+let i = 20
21+
22+let j = 20
23+
24+func k (l,m) = if (isDefined(getInteger(this, l)))
25+ then getIntegerValue(this, l)
26+ else m
27+
28+
29+func n (l) = getIntegerValue(this, l)
30+
31+
32+func o (l,p) = DataEntry(l, p)
33+
34+
35+func q (l,p) = DataEntry(l, p)
36+
37+
38+func r (l) = getBinaryValue(this, l)
39+
40+
41+func s (l) = if (if (if (isDefined(getBinary(this, l)))
42+ then true
43+ else isDefined(getString(this, l)))
44+ then true
45+ else isDefined(getBoolean(this, l)))
46+ then true
47+ else isDefined(getInteger(this, l))
48+
49+
50+func t (u) = (toBase58String(u) + "_SOLD")
51+
52+
53+func v (u) = k(t(u), (extract(assetInfo(u)).quantity - assetBalance(this, u)))
54+
55+
56+func w (u) = o(t(u), v(u))
57+
58+
59+func x (u) = (toBase58String(u) + "_BASE_PRICE")
60+
61+
62+func y (z) = n(x(z))
63+
64+
65+func A (u) = (toBase58String(u) + "_OFF")
66+
67+
68+func B (z) = o(A(z), 1)
69+
70+
71+func C (z) = k(A(z), 0)
72+
73+
74+let D = "BALANCE_SNAPSHOT"
75+
76+func E () = k(D, wavesBalance(this))
77+
78+
79+func F () = o(D, E())
80+
81+
82+let G = "PRIZE_POOL"
83+
84+func H () = k(G, ((E() * (100 - b)) / 100))
85+
86+
87+func I () = o(G, H())
88+
89+
90+let J = "WINNER"
91+
92+func K () = r(J)
93+
94+
95+func L (M) = q(J, M)
96+
97+
98+let N = "TEAMS_LEFT"
99+
100+func O () = k(N, c)
101+
102+
103+func P () = o(N, (O() - 1))
104+
105+
106+let Q = "TEAM_COUNTER"
107+
108+func R () = k(Q, 0)
109+
110+
111+func S () = o(Q, (R() + 1))
112+
113+
114+let T = "BASE_PRIZE_POOL"
115+
116+func U () = k(T, 0)
117+
118+
119+func V (p) = o(T, (U() + p))
120+
121+
122+let W = 1
123+
124+let X = 2
125+
126+let Y = 31
127+
128+let Z = 32
129+
130+let aa = 33
131+
132+let ab = 4
133+
134+let ac = "STAGE"
135+
136+func ad () = k(ac, W)
137+
138+
139+func ae (ad) = o(ac, ad)
140+
141+
142+@Callable(af)
143+func stage2 () = if ((ad() != W))
144+ then throw("Invalid current stage.")
145+ else if ((h >= height))
146+ then throw("Event is not yet finished.")
147+ else WriteSet([ae(X), F()])
148+
149+
150+
151+@Callable(af)
152+func stage31 (M) = if ((ad() != X))
153+ then throw("Invalid current stage.")
154+ else if ((af.callerPublicKey != f))
155+ then throw("Only oracle could declare the winner.")
156+ else if (!(s(x(M))))
157+ then throw("Team is not found.")
158+ else if (isDefined(A(M)))
159+ then throw("Team that is off cannot be the winner.")
160+ else WriteSet([ae(Y), I(), L(M), w(M)])
161+
162+
163+
164+@Callable(af)
165+func stage32 (z) = if (if ((ad() != X))
166+ then true
167+ else (ad() != Z))
168+ then throw("Invalid current stage.")
169+ else if (((h + i) >= height))
170+ then throw("Oracle is still have time to declare a winner.")
171+ else if (!(s(x(z))))
172+ then throw("Team is not found.")
173+ else if (isDefined(A(z)))
174+ then throw("Team that is off cannot participate in rollback.")
175+ else if (s(t(z)))
176+ then throw("Team sold amount already set.")
177+ else WriteSet([ae(Z), w(z), V((v(z) * y(z))), S()])
178+
179+
180+
181+@Callable(af)
182+func stage33 () = if ((ad() != Z))
183+ then throw("Invalid current stage.")
184+ else if ((R() != O()))
185+ then throw("There are still teams without sold amount set.")
186+ else WriteSet([ae(aa)])
187+
188+
189+
190+@Callable(af)
191+func stage4 (ag) = if ((ad() != Y))
192+ then throw("Invalid current stage.")
193+ else if ((((h + i) + j) >= height))
194+ then throw("Payout is not yet finished.")
195+ else if ((af.callerPublicKey != d))
196+ then throw("Only Liga could set the final stage and hold commission.")
197+ else ScriptResult(WriteSet([ae(ab)]), TransferSet([ScriptTransfer(addressFromPublicKey(ag), wavesBalance(this), unit)]))
198+
199+
200+
201+@Callable(af)
202+func teamOff (z) = if ((ad() != W))
203+ then throw("Invalid current stage.")
204+ else if ((af.callerPublicKey != f))
205+ then throw("Only oracle could drop teams out off the game.")
206+ else if (!(s(x(z))))
207+ then throw("Team is not found.")
208+ else if (s(A(z)))
209+ then throw("Team is already off")
210+ else if ((O() == 1))
211+ then throw("There is only 1 team left.")
212+ else WriteSet([B(z), P()])
213+
214+
215+
216+@Callable(af)
217+func rollback () = if ((ad() != aa))
218+ then throw("Invalid current stage.")
219+ else {
220+ let ah = extract(af.payment)
221+ let z = extract(ah.assetId)
222+ if (!(s(x(z))))
223+ then throw("Team is not found.")
224+ else if (s(A(z)))
225+ then throw("You cannot receive rollback for an off team")
226+ else {
227+ let ai = v(z)
228+ let aj = (((E() * U()) * ah.amount) / ((y(z) * ai) * ai))
229+ TransferSet([ScriptTransfer(af.caller, aj, unit)])
230+ }
231+ }
232+
233+
234+
235+@Callable(af)
236+func payout () = if ((ad() != Y))
237+ then throw("Invalid current stage.")
238+ else {
239+ let ah = extract(af.payment)
240+ if ((ah.assetId != K()))
241+ then throw("You are allowed to get payout for the winner tokens only.")
242+ else {
243+ let ak = ((H() * ah.amount) / v(K()))
244+ TransferSet([ScriptTransfer(af.caller, ak, unit)])
245+ }
246+ }
247+
248+
249+@Verifier(al)
250+func am () = {
251+ let an = al
252+ if ($isInstanceOf(an, "Order"))
253+ then {
254+ let ao = an
255+ if ((h > height))
256+ then sigVerify(ao.bodyBytes, ao.proofs[0], e)
257+ else false
258+ }
259+ else if ($isInstanceOf(an, "LeaseTransaction"))
260+ then {
261+ let ap = an
262+ if (if ((ad() == W))
263+ then (ap.recipient == addressFromPublicKey(g))
264+ else false)
265+ then (ap.amount > (100 * a))
266+ else false
267+ }
268+ else if ($isInstanceOf(an, "LeaseCancelTransaction"))
269+ then {
270+ let aq = an
271+ (ad() != W)
272+ }
273+ else false
274+ }
275+

github/deemru/w8io/169f3d6 
28.54 ms