tx · GUWpAewASpB4Zv3MAWPQhTMqcubxHfBXp74TXCALJPU2

3N9E6s6hNWuzQXnuAux3WNwRF1YRJNpfEWo:  -0.01000000 Waves

2019.09.06 13:01 [664034] smart account 3N9E6s6hNWuzQXnuAux3WNwRF1YRJNpfEWo > SELF 0.00000000 Waves

{ "type": 13, "id": "GUWpAewASpB4Zv3MAWPQhTMqcubxHfBXp74TXCALJPU2", "fee": 1000000, "feeAssetId": null, "timestamp": 1567764159980, "version": 1, "sender": "3N9E6s6hNWuzQXnuAux3WNwRF1YRJNpfEWo", "senderPublicKey": "79aFqtvmFMdurmkjkLri8tn2HzwP1MSL8ET3uHm2uaD7", "proofs": [ "3GUWRkoBTLXubG7bjmBV91G2ZHF6bEcYj1BfdYojoCEeR6bw85zbJJkFyyc59bKQetQ1mhsb9d7D7GUbaYkH43Cb" ], "script": "base64:AAIDAAAAAAAAAAAAAAAYAAAAABFtYW5hZ2VtZW50QWRkcmVzcwEAAAAaAVRWq/xGXXE+uAIeE9mbCXcl4gfVk9UGtGwAAAAACWNvbGRWYXVsdAkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXdwTXZCQmtUQThoYTlhcm1XamtueTRTQVdBVHN0dFpDNwAAAAAFdG9rZW4BAAAAIBJQKujxX2prNzgwhsiFu/O9cYi+bVYzxmyclW6JI0NxAAAAAAl0b2tlblJhdGUAAAAAAAAALuAAAAAAE3Rva2VuRGVjaW1hbHNPZmZzZXQJAABsAAAABgAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAkBAAAAAlVwAAAAAAAAAAANaGFyZENhcFRva2VucwAABENkxbsAAAAAAAASbWluSW52ZXN0bWVudFdhdmVzAAAAAAAL68IAAAAAABJtYXhJbnZlc3RtZW50V2F2ZXMAAAAAF0h26AAAAAAAEGFsbG93RGF0ZXNDaGFuZ2UGAAAAAAlzdGFydFRpbWUAAAAAAF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AAAIJAQAAAApnZXRUaW1lTm93AAAAAAUAAAAKbmV3RW5kVGltZQkAAAIAAAABAgAAABtDYW5ub3Qgc2V0IGVuZCB0aW1lIHRvIHBhc3QJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACXN0YXJ0VGltZQUAAAAMbmV3U3RhcnRUaW1lCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAdlbmRUaW1lBQAAAApuZXdFbmRUaW1lBQAAAANuaWwAAAABaQEAAAAQc2V0TWluSW52ZXN0bWVudAAAAAEAAAAIbmV3VmFsdWUDCQEAAAABIQAAAAEJAQAAAAtvbmx5TWFuYWdlcgAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAACAAAAAQIAAAAXT25seSBmb3IgYWRtaW5pc3RyYXRpb24JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADW1pbkludmVzdG1lbnQFAAAACG5ld1ZhbHVlBQAAAANuaWwAAAABaQEAAAAQc2V0TWF4SW52ZXN0bWVudAAAAAEAAAAIbmV3VmFsdWUDCQEAAAABIQAAAAEJAQAAAAtvbmx5TWFuYWdlcgAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAACAAAAAQIAAAAXT25seSBmb3IgYWRtaW5pc3RyYXRpb24JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAADW1heEludmVzdG1lbnQFAAAACG5ld1ZhbHVlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABxcKf10=", "chainId": 84, "height": 664034, "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'3MwpMvBBkTA8ha9armWjkny4SAWATsttZC7'
5+
6+let b = extract(addressFromString("3MwpMvBBkTA8ha9armWjkny4SAWATsttZC7"))
7+
8+let c = base58'2EVEsh4Y3yTBcBukDUqmQtCPT1VHSKoAazUEDMEyqbVr'
9+
10+let d = 12000
11+
12+let e = pow(10, 0, 8, 0, 0, Up())
13+
14+let f = 1200000000000000
15+
16+let g = 200000000
17+
18+let h = 100000000000
19+
20+let i = true
21+
22+let j = 1567764600
23+
24+let k = 1567767900
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+ let ae = extract(ac.payment).amount
212+ if ((0 >= ae))
213+ then throw("Cannot accept zero value payments")
214+ else if ((W() > ae))
215+ then throw("Attached payment is below minimal price")
216+ else if ((ae > Z()))
217+ then throw("Attached payment is above maximum price")
218+ else if (!(A()))
219+ then throw("STO time is not started yet")
220+ else if (C())
221+ then throw("STO is finalized")
222+ else if (B())
223+ then throw("STO time is already ended")
224+ else {
225+ let H = G()
226+ let af = (l / e)
227+ let ag = ((f / d) * af)
228+ let ah = (H + ae)
229+ if ((ah > ag))
230+ then throw("Attached payment overflows hardcap")
231+ else {
232+ let ai = (ae * d)
233+ if ((af > ai))
234+ then throw("Attached payment is too low to buy unit of token")
235+ else {
236+ let aj = (ai / af)
237+ ScriptResult(WriteSet([DataEntry("wavesRaised", ah)]), TransferSet([ScriptTransfer(b, ae, unit), ScriptTransfer(ac.caller, aj, c)]))
238+ }
239+ }
240+ }
241+ }
242+
243+
244+
245+@Callable(ac)
246+func finalize () = if (!(m(ac.caller.bytes)))
247+ then throw("Only for administration")
248+ else if (C())
249+ then throw("Already finalized")
250+ else if (B())
251+ then WriteSet([DataEntry("finalized", true)])
252+ else throw("STO not finished yet")
253+
254+
255+
256+@Callable(ac)
257+func setStartTime (ak) = if (!(m(ac.caller.bytes)))
258+ then throw("Only for administration")
259+ else if (!(i))
260+ then throw("changing dates is not supported")
261+ else if ((q() >= ak))
262+ then throw("Cannot set time to past")
263+ else if ((ak > x()))
264+ then throw("Start date must be lower than end date")
265+ else WriteSet([DataEntry("startTime", ak)])
266+
267+
268+
269+@Callable(ac)
270+func setEndTime (al) = if (!(m(ac.caller.bytes)))
271+ then throw("Only for administration")
272+ else if (!(i))
273+ then throw("changing dates is not supported")
274+ else if ((q() >= al))
275+ then throw("Cannot set time to past")
276+ else if ((s() > al))
277+ then throw("End date must be higher than start date")
278+ else WriteSet([DataEntry("endTime", al)])
279+
280+
281+
282+@Callable(ac)
283+func setStartAndEndTimes (ak,al) = if (!(m(ac.caller.bytes)))
284+ then throw("Only for administration")
285+ else if (!(i))
286+ then throw("changing dates is not supported")
287+ else if ((q() >= ak))
288+ then throw("Cannot set start time to past")
289+ else if ((ak > al))
290+ then throw("Start date must be lower than end date")
291+ else if ((q() >= al))
292+ then throw("Cannot set end time to past")
293+ else WriteSet([DataEntry("startTime", ak), DataEntry("endTime", al)])
294+
295+
296+
297+@Callable(ac)
298+func setMinInvestment (am) = if (!(m(ac.caller.bytes)))
299+ then throw("Only for administration")
300+ else WriteSet([DataEntry("minInvestment", am)])
301+
302+
303+
304+@Callable(ac)
305+func setMaxInvestment (am) = if (!(m(ac.caller.bytes)))
306+ then throw("Only for administration")
307+ else WriteSet([DataEntry("maxInvestment", am)])
308+
309+
310+@Verifier(an)
311+func ao () = false
312+

github/deemru/w8io/169f3d6 
25.23 ms