tx · BH3ZHZ195zC5R6zFDy9PnrxsT9Vge8CPrGm26rivWPhm 3Muwx31CHJoddED8EB8ShVmrYd2KMdhAjVC: -0.01000000 Waves 2020.08.25 15:11 [1148450] smart account 3Muwx31CHJoddED8EB8ShVmrYd2KMdhAjVC > SELF 0.00000000 Waves
{ "type": 13, "id": "BH3ZHZ195zC5R6zFDy9PnrxsT9Vge8CPrGm26rivWPhm", "fee": 1000000, "feeAssetId": null, "timestamp": 1598357521500, "version": 1, "sender": "3Muwx31CHJoddED8EB8ShVmrYd2KMdhAjVC", "senderPublicKey": "5VBpFNKaEKFdkrLLs1zdA1UijrSZKAQeGo946GKQ9TL5", "proofs": [ "2JMdVHFgF3FXiDNzKLc3rfDG5gyGXbvX6bvtNWpsuwowEew2tYsnx8UfFDMcNMnjiHWxSDwhmpTetLDFrZ6zs3yF" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgASAwoBCAAAADoAAAAAC3BhcmFtUHJlZml4AgAAAAZwYXJhbV8AAAAAC2FkZHJlc3NCb29rCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUVoHUeTQTO77iaMaO0CyN+LlydsBXbwHeAAAAABN3aGl0ZWxpc3RBZGRyZXNzS2V5AgAAABB3aGl0ZWxpc3RBZGRyZXNzAAAAABdkQXBwV2hpdGVsaXN0QWRkcmVzc0tleQIAAAAUZEFwcFdoaXRlbGlzdEFkZHJlc3MAAAAAEGJ1cm5lckFkZHJlc3NLZXkCAAAADWJ1cm5lckFkZHJlc3MAAAAAFGV4dHJhY3RlZEFkZHJlc3NCb29rCQEAAAAHZXh0cmFjdAAAAAEFAAAAC2FkZHJlc3NCb29rAQAAAA5nZXRTdHJpbmdQYXJhbQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAALcGFyYW1QcmVmaXgFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckb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C3BLZXk0U2lnbmVkBQAAAAtwS2V5NVNpZ25lZAAAAAAAAAAAAwf9F1Kw", "chainId": 84, "height": 1148450, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let paramPrefix = "param_" | |
5 | + | ||
6 | + | let addressBook = Address(base58'3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh') | |
7 | + | ||
8 | + | let whitelistAddressKey = "whitelistAddress" | |
9 | + | ||
10 | + | let dAppWhitelistAddressKey = "dAppWhitelistAddress" | |
11 | + | ||
12 | + | let burnerAddressKey = "burnerAddress" | |
13 | + | ||
14 | + | let extractedAddressBook = extract(addressBook) | |
15 | + | ||
16 | + | func getStringParam (key) = match getString(this, (paramPrefix + key)) { | |
17 | + | case a: String => | |
18 | + | a | |
19 | + | case _ => | |
20 | + | throw("no string key") | |
21 | + | } | |
22 | + | ||
23 | + | ||
24 | + | func getIntParam (key) = match getInteger(this, (paramPrefix + key)) { | |
25 | + | case a: Int => | |
26 | + | a | |
27 | + | case _ => | |
28 | + | throw("no int key") | |
29 | + | } | |
30 | + | ||
31 | + | ||
32 | + | func getBooleanParam (key) = match getBoolean(this, (paramPrefix + key)) { | |
33 | + | case a: Boolean => | |
34 | + | a | |
35 | + | case _ => | |
36 | + | throw("no boolean key") | |
37 | + | } | |
38 | + | ||
39 | + | ||
40 | + | let issuerAssetId = base58'69SkL2Pn6ZW9wv9guzUdyCVdEgFk8b8wk5A5LB6mnya2' | |
41 | + | ||
42 | + | let investmentAssetId = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
43 | + | ||
44 | + | let investmentAssetIdIsWaves = false | |
45 | + | ||
46 | + | let ownerAddressString = getStringParam("issuerAccountAddress") | |
47 | + | ||
48 | + | let ownerAddress = extract(addressFromString(ownerAddressString)) | |
49 | + | ||
50 | + | let assetDecimalsOffset = 1 | |
51 | + | ||
52 | + | let tokensaleAmount = getIntParam("tokensaleAmount") | |
53 | + | ||
54 | + | let startTime = getIntParam("startTime") | |
55 | + | ||
56 | + | let endTime = getIntParam("endTime") | |
57 | + | ||
58 | + | let price = getIntParam("price") | |
59 | + | ||
60 | + | let softCapAmount = getIntParam("softCapAmount") | |
61 | + | ||
62 | + | let minPayment = getIntParam("minPayment") | |
63 | + | ||
64 | + | let swapAssetId = base58'' | |
65 | + | ||
66 | + | let swapAmount = getIntParam("swapAmount") | |
67 | + | ||
68 | + | let swapPrice = getIntParam("swapPrice") | |
69 | + | ||
70 | + | let companyType = 0 | |
71 | + | ||
72 | + | let isTokensale = 0 | |
73 | + | ||
74 | + | let isSwap = 1 | |
75 | + | ||
76 | + | let isTokensaleAndSwap = 2 | |
77 | + | ||
78 | + | let swapKeySumAmountPrefix = "swapSumAmount " | |
79 | + | ||
80 | + | let swapKeySumAssetsPrefix = "swapSumAssets " | |
81 | + | ||
82 | + | let swapKeyDistAssets = "swapAssets" | |
83 | + | ||
84 | + | let swapKeyCollectedAmount = "swapAmount" | |
85 | + | ||
86 | + | let keySumAmountPrefix = "sumAmount " | |
87 | + | ||
88 | + | let keySumPaidAmountPrefix = "paidAmount " | |
89 | + | ||
90 | + | let keySumAssetsPrefix = "sumAssets " | |
91 | + | ||
92 | + | let keyAllowAccountPrefix = "allow " | |
93 | + | ||
94 | + | let keyDistAssets = "assets" | |
95 | + | ||
96 | + | let keyCollectedAmount = "amount" | |
97 | + | ||
98 | + | let keyIssuer = "issuer" | |
99 | + | ||
100 | + | let ver = "5.0.2" | |
101 | + | ||
102 | + | let validState = 1000 | |
103 | + | ||
104 | + | func getAddressFromBook (key) = match getString(addressBook, key) { | |
105 | + | case a: String => | |
106 | + | Address(fromBase58String(a)) | |
107 | + | case _ => | |
108 | + | throw("no key") | |
109 | + | } | |
110 | + | ||
111 | + | ||
112 | + | let whitelistAddress = getAddressFromBook(whitelistAddressKey) | |
113 | + | ||
114 | + | let dAppWhitelistAddress = getAddressFromBook(dAppWhitelistAddressKey) | |
115 | + | ||
116 | + | let burnerAddress = getAddressFromBook(burnerAddressKey) | |
117 | + | ||
118 | + | func isTokensaleAllow () = if ((companyType == isTokensale)) | |
119 | + | then true | |
120 | + | else (companyType == isTokensaleAndSwap) | |
121 | + | ||
122 | + | ||
123 | + | func isSwapAllow () = if ((companyType == isSwap)) | |
124 | + | then true | |
125 | + | else (companyType == isTokensaleAndSwap) | |
126 | + | ||
127 | + | ||
128 | + | func getCurrentTime () = { | |
129 | + | let blockInfo = value(blockInfoByHeight(height)) | |
130 | + | (blockInfo.timestamp / 1000) | |
131 | + | } | |
132 | + | ||
133 | + | ||
134 | + | func getInvestmentAssetIdForTransfer (isWaves,assetId) = if ((isWaves == false)) | |
135 | + | then assetId | |
136 | + | else unit | |
137 | + | ||
138 | + | ||
139 | + | func getCurrentPrice () = price | |
140 | + | ||
141 | + | ||
142 | + | func getAmount (key) = match getInteger(this, key) { | |
143 | + | case a: Int => | |
144 | + | a | |
145 | + | case _ => | |
146 | + | 0 | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func hasStarted () = (getCurrentTime() >= startTime) | |
151 | + | ||
152 | + | ||
153 | + | func tokensaleHasEnded () = { | |
154 | + | let assets = match getInteger(this, keyDistAssets) { | |
155 | + | case a: Int => | |
156 | + | a | |
157 | + | case _ => | |
158 | + | tokensaleAmount | |
159 | + | } | |
160 | + | if ((getCurrentTime() > endTime)) | |
161 | + | then true | |
162 | + | else (assets == 0) | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | func swapHasEnded () = { | |
167 | + | let assets = match getInteger(this, swapKeyDistAssets) { | |
168 | + | case a: Int => | |
169 | + | a | |
170 | + | case _ => | |
171 | + | swapAmount | |
172 | + | } | |
173 | + | if ((getCurrentTime() > endTime)) | |
174 | + | then true | |
175 | + | else (assets == 0) | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func companyHasEnded () = if (if (isSwapAllow()) | |
180 | + | then isTokensaleAllow() | |
181 | + | else false) | |
182 | + | then if (tokensaleHasEnded()) | |
183 | + | then swapHasEnded() | |
184 | + | else false | |
185 | + | else if (isTokensaleAllow()) | |
186 | + | then tokensaleHasEnded() | |
187 | + | else if (isSwapAllow()) | |
188 | + | then swapHasEnded() | |
189 | + | else false | |
190 | + | ||
191 | + | ||
192 | + | func getPayment (i) = match i.payment { | |
193 | + | case p: AttachedPayment => | |
194 | + | let isPaymentOk = match p.assetId { | |
195 | + | case assetId: ByteVector => | |
196 | + | if (!(investmentAssetIdIsWaves)) | |
197 | + | then (assetId == investmentAssetId) | |
198 | + | else false | |
199 | + | case _ => | |
200 | + | (investmentAssetIdIsWaves == true) | |
201 | + | } | |
202 | + | if (isPaymentOk) | |
203 | + | then if ((assetDecimalsOffset == 1)) | |
204 | + | then if (((p.amount % price) == 0)) | |
205 | + | then p.amount | |
206 | + | else throw("#0300 payment amount must be a multiple of token price") | |
207 | + | else p.amount | |
208 | + | else throw("#0200 Invalid asset ID of investment") | |
209 | + | case _ => | |
210 | + | throw("#0100 Payment must be attached") | |
211 | + | } | |
212 | + | ||
213 | + | ||
214 | + | func getSwapPayment (i) = match i.payment { | |
215 | + | case p: AttachedPayment => | |
216 | + | let isPaymentOk = match p.assetId { | |
217 | + | case assetId: ByteVector => | |
218 | + | (assetId == swapAssetId) | |
219 | + | case _ => | |
220 | + | false | |
221 | + | } | |
222 | + | if (isPaymentOk) | |
223 | + | then if ((assetDecimalsOffset == 1)) | |
224 | + | then if (((p.amount % swapPrice) == 0)) | |
225 | + | then p.amount | |
226 | + | else throw("payment amount must be a multiple of token price") | |
227 | + | else p.amount | |
228 | + | else throw("Invalid asset ID of investment") | |
229 | + | case _ => | |
230 | + | throw("Payment must be attached") | |
231 | + | } | |
232 | + | ||
233 | + | ||
234 | + | func getInvestorAddressForWithdrawal (argAddress,callerAddress) = if ((size(argAddress) > 10)) | |
235 | + | then argAddress | |
236 | + | else callerAddress | |
237 | + | ||
238 | + | ||
239 | + | @Callable(i) | |
240 | + | func deposit () = { | |
241 | + | let currentPrice = getCurrentPrice() | |
242 | + | let accountAmount = getAmount(keyCollectedAmount) | |
243 | + | let dAppStatus = match getInteger(dAppWhitelistAddress, toString(this)) { | |
244 | + | case a: Int => | |
245 | + | a | |
246 | + | case _ => | |
247 | + | -1000 | |
248 | + | } | |
249 | + | if (!(isTokensaleAllow())) | |
250 | + | then throw("#1000 This deposit method is unsopperted for this company") | |
251 | + | else if (!(hasStarted())) | |
252 | + | then throw(((("#0001 The Tokensale works between " + toString(startTime)) + " and ") + toString(endTime))) | |
253 | + | else if (tokensaleHasEnded()) | |
254 | + | then throw("#0002 The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
255 | + | else if ((dAppStatus == -1000)) | |
256 | + | then throw("#0010 This company is unsopperted") | |
257 | + | else { | |
258 | + | let payment = getPayment(i) | |
259 | + | let currentKey = toBase58String(i.caller.bytes) | |
260 | + | let isAccountAllow = match getInteger(whitelistAddress, currentKey) { | |
261 | + | case a: Int => | |
262 | + | a | |
263 | + | case _ => | |
264 | + | -255 | |
265 | + | } | |
266 | + | if ((currentKey == ownerAddressString)) | |
267 | + | then throw("#0030 The issuer can`t invest in its own company") | |
268 | + | else if ((validState > isAccountAllow)) | |
269 | + | then throw(((("#0020 Your account has no right to send funds. _ " + currentKey) + " ") + ownerAddressString)) | |
270 | + | else { | |
271 | + | let accountAssets = match getInteger(this, keyDistAssets) { | |
272 | + | case a: Int => | |
273 | + | a | |
274 | + | case _ => | |
275 | + | tokensaleAmount | |
276 | + | } | |
277 | + | let tokensCalc = fraction(payment, assetDecimalsOffset, currentPrice) | |
278 | + | let minPaymentInAssets = fraction(minPayment, assetDecimalsOffset, currentPrice) | |
279 | + | if (if (if ((0 > (accountAssets - tokensCalc))) | |
280 | + | then true | |
281 | + | else (minPaymentInAssets > tokensCalc)) | |
282 | + | then true | |
283 | + | else if ((tokensCalc != accountAssets)) | |
284 | + | then (tokensCalc > (accountAssets - minPaymentInAssets)) | |
285 | + | else false) | |
286 | + | then throw("#0400 Incorrect payment amount.") | |
287 | + | else { | |
288 | + | let newInvestorAmount = (getAmount((keySumAmountPrefix + currentKey)) + payment) | |
289 | + | let newInvestorAssets = (getAmount((keySumAssetsPrefix + currentKey)) + tokensCalc) | |
290 | + | let newAccountAssets = (accountAssets - tokensCalc) | |
291 | + | let newAccountAmount = (accountAmount + payment) | |
292 | + | WriteSet([DataEntry((keySumAmountPrefix + currentKey), newInvestorAmount), DataEntry((keySumAssetsPrefix + currentKey), newInvestorAssets), DataEntry(keyDistAssets, newAccountAssets), DataEntry(keyCollectedAmount, newAccountAmount)]) | |
293 | + | } | |
294 | + | } | |
295 | + | } | |
296 | + | } | |
297 | + | ||
298 | + | ||
299 | + | ||
300 | + | @Callable(i) | |
301 | + | func swapDeposit () = { | |
302 | + | let currentPrice = swapPrice | |
303 | + | let accountAmount = getAmount(swapKeyCollectedAmount) | |
304 | + | let dAppStatus = match getInteger(dAppWhitelistAddress, toString(this)) { | |
305 | + | case a: Int => | |
306 | + | a | |
307 | + | case _ => | |
308 | + | -1000 | |
309 | + | } | |
310 | + | if (!(isSwapAllow())) | |
311 | + | then throw("#2000 This swap-deposit method is unsopperted for this company") | |
312 | + | else if (!(hasStarted())) | |
313 | + | then throw(((("The Tokensale works between " + toString(startTime)) + " and ") + toString(endTime))) | |
314 | + | else if (swapHasEnded()) | |
315 | + | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
316 | + | else if ((dAppStatus == -1000)) | |
317 | + | then throw("#0010 This company is unsupported") | |
318 | + | else { | |
319 | + | let payment = getSwapPayment(i) | |
320 | + | let currentKey = toBase58String(i.caller.bytes) | |
321 | + | let isAccountAllow = match getInteger(whitelistAddress, currentKey) { | |
322 | + | case a: Int => | |
323 | + | a | |
324 | + | case _ => | |
325 | + | -255 | |
326 | + | } | |
327 | + | if ((validState > isAccountAllow)) | |
328 | + | then throw("#0020 Your account has no right to send funds.") | |
329 | + | else { | |
330 | + | let accountAssets = match getInteger(this, swapKeyDistAssets) { | |
331 | + | case a: Int => | |
332 | + | a | |
333 | + | case _ => | |
334 | + | swapAmount | |
335 | + | } | |
336 | + | let tokensCalc = fraction(payment, assetDecimalsOffset, currentPrice) | |
337 | + | if ((0 > (accountAssets - tokensCalc))) | |
338 | + | then throw("Incorrect payment amount.") | |
339 | + | else { | |
340 | + | let newInvestorAmount = (getAmount((swapKeySumAmountPrefix + currentKey)) + payment) | |
341 | + | let newInvestorAssets = (getAmount((swapKeySumAssetsPrefix + currentKey)) + tokensCalc) | |
342 | + | let newAccountAssets = (accountAssets - tokensCalc) | |
343 | + | let newAccountAmount = (accountAmount + payment) | |
344 | + | WriteSet([DataEntry((swapKeySumAmountPrefix + currentKey), newInvestorAmount), DataEntry((swapKeySumAssetsPrefix + currentKey), newInvestorAssets), DataEntry(swapKeyDistAssets, newAccountAssets), DataEntry(swapKeyCollectedAmount, newAccountAmount)]) | |
345 | + | } | |
346 | + | } | |
347 | + | } | |
348 | + | } | |
349 | + | ||
350 | + | ||
351 | + | ||
352 | + | @Callable(i) | |
353 | + | func withdrawal (address) = { | |
354 | + | let dAppStatus = match getInteger(dAppWhitelistAddress, toString(this)) { | |
355 | + | case a: Int => | |
356 | + | a | |
357 | + | case _ => | |
358 | + | 0 | |
359 | + | } | |
360 | + | if ((dAppStatus == 0)) | |
361 | + | then throw("#0030 Withdrawals are not available until the issuer passes verification") | |
362 | + | else { | |
363 | + | let currentKey = getInvestorAddressForWithdrawal(address, toBase58String(i.caller.bytes)) | |
364 | + | let currentKeyAddress = extract(addressFromString(currentKey)) | |
365 | + | let currentInvestorAssets = getAmount((keySumAssetsPrefix + currentKey)) | |
366 | + | let currentInvestorAmount = getAmount((keySumAmountPrefix + currentKey)) | |
367 | + | let currentInvestorSwapAssets = getAmount((swapKeySumAssetsPrefix + currentKey)) | |
368 | + | let currentInvestorSwapAmount = getAmount((swapKeySumAmountPrefix + currentKey)) | |
369 | + | let accountSwapAmount = getAmount(swapKeyCollectedAmount) | |
370 | + | let accountSwapAssets = getAmount(swapKeyDistAssets) | |
371 | + | let accountAmount = getAmount(keyCollectedAmount) | |
372 | + | let accountAssets = getAmount(keyDistAssets) | |
373 | + | let investmentAssetIdForTransfer = getInvestmentAssetIdForTransfer(investmentAssetIdIsWaves, investmentAssetId) | |
374 | + | if (!(companyHasEnded())) | |
375 | + | then throw("#0003 The Company is still active") | |
376 | + | else if (if ((currentKey == ownerAddressString)) | |
377 | + | then (dAppStatus == 1) | |
378 | + | else false) | |
379 | + | then { | |
380 | + | let issuerAlreadyGotFunds = getAmount(keyIssuer) | |
381 | + | if ((issuerAlreadyGotFunds == 0)) | |
382 | + | then if (if (isTokensaleAllow()) | |
383 | + | then isSwapAllow() | |
384 | + | else false) | |
385 | + | then if ((accountAmount >= softCapAmount)) | |
386 | + | then ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountAmount, investmentAssetIdForTransfer), ScriptTransfer(ownerAddress, accountSwapAmount, swapAssetId)])) | |
387 | + | else ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountSwapAmount, swapAssetId)])) | |
388 | + | else if (isTokensaleAllow()) | |
389 | + | then if ((accountAmount >= softCapAmount)) | |
390 | + | then ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountAmount, investmentAssetIdForTransfer)])) | |
391 | + | else throw("#0500 No funds for issuer") | |
392 | + | else ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountSwapAmount, swapAssetId)])) | |
393 | + | else throw("#0700 The issuer has already taken its share!") | |
394 | + | } | |
395 | + | else if (if ((currentInvestorAmount == 0)) | |
396 | + | then (currentInvestorSwapAmount == 0) | |
397 | + | else false) | |
398 | + | then throw("#0600 Don't have money") | |
399 | + | else if (if (isTokensaleAllow()) | |
400 | + | then isSwapAllow() | |
401 | + | else false) | |
402 | + | then if (if ((softCapAmount > accountAmount)) | |
403 | + | then (dAppStatus == 1) | |
404 | + | else false) | |
405 | + | then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0), DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorAmount, investmentAssetIdForTransfer), ScriptTransfer(currentKeyAddress, currentInvestorSwapAssets, issuerAssetId)])) | |
406 | + | else if ((dAppStatus == 1)) | |
407 | + | then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0), DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorAssets, issuerAssetId), ScriptTransfer(currentKeyAddress, currentInvestorSwapAssets, issuerAssetId)])) | |
408 | + | else ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0), DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorAmount, investmentAssetIdForTransfer), ScriptTransfer(currentKeyAddress, currentInvestorSwapAmount, swapAssetId)])) | |
409 | + | else if (isTokensaleAllow()) | |
410 | + | then if (if ((accountAmount >= softCapAmount)) | |
411 | + | then (dAppStatus == 1) | |
412 | + | else false) | |
413 | + | then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorAssets, issuerAssetId)])) | |
414 | + | else ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorAmount, investmentAssetIdForTransfer)])) | |
415 | + | else if ((dAppStatus == 1)) | |
416 | + | then ScriptResult(WriteSet([DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorSwapAssets, issuerAssetId)])) | |
417 | + | else ScriptResult(WriteSet([DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(currentKeyAddress, currentInvestorSwapAmount, swapAssetId)])) | |
418 | + | } | |
419 | + | } | |
420 | + | ||
421 | + | ||
422 | + | @Verifier(tx) | |
423 | + | func verify () = match tx { | |
424 | + | case tx: BurnTransaction => | |
425 | + | true | |
426 | + | case tx: ReissueTransaction => | |
427 | + | false | |
428 | + | case tx: TransferTransaction => | |
429 | + | (tx.recipient == burnerAddress) | |
430 | + | case tx: DataTransaction|SetAssetScriptTransaction|SetScriptTransaction => | |
431 | + | let txId = toBase58String(tx.id) | |
432 | + | let pAddress1 = getAddressFromBook("pAddress1") | |
433 | + | let pAddress2 = getAddressFromBook("pAddress2") | |
434 | + | let pAddress3 = getAddressFromBook("pAddress3") | |
435 | + | let pAddress4 = getAddressFromBook("pAddress4") | |
436 | + | let pAddress5 = getAddressFromBook("pAddress5") | |
437 | + | let pKey1Signed = if (isDefined(getInteger(pAddress1, txId))) | |
438 | + | then 1 | |
439 | + | else 0 | |
440 | + | let pKey2Signed = if (isDefined(getInteger(pAddress2, txId))) | |
441 | + | then 1 | |
442 | + | else 0 | |
443 | + | let pKey3Signed = if (isDefined(getInteger(pAddress3, txId))) | |
444 | + | then 1 | |
445 | + | else 0 | |
446 | + | let pKey4Signed = if (isDefined(getInteger(pAddress4, txId))) | |
447 | + | then 1 | |
448 | + | else 0 | |
449 | + | let pKey5Signed = if (isDefined(getInteger(pAddress5, txId))) | |
450 | + | then 1 | |
451 | + | else 0 | |
452 | + | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) | |
453 | + | case _ => | |
454 | + | false | |
455 | + | } | |
456 | + |
github/deemru/w8io/026f985 76.81 ms ◑