tx · GumCjFkMm5ghE2tdDhZqd3JbHqMmtMTo7X8SMPhLA2Uu 3MpLKSQezEyHJk8jn9ikzAaaGuRzy5STBLZ: -0.01900000 Waves 2024.11.08 23:54 [3362992] smart account 3MpLKSQezEyHJk8jn9ikzAaaGuRzy5STBLZ > SELF 0.00000000 Waves
{ "type": 13, "id": "GumCjFkMm5ghE2tdDhZqd3JbHqMmtMTo7X8SMPhLA2Uu", "fee": 1900000, "feeAssetId": null, "timestamp": 1731099289503, "version": 2, "chainId": 84, "sender": "3MpLKSQezEyHJk8jn9ikzAaaGuRzy5STBLZ", "senderPublicKey": "GhefFZdofgfUzRS6kfAZpyXdgER7eYvz5umnwJW1MWtc", "proofs": [ "4FHvTBEeyQPA6o4UxVC76n7LUvXxpvoUxsv5wyHQcvS6MSRMukRKHbYS8uPR7NedR1MCExAfPnEdfqrv6yYUwGQt" ], "script": "base64:BgIkCAISAwoBCBIAEgMKAQgSBQoDCAgBEgYKBAgIAQESAwoBCBIAPQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWEFByRtYXRjaDAFAWECAAEVdHJ5R2V0SW50ZWdlckV4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDXRyeUdldEJvb2xlYW4BA2tleQQHJG1hdGNoMAkAoAgBBQNrZXkDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAUBYgcBDHRyeUdldFN0cmluZwEDa2V5CQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCBQR0aGlzBQNrZXkBCWFzQm9vbGVhbgEFdmFsdWUEByRtYXRjaDAFBXZhbHVlAwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EB2J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ZpcnN0VXNlcgABAAAEEHNlY29uZFVzZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAArUktFY=", "height": 3362992, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CBrwz3KgCufGLQwWEBywDUhsvPkkikMp8Q7rw52zmqjM Next: E9RTSco73GeWnFBCgH4WnepQ6BbHXeJAfGugT6FGHDoN Diff:
Old | New | Differences | |
---|---|---|---|
413 | 413 | let bs = invoke(M(), "topUpReward", nil, [AttachedPayment(F(), (bj / 2))]) | |
414 | 414 | if ((bs == bs)) | |
415 | 415 | then { | |
416 | - | let bt = if ((bj >= 1000000000)) | |
417 | - | then invoke(I(), "recordAction", ["FEEDDUCKLING10"], nil) | |
418 | - | else nil | |
416 | + | let bt = invoke(N(), "topUpReward", ["SPICE", 0], [AttachedPayment(F(), (bj / 10))]) | |
419 | 417 | if ((bt == bt)) | |
420 | - | then if (if ((br != toString(aI.caller))) | |
421 | - | then !(ao()) | |
422 | - | else false) | |
423 | - | then ([BooleanEntry(aj(bg), true)] ++ aN) | |
424 | - | else ([IntegerEntry(be, (bf + 1)), IntegerEntry(bl, (bn + bj)), IntegerEntry(bm, (bo + bj)), IntegerEntry(bp, bj), StringEntry(bk, bq._1), StringEntry((bp + "_debug"), makeString(bq._2, ";")), Burn(F(), (bj / 2))] ++ aN) | |
418 | + | then { | |
419 | + | let bu = if ((bj >= 1000000000)) | |
420 | + | then invoke(I(), "recordAction", ["FEEDDUCKLING10"], nil) | |
421 | + | else nil | |
422 | + | if ((bu == bu)) | |
423 | + | then if (if ((br != toString(aI.caller))) | |
424 | + | then !(ao()) | |
425 | + | else false) | |
426 | + | then ([BooleanEntry(aj(bg), true)] ++ aN) | |
427 | + | else ([IntegerEntry(be, (bf + 1)), IntegerEntry(bl, (bn + bj)), IntegerEntry(bm, (bo + bj)), IntegerEntry(bp, bj), StringEntry(bk, bq._1), StringEntry((bp + "_debug"), makeString(bq._2, ";")), Burn(F(), (bj / 2))] ++ aN) | |
428 | + | else throw("Strict value is not equal to itself.") | |
429 | + | } | |
425 | 430 | else throw("Strict value is not equal to itself.") | |
426 | 431 | } | |
427 | 432 | else throw("Strict value is not equal to itself.") | |
433 | 438 | ||
434 | 439 | ||
435 | 440 | @Callable(aI) | |
436 | - | func fixLevels ( | |
441 | + | func fixLevels (bv) = if (if ((aI.callerPublicKey != base58'GDxBbsDRmeY39quNrDsTXKJzFWbQVtjxHseF4ikxZ7n9')) | |
437 | 442 | then (aI.caller != this) | |
438 | 443 | else false) | |
439 | 444 | then throw("BFL: Not authorized") | |
440 | 445 | else { | |
441 | - | let | |
442 | - | func | |
443 | - | let bl = ac( | |
446 | + | let bw = value(split(bv, ",")) | |
447 | + | func bx (by,bz) = { | |
448 | + | let bl = ac(bz) | |
444 | 449 | let bn = al(bl) | |
445 | - | let | |
446 | - | let | |
447 | - | let bk = af( | |
448 | - | let | |
449 | - | let d = getBoolean((("duckling_" + | |
450 | + | let bA = aa(bz) | |
451 | + | let bB = al(bA) | |
452 | + | let bk = af(bz) | |
453 | + | let bC = { | |
454 | + | let d = getBoolean((("duckling_" + bz) + "_issuedByFeedCall")) | |
450 | 455 | if ($isInstanceOf(d, "Boolean")) | |
451 | 456 | then { | |
452 | 457 | let g = d | |
453 | 458 | if (if ((g == true)) | |
454 | - | then (al(ah( | |
459 | + | then (al(ah(bz)) == 0) | |
455 | 460 | else false) | |
456 | 461 | then toBigInt(0) | |
457 | - | else ap( | |
462 | + | else ap(bz) | |
458 | 463 | } | |
459 | - | else ap( | |
464 | + | else ap(bz) | |
460 | 465 | } | |
461 | 466 | let az = fraction(toBigInt((bn / 100)), toBigInt(S), toBigInt(R)) | |
462 | - | let | |
463 | - | then fraction(toBigInt( | |
467 | + | let bD = if ((bB != 0)) | |
468 | + | then fraction(toBigInt(bB), toBigInt(W), toBigInt(V)) | |
464 | 469 | else toBigInt(0) | |
465 | - | ( | |
470 | + | (by ++ [StringEntry(bk, toString(((bC + az) + bD))), StringEntry("DEBUG", ((((toString(bC) + " ") + toString(az)) + " ") + toString(bD)))]) | |
466 | 471 | } | |
467 | 472 | ||
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | func | |
472 | - | then | |
473 | - | else | |
473 | + | let bE = bw | |
474 | + | let bF = size(bE) | |
475 | + | let bG = nil | |
476 | + | func bH (bI,bJ) = if ((bJ >= bF)) | |
477 | + | then bI | |
478 | + | else bx(bI, bE[bJ]) | |
474 | 479 | ||
475 | - | func | |
476 | - | then | |
480 | + | func bK (bI,bJ) = if ((bJ >= bF)) | |
481 | + | then bI | |
477 | 482 | else throw("List size exceeds 20") | |
478 | 483 | ||
479 | - | | |
484 | + | bK(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bG, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
480 | 485 | } | |
481 | 486 | ||
482 | 487 | ||
487 | 492 | if ((aN == aN)) | |
488 | 493 | then { | |
489 | 494 | let b = toString(aI.caller) | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if (if (( | |
495 | - | then (0 > | |
495 | + | let bL = toBase58String(aI.transactionId) | |
496 | + | let bM = al(U) | |
497 | + | let bN = ((1 * 30) * 1000) | |
498 | + | let bO = (lastBlock.timestamp - (bM + bN)) | |
499 | + | if (if ((bM > 0)) | |
500 | + | then (0 > bO) | |
496 | 501 | else false) | |
497 | - | then throw((("BTD: Can issue ducklings only once per 30s, please wait for " + toString(fraction( | |
502 | + | then throw((("BTD: Can issue ducklings only once per 30s, please wait for " + toString(fraction(bO, 1, 1000))) + " sec.")) | |
498 | 503 | else if ((size(aI.payments) != 2)) | |
499 | 504 | then throw("BTD: Bad payment attached (asset[s] or amount)") | |
500 | 505 | else if ((aI.payments[0].amount != 1)) | |
501 | 506 | then throw("BTD: Please attach a nft!") | |
502 | 507 | else { | |
503 | - | let | |
504 | - | let bh = h(aj(toBase58String( | |
508 | + | let bP = value(assetInfo(value(value(aI.payments[0]).assetId))) | |
509 | + | let bh = h(aj(toBase58String(bP.id))) | |
505 | 510 | if (bh) | |
506 | 511 | then throw("BTD: Can not convert blacklisted duckling!") | |
507 | 512 | else { | |
508 | - | let | |
509 | - | if (( | |
513 | + | let bQ = aG(invoke(this, "calculateDucklingPriceTwoDecimals", nil, nil)) | |
514 | + | if ((bQ == bQ)) | |
510 | 515 | then { | |
511 | - | let | |
512 | - | if ((toBigInt( | |
516 | + | let bR = fraction(bQ, T, 100) | |
517 | + | if ((toBigInt(bR) > as(toBase58String(bP.id)))) | |
513 | 518 | then throw("BTD: Duckling is not grown yet...") | |
514 | - | else if (( | |
519 | + | else if ((bP.issuer != this)) | |
515 | 520 | then throw("BTD: Can use only ducklings from this dApp") | |
516 | 521 | else { | |
517 | - | let | |
518 | - | if (( | |
522 | + | let bS = invoke(H(), "startDuckHatching", [""], nil) | |
523 | + | if ((bS == bS)) | |
519 | 524 | then { | |
520 | - | let | |
521 | - | ([BooleanEntry( | |
525 | + | let bT = ag(toBase58String(bP.id)) | |
526 | + | ([BooleanEntry(bT, true), IntegerEntry(U, lastBlock.timestamp), IntegerEntry(ak(), (al(ak()) + 1))] ++ aN) | |
522 | 527 | } | |
523 | 528 | else throw("Strict value is not equal to itself.") | |
524 | 529 | } | |
531 | 536 | } | |
532 | 537 | ||
533 | 538 | ||
534 | - | @Verifier( | |
535 | - | func | |
536 | - | then sigVerify( | |
539 | + | @Verifier(bU) | |
540 | + | func bV () = if (ao()) | |
541 | + | then sigVerify(bU.bodyBytes, bU.proofs[0], bU.senderPublicKey) | |
537 | 542 | else { | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
543 | + | let bW = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
544 | + | let bX = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
545 | + | let bY = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
546 | + | let bZ = if (sigVerify(bU.bodyBytes, bU.proofs[0], bW)) | |
542 | 547 | then 1 | |
543 | - | else if (sigVerify( | |
548 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[1], bW)) | |
544 | 549 | then 1 | |
545 | - | else if (sigVerify( | |
550 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[2], bW)) | |
546 | 551 | then 1 | |
547 | 552 | else 0 | |
548 | - | let | |
553 | + | let ca = if (sigVerify(bU.bodyBytes, bU.proofs[0], bX)) | |
549 | 554 | then 1 | |
550 | - | else if (sigVerify( | |
555 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[1], bX)) | |
551 | 556 | then 1 | |
552 | - | else if (sigVerify( | |
557 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[2], bX)) | |
553 | 558 | then 1 | |
554 | 559 | else 0 | |
555 | - | let | |
560 | + | let cb = if (sigVerify(bU.bodyBytes, bU.proofs[0], bY)) | |
556 | 561 | then 1 | |
557 | - | else if (sigVerify( | |
562 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[1], bY)) | |
558 | 563 | then 1 | |
559 | - | else if (sigVerify( | |
564 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[2], bY)) | |
560 | 565 | then 1 | |
561 | 566 | else 0 | |
562 | - | let | |
563 | - | let d = | |
564 | - | ( | |
567 | + | let cc = ((bZ + ca) + cb) | |
568 | + | let d = bU | |
569 | + | (cc >= 2) | |
565 | 570 | } | |
566 | 571 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | 5 | let d = getString(b, c) | |
6 | 6 | if ($isInstanceOf(d, "String")) | |
7 | 7 | then { | |
8 | 8 | let e = d | |
9 | 9 | e | |
10 | 10 | } | |
11 | 11 | else "" | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (b,c) = { | |
16 | 16 | let d = getInteger(b, c) | |
17 | 17 | if ($isInstanceOf(d, "Int")) | |
18 | 18 | then { | |
19 | 19 | let g = d | |
20 | 20 | g | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func h (c) = { | |
27 | 27 | let d = getBoolean(c) | |
28 | 28 | if ($isInstanceOf(d, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let g = d | |
31 | 31 | g | |
32 | 32 | } | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func i (c) = a(this, c) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func j (k) = { | |
41 | 41 | let d = k | |
42 | 42 | if ($isInstanceOf(d, "Boolean")) | |
43 | 43 | then { | |
44 | 44 | let l = d | |
45 | 45 | l | |
46 | 46 | } | |
47 | 47 | else throw("BDA: wrong type, expected: Boolean") | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func m () = "static_oracleAddress" | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func n () = "static_ducklingPrice" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func o () = "static_eggAssetId" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func p () = "static_spiceAssetId" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func q () = "static_rebirthAddress" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func r () = "static_incubatorAddress" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func s () = "static_couponsAddress" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func t () = "static_burnAddress" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func u () = "static_refContractAddress" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func v () = "static_backendPubKey" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func w () = "static_extraFee" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func x () = "static_feeAggregator" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func y () = "static_turtleStakingAddress" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func z () = "static_mutantFarmingAddress" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func A () = "static_canineRebirthAddress" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func B () = "static_felineRebirthAddress" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func C () = Address(fromBase58String(i(m()))) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func D () = f(C(), n()) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func E () = fromBase58String(a(C(), o())) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func F () = fromBase58String(a(C(), p())) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func G () = Address(fromBase58String(a(C(), q()))) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func H () = Address(fromBase58String(a(C(), r()))) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func I () = Address(fromBase58String(a(C(), s()))) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func J () = Address(fromBase58String(a(C(), t()))) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func K () = Address(fromBase58String(a(C(), u()))) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func L () = Address(fromBase58String(a(C(), x()))) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func M () = Address(fromBase58String(a(C(), y()))) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func N () = Address(fromBase58String(a(C(), z()))) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func O () = Address(fromBase58String(a(C(), A()))) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func P () = Address(fromBase58String(a(C(), B()))) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | let Q = fromBase58String(getStringValue(C(), v())) | |
142 | 142 | ||
143 | 143 | let R = 100000000 | |
144 | 144 | ||
145 | 145 | let S = 10000000000000000 | |
146 | 146 | ||
147 | 147 | let T = 100000000000000 | |
148 | 148 | ||
149 | 149 | let U = "global_issued_timestamp" | |
150 | 150 | ||
151 | 151 | let V = 80000000 | |
152 | 152 | ||
153 | 153 | let W = 10000000000000000 | |
154 | 154 | ||
155 | 155 | func X (Y) = if (isDefined(Y.assetId)) | |
156 | 156 | then throw("BDCAP: Please attach waves") | |
157 | 157 | else { | |
158 | 158 | let Z = getIntegerValue(C(), w()) | |
159 | 159 | if ((Y.amount != Z)) | |
160 | 160 | then throw((("BDCAP: Please attach exactly " + toString(Z)) + " amount of wavelets")) | |
161 | 161 | else [ScriptTransfer(L(), Z, unit)] | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func aa (ab) = (("duckling_" + ab) + "_feed") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ac (ab) = (("duckling_" + ab) + "_feed_spice") | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func ad (b) = (("user_" + b) + "_feed") | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ae (b) = (("address_" + b) + "_nonce") | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func af (ab) = (("duckling_" + ab) + "_level") | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func ag (ab) = (("duckling_" + ab) + "_grown") | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ah (ab) = (("duckling_" + ab) + "_startPercentage") | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func ai (ab) = (("duckling_" + ab) + "_owner") | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aj (ab) = (("duckling_" + ab) + "_blacklisted") | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func ak () = "adult_ducklings" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func al (c) = { | |
196 | 196 | let am = { | |
197 | 197 | let d = getInteger(this, c) | |
198 | 198 | if ($isInstanceOf(d, "Int")) | |
199 | 199 | then { | |
200 | 200 | let g = d | |
201 | 201 | g | |
202 | 202 | } | |
203 | 203 | else 0 | |
204 | 204 | } | |
205 | 205 | am | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func an (c) = { | |
210 | 210 | let d = getBoolean(this, c) | |
211 | 211 | if ($isInstanceOf(d, "Boolean")) | |
212 | 212 | then { | |
213 | 213 | let g = d | |
214 | 214 | g | |
215 | 215 | } | |
216 | 216 | else false | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func ao () = an("TESTENV") | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func ap (ab) = { | |
224 | 224 | let aq = al(ah(ab)) | |
225 | 225 | let ar = if ((aq != 0)) | |
226 | 226 | then aq | |
227 | 227 | else 5 | |
228 | 228 | toBigInt((ar * T)) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func as (ab) = { | |
233 | 233 | let at = af(ab) | |
234 | 234 | let d = getString(at) | |
235 | 235 | if ($isInstanceOf(d, "String")) | |
236 | 236 | then { | |
237 | 237 | let au = d | |
238 | 238 | parseBigIntValue(au) | |
239 | 239 | } | |
240 | 240 | else { | |
241 | 241 | let av = getBoolean((("duckling_" + ab) + "_issuedByFeedCall")) | |
242 | 242 | if ($isInstanceOf(av, "Boolean")) | |
243 | 243 | then { | |
244 | 244 | let g = av | |
245 | 245 | if (if ((g == true)) | |
246 | 246 | then (al(ah(ab)) == 0) | |
247 | 247 | else false) | |
248 | 248 | then toBigInt(0) | |
249 | 249 | else ap(ab) | |
250 | 250 | } | |
251 | 251 | else ap(ab) | |
252 | 252 | } | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func aw (ab,ax) = { | |
257 | 257 | let ay = lastBlock.timestamp | |
258 | 258 | let az = (fraction(toBigInt(ax), toBigInt(S), toBigInt(R)) / toBigInt(100)) | |
259 | 259 | let aA = as(ab) | |
260 | 260 | let aB = (aA + az) | |
261 | 261 | let aC = toString(aB) | |
262 | 262 | $Tuple2(aC, [("currentLevel=" + toString(aA)), ("newLevel=" + toString(aB)), ("growth=" + toString(az))]) | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func aD (aE,aF,b) = makeString([toString(aE), toString(aF), b], ";") | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func aG (k) = { | |
270 | 270 | let d = k | |
271 | 271 | if ($isInstanceOf(d, "Int")) | |
272 | 272 | then { | |
273 | 273 | let aH = d | |
274 | 274 | aH | |
275 | 275 | } | |
276 | 276 | else throw("BAI: wrong type, expected: Int") | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(aI) | |
281 | 281 | func configureOracle (aJ) = if ((aI.caller != this)) | |
282 | 282 | then throw("BCO: admin only") | |
283 | 283 | else [StringEntry(m(), aJ)] | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | ||
287 | 287 | @Callable(aI) | |
288 | 288 | func calculateDucklingPriceTwoDecimals () = { | |
289 | 289 | let aK = al(ak()) | |
290 | 290 | let aL = max([(1900 + pow(aK, 0, 6, 1, 2, HALFUP)), 10000]) | |
291 | 291 | $Tuple2([StringEntry("DEBUG_PRICE", toString(aL))], aL) | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | ||
296 | 296 | @Callable(aI) | |
297 | 297 | func buyDuckling (aM) = { | |
298 | 298 | let aN = X(aI.payments[0]) | |
299 | 299 | if ((aN == aN)) | |
300 | 300 | then { | |
301 | 301 | let aO = D() | |
302 | 302 | if ((50000000 > aO)) | |
303 | 303 | then throw("BBD: Invalid price from oracle!") | |
304 | 304 | else { | |
305 | 305 | let aP = aG(invoke(I(), "useCoupons", [aO], nil)) | |
306 | 306 | if ((aP == aP)) | |
307 | 307 | then { | |
308 | 308 | let aQ = (aO - aP) | |
309 | 309 | let Y = if ((aQ != 0)) | |
310 | 310 | then { | |
311 | 311 | let aR = value(aI.payments[1]) | |
312 | 312 | if ((aR.assetId != E())) | |
313 | 313 | then throw(("BBD: You can attach only EGG tokens with the following asset id: " + toBase58String(E()))) | |
314 | 314 | else if ((aR.amount != aQ)) | |
315 | 315 | then throw(("BBD: To buy a perch you currently need the following amount of EGGlets: " + toString(aQ))) | |
316 | 316 | else { | |
317 | 317 | let aS = fraction(aQ, 5, 100) | |
318 | 318 | let aT = j(invoke(K(), "refPayment", [aM], [AttachedPayment(E(), aS)])) | |
319 | 319 | if ((aT == aT)) | |
320 | 320 | then { | |
321 | 321 | let aU = if (aT) | |
322 | 322 | then (aQ - aS) | |
323 | 323 | else aQ | |
324 | 324 | let aV = invoke(J(), "burnAttachedPayments", nil, [AttachedPayment(E(), aU)]) | |
325 | 325 | if ((aV == aV)) | |
326 | 326 | then aQ | |
327 | 327 | else throw("Strict value is not equal to itself.") | |
328 | 328 | } | |
329 | 329 | else throw("Strict value is not equal to itself.") | |
330 | 330 | } | |
331 | 331 | } | |
332 | 332 | else 0 | |
333 | 333 | if ((Y == Y)) | |
334 | 334 | then { | |
335 | 335 | let aW = invoke(this, "issueFreeDuckling", [toString(aI.originCaller), toBase58String(aI.transactionId), 0], nil) | |
336 | 336 | if ((aW == aW)) | |
337 | 337 | then aN | |
338 | 338 | else throw("Strict value is not equal to itself.") | |
339 | 339 | } | |
340 | 340 | else throw("Strict value is not equal to itself.") | |
341 | 341 | } | |
342 | 342 | else throw("Strict value is not equal to itself.") | |
343 | 343 | } | |
344 | 344 | } | |
345 | 345 | else throw("Strict value is not equal to itself.") | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(aI) | |
351 | 351 | func issueFreeDuckling (b,aX,aY) = if (if (if (if ((aI.caller != this)) | |
352 | 352 | then (aI.caller != G()) | |
353 | 353 | else false) | |
354 | 354 | then (aI.caller != O()) | |
355 | 355 | else false) | |
356 | 356 | then (aI.caller != P()) | |
357 | 357 | else false) | |
358 | 358 | then throw("BIFD: You can't issue free duckling") | |
359 | 359 | else { | |
360 | 360 | let aZ = Issue("BABY-11111111-GZ", "", 1, 0, false, unit, height) | |
361 | 361 | let ba = calculateAssetId(aZ) | |
362 | 362 | $Tuple2([StringEntry((((b + "_") + aX) + "_di"), toBase58String(ba)), IntegerEntry("stats_amount", (al("stats_amount") + 1)), IntegerEntry(ah(toBase58String(ba)), aY), StringEntry(ai(toBase58String(ba)), b), aZ, ScriptTransfer(value(addressFromString(b)), 1, ba)], toBase58String(ba)) | |
363 | 363 | } | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | ||
367 | 367 | @Callable(aI) | |
368 | 368 | func feedDuckling (ab,bb,aE,aF) = { | |
369 | 369 | let aN = X(aI.payments[1]) | |
370 | 370 | if ((aN == aN)) | |
371 | 371 | then { | |
372 | 372 | let bc = toString(aI.caller) | |
373 | 373 | let bd = aD(aE, aF, bc) | |
374 | 374 | let be = ae(bc) | |
375 | 375 | let bf = al(be) | |
376 | 376 | let bg = if (!(sigVerify_8Kb(toBytes(bd), fromBase58String(bb), Q))) | |
377 | 377 | then throw("BFD: Invalid proof from backend") | |
378 | 378 | else if (if ((size(aI.payments) != 2)) | |
379 | 379 | then true | |
380 | 380 | else (value(aI.payments[0]).assetId != F())) | |
381 | 381 | then throw("BFD: Bad payment attached (asset[s] or amount)") | |
382 | 382 | else if (an(ag(ab))) | |
383 | 383 | then throw("BFD: Duckling is already grown") | |
384 | 384 | else if ((aF != (bf + 1))) | |
385 | 385 | then throw(((("BFD: User Nonce should be " + toString(bf)) + " + 1, while received ") + toString(aF))) | |
386 | 386 | else { | |
387 | 387 | let bh = h(aj(ab)) | |
388 | 388 | if (bh) | |
389 | 389 | then throw("BFD: Can not feed blacklisted duckling!") | |
390 | 390 | else if ((ab == "")) | |
391 | 391 | then throw("BFD: Please buy a duckling first!") | |
392 | 392 | else { | |
393 | 393 | let bi = value(assetInfo(fromBase58String(ab))) | |
394 | 394 | if ((assetBalance(aI.caller, bi.id) != 1)) | |
395 | 395 | then throw("BFD: You're not the owner of the duckling") | |
396 | 396 | else if ((bi.issuer != this)) | |
397 | 397 | then throw("BFD: Cant find duckling with such id") | |
398 | 398 | else toBase58String(bi.id) | |
399 | 399 | } | |
400 | 400 | } | |
401 | 401 | let bj = value(aI.payments[0]).amount | |
402 | 402 | let bk = af(bg) | |
403 | 403 | let bl = ac(bg) | |
404 | 404 | let bm = ad(bc) | |
405 | 405 | let bn = al(bl) | |
406 | 406 | let bo = al(bm) | |
407 | 407 | let bp = ((("duckling_" + bg) + "_stat_") + toString(lastBlock.timestamp)) | |
408 | 408 | if ((bj > aE)) | |
409 | 409 | then throw(("BFD: Cannot feed duckling for such amount, max feed amount is: " + toString(aE))) | |
410 | 410 | else { | |
411 | 411 | let bq = aw(bg, bj) | |
412 | 412 | let br = i(ai(bg)) | |
413 | 413 | let bs = invoke(M(), "topUpReward", nil, [AttachedPayment(F(), (bj / 2))]) | |
414 | 414 | if ((bs == bs)) | |
415 | 415 | then { | |
416 | - | let bt = if ((bj >= 1000000000)) | |
417 | - | then invoke(I(), "recordAction", ["FEEDDUCKLING10"], nil) | |
418 | - | else nil | |
416 | + | let bt = invoke(N(), "topUpReward", ["SPICE", 0], [AttachedPayment(F(), (bj / 10))]) | |
419 | 417 | if ((bt == bt)) | |
420 | - | then if (if ((br != toString(aI.caller))) | |
421 | - | then !(ao()) | |
422 | - | else false) | |
423 | - | then ([BooleanEntry(aj(bg), true)] ++ aN) | |
424 | - | else ([IntegerEntry(be, (bf + 1)), IntegerEntry(bl, (bn + bj)), IntegerEntry(bm, (bo + bj)), IntegerEntry(bp, bj), StringEntry(bk, bq._1), StringEntry((bp + "_debug"), makeString(bq._2, ";")), Burn(F(), (bj / 2))] ++ aN) | |
418 | + | then { | |
419 | + | let bu = if ((bj >= 1000000000)) | |
420 | + | then invoke(I(), "recordAction", ["FEEDDUCKLING10"], nil) | |
421 | + | else nil | |
422 | + | if ((bu == bu)) | |
423 | + | then if (if ((br != toString(aI.caller))) | |
424 | + | then !(ao()) | |
425 | + | else false) | |
426 | + | then ([BooleanEntry(aj(bg), true)] ++ aN) | |
427 | + | else ([IntegerEntry(be, (bf + 1)), IntegerEntry(bl, (bn + bj)), IntegerEntry(bm, (bo + bj)), IntegerEntry(bp, bj), StringEntry(bk, bq._1), StringEntry((bp + "_debug"), makeString(bq._2, ";")), Burn(F(), (bj / 2))] ++ aN) | |
428 | + | else throw("Strict value is not equal to itself.") | |
429 | + | } | |
425 | 430 | else throw("Strict value is not equal to itself.") | |
426 | 431 | } | |
427 | 432 | else throw("Strict value is not equal to itself.") | |
428 | 433 | } | |
429 | 434 | } | |
430 | 435 | else throw("Strict value is not equal to itself.") | |
431 | 436 | } | |
432 | 437 | ||
433 | 438 | ||
434 | 439 | ||
435 | 440 | @Callable(aI) | |
436 | - | func fixLevels ( | |
441 | + | func fixLevels (bv) = if (if ((aI.callerPublicKey != base58'GDxBbsDRmeY39quNrDsTXKJzFWbQVtjxHseF4ikxZ7n9')) | |
437 | 442 | then (aI.caller != this) | |
438 | 443 | else false) | |
439 | 444 | then throw("BFL: Not authorized") | |
440 | 445 | else { | |
441 | - | let | |
442 | - | func | |
443 | - | let bl = ac( | |
446 | + | let bw = value(split(bv, ",")) | |
447 | + | func bx (by,bz) = { | |
448 | + | let bl = ac(bz) | |
444 | 449 | let bn = al(bl) | |
445 | - | let | |
446 | - | let | |
447 | - | let bk = af( | |
448 | - | let | |
449 | - | let d = getBoolean((("duckling_" + | |
450 | + | let bA = aa(bz) | |
451 | + | let bB = al(bA) | |
452 | + | let bk = af(bz) | |
453 | + | let bC = { | |
454 | + | let d = getBoolean((("duckling_" + bz) + "_issuedByFeedCall")) | |
450 | 455 | if ($isInstanceOf(d, "Boolean")) | |
451 | 456 | then { | |
452 | 457 | let g = d | |
453 | 458 | if (if ((g == true)) | |
454 | - | then (al(ah( | |
459 | + | then (al(ah(bz)) == 0) | |
455 | 460 | else false) | |
456 | 461 | then toBigInt(0) | |
457 | - | else ap( | |
462 | + | else ap(bz) | |
458 | 463 | } | |
459 | - | else ap( | |
464 | + | else ap(bz) | |
460 | 465 | } | |
461 | 466 | let az = fraction(toBigInt((bn / 100)), toBigInt(S), toBigInt(R)) | |
462 | - | let | |
463 | - | then fraction(toBigInt( | |
467 | + | let bD = if ((bB != 0)) | |
468 | + | then fraction(toBigInt(bB), toBigInt(W), toBigInt(V)) | |
464 | 469 | else toBigInt(0) | |
465 | - | ( | |
470 | + | (by ++ [StringEntry(bk, toString(((bC + az) + bD))), StringEntry("DEBUG", ((((toString(bC) + " ") + toString(az)) + " ") + toString(bD)))]) | |
466 | 471 | } | |
467 | 472 | ||
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | func | |
472 | - | then | |
473 | - | else | |
473 | + | let bE = bw | |
474 | + | let bF = size(bE) | |
475 | + | let bG = nil | |
476 | + | func bH (bI,bJ) = if ((bJ >= bF)) | |
477 | + | then bI | |
478 | + | else bx(bI, bE[bJ]) | |
474 | 479 | ||
475 | - | func | |
476 | - | then | |
480 | + | func bK (bI,bJ) = if ((bJ >= bF)) | |
481 | + | then bI | |
477 | 482 | else throw("List size exceeds 20") | |
478 | 483 | ||
479 | - | | |
484 | + | bK(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bH(bG, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
480 | 485 | } | |
481 | 486 | ||
482 | 487 | ||
483 | 488 | ||
484 | 489 | @Callable(aI) | |
485 | 490 | func turnDucklingIntoDuck () = { | |
486 | 491 | let aN = X(aI.payments[1]) | |
487 | 492 | if ((aN == aN)) | |
488 | 493 | then { | |
489 | 494 | let b = toString(aI.caller) | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if (if (( | |
495 | - | then (0 > | |
495 | + | let bL = toBase58String(aI.transactionId) | |
496 | + | let bM = al(U) | |
497 | + | let bN = ((1 * 30) * 1000) | |
498 | + | let bO = (lastBlock.timestamp - (bM + bN)) | |
499 | + | if (if ((bM > 0)) | |
500 | + | then (0 > bO) | |
496 | 501 | else false) | |
497 | - | then throw((("BTD: Can issue ducklings only once per 30s, please wait for " + toString(fraction( | |
502 | + | then throw((("BTD: Can issue ducklings only once per 30s, please wait for " + toString(fraction(bO, 1, 1000))) + " sec.")) | |
498 | 503 | else if ((size(aI.payments) != 2)) | |
499 | 504 | then throw("BTD: Bad payment attached (asset[s] or amount)") | |
500 | 505 | else if ((aI.payments[0].amount != 1)) | |
501 | 506 | then throw("BTD: Please attach a nft!") | |
502 | 507 | else { | |
503 | - | let | |
504 | - | let bh = h(aj(toBase58String( | |
508 | + | let bP = value(assetInfo(value(value(aI.payments[0]).assetId))) | |
509 | + | let bh = h(aj(toBase58String(bP.id))) | |
505 | 510 | if (bh) | |
506 | 511 | then throw("BTD: Can not convert blacklisted duckling!") | |
507 | 512 | else { | |
508 | - | let | |
509 | - | if (( | |
513 | + | let bQ = aG(invoke(this, "calculateDucklingPriceTwoDecimals", nil, nil)) | |
514 | + | if ((bQ == bQ)) | |
510 | 515 | then { | |
511 | - | let | |
512 | - | if ((toBigInt( | |
516 | + | let bR = fraction(bQ, T, 100) | |
517 | + | if ((toBigInt(bR) > as(toBase58String(bP.id)))) | |
513 | 518 | then throw("BTD: Duckling is not grown yet...") | |
514 | - | else if (( | |
519 | + | else if ((bP.issuer != this)) | |
515 | 520 | then throw("BTD: Can use only ducklings from this dApp") | |
516 | 521 | else { | |
517 | - | let | |
518 | - | if (( | |
522 | + | let bS = invoke(H(), "startDuckHatching", [""], nil) | |
523 | + | if ((bS == bS)) | |
519 | 524 | then { | |
520 | - | let | |
521 | - | ([BooleanEntry( | |
525 | + | let bT = ag(toBase58String(bP.id)) | |
526 | + | ([BooleanEntry(bT, true), IntegerEntry(U, lastBlock.timestamp), IntegerEntry(ak(), (al(ak()) + 1))] ++ aN) | |
522 | 527 | } | |
523 | 528 | else throw("Strict value is not equal to itself.") | |
524 | 529 | } | |
525 | 530 | } | |
526 | 531 | else throw("Strict value is not equal to itself.") | |
527 | 532 | } | |
528 | 533 | } | |
529 | 534 | } | |
530 | 535 | else throw("Strict value is not equal to itself.") | |
531 | 536 | } | |
532 | 537 | ||
533 | 538 | ||
534 | - | @Verifier( | |
535 | - | func | |
536 | - | then sigVerify( | |
539 | + | @Verifier(bU) | |
540 | + | func bV () = if (ao()) | |
541 | + | then sigVerify(bU.bodyBytes, bU.proofs[0], bU.senderPublicKey) | |
537 | 542 | else { | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
543 | + | let bW = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
544 | + | let bX = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
545 | + | let bY = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
546 | + | let bZ = if (sigVerify(bU.bodyBytes, bU.proofs[0], bW)) | |
542 | 547 | then 1 | |
543 | - | else if (sigVerify( | |
548 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[1], bW)) | |
544 | 549 | then 1 | |
545 | - | else if (sigVerify( | |
550 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[2], bW)) | |
546 | 551 | then 1 | |
547 | 552 | else 0 | |
548 | - | let | |
553 | + | let ca = if (sigVerify(bU.bodyBytes, bU.proofs[0], bX)) | |
549 | 554 | then 1 | |
550 | - | else if (sigVerify( | |
555 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[1], bX)) | |
551 | 556 | then 1 | |
552 | - | else if (sigVerify( | |
557 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[2], bX)) | |
553 | 558 | then 1 | |
554 | 559 | else 0 | |
555 | - | let | |
560 | + | let cb = if (sigVerify(bU.bodyBytes, bU.proofs[0], bY)) | |
556 | 561 | then 1 | |
557 | - | else if (sigVerify( | |
562 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[1], bY)) | |
558 | 563 | then 1 | |
559 | - | else if (sigVerify( | |
564 | + | else if (sigVerify(bU.bodyBytes, bU.proofs[2], bY)) | |
560 | 565 | then 1 | |
561 | 566 | else 0 | |
562 | - | let | |
563 | - | let d = | |
564 | - | ( | |
567 | + | let cc = ((bZ + ca) + cb) | |
568 | + | let d = bU | |
569 | + | (cc >= 2) | |
565 | 570 | } | |
566 | 571 |
github/deemru/w8io/169f3d6 112.30 ms ◑