tx · CwxXSEwrYewzHpoNYuqEyTwm7RGbTpEJvTHdu7DGgD3c 3Mvb9KTFtGYE1SK3yHT5X2Het2nRmidaHoA: -0.01500000 Waves 2021.03.12 17:13 [1434567] smart account 3Mvb9KTFtGYE1SK3yHT5X2Het2nRmidaHoA > SELF 0.00000000 Waves
{ "type": 13, "id": "CwxXSEwrYewzHpoNYuqEyTwm7RGbTpEJvTHdu7DGgD3c", "fee": 1500000, "feeAssetId": null, "timestamp": 1615558423187, "version": 2, "chainId": 84, "sender": "3Mvb9KTFtGYE1SK3yHT5X2Het2nRmidaHoA", "senderPublicKey": "2g5jSYUP6sshVz96Ah3LTRjhDHXKfWn7uoftKqqdrhq8", "proofs": [ "4jvaBNLsnXLQrAvF5S7RturbVUeMCrMwwpVF5NYGGm2wixBrss3oPXZc9hbBtvf7EjMh7o3UzkZ3BaS7ntdUKQmU" ], "script": "base64:AAIDAAAAAAAAABMIARIHCgUBAQEBCBIECgIBARIAAAAAFQAAAAAKZEFwcEFkZHJlcwIAAAArRjlEQ0dpWWdUOHl2QnExQVFGY1NwR0c0cDhzZHpOejltWmN6RHZKNDVMTAAAAAALdGlja2V0QXNzZXQBAAAAIEYc9ZUgYtXiRrToDJgiMgFmnQRu3R1NoyARqb9irygsAAAAAA10b2tlbnNQZXJQbGF5AAAAAAAF9eEAAAAAAA1sb3R0ZXJ5YW1vdW50AgAAAAdfYW1vdW50AAAAABJsb3R0ZXJ5cHJvYmFiaWxpdHkCAAAADF9wcm9iYWJpbGl0eQAAAAAZbG90dGVyeXByb2JhYmlsaXR5ZGVjaW1hbAIAAAAUX3Byb2JhYmlsaXR5X2RlY2ltYWwAAAAADGxvdHRlcnlQcmljZQIAAAAGX3ByaWNlAAAAAA1sb3R0ZXJ5UHJpY2VzAgAAAA9fbG90dGVyeV9wcmljZXMAAAAADmxvdHRlcnlBc3NldElkAgAAABFfbG90dGVyeV9hc3NldF9pZAAAAAANY291bnRPZlByaWNlcwIAAAANX2NvdW50X3ByaWNl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S4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmQ2yqv", "height": 1434567, "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 dAppAddres = "F9DCGiYgT8yvBq1AQFcSpGG4p8sdzNz9mZczDvJ45LL" | |
5 | + | ||
6 | + | let ticketAsset = base58'5ih9jd4KV9kSey55yvKMgLSHcwsYYkQ4pRDJtRNoxUhy' | |
7 | + | ||
8 | + | let tokensPerPlay = 100000000 | |
9 | + | ||
10 | + | let lotteryamount = "_amount" | |
11 | + | ||
12 | + | let lotteryprobability = "_probability" | |
13 | + | ||
14 | + | let lotteryprobabilitydecimal = "_probability_decimal" | |
15 | + | ||
16 | + | let lotteryPrice = "_price" | |
17 | + | ||
18 | + | let lotteryPrices = "_lottery_prices" | |
19 | + | ||
20 | + | let lotteryAssetId = "_lottery_asset_id" | |
21 | + | ||
22 | + | let countOfPrices = "_count_prices" | |
23 | + | ||
24 | + | let lastHashRandomNumber = "last_spin_random_hash" | |
25 | + | ||
26 | + | let lastTokenRandomHash = "last_token_random_hash" | |
27 | + | ||
28 | + | let allowSizeLottery = 4 | |
29 | + | ||
30 | + | let totalPricesInPool = "total_prizes_pool" | |
31 | + | ||
32 | + | func randomizer (inv) = { | |
33 | + | let lastPlay = match getBinary(this, lastHashRandomNumber) { | |
34 | + | case s: ByteVector => | |
35 | + | s | |
36 | + | case _: Unit => | |
37 | + | base58'2ee4oFDYriWJ9EMeR' | |
38 | + | case _ => | |
39 | + | throw("Match error") | |
40 | + | } | |
41 | + | let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
42 | + | sha256(rand) | |
43 | + | } | |
44 | + | ||
45 | + | ||
46 | + | func getNumberDecimal (number) = if ((number == 1)) | |
47 | + | then "0.0" | |
48 | + | else if ((number == 2)) | |
49 | + | then "0.00" | |
50 | + | else if ((number == 3)) | |
51 | + | then "0.000" | |
52 | + | else if ((number == 4)) | |
53 | + | then "0.0000" | |
54 | + | else if ((number == 5)) | |
55 | + | then "0.00000" | |
56 | + | else if ((number == 6)) | |
57 | + | then "0.000000" | |
58 | + | else if ((number == 7)) | |
59 | + | then "0.0000000" | |
60 | + | else throw("exceed number") | |
61 | + | ||
62 | + | ||
63 | + | func convertAmountToDecimalString (tokenAmount,decimalVal) = { | |
64 | + | let tokenAmountSize = size(toString(tokenAmount)) | |
65 | + | if ((tokenAmountSize > decimalVal)) | |
66 | + | then { | |
67 | + | let sufixAmount = takeRight(toString(tokenAmount), decimalVal) | |
68 | + | let prefixNumber = take(toString(tokenAmount), (size(toString(tokenAmount)) - decimalVal)) | |
69 | + | let finaResult = ((prefixNumber + ".") + sufixAmount) | |
70 | + | finaResult | |
71 | + | } | |
72 | + | else if ((tokenAmountSize == decimalVal)) | |
73 | + | then { | |
74 | + | let valTemp = (decimalVal - tokenAmountSize) | |
75 | + | let finalResult = ("0." + toString(tokenAmount)) | |
76 | + | finalResult | |
77 | + | } | |
78 | + | else { | |
79 | + | let diffPriceAndDecimal = (decimalVal - tokenAmountSize) | |
80 | + | let prefixAmount = getNumberDecimal(diffPriceAndDecimal) | |
81 | + | let finalResult = (prefixAmount + toString(tokenAmount)) | |
82 | + | finalResult | |
83 | + | } | |
84 | + | } | |
85 | + | ||
86 | + | ||
87 | + | func generatorRandomHash (inv) = { | |
88 | + | let lastHashForToken = match getBinary(this, lastTokenRandomHash) { | |
89 | + | case s: ByteVector => | |
90 | + | s | |
91 | + | case _: Unit => | |
92 | + | base58'4dD7osCQzvuXJdTiGfKvTwnKT' | |
93 | + | case _ => | |
94 | + | throw("Match error") | |
95 | + | } | |
96 | + | let rand = (((((lastHashForToken + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)) | |
97 | + | sha256(rand) | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | func getPriceArray () = { | |
102 | + | let currentPrices = match getString(this, lotteryPrices) { | |
103 | + | case a: String => | |
104 | + | a | |
105 | + | case _: Unit => | |
106 | + | "" | |
107 | + | case _ => | |
108 | + | throw("Match error") | |
109 | + | } | |
110 | + | let sizePrices = size(currentPrices) | |
111 | + | if ((sizePrices == 0)) | |
112 | + | then nil | |
113 | + | else { | |
114 | + | let trimPrices = take(currentPrices, (size(currentPrices) - 1)) | |
115 | + | let newArray = split(trimPrices, ",") | |
116 | + | newArray | |
117 | + | } | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func generateNewListOfPrices (token,val) = if (isDefined(val)) | |
122 | + | then { | |
123 | + | let indexOfComma = indexOf(token, ",") | |
124 | + | let tokenAlreadyExist = indexOf(token, val) | |
125 | + | if (if (!(isDefined(indexOfComma))) | |
126 | + | then !(isDefined(tokenAlreadyExist)) | |
127 | + | else false) | |
128 | + | then ((token + val) + ",") | |
129 | + | else if (if (!(isDefined(indexOfComma))) | |
130 | + | then isDefined(tokenAlreadyExist) | |
131 | + | else false) | |
132 | + | then (val + ",") | |
133 | + | else if (if (isDefined(tokenAlreadyExist)) | |
134 | + | then isDefined(indexOfComma) | |
135 | + | else false) | |
136 | + | then token | |
137 | + | else if (if (isDefined(indexOfComma)) | |
138 | + | then !(isDefined(tokenAlreadyExist)) | |
139 | + | else false) | |
140 | + | then ((token + val) + ",") | |
141 | + | else "" | |
142 | + | } | |
143 | + | else token | |
144 | + | ||
145 | + | ||
146 | + | func procedLottery (win,token) = if (if (isDefined(token)) | |
147 | + | then true | |
148 | + | else (token != "")) | |
149 | + | then { | |
150 | + | let tokenProbability = getIntegerValue(this, (token + lotteryprobability)) | |
151 | + | let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal)) | |
152 | + | let sizeOfWin = size(win) | |
153 | + | if ((sizeOfWin == 1)) | |
154 | + | then { | |
155 | + | let randomNumber = win[0] | |
156 | + | let convertedRandomNumber = fromBase64String(randomNumber) | |
157 | + | let convertedDecimalNumber = (tokenProbabilityDecimal * 1000) | |
158 | + | let comparisonNumber = (toInt(convertedRandomNumber) % convertedDecimalNumber) | |
159 | + | if ((tokenProbability > comparisonNumber)) | |
160 | + | then token :: win | |
161 | + | else win | |
162 | + | } | |
163 | + | else win | |
164 | + | } | |
165 | + | else win | |
166 | + | ||
167 | + | ||
168 | + | @Callable(i) | |
169 | + | func updateprobability (probability,amount,poolprice,probDecimal,assetId) = { | |
170 | + | let token = toBase64String(generatorRandomHash(i)) | |
171 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
172 | + | then false | |
173 | + | else true | |
174 | + | let lotteryAssetTN = if ((assetId == "")) | |
175 | + | then true | |
176 | + | else false | |
177 | + | let totalRequiredAmount = (amount * poolprice) | |
178 | + | let currentTotalAmount = match getInteger(this, totalPricesInPool) { | |
179 | + | case t: Int => | |
180 | + | t | |
181 | + | case _: Unit => | |
182 | + | 0 | |
183 | + | case _ => | |
184 | + | throw("Match error") | |
185 | + | } | |
186 | + | let updatedTotalAmountPrices = (currentTotalAmount + totalRequiredAmount) | |
187 | + | if ((paymentIsDefined == true)) | |
188 | + | then { | |
189 | + | let payment = extract(i.payment) | |
190 | + | let paymentAssetId = match payment.assetId { | |
191 | + | case a: ByteVector => | |
192 | + | toBase58String(a) | |
193 | + | case _: Unit => | |
194 | + | "" | |
195 | + | case _ => | |
196 | + | throw("Match error") | |
197 | + | } | |
198 | + | let paymentAmount = payment.amount | |
199 | + | if ((paymentAssetId != assetId)) | |
200 | + | then throw("Asset Id not matching with Payment Asset Id") | |
201 | + | else if ((totalRequiredAmount > paymentAmount)) | |
202 | + | then throw("Not enough Asset Amount") | |
203 | + | else { | |
204 | + | let tempValue = match getString(this, lotteryPrices) { | |
205 | + | case a: String => | |
206 | + | a | |
207 | + | case _: Unit => | |
208 | + | "" | |
209 | + | case _ => | |
210 | + | throw("Match error") | |
211 | + | } | |
212 | + | let containKey = indexOf(tempValue, token) | |
213 | + | let storedTokensValues = match containKey { | |
214 | + | case _: Unit => | |
215 | + | ((tempValue + token) + ",") | |
216 | + | case x: Int => | |
217 | + | throw("Token is duplicated") | |
218 | + | case _ => | |
219 | + | throw("Match error") | |
220 | + | } | |
221 | + | let countTokens = match getInteger(this, countOfPrices) { | |
222 | + | case a: Int => | |
223 | + | a | |
224 | + | case _: Unit => | |
225 | + | 0 | |
226 | + | case _ => | |
227 | + | throw("Match error") | |
228 | + | } | |
229 | + | if ((allowSizeLottery > countTokens)) | |
230 | + | then { | |
231 | + | let updateLotteryPool = WriteSet([DataEntry((token + lotteryamount), amount), DataEntry((token + lotteryprobability), probability), DataEntry((token + lotteryPrice), poolprice), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, (countTokens + 1)), DataEntry((token + lotteryprobabilitydecimal), probDecimal), DataEntry((token + lotteryAssetId), assetId), DataEntry(lastTokenRandomHash, token), DataEntry(totalPricesInPool, updatedTotalAmountPrices)]) | |
232 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
233 | + | } | |
234 | + | else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery))) | |
235 | + | } | |
236 | + | } | |
237 | + | else { | |
238 | + | let tnBalance = if (lotteryAssetTN) | |
239 | + | then wavesBalance(this) | |
240 | + | else assetBalance(this, fromBase64String(assetId)) | |
241 | + | if ((totalRequiredAmount > tnBalance)) | |
242 | + | then throw("Not enough Asset Amount") | |
243 | + | else { | |
244 | + | let tempValue = match getString(this, lotteryPrices) { | |
245 | + | case a: String => | |
246 | + | a | |
247 | + | case _: Unit => | |
248 | + | "" | |
249 | + | case _ => | |
250 | + | throw("Match error") | |
251 | + | } | |
252 | + | let containKey = indexOf(tempValue, token) | |
253 | + | let storedTokensValues = match containKey { | |
254 | + | case _: Unit => | |
255 | + | ((tempValue + token) + ",") | |
256 | + | case x: Int => | |
257 | + | throw("Token is duplicated") | |
258 | + | case _ => | |
259 | + | throw("Match error") | |
260 | + | } | |
261 | + | let countTokens = match getInteger(this, countOfPrices) { | |
262 | + | case a: Int => | |
263 | + | a | |
264 | + | case _: Unit => | |
265 | + | 0 | |
266 | + | case _ => | |
267 | + | throw("Match error") | |
268 | + | } | |
269 | + | if ((allowSizeLottery > countTokens)) | |
270 | + | then { | |
271 | + | let updateLotteryPool = WriteSet([DataEntry((token + lotteryamount), amount), DataEntry((token + lotteryprobability), probability), DataEntry((token + lotteryPrice), poolprice), DataEntry(lotteryPrices, storedTokensValues), DataEntry(countOfPrices, (countTokens + 1)), DataEntry((token + lotteryprobabilitydecimal), probDecimal), DataEntry((token + lotteryAssetId), assetId), DataEntry(lastTokenRandomHash, token), DataEntry(totalPricesInPool, updatedTotalAmountPrices)]) | |
272 | + | ScriptResult(updateLotteryPool, TransferSet(nil)) | |
273 | + | } | |
274 | + | else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery))) | |
275 | + | } | |
276 | + | } | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | ||
281 | + | @Callable(i) | |
282 | + | func testVal (tokenAmount,decimalVal) = { | |
283 | + | let finalResult = convertAmountToDecimalString(tokenAmount, decimalVal) | |
284 | + | let writeSets = WriteSet([DataEntry(toString(tokenAmount), finalResult)]) | |
285 | + | ScriptResult(writeSets, TransferSet(nil)) | |
286 | + | } | |
287 | + | ||
288 | + | ||
289 | + | ||
290 | + | @Callable(i) | |
291 | + | func startlotto () = { | |
292 | + | let paymentIsDefined = if (!(isDefined(i.payment))) | |
293 | + | then false | |
294 | + | else true | |
295 | + | if ((paymentIsDefined == true)) | |
296 | + | then { | |
297 | + | let pmt = extract(i.payment) | |
298 | + | if (if ((pmt.assetId != ticketAsset)) | |
299 | + | then true | |
300 | + | else (pmt.amount != tokensPerPlay)) | |
301 | + | then throw("Incorrect asset passed or incorrect quantity passed") | |
302 | + | else { | |
303 | + | let currentKey = toBase58String(i.caller.bytes) | |
304 | + | let randhash = randomizer(i) | |
305 | + | let countTokens = match getInteger(this, countOfPrices) { | |
306 | + | case a: Int => | |
307 | + | a | |
308 | + | case _: Unit => | |
309 | + | 0 | |
310 | + | case _ => | |
311 | + | throw("Match error") | |
312 | + | } | |
313 | + | let priceList = getPriceArray() | |
314 | + | let randNumber = toBase64String(randhash) | |
315 | + | let updNumber = fromBase64String(randNumber) | |
316 | + | let listWinningPrices = [randNumber] | |
317 | + | let winningToken = { | |
318 | + | let $list1104311095 = priceList | |
319 | + | let $size1104311095 = size($list1104311095) | |
320 | + | let $acc01104311095 = listWinningPrices | |
321 | + | if (($size1104311095 == 0)) | |
322 | + | then $acc01104311095 | |
323 | + | else { | |
324 | + | let $acc11104311095 = procedLottery($acc01104311095, $list1104311095[0]) | |
325 | + | if (($size1104311095 == 1)) | |
326 | + | then $acc11104311095 | |
327 | + | else { | |
328 | + | let $acc21104311095 = procedLottery($acc11104311095, $list1104311095[1]) | |
329 | + | if (($size1104311095 == 2)) | |
330 | + | then $acc21104311095 | |
331 | + | else { | |
332 | + | let $acc31104311095 = procedLottery($acc21104311095, $list1104311095[2]) | |
333 | + | if (($size1104311095 == 3)) | |
334 | + | then $acc31104311095 | |
335 | + | else { | |
336 | + | let $acc41104311095 = procedLottery($acc31104311095, $list1104311095[3]) | |
337 | + | if (($size1104311095 == 4)) | |
338 | + | then $acc41104311095 | |
339 | + | else { | |
340 | + | let $acc51104311095 = procedLottery($acc41104311095, $list1104311095[4]) | |
341 | + | throw("List size exceed 4") | |
342 | + | } | |
343 | + | } | |
344 | + | } | |
345 | + | } | |
346 | + | } | |
347 | + | } | |
348 | + | let sizeOfWinPrices = size(winningToken) | |
349 | + | if ((sizeOfWinPrices == 1)) | |
350 | + | then { | |
351 | + | let writeSets = WriteSet([DataEntry("message", "<h1>Better luck next time!</h1><br><p>Invite more friends to keep playing.<p>"), DataEntry(lastHashRandomNumber, randNumber)]) | |
352 | + | ScriptResult(writeSets, TransferSet(nil)) | |
353 | + | } | |
354 | + | else { | |
355 | + | let token = winningToken[0] | |
356 | + | let currentAmount = getIntegerValue(this, (token + lotteryamount)) | |
357 | + | if ((currentAmount == 0)) | |
358 | + | then throw("Amount exceeded") | |
359 | + | else { | |
360 | + | let actualAmount = (currentAmount - 1) | |
361 | + | let tokenWonAmount = getIntegerValue(this, (token + lotteryPrice)) | |
362 | + | let tokenAssetId = getStringValue(this, (token + lotteryAssetId)) | |
363 | + | let tokenDecimal = match assetInfo(fromBase58String(tokenAssetId)) { | |
364 | + | case asset: Asset => | |
365 | + | asset.decimals | |
366 | + | case _: Unit => | |
367 | + | throw("Can't find asset") | |
368 | + | case _ => | |
369 | + | throw("Match error") | |
370 | + | } | |
371 | + | let convertedPrice = convertAmountToDecimalString(tokenWonAmount, tokenDecimal) | |
372 | + | let currentTotalAmount = match getInteger(this, totalPricesInPool) { | |
373 | + | case t: Int => | |
374 | + | t | |
375 | + | case _: Unit => | |
376 | + | 0 | |
377 | + | case _ => | |
378 | + | throw("Match error") | |
379 | + | } | |
380 | + | let updatedAmount = (currentTotalAmount - tokenWonAmount) | |
381 | + | if ((actualAmount == 0)) | |
382 | + | then { | |
383 | + | let storedTokensValues = { | |
384 | + | let $list1309513145 = priceList | |
385 | + | let $size1309513145 = size($list1309513145) | |
386 | + | let $acc01309513145 = token | |
387 | + | if (($size1309513145 == 0)) | |
388 | + | then $acc01309513145 | |
389 | + | else { | |
390 | + | let $acc11309513145 = generateNewListOfPrices($acc01309513145, $list1309513145[0]) | |
391 | + | if (($size1309513145 == 1)) | |
392 | + | then $acc11309513145 | |
393 | + | else { | |
394 | + | let $acc21309513145 = generateNewListOfPrices($acc11309513145, $list1309513145[1]) | |
395 | + | if (($size1309513145 == 2)) | |
396 | + | then $acc21309513145 | |
397 | + | else { | |
398 | + | let $acc31309513145 = generateNewListOfPrices($acc21309513145, $list1309513145[2]) | |
399 | + | if (($size1309513145 == 3)) | |
400 | + | then $acc31309513145 | |
401 | + | else { | |
402 | + | let $acc41309513145 = generateNewListOfPrices($acc31309513145, $list1309513145[3]) | |
403 | + | if (($size1309513145 == 4)) | |
404 | + | then $acc41309513145 | |
405 | + | else { | |
406 | + | let $acc51309513145 = generateNewListOfPrices($acc41309513145, $list1309513145[4]) | |
407 | + | throw("List size exceed 4") | |
408 | + | } | |
409 | + | } | |
410 | + | } | |
411 | + | } | |
412 | + | } | |
413 | + | } | |
414 | + | let tokenSize = ((size(storedTokensValues) - size(token)) - 1) | |
415 | + | let updatedPrices = takeRight(storedTokensValues, tokenSize) | |
416 | + | let writeSets = WriteSet([DataEntry(countOfPrices, (countTokens - 1)), DataEntry(lotteryPrices, updatedPrices), DataEntry(lastHashRandomNumber, randNumber), DataEntry(totalPricesInPool, updatedAmount), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + convertedPrice) + " ") + tokenAssetId) + ".<p>"))]) | |
417 | + | if ((tokenAssetId == "")) | |
418 | + | then { | |
419 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, unit)]) | |
420 | + | ScriptResult(writeSets, winTransfer) | |
421 | + | } | |
422 | + | else { | |
423 | + | let actualAssetId = fromBase58String(tokenAssetId) | |
424 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, actualAssetId)]) | |
425 | + | ScriptResult(writeSets, winTransfer) | |
426 | + | } | |
427 | + | } | |
428 | + | else { | |
429 | + | let storedTokensValues = { | |
430 | + | let $list1471114761 = priceList | |
431 | + | let $size1471114761 = size($list1471114761) | |
432 | + | let $acc01471114761 = token | |
433 | + | if (($size1471114761 == 0)) | |
434 | + | then $acc01471114761 | |
435 | + | else { | |
436 | + | let $acc11471114761 = generateNewListOfPrices($acc01471114761, $list1471114761[0]) | |
437 | + | if (($size1471114761 == 1)) | |
438 | + | then $acc11471114761 | |
439 | + | else { | |
440 | + | let $acc21471114761 = generateNewListOfPrices($acc11471114761, $list1471114761[1]) | |
441 | + | if (($size1471114761 == 2)) | |
442 | + | then $acc21471114761 | |
443 | + | else { | |
444 | + | let $acc31471114761 = generateNewListOfPrices($acc21471114761, $list1471114761[2]) | |
445 | + | if (($size1471114761 == 3)) | |
446 | + | then $acc31471114761 | |
447 | + | else { | |
448 | + | let $acc41471114761 = generateNewListOfPrices($acc31471114761, $list1471114761[3]) | |
449 | + | if (($size1471114761 == 4)) | |
450 | + | then $acc41471114761 | |
451 | + | else { | |
452 | + | let $acc51471114761 = generateNewListOfPrices($acc41471114761, $list1471114761[4]) | |
453 | + | throw("List size exceed 4") | |
454 | + | } | |
455 | + | } | |
456 | + | } | |
457 | + | } | |
458 | + | } | |
459 | + | } | |
460 | + | let tokenSize = ((size(storedTokensValues) - size(token)) - 1) | |
461 | + | let updatedPrices = takeRight(storedTokensValues, tokenSize) | |
462 | + | let writeSets = WriteSet([DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber), DataEntry(totalPricesInPool, updatedAmount), DataEntry("message", (((("<h1>Congratulations you won!</h1><br><p>You have won " + convertedPrice) + " ") + tokenAssetId) + ".<p>"))]) | |
463 | + | if ((tokenAssetId == "")) | |
464 | + | then { | |
465 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, unit)]) | |
466 | + | ScriptResult(writeSets, winTransfer) | |
467 | + | } | |
468 | + | else { | |
469 | + | let actualAssetId = fromBase58String(tokenAssetId) | |
470 | + | let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenWonAmount, actualAssetId)]) | |
471 | + | ScriptResult(writeSets, winTransfer) | |
472 | + | } | |
473 | + | } | |
474 | + | } | |
475 | + | } | |
476 | + | } | |
477 | + | } | |
478 | + | else throw((("You need " + toBase58String(ticketAsset)) + " to play this game.")) | |
479 | + | } | |
480 | + | ||
481 | + | ||
482 | + | @Verifier(tx) | |
483 | + | func verify () = match tx { | |
484 | + | case _ => | |
485 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
486 | + | } | |
487 | + |
github/deemru/w8io/169f3d6 46.31 ms ◑