tx · GBojAm7ALxov3cgnRgwDhg6LGAoKJhEYrhHn4ggR1FmR 3MqVkF33wRVpm1odFZ7buWunkQrB8y6KWQU: -0.01400000 Waves 2020.04.24 15:13 [968733] smart account 3MqVkF33wRVpm1odFZ7buWunkQrB8y6KWQU > SELF 0.00000000 Waves
{ "type": 13, "id": "GBojAm7ALxov3cgnRgwDhg6LGAoKJhEYrhHn4ggR1FmR", "fee": 1400000, "feeAssetId": null, "timestamp": 1587730425767, "version": 1, "sender": "3MqVkF33wRVpm1odFZ7buWunkQrB8y6KWQU", "senderPublicKey": "UTN6pqKeKEScSzDAsnUb11wBPCkCGr4V5NyWZB9hFHy", "proofs": [], "script": "base64:AAIDAAAAAAAAAAgIARIAEgASAAAAADQAAAAADWlzc3VlckFzc2V0SWQBAAAAIJz3KakhN9dcmPN5qpSg6V3B0NxyfUbFd39iLGb8nOJxAAAAABFpbnZlc3RtZW50QXNzZXRJZAEAAAAgzKCED038fo8oldF/i+/T049zqsmC9lchpEYxh38s/DEAAAAAGGludmVzdG1lbnRBc3NldElkSXNXYXZlcwcAAAAADm93bmVyUHVibGljS2V5AQAAACC7Z0248bCn8IpOmLhobRuXa637auj7c+pbL1vvlhKaVAAAAAAMb3duZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAA5vd25lclB1YmxpY0tleQAAAAASb3duZXJBZGRyZXNzU3RyaW5nAgAAACMzTjlGaU1lajRvR2FpYjNYd1J4SnFHaEdNTXM5SGs0aHhNYgAAAAATYXNzZXREZWNpbWFsc09mZnNldAAAAAAAAAAAAQAAAAAPdG9rZW5zYWxlQW1vdW50AAAAAAAAAAjKAAAAAAlzdGFydFRpbWUAAAAAAF44EzgAAAAAB2VuZFRpbWUAAAAAAGH5KLgAAAAABXByaWNlAAAAAAAAGS1QAAAAAA1zb2Z0Q2FwQW1vdW50AAAAAAAAAABkAAAAAAptaW5QYXltZW50AAAAAAAAGS1QAAAAAAtzd2FwQXNzZXR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mVkAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgkBAAAAB2V4dHJhY3QAAAABBQAAAAlwQWRkcmVzczUJAAJYAAAAAQgFAAAAAnR4AAAAAmlkAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgUAAAALcEtleTFTaWduZWQFAAAAC3BLZXkyU2lnbmVkBQAAAAtwS2V5M1NpZ25lZAUAAAALcEtleTRTaWduZWQFAAAAC3BLZXk1U2lnbmVkAAAAAAAAAAADB9ooVtw=", "chainId": 84, "height": 968733, "spentComplexity": 0 } View: original | compacted Prev: DWmxK44b4pVABra1aV4caQTbL5R7QvAHSnKPR9mRBcgq Next: 8VspEaJS8h49pfAjG4mjN9k99pfKGtRssFEhq2Chczc2 Diff:
Old | New | Differences | |
---|---|---|---|
366 | 366 | case tx: BurnTransaction => | |
367 | 367 | true | |
368 | 368 | case tx: ReissueTransaction => | |
369 | - | | |
369 | + | true | |
370 | 370 | case tx: SetAssetScriptTransaction|SetScriptTransaction => | |
371 | 371 | let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id)))) | |
372 | 372 | then 1 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let issuerAssetId = base58'BZjCBg7ZKG6VHphfkMXD2N4dneXK7Pq84zuoZ2odmcVE' | |
5 | 5 | ||
6 | 6 | let investmentAssetId = base58'Emn8cyGDFgnLCKLTXqVWhKJARhtR2muBUuZaSmqNzDfn' | |
7 | 7 | ||
8 | 8 | let investmentAssetIdIsWaves = false | |
9 | 9 | ||
10 | 10 | let ownerPublicKey = base58'DcYbuABsnwB6G1gNnArLPHCKwFWto3xJpBXyyY7Xkynj' | |
11 | 11 | ||
12 | 12 | let ownerAddress = addressFromPublicKey(ownerPublicKey) | |
13 | 13 | ||
14 | 14 | let ownerAddressString = "3N9FiMej4oGaib3XwRxJqGhGMMs9Hk4hxMb" | |
15 | 15 | ||
16 | 16 | let assetDecimalsOffset = 1 | |
17 | 17 | ||
18 | 18 | let tokensaleAmount = 2250 | |
19 | 19 | ||
20 | 20 | let startTime = 1580733240 | |
21 | 21 | ||
22 | 22 | let endTime = 1643718840 | |
23 | 23 | ||
24 | 24 | let price = 1650000 | |
25 | 25 | ||
26 | 26 | let softCapAmount = 100 | |
27 | 27 | ||
28 | 28 | let minPayment = 1650000 | |
29 | 29 | ||
30 | 30 | let swapAssetId = base58'G7sJQse5JnS7BB2TTppRnEtjpoTnQKX6jpTPrnY2f8nn' | |
31 | 31 | ||
32 | 32 | let swapAmount = 20250 | |
33 | 33 | ||
34 | 34 | let swapPrice = 6000000000000 | |
35 | 35 | ||
36 | 36 | let companyType = 2 | |
37 | 37 | ||
38 | 38 | let isTokensale = 0 | |
39 | 39 | ||
40 | 40 | let isSwap = 1 | |
41 | 41 | ||
42 | 42 | let isTokensaleAndSwap = 2 | |
43 | 43 | ||
44 | 44 | let swapKeySumAmountPrefix = "swapSumAmount " | |
45 | 45 | ||
46 | 46 | let swapKeySumAssetsPrefix = "swapSumAssets " | |
47 | 47 | ||
48 | 48 | let swapKeyDistAssets = "swapAssets" | |
49 | 49 | ||
50 | 50 | let swapKeyCollectedAmount = "swapAmount" | |
51 | 51 | ||
52 | 52 | let keySumAmountPrefix = "sumAmount " | |
53 | 53 | ||
54 | 54 | let keySumPaidAmountPrefix = "paidAmount " | |
55 | 55 | ||
56 | 56 | let keySumAssetsPrefix = "sumAssets " | |
57 | 57 | ||
58 | 58 | let keyAllowAccountPrefix = "allow " | |
59 | 59 | ||
60 | 60 | let keyDistAssets = "assets" | |
61 | 61 | ||
62 | 62 | let keyCollectedAmount = "amount" | |
63 | 63 | ||
64 | 64 | let keyIssuer = "issuer" | |
65 | 65 | ||
66 | 66 | let whitelistAddress = Address(base58'3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ') | |
67 | 67 | ||
68 | 68 | let dAppWhitelistAddress = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR') | |
69 | 69 | ||
70 | 70 | let pAddress1 = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1") | |
71 | 71 | ||
72 | 72 | let pAddress2 = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ") | |
73 | 73 | ||
74 | 74 | let pAddress3 = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe") | |
75 | 75 | ||
76 | 76 | let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
77 | 77 | ||
78 | 78 | let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
79 | 79 | ||
80 | 80 | let ver = "4.0.0-testnet" | |
81 | 81 | ||
82 | 82 | let validState = 1000 | |
83 | 83 | ||
84 | 84 | func isTokensaleAllow () = if ((companyType == isTokensale)) | |
85 | 85 | then true | |
86 | 86 | else (companyType == isTokensaleAndSwap) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func isSwapAllow () = if ((companyType == isSwap)) | |
90 | 90 | then true | |
91 | 91 | else (companyType == isTokensaleAndSwap) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getCurrentTime () = { | |
95 | 95 | let blockInfo = value(blockInfoByHeight(height)) | |
96 | 96 | (blockInfo.timestamp / 1000) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getInvestmentAssetIdForTransfer (isWaves,assetId) = if ((isWaves == false)) | |
101 | 101 | then assetId | |
102 | 102 | else unit | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func getCurrentPrice () = price | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getAmount (key) = match getInteger(this, key) { | |
109 | 109 | case a: Int => | |
110 | 110 | a | |
111 | 111 | case _ => | |
112 | 112 | 0 | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func hasStarted () = (getCurrentTime() >= startTime) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func tokensaleHasEnded () = { | |
120 | 120 | let assets = match getInteger(this, keyDistAssets) { | |
121 | 121 | case a: Int => | |
122 | 122 | a | |
123 | 123 | case _ => | |
124 | 124 | tokensaleAmount | |
125 | 125 | } | |
126 | 126 | if ((getCurrentTime() > endTime)) | |
127 | 127 | then true | |
128 | 128 | else (assets == 0) | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func swapHasEnded () = { | |
133 | 133 | let assets = match getInteger(this, swapKeyDistAssets) { | |
134 | 134 | case a: Int => | |
135 | 135 | a | |
136 | 136 | case _ => | |
137 | 137 | swapAmount | |
138 | 138 | } | |
139 | 139 | if ((getCurrentTime() > endTime)) | |
140 | 140 | then true | |
141 | 141 | else (assets == 0) | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func companyHasEnded () = if (if (isSwapAllow()) | |
146 | 146 | then isTokensaleAllow() | |
147 | 147 | else false) | |
148 | 148 | then if (tokensaleHasEnded()) | |
149 | 149 | then swapHasEnded() | |
150 | 150 | else false | |
151 | 151 | else if (isTokensaleAllow()) | |
152 | 152 | then tokensaleHasEnded() | |
153 | 153 | else if (isSwapAllow()) | |
154 | 154 | then swapHasEnded() | |
155 | 155 | else false | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getPayment (i) = match i.payment { | |
159 | 159 | case p: AttachedPayment => | |
160 | 160 | let isPaymentOk = match p.assetId { | |
161 | 161 | case assetId: ByteVector => | |
162 | 162 | if (!(investmentAssetIdIsWaves)) | |
163 | 163 | then (assetId == investmentAssetId) | |
164 | 164 | else false | |
165 | 165 | case _ => | |
166 | 166 | (investmentAssetIdIsWaves == true) | |
167 | 167 | } | |
168 | 168 | if (isPaymentOk) | |
169 | 169 | then if ((assetDecimalsOffset == 1)) | |
170 | 170 | then if (((p.amount % price) == 0)) | |
171 | 171 | then p.amount | |
172 | 172 | else throw("payment amount must be a multiple of token price") | |
173 | 173 | else p.amount | |
174 | 174 | else throw("Invalid asset ID of investment") | |
175 | 175 | case _ => | |
176 | 176 | throw("Payment must be attached") | |
177 | 177 | } | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func getSwapPayment (i) = match i.payment { | |
181 | 181 | case p: AttachedPayment => | |
182 | 182 | let isPaymentOk = match p.assetId { | |
183 | 183 | case assetId: ByteVector => | |
184 | 184 | (assetId == swapAssetId) | |
185 | 185 | case _ => | |
186 | 186 | false | |
187 | 187 | } | |
188 | 188 | if (isPaymentOk) | |
189 | 189 | then if ((assetDecimalsOffset == 1)) | |
190 | 190 | then if (((p.amount % swapPrice) == 0)) | |
191 | 191 | then p.amount | |
192 | 192 | else throw("payment amount must be a multiple of token price") | |
193 | 193 | else p.amount | |
194 | 194 | else throw("Invalid asset ID of investment") | |
195 | 195 | case _ => | |
196 | 196 | throw("Payment must be attached") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(i) | |
201 | 201 | func deposit () = { | |
202 | 202 | let currentPrice = getCurrentPrice() | |
203 | 203 | let accountAmount = getAmount(keyCollectedAmount) | |
204 | 204 | if (!(isTokensaleAllow())) | |
205 | 205 | then throw("This deposit method is unsopperted for this company") | |
206 | 206 | else if (!(hasStarted())) | |
207 | 207 | then throw(((("The Tokensale works between " + toString(startTime)) + " and ") + toString(endTime))) | |
208 | 208 | else if (tokensaleHasEnded()) | |
209 | 209 | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
210 | 210 | else { | |
211 | 211 | let payment = getPayment(i) | |
212 | 212 | let currentKey = toBase58String(i.caller.bytes) | |
213 | 213 | let isAccountAllow = match getInteger(whitelistAddress, currentKey) { | |
214 | 214 | case a: Int => | |
215 | 215 | a | |
216 | 216 | case _ => | |
217 | 217 | -255 | |
218 | 218 | } | |
219 | 219 | if ((validState > isAccountAllow)) | |
220 | 220 | then throw("Your account has no right to send funds.") | |
221 | 221 | else { | |
222 | 222 | let accountAssets = match getInteger(this, keyDistAssets) { | |
223 | 223 | case a: Int => | |
224 | 224 | a | |
225 | 225 | case _ => | |
226 | 226 | tokensaleAmount | |
227 | 227 | } | |
228 | 228 | let tokensCalc = fraction(payment, assetDecimalsOffset, currentPrice) | |
229 | 229 | let minPaymentInAssets = fraction(minPayment, assetDecimalsOffset, currentPrice) | |
230 | 230 | if (if (if ((0 > (accountAssets - tokensCalc))) | |
231 | 231 | then true | |
232 | 232 | else (minPaymentInAssets > tokensCalc)) | |
233 | 233 | then true | |
234 | 234 | else if ((tokensCalc != accountAssets)) | |
235 | 235 | then (tokensCalc > (accountAssets - minPaymentInAssets)) | |
236 | 236 | else false) | |
237 | 237 | then throw("Incorrect payment amount.") | |
238 | 238 | else { | |
239 | 239 | let newInvestorAmount = (getAmount((keySumAmountPrefix + currentKey)) + payment) | |
240 | 240 | let newInvestorAssets = (getAmount((keySumAssetsPrefix + currentKey)) + tokensCalc) | |
241 | 241 | let newAccountAssets = (accountAssets - tokensCalc) | |
242 | 242 | let newAccountAmount = (accountAmount + payment) | |
243 | 243 | WriteSet([DataEntry((keySumAmountPrefix + currentKey), newInvestorAmount), DataEntry((keySumAssetsPrefix + currentKey), newInvestorAssets), DataEntry(keyDistAssets, newAccountAssets), DataEntry(keyCollectedAmount, newAccountAmount)]) | |
244 | 244 | } | |
245 | 245 | } | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | ||
251 | 251 | @Callable(i) | |
252 | 252 | func swapDeposit () = { | |
253 | 253 | let currentPrice = swapPrice | |
254 | 254 | let accountAmount = getAmount(swapKeyCollectedAmount) | |
255 | 255 | if (!(isSwapAllow())) | |
256 | 256 | then throw("This swap-deposit method is unsopperted for this company") | |
257 | 257 | else if (!(hasStarted())) | |
258 | 258 | then throw(((("The Tokensale works between " + toString(startTime)) + " and ") + toString(endTime))) | |
259 | 259 | else if (swapHasEnded()) | |
260 | 260 | then throw("The required amount has already been accumulated. If you are an investor, you can withdraw your funds.") | |
261 | 261 | else { | |
262 | 262 | let payment = getSwapPayment(i) | |
263 | 263 | let currentKey = toBase58String(i.caller.bytes) | |
264 | 264 | let isAccountAllow = match getInteger(whitelistAddress, currentKey) { | |
265 | 265 | case a: Int => | |
266 | 266 | a | |
267 | 267 | case _ => | |
268 | 268 | -255 | |
269 | 269 | } | |
270 | 270 | if ((validState > isAccountAllow)) | |
271 | 271 | then throw("Your account has no right to send funds.") | |
272 | 272 | else { | |
273 | 273 | let accountAssets = match getInteger(this, swapKeyDistAssets) { | |
274 | 274 | case a: Int => | |
275 | 275 | a | |
276 | 276 | case _ => | |
277 | 277 | swapAmount | |
278 | 278 | } | |
279 | 279 | let tokensCalc = fraction(payment, assetDecimalsOffset, currentPrice) | |
280 | 280 | if ((0 > (accountAssets - tokensCalc))) | |
281 | 281 | then throw("Incorrect payment amount.") | |
282 | 282 | else { | |
283 | 283 | let newInvestorAmount = (getAmount((swapKeySumAmountPrefix + currentKey)) + payment) | |
284 | 284 | let newInvestorAssets = (getAmount((swapKeySumAssetsPrefix + currentKey)) + tokensCalc) | |
285 | 285 | let newAccountAssets = (accountAssets - tokensCalc) | |
286 | 286 | let newAccountAmount = (accountAmount + payment) | |
287 | 287 | WriteSet([DataEntry((swapKeySumAmountPrefix + currentKey), newInvestorAmount), DataEntry((swapKeySumAssetsPrefix + currentKey), newInvestorAssets), DataEntry(swapKeyDistAssets, newAccountAssets), DataEntry(swapKeyCollectedAmount, newAccountAmount)]) | |
288 | 288 | } | |
289 | 289 | } | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(i) | |
296 | 296 | func withdrawal () = { | |
297 | 297 | let dAppStatus = match getInteger(dAppWhitelistAddress, toString(this)) { | |
298 | 298 | case a: Int => | |
299 | 299 | a | |
300 | 300 | case _ => | |
301 | 301 | 0 | |
302 | 302 | } | |
303 | 303 | if ((dAppStatus == 0)) | |
304 | 304 | then throw("Withdrawals are not available until the issuer passes verification") | |
305 | 305 | else { | |
306 | 306 | let currentKey = toBase58String(i.caller.bytes) | |
307 | 307 | let currentInvestorAssets = getAmount((keySumAssetsPrefix + currentKey)) | |
308 | 308 | let currentInvestorAmount = getAmount((keySumAmountPrefix + currentKey)) | |
309 | 309 | let currentInvestorSwapAssets = getAmount((swapKeySumAssetsPrefix + currentKey)) | |
310 | 310 | let currentInvestorSwapAmount = getAmount((swapKeySumAmountPrefix + currentKey)) | |
311 | 311 | let accountSwapAmount = getAmount(swapKeyCollectedAmount) | |
312 | 312 | let accountSwapAssets = getAmount(swapKeyDistAssets) | |
313 | 313 | let accountAmount = getAmount(keyCollectedAmount) | |
314 | 314 | let accountAssets = getAmount(keyDistAssets) | |
315 | 315 | let investmentAssetIdForTransfer = getInvestmentAssetIdForTransfer(investmentAssetIdIsWaves, investmentAssetId) | |
316 | 316 | if (!(companyHasEnded())) | |
317 | 317 | then throw("The Company is still active") | |
318 | 318 | else if (if ((currentKey == ownerAddressString)) | |
319 | 319 | then (dAppStatus == 1) | |
320 | 320 | else false) | |
321 | 321 | then { | |
322 | 322 | let issuerAlreadyGotFunds = getAmount(keyIssuer) | |
323 | 323 | if ((issuerAlreadyGotFunds == 0)) | |
324 | 324 | then if (if (isTokensaleAllow()) | |
325 | 325 | then isSwapAllow() | |
326 | 326 | else false) | |
327 | 327 | then if ((accountAmount >= softCapAmount)) | |
328 | 328 | then ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountAmount, investmentAssetIdForTransfer), ScriptTransfer(ownerAddress, accountSwapAmount, swapAssetId)])) | |
329 | 329 | else ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountSwapAmount, swapAssetId)])) | |
330 | 330 | else if (isTokensaleAllow()) | |
331 | 331 | then if ((accountAmount >= softCapAmount)) | |
332 | 332 | then ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountAmount, investmentAssetIdForTransfer)])) | |
333 | 333 | else throw("No funds for issuer") | |
334 | 334 | else ScriptResult(WriteSet([DataEntry(keyIssuer, 1)]), TransferSet([ScriptTransfer(ownerAddress, accountSwapAmount, swapAssetId)])) | |
335 | 335 | else throw("The issuer has already taken its share!") | |
336 | 336 | } | |
337 | 337 | else if (if ((currentInvestorAmount == 0)) | |
338 | 338 | then (currentInvestorSwapAmount == 0) | |
339 | 339 | else false) | |
340 | 340 | then throw("Don't have money") | |
341 | 341 | else if (if (isTokensaleAllow()) | |
342 | 342 | then isSwapAllow() | |
343 | 343 | else false) | |
344 | 344 | then if (if ((softCapAmount > accountAmount)) | |
345 | 345 | then (dAppStatus == 1) | |
346 | 346 | else false) | |
347 | 347 | then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0), DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAmount, investmentAssetIdForTransfer), ScriptTransfer(i.caller, currentInvestorSwapAssets, issuerAssetId)])) | |
348 | 348 | else if ((dAppStatus == 1)) | |
349 | 349 | then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0), DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAssets, issuerAssetId), ScriptTransfer(i.caller, currentInvestorSwapAssets, issuerAssetId)])) | |
350 | 350 | else ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0), DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAmount, investmentAssetIdForTransfer), ScriptTransfer(i.caller, currentInvestorSwapAmount, swapAssetId)])) | |
351 | 351 | else if (isTokensaleAllow()) | |
352 | 352 | then if (if ((accountAmount >= softCapAmount)) | |
353 | 353 | then (dAppStatus == 1) | |
354 | 354 | else false) | |
355 | 355 | then ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAssets, issuerAssetId)])) | |
356 | 356 | else ScriptResult(WriteSet([DataEntry((keySumAmountPrefix + currentKey), 0), DataEntry((keySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorAmount, investmentAssetIdForTransfer)])) | |
357 | 357 | else if ((dAppStatus == 1)) | |
358 | 358 | then ScriptResult(WriteSet([DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorSwapAssets, issuerAssetId)])) | |
359 | 359 | else ScriptResult(WriteSet([DataEntry((swapKeySumAmountPrefix + currentKey), 0), DataEntry((swapKeySumAssetsPrefix + currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, currentInvestorSwapAmount, swapAssetId)])) | |
360 | 360 | } | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Verifier(tx) | |
365 | 365 | func verify () = match tx { | |
366 | 366 | case tx: BurnTransaction => | |
367 | 367 | true | |
368 | 368 | case tx: ReissueTransaction => | |
369 | - | | |
369 | + | true | |
370 | 370 | case tx: SetAssetScriptTransaction|SetScriptTransaction => | |
371 | 371 | let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id)))) | |
372 | 372 | then 1 | |
373 | 373 | else 0 | |
374 | 374 | let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id)))) | |
375 | 375 | then 1 | |
376 | 376 | else 0 | |
377 | 377 | let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id)))) | |
378 | 378 | then 1 | |
379 | 379 | else 0 | |
380 | 380 | let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id)))) | |
381 | 381 | then 1 | |
382 | 382 | else 0 | |
383 | 383 | let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id)))) | |
384 | 384 | then 1 | |
385 | 385 | else 0 | |
386 | 386 | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) | |
387 | 387 | case _ => | |
388 | 388 | false | |
389 | 389 | } | |
390 | 390 |
github/deemru/w8io/169f3d6 48.72 ms ◑