tx · DaVDRLrNHu8LRtNZtvVdcLtpuB6k7LCDsHhgGPk3RAbe

3MvKmtoBz4zdFwhmeWpgx9kJ6wQspmGTBKq:  -0.01000000 Waves

2019.07.18 19:35 [591565] smart account 3MvKmtoBz4zdFwhmeWpgx9kJ6wQspmGTBKq > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
36.22 ms