tx · BA9xgHpouw6c5GPaAP2tRqW6uVswqqgXLgbishavfcMt

3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1:  -0.01400000 Waves

2021.02.09 14:34 [1390595] smart account 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1 > SELF 0.00000000 Waves

{ "type": 13, "id": "BA9xgHpouw6c5GPaAP2tRqW6uVswqqgXLgbishavfcMt", "fee": 1400000, "feeAssetId": null, "timestamp": 1612870490466, "version": 2, "chainId": 84, "sender": "3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1", "senderPublicKey": "4ZSmQKKSEVi7FUZVartg8PJgDtovcTaKW3HWpdXKkjx2", "proofs": [ "21wpQ5ePPdVnyaGmTRDgDsFSaDEjtRk324gwxjg6ENjmCynS3M1ouBBDT7dnL8wmZjhASSdUK9hwWWyD9GQZfpQn" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0enNubzdhUnd6RD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NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACnRva2VuUHJpY2UFAAAADWFjdHVhbEFzc2V0SWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAACXdyaXRlU2V0cwUAAAALd2luVHJhbnNmZXIAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleeZcphc=", "height": 1390595, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CEcxzuQg3aMx5QKiTiX1Guj6kD4pcE2D1EXJ676UznS2 Next: 9No52xVF4DNqLS5m1d9eJEGjRUxZ6ojkYqfbSffqnjwx Diff:
OldNewDifferences
7272 let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
7373 let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
7474 let probabilityValue = (tokenProbabilityDecimal * 1000)
75- let hash = (tokenProbabilityDecimal % probabilityValue)
75+ let probCompare = (tokenProbabilityDecimal % probabilityValue)
7676 let sizeOfWin = size(win)
7777 if ((sizeOfWin == 1))
7878 then {
79- let randomNumber = win[0]
80- if ((probabilityValue > hash))
79+ let randomNumber = win[1]
80+ let comp = toInt(fromBase64String(randomNumber))
81+ if ((probCompare > comp))
8182 then {
8283 let newList = token :: win
8384 newList
208209 let priceList = getPriceArray()
209210 let randNumber = toInt(randhash)
210211 let winningToken = {
211- let $list73937431 = priceList
212- let $size73937431 = size($list73937431)
213- let $acc073937431 = nil
214- if (($size73937431 == 0))
215- then $acc073937431
212+ let $list74697528 = priceList
213+ let $size74697528 = size($list74697528)
214+ let $acc074697528 = [toString(randNumber)]
215+ if (($size74697528 == 0))
216+ then $acc074697528
216217 else {
217- let $acc173937431 = procedLottery($acc073937431, $list73937431[0])
218- if (($size73937431 == 1))
219- then $acc173937431
218+ let $acc174697528 = procedLottery($acc074697528, $list74697528[0])
219+ if (($size74697528 == 1))
220+ then $acc174697528
220221 else {
221- let $acc273937431 = procedLottery($acc173937431, $list73937431[1])
222- if (($size73937431 == 2))
223- then $acc273937431
222+ let $acc274697528 = procedLottery($acc174697528, $list74697528[1])
223+ if (($size74697528 == 2))
224+ then $acc274697528
224225 else {
225- let $acc373937431 = procedLottery($acc273937431, $list73937431[2])
226- if (($size73937431 == 3))
227- then $acc373937431
226+ let $acc374697528 = procedLottery($acc274697528, $list74697528[2])
227+ if (($size74697528 == 3))
228+ then $acc374697528
228229 else {
229- let $acc473937431 = procedLottery($acc373937431, $list73937431[3])
230- if (($size73937431 == 4))
231- then $acc473937431
230+ let $acc474697528 = procedLottery($acc374697528, $list74697528[3])
231+ if (($size74697528 == 4))
232+ then $acc474697528
232233 else {
233- let $acc573937431 = procedLottery($acc473937431, $list73937431[4])
234- if (($size73937431 == 5))
235- then $acc573937431
234+ let $acc574697528 = procedLottery($acc474697528, $list74697528[4])
235+ if (($size74697528 == 5))
236+ then $acc574697528
236237 else {
237- let $acc673937431 = procedLottery($acc573937431, $list73937431[5])
238- if (($size73937431 == 6))
239- then $acc673937431
238+ let $acc674697528 = procedLottery($acc574697528, $list74697528[5])
239+ if (($size74697528 == 6))
240+ then $acc674697528
240241 else {
241- let $acc773937431 = procedLottery($acc673937431, $list73937431[6])
242- if (($size73937431 == 7))
243- then $acc773937431
242+ let $acc774697528 = procedLottery($acc674697528, $list74697528[6])
243+ if (($size74697528 == 7))
244+ then $acc774697528
244245 else {
245- let $acc873937431 = procedLottery($acc773937431, $list73937431[7])
246- if (($size73937431 == 8))
247- then $acc873937431
246+ let $acc874697528 = procedLottery($acc774697528, $list74697528[7])
247+ if (($size74697528 == 8))
248+ then $acc874697528
248249 else {
249- let $acc973937431 = procedLottery($acc873937431, $list73937431[8])
250- if (($size73937431 == 9))
251- then $acc973937431
250+ let $acc974697528 = procedLottery($acc874697528, $list74697528[8])
251+ if (($size74697528 == 9))
252+ then $acc974697528
252253 else {
253- let $acc1073937431 = procedLottery($acc973937431, $list73937431[9])
254- if (($size73937431 == 10))
255- then $acc1073937431
254+ let $acc1074697528 = procedLottery($acc974697528, $list74697528[9])
255+ if (($size74697528 == 10))
256+ then $acc1074697528
256257 else {
257- let $acc1173937431 = procedLottery($acc1073937431, $list73937431[10])
258- if (($size73937431 == 11))
259- then $acc1173937431
258+ let $acc1174697528 = procedLottery($acc1074697528, $list74697528[10])
259+ if (($size74697528 == 11))
260+ then $acc1174697528
260261 else {
261- let $acc1273937431 = procedLottery($acc1173937431, $list73937431[11])
262- if (($size73937431 == 12))
263- then $acc1273937431
262+ let $acc1274697528 = procedLottery($acc1174697528, $list74697528[11])
263+ if (($size74697528 == 12))
264+ then $acc1274697528
264265 else {
265- let $acc1373937431 = procedLottery($acc1273937431, $list73937431[12])
266- if (($size73937431 == 13))
267- then $acc1373937431
266+ let $acc1374697528 = procedLottery($acc1274697528, $list74697528[12])
267+ if (($size74697528 == 13))
268+ then $acc1374697528
268269 else {
269- let $acc1473937431 = procedLottery($acc1373937431, $list73937431[13])
270- if (($size73937431 == 14))
271- then $acc1473937431
270+ let $acc1474697528 = procedLottery($acc1374697528, $list74697528[13])
271+ if (($size74697528 == 14))
272+ then $acc1474697528
272273 else {
273- let $acc1573937431 = procedLottery($acc1473937431, $list73937431[14])
274+ let $acc1574697528 = procedLottery($acc1474697528, $list74697528[14])
274275 throw("List size exceed 14")
275276 }
276277 }
300301 if ((currentAmount == 0))
301302 then throw("Amount exceeded")
302303 else {
303- let actualAmount = (currentAmount - 1)
304+ let actualAmount = -(1)
304305 let tokenPrice = getIntegerValue(this, (token + lotteryPrice))
305306 let tokenAssetId = getStringValue(this, (token + lotteryAssetId))
306307 if ((actualAmount == 0))
307308 then {
308309 let storedTokensValues = {
309- let $list82668317 = priceList
310- let $size82668317 = size($list82668317)
311- let $acc082668317 = token
312- if (($size82668317 == 0))
313- then $acc082668317
310+ let $list83498399 = priceList
311+ let $size83498399 = size($list83498399)
312+ let $acc083498399 = token
313+ if (($size83498399 == 0))
314+ then $acc083498399
314315 else {
315- let $acc182668317 = generateNewListOfPrices($acc082668317, $list82668317[0])
316- if (($size82668317 == 1))
317- then $acc182668317
316+ let $acc183498399 = generateNewListOfPrices($acc083498399, $list83498399[0])
317+ if (($size83498399 == 1))
318+ then $acc183498399
318319 else {
319- let $acc282668317 = generateNewListOfPrices($acc182668317, $list82668317[1])
320- if (($size82668317 == 2))
321- then $acc282668317
320+ let $acc283498399 = generateNewListOfPrices($acc183498399, $list83498399[1])
321+ if (($size83498399 == 2))
322+ then $acc283498399
322323 else {
323- let $acc382668317 = generateNewListOfPrices($acc282668317, $list82668317[2])
324- if (($size82668317 == 3))
325- then $acc382668317
324+ let $acc383498399 = generateNewListOfPrices($acc283498399, $list83498399[2])
325+ if (($size83498399 == 3))
326+ then $acc383498399
326327 else {
327- let $acc482668317 = generateNewListOfPrices($acc382668317, $list82668317[3])
328- if (($size82668317 == 4))
329- then $acc482668317
328+ let $acc483498399 = generateNewListOfPrices($acc383498399, $list83498399[3])
329+ if (($size83498399 == 4))
330+ then $acc483498399
330331 else {
331- let $acc582668317 = generateNewListOfPrices($acc482668317, $list82668317[4])
332- if (($size82668317 == 5))
333- then $acc582668317
332+ let $acc583498399 = generateNewListOfPrices($acc483498399, $list83498399[4])
333+ if (($size83498399 == 5))
334+ then $acc583498399
334335 else {
335- let $acc682668317 = generateNewListOfPrices($acc582668317, $list82668317[5])
336- if (($size82668317 == 6))
337- then $acc682668317
338- else {
339- let $acc782668317 = generateNewListOfPrices($acc682668317, $list82668317[6])
340- if (($size82668317 == 7))
341- then $acc782668317
342- else {
343- let $acc882668317 = generateNewListOfPrices($acc782668317, $list82668317[7])
344- if (($size82668317 == 8))
345- then $acc882668317
346- else {
347- let $acc982668317 = generateNewListOfPrices($acc882668317, $list82668317[8])
348- if (($size82668317 == 9))
349- then $acc982668317
350- else {
351- let $acc1082668317 = generateNewListOfPrices($acc982668317, $list82668317[9])
352- if (($size82668317 == 10))
353- then $acc1082668317
354- else {
355- let $acc1182668317 = generateNewListOfPrices($acc1082668317, $list82668317[10])
356- if (($size82668317 == 11))
357- then $acc1182668317
358- else {
359- let $acc1282668317 = generateNewListOfPrices($acc1182668317, $list82668317[11])
360- if (($size82668317 == 12))
361- then $acc1282668317
362- else {
363- let $acc1382668317 = generateNewListOfPrices($acc1282668317, $list82668317[12])
364- if (($size82668317 == 13))
365- then $acc1382668317
366- else {
367- let $acc1482668317 = generateNewListOfPrices($acc1382668317, $list82668317[13])
368- if (($size82668317 == 14))
369- then $acc1482668317
370- else {
371- let $acc1582668317 = generateNewListOfPrices($acc1482668317, $list82668317[14])
372- throw("List size exceed 14")
373- }
374- }
375- }
376- }
377- }
378- }
379- }
380- }
381- }
336+ let $acc683498399 = generateNewListOfPrices($acc583498399, $list83498399[5])
337+ throw("List size exceed 5")
382338 }
383339 }
384340 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lotteryamount = "_amount"
55
66 let lotteryprobability = "_probability"
77
88 let lotteryprobabilitydecimal = "_probability_decimal"
99
1010 let lotteryPrice = "_price"
1111
1212 let lotteryPrices = "_lottery_prices"
1313
1414 let lotteryAssetId = "_lottery_asset_id"
1515
1616 let countOfPrices = "_count_prices"
1717
1818 let lastHashRandomNumber = "last_spin_random_hash"
1919
2020 let lastTokenRandomHash = "last_token_random_hash"
2121
2222 let dAppAddres = "3BKFQLeo5ExZ5Y1pt9Ftzsno7aRwzD96zoYVHP3tcLgV"
2323
2424 let allowSizeLottery = 14
2525
2626 func randomizer (inv) = {
2727 let lastPlay = match getBinary(this, lastHashRandomNumber) {
2828 case s: ByteVector =>
2929 s
3030 case _: Unit =>
3131 base58'2ee4oFDYriWJ9EMeR'
3232 case _ =>
3333 throw("Match error")
3434 }
3535 let rand = (((((lastPlay + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
3636 sha256(rand)
3737 }
3838
3939
4040 func generatorRandomHash (inv) = {
4141 let lastHashForToken = match getBinary(this, lastTokenRandomHash) {
4242 case s: ByteVector =>
4343 s
4444 case _: Unit =>
4545 base58'4dD7osCQzvuXJdTiGfKvTwnKT'
4646 case _ =>
4747 throw("Match error")
4848 }
4949 let rand = (((((lastHashForToken + inv.transactionId) + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
5050 sha256(rand)
5151 }
5252
5353
5454 func getPriceArray () = {
5555 let tempPrices = getStringValue(this, lotteryPrices)
5656 let trimPrices = take(tempPrices, (size(tempPrices) - 1))
5757 let newArray = split(trimPrices, ",")
5858 newArray
5959 }
6060
6161
6262 func generateNewListOfPrices (token,val) = {
6363 let indexOfComma = indexOf(token, ",")
6464 if ((indexOfComma == unit))
6565 then (val + ",")
6666 else ((token + val) + ",")
6767 }
6868
6969
7070 func procedLottery (win,token) = if (isDefined(token))
7171 then {
7272 let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
7373 let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
7474 let probabilityValue = (tokenProbabilityDecimal * 1000)
75- let hash = (tokenProbabilityDecimal % probabilityValue)
75+ let probCompare = (tokenProbabilityDecimal % probabilityValue)
7676 let sizeOfWin = size(win)
7777 if ((sizeOfWin == 1))
7878 then {
79- let randomNumber = win[0]
80- if ((probabilityValue > hash))
79+ let randomNumber = win[1]
80+ let comp = toInt(fromBase64String(randomNumber))
81+ if ((probCompare > comp))
8182 then {
8283 let newList = token :: win
8384 newList
8485 }
8586 else win
8687 }
8788 else win
8889 }
8990 else win
9091
9192
9293 @Callable(i)
9394 func updateprobability (probability,amount,poolprice,probDecimal,assetId) = {
9495 let token = toBase64String(generatorRandomHash(i))
9596 let paymentIsDefined = if (!(isDefined(i.payment)))
9697 then false
9798 else true
9899 let lotteryAssetTN = if ((assetId == ""))
99100 then true
100101 else false
101102 let totalRequiredAmount = (amount * poolprice)
102103 if ((paymentIsDefined == true))
103104 then {
104105 let payment = extract(i.payment)
105106 let paymentAssetId = match payment.assetId {
106107 case a: ByteVector =>
107108 toBase64String(a)
108109 case _: Unit =>
109110 ""
110111 case _ =>
111112 throw("Match error")
112113 }
113114 let paymentAmount = payment.amount
114115 if ((paymentAssetId != assetId))
115116 then throw("Asset Id not matching with Payment Asset Id")
116117 else if ((totalRequiredAmount > paymentAmount))
117118 then throw("Not enough Asset Amount")
118119 else {
119120 let tempValue = match getString(this, lotteryPrices) {
120121 case a: String =>
121122 a
122123 case _: Unit =>
123124 ""
124125 case _ =>
125126 throw("Match error")
126127 }
127128 let containKey = indexOf(tempValue, token)
128129 let storedTokensValues = match containKey {
129130 case _: Unit =>
130131 ((tempValue + token) + ",")
131132 case x: Int =>
132133 throw("Token is duplicated")
133134 case _ =>
134135 throw("Match error")
135136 }
136137 let countTokens = match getInteger(this, countOfPrices) {
137138 case a: Int =>
138139 a
139140 case _: Unit =>
140141 0
141142 case _ =>
142143 throw("Match error")
143144 }
144145 if ((allowSizeLottery > countTokens))
145146 then {
146147 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)])
147148 ScriptResult(updateLotteryPool, TransferSet(nil))
148149 }
149150 else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery)))
150151 }
151152 }
152153 else {
153154 let tnBalance = if (lotteryAssetTN)
154155 then wavesBalance(this)
155156 else assetBalance(this, fromBase64String(assetId))
156157 if ((totalRequiredAmount > tnBalance))
157158 then throw("Not enough Asset Amount")
158159 else {
159160 let tempValue = match getString(this, lotteryPrices) {
160161 case a: String =>
161162 a
162163 case _: Unit =>
163164 ""
164165 case _ =>
165166 throw("Match error")
166167 }
167168 let containKey = indexOf(tempValue, token)
168169 let storedTokensValues = match containKey {
169170 case _: Unit =>
170171 ((tempValue + token) + ",")
171172 case x: Int =>
172173 throw("Token is duplicated")
173174 case _ =>
174175 throw("Match error")
175176 }
176177 let countTokens = match getInteger(this, countOfPrices) {
177178 case a: Int =>
178179 a
179180 case _: Unit =>
180181 0
181182 case _ =>
182183 throw("Match error")
183184 }
184185 if ((allowSizeLottery >= countTokens))
185186 then {
186187 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)])
187188 ScriptResult(updateLotteryPool, TransferSet(nil))
188189 }
189190 else throw("Lottery prices has reached maximum 15")
190191 }
191192 }
192193 }
193194
194195
195196
196197 @Callable(i)
197198 func startlotto () = {
198199 let currentKey = toBase58String(i.caller.bytes)
199200 let randhash = randomizer(i)
200201 let countTokens = match getInteger(this, countOfPrices) {
201202 case a: Int =>
202203 a
203204 case _: Unit =>
204205 0
205206 case _ =>
206207 throw("Match error")
207208 }
208209 let priceList = getPriceArray()
209210 let randNumber = toInt(randhash)
210211 let winningToken = {
211- let $list73937431 = priceList
212- let $size73937431 = size($list73937431)
213- let $acc073937431 = nil
214- if (($size73937431 == 0))
215- then $acc073937431
212+ let $list74697528 = priceList
213+ let $size74697528 = size($list74697528)
214+ let $acc074697528 = [toString(randNumber)]
215+ if (($size74697528 == 0))
216+ then $acc074697528
216217 else {
217- let $acc173937431 = procedLottery($acc073937431, $list73937431[0])
218- if (($size73937431 == 1))
219- then $acc173937431
218+ let $acc174697528 = procedLottery($acc074697528, $list74697528[0])
219+ if (($size74697528 == 1))
220+ then $acc174697528
220221 else {
221- let $acc273937431 = procedLottery($acc173937431, $list73937431[1])
222- if (($size73937431 == 2))
223- then $acc273937431
222+ let $acc274697528 = procedLottery($acc174697528, $list74697528[1])
223+ if (($size74697528 == 2))
224+ then $acc274697528
224225 else {
225- let $acc373937431 = procedLottery($acc273937431, $list73937431[2])
226- if (($size73937431 == 3))
227- then $acc373937431
226+ let $acc374697528 = procedLottery($acc274697528, $list74697528[2])
227+ if (($size74697528 == 3))
228+ then $acc374697528
228229 else {
229- let $acc473937431 = procedLottery($acc373937431, $list73937431[3])
230- if (($size73937431 == 4))
231- then $acc473937431
230+ let $acc474697528 = procedLottery($acc374697528, $list74697528[3])
231+ if (($size74697528 == 4))
232+ then $acc474697528
232233 else {
233- let $acc573937431 = procedLottery($acc473937431, $list73937431[4])
234- if (($size73937431 == 5))
235- then $acc573937431
234+ let $acc574697528 = procedLottery($acc474697528, $list74697528[4])
235+ if (($size74697528 == 5))
236+ then $acc574697528
236237 else {
237- let $acc673937431 = procedLottery($acc573937431, $list73937431[5])
238- if (($size73937431 == 6))
239- then $acc673937431
238+ let $acc674697528 = procedLottery($acc574697528, $list74697528[5])
239+ if (($size74697528 == 6))
240+ then $acc674697528
240241 else {
241- let $acc773937431 = procedLottery($acc673937431, $list73937431[6])
242- if (($size73937431 == 7))
243- then $acc773937431
242+ let $acc774697528 = procedLottery($acc674697528, $list74697528[6])
243+ if (($size74697528 == 7))
244+ then $acc774697528
244245 else {
245- let $acc873937431 = procedLottery($acc773937431, $list73937431[7])
246- if (($size73937431 == 8))
247- then $acc873937431
246+ let $acc874697528 = procedLottery($acc774697528, $list74697528[7])
247+ if (($size74697528 == 8))
248+ then $acc874697528
248249 else {
249- let $acc973937431 = procedLottery($acc873937431, $list73937431[8])
250- if (($size73937431 == 9))
251- then $acc973937431
250+ let $acc974697528 = procedLottery($acc874697528, $list74697528[8])
251+ if (($size74697528 == 9))
252+ then $acc974697528
252253 else {
253- let $acc1073937431 = procedLottery($acc973937431, $list73937431[9])
254- if (($size73937431 == 10))
255- then $acc1073937431
254+ let $acc1074697528 = procedLottery($acc974697528, $list74697528[9])
255+ if (($size74697528 == 10))
256+ then $acc1074697528
256257 else {
257- let $acc1173937431 = procedLottery($acc1073937431, $list73937431[10])
258- if (($size73937431 == 11))
259- then $acc1173937431
258+ let $acc1174697528 = procedLottery($acc1074697528, $list74697528[10])
259+ if (($size74697528 == 11))
260+ then $acc1174697528
260261 else {
261- let $acc1273937431 = procedLottery($acc1173937431, $list73937431[11])
262- if (($size73937431 == 12))
263- then $acc1273937431
262+ let $acc1274697528 = procedLottery($acc1174697528, $list74697528[11])
263+ if (($size74697528 == 12))
264+ then $acc1274697528
264265 else {
265- let $acc1373937431 = procedLottery($acc1273937431, $list73937431[12])
266- if (($size73937431 == 13))
267- then $acc1373937431
266+ let $acc1374697528 = procedLottery($acc1274697528, $list74697528[12])
267+ if (($size74697528 == 13))
268+ then $acc1374697528
268269 else {
269- let $acc1473937431 = procedLottery($acc1373937431, $list73937431[13])
270- if (($size73937431 == 14))
271- then $acc1473937431
270+ let $acc1474697528 = procedLottery($acc1374697528, $list74697528[13])
271+ if (($size74697528 == 14))
272+ then $acc1474697528
272273 else {
273- let $acc1573937431 = procedLottery($acc1473937431, $list73937431[14])
274+ let $acc1574697528 = procedLottery($acc1474697528, $list74697528[14])
274275 throw("List size exceed 14")
275276 }
276277 }
277278 }
278279 }
279280 }
280281 }
281282 }
282283 }
283284 }
284285 }
285286 }
286287 }
287288 }
288289 }
289290 }
290291 }
291292 let sizeOfWinPrices = size(winningToken)
292293 if ((sizeOfWinPrices == 0))
293294 then {
294295 let writeSets = WriteSet(nil)
295296 ScriptResult(writeSets, TransferSet(nil))
296297 }
297298 else {
298299 let token = winningToken[1]
299300 let currentAmount = getIntegerValue(this, (token + lotteryamount))
300301 if ((currentAmount == 0))
301302 then throw("Amount exceeded")
302303 else {
303- let actualAmount = (currentAmount - 1)
304+ let actualAmount = -(1)
304305 let tokenPrice = getIntegerValue(this, (token + lotteryPrice))
305306 let tokenAssetId = getStringValue(this, (token + lotteryAssetId))
306307 if ((actualAmount == 0))
307308 then {
308309 let storedTokensValues = {
309- let $list82668317 = priceList
310- let $size82668317 = size($list82668317)
311- let $acc082668317 = token
312- if (($size82668317 == 0))
313- then $acc082668317
310+ let $list83498399 = priceList
311+ let $size83498399 = size($list83498399)
312+ let $acc083498399 = token
313+ if (($size83498399 == 0))
314+ then $acc083498399
314315 else {
315- let $acc182668317 = generateNewListOfPrices($acc082668317, $list82668317[0])
316- if (($size82668317 == 1))
317- then $acc182668317
316+ let $acc183498399 = generateNewListOfPrices($acc083498399, $list83498399[0])
317+ if (($size83498399 == 1))
318+ then $acc183498399
318319 else {
319- let $acc282668317 = generateNewListOfPrices($acc182668317, $list82668317[1])
320- if (($size82668317 == 2))
321- then $acc282668317
320+ let $acc283498399 = generateNewListOfPrices($acc183498399, $list83498399[1])
321+ if (($size83498399 == 2))
322+ then $acc283498399
322323 else {
323- let $acc382668317 = generateNewListOfPrices($acc282668317, $list82668317[2])
324- if (($size82668317 == 3))
325- then $acc382668317
324+ let $acc383498399 = generateNewListOfPrices($acc283498399, $list83498399[2])
325+ if (($size83498399 == 3))
326+ then $acc383498399
326327 else {
327- let $acc482668317 = generateNewListOfPrices($acc382668317, $list82668317[3])
328- if (($size82668317 == 4))
329- then $acc482668317
328+ let $acc483498399 = generateNewListOfPrices($acc383498399, $list83498399[3])
329+ if (($size83498399 == 4))
330+ then $acc483498399
330331 else {
331- let $acc582668317 = generateNewListOfPrices($acc482668317, $list82668317[4])
332- if (($size82668317 == 5))
333- then $acc582668317
332+ let $acc583498399 = generateNewListOfPrices($acc483498399, $list83498399[4])
333+ if (($size83498399 == 5))
334+ then $acc583498399
334335 else {
335- let $acc682668317 = generateNewListOfPrices($acc582668317, $list82668317[5])
336- if (($size82668317 == 6))
337- then $acc682668317
338- else {
339- let $acc782668317 = generateNewListOfPrices($acc682668317, $list82668317[6])
340- if (($size82668317 == 7))
341- then $acc782668317
342- else {
343- let $acc882668317 = generateNewListOfPrices($acc782668317, $list82668317[7])
344- if (($size82668317 == 8))
345- then $acc882668317
346- else {
347- let $acc982668317 = generateNewListOfPrices($acc882668317, $list82668317[8])
348- if (($size82668317 == 9))
349- then $acc982668317
350- else {
351- let $acc1082668317 = generateNewListOfPrices($acc982668317, $list82668317[9])
352- if (($size82668317 == 10))
353- then $acc1082668317
354- else {
355- let $acc1182668317 = generateNewListOfPrices($acc1082668317, $list82668317[10])
356- if (($size82668317 == 11))
357- then $acc1182668317
358- else {
359- let $acc1282668317 = generateNewListOfPrices($acc1182668317, $list82668317[11])
360- if (($size82668317 == 12))
361- then $acc1282668317
362- else {
363- let $acc1382668317 = generateNewListOfPrices($acc1282668317, $list82668317[12])
364- if (($size82668317 == 13))
365- then $acc1382668317
366- else {
367- let $acc1482668317 = generateNewListOfPrices($acc1382668317, $list82668317[13])
368- if (($size82668317 == 14))
369- then $acc1482668317
370- else {
371- let $acc1582668317 = generateNewListOfPrices($acc1482668317, $list82668317[14])
372- throw("List size exceed 14")
373- }
374- }
375- }
376- }
377- }
378- }
379- }
380- }
381- }
336+ let $acc683498399 = generateNewListOfPrices($acc583498399, $list83498399[5])
337+ throw("List size exceed 5")
382338 }
383339 }
384340 }
385341 }
386342 }
387343 }
388344 }
389345 let writeSets = WriteSet([DataEntry(("winning_token_" + token), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry(countOfPrices, (countTokens - 1)), DataEntry(lotteryPrices, storedTokensValues), DataEntry(lastHashRandomNumber, randNumber)])
390346 if ((tokenAssetId == ""))
391347 then {
392348 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
393349 ScriptResult(writeSets, winTransfer)
394350 }
395351 else {
396352 let actualAssetId = fromBase64String(tokenAssetId)
397353 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, actualAssetId)])
398354 ScriptResult(writeSets, winTransfer)
399355 }
400356 }
401357 else {
402358 let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber)])
403359 if ((tokenAssetId == ""))
404360 then {
405361 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
406362 ScriptResult(writeSets, winTransfer)
407363 }
408364 else {
409365 let actualAssetId = fromBase64String(tokenAssetId)
410366 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, actualAssetId)])
411367 ScriptResult(writeSets, winTransfer)
412368 }
413369 }
414370 }
415371 }
416372 }
417373
418374
419375 @Verifier(tx)
420376 func verify () = match tx {
421377 case _: DataTransaction =>
422378 true
423379 case _: SetScriptTransaction =>
424380 true
425381 case _ =>
426382 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
427383 }
428384

github/deemru/w8io/169f3d6 
149.91 ms