tx · 2K5eHQ66Gt51k54481RN4GK9DkWueMatXozEfbo41tAe

3NAbeHrj6mWXTEceUzS4cLYoRk96HechDdy:  -0.01000000 Waves

2019.07.22 12:36 [596992] smart account 3NAbeHrj6mWXTEceUzS4cLYoRk96HechDdy > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
20.19 ms