tx · 2iw1uxofYaKQJyq6F3uv7qdxYzgBVwvqmoT5pb1AeitZ 3N1XFcpNzSv2emCBjrtH2LdBozJh7s4zCJL: -0.01000000 Waves 2020.01.15 12:39 [855035] smart account 3N1XFcpNzSv2emCBjrtH2LdBozJh7s4zCJL > SELF 0.00000000 Waves
{ "type": 13, "id": "2iw1uxofYaKQJyq6F3uv7qdxYzgBVwvqmoT5pb1AeitZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1579081176391, "version": 1, "sender": "3N1XFcpNzSv2emCBjrtH2LdBozJh7s4zCJL", "senderPublicKey": "9oDT1W8EZHyJKokXJ92dtbAwBWfNpdrCg3fprhmDJLUN", "proofs": [ "2okzUW8zKzqwaWhHjtUCfSTQ2XrXYkswZcUQcRr45WBetHCQRN8xR8x3sDeeVUyuL64diWDkeTp7HuW8ErDSuCxP" ], "script": "base64:AAIDAAAAAAAAAAgIARIAEgASAAAAADQAAAAADWlzc3VlckFzc2V0SWQBAAAAIIN6cqxdv/usZ4Zdz4PgP/ewPmA4Ikv4v27wumKW0jdNAAAAABFpbnZlc3RtZW50QXNzZXRJZAEAAAAEE6vZMwAAAAAYaW52ZXN0bWVudEFzc2V0SWRJc1dhdmVzBgAAAAAOb3duZXJQdWJsaWNLZXkBAAAAIMNm4KJ+6HNvzyvSN9gKBb20aq1Gf90RfLXMFYecXNREAAAAAAxvd25lckFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAADm93bmVyUHVibGljS2V5AAAAABJvd25lckFkZHJlc3NTdHJpbmcCAAAAIzNNdGVwOWNiTjZCRlRXRWZEeml5azZacUtpczNWZThOZ1pMAAAAABNhc3NldERlY2ltYWxzT2Zmc2V0AAAAAAAAAAABAAAAAA90b2tlbnNhbGVBbW91bnQAAAAAAAAAAGQAAAAACXN0YXJ0VGltZQAAAAAAXh7NiAAAAAAHZW5kVGltZQAAAAAAXjPkXAAAAAAFcHJpY2UAAAAAAACYloAAAAAADXNvZnRDY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": 855035, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'9rEhiVGC98EbncbkaDj3NoRuMc77yUFaX7n2ATQx5m3z' | |
5 | + | ||
6 | + | let b = base58'WAVES' | |
7 | + | ||
8 | + | let c = true | |
9 | + | ||
10 | + | let d = base58'E9mVDLuZswgpMMmBVTqfoLtovcCST88k3yqg4aCb25X1' | |
11 | + | ||
12 | + | let e = addressFromPublicKey(d) | |
13 | + | ||
14 | + | let f = "3Mtep9cbN6BFTWEfDziyk6ZqKis3Ve8NgZL" | |
15 | + | ||
16 | + | let g = 1 | |
17 | + | ||
18 | + | let h = 100 | |
19 | + | ||
20 | + | let i = 1579077000 | |
21 | + | ||
22 | + | let j = 1580459100 | |
23 | + | ||
24 | + | let k = 10000000 | |
25 | + | ||
26 | + | let l = 500000000 | |
27 | + | ||
28 | + | let m = 10000000 | |
29 | + | ||
30 | + | let n = base58'' | |
31 | + | ||
32 | + | let o = 0 | |
33 | + | ||
34 | + | let p = 0 | |
35 | + | ||
36 | + | let q = 0 | |
37 | + | ||
38 | + | let r = 0 | |
39 | + | ||
40 | + | let s = 1 | |
41 | + | ||
42 | + | let t = 2 | |
43 | + | ||
44 | + | let u = "swapSumAmount " | |
45 | + | ||
46 | + | let v = "swapSumAssets " | |
47 | + | ||
48 | + | let w = "swapAssets" | |
49 | + | ||
50 | + | let x = "swapAmount" | |
51 | + | ||
52 | + | let y = "sumAmount " | |
53 | + | ||
54 | + | let z = "paidAmount " | |
55 | + | ||
56 | + | let A = "sumAssets " | |
57 | + | ||
58 | + | let B = "allow " | |
59 | + | ||
60 | + | let C = "assets" | |
61 | + | ||
62 | + | let D = "amount" | |
63 | + | ||
64 | + | let E = "issuer" | |
65 | + | ||
66 | + | let F = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ') | |
67 | + | ||
68 | + | let G = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR') | |
69 | + | ||
70 | + | let H = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1") | |
71 | + | ||
72 | + | let I = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ") | |
73 | + | ||
74 | + | let J = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe") | |
75 | + | ||
76 | + | let K = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
77 | + | ||
78 | + | let L = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
79 | + | ||
80 | + | let M = "4.0.0-testnet" | |
81 | + | ||
82 | + | let N = 1000 | |
83 | + | ||
84 | + | func O () = if ((q == r)) | |
85 | + | then true | |
86 | + | else (q == t) | |
87 | + | ||
88 | + | ||
89 | + | func P () = if ((q == s)) | |
90 | + | then true | |
91 | + | else (q == t) | |
92 | + | ||
93 | + | ||
94 | + | func Q () = { | |
95 | + | let R = value(blockInfoByHeight(height)) | |
96 | + | (R.timestamp / 1000) | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func S (T,U) = if ((T == false)) | |
101 | + | then U | |
102 | + | else unit | |
103 | + | ||
104 | + | ||
105 | + | func V () = k | |
106 | + | ||
107 | + | ||
108 | + | func W (X) = { | |
109 | + | let Y = getInteger(this, X) | |
110 | + | if ($isInstanceOf(Y, "Int")) | |
111 | + | then { | |
112 | + | let Z = Y | |
113 | + | Z | |
114 | + | } | |
115 | + | else 0 | |
116 | + | } | |
117 | + | ||
118 | + | ||
119 | + | func aa () = (Q() >= i) | |
120 | + | ||
121 | + | ||
122 | + | func ab () = { | |
123 | + | let ac = { | |
124 | + | let Y = getInteger(this, C) | |
125 | + | if ($isInstanceOf(Y, "Int")) | |
126 | + | then { | |
127 | + | let Z = Y | |
128 | + | Z | |
129 | + | } | |
130 | + | else h | |
131 | + | } | |
132 | + | if ((Q() > j)) | |
133 | + | then true | |
134 | + | else (ac == 0) | |
135 | + | } | |
136 | + | ||
137 | + | ||
138 | + | func ad () = { | |
139 | + | let ac = { | |
140 | + | let Y = getInteger(this, w) | |
141 | + | if ($isInstanceOf(Y, "Int")) | |
142 | + | then { | |
143 | + | let Z = Y | |
144 | + | Z | |
145 | + | } | |
146 | + | else o | |
147 | + | } | |
148 | + | if ((Q() > j)) | |
149 | + | then true | |
150 | + | else (o == 0) | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func ae () = if (ab()) | |
155 | + | then ad() | |
156 | + | else false | |
157 | + | ||
158 | + | ||
159 | + | func af (ag) = { | |
160 | + | let Y = ag.payment | |
161 | + | if ($isInstanceOf(Y, "AttachedPayment")) | |
162 | + | then { | |
163 | + | let ah = Y | |
164 | + | let ai = { | |
165 | + | let aj = ah.assetId | |
166 | + | if ($isInstanceOf(aj, "ByteVector")) | |
167 | + | then { | |
168 | + | let U = aj | |
169 | + | if (!(c)) | |
170 | + | then (U == b) | |
171 | + | else false | |
172 | + | } | |
173 | + | else (c == true) | |
174 | + | } | |
175 | + | if (ai) | |
176 | + | then if ((g == 1)) | |
177 | + | then if (((ah.amount % k) == 0)) | |
178 | + | then ah.amount | |
179 | + | else throw("payment amount must be a multiple of token price") | |
180 | + | else ah.amount | |
181 | + | else throw("Invalid asset ID of investment") | |
182 | + | } | |
183 | + | else throw("Payment must be attached") | |
184 | + | } | |
185 | + | ||
186 | + | ||
187 | + | func ak (ag) = { | |
188 | + | let Y = ag.payment | |
189 | + | if ($isInstanceOf(Y, "AttachedPayment")) | |
190 | + | then { | |
191 | + | let ah = Y | |
192 | + | let ai = { | |
193 | + | let aj = ah.assetId | |
194 | + | if ($isInstanceOf(aj, "ByteVector")) | |
195 | + | then { | |
196 | + | let U = aj | |
197 | + | (U == n) | |
198 | + | } | |
199 | + | else false | |
200 | + | } | |
201 | + | if (ai) | |
202 | + | then if ((g == 1)) | |
203 | + | then if (((ah.amount % p) == 0)) | |
204 | + | then ah.amount | |
205 | + | else throw("payment amount must be a multiple of token price") | |
206 | + | else ah.amount | |
207 | + | else throw("Invalid asset ID of investment") | |
208 | + | } | |
209 | + | else throw("Payment must be attached") | |
210 | + | } | |
211 | + | ||
212 | + | ||
213 | + | @Callable(ag) | |
214 | + | func deposit () = { | |
215 | + | let al = V() | |
216 | + | let am = W(D) | |
217 | + | if (!(O())) | |
218 | + | then throw("This deposit method is unsopperted for this company") | |
219 | + | else if (!(aa())) | |
220 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(j))) | |
221 | + | else if (ab()) | |
222 | + | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
223 | + | else { | |
224 | + | let an = af(ag) | |
225 | + | let ao = toBase58String(ag.caller.bytes) | |
226 | + | let ap = { | |
227 | + | let Y = getInteger(F, ao) | |
228 | + | if ($isInstanceOf(Y, "Int")) | |
229 | + | then { | |
230 | + | let Z = Y | |
231 | + | Z | |
232 | + | } | |
233 | + | else -255 | |
234 | + | } | |
235 | + | if ((N > ap)) | |
236 | + | then throw("Your account has no right to send funds.") | |
237 | + | else { | |
238 | + | let aq = { | |
239 | + | let Y = getInteger(this, C) | |
240 | + | if ($isInstanceOf(Y, "Int")) | |
241 | + | then { | |
242 | + | let Z = Y | |
243 | + | Z | |
244 | + | } | |
245 | + | else h | |
246 | + | } | |
247 | + | let ar = ((an * g) / al) | |
248 | + | let as = ((m * g) / al) | |
249 | + | if (if (if ((0 > (aq - ar))) | |
250 | + | then true | |
251 | + | else (as > ar)) | |
252 | + | then true | |
253 | + | else if ((ar != aq)) | |
254 | + | then (ar > (aq - as)) | |
255 | + | else false) | |
256 | + | then throw("Incorrect payment amount.") | |
257 | + | else { | |
258 | + | let at = (W((y + ao)) + an) | |
259 | + | let au = (W((A + ao)) + ar) | |
260 | + | let av = (aq - ar) | |
261 | + | let aw = (am + an) | |
262 | + | WriteSet([DataEntry((y + ao), at), DataEntry((A + ao), au), DataEntry(C, av), DataEntry(D, aw)]) | |
263 | + | } | |
264 | + | } | |
265 | + | } | |
266 | + | } | |
267 | + | ||
268 | + | ||
269 | + | ||
270 | + | @Callable(ag) | |
271 | + | func swapDeposit () = { | |
272 | + | let al = p | |
273 | + | let am = W(x) | |
274 | + | if (!(P())) | |
275 | + | then throw("This swap-deposit method is unsopperted for this company") | |
276 | + | else if (!(aa())) | |
277 | + | then throw(((("The Tokensale works between " + toString(i)) + " and ") + toString(j))) | |
278 | + | else if (ad()) | |
279 | + | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
280 | + | else { | |
281 | + | let an = ak(ag) | |
282 | + | let ao = toBase58String(ag.caller.bytes) | |
283 | + | let ap = { | |
284 | + | let Y = getInteger(F, ao) | |
285 | + | if ($isInstanceOf(Y, "Int")) | |
286 | + | then { | |
287 | + | let Z = Y | |
288 | + | Z | |
289 | + | } | |
290 | + | else -255 | |
291 | + | } | |
292 | + | if ((N > ap)) | |
293 | + | then throw("Your account has no right to send funds.") | |
294 | + | else { | |
295 | + | let aq = { | |
296 | + | let Y = getInteger(this, w) | |
297 | + | if ($isInstanceOf(Y, "Int")) | |
298 | + | then { | |
299 | + | let Z = Y | |
300 | + | Z | |
301 | + | } | |
302 | + | else o | |
303 | + | } | |
304 | + | let ar = ((an * g) / al) | |
305 | + | if ((0 > (aq - ar))) | |
306 | + | then throw("Incorrect payment amount.") | |
307 | + | else { | |
308 | + | let at = (W((u + ao)) + an) | |
309 | + | let au = (W((v + ao)) + ar) | |
310 | + | let av = (aq - ar) | |
311 | + | let aw = (am + an) | |
312 | + | WriteSet([DataEntry((u + ao), at), DataEntry((v + ao), au), DataEntry(w, av), DataEntry(x, aw)]) | |
313 | + | } | |
314 | + | } | |
315 | + | } | |
316 | + | } | |
317 | + | ||
318 | + | ||
319 | + | ||
320 | + | @Callable(ag) | |
321 | + | func withdrawal () = { | |
322 | + | let ax = { | |
323 | + | let Y = getInteger(G, toString(this)) | |
324 | + | if ($isInstanceOf(Y, "Int")) | |
325 | + | then { | |
326 | + | let Z = Y | |
327 | + | Z | |
328 | + | } | |
329 | + | else 0 | |
330 | + | } | |
331 | + | if ((ax == 0)) | |
332 | + | then throw("Withdrawals are not available until the issuer passes verification") | |
333 | + | else { | |
334 | + | let ao = toBase58String(ag.caller.bytes) | |
335 | + | let ay = W((A + ao)) | |
336 | + | let az = W((y + ao)) | |
337 | + | let aA = W((v + ao)) | |
338 | + | let aB = W((u + ao)) | |
339 | + | let aC = W(x) | |
340 | + | let aD = W(w) | |
341 | + | let am = W(D) | |
342 | + | let aq = W(C) | |
343 | + | let aE = S(c, b) | |
344 | + | if (!(ae())) | |
345 | + | then throw("The Company is still active") | |
346 | + | else if (if (if ((ao == f)) | |
347 | + | then if ((am >= l)) | |
348 | + | then true | |
349 | + | else (aC != 0) | |
350 | + | else false) | |
351 | + | then (ax == 1) | |
352 | + | else false) | |
353 | + | then { | |
354 | + | let aF = W(E) | |
355 | + | if ((aF == 0)) | |
356 | + | then { | |
357 | + | let aG = nil | |
358 | + | let aH = if ((am >= l)) | |
359 | + | then ScriptTransfer(e, am, aE) :: aG | |
360 | + | else aG | |
361 | + | let aI = if ((am >= l)) | |
362 | + | then ScriptTransfer(e, aC, n) :: aH | |
363 | + | else aH | |
364 | + | ScriptResult(WriteSet([DataEntry(E, 1)]), TransferSet(aI)) | |
365 | + | } | |
366 | + | else throw("The issuer has already taken its share!") | |
367 | + | } | |
368 | + | else if (if ((az == 0)) | |
369 | + | then (aB == 0) | |
370 | + | else false) | |
371 | + | then throw("Don't have money") | |
372 | + | else { | |
373 | + | let aJ = nil | |
374 | + | let aG = nil | |
375 | + | let aK = if ((az != 0)) | |
376 | + | then [aJ, DataEntry((y + ao), 0), DataEntry((A + ao), 0)] | |
377 | + | else aJ | |
378 | + | let aL = if ((aB != 0)) | |
379 | + | then [aK, DataEntry((u + ao), 0), DataEntry((v + ao), 0)] | |
380 | + | else aK | |
381 | + | let aH = if ((az != 0)) | |
382 | + | then if (if ((am >= l)) | |
383 | + | then (ax == 1) | |
384 | + | else false) | |
385 | + | then ScriptTransfer(ag.caller, ay, a) :: aG | |
386 | + | else ScriptTransfer(ag.caller, az, aE) :: aG | |
387 | + | else aG | |
388 | + | let aI = if ((aB != 0)) | |
389 | + | then ScriptTransfer(ag.caller, aA, a) :: aH | |
390 | + | else aH | |
391 | + | ScriptResult(WriteSet(aJ), TransferSet(aG)) | |
392 | + | } | |
393 | + | } | |
394 | + | } | |
395 | + | ||
396 | + | ||
397 | + | @Verifier(aM) | |
398 | + | func aN () = { | |
399 | + | let Y = aM | |
400 | + | if (if ($isInstanceOf(Y, "SetAssetScriptTransaction")) | |
401 | + | then true | |
402 | + | else $isInstanceOf(Y, "SetScriptTransaction")) | |
403 | + | then { | |
404 | + | let aM = Y | |
405 | + | let aO = if (isDefined(getInteger(extract(H), toBase58String(aM.id)))) | |
406 | + | then 1 | |
407 | + | else 0 | |
408 | + | let aP = if (isDefined(getInteger(extract(I), toBase58String(aM.id)))) | |
409 | + | then 1 | |
410 | + | else 0 | |
411 | + | let aQ = if (isDefined(getInteger(extract(J), toBase58String(aM.id)))) | |
412 | + | then 1 | |
413 | + | else 0 | |
414 | + | let aR = if (isDefined(getInteger(extract(K), toBase58String(aM.id)))) | |
415 | + | then 1 | |
416 | + | else 0 | |
417 | + | let aS = if (isDefined(getInteger(extract(L), toBase58String(aM.id)))) | |
418 | + | then 1 | |
419 | + | else 0 | |
420 | + | (((((aO + aP) + aQ) + aR) + aS) >= 3) | |
421 | + | } | |
422 | + | else false | |
423 | + | } | |
424 | + |
github/deemru/w8io/169f3d6 29.14 ms ◑