tx · D2mss3BqGwvTu5yG7rYid7h4ZWomoHqfs9DpVrQcSGyB

3MruafMJreX8ctzVcTmFUfoXjxWZJH6qLaY:  -0.01000000 Waves

2019.09.06 23:56 [664719] smart account 3MruafMJreX8ctzVcTmFUfoXjxWZJH6qLaY > SELF 0.00000000 Waves

{ "type": 13, "id": "D2mss3BqGwvTu5yG7rYid7h4ZWomoHqfs9DpVrQcSGyB", "fee": 1000000, "feeAssetId": null, "timestamp": 1567803258611, "version": 1, "sender": "3MruafMJreX8ctzVcTmFUfoXjxWZJH6qLaY", "senderPublicKey": "3hFYVAmQg2xYSTpUUEXnTV3xygKtrm9SRKdA6JDLs8hS", "proofs": [ "53MLwDaA1aiZe6YBEP2jRQp5Fwvy7ybgzs2DhNpBosDiHnkY6ZGRN5HmqvChwXffD15rVrvsXZMj5hGrikwyZ8go" ], "script": "base64:AAIDAAAAAAAAAAAAAAAZAAAAABFtYW5hZ2VtZW50QWRkcmVzcwEAAAAaAVQg0BMnTMHxC96+DRhkxbHxF/GDqH7I6VUAAAAACWNvbGRWYXVsdAkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTXpnSHUzbUtLZEJvSkt5ejFqQXJ6V0JOd2JCNmRIQXl0aQAAAAAFdG9rZW4BAAAAIFqkZtEhUz7DauX+nTRyxFHOfbIuMdZJD1IodAQkmoIXAAAAAAl0b2tlblJhdGUAAAAAAAAAA+gAAAAAE3Rva2VuRGVjaW1hbHNPZmZzZXQJAABsAAAABgAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAkBAAAAAlVwAAAAAAAAAAAMc29mdENhcFdhdmVzAAAAAAAAAAAKAAAAAA1oYXJkQ2FwVG9rZW5zAAAAAAAAD0JAAAAAABJtaW5JbnZlc3RtZW50V2F2ZXMAAAAAAAAAAAEAAAAAEm1heEludmVzdG1lbnRXYXZlcwAAAAAAAAAD6AAAAAAQYW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QUAAAAKbmV3UGFnZU51bQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASY3VycmVudFBhZ2VTaXplS2V5BQAAAAtuZXdQYWdlU2l6ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAPbmV3V2hpdGVsaXN0S2V5BQAAAAlpbnZlc3RvcnMFAAAAA25pbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAAOZW1wdHlXaGl0ZWxpc3QFAAAAByRtYXRjaDAEAAAAC2luaXRQYWdlTnVtAAAAAAAAAAAABAAAAAxmaXJzdFBhZ2VLZXkJAAEsAAAAAgkAASwAAAACBQAAABN3aGl0ZWxpc3REYXRhUHJlZml4AgAAAAEtCQABpAAAAAEFAAAAC2luaXRQYWdlTnVtCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABF0b3RhbEludmVzdG9yc0tleQUAAAAQbmV3V2hpdGVsaXN0U2l6ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAARY3VycmVudFBhZ2VOdW1LZXkFAAAAC2luaXRQYWdlTnVtCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJjdXJyZW50UGFnZVNpemVLZXkFAAAAEG5ld1doaXRlbGlzdFNpemUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADGZpcnN0UGFnZUtleQUAAAAJaW52ZXN0b3JzBQAAAANuaWwJAQAAAAV0aHJvdwAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAB03fwXA=", "chainId": 84, "height": 664719, "spentComplexity": 0 } View: original | compacted Prev: At4uQiD1fKgrJU4PkrcLopTQK5D8zpsGv8Vu9mWSadHT Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let managementAddress = base58'3MruafMJreX8ctzVcTmFUfoXjxWZJH6qLaY'
5+
6+let coldVault = extract(addressFromString("3MzgHu3mKKdBoJKyz1jArzWBNwbB6dHAyti"))
7+
8+let token = base58'76q6FDR3gxSEwELvqm895h9aiSwqfEmuUg3tJD5m1Xmg'
9+
10+let tokenRate = 1000
11+
12+let tokenDecimalsOffset = pow(10, 0, 8, 0, 0, Up())
13+
14+let softCapWaves = 10
15+
16+let hardCapTokens = 1000000
17+
18+let minInvestmentWaves = 1
19+
20+let maxInvestmentWaves = 1000
21+
22+let allowDatesChange = true
23+
24+let startTime = 1567749600000
25+
26+let endTime = 1568095200000
27+
28+let wavesDecimals = pow(10, 0, 8, 0, 0, Up())
29+
30+func onlyManager (callerBytes) = {
31+ let caller = toBase58String(callerBytes)
32+ let managementAddressString = toBase58String(managementAddress)
33+ if ((caller != managementAddressString))
34+ then false
35+ else true
36+ }
37+
38+
39+func getTimeNow () = {
40+ let blockInfo = value(blockInfoByHeight(height))
41+ (blockInfo.timestamp / 1000)
42+ }
43+
44+
45+func getStartTime () = {
46+ let dataStartTime = getInteger(this, "startTime")
47+ match dataStartTime {
48+ case changedStartTime: Int =>
49+ changedStartTime
50+ case notChanged: Unit =>
51+ startTime
52+ case _ =>
53+ throw()
54+ }
55+ }
56+
57+
58+func getEndTime () = {
59+ let dataEndTime = getInteger(this, "endTime")
60+ match dataEndTime {
61+ case changedEndTime: Int =>
62+ changedEndTime
63+ case notChanged: Unit =>
64+ endTime
65+ case _ =>
66+ throw()
67+ }
68+ }
69+
70+
71+func hasStarted () = if ((getTimeNow() > getStartTime()))
72+ then true
73+ else false
74+
75+
76+func hasEnded () = if ((getTimeNow() > getEndTime()))
77+ then true
78+ else false
79+
80+
81+func hasFinished () = {
82+ let isFinalized = getBoolean(this, "finalized")
83+ match isFinalized {
84+ case dataFinalized: Boolean =>
85+ dataFinalized
86+ case notFinalized: Unit =>
87+ false
88+ case _ =>
89+ throw()
90+ }
91+ }
92+
93+
94+func getWavesRaised () = {
95+ let wavesRaised = getInteger(this, "wavesRaised")
96+ match wavesRaised {
97+ case waves: Int =>
98+ waves
99+ case emptyState: Unit =>
100+ 0
101+ case _ =>
102+ throw()
103+ }
104+ }
105+
106+
107+func checkInvestorInPage (address,page) = {
108+ let whitelistPageKey = ("whitelistedInvestors-" + toString(page))
109+ let whitelistPage = getString(this, whitelistPageKey)
110+ match whitelistPage {
111+ case pageString: String =>
112+ let addressPosition = indexOf(pageString, address)
113+ match addressPosition {
114+ case pos: Int =>
115+ true
116+ case empty: Unit =>
117+ false
118+ case _ =>
119+ throw()
120+ }
121+ case emptyPage: Unit =>
122+ false
123+ case _ =>
124+ throw()
125+ }
126+ }
127+
128+
129+func checkInvestorInAllPages (address) = if (checkInvestorInPage(address, 0))
130+ then true
131+ else if (checkInvestorInPage(address, 1))
132+ then true
133+ else if (checkInvestorInPage(address, 2))
134+ then true
135+ else if (checkInvestorInPage(address, 3))
136+ then true
137+ else if (checkInvestorInPage(address, 4))
138+ then true
139+ else if (checkInvestorInPage(address, 5))
140+ then true
141+ else if (checkInvestorInPage(address, 6))
142+ then true
143+ else if (checkInvestorInPage(address, 7))
144+ then true
145+ else if (checkInvestorInPage(address, 8))
146+ then true
147+ else if (checkInvestorInPage(address, 9))
148+ then true
149+ else false
150+
151+
152+func getMinInvestment () = {
153+ let dataMinInvestment = getInteger(this, "minInvestment")
154+ match dataMinInvestment {
155+ case changedMinInvestment: Int =>
156+ changedMinInvestment
157+ case notChanged: Unit =>
158+ minInvestmentWaves
159+ case _ =>
160+ throw()
161+ }
162+ }
163+
164+
165+func getMaxInvestment () = {
166+ let dataMaxInvestment = getInteger(this, "maxInvestment")
167+ match dataMaxInvestment {
168+ case changedMaxInvestment: Int =>
169+ changedMaxInvestment
170+ case notChanged: Unit =>
171+ maxInvestmentWaves
172+ case _ =>
173+ throw()
174+ }
175+ }
176+
177+
178+@Callable(i)
179+func buyTokens () = {
180+ let investorAddress = toBase58String(i.caller.bytes)
181+ if (!(checkInvestorInAllPages(investorAddress)))
182+ then throw("Only for whitelisted")
183+ else {
184+ let sendedAmount = extract(i.payment).amount
185+ if ((0 >= sendedAmount))
186+ then throw("Cannot accept zero value payments")
187+ else if ((getMinInvestment() > sendedAmount))
188+ then throw("Attached payment is below minimal price")
189+ else if ((sendedAmount > getMaxInvestment()))
190+ then throw("Attached payment is above maximum price")
191+ else if (!(hasStarted()))
192+ then throw("STO time is not started yet")
193+ else if (hasFinished())
194+ then throw("STO is finalized")
195+ else if (hasEnded())
196+ then throw("STO time is already ended")
197+ else {
198+ let wavesRaised = getWavesRaised()
199+ let wavesOffset = (wavesDecimals / tokenDecimalsOffset)
200+ let hardCapWaves = ((hardCapTokens / tokenRate) * wavesOffset)
201+ let updatedWavesRaised = (wavesRaised + sendedAmount)
202+ if ((updatedWavesRaised > hardCapWaves))
203+ then throw("Attached payment overflows hardcap")
204+ else {
205+ let tokenAmountRaw = (sendedAmount * tokenRate)
206+ if ((wavesOffset > tokenAmountRaw))
207+ then throw("Attached payment is too low to buy unit of token")
208+ else {
209+ let tokenAmount = (tokenAmountRaw / wavesOffset)
210+ ScriptResult(WriteSet([DataEntry("wavesRaised", updatedWavesRaised)]), TransferSet([ScriptTransfer(coldVault, sendedAmount, unit), ScriptTransfer(i.caller, tokenAmount, token)]))
211+ }
212+ }
213+ }
214+ }
215+ }
216+
217+
218+
219+@Callable(i)
220+func setStartTime (newStartTime) = if (!(onlyManager(i.caller.bytes)))
221+ then throw("Only for administration")
222+ else if (!(allowDatesChange))
223+ then throw("changing dates is not supported")
224+ else if ((getTimeNow() >= newStartTime))
225+ then throw("Cannot set time to past")
226+ else if ((newStartTime > getEndTime()))
227+ then throw("Start date must be lower than end date")
228+ else WriteSet([DataEntry("startTime", newStartTime)])
229+
230+
231+
232+@Callable(i)
233+func setEndTime (newEndTime) = if (!(onlyManager(i.caller.bytes)))
234+ then throw("Only for administration")
235+ else if (!(allowDatesChange))
236+ then throw("changing dates is not supported")
237+ else if ((getTimeNow() >= newEndTime))
238+ then throw("Cannot set time to past")
239+ else if ((getStartTime() > newEndTime))
240+ then throw("End date must be higher than start date")
241+ else WriteSet([DataEntry("endTime", newEndTime)])
242+
243+
244+
245+@Callable(i)
246+func setStartAndEndTimes (newStartTime,newEndTime) = if (!(onlyManager(i.caller.bytes)))
247+ then throw("Only for administration")
248+ else if (!(allowDatesChange))
249+ then throw("changing dates is not supported")
250+ else if ((getTimeNow() >= newStartTime))
251+ then throw("Cannot set start time to past")
252+ else if ((newStartTime > newEndTime))
253+ then throw("Start date must be lower than end date")
254+ else if ((getTimeNow() >= newEndTime))
255+ then throw("Cannot set end time to past")
256+ else WriteSet([DataEntry("startTime", newStartTime), DataEntry("endTime", newEndTime)])
257+
258+
259+
260+@Callable(i)
261+func setMinInvestment (newValue) = if (!(onlyManager(i.caller.bytes)))
262+ then throw("Only for administration")
263+ else WriteSet([DataEntry("minInvestment", newValue)])
264+
265+
266+
267+@Callable(i)
268+func setMaxInvestment (newValue) = if (!(onlyManager(i.caller.bytes)))
269+ then throw("Only for administration")
270+ else WriteSet([DataEntry("maxInvestment", newValue)])
271+
272+
273+
274+@Callable(i)
275+func setWhitelistAddresses (investors) = if (!(onlyManager(i.caller.bytes)))
276+ then throw("Only for administration")
277+ else {
278+ let splittedWhitelist = split(investors, ",")
279+ let newWhitelistSize = size(splittedWhitelist)
280+ let whitelistDataPrefix = "whitelistedInvestors"
281+ let totalInvestorsKey = "totalInvestors"
282+ let currentPageNumKey = "currentWhitelistPage"
283+ let currentPageSizeKey = "currentWhitelistPageSize"
284+ let currentWhitelistSize = getInteger(this, totalInvestorsKey)
285+ match currentWhitelistSize {
286+ case currentInvestorsSize: Int =>
287+ let currentPageNum = getIntegerValue(this, currentPageNumKey)
288+ let currentPageSize = getIntegerValue(this, currentPageSizeKey)
289+ let currentWhitelistKey = ((whitelistDataPrefix + "-") + toString(currentPageNum))
290+ let currentWhitelistData = getStringValue(this, currentWhitelistKey)
291+ let remainingPageSize = (100 - currentPageSize)
292+ if (if ((remainingPageSize >= newWhitelistSize))
293+ then (remainingPageSize > 0)
294+ else false)
295+ then {
296+ let updatedCurrentPageList = ((currentWhitelistData + ",") + investors)
297+ let updatedPageSize = (currentPageSize + newWhitelistSize)
298+ let newInvestorsSize = (currentInvestorsSize + newWhitelistSize)
299+ WriteSet([DataEntry(totalInvestorsKey, newInvestorsSize), DataEntry(currentPageSizeKey, updatedPageSize), DataEntry(currentWhitelistKey, updatedCurrentPageList)])
300+ }
301+ else {
302+ let newPageNum = (currentPageNum + 1)
303+ let newInvestorsSize = (currentInvestorsSize + newWhitelistSize)
304+ let newPageSize = newWhitelistSize
305+ let newWhitelistKey = ((whitelistDataPrefix + "-") + toString(newPageNum))
306+ WriteSet([DataEntry(totalInvestorsKey, newInvestorsSize), DataEntry(currentPageNumKey, newPageNum), DataEntry(currentPageSizeKey, newPageSize), DataEntry(newWhitelistKey, investors)])
307+ }
308+ case emptyWhitelist: Unit =>
309+ let initPageNum = 0
310+ let firstPageKey = ((whitelistDataPrefix + "-") + toString(initPageNum))
311+ WriteSet([DataEntry(totalInvestorsKey, newWhitelistSize), DataEntry(currentPageNumKey, initPageNum), DataEntry(currentPageSizeKey, newWhitelistSize), DataEntry(firstPageKey, investors)])
312+ case _ =>
313+ throw()
314+ }
315+ }
316+
317+
318+@Verifier(tx)
319+func verify () = false
320+

github/deemru/w8io/026f985 
31.87 ms