tx · zQYaGPCjcjfTXbfU9eXHAsY7Funm7BVA44GwNUGN3rk

3Mw8EHDvHCbzm6VE777G6EJNQBEe6CeS335:  -0.01500000 Waves

2024.11.01 19:39 [3352711] smart account 3Mw8EHDvHCbzm6VE777G6EJNQBEe6CeS335 > SELF 0.00000000 Waves

{ "type": 13, "id": "zQYaGPCjcjfTXbfU9eXHAsY7Funm7BVA44GwNUGN3rk", "fee": 1500000, "feeAssetId": null, "timestamp": 1730479216920, "version": 2, "chainId": 84, "sender": "3Mw8EHDvHCbzm6VE777G6EJNQBEe6CeS335", "senderPublicKey": "4f2Ggz6CqZhqr3FaW8dzR6KoddCudvULpuUfh7ew3Yne", "proofs": [ "vbyT6kCZaWx9R6wfwdQHLyVdmoASiwGK2WbKYBowLEZADhhPYv8anJusDYcgzzzXNJAsXY434HWWLPBJDkVJUoF" ], "script": "base64:BgIZCAISAwoBCBIAEgMKAQgSAwoBCBIECgIICCgBFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDHRyeUdldFN0cmluZwEDa2V5CQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCBQR0aGlzBQNrZXkBBWFzSW50AQV2YWx1ZQQHJG1hdGNoMAUFdmFsdWUDCQABAgUHJG1hdGNoMAIDSW50BANpbnQFByRtYXRjaDAFA2ludAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkAAgEJAKwCAgIpUkFJOiB3cm9uZyB0eXBlLCBleHBlY3RlZDogSW50LCBidXQgZ290OiAFBnN0cmluZwkAAgECHlJBSTogd3JvbmcgdHlwZSwg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b3N0ZXJUeXBlAwkAAAIFC2Jvb3N0ZXJUeXBlAgtBUlQtSFdFUkFTRQkAzggCCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABBQNuaWwJARVmaW5pc2hSZWJpcnRoSW50ZXJuYWwGBQZpbml0VHgJAKUIAQgFAWkGY2FsbGVyCQCRAwIIBQFpCHBheW1lbnRzAAEHBQhpdGVtQ29kZQcDCQAAAgULYm9vc3RlclR5cGUCDEFSVC1IV1JFU0NVRQkAzggCCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABBQNuaWwJARVmaW5pc2hSZWJpcnRoSW50ZXJuYWwGBQZpbml0VHgJAKUIAQgFAWkGY2FsbGVyCQCRAwIIBQFpCHBheW1lbnRzAAEHAgAGAwkAAAIFC2Jvb3N0ZXJUeXBlAg5BUlQtR0lGVF9ET1VCTAkAzggCCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABBQNuaWwJARVmaW5pc2hSZWJpcnRoSW50ZXJuYWwGBQZpbml0VHgJAKUIAQgFAWkGY2FsbGVyCQCRAwIIBQFpCHBheW1lbnRzAAEGAgAHCQACAQIbRXJyb3IhIFdyb25nIGl0ZW0gYXR0YWNoZWQgCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAwkAAAIJAJADAQgFAWkIcGF5bWVudHMAAQkBFWZpbmlzaFJlYmlydGhJbnRlcm5hbAYFBmluaXRUeAkApQgBCAUBaQZjYWxsZXIJAJEDAggFAWkIcGF5bWVudHMAAAcCAAcJAAIBAhBJbnZhbGlkIHBheW1lbnRzAOaHkxM=", "height": 3352711, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4xsVdBshJfVZjMV7QrxDN3YRRJX9nTdY7nN1fG81xmog Next: 3KKv5b318bKU66b9s2gMWxo9EeKhsT1yLCVD7TjUUKNw Diff:
OldNewDifferences
197197
198198
199199 func ae (af,ag,ah) = {
200- let ai = W(1000, af, ag, 0)
201- let aj = if (if ((100 > ai))
202- then (ah != "docking_A")
203- else false)
204- then "docking_A"
205- else if (if ((200 > ai))
206- then (ah != "docking_B")
207- else false)
208- then "docking_B"
209- else if (if ((300 > ai))
210- then (ah != "docking_C")
200+ let ai = W(10, af, ag, 1)
201+ if ((ai == 1))
202+ then $Tuple2(ai, "jackpot")
203+ else {
204+ let aj = W(1000, af, ag, 0)
205+ let ak = if (if ((100 > aj))
206+ then (ah != "docking_A")
211207 else false)
212- then "docking_C"
213- else if (if ((400 > ai))
214- then (ah != "docking_D")
208+ then "docking_A"
209+ else if (if ((200 > aj))
210+ then (ah != "docking_B")
215211 else false)
216- then "docking_D"
217- else if (if ((450 > ai))
218- then (ah != "incubator")
212+ then "docking_B"
213+ else if (if ((300 > aj))
214+ then (ah != "docking_C")
219215 else false)
220- then "incubator"
221- else if (if ((490 > ai))
222- then (ah != "duckling_40")
216+ then "docking_C"
217+ else if (if ((400 > aj))
218+ then (ah != "docking_D")
223219 else false)
224- then "duckling_40"
225- else if (if ((540 > ai))
226- then (ah != "duckling_20")
220+ then "docking_D"
221+ else if (if ((450 > aj))
222+ then (ah != "incubator")
227223 else false)
228- then "duckling_20"
229- else if (if ((640 > ai))
230- then (ah != "item!ART-FEED5")
224+ then "incubator"
225+ else if (if ((490 > aj))
226+ then (ah != "duckling_40")
231227 else false)
232- then "item!ART-FEED5"
233- else if (if ((710 > ai))
234- then (ah != "item!ART-FEED10")
228+ then "duckling_40"
229+ else if (if ((540 > aj))
230+ then (ah != "duckling_20")
235231 else false)
236- then "item!ART-FEED10"
237- else if (if ((740 > ai))
238- then (ah != "item!ART-FEED15")
232+ then "duckling_20"
233+ else if (if ((640 > aj))
234+ then (ah != "item!ART-FEED5")
239235 else false)
240- then "item!ART-FEED15"
241- else if (if ((770 > ai))
242- then (ah != "item!ART-FEED20")
236+ then "item!ART-FEED5"
237+ else if (if ((710 > aj))
238+ then (ah != "item!ART-FEED10")
243239 else false)
244- then "item!ART-FEED20"
245- else if (if ((790 > ai))
246- then (ah != "item!ART-FEED25")
240+ then "item!ART-FEED10"
241+ else if (if ((740 > aj))
242+ then (ah != "item!ART-FEED15")
247243 else false)
248- then "item!ART-FEED25"
249- else if (if ((810 > ai))
250- then (ah != "item!ART-FEED50")
244+ then "item!ART-FEED15"
245+ else if (if ((770 > aj))
246+ then (ah != "item!ART-FEED20")
251247 else false)
252- then "item!ART-FEED50"
253- else if (if ((830 > ai))
254- then (ah != "item!ART-FEED100")
248+ then "item!ART-FEED20"
249+ else if (if ((790 > aj))
250+ then (ah != "item!ART-FEED25")
255251 else false)
256- then "item!ART-FEED100"
257- else if (if ((860 > ai))
258- then (ah != "item!ART-MUTARIUM-G")
252+ then "item!ART-FEED25"
253+ else if (if ((810 > aj))
254+ then (ah != "item!ART-FEED50")
259255 else false)
260- then "item!ART-MUTARIUM-G"
261- else if (if ((890 > ai))
262- then (ah != "item!ART-MUTARIUM-D")
256+ then "item!ART-FEED50"
257+ else if (if ((830 > aj))
258+ then (ah != "item!ART-FEED100")
263259 else false)
264- then "item!ART-MUTARIUM-D"
265- else if (if ((910 > ai))
266- then (ah != "item!ART-FREEGENE")
260+ then "item!ART-FEED100"
261+ else if (if ((860 > aj))
262+ then (ah != "item!ART-MUTARIUM-G")
267263 else false)
268- then "item!ART-FREEGENE"
269- else if (if ((930 > ai))
270- then (ah != "item!ART-FIXGENE")
264+ then "item!ART-MUTARIUM-G"
265+ else if (if ((890 > aj))
266+ then (ah != "item!ART-MUTARIUM-D")
271267 else false)
272- then "item!ART-FIXGENE"
273- else if (if ((980 > ai))
274- then (ah != "trtl_incubator")
268+ then "item!ART-MUTARIUM-D"
269+ else if (if ((910 > aj))
270+ then (ah != "item!ART-FREEGENE")
275271 else false)
276- then "trtl_incubator"
277- else "item!ART-POTION"
278- $Tuple2(ai, aj)
272+ then "item!ART-FREEGENE"
273+ else if (if ((930 > aj))
274+ then (ah != "item!ART-FIXGENE")
275+ else false)
276+ then "item!ART-FIXGENE"
277+ else if (if ((980 > aj))
278+ then (ah != "trtl_incubator")
279+ else false)
280+ then "trtl_incubator"
281+ else "item!ART-POTION"
282+ $Tuple2(aj, ak)
283+ }
279284 }
280285
281286
282-func ak (af,ag) = {
283- let ai = W(2, af, ag, 1)
284- if ((ai == 0))
287+func al (af,ag) = {
288+ let aj = W(2, af, ag, 1)
289+ if ((aj == 0))
285290 then true
286291 else false
287292 }
288293
289294
290-func al (am,b,an,ao,ah,ap) = {
291- let aq = f((((("address_" + b) + "_initTx_") + am) + "_finishBlock"))
292- let ar = h((((("address_" + b) + "_initTx_") + am) + "_status"))
293- let as = T(an)
294- if ((as == as))
295- then if ((ar != "open"))
295+func am (an,b,ao,ap,ah,aq) = {
296+ let ar = f((((("address_" + b) + "_initTx_") + an) + "_finishBlock"))
297+ let as = h((((("address_" + b) + "_initTx_") + an) + "_status"))
298+ let at = T(ao)
299+ if ((at == at))
300+ then if ((as != "open"))
296301 then throw("rebirth is finished or not open")
297- else if ((aq > height))
302+ else if ((ar > height))
298303 then throw("you cannot finish rebirth, yet")
299304 else {
300- let at = ae(fromBase58String(am), aq, ah)
301- let au = at._2
302- let av = at._1
303- let Y = am
304- let aj = if ((indexOf(au, "docking") != unit))
305+ let au = ae(fromBase58String(an), ar, ah)
306+ let av = au._2
307+ let aw = au._1
308+ let Y = an
309+ let ak = if ((indexOf(av, "docking") != unit))
305310 then {
306- let aw = takeRight(au, 1)
307- let ax = if (!(ao))
311+ let ax = takeRight(av, 1)
312+ let ay = if (!(ap))
308313 then {
309- let ay = invoke(I(), "addFreePerch", [b, aw, 1], nil)
310- if ((ay == ay))
311- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
314+ let az = invoke(I(), "addFreePerch", [b, ax, 1], nil)
315+ if ((az == az))
316+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
312317 else throw("Strict value is not equal to itself.")
313318 }
314319 else {
315- let ay = invoke(I(), "addFreePerch", [b, aw, 2], nil)
316- if ((ay == ay))
317- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), au)]
320+ let az = invoke(I(), "addFreePerch", [b, ax, 2], nil)
321+ if ((az == az))
322+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), av)]
318323 else throw("Strict value is not equal to itself.")
319324 }
320- if ((ax == ax))
321- then ax
325+ if ((ay == ay))
326+ then ay
322327 else throw("Strict value is not equal to itself.")
323328 }
324- else if ((au == "incubator"))
329+ else if ((av == "jackpot"))
325330 then {
326- let ax = if (!(ao))
331+ let ay = invoke(G(), "issueJackpot", [b, Y, "WWWWHWTF"], nil)
332+ if ((ay == ay))
333+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(ay))]
334+ else throw("Strict value is not equal to itself.")
335+ }
336+ else if ((av == "incubator"))
337+ then {
338+ let ay = if (!(ap))
339+ then {
340+ let az = invoke(G(), "issueFree", [b, Y], nil)
341+ if ((az == az))
342+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
343+ else throw("Strict value is not equal to itself.")
344+ }
345+ else {
346+ let az = invoke(G(), "issueFree", [b, Y], nil)
347+ if ((az == az))
348+ then {
349+ let aA = invoke(M(), "issueFreeTurtle", [b, Y], nil)
350+ if ((aA == aA))
351+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(aA)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), "incubator")]
352+ else throw("Strict value is not equal to itself.")
353+ }
354+ else throw("Strict value is not equal to itself.")
355+ }
356+ if ((ay == ay))
357+ then ay
358+ else throw("Strict value is not equal to itself.")
359+ }
360+ else if ((indexOf(av, "duckling") != unit))
327361 then {
328- let ay = invoke(G(), "issueFree", [b, Y], nil)
362+ let aB = parseIntValue(split(av, "_")[1])
363+ let aC = if (ap)
364+ then (2 * aB)
365+ else aB
366+ let ay = invoke(N(), "issueFreeDuckling", [b, Y, aC], nil)
329367 if ((ay == ay))
330- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
368+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(ay))]
331369 else throw("Strict value is not equal to itself.")
332370 }
333- else {
334- let ay = invoke(G(), "issueFree", [b, Y], nil)
335- if ((ay == ay))
336- then {
337- let az = invoke(M(), "issueFreeTurtle", [b, Y], nil)
338- if ((az == az))
339- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), "incubator")]
340- else throw("Strict value is not equal to itself.")
341- }
342- else throw("Strict value is not equal to itself.")
343- }
344- if ((ax == ax))
345- then ax
346- else throw("Strict value is not equal to itself.")
347- }
348- else if ((indexOf(au, "duckling") != unit))
349- then {
350- let aA = parseIntValue(split(au, "_")[1])
351- let aB = if (ao)
352- then (2 * aA)
353- else aA
354- let ax = invoke(N(), "issueFreeDuckling", [b, Y, aB], nil)
355- if ((ax == ax))
356- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ax))]
357- else throw("Strict value is not equal to itself.")
358- }
359- else if ((au == "trtl_incubator"))
360- then {
361- let ax = if (!(ao))
362- then {
363- let ay = invoke(M(), "issueFreeTurtle", [b, Y], nil)
364- if ((ay == ay))
365- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
366- else throw("Strict value is not equal to itself.")
367- }
368- else {
369- let ay = invoke(M(), "issueFreeTurtle", [b, Y], nil)
370- if ((ay == ay))
371- then {
372- let az = invoke(G(), "issueFree", [b, Y], nil)
373- if ((az == az))
374- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), "trtl_incubator")]
375- else throw("Strict value is not equal to itself.")
376- }
377- else throw("Strict value is not equal to itself.")
378- }
379- if ((ax == ax))
380- then ax
381- else throw("Strict value is not equal to itself.")
382- }
383- else if ((indexOf(au, "item") != unit))
371+ else if ((av == "trtl_incubator"))
384372 then {
385- let aC = split(au, "!")[1]
386- let ax = if (!(ao))
373+ let ay = if (!(ap))
387374 then {
388- let ay = invoke(L(), "issueArtefactIndex", [aC, b, 0], nil)
389- if ((ay == ay))
390- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
375+ let az = invoke(M(), "issueFreeTurtle", [b, Y], nil)
376+ if ((az == az))
377+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
391378 else throw("Strict value is not equal to itself.")
392379 }
393380 else {
394- let ay = invoke(L(), "issueArtefactIndex", [aC, b, 0], nil)
395- if ((ay == ay))
381+ let az = invoke(M(), "issueFreeTurtle", [b, Y], nil)
382+ if ((az == az))
396383 then {
397- let az = invoke(L(), "issueArtefactIndex", [aC, b, 1], nil)
398- if ((az == az))
399- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), au)]
384+ let aA = invoke(G(), "issueFree", [b, Y], nil)
385+ if ((aA == aA))
386+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(aA)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), "trtl_incubator")]
400387 else throw("Strict value is not equal to itself.")
401388 }
402389 else throw("Strict value is not equal to itself.")
403390 }
404- if ((ax == ax))
405- then ax
391+ if ((ay == ay))
392+ then ay
406393 else throw("Strict value is not equal to itself.")
407394 }
408- else throw(("RFB: Some error occured, please contact the admins! " + au))
409- if ((aj == aj))
395+ else if ((indexOf(av, "item") != unit))
396+ then {
397+ let aD = split(av, "!")[1]
398+ let ay = if (!(ap))
399+ then {
400+ let az = invoke(L(), "issueArtefactIndex", [aD, b, 0], nil)
401+ if ((az == az))
402+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
403+ else throw("Strict value is not equal to itself.")
404+ }
405+ else {
406+ let az = invoke(L(), "issueArtefactIndex", [aD, b, 0], nil)
407+ if ((az == az))
408+ then {
409+ let aA = invoke(L(), "issueArtefactIndex", [aD, b, 1], nil)
410+ if ((aA == aA))
411+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(aA)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), av)]
412+ else throw("Strict value is not equal to itself.")
413+ }
414+ else throw("Strict value is not equal to itself.")
415+ }
416+ if ((ay == ay))
417+ then ay
418+ else throw("Strict value is not equal to itself.")
419+ }
420+ else throw(("RFB: Some error occured, please contact the admins! " + av))
421+ if ((ak == ak))
410422 then {
411- let aD = ak(fromBase58String(am), aq)
412- let aE = if (aD)
423+ let aE = if (aq)
424+ then al(fromBase58String(an), ar)
425+ else false
426+ let aF = if (aE)
413427 then {
414- let S = fromBase58String(getStringValue((((("address_" + b) + "_initTx_") + am) + "_assetId")))
415- let aF = R(S)
416- let aG = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
417- if ((aG == aG))
428+ let S = fromBase58String(getStringValue((((("address_" + b) + "_initTx_") + an) + "_assetId")))
429+ let aG = R(S)
430+ let aH = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
431+ if ((aH == aH))
418432 then {
419- let ax = invoke(aF, "increaseRarity", [toBase58String(S), aG], nil)
420- if ((ax == ax))
433+ let ay = invoke(aG, "increaseRarity", [toBase58String(S), aH], nil)
434+ if ((ay == ay))
421435 then [ScriptTransfer(addressFromStringValue(b), 1, S)]
422436 else throw("Strict value is not equal to itself.")
423437 }
424438 else throw("Strict value is not equal to itself.")
425439 }
426440 else nil
427- (((aj ++ [StringEntry((((("address_" + b) + "_initTx_") + am) + "_win"), au), StringEntry((((("address_" + b) + "_initTx_") + am) + "_status"), "finish"), IntegerEntry((((("address_" + b) + "_initTx_") + am) + "_random"), av)]) ++ as) ++ aE)
441+ (((ak ++ [StringEntry((((("address_" + b) + "_initTx_") + an) + "_win"), av), StringEntry((((("address_" + b) + "_initTx_") + an) + "_status"), "finish"), IntegerEntry((((("address_" + b) + "_initTx_") + an) + "_random"), aw)]) ++ at) ++ aF)
428442 }
429443 else throw("Strict value is not equal to itself.")
430444 }
432446 }
433447
434448
435-@Callable(aH)
436-func configureOracle (aI) = if ((aH.caller != this))
449+@Callable(aI)
450+func configureOracle (aJ) = if ((aI.caller != this))
437451 then throw("RCU: admin only")
438- else [StringEntry("static_oracleAddress", aI)]
452+ else [StringEntry("static_oracleAddress", aJ)]
439453
440454
441455
442-@Callable(aH)
456+@Callable(aI)
443457 func initRebirth () = {
444- let aJ = aH.payments[0]
445- let aK = aH.payments[1]
446- let S = value(aJ.assetId)
447- let am = toBase58String(aH.transactionId)
448- let b = toString(aH.caller)
449- if ((aJ.amount != 1))
458+ let aK = aI.payments[0]
459+ let aL = aI.payments[1]
460+ let S = value(aK.assetId)
461+ let an = toBase58String(aI.transactionId)
462+ let b = toString(aI.caller)
463+ if ((aK.amount != 1))
450464 then throw("NFT is not attached")
451- else if (if ((aK.amount != P))
465+ else if (if ((aL.amount != P))
452466 then true
453- else (aK.assetId != unit))
467+ else (aL.assetId != unit))
454468 then throw("Wavespayment is not attached or wrong!")
455469 else {
456- let aL = (aK.amount / 4)
457- let aM = (aK.amount - aL)
458- let aN = invoke(I(), "addWavesAndStakeMore", nil, [AttachedPayment(unit, aM)])
459- if ((aN == aN))
470+ let aM = (aL.amount / 4)
471+ let aN = (aL.amount - aM)
472+ let aO = invoke(I(), "addWavesAndStakeMore", nil, [AttachedPayment(unit, aN)])
473+ if ((aO == aO))
460474 then {
461- let aF = R(S)
462- let aG = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
463- if ((aG == aG))
475+ let aG = R(S)
476+ let aH = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
477+ if ((aH == aH))
464478 then {
465- let ax = invoke(aF, "reduceRarity", [toBase58String(S), aG], nil)
466- if ((ax == ax))
467- then [IntegerEntry((((("address_" + b) + "_initTx_") + am) + "_finishBlock"), (height + Q)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_status"), "open"), StringEntry((((("address_" + b) + "_initTx_") + am) + "_assetId"), toBase58String(S)), ScriptTransfer(E(), aL, unit)]
479+ let ay = invoke(aG, "reduceRarity", [toBase58String(S), aH], nil)
480+ if ((ay == ay))
481+ then [IntegerEntry((((("address_" + b) + "_initTx_") + an) + "_finishBlock"), (height + Q)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_status"), "open"), StringEntry((((("address_" + b) + "_initTx_") + an) + "_assetId"), toBase58String(S)), ScriptTransfer(E(), aM, unit)]
468482 else throw("Strict value is not equal to itself.")
469483 }
470484 else throw("Strict value is not equal to itself.")
475489
476490
477491
478-@Callable(aH)
479-func finishRebirth (am) = al(am, toString(aH.caller), aH.payments[0], false, "", false)
492+@Callable(aI)
493+func finishRebirth (an) = am(an, toString(aI.caller), aI.payments[0], false, "", false)
480494
481495
482496
483-@Callable(aH)
484-func finishRebirthDouble (am) = if (!(if ((size(aH.payments) == 2))
485- then (aH.payments[0].amount == 1)
497+@Callable(aI)
498+func finishRebirthDouble (an) = if (!(if ((size(aI.payments) == 2))
499+ then (aI.payments[0].amount == 1)
486500 else false))
487501 then throw("Invalid payment")
488502 else {
489- let S = value(aH.payments[0].assetId)
490- let aO = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
491- if ((aO == aO))
492- then if ((aO == "ART-GIFT_DOUBL"))
493- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], true, "", false))
503+ let S = value(aI.payments[0].assetId)
504+ let aP = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
505+ if ((aP == aP))
506+ then if ((aP == "ART-GIFT_DOUBL"))
507+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], true, "", false))
494508 else throw("Error! Wrong item attached to double rewards!")
495509 else throw("Strict value is not equal to itself.")
496510 }
497511
498512
499513
500-@Callable(aH)
501-func finishRebirthItem (am,aP) = if (if ((size(aH.payments) == 2))
502- then (aH.payments[0].amount == 1)
514+@Callable(aI)
515+func finishRebirthItem (an,aQ) = if (if ((size(aI.payments) == 2))
516+ then (aI.payments[0].amount == 1)
503517 else false)
504518 then {
505- let S = value(aH.payments[0].assetId)
506- let aO = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
507- if ((aO == aO))
508- then if ((aO == "ART-HWERASE"))
509- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], false, aP, false))
510- else if ((aO == "ART-HWRESCUE"))
511- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], false, "", true))
512- else if ((aO == "ART-GIFT_DOUBL"))
513- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], true, "", false))
519+ let S = value(aI.payments[0].assetId)
520+ let aP = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
521+ if ((aP == aP))
522+ then if ((aP == "ART-HWERASE"))
523+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], false, aQ, false))
524+ else if ((aP == "ART-HWRESCUE"))
525+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], false, "", true))
526+ else if ((aP == "ART-GIFT_DOUBL"))
527+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], true, "", false))
514528 else throw("Error! Wrong item attached ")
515529 else throw("Strict value is not equal to itself.")
516530 }
517- else if ((size(aH.payments) == 1))
518- then al(am, toString(aH.caller), aH.payments[0], false, "", false)
531+ else if ((size(aI.payments) == 1))
532+ then am(an, toString(aI.caller), aI.payments[0], false, "", false)
519533 else throw("Invalid payments")
520534
521535
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = {
55 let d = getString(b, c)
66 if ($isInstanceOf(d, "String"))
77 then {
88 let e = d
99 e
1010 }
1111 else ""
1212 }
1313
1414
1515 func f (c) = {
1616 let d = getInteger(this, c)
1717 if ($isInstanceOf(d, "Int"))
1818 then {
1919 let g = d
2020 g
2121 }
2222 else 0
2323 }
2424
2525
2626 func h (c) = a(this, c)
2727
2828
2929 func i (j) = {
3030 let d = j
3131 if ($isInstanceOf(d, "Int"))
3232 then {
3333 let k = d
3434 k
3535 }
3636 else if ($isInstanceOf(d, "String"))
3737 then {
3838 let l = d
3939 throw(("RAI: wrong type, expected: Int, but got: " + l))
4040 }
4141 else throw("RAI: wrong type, expected: Int")
4242 }
4343
4444
4545 func m (j) = {
4646 let d = j
4747 if ($isInstanceOf(d, "Boolean"))
4848 then {
4949 let n = d
5050 n
5151 }
5252 else throw("FAB: wrong type, expected: Boolean")
5353 }
5454
5555
5656 func o (j) = {
5757 let d = j
5858 if ($isInstanceOf(d, "String"))
5959 then {
6060 let p = d
6161 p
6262 }
6363 else if ($isInstanceOf(d, "Int"))
6464 then {
6565 let p = d
6666 throw("wrong type, expected: String, got: Int")
6767 }
6868 else if ($isInstanceOf(d, "Unit"))
6969 then {
7070 let p = d
7171 throw("wrong type, expected: String, got: Unit")
7272 }
7373 else throw("wrong type, expected: String")
7474 }
7575
7676
7777 func q () = "static_oracleAddress"
7878
7979
8080 func r () = "static_extraFee"
8181
8282
8383 func s () = "static_feeAggregator"
8484
8585
8686 func t () = "static_canineIncubatorAddress"
8787
8888
8989 func u () = "static_canineBreederAddress"
9090
9191
9292 func v () = "static_couponsAddress"
9393
9494
9595 func w () = "static_canineStakingAddress"
9696
9797
9898 func x () = "static_farmingAddressNew"
9999
100100
101101 func y () = "static_incubatorAddress"
102102
103103
104104 func z () = "static_itemsAddress"
105105
106106
107107 func A () = "static_canineWavesRebirthPrice"
108108
109109
110110 func B () = "static_turtleIncubatorAddress"
111111
112112
113113 func C () = "static_babyDuckAddress"
114114
115115
116116 func D () = Address(fromBase58String(h(q())))
117117
118118
119119 func E () = Address(fromBase58String(a(D(), s())))
120120
121121
122122 func F () = Address(fromBase58String(a(D(), u())))
123123
124124
125125 func G () = Address(fromBase58String(a(D(), t())))
126126
127127
128128 func H () = Address(fromBase58String(a(D(), v())))
129129
130130
131131 func I () = Address(fromBase58String(a(D(), w())))
132132
133133
134134 func J () = Address(fromBase58String(a(D(), x())))
135135
136136
137137 func K () = Address(fromBase58String(a(D(), y())))
138138
139139
140140 func L () = Address(fromBase58String(a(D(), z())))
141141
142142
143143 func M () = Address(fromBase58String(a(D(), B())))
144144
145145
146146 func N () = Address(fromBase58String(a(D(), C())))
147147
148148
149149 func O (b,c) = {
150150 let d = getInteger(b, c)
151151 if ($isInstanceOf(d, "Int"))
152152 then {
153153 let g = d
154154 g
155155 }
156156 else throw("TR: Value not found in sc!")
157157 }
158158
159159
160160 let P = O(D(), A())
161161
162162 let Q = 2
163163
164164 func R (S) = if (if ((value(assetInfo(S)).issuer == F()))
165165 then true
166166 else (value(assetInfo(S)).issuer == G()))
167167 then value(assetInfo(S)).issuer
168168 else throw("not valid NFT")
169169
170170
171171 func T (U) = if (isDefined(U.assetId))
172172 then throw("RCAP: Please attach waves")
173173 else {
174174 let V = getIntegerValue(D(), r())
175175 if ((U.amount != V))
176176 then throw((("RCAP: Please attach exactly " + toString(V)) + " amount of wavelets"))
177177 else [ScriptTransfer(E(), V, unit)]
178178 }
179179
180180
181181 func W (X,Y,Z,aa) = {
182182 let ab = value(blockInfoByHeight((Z - 1)))
183183 let ac = sha256((Y + value(ab.vrf)))
184184 (toInt(ac, (aa * 8)) % X)
185185 }
186186
187187
188188 func ad (c) = {
189189 let d = getBoolean(c)
190190 if ($isInstanceOf(d, "Boolean"))
191191 then {
192192 let g = d
193193 g
194194 }
195195 else false
196196 }
197197
198198
199199 func ae (af,ag,ah) = {
200- let ai = W(1000, af, ag, 0)
201- let aj = if (if ((100 > ai))
202- then (ah != "docking_A")
203- else false)
204- then "docking_A"
205- else if (if ((200 > ai))
206- then (ah != "docking_B")
207- else false)
208- then "docking_B"
209- else if (if ((300 > ai))
210- then (ah != "docking_C")
200+ let ai = W(10, af, ag, 1)
201+ if ((ai == 1))
202+ then $Tuple2(ai, "jackpot")
203+ else {
204+ let aj = W(1000, af, ag, 0)
205+ let ak = if (if ((100 > aj))
206+ then (ah != "docking_A")
211207 else false)
212- then "docking_C"
213- else if (if ((400 > ai))
214- then (ah != "docking_D")
208+ then "docking_A"
209+ else if (if ((200 > aj))
210+ then (ah != "docking_B")
215211 else false)
216- then "docking_D"
217- else if (if ((450 > ai))
218- then (ah != "incubator")
212+ then "docking_B"
213+ else if (if ((300 > aj))
214+ then (ah != "docking_C")
219215 else false)
220- then "incubator"
221- else if (if ((490 > ai))
222- then (ah != "duckling_40")
216+ then "docking_C"
217+ else if (if ((400 > aj))
218+ then (ah != "docking_D")
223219 else false)
224- then "duckling_40"
225- else if (if ((540 > ai))
226- then (ah != "duckling_20")
220+ then "docking_D"
221+ else if (if ((450 > aj))
222+ then (ah != "incubator")
227223 else false)
228- then "duckling_20"
229- else if (if ((640 > ai))
230- then (ah != "item!ART-FEED5")
224+ then "incubator"
225+ else if (if ((490 > aj))
226+ then (ah != "duckling_40")
231227 else false)
232- then "item!ART-FEED5"
233- else if (if ((710 > ai))
234- then (ah != "item!ART-FEED10")
228+ then "duckling_40"
229+ else if (if ((540 > aj))
230+ then (ah != "duckling_20")
235231 else false)
236- then "item!ART-FEED10"
237- else if (if ((740 > ai))
238- then (ah != "item!ART-FEED15")
232+ then "duckling_20"
233+ else if (if ((640 > aj))
234+ then (ah != "item!ART-FEED5")
239235 else false)
240- then "item!ART-FEED15"
241- else if (if ((770 > ai))
242- then (ah != "item!ART-FEED20")
236+ then "item!ART-FEED5"
237+ else if (if ((710 > aj))
238+ then (ah != "item!ART-FEED10")
243239 else false)
244- then "item!ART-FEED20"
245- else if (if ((790 > ai))
246- then (ah != "item!ART-FEED25")
240+ then "item!ART-FEED10"
241+ else if (if ((740 > aj))
242+ then (ah != "item!ART-FEED15")
247243 else false)
248- then "item!ART-FEED25"
249- else if (if ((810 > ai))
250- then (ah != "item!ART-FEED50")
244+ then "item!ART-FEED15"
245+ else if (if ((770 > aj))
246+ then (ah != "item!ART-FEED20")
251247 else false)
252- then "item!ART-FEED50"
253- else if (if ((830 > ai))
254- then (ah != "item!ART-FEED100")
248+ then "item!ART-FEED20"
249+ else if (if ((790 > aj))
250+ then (ah != "item!ART-FEED25")
255251 else false)
256- then "item!ART-FEED100"
257- else if (if ((860 > ai))
258- then (ah != "item!ART-MUTARIUM-G")
252+ then "item!ART-FEED25"
253+ else if (if ((810 > aj))
254+ then (ah != "item!ART-FEED50")
259255 else false)
260- then "item!ART-MUTARIUM-G"
261- else if (if ((890 > ai))
262- then (ah != "item!ART-MUTARIUM-D")
256+ then "item!ART-FEED50"
257+ else if (if ((830 > aj))
258+ then (ah != "item!ART-FEED100")
263259 else false)
264- then "item!ART-MUTARIUM-D"
265- else if (if ((910 > ai))
266- then (ah != "item!ART-FREEGENE")
260+ then "item!ART-FEED100"
261+ else if (if ((860 > aj))
262+ then (ah != "item!ART-MUTARIUM-G")
267263 else false)
268- then "item!ART-FREEGENE"
269- else if (if ((930 > ai))
270- then (ah != "item!ART-FIXGENE")
264+ then "item!ART-MUTARIUM-G"
265+ else if (if ((890 > aj))
266+ then (ah != "item!ART-MUTARIUM-D")
271267 else false)
272- then "item!ART-FIXGENE"
273- else if (if ((980 > ai))
274- then (ah != "trtl_incubator")
268+ then "item!ART-MUTARIUM-D"
269+ else if (if ((910 > aj))
270+ then (ah != "item!ART-FREEGENE")
275271 else false)
276- then "trtl_incubator"
277- else "item!ART-POTION"
278- $Tuple2(ai, aj)
272+ then "item!ART-FREEGENE"
273+ else if (if ((930 > aj))
274+ then (ah != "item!ART-FIXGENE")
275+ else false)
276+ then "item!ART-FIXGENE"
277+ else if (if ((980 > aj))
278+ then (ah != "trtl_incubator")
279+ else false)
280+ then "trtl_incubator"
281+ else "item!ART-POTION"
282+ $Tuple2(aj, ak)
283+ }
279284 }
280285
281286
282-func ak (af,ag) = {
283- let ai = W(2, af, ag, 1)
284- if ((ai == 0))
287+func al (af,ag) = {
288+ let aj = W(2, af, ag, 1)
289+ if ((aj == 0))
285290 then true
286291 else false
287292 }
288293
289294
290-func al (am,b,an,ao,ah,ap) = {
291- let aq = f((((("address_" + b) + "_initTx_") + am) + "_finishBlock"))
292- let ar = h((((("address_" + b) + "_initTx_") + am) + "_status"))
293- let as = T(an)
294- if ((as == as))
295- then if ((ar != "open"))
295+func am (an,b,ao,ap,ah,aq) = {
296+ let ar = f((((("address_" + b) + "_initTx_") + an) + "_finishBlock"))
297+ let as = h((((("address_" + b) + "_initTx_") + an) + "_status"))
298+ let at = T(ao)
299+ if ((at == at))
300+ then if ((as != "open"))
296301 then throw("rebirth is finished or not open")
297- else if ((aq > height))
302+ else if ((ar > height))
298303 then throw("you cannot finish rebirth, yet")
299304 else {
300- let at = ae(fromBase58String(am), aq, ah)
301- let au = at._2
302- let av = at._1
303- let Y = am
304- let aj = if ((indexOf(au, "docking") != unit))
305+ let au = ae(fromBase58String(an), ar, ah)
306+ let av = au._2
307+ let aw = au._1
308+ let Y = an
309+ let ak = if ((indexOf(av, "docking") != unit))
305310 then {
306- let aw = takeRight(au, 1)
307- let ax = if (!(ao))
311+ let ax = takeRight(av, 1)
312+ let ay = if (!(ap))
308313 then {
309- let ay = invoke(I(), "addFreePerch", [b, aw, 1], nil)
310- if ((ay == ay))
311- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
314+ let az = invoke(I(), "addFreePerch", [b, ax, 1], nil)
315+ if ((az == az))
316+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
312317 else throw("Strict value is not equal to itself.")
313318 }
314319 else {
315- let ay = invoke(I(), "addFreePerch", [b, aw, 2], nil)
316- if ((ay == ay))
317- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), au)]
320+ let az = invoke(I(), "addFreePerch", [b, ax, 2], nil)
321+ if ((az == az))
322+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), av)]
318323 else throw("Strict value is not equal to itself.")
319324 }
320- if ((ax == ax))
321- then ax
325+ if ((ay == ay))
326+ then ay
322327 else throw("Strict value is not equal to itself.")
323328 }
324- else if ((au == "incubator"))
329+ else if ((av == "jackpot"))
325330 then {
326- let ax = if (!(ao))
331+ let ay = invoke(G(), "issueJackpot", [b, Y, "WWWWHWTF"], nil)
332+ if ((ay == ay))
333+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(ay))]
334+ else throw("Strict value is not equal to itself.")
335+ }
336+ else if ((av == "incubator"))
337+ then {
338+ let ay = if (!(ap))
339+ then {
340+ let az = invoke(G(), "issueFree", [b, Y], nil)
341+ if ((az == az))
342+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
343+ else throw("Strict value is not equal to itself.")
344+ }
345+ else {
346+ let az = invoke(G(), "issueFree", [b, Y], nil)
347+ if ((az == az))
348+ then {
349+ let aA = invoke(M(), "issueFreeTurtle", [b, Y], nil)
350+ if ((aA == aA))
351+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(aA)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), "incubator")]
352+ else throw("Strict value is not equal to itself.")
353+ }
354+ else throw("Strict value is not equal to itself.")
355+ }
356+ if ((ay == ay))
357+ then ay
358+ else throw("Strict value is not equal to itself.")
359+ }
360+ else if ((indexOf(av, "duckling") != unit))
327361 then {
328- let ay = invoke(G(), "issueFree", [b, Y], nil)
362+ let aB = parseIntValue(split(av, "_")[1])
363+ let aC = if (ap)
364+ then (2 * aB)
365+ else aB
366+ let ay = invoke(N(), "issueFreeDuckling", [b, Y, aC], nil)
329367 if ((ay == ay))
330- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
368+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(ay))]
331369 else throw("Strict value is not equal to itself.")
332370 }
333- else {
334- let ay = invoke(G(), "issueFree", [b, Y], nil)
335- if ((ay == ay))
336- then {
337- let az = invoke(M(), "issueFreeTurtle", [b, Y], nil)
338- if ((az == az))
339- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), "incubator")]
340- else throw("Strict value is not equal to itself.")
341- }
342- else throw("Strict value is not equal to itself.")
343- }
344- if ((ax == ax))
345- then ax
346- else throw("Strict value is not equal to itself.")
347- }
348- else if ((indexOf(au, "duckling") != unit))
349- then {
350- let aA = parseIntValue(split(au, "_")[1])
351- let aB = if (ao)
352- then (2 * aA)
353- else aA
354- let ax = invoke(N(), "issueFreeDuckling", [b, Y, aB], nil)
355- if ((ax == ax))
356- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ax))]
357- else throw("Strict value is not equal to itself.")
358- }
359- else if ((au == "trtl_incubator"))
360- then {
361- let ax = if (!(ao))
362- then {
363- let ay = invoke(M(), "issueFreeTurtle", [b, Y], nil)
364- if ((ay == ay))
365- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
366- else throw("Strict value is not equal to itself.")
367- }
368- else {
369- let ay = invoke(M(), "issueFreeTurtle", [b, Y], nil)
370- if ((ay == ay))
371- then {
372- let az = invoke(G(), "issueFree", [b, Y], nil)
373- if ((az == az))
374- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), "trtl_incubator")]
375- else throw("Strict value is not equal to itself.")
376- }
377- else throw("Strict value is not equal to itself.")
378- }
379- if ((ax == ax))
380- then ax
381- else throw("Strict value is not equal to itself.")
382- }
383- else if ((indexOf(au, "item") != unit))
371+ else if ((av == "trtl_incubator"))
384372 then {
385- let aC = split(au, "!")[1]
386- let ax = if (!(ao))
373+ let ay = if (!(ap))
387374 then {
388- let ay = invoke(L(), "issueArtefactIndex", [aC, b, 0], nil)
389- if ((ay == ay))
390- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay))]
375+ let az = invoke(M(), "issueFreeTurtle", [b, Y], nil)
376+ if ((az == az))
377+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
391378 else throw("Strict value is not equal to itself.")
392379 }
393380 else {
394- let ay = invoke(L(), "issueArtefactIndex", [aC, b, 0], nil)
395- if ((ay == ay))
381+ let az = invoke(M(), "issueFreeTurtle", [b, Y], nil)
382+ if ((az == az))
396383 then {
397- let az = invoke(L(), "issueArtefactIndex", [aC, b, 1], nil)
398- if ((az == az))
399- then [StringEntry((((("address_" + b) + "_initTx_") + am) + "_result"), o(ay)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_result1"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_win1"), au)]
384+ let aA = invoke(G(), "issueFree", [b, Y], nil)
385+ if ((aA == aA))
386+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(aA)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), "trtl_incubator")]
400387 else throw("Strict value is not equal to itself.")
401388 }
402389 else throw("Strict value is not equal to itself.")
403390 }
404- if ((ax == ax))
405- then ax
391+ if ((ay == ay))
392+ then ay
406393 else throw("Strict value is not equal to itself.")
407394 }
408- else throw(("RFB: Some error occured, please contact the admins! " + au))
409- if ((aj == aj))
395+ else if ((indexOf(av, "item") != unit))
396+ then {
397+ let aD = split(av, "!")[1]
398+ let ay = if (!(ap))
399+ then {
400+ let az = invoke(L(), "issueArtefactIndex", [aD, b, 0], nil)
401+ if ((az == az))
402+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az))]
403+ else throw("Strict value is not equal to itself.")
404+ }
405+ else {
406+ let az = invoke(L(), "issueArtefactIndex", [aD, b, 0], nil)
407+ if ((az == az))
408+ then {
409+ let aA = invoke(L(), "issueArtefactIndex", [aD, b, 1], nil)
410+ if ((aA == aA))
411+ then [StringEntry((((("address_" + b) + "_initTx_") + an) + "_result"), o(az)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_result1"), o(aA)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_win1"), av)]
412+ else throw("Strict value is not equal to itself.")
413+ }
414+ else throw("Strict value is not equal to itself.")
415+ }
416+ if ((ay == ay))
417+ then ay
418+ else throw("Strict value is not equal to itself.")
419+ }
420+ else throw(("RFB: Some error occured, please contact the admins! " + av))
421+ if ((ak == ak))
410422 then {
411- let aD = ak(fromBase58String(am), aq)
412- let aE = if (aD)
423+ let aE = if (aq)
424+ then al(fromBase58String(an), ar)
425+ else false
426+ let aF = if (aE)
413427 then {
414- let S = fromBase58String(getStringValue((((("address_" + b) + "_initTx_") + am) + "_assetId")))
415- let aF = R(S)
416- let aG = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
417- if ((aG == aG))
428+ let S = fromBase58String(getStringValue((((("address_" + b) + "_initTx_") + an) + "_assetId")))
429+ let aG = R(S)
430+ let aH = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
431+ if ((aH == aH))
418432 then {
419- let ax = invoke(aF, "increaseRarity", [toBase58String(S), aG], nil)
420- if ((ax == ax))
433+ let ay = invoke(aG, "increaseRarity", [toBase58String(S), aH], nil)
434+ if ((ay == ay))
421435 then [ScriptTransfer(addressFromStringValue(b), 1, S)]
422436 else throw("Strict value is not equal to itself.")
423437 }
424438 else throw("Strict value is not equal to itself.")
425439 }
426440 else nil
427- (((aj ++ [StringEntry((((("address_" + b) + "_initTx_") + am) + "_win"), au), StringEntry((((("address_" + b) + "_initTx_") + am) + "_status"), "finish"), IntegerEntry((((("address_" + b) + "_initTx_") + am) + "_random"), av)]) ++ as) ++ aE)
441+ (((ak ++ [StringEntry((((("address_" + b) + "_initTx_") + an) + "_win"), av), StringEntry((((("address_" + b) + "_initTx_") + an) + "_status"), "finish"), IntegerEntry((((("address_" + b) + "_initTx_") + an) + "_random"), aw)]) ++ at) ++ aF)
428442 }
429443 else throw("Strict value is not equal to itself.")
430444 }
431445 else throw("Strict value is not equal to itself.")
432446 }
433447
434448
435-@Callable(aH)
436-func configureOracle (aI) = if ((aH.caller != this))
449+@Callable(aI)
450+func configureOracle (aJ) = if ((aI.caller != this))
437451 then throw("RCU: admin only")
438- else [StringEntry("static_oracleAddress", aI)]
452+ else [StringEntry("static_oracleAddress", aJ)]
439453
440454
441455
442-@Callable(aH)
456+@Callable(aI)
443457 func initRebirth () = {
444- let aJ = aH.payments[0]
445- let aK = aH.payments[1]
446- let S = value(aJ.assetId)
447- let am = toBase58String(aH.transactionId)
448- let b = toString(aH.caller)
449- if ((aJ.amount != 1))
458+ let aK = aI.payments[0]
459+ let aL = aI.payments[1]
460+ let S = value(aK.assetId)
461+ let an = toBase58String(aI.transactionId)
462+ let b = toString(aI.caller)
463+ if ((aK.amount != 1))
450464 then throw("NFT is not attached")
451- else if (if ((aK.amount != P))
465+ else if (if ((aL.amount != P))
452466 then true
453- else (aK.assetId != unit))
467+ else (aL.assetId != unit))
454468 then throw("Wavespayment is not attached or wrong!")
455469 else {
456- let aL = (aK.amount / 4)
457- let aM = (aK.amount - aL)
458- let aN = invoke(I(), "addWavesAndStakeMore", nil, [AttachedPayment(unit, aM)])
459- if ((aN == aN))
470+ let aM = (aL.amount / 4)
471+ let aN = (aL.amount - aM)
472+ let aO = invoke(I(), "addWavesAndStakeMore", nil, [AttachedPayment(unit, aN)])
473+ if ((aO == aO))
460474 then {
461- let aF = R(S)
462- let aG = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
463- if ((aG == aG))
475+ let aG = R(S)
476+ let aH = o(invoke(F(), "getGenFromName", [value(assetInfo(S)).name], nil))
477+ if ((aH == aH))
464478 then {
465- let ax = invoke(aF, "reduceRarity", [toBase58String(S), aG], nil)
466- if ((ax == ax))
467- then [IntegerEntry((((("address_" + b) + "_initTx_") + am) + "_finishBlock"), (height + Q)), StringEntry((((("address_" + b) + "_initTx_") + am) + "_status"), "open"), StringEntry((((("address_" + b) + "_initTx_") + am) + "_assetId"), toBase58String(S)), ScriptTransfer(E(), aL, unit)]
479+ let ay = invoke(aG, "reduceRarity", [toBase58String(S), aH], nil)
480+ if ((ay == ay))
481+ then [IntegerEntry((((("address_" + b) + "_initTx_") + an) + "_finishBlock"), (height + Q)), StringEntry((((("address_" + b) + "_initTx_") + an) + "_status"), "open"), StringEntry((((("address_" + b) + "_initTx_") + an) + "_assetId"), toBase58String(S)), ScriptTransfer(E(), aM, unit)]
468482 else throw("Strict value is not equal to itself.")
469483 }
470484 else throw("Strict value is not equal to itself.")
471485 }
472486 else throw("Strict value is not equal to itself.")
473487 }
474488 }
475489
476490
477491
478-@Callable(aH)
479-func finishRebirth (am) = al(am, toString(aH.caller), aH.payments[0], false, "", false)
492+@Callable(aI)
493+func finishRebirth (an) = am(an, toString(aI.caller), aI.payments[0], false, "", false)
480494
481495
482496
483-@Callable(aH)
484-func finishRebirthDouble (am) = if (!(if ((size(aH.payments) == 2))
485- then (aH.payments[0].amount == 1)
497+@Callable(aI)
498+func finishRebirthDouble (an) = if (!(if ((size(aI.payments) == 2))
499+ then (aI.payments[0].amount == 1)
486500 else false))
487501 then throw("Invalid payment")
488502 else {
489- let S = value(aH.payments[0].assetId)
490- let aO = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
491- if ((aO == aO))
492- then if ((aO == "ART-GIFT_DOUBL"))
493- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], true, "", false))
503+ let S = value(aI.payments[0].assetId)
504+ let aP = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
505+ if ((aP == aP))
506+ then if ((aP == "ART-GIFT_DOUBL"))
507+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], true, "", false))
494508 else throw("Error! Wrong item attached to double rewards!")
495509 else throw("Strict value is not equal to itself.")
496510 }
497511
498512
499513
500-@Callable(aH)
501-func finishRebirthItem (am,aP) = if (if ((size(aH.payments) == 2))
502- then (aH.payments[0].amount == 1)
514+@Callable(aI)
515+func finishRebirthItem (an,aQ) = if (if ((size(aI.payments) == 2))
516+ then (aI.payments[0].amount == 1)
503517 else false)
504518 then {
505- let S = value(aH.payments[0].assetId)
506- let aO = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
507- if ((aO == aO))
508- then if ((aO == "ART-HWERASE"))
509- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], false, aP, false))
510- else if ((aO == "ART-HWRESCUE"))
511- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], false, "", true))
512- else if ((aO == "ART-GIFT_DOUBL"))
513- then ([Burn(S, 1)] ++ al(am, toString(aH.caller), aH.payments[1], true, "", false))
519+ let S = value(aI.payments[0].assetId)
520+ let aP = o(invoke(L(), "checkArtefactDetails", [toBase58String(S)], nil))
521+ if ((aP == aP))
522+ then if ((aP == "ART-HWERASE"))
523+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], false, aQ, false))
524+ else if ((aP == "ART-HWRESCUE"))
525+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], false, "", true))
526+ else if ((aP == "ART-GIFT_DOUBL"))
527+ then ([Burn(S, 1)] ++ am(an, toString(aI.caller), aI.payments[1], true, "", false))
514528 else throw("Error! Wrong item attached ")
515529 else throw("Strict value is not equal to itself.")
516530 }
517- else if ((size(aH.payments) == 1))
518- then al(am, toString(aH.caller), aH.payments[0], false, "", false)
531+ else if ((size(aI.payments) == 1))
532+ then am(an, toString(aI.caller), aI.payments[0], false, "", false)
519533 else throw("Invalid payments")
520534
521535

github/deemru/w8io/026f985 
161.36 ms