tx · EQywz87c6LcD7m2EeejdMoSHosf5ryFXEMNQgykz9qki

3N7JvGVcDhmBu4ZscM9XoL3Z3M5QXUhHNHZ:  -0.01000000 Waves

2019.11.06 18:18 [753231] smart account 3N7JvGVcDhmBu4ZscM9XoL3Z3M5QXUhHNHZ > SELF 0.00000000 Waves

{ "type": 13, "id": "EQywz87c6LcD7m2EeejdMoSHosf5ryFXEMNQgykz9qki", "fee": 1000000, "feeAssetId": null, "timestamp": 1573053539517, "version": 1, "sender": "3N7JvGVcDhmBu4ZscM9XoL3Z3M5QXUhHNHZ", "senderPublicKey": "4kyQSoUdJm6Wv3E9iw2XXX4NDwRPUnzP9wHimwHJLL9r", "proofs": [ "iFXBP2YpP1Urj6p8MoS4Tn5guq986G1cA1gAJap1Yp4SEkBssGmjBdLvzJ6bvZvW6WZCexsRt182Ga47S1CtYwD" ], "script": "base64:AAIDAAAAAAAAACUIARIAEgASAwoBARIDCgEBEgQKAgEBEgMKAQESAwoBARIDCgEIAAAAGAAAAAARbWFuYWdlbWVudEFkZHJlc3MBAAAAGgFUE6hvtoSE62S1nC/g4FR6ERC9dnr0zRUiAAAAAAljb2xkVmF1bHQJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM04zNFVuc3VOUk5XWkRHdWtnV1p0YVRZU3RTaXdMYnVoUG4AAAAABXRva2VuAQAAACCv9ps9yoimL7rMFU6Oe3ziUjMfG6fU0n6NuOsyA3EmdQAAAAAJdG9rZW5SYXRlAAAAAAAAAABkAAAAABN0b2tlbkRlY2ltYWxzT2Zmc2V0CQAAbAAAAAYAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAJAQAAAAJVcAAAAAAAAAAADWhhcmRDYXBUb2tlbnMAAAAJGE5yoAAAAAAAEm1pbkludmVzdG1lbnRXYXZlcwAAAAAABfXhAAAAAAASbWF4SW52ZXN0bWVudFdhdmVzAAAA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BQAAAAtpbml0UGFnZU51bQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASY3VycmVudFBhZ2VTaXplS2V5BQAAABBuZXdXaGl0ZWxpc3RTaXplCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAxmaXJzdFBhZ2VLZXkFAAAACWludmVzdG9ycwUAAAADbmlsCQEAAAAFdGhyb3cAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAeEMH8f", "chainId": 84, "height": 753231, "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'3Mqi2PjJG63WxBN2kTj76bE7Hs3e7sZBhWZ'
5+
6+let b = extract(addressFromString("3N34UnsuNRNWZDGukgWZtaTYStSiwLbuhPn"))
7+
8+let c = base58'CqtSvwV8bNyuie2oGL3ywVtNkVrsAR4wgc4MY3XdhQqS'
9+
10+let d = 100
11+
12+let e = pow(10, 0, 8, 0, 0, Up())
13+
14+let f = 10000000000000
15+
16+let g = 100000000
17+
18+let h = 10000000000
19+
20+let i = true
21+
22+let j = 1573057020
23+
24+let k = 1575129600
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 
24.34 ms