tx · GHweLyFPFfDCEsLBtc9veysBntj6MHWdHfYiD89Ms38c

3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1:  -0.01400000 Waves

2021.02.09 11:15 [1390389] smart account 3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1 > SELF 0.00000000 Waves

{ "type": 13, "id": "GHweLyFPFfDCEsLBtc9veysBntj6MHWdHfYiD89Ms38c", "fee": 1400000, "feeAssetId": null, "timestamp": 1612858620637, "version": 2, "chainId": 84, "sender": "3N54JoRXk5QW3xx9xDpxUpUkoDzriibARu1", "senderPublicKey": "4ZSmQKKSEVi7FUZVartg8PJgDtovcTaKW3HWpdXKkjx2", "proofs": [ "2qPSEK7W8oeS1Vdty7zBtTD6E4MmoGLhqzS8uFZR51EYzdK3DBrKkGrhdsPpWrnTS8nZz4ikdNXQcat6icZ3d537" ], "script": "base64:AAIDAAAAAAAAAA0IARIHCgUBAQEBCBIAAAAAEAAAAAANbG90dGVyeWFtb3VudAIAAAAHX2Ftb3VudAAAAAASbG90dGVyeXByb2JhYmlsaXR5AgAAAAxfcHJvYmFiaWxpdHkAAAAAGWxvdHRlcnlwcm9iYWJpbGl0eWRlY2ltYWwCAAAAFF9wcm9iYWJpbGl0eV9kZWNpbWFsAAAAAAxsb3R0ZXJ5UHJpY2UCAAAABl9wcmljZQAAAAANbG90dGVyeVByaWNlcwIAAAAPX2xvdHRlcnlfcHJpY2VzAAAAAA5sb3R0ZXJ5QXNzZXRJZAIAAAARX2xvdHRlcnlfYXNzZXRfaWQAAAAADWNvdW50T2ZQcmljZXMCAAAADV9jb3VudF9wcmljZXMAAAAAFGxhc3RIYXNoUmFuZG9tTnVtYmVyAgAAABVsYXN0X3NwaW5fcmFuZG9tX2hhc2gAAAAAE2xhc3RUb2tlblJhbmRvbUhhc2gCAAAAFmxhc3RfdG9rZW5fcmFuZG9tX2hhc2gAAAAACmRBcHBBZGRyZXMCAAAALDNCS0ZRTGVvNUV4WjVZMXB0OUZ0enNubzdhUnd6RD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ABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleT4ucgk=", "height": 1390389, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CMRrFNaNYe52nc3yrqTYwramWxHuv8EpsSqmRkgiUr4k Next: HHnnA3EqUkGzpjv35mmtSKadGNjwfkDGTvoYC6nZroya Diff:
OldNewDifferences
6767 }
6868
6969
70-func procedLottery (win,token) = {
71- let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
72- let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
73- let probabilityValue = (tokenProbabilityDecimal * 1000)
74- let hash = (tokenProbabilityDecimal % probabilityValue)
75- let sizeOfWin = size(win)
76- if ((sizeOfWin == 1))
77- then {
78- let randomNumber = win[0]
79- if ((probabilityValue > hash))
80- then {
81- let newList = token :: win
82- newList
83- }
84- else win
85- }
86- else win
87- }
70+func procedLottery (win,token) = if (isDefined(token))
71+ then {
72+ let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
73+ let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
74+ let probabilityValue = (tokenProbabilityDecimal * 1000)
75+ let hash = (tokenProbabilityDecimal % probabilityValue)
76+ let sizeOfWin = size(win)
77+ if ((sizeOfWin == 1))
78+ then {
79+ let randomNumber = win[0]
80+ if ((probabilityValue > hash))
81+ then {
82+ let newList = token :: win
83+ newList
84+ }
85+ else win
86+ }
87+ else win
88+ }
89+ else win
8890
8991
9092 @Callable(i)
206208 let priceList = getPriceArray()
207209 let randNumber = toInt(randhash)
208210 let winningToken = {
209- let $list72507288 = priceList
210- let $size72507288 = size($list72507288)
211- let $acc072507288 = nil
212- if (($size72507288 == 0))
213- then $acc072507288
211+ let $list73937431 = priceList
212+ let $size73937431 = size($list73937431)
213+ let $acc073937431 = nil
214+ if (($size73937431 == 0))
215+ then $acc073937431
214216 else {
215- let $acc172507288 = procedLottery($acc072507288, $list72507288[0])
216- if (($size72507288 == 1))
217- then $acc172507288
217+ let $acc173937431 = procedLottery($acc073937431, $list73937431[0])
218+ if (($size73937431 == 1))
219+ then $acc173937431
218220 else {
219- let $acc272507288 = procedLottery($acc172507288, $list72507288[1])
220- if (($size72507288 == 2))
221- then $acc272507288
221+ let $acc273937431 = procedLottery($acc173937431, $list73937431[1])
222+ if (($size73937431 == 2))
223+ then $acc273937431
222224 else {
223- let $acc372507288 = procedLottery($acc272507288, $list72507288[2])
224- if (($size72507288 == 3))
225- then $acc372507288
225+ let $acc373937431 = procedLottery($acc273937431, $list73937431[2])
226+ if (($size73937431 == 3))
227+ then $acc373937431
226228 else {
227- let $acc472507288 = procedLottery($acc372507288, $list72507288[3])
228- if (($size72507288 == 4))
229- then $acc472507288
229+ let $acc473937431 = procedLottery($acc373937431, $list73937431[3])
230+ if (($size73937431 == 4))
231+ then $acc473937431
230232 else {
231- let $acc572507288 = procedLottery($acc472507288, $list72507288[4])
232- if (($size72507288 == 5))
233- then $acc572507288
233+ let $acc573937431 = procedLottery($acc473937431, $list73937431[4])
234+ if (($size73937431 == 5))
235+ then $acc573937431
234236 else {
235- let $acc672507288 = procedLottery($acc572507288, $list72507288[5])
236- if (($size72507288 == 6))
237- then $acc672507288
237+ let $acc673937431 = procedLottery($acc573937431, $list73937431[5])
238+ if (($size73937431 == 6))
239+ then $acc673937431
238240 else {
239- let $acc772507288 = procedLottery($acc672507288, $list72507288[6])
240- if (($size72507288 == 7))
241- then $acc772507288
241+ let $acc773937431 = procedLottery($acc673937431, $list73937431[6])
242+ if (($size73937431 == 7))
243+ then $acc773937431
242244 else {
243- let $acc872507288 = procedLottery($acc772507288, $list72507288[7])
244- if (($size72507288 == 8))
245- then $acc872507288
245+ let $acc873937431 = procedLottery($acc773937431, $list73937431[7])
246+ if (($size73937431 == 8))
247+ then $acc873937431
246248 else {
247- let $acc972507288 = procedLottery($acc872507288, $list72507288[8])
248- if (($size72507288 == 9))
249- then $acc972507288
249+ let $acc973937431 = procedLottery($acc873937431, $list73937431[8])
250+ if (($size73937431 == 9))
251+ then $acc973937431
250252 else {
251- let $acc1072507288 = procedLottery($acc972507288, $list72507288[9])
252- if (($size72507288 == 10))
253- then $acc1072507288
253+ let $acc1073937431 = procedLottery($acc973937431, $list73937431[9])
254+ if (($size73937431 == 10))
255+ then $acc1073937431
254256 else {
255- let $acc1172507288 = procedLottery($acc1072507288, $list72507288[10])
256- if (($size72507288 == 11))
257- then $acc1172507288
257+ let $acc1173937431 = procedLottery($acc1073937431, $list73937431[10])
258+ if (($size73937431 == 11))
259+ then $acc1173937431
258260 else {
259- let $acc1272507288 = procedLottery($acc1172507288, $list72507288[11])
260- if (($size72507288 == 12))
261- then $acc1272507288
261+ let $acc1273937431 = procedLottery($acc1173937431, $list73937431[11])
262+ if (($size73937431 == 12))
263+ then $acc1273937431
262264 else {
263- let $acc1372507288 = procedLottery($acc1272507288, $list72507288[12])
264- if (($size72507288 == 13))
265- then $acc1372507288
265+ let $acc1373937431 = procedLottery($acc1273937431, $list73937431[12])
266+ if (($size73937431 == 13))
267+ then $acc1373937431
266268 else {
267- let $acc1472507288 = procedLottery($acc1372507288, $list72507288[13])
268- if (($size72507288 == 14))
269- then $acc1472507288
269+ let $acc1473937431 = procedLottery($acc1373937431, $list73937431[13])
270+ if (($size73937431 == 14))
271+ then $acc1473937431
270272 else {
271- let $acc1572507288 = procedLottery($acc1472507288, $list72507288[14])
273+ let $acc1573937431 = procedLottery($acc1473937431, $list73937431[14])
272274 throw("List size exceed 14")
273275 }
274276 }
304306 if ((actualAmount == 0))
305307 then {
306308 let storedTokensValues = {
307- let $list81238174 = priceList
308- let $size81238174 = size($list81238174)
309- let $acc081238174 = token
310- if (($size81238174 == 0))
311- then $acc081238174
309+ let $list82668317 = priceList
310+ let $size82668317 = size($list82668317)
311+ let $acc082668317 = token
312+ if (($size82668317 == 0))
313+ then $acc082668317
312314 else {
313- let $acc181238174 = generateNewListOfPrices($acc081238174, $list81238174[0])
314- if (($size81238174 == 1))
315- then $acc181238174
315+ let $acc182668317 = generateNewListOfPrices($acc082668317, $list82668317[0])
316+ if (($size82668317 == 1))
317+ then $acc182668317
316318 else {
317- let $acc281238174 = generateNewListOfPrices($acc181238174, $list81238174[1])
318- if (($size81238174 == 2))
319- then $acc281238174
319+ let $acc282668317 = generateNewListOfPrices($acc182668317, $list82668317[1])
320+ if (($size82668317 == 2))
321+ then $acc282668317
320322 else {
321- let $acc381238174 = generateNewListOfPrices($acc281238174, $list81238174[2])
322- if (($size81238174 == 3))
323- then $acc381238174
323+ let $acc382668317 = generateNewListOfPrices($acc282668317, $list82668317[2])
324+ if (($size82668317 == 3))
325+ then $acc382668317
324326 else {
325- let $acc481238174 = generateNewListOfPrices($acc381238174, $list81238174[3])
326- if (($size81238174 == 4))
327- then $acc481238174
327+ let $acc482668317 = generateNewListOfPrices($acc382668317, $list82668317[3])
328+ if (($size82668317 == 4))
329+ then $acc482668317
328330 else {
329- let $acc581238174 = generateNewListOfPrices($acc481238174, $list81238174[4])
330- if (($size81238174 == 5))
331- then $acc581238174
331+ let $acc582668317 = generateNewListOfPrices($acc482668317, $list82668317[4])
332+ if (($size82668317 == 5))
333+ then $acc582668317
332334 else {
333- let $acc681238174 = generateNewListOfPrices($acc581238174, $list81238174[5])
334- if (($size81238174 == 6))
335- then $acc681238174
335+ let $acc682668317 = generateNewListOfPrices($acc582668317, $list82668317[5])
336+ if (($size82668317 == 6))
337+ then $acc682668317
336338 else {
337- let $acc781238174 = generateNewListOfPrices($acc681238174, $list81238174[6])
338- if (($size81238174 == 7))
339- then $acc781238174
339+ let $acc782668317 = generateNewListOfPrices($acc682668317, $list82668317[6])
340+ if (($size82668317 == 7))
341+ then $acc782668317
340342 else {
341- let $acc881238174 = generateNewListOfPrices($acc781238174, $list81238174[7])
342- if (($size81238174 == 8))
343- then $acc881238174
343+ let $acc882668317 = generateNewListOfPrices($acc782668317, $list82668317[7])
344+ if (($size82668317 == 8))
345+ then $acc882668317
344346 else {
345- let $acc981238174 = generateNewListOfPrices($acc881238174, $list81238174[8])
346- if (($size81238174 == 9))
347- then $acc981238174
347+ let $acc982668317 = generateNewListOfPrices($acc882668317, $list82668317[8])
348+ if (($size82668317 == 9))
349+ then $acc982668317
348350 else {
349- let $acc1081238174 = generateNewListOfPrices($acc981238174, $list81238174[9])
350- if (($size81238174 == 10))
351- then $acc1081238174
351+ let $acc1082668317 = generateNewListOfPrices($acc982668317, $list82668317[9])
352+ if (($size82668317 == 10))
353+ then $acc1082668317
352354 else {
353- let $acc1181238174 = generateNewListOfPrices($acc1081238174, $list81238174[10])
354- if (($size81238174 == 11))
355- then $acc1181238174
355+ let $acc1182668317 = generateNewListOfPrices($acc1082668317, $list82668317[10])
356+ if (($size82668317 == 11))
357+ then $acc1182668317
356358 else {
357- let $acc1281238174 = generateNewListOfPrices($acc1181238174, $list81238174[11])
358- if (($size81238174 == 12))
359- then $acc1281238174
359+ let $acc1282668317 = generateNewListOfPrices($acc1182668317, $list82668317[11])
360+ if (($size82668317 == 12))
361+ then $acc1282668317
360362 else {
361- let $acc1381238174 = generateNewListOfPrices($acc1281238174, $list81238174[12])
362- if (($size81238174 == 13))
363- then $acc1381238174
363+ let $acc1382668317 = generateNewListOfPrices($acc1282668317, $list82668317[12])
364+ if (($size82668317 == 13))
365+ then $acc1382668317
364366 else {
365- let $acc1481238174 = generateNewListOfPrices($acc1381238174, $list81238174[13])
366- if (($size81238174 == 14))
367- then $acc1481238174
367+ let $acc1482668317 = generateNewListOfPrices($acc1382668317, $list82668317[13])
368+ if (($size82668317 == 14))
369+ then $acc1482668317
368370 else {
369- let $acc1581238174 = generateNewListOfPrices($acc1481238174, $list81238174[14])
371+ let $acc1582668317 = generateNewListOfPrices($acc1482668317, $list82668317[14])
370372 throw("List size exceed 14")
371373 }
372374 }
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
70-func procedLottery (win,token) = {
71- let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
72- let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
73- let probabilityValue = (tokenProbabilityDecimal * 1000)
74- let hash = (tokenProbabilityDecimal % probabilityValue)
75- let sizeOfWin = size(win)
76- if ((sizeOfWin == 1))
77- then {
78- let randomNumber = win[0]
79- if ((probabilityValue > hash))
80- then {
81- let newList = token :: win
82- newList
83- }
84- else win
85- }
86- else win
87- }
70+func procedLottery (win,token) = if (isDefined(token))
71+ then {
72+ let tokenProbability = getIntegerValue(this, (token + lotteryprobability))
73+ let tokenProbabilityDecimal = getIntegerValue(this, (token + lotteryprobabilitydecimal))
74+ let probabilityValue = (tokenProbabilityDecimal * 1000)
75+ let hash = (tokenProbabilityDecimal % probabilityValue)
76+ let sizeOfWin = size(win)
77+ if ((sizeOfWin == 1))
78+ then {
79+ let randomNumber = win[0]
80+ if ((probabilityValue > hash))
81+ then {
82+ let newList = token :: win
83+ newList
84+ }
85+ else win
86+ }
87+ else win
88+ }
89+ else win
8890
8991
9092 @Callable(i)
9193 func updateprobability (probability,amount,poolprice,probDecimal,assetId) = {
9294 let token = toBase64String(generatorRandomHash(i))
9395 let paymentIsDefined = if (!(isDefined(i.payment)))
9496 then false
9597 else true
9698 let lotteryAssetTN = if ((assetId == ""))
9799 then true
98100 else false
99101 let totalRequiredAmount = (amount * poolprice)
100102 if ((paymentIsDefined == true))
101103 then {
102104 let payment = extract(i.payment)
103105 let paymentAssetId = match payment.assetId {
104106 case a: ByteVector =>
105107 toBase64String(a)
106108 case _: Unit =>
107109 ""
108110 case _ =>
109111 throw("Match error")
110112 }
111113 let paymentAmount = payment.amount
112114 if ((paymentAssetId != assetId))
113115 then throw("Asset Id not matching with Payment Asset Id")
114116 else if ((totalRequiredAmount > paymentAmount))
115117 then throw("Not enough Asset Amount")
116118 else {
117119 let tempValue = match getString(this, lotteryPrices) {
118120 case a: String =>
119121 a
120122 case _: Unit =>
121123 ""
122124 case _ =>
123125 throw("Match error")
124126 }
125127 let containKey = indexOf(tempValue, token)
126128 let storedTokensValues = match containKey {
127129 case _: Unit =>
128130 ((tempValue + token) + ",")
129131 case x: Int =>
130132 throw("Token is duplicated")
131133 case _ =>
132134 throw("Match error")
133135 }
134136 let countTokens = match getInteger(this, countOfPrices) {
135137 case a: Int =>
136138 a
137139 case _: Unit =>
138140 0
139141 case _ =>
140142 throw("Match error")
141143 }
142144 if ((allowSizeLottery > countTokens))
143145 then {
144146 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)])
145147 ScriptResult(updateLotteryPool, TransferSet(nil))
146148 }
147149 else throw(("Lottery prices has reached maximum " + toString(allowSizeLottery)))
148150 }
149151 }
150152 else {
151153 let tnBalance = if (lotteryAssetTN)
152154 then wavesBalance(this)
153155 else assetBalance(this, fromBase64String(assetId))
154156 if ((totalRequiredAmount > tnBalance))
155157 then throw("Not enough Asset Amount")
156158 else {
157159 let tempValue = match getString(this, lotteryPrices) {
158160 case a: String =>
159161 a
160162 case _: Unit =>
161163 ""
162164 case _ =>
163165 throw("Match error")
164166 }
165167 let containKey = indexOf(tempValue, token)
166168 let storedTokensValues = match containKey {
167169 case _: Unit =>
168170 ((tempValue + token) + ",")
169171 case x: Int =>
170172 throw("Token is duplicated")
171173 case _ =>
172174 throw("Match error")
173175 }
174176 let countTokens = match getInteger(this, countOfPrices) {
175177 case a: Int =>
176178 a
177179 case _: Unit =>
178180 0
179181 case _ =>
180182 throw("Match error")
181183 }
182184 if ((allowSizeLottery >= countTokens))
183185 then {
184186 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)])
185187 ScriptResult(updateLotteryPool, TransferSet(nil))
186188 }
187189 else throw("Lottery prices has reached maximum 15")
188190 }
189191 }
190192 }
191193
192194
193195
194196 @Callable(i)
195197 func startlotto () = {
196198 let currentKey = toBase58String(i.caller.bytes)
197199 let randhash = randomizer(i)
198200 let countTokens = match getInteger(this, countOfPrices) {
199201 case a: Int =>
200202 a
201203 case _: Unit =>
202204 0
203205 case _ =>
204206 throw("Match error")
205207 }
206208 let priceList = getPriceArray()
207209 let randNumber = toInt(randhash)
208210 let winningToken = {
209- let $list72507288 = priceList
210- let $size72507288 = size($list72507288)
211- let $acc072507288 = nil
212- if (($size72507288 == 0))
213- then $acc072507288
211+ let $list73937431 = priceList
212+ let $size73937431 = size($list73937431)
213+ let $acc073937431 = nil
214+ if (($size73937431 == 0))
215+ then $acc073937431
214216 else {
215- let $acc172507288 = procedLottery($acc072507288, $list72507288[0])
216- if (($size72507288 == 1))
217- then $acc172507288
217+ let $acc173937431 = procedLottery($acc073937431, $list73937431[0])
218+ if (($size73937431 == 1))
219+ then $acc173937431
218220 else {
219- let $acc272507288 = procedLottery($acc172507288, $list72507288[1])
220- if (($size72507288 == 2))
221- then $acc272507288
221+ let $acc273937431 = procedLottery($acc173937431, $list73937431[1])
222+ if (($size73937431 == 2))
223+ then $acc273937431
222224 else {
223- let $acc372507288 = procedLottery($acc272507288, $list72507288[2])
224- if (($size72507288 == 3))
225- then $acc372507288
225+ let $acc373937431 = procedLottery($acc273937431, $list73937431[2])
226+ if (($size73937431 == 3))
227+ then $acc373937431
226228 else {
227- let $acc472507288 = procedLottery($acc372507288, $list72507288[3])
228- if (($size72507288 == 4))
229- then $acc472507288
229+ let $acc473937431 = procedLottery($acc373937431, $list73937431[3])
230+ if (($size73937431 == 4))
231+ then $acc473937431
230232 else {
231- let $acc572507288 = procedLottery($acc472507288, $list72507288[4])
232- if (($size72507288 == 5))
233- then $acc572507288
233+ let $acc573937431 = procedLottery($acc473937431, $list73937431[4])
234+ if (($size73937431 == 5))
235+ then $acc573937431
234236 else {
235- let $acc672507288 = procedLottery($acc572507288, $list72507288[5])
236- if (($size72507288 == 6))
237- then $acc672507288
237+ let $acc673937431 = procedLottery($acc573937431, $list73937431[5])
238+ if (($size73937431 == 6))
239+ then $acc673937431
238240 else {
239- let $acc772507288 = procedLottery($acc672507288, $list72507288[6])
240- if (($size72507288 == 7))
241- then $acc772507288
241+ let $acc773937431 = procedLottery($acc673937431, $list73937431[6])
242+ if (($size73937431 == 7))
243+ then $acc773937431
242244 else {
243- let $acc872507288 = procedLottery($acc772507288, $list72507288[7])
244- if (($size72507288 == 8))
245- then $acc872507288
245+ let $acc873937431 = procedLottery($acc773937431, $list73937431[7])
246+ if (($size73937431 == 8))
247+ then $acc873937431
246248 else {
247- let $acc972507288 = procedLottery($acc872507288, $list72507288[8])
248- if (($size72507288 == 9))
249- then $acc972507288
249+ let $acc973937431 = procedLottery($acc873937431, $list73937431[8])
250+ if (($size73937431 == 9))
251+ then $acc973937431
250252 else {
251- let $acc1072507288 = procedLottery($acc972507288, $list72507288[9])
252- if (($size72507288 == 10))
253- then $acc1072507288
253+ let $acc1073937431 = procedLottery($acc973937431, $list73937431[9])
254+ if (($size73937431 == 10))
255+ then $acc1073937431
254256 else {
255- let $acc1172507288 = procedLottery($acc1072507288, $list72507288[10])
256- if (($size72507288 == 11))
257- then $acc1172507288
257+ let $acc1173937431 = procedLottery($acc1073937431, $list73937431[10])
258+ if (($size73937431 == 11))
259+ then $acc1173937431
258260 else {
259- let $acc1272507288 = procedLottery($acc1172507288, $list72507288[11])
260- if (($size72507288 == 12))
261- then $acc1272507288
261+ let $acc1273937431 = procedLottery($acc1173937431, $list73937431[11])
262+ if (($size73937431 == 12))
263+ then $acc1273937431
262264 else {
263- let $acc1372507288 = procedLottery($acc1272507288, $list72507288[12])
264- if (($size72507288 == 13))
265- then $acc1372507288
265+ let $acc1373937431 = procedLottery($acc1273937431, $list73937431[12])
266+ if (($size73937431 == 13))
267+ then $acc1373937431
266268 else {
267- let $acc1472507288 = procedLottery($acc1372507288, $list72507288[13])
268- if (($size72507288 == 14))
269- then $acc1472507288
269+ let $acc1473937431 = procedLottery($acc1373937431, $list73937431[13])
270+ if (($size73937431 == 14))
271+ then $acc1473937431
270272 else {
271- let $acc1572507288 = procedLottery($acc1472507288, $list72507288[14])
273+ let $acc1573937431 = procedLottery($acc1473937431, $list73937431[14])
272274 throw("List size exceed 14")
273275 }
274276 }
275277 }
276278 }
277279 }
278280 }
279281 }
280282 }
281283 }
282284 }
283285 }
284286 }
285287 }
286288 }
287289 }
288290 }
289291 let sizeOfWinPrices = size(winningToken)
290292 if ((sizeOfWinPrices == 0))
291293 then {
292294 let writeSets = WriteSet(nil)
293295 ScriptResult(writeSets, TransferSet(nil))
294296 }
295297 else {
296298 let token = winningToken[1]
297299 let currentAmount = getIntegerValue(this, (token + lotteryamount))
298300 if ((currentAmount == 0))
299301 then throw("Amount exceeded")
300302 else {
301303 let actualAmount = (currentAmount - 1)
302304 let tokenPrice = getIntegerValue(this, (token + lotteryPrice))
303305 let tokenAssetId = getStringValue(this, (token + lotteryAssetId))
304306 if ((actualAmount == 0))
305307 then {
306308 let storedTokensValues = {
307- let $list81238174 = priceList
308- let $size81238174 = size($list81238174)
309- let $acc081238174 = token
310- if (($size81238174 == 0))
311- then $acc081238174
309+ let $list82668317 = priceList
310+ let $size82668317 = size($list82668317)
311+ let $acc082668317 = token
312+ if (($size82668317 == 0))
313+ then $acc082668317
312314 else {
313- let $acc181238174 = generateNewListOfPrices($acc081238174, $list81238174[0])
314- if (($size81238174 == 1))
315- then $acc181238174
315+ let $acc182668317 = generateNewListOfPrices($acc082668317, $list82668317[0])
316+ if (($size82668317 == 1))
317+ then $acc182668317
316318 else {
317- let $acc281238174 = generateNewListOfPrices($acc181238174, $list81238174[1])
318- if (($size81238174 == 2))
319- then $acc281238174
319+ let $acc282668317 = generateNewListOfPrices($acc182668317, $list82668317[1])
320+ if (($size82668317 == 2))
321+ then $acc282668317
320322 else {
321- let $acc381238174 = generateNewListOfPrices($acc281238174, $list81238174[2])
322- if (($size81238174 == 3))
323- then $acc381238174
323+ let $acc382668317 = generateNewListOfPrices($acc282668317, $list82668317[2])
324+ if (($size82668317 == 3))
325+ then $acc382668317
324326 else {
325- let $acc481238174 = generateNewListOfPrices($acc381238174, $list81238174[3])
326- if (($size81238174 == 4))
327- then $acc481238174
327+ let $acc482668317 = generateNewListOfPrices($acc382668317, $list82668317[3])
328+ if (($size82668317 == 4))
329+ then $acc482668317
328330 else {
329- let $acc581238174 = generateNewListOfPrices($acc481238174, $list81238174[4])
330- if (($size81238174 == 5))
331- then $acc581238174
331+ let $acc582668317 = generateNewListOfPrices($acc482668317, $list82668317[4])
332+ if (($size82668317 == 5))
333+ then $acc582668317
332334 else {
333- let $acc681238174 = generateNewListOfPrices($acc581238174, $list81238174[5])
334- if (($size81238174 == 6))
335- then $acc681238174
335+ let $acc682668317 = generateNewListOfPrices($acc582668317, $list82668317[5])
336+ if (($size82668317 == 6))
337+ then $acc682668317
336338 else {
337- let $acc781238174 = generateNewListOfPrices($acc681238174, $list81238174[6])
338- if (($size81238174 == 7))
339- then $acc781238174
339+ let $acc782668317 = generateNewListOfPrices($acc682668317, $list82668317[6])
340+ if (($size82668317 == 7))
341+ then $acc782668317
340342 else {
341- let $acc881238174 = generateNewListOfPrices($acc781238174, $list81238174[7])
342- if (($size81238174 == 8))
343- then $acc881238174
343+ let $acc882668317 = generateNewListOfPrices($acc782668317, $list82668317[7])
344+ if (($size82668317 == 8))
345+ then $acc882668317
344346 else {
345- let $acc981238174 = generateNewListOfPrices($acc881238174, $list81238174[8])
346- if (($size81238174 == 9))
347- then $acc981238174
347+ let $acc982668317 = generateNewListOfPrices($acc882668317, $list82668317[8])
348+ if (($size82668317 == 9))
349+ then $acc982668317
348350 else {
349- let $acc1081238174 = generateNewListOfPrices($acc981238174, $list81238174[9])
350- if (($size81238174 == 10))
351- then $acc1081238174
351+ let $acc1082668317 = generateNewListOfPrices($acc982668317, $list82668317[9])
352+ if (($size82668317 == 10))
353+ then $acc1082668317
352354 else {
353- let $acc1181238174 = generateNewListOfPrices($acc1081238174, $list81238174[10])
354- if (($size81238174 == 11))
355- then $acc1181238174
355+ let $acc1182668317 = generateNewListOfPrices($acc1082668317, $list82668317[10])
356+ if (($size82668317 == 11))
357+ then $acc1182668317
356358 else {
357- let $acc1281238174 = generateNewListOfPrices($acc1181238174, $list81238174[11])
358- if (($size81238174 == 12))
359- then $acc1281238174
359+ let $acc1282668317 = generateNewListOfPrices($acc1182668317, $list82668317[11])
360+ if (($size82668317 == 12))
361+ then $acc1282668317
360362 else {
361- let $acc1381238174 = generateNewListOfPrices($acc1281238174, $list81238174[12])
362- if (($size81238174 == 13))
363- then $acc1381238174
363+ let $acc1382668317 = generateNewListOfPrices($acc1282668317, $list82668317[12])
364+ if (($size82668317 == 13))
365+ then $acc1382668317
364366 else {
365- let $acc1481238174 = generateNewListOfPrices($acc1381238174, $list81238174[13])
366- if (($size81238174 == 14))
367- then $acc1481238174
367+ let $acc1482668317 = generateNewListOfPrices($acc1382668317, $list82668317[13])
368+ if (($size82668317 == 14))
369+ then $acc1482668317
368370 else {
369- let $acc1581238174 = generateNewListOfPrices($acc1481238174, $list81238174[14])
371+ let $acc1582668317 = generateNewListOfPrices($acc1482668317, $list82668317[14])
370372 throw("List size exceed 14")
371373 }
372374 }
373375 }
374376 }
375377 }
376378 }
377379 }
378380 }
379381 }
380382 }
381383 }
382384 }
383385 }
384386 }
385387 }
386388 }
387389 let writeSets = WriteSet([DataEntry(("winning_token_" + token), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry(countOfPrices, (countTokens - 1)), DataEntry(lotteryPrices, storedTokensValues), DataEntry(lastHashRandomNumber, randNumber)])
388390 if ((tokenAssetId == ""))
389391 then {
390392 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
391393 ScriptResult(writeSets, winTransfer)
392394 }
393395 else {
394396 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
395397 ScriptResult(writeSets, winTransfer)
396398 }
397399 }
398400 else {
399401 let writeSets = WriteSet([DataEntry((currentKey + "_winning_token_"), token), DataEntry((currentKey + "_wininning_address_"), currentKey), DataEntry((token + lotteryamount), actualAmount), DataEntry(lastHashRandomNumber, randNumber)])
400402 if ((tokenAssetId == ""))
401403 then {
402404 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
403405 ScriptResult(writeSets, winTransfer)
404406 }
405407 else {
406408 let winTransfer = TransferSet([ScriptTransfer(i.caller, tokenPrice, unit)])
407409 ScriptResult(writeSets, winTransfer)
408410 }
409411 }
410412 }
411413 }
412414 }
413415
414416
415417 @Verifier(tx)
416418 func verify () = match tx {
417419 case _: DataTransaction =>
418420 true
419421 case _: SetScriptTransaction =>
420422 true
421423 case _ =>
422424 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
423425 }
424426

github/deemru/w8io/169f3d6 
235.20 ms