tx · 5woSyuXuU8mZZXRo1zZtqWTtr6AtwfAXiRQniagu4t93 3N1hvLwZg7Ya3xszMZbeBqAw8QyBjzTMdrN: -0.01000000 Waves 2019.09.06 17:17 [664307] smart account 3N1hvLwZg7Ya3xszMZbeBqAw8QyBjzTMdrN > SELF 0.00000000 Waves
{ "type": 13, "id": "5woSyuXuU8mZZXRo1zZtqWTtr6AtwfAXiRQniagu4t93", "fee": 1000000, "feeAssetId": null, "timestamp": 1567779519715, "version": 1, "sender": "3N1hvLwZg7Ya3xszMZbeBqAw8QyBjzTMdrN", "senderPublicKey": "9WtdptacMLnYHNFbfGzZYsCqaA1WWFet6zWiWPZiBNP1", "proofs": [ "4UjaskztxPgCVZUh26ARadManpDNGPGPZQsy3Q8Cw81rSbPcJLPsbM15rXetJ7b8iPSVgp8VpGcnDwW2DNkTN59W" ], "script": "base64:AAIDAAAAAAAAAAAAAAAYAAAAABFtYW5hZ2VtZW50QWRkcmVzcwEAAAAaAVRWq/xGXXE+uAIeE9mbCXcl4gfVk9UGtGwAAAAACWNvbGRWYXVsdAkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXdwTXZCQmtUQThoYTlhcm1XamtueTRTQVdBVHN0dFpDNwAAAAAFdG9rZW4BAAAAIJaacCdJKT+Ch/AH7GPJksmEpygNSiYvz72NC5eEASA1AAAAAAl0b2tlblJhdGUAAAAAAAAAAAEAAAAAE3Rva2VuRGVjaW1hbHNPZmZzZXQJAABsAAAABgAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAkBAAAAAlVwAAAAAAAAAAANaGFyZENhcFRva2VucwAAAAAAAAAACgAAAAASbWluSW52ZXN0bWVudFdhdmVzAAAAAAAF9eEAAAAAABJtYXhJbnZlc3RtZW50V2F2ZXMAAAAAAAX14QAAAAAAEGFsbG93RGF0ZXNDaGFuZ2UGAAAAAAlzdGFydFRpbWUAAAA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bGlzdFNpemUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADGZpcnN0UGFnZUtleQUAAAAJaW52ZXN0b3JzBQAAAANuaWwJAQAAAAV0aHJvdwAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAB0qbu/8=", "chainId": 84, "height": 664307, "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'3MwpMvBBkTA8ha9armWjkny4SAWATsttZC7' | |
5 | + | ||
6 | + | let b = extract(addressFromString("3MwpMvBBkTA8ha9armWjkny4SAWATsttZC7")) | |
7 | + | ||
8 | + | let c = base58'B8tjx3sk4SVTAhCGdMAz1f8M9VRCmM7ErHQRn9tbVURS' | |
9 | + | ||
10 | + | let d = 1 | |
11 | + | ||
12 | + | let e = pow(10, 0, 1, 0, 0, Up()) | |
13 | + | ||
14 | + | let f = 10 | |
15 | + | ||
16 | + | let g = 100000000 | |
17 | + | ||
18 | + | let h = 100000000 | |
19 | + | ||
20 | + | let i = true | |
21 | + | ||
22 | + | let j = 1568365500 | |
23 | + | ||
24 | + | let k = 1568883600 | |
25 | + | ||
26 | + | let l = pow(10, 0, 8, 0, 0, Up()) | |
27 | + | ||
28 | + | func m (n) = { | |
29 | + | let o = toBase58String(n) | |
30 | + | let p = toBase58String(a) | |
31 | + | if ((o != p)) | |
32 | + | then false | |
33 | + | else true | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func q () = { | |
38 | + | let r = value(blockInfoByHeight(height)) | |
39 | + | (r.timestamp / 1000) | |
40 | + | } | |
41 | + | ||
42 | + | ||
43 | + | func s () = { | |
44 | + | let t = getInteger(this, "startTime") | |
45 | + | let u = t | |
46 | + | if ($isInstanceOf(u, "Int")) | |
47 | + | then { | |
48 | + | let v = u | |
49 | + | v | |
50 | + | } | |
51 | + | else if ($isInstanceOf(u, "Unit")) | |
52 | + | then { | |
53 | + | let w = u | |
54 | + | j | |
55 | + | } | |
56 | + | else throw() | |
57 | + | } | |
58 | + | ||
59 | + | ||
60 | + | func x () = { | |
61 | + | let y = getInteger(this, "endTime") | |
62 | + | let u = y | |
63 | + | if ($isInstanceOf(u, "Int")) | |
64 | + | then { | |
65 | + | let z = u | |
66 | + | z | |
67 | + | } | |
68 | + | else if ($isInstanceOf(u, "Unit")) | |
69 | + | then { | |
70 | + | let w = u | |
71 | + | k | |
72 | + | } | |
73 | + | else throw() | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | func A () = if ((q() > s())) | |
78 | + | then true | |
79 | + | else false | |
80 | + | ||
81 | + | ||
82 | + | func B () = if ((q() > x())) | |
83 | + | then true | |
84 | + | else false | |
85 | + | ||
86 | + | ||
87 | + | func C () = { | |
88 | + | let D = getBoolean(this, "finalized") | |
89 | + | let u = D | |
90 | + | if ($isInstanceOf(u, "Boolean")) | |
91 | + | then { | |
92 | + | let E = u | |
93 | + | E | |
94 | + | } | |
95 | + | else if ($isInstanceOf(u, "Unit")) | |
96 | + | then { | |
97 | + | let F = u | |
98 | + | false | |
99 | + | } | |
100 | + | else throw() | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | func G () = { | |
105 | + | let H = getInteger(this, "wavesRaised") | |
106 | + | let u = H | |
107 | + | if ($isInstanceOf(u, "Int")) | |
108 | + | then { | |
109 | + | let I = u | |
110 | + | I | |
111 | + | } | |
112 | + | else if ($isInstanceOf(u, "Unit")) | |
113 | + | then { | |
114 | + | let J = u | |
115 | + | 0 | |
116 | + | } | |
117 | + | else throw() | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func K (L,M) = { | |
122 | + | let N = ("whitelistedInvestors-" + toString(M)) | |
123 | + | let O = getString(this, N) | |
124 | + | let u = O | |
125 | + | if ($isInstanceOf(u, "String")) | |
126 | + | then { | |
127 | + | let P = u | |
128 | + | let Q = indexOf(P, L) | |
129 | + | let R = Q | |
130 | + | if ($isInstanceOf(R, "Int")) | |
131 | + | then { | |
132 | + | let S = R | |
133 | + | true | |
134 | + | } | |
135 | + | else if ($isInstanceOf(R, "Unit")) | |
136 | + | then { | |
137 | + | let T = R | |
138 | + | false | |
139 | + | } | |
140 | + | else throw() | |
141 | + | } | |
142 | + | else if ($isInstanceOf(u, "Unit")) | |
143 | + | then { | |
144 | + | let U = u | |
145 | + | false | |
146 | + | } | |
147 | + | else throw() | |
148 | + | } | |
149 | + | ||
150 | + | ||
151 | + | func V (L) = if (K(L, 0)) | |
152 | + | then true | |
153 | + | else if (K(L, 1)) | |
154 | + | then true | |
155 | + | else if (K(L, 2)) | |
156 | + | then true | |
157 | + | else if (K(L, 3)) | |
158 | + | then true | |
159 | + | else if (K(L, 4)) | |
160 | + | then true | |
161 | + | else if (K(L, 5)) | |
162 | + | then true | |
163 | + | else if (K(L, 6)) | |
164 | + | then true | |
165 | + | else if (K(L, 7)) | |
166 | + | then true | |
167 | + | else if (K(L, 8)) | |
168 | + | then true | |
169 | + | else if (K(L, 9)) | |
170 | + | then true | |
171 | + | else false | |
172 | + | ||
173 | + | ||
174 | + | func W () = { | |
175 | + | let X = getInteger(this, "minInvestment") | |
176 | + | let u = X | |
177 | + | if ($isInstanceOf(u, "Int")) | |
178 | + | then { | |
179 | + | let Y = u | |
180 | + | Y | |
181 | + | } | |
182 | + | else if ($isInstanceOf(u, "Unit")) | |
183 | + | then { | |
184 | + | let w = u | |
185 | + | g | |
186 | + | } | |
187 | + | else throw() | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | func Z () = { | |
192 | + | let aa = getInteger(this, "maxInvestment") | |
193 | + | let u = aa | |
194 | + | if ($isInstanceOf(u, "Int")) | |
195 | + | then { | |
196 | + | let ab = u | |
197 | + | ab | |
198 | + | } | |
199 | + | else if ($isInstanceOf(u, "Unit")) | |
200 | + | then { | |
201 | + | let w = u | |
202 | + | h | |
203 | + | } | |
204 | + | else throw() | |
205 | + | } | |
206 | + | ||
207 | + | ||
208 | + | @Callable(ac) | |
209 | + | func buyTokens () = { | |
210 | + | let ad = toBase58String(ac.caller.bytes) | |
211 | + | if (!(V(ad))) | |
212 | + | then throw("Only for whitelisted") | |
213 | + | else { | |
214 | + | let ae = extract(ac.payment).amount | |
215 | + | if ((0 >= ae)) | |
216 | + | then throw("Cannot accept zero value payments") | |
217 | + | else if ((W() > ae)) | |
218 | + | then throw("Attached payment is below minimal price") | |
219 | + | else if ((ae > Z())) | |
220 | + | then throw("Attached payment is above maximum price") | |
221 | + | else if (!(A())) | |
222 | + | then throw("STO time is not started yet") | |
223 | + | else if (C()) | |
224 | + | then throw("STO is finalized") | |
225 | + | else if (B()) | |
226 | + | then throw("STO time is already ended") | |
227 | + | else { | |
228 | + | let H = G() | |
229 | + | let af = (l / e) | |
230 | + | let ag = ((f / d) * af) | |
231 | + | let ah = (H + ae) | |
232 | + | if ((ah > ag)) | |
233 | + | then throw("Attached payment overflows hardcap") | |
234 | + | else { | |
235 | + | let ai = (ae * d) | |
236 | + | if ((af > ai)) | |
237 | + | then throw("Attached payment is too low to buy unit of token") | |
238 | + | else { | |
239 | + | let aj = (ai / af) | |
240 | + | ScriptResult(WriteSet([DataEntry("wavesRaised", ah)]), TransferSet([ScriptTransfer(b, ae, unit), ScriptTransfer(ac.caller, aj, c)])) | |
241 | + | } | |
242 | + | } | |
243 | + | } | |
244 | + | } | |
245 | + | } | |
246 | + | ||
247 | + | ||
248 | + | ||
249 | + | @Callable(ac) | |
250 | + | func finalize () = if (!(m(ac.caller.bytes))) | |
251 | + | then throw("Only for administration") | |
252 | + | else if (C()) | |
253 | + | then throw("Already finalized") | |
254 | + | else if (B()) | |
255 | + | then WriteSet([DataEntry("finalized", true)]) | |
256 | + | else throw("STO not finished yet") | |
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | @Callable(ac) | |
261 | + | func setStartTime (ak) = if (!(m(ac.caller.bytes))) | |
262 | + | then throw("Only for administration") | |
263 | + | else if (!(i)) | |
264 | + | then throw("changing dates is not supported") | |
265 | + | else if ((q() >= ak)) | |
266 | + | then throw("Cannot set time to past") | |
267 | + | else if ((ak > x())) | |
268 | + | then throw("Start date must be lower than end date") | |
269 | + | else WriteSet([DataEntry("startTime", ak)]) | |
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | @Callable(ac) | |
274 | + | func setEndTime (al) = if (!(m(ac.caller.bytes))) | |
275 | + | then throw("Only for administration") | |
276 | + | else if (!(i)) | |
277 | + | then throw("changing dates is not supported") | |
278 | + | else if ((q() >= al)) | |
279 | + | then throw("Cannot set time to past") | |
280 | + | else if ((s() > al)) | |
281 | + | then throw("End date must be higher than start date") | |
282 | + | else WriteSet([DataEntry("endTime", al)]) | |
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | @Callable(ac) | |
287 | + | func setStartAndEndTimes (ak,al) = if (!(m(ac.caller.bytes))) | |
288 | + | then throw("Only for administration") | |
289 | + | else if (!(i)) | |
290 | + | then throw("changing dates is not supported") | |
291 | + | else if ((q() >= ak)) | |
292 | + | then throw("Cannot set start time to past") | |
293 | + | else if ((ak > al)) | |
294 | + | then throw("Start date must be lower than end date") | |
295 | + | else if ((q() >= al)) | |
296 | + | then throw("Cannot set end time to past") | |
297 | + | else WriteSet([DataEntry("startTime", ak), DataEntry("endTime", al)]) | |
298 | + | ||
299 | + | ||
300 | + | ||
301 | + | @Callable(ac) | |
302 | + | func setMinInvestment (am) = if (!(m(ac.caller.bytes))) | |
303 | + | then throw("Only for administration") | |
304 | + | else WriteSet([DataEntry("minInvestment", am)]) | |
305 | + | ||
306 | + | ||
307 | + | ||
308 | + | @Callable(ac) | |
309 | + | func setMaxInvestment (am) = if (!(m(ac.caller.bytes))) | |
310 | + | then throw("Only for administration") | |
311 | + | else WriteSet([DataEntry("maxInvestment", am)]) | |
312 | + | ||
313 | + | ||
314 | + | ||
315 | + | @Callable(ac) | |
316 | + | func setWhitelistAddresses (an) = if (!(m(ac.caller.bytes))) | |
317 | + | then throw("Only for administration") | |
318 | + | else { | |
319 | + | let ao = split(an, ",") | |
320 | + | let ap = size(ao) | |
321 | + | let aq = "whitelistedInvestors" | |
322 | + | let ar = "totalInvestors" | |
323 | + | let as = "currentWhitelistPage" | |
324 | + | let at = "currentWhitelistPageSize" | |
325 | + | let au = getInteger(this, ar) | |
326 | + | let u = au | |
327 | + | if ($isInstanceOf(u, "Int")) | |
328 | + | then { | |
329 | + | let av = u | |
330 | + | let aw = getIntegerValue(this, as) | |
331 | + | let ax = getIntegerValue(this, at) | |
332 | + | let ay = ((aq + "-") + toString(aw)) | |
333 | + | let az = getStringValue(this, ay) | |
334 | + | let aA = (100 - ax) | |
335 | + | if (if ((aA >= ap)) | |
336 | + | then (aA > 0) | |
337 | + | else false) | |
338 | + | then { | |
339 | + | let aB = ((az + ",") + an) | |
340 | + | let aC = (ax + ap) | |
341 | + | let aD = (av + ap) | |
342 | + | WriteSet([DataEntry(ar, aD), DataEntry(at, aC), DataEntry(ay, aB)]) | |
343 | + | } | |
344 | + | else { | |
345 | + | let aE = (aw + 1) | |
346 | + | let aD = (av + ap) | |
347 | + | let aF = ap | |
348 | + | let aG = ((aq + "-") + toString(aE)) | |
349 | + | WriteSet([DataEntry(ar, aD), DataEntry(as, aE), DataEntry(at, aF), DataEntry(aG, an)]) | |
350 | + | } | |
351 | + | } | |
352 | + | else if ($isInstanceOf(u, "Unit")) | |
353 | + | then { | |
354 | + | let aH = u | |
355 | + | let aI = 0 | |
356 | + | let aJ = ((aq + "-") + toString(aI)) | |
357 | + | WriteSet([DataEntry(ar, ap), DataEntry(as, aI), DataEntry(at, ap), DataEntry(aJ, an)]) | |
358 | + | } | |
359 | + | else throw() | |
360 | + | } | |
361 | + | ||
362 | + | ||
363 | + | @Verifier(aK) | |
364 | + | func aL () = false | |
365 | + |
github/deemru/w8io/169f3d6 32.06 ms ◑