tx · A4MpZkcfD8CUmaNtusZTvkrS9RdWe6CQFGoBxPmQmgdq

3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA:  -0.02500000 Waves

2023.07.05 15:11 [2652603] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves

{ "type": 13, "id": "A4MpZkcfD8CUmaNtusZTvkrS9RdWe6CQFGoBxPmQmgdq", "fee": 2500000, "feeAssetId": null, "timestamp": 1688559103097, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "2M5zs1aTEcD5L8MLPkcxSJTmZdZtxrtyff9vd27uzJ2rGKBjv6RT1kqbYYxF1DhDuJ6VFczCBcsy63MyQqtn2LTf" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUA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uaWwFA25pbAkAzAgCCQD8BwQFFGZhY3RvcnlBZGRyZXNzT3JGYWlsAgxpbnRlZ2VyRW50cnkJAMwIAgkBC2tleUludmVzdGVkAQUEdW5pdAkAzAgCCQBkAgUIaW52ZXN0ZWQFGnJld2FyZFRvTWFpblRyZWFzdXJ5QW1vdW50BQNuaWwFA25pbAUDbmlsAwkAAAIFB2FjdGlvbnMFB2FjdGlvbnMJAJQKAgUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQJcHVibGljS2V5BAckbWF0Y2gwCQEZZ2V0TWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQDcHViBQckbWF0Y2gwBQNwdWIIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXB1YmxpY0tleSKu6e8=", "chainId": 84, "height": 2652603, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2vR8ERZxpps5k958HXZ4WrVupTxnExYJJu8xUSqPVFi9 Next: DPFPUjQknkXcW39XR6YG7J82qbzUbjTKmSA75aVPE61d Diff:
OldNewDifferences
321321 else 0, c)
322322 let aX = ((aS - aW) + aV)
323323 let aY = ((aT - aV) + aW)
324- let aZ = (aM + aY)
325- let ba = (aL + aX)
326- let bb = (aE + 1)
327- let bc = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity
328- let bd = fraction(aZ, c, bc)
329- let be = valueOrElse(getInteger(U, I()), 0)
330- let bf = max([0, fraction(be, bd, c)])
331- let bg = if ((size(ah.payments) > 0))
324+ let aZ = (aL + aX)
325+ let ba = (aM + aY)
326+ let bb = min([0, aZ])
327+ let bc = min([0, ba])
328+ let bd = (max([0, aZ]) + bc)
329+ let be = (max([0, ba]) + bb)
330+ let bf = (aE + 1)
331+ let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity
332+ let bh = fraction(be, c, bg)
333+ let bi = valueOrElse(getInteger(U, I()), 0)
334+ let bj = max([0, fraction(bi, bh, c)])
335+ let bk = if ((size(ah.payments) > 0))
332336 then ah.payments[0]
333337 else unit
334- let bh = value(bg).amount
335- let bi = value(bg).assetId
336- let bj = if (if ((bf == 0))
338+ let bl = value(bk).amount
339+ let bm = value(bk).assetId
340+ let bn = if (if ((bj == 0))
337341 then true
338- else if (if ((bg != unit))
339- then (bi == unit)
342+ else if (if ((bk != unit))
343+ then (bm == unit)
340344 else false)
341- then (bh >= bf)
345+ then (bl >= bj)
342346 else false)
343347 then true
344- else i(("invalid payments, payment amount min: " + toString(bf)))
345- if ((bj == bj))
348+ else i(("invalid payments, payment amount min: " + toString(bj)))
349+ if ((bn == bn))
346350 then {
347- let bk = if ((bg != unit))
348- then [ScriptTransfer(U, bh, bi)]
351+ let bo = if ((bk != unit))
352+ then [ScriptTransfer(U, bl, bm)]
349353 else nil
350- let aA = [invoke(U, "integerEntry", [z(), bb], nil), invoke(U, "integerEntry", [A(bb), bd], nil), invoke(U, "integerEntry", [C(bb), (aJ + 1)], nil), invoke(U, "burn", [be], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), aZ], nil), invoke(U, "integerEntry", [v(unit), ba], nil)]
351- $Tuple2(bk, aA)
354+ let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [bi], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), be], nil), invoke(U, "integerEntry", [v(unit), bd], nil)]
355+ $Tuple2(bo, aA)
352356 }
353357 else throw("Strict value is not equal to itself.")
354358 }
367371 let x = Address(aw)
368372 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
369373 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
370- let bl = if ((size(ah.payments) == 1))
374+ let bp = if ((size(ah.payments) == 1))
371375 then ah.payments[0]
372376 else i("invalid payments")
373- let bm = if (if ((bl.assetId == unit))
374- then (bl.amount > 0)
377+ let bq = if (if ((bp.assetId == unit))
378+ then (bp.amount > 0)
375379 else false)
376- then $Tuple2(bl.amount, bl.assetId)
380+ then $Tuple2(bp.amount, bp.assetId)
377381 else i("invalid payment amount")
378- let bh = bm._1
379- let bi = bm._2
382+ let bl = bq._1
383+ let bm = bq._2
380384 let N = if ((aH > 0))
381- then fraction(bh, c, aH)
385+ then fraction(bl, c, aH)
382386 else 0
383- let bn = valueOrElse(getInteger(U, u(unit)), 0)
384- let bk = [ScriptTransfer(ac, bh, bi)]
385- let aA = [invoke(U, "integerEntry", [u(unit), (bn + bh)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
386- $Tuple2(bk, aA)
387+ let br = valueOrElse(getInteger(U, u(unit)), 0)
388+ let bo = [ScriptTransfer(ac, bl, bm)]
389+ let aA = [invoke(U, "integerEntry", [u(unit), (br + bl)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
390+ $Tuple2(bo, aA)
387391 }
388392 else throw("Strict value is not equal to itself.")
389393 }
397401 then {
398402 let x = Address(aw)
399403 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
400- let bl = if ((size(ah.payments) == 1))
404+ let bp = if ((size(ah.payments) == 1))
401405 then ah.payments[0]
402406 else i(g("invalid payments"))
403- let bi = if ((bl.assetId == Y))
407+ let bm = if ((bp.assetId == Y))
404408 then Y
405409 else i("invalid payment asset")
406- let bh = if ((bl.amount > 0))
407- then bl.amount
410+ let bl = if ((bp.amount > 0))
411+ then bp.amount
408412 else i("invalid payment amount")
409- let bo = valueOrElse(getInteger(U, I()), 0)
410- let bk = [ScriptTransfer(U, bh, bi)]
411- let aA = [invoke(U, "integerEntry", [I(), (bo + bh)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bh, (aE + 1), unit)], nil)]
413+ let bs = valueOrElse(getInteger(U, I()), 0)
414+ let bo = [ScriptTransfer(U, bl, bm)]
415+ let aA = [invoke(U, "integerEntry", [I(), (bs + bl)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bl, (aE + 1), unit)], nil)]
412416 if ((aA == aA))
413- then $Tuple2(bk, aA)
417+ then $Tuple2(bo, aA)
414418 else throw("Strict value is not equal to itself.")
415419 }
416420 else throw("Strict value is not equal to itself.")
424428 if ((ax == ax))
425429 then {
426430 let x = Address(aw)
427- let bp = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
431+ let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
428432 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
429- let bq = R(bp)
430- let M = bq._1
431- let N = bq._2
432- let O = bq._3
433- let P = bq._4
433+ let bu = R(bt)
434+ let M = bu._1
435+ let N = bu._2
436+ let O = bu._3
437+ let P = bu._4
434438 let aK = [if ((M == d))
435439 then true
436440 else i("invalid withdrawal request status"), if ((O > aE))
438442 else i("invalid withdrawal request period")]
439443 if ((aK == aK))
440444 then {
441- let bo = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount"))
442- let aA = [invoke(U, "integerEntry", [I(), if ((bo >= N))
443- then (bo - N)
445+ let bs = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount"))
446+ let aA = [invoke(U, "integerEntry", [I(), if ((bs >= N))
447+ then (bs - N)
444448 else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
445449 if ((aA == aA))
446450 then $Tuple2(nil, aA)
460464 then {
461465 let x = Address(aw)
462466 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
463- let bp = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
464- let br = R(bp)
465- let M = br._1
466- let N = br._2
467- let O = br._3
468- let P = br._4
467+ let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
468+ let bv = R(bt)
469+ let M = bv._1
470+ let N = bv._2
471+ let O = bv._3
472+ let P = bv._4
469473 if ((M == e))
470474 then i("invalid withdrawal request status")
471475 else if ((O > aE))
472476 then i("invalid withdrawal request period")
473477 else {
474- let bs = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
475- let bt = if ((bs > 0))
476- then fraction(N, bs, c)
478+ let bw = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
479+ let bx = if ((bw > 0))
480+ then fraction(N, bw, c)
477481 else 0
478- let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bt], nil)]
482+ let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bx], nil)]
479483 $Tuple2(nil, aA)
480484 }
481485 }
496500 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
497501 let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process"))
498502 let aJ = ((aG + aF) - 1)
499- let bu = 40
500- let bv = if (if (if ((height >= aI))
503+ let by = 40
504+ let bz = if (if (if ((height >= aI))
501505 then if ((aI >= aG))
502506 then true
503507 else (aE == 0)
504508 else false)
505509 then (aJ >= aI)
506510 else false)
507- then min([((aJ - aI) + 1), bu])
511+ then min([((aJ - aI) + 1), by])
508512 else i(g("invalid target block"))
509- let bw = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward"))
510- let bx = (bw / bv)
511- let by = (bw - (bx * bv))
512- func bz (bA,bB) = if ((bB >= bv))
513- then bA
513+ let bA = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward"))
514+ let bB = (bA / bz)
515+ let bC = (bA - (bB * bz))
516+ func bD (bE,bF) = if ((bF >= bz))
517+ then bE
514518 else {
515- let bC = (aI + bB)
516- let bD = valueOrErrorMessage(blockInfoByHeight(bC), g("invalid block info"))
517- let bE = valueOrErrorMessage(ak(bD.rewards, aa), g(("invalid treasury reward for height " + toString(bC))))
518- let bF = bD.generator
519- let ay = valueOrElse(getInteger(U, w(bF)), 0)
520- let bG = if ((bB == (bv - 1)))
521- then (bx + by)
522- else bx
519+ let bG = (aI + bF)
520+ let bH = valueOrErrorMessage(blockInfoByHeight(bG), g("invalid block info"))
521+ let bI = valueOrErrorMessage(ak(bH.rewards, aa), g(("invalid treasury reward for height " + toString(bG))))
522+ let bJ = bH.generator
523+ let ay = valueOrElse(getInteger(U, w(bJ)), 0)
524+ let bK = if ((bF == (bz - 1)))
525+ then (bB + bC)
526+ else bB
523527 let N = if ((aH > 0))
524- then fraction((bE - bG), c, aH)
528+ then fraction((bI - bK), c, aH)
525529 else 0
526- let bH = [invoke(U, "stringEntry", [G(bC), makeString([toBase58String(ah.transactionId), toString(aE), toString(bF), toBase58String(aw), toString(bE), toString(bG), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bF), (ay + N)], nil)]
527- if ((bH == bH))
530+ let bL = [invoke(U, "stringEntry", [G(bG), makeString([toBase58String(ah.transactionId), toString(aE), toString(bJ), toBase58String(aw), toString(bI), toString(bK), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bJ), (ay + N)], nil)]
531+ if ((bL == bL))
528532 then {
529- let bI = bA
530- let bJ = bI._1
531- let bK = bI._2
532- $Tuple2((bJ + N), (bK + bE))
533+ let bM = bE
534+ let bN = bM._1
535+ let bO = bM._2
536+ $Tuple2((bN + N), (bO + bI))
533537 }
534538 else throw("Strict value is not equal to itself.")
535539 }
536540
537- let bL = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
538- let bM = {
539- let bN = bL
540- let bO = size(bN)
541- let bP = $Tuple2(0, 0)
542- func bQ (bR,bS) = if ((bS >= bO))
543- then bR
544- else bz(bR, bN[bS])
541+ let bP = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
542+ let bQ = {
543+ let bR = bP
544+ let bS = size(bR)
545+ let bT = $Tuple2(0, 0)
546+ func bU (bV,bW) = if ((bW >= bS))
547+ then bV
548+ else bD(bV, bR[bW])
545549
546- func bT (bR,bS) = if ((bS >= bO))
547- then bR
550+ func bX (bV,bW) = if ((bW >= bS))
551+ then bV
548552 else throw("List size exceeds 40")
549553
550- bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
554+ bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
551555 }
552- if ((bM == bM))
556+ if ((bQ == bQ))
553557 then {
554- let bU = bM._2
555- let bV = bM._1
556- let bW = (bU - bw)
557- let bn = valueOrElse(getInteger(U, u(unit)), 0)
558- let bk = [invoke(U, "reissue", [bV], nil), invoke(U, "integerEntry", [F(), (aI + bv)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, bW], nil), invoke(U, "transferFromProxyTreasury", [aw, bw], nil), invoke(U, "integerEntry", [u(unit), (bn + bW)], nil)]
559- if ((bk == bk))
558+ let bY = bQ._2
559+ let bZ = bQ._1
560+ let ca = (bY - bA)
561+ let br = valueOrElse(getInteger(U, u(unit)), 0)
562+ let bo = [invoke(U, "reissue", [bZ], nil), invoke(U, "integerEntry", [F(), (aI + bz)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, ca], nil), invoke(U, "transferFromProxyTreasury", [aw, bA], nil), invoke(U, "integerEntry", [u(unit), (br + ca)], nil)]
563+ if ((bo == bo))
560564 then $Tuple2(nil, unit)
561565 else throw("Strict value is not equal to itself.")
562566 }
566570 }
567571
568572
569-@Verifier(bX)
570-func bY () = {
571- let bZ = {
573+@Verifier(cb)
574+func cc () = {
575+ let cd = {
572576 let l = ad()
573577 if ($isInstanceOf(l, "ByteVector"))
574578 then {
575579 let af = l
576580 af
577581 }
578- else bX.senderPublicKey
582+ else cb.senderPublicKey
579583 }
580- sigVerify(bX.bodyBytes, bX.proofs[0], bZ)
584+ sigVerify(cb.bodyBytes, cb.proofs[0], cd)
581585 }
582586
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "calculator.ride"
77
88 let c = 100000000
99
1010 let d = "PENDING"
1111
1212 let e = "FINISHED"
1313
1414 let f = "WAVES"
1515
1616 func g (h) = ((b + ": ") + h)
1717
1818
1919 func i (h) = throw(g(h))
2020
2121
2222 func j (k) = {
2323 let l = k
2424 if ($isInstanceOf(l, "ByteVector"))
2525 then {
2626 let m = l
2727 toBase58String(m)
2828 }
2929 else if ($isInstanceOf(l, "Unit"))
3030 then f
3131 else throw("Match error")
3232 }
3333
3434
3535 func n (o) = if ((0 > o))
3636 then -(o)
3737 else o
3838
3939
4040 func p () = makeString(["%s", "factory"], a)
4141
4242
4343 func q () = makeString(["%s", "managerPublicKey"], a)
4444
4545
4646 func r () = makeString(["%s", "lpAssetId"], a)
4747
4848
4949 func s () = makeString(["%s", "proxyTreasury"], a)
5050
5151
5252 func t () = makeString(["%s", "mainTreasury"], a)
5353
5454
5555 func u (k) = makeString(["%s%s", "invested", j(k)], a)
5656
5757
5858 func v (k) = makeString(["%s%s", "donated", j(k)], a)
5959
6060
6161 func w (x) = makeString(["%s%s", "available", toString(x)], a)
6262
6363
6464 func y (x) = makeString(["%s%s", "claimed", toString(x)], a)
6565
6666
6767 func z () = makeString(["%s", "currentPeriod"], a)
6868
6969
7070 func A (B) = makeString(["%s%d", "price", toString(B)], a)
7171
7272
7373 func C (B) = makeString(["%s%d", "startHeight", toString(B)], a)
7474
7575
7676 func D () = "%s__periodLength"
7777
7878
7979 func E () = "%s__blockProcessingReward"
8080
8181
8282 func F () = "%s__nextBlockToProcess"
8383
8484
8585 func G (H) = makeString(["%s%d", "blockProcessed", toString(H)], a)
8686
8787
8888 func I () = "%s__withdrawal"
8989
9090
9191 func J (x,K) = makeString(["%s%s%s", "withdrawal", toString(x), toBase58String(K)], a)
9292
9393
9494 func L (M,N,O,P) = {
9595 let Q = {
9696 let l = P
9797 if ($isInstanceOf(l, "ByteVector"))
9898 then {
9999 let m = l
100100 toBase58String(m)
101101 }
102102 else if ($isInstanceOf(l, "Unit"))
103103 then "SOON"
104104 else throw("Match error")
105105 }
106106 makeString(["%s%d%d%s", M, toString(N), toString(O), Q], a)
107107 }
108108
109109
110110 func R (h) = {
111111 let S = split(h, a)
112112 if ((size(S) == 5))
113113 then {
114114 let M = S[1]
115115 let N = valueOrErrorMessage(parseInt(S[2]), g("invalid lpAssetAmount"))
116116 let O = valueOrErrorMessage(parseInt(S[3]), g("invalid targetPeriod"))
117117 let P = S[4]
118118 $Tuple4(M, N, O, P)
119119 }
120120 else i("invalid withdrawal request value")
121121 }
122122
123123
124124 let T = {
125125 let l = getString(this, p())
126126 if ($isInstanceOf(l, "String"))
127127 then {
128128 let h = l
129129 addressFromString(h)
130130 }
131131 else if ($isInstanceOf(l, "Unit"))
132132 then unit
133133 else throw("Match error")
134134 }
135135
136136 let U = valueOrErrorMessage(T, g("invalid factory address"))
137137
138138 let V = {
139139 let l = T
140140 if ($isInstanceOf(l, "Address"))
141141 then {
142142 let W = l
143143 let X = getString(W, r())
144144 if ($isInstanceOf(X, "String"))
145145 then {
146146 let h = X
147147 fromBase58String(h)
148148 }
149149 else if ($isInstanceOf(X, "Unit"))
150150 then unit
151151 else throw("Match error")
152152 }
153153 else if ($isInstanceOf(l, "Unit"))
154154 then unit
155155 else throw("Match error")
156156 }
157157
158158 let Y = valueOrErrorMessage(V, g("invalid lpAssetId"))
159159
160160 let Z = {
161161 let l = T
162162 if ($isInstanceOf(l, "Address"))
163163 then {
164164 let W = l
165165 let X = getString(W, s())
166166 if ($isInstanceOf(X, "String"))
167167 then {
168168 let h = X
169169 addressFromString(h)
170170 }
171171 else if ($isInstanceOf(X, "Unit"))
172172 then unit
173173 else throw("Match error")
174174 }
175175 else if ($isInstanceOf(l, "Unit"))
176176 then unit
177177 else throw("Match error")
178178 }
179179
180180 let aa = valueOrErrorMessage(Z, g("invalid proxy treasury address"))
181181
182182 let ab = {
183183 let l = T
184184 if ($isInstanceOf(l, "Address"))
185185 then {
186186 let W = l
187187 let X = getString(W, t())
188188 if ($isInstanceOf(X, "String"))
189189 then {
190190 let h = X
191191 addressFromString(h)
192192 }
193193 else if ($isInstanceOf(X, "Unit"))
194194 then unit
195195 else throw("Match error")
196196 }
197197 else if ($isInstanceOf(l, "Unit"))
198198 then unit
199199 else throw("Match error")
200200 }
201201
202202 let ac = valueOrErrorMessage(ab, g("invalid main treasury address"))
203203
204204 func ad () = {
205205 let l = T
206206 if ($isInstanceOf(l, "Address"))
207207 then {
208208 let ae = l
209209 let X = getString(ae, q())
210210 if ($isInstanceOf(X, "String"))
211211 then {
212212 let af = X
213213 fromBase58String(af)
214214 }
215215 else unit
216216 }
217217 else unit
218218 }
219219
220220
221221 func ag (ah,ai) = if ((ah.caller == ai))
222222 then true
223223 else i("permission denied")
224224
225225
226226 func aj (ah) = ag(ah, U)
227227
228228
229229 func ak (al,am) = {
230230 let h = size(al)
231231 let an = al[0]
232232 let ao = an._1
233233 let ap = an._2
234234 let aq = al[1]
235235 let ar = aq._1
236236 let as = aq._2
237237 let at = al[2]
238238 let au = at._1
239239 let av = at._2
240240 if (if ((h > 0))
241241 then (ao == am)
242242 else false)
243243 then ap
244244 else if (if ((h > 1))
245245 then (ar == am)
246246 else false)
247247 then as
248248 else if (if ((h > 2))
249249 then (au == am)
250250 else false)
251251 then av
252252 else unit
253253 }
254254
255255
256256 @Callable(ah)
257257 func claimLP (aw) = {
258258 let ax = aj(ah)
259259 if ((ax == ax))
260260 then {
261261 let x = Address(aw)
262262 let ay = valueOrElse(getInteger(U, w(x)), 0)
263263 let az = valueOrElse(getInteger(U, y(x)), 0)
264264 let aA = if ((ay > 0))
265265 then [invoke(U, "transferAsset", [aw, ay, Y], nil), invoke(U, "integerEntry", [w(x), 0], nil), invoke(U, "integerEntry", [y(x), (az + ay)], nil)]
266266 else i("nothing to claim")
267267 $Tuple2(nil, aA)
268268 }
269269 else throw("Strict value is not equal to itself.")
270270 }
271271
272272
273273
274274 @Callable(ah)
275275 func finalize (aw,aB,aC,aD) = {
276276 let ax = aj(ah)
277277 if ((ax == ax))
278278 then {
279279 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
280280 let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length"))
281281 let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height"))
282282 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
283283 let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process"))
284284 let aJ = ((aG + aF) - 1)
285285 let aK = [if ((ah.originCaller == ac))
286286 then true
287287 else i("permission denied"), if ((aI > aJ))
288288 then true
289289 else i("unprocessed blocks"), if ((aB >= 0))
290290 then true
291291 else i("invalid new treasury volume"), if ((aC >= 0))
292292 then true
293293 else i("invalid PWR managers bonus"), if (if ((aD >= -(c)))
294294 then (c >= aD)
295295 else false)
296296 then true
297297 else i("invalid treasury volume diff allocation coefficient")]
298298 if ((aK == aK))
299299 then {
300300 let aL = valueOrElse(getInteger(U, v(unit)), 0)
301301 let aM = valueOrElse(getInteger(U, u(unit)), 0)
302302 let aN = (aL + aM)
303303 let aO = (aB - aN)
304304 let aP = if (if ((aO > 0))
305305 then (aO >= aC)
306306 else false)
307307 then aC
308308 else 0
309309 let aQ = (aO - aP)
310310 let aR = if ((aN > 0))
311311 then fraction(aL, c, aN)
312312 else 0
313313 let aS = fraction(aQ, aR, c)
314314 let aT = (aQ - aS)
315315 let aU = n(aD)
316316 let aV = fraction(aT, if ((0 > aD))
317317 then aU
318318 else 0, c)
319319 let aW = fraction(aS, if ((aD > 0))
320320 then aU
321321 else 0, c)
322322 let aX = ((aS - aW) + aV)
323323 let aY = ((aT - aV) + aW)
324- let aZ = (aM + aY)
325- let ba = (aL + aX)
326- let bb = (aE + 1)
327- let bc = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity
328- let bd = fraction(aZ, c, bc)
329- let be = valueOrElse(getInteger(U, I()), 0)
330- let bf = max([0, fraction(be, bd, c)])
331- let bg = if ((size(ah.payments) > 0))
324+ let aZ = (aL + aX)
325+ let ba = (aM + aY)
326+ let bb = min([0, aZ])
327+ let bc = min([0, ba])
328+ let bd = (max([0, aZ]) + bc)
329+ let be = (max([0, ba]) + bb)
330+ let bf = (aE + 1)
331+ let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity
332+ let bh = fraction(be, c, bg)
333+ let bi = valueOrElse(getInteger(U, I()), 0)
334+ let bj = max([0, fraction(bi, bh, c)])
335+ let bk = if ((size(ah.payments) > 0))
332336 then ah.payments[0]
333337 else unit
334- let bh = value(bg).amount
335- let bi = value(bg).assetId
336- let bj = if (if ((bf == 0))
338+ let bl = value(bk).amount
339+ let bm = value(bk).assetId
340+ let bn = if (if ((bj == 0))
337341 then true
338- else if (if ((bg != unit))
339- then (bi == unit)
342+ else if (if ((bk != unit))
343+ then (bm == unit)
340344 else false)
341- then (bh >= bf)
345+ then (bl >= bj)
342346 else false)
343347 then true
344- else i(("invalid payments, payment amount min: " + toString(bf)))
345- if ((bj == bj))
348+ else i(("invalid payments, payment amount min: " + toString(bj)))
349+ if ((bn == bn))
346350 then {
347- let bk = if ((bg != unit))
348- then [ScriptTransfer(U, bh, bi)]
351+ let bo = if ((bk != unit))
352+ then [ScriptTransfer(U, bl, bm)]
349353 else nil
350- let aA = [invoke(U, "integerEntry", [z(), bb], nil), invoke(U, "integerEntry", [A(bb), bd], nil), invoke(U, "integerEntry", [C(bb), (aJ + 1)], nil), invoke(U, "burn", [be], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), aZ], nil), invoke(U, "integerEntry", [v(unit), ba], nil)]
351- $Tuple2(bk, aA)
354+ let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [bi], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), be], nil), invoke(U, "integerEntry", [v(unit), bd], nil)]
355+ $Tuple2(bo, aA)
352356 }
353357 else throw("Strict value is not equal to itself.")
354358 }
355359 else throw("Strict value is not equal to itself.")
356360 }
357361 else throw("Strict value is not equal to itself.")
358362 }
359363
360364
361365
362366 @Callable(ah)
363367 func invest (aw) = {
364368 let ax = aj(ah)
365369 if ((ax == ax))
366370 then {
367371 let x = Address(aw)
368372 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
369373 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
370- let bl = if ((size(ah.payments) == 1))
374+ let bp = if ((size(ah.payments) == 1))
371375 then ah.payments[0]
372376 else i("invalid payments")
373- let bm = if (if ((bl.assetId == unit))
374- then (bl.amount > 0)
377+ let bq = if (if ((bp.assetId == unit))
378+ then (bp.amount > 0)
375379 else false)
376- then $Tuple2(bl.amount, bl.assetId)
380+ then $Tuple2(bp.amount, bp.assetId)
377381 else i("invalid payment amount")
378- let bh = bm._1
379- let bi = bm._2
382+ let bl = bq._1
383+ let bm = bq._2
380384 let N = if ((aH > 0))
381- then fraction(bh, c, aH)
385+ then fraction(bl, c, aH)
382386 else 0
383- let bn = valueOrElse(getInteger(U, u(unit)), 0)
384- let bk = [ScriptTransfer(ac, bh, bi)]
385- let aA = [invoke(U, "integerEntry", [u(unit), (bn + bh)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
386- $Tuple2(bk, aA)
387+ let br = valueOrElse(getInteger(U, u(unit)), 0)
388+ let bo = [ScriptTransfer(ac, bl, bm)]
389+ let aA = [invoke(U, "integerEntry", [u(unit), (br + bl)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
390+ $Tuple2(bo, aA)
387391 }
388392 else throw("Strict value is not equal to itself.")
389393 }
390394
391395
392396
393397 @Callable(ah)
394398 func withdraw (aw) = {
395399 let ax = aj(ah)
396400 if ((ax == ax))
397401 then {
398402 let x = Address(aw)
399403 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
400- let bl = if ((size(ah.payments) == 1))
404+ let bp = if ((size(ah.payments) == 1))
401405 then ah.payments[0]
402406 else i(g("invalid payments"))
403- let bi = if ((bl.assetId == Y))
407+ let bm = if ((bp.assetId == Y))
404408 then Y
405409 else i("invalid payment asset")
406- let bh = if ((bl.amount > 0))
407- then bl.amount
410+ let bl = if ((bp.amount > 0))
411+ then bp.amount
408412 else i("invalid payment amount")
409- let bo = valueOrElse(getInteger(U, I()), 0)
410- let bk = [ScriptTransfer(U, bh, bi)]
411- let aA = [invoke(U, "integerEntry", [I(), (bo + bh)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bh, (aE + 1), unit)], nil)]
413+ let bs = valueOrElse(getInteger(U, I()), 0)
414+ let bo = [ScriptTransfer(U, bl, bm)]
415+ let aA = [invoke(U, "integerEntry", [I(), (bs + bl)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bl, (aE + 1), unit)], nil)]
412416 if ((aA == aA))
413- then $Tuple2(bk, aA)
417+ then $Tuple2(bo, aA)
414418 else throw("Strict value is not equal to itself.")
415419 }
416420 else throw("Strict value is not equal to itself.")
417421 }
418422
419423
420424
421425 @Callable(ah)
422426 func cancelWithdraw (aw,K) = {
423427 let ax = aj(ah)
424428 if ((ax == ax))
425429 then {
426430 let x = Address(aw)
427- let bp = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
431+ let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
428432 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
429- let bq = R(bp)
430- let M = bq._1
431- let N = bq._2
432- let O = bq._3
433- let P = bq._4
433+ let bu = R(bt)
434+ let M = bu._1
435+ let N = bu._2
436+ let O = bu._3
437+ let P = bu._4
434438 let aK = [if ((M == d))
435439 then true
436440 else i("invalid withdrawal request status"), if ((O > aE))
437441 then true
438442 else i("invalid withdrawal request period")]
439443 if ((aK == aK))
440444 then {
441- let bo = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount"))
442- let aA = [invoke(U, "integerEntry", [I(), if ((bo >= N))
443- then (bo - N)
445+ let bs = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount"))
446+ let aA = [invoke(U, "integerEntry", [I(), if ((bs >= N))
447+ then (bs - N)
444448 else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
445449 if ((aA == aA))
446450 then $Tuple2(nil, aA)
447451 else throw("Strict value is not equal to itself.")
448452 }
449453 else throw("Strict value is not equal to itself.")
450454 }
451455 else throw("Strict value is not equal to itself.")
452456 }
453457
454458
455459
456460 @Callable(ah)
457461 func claimWaves (aw,K) = {
458462 let ax = aj(ah)
459463 if ((ax == ax))
460464 then {
461465 let x = Address(aw)
462466 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
463- let bp = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
464- let br = R(bp)
465- let M = br._1
466- let N = br._2
467- let O = br._3
468- let P = br._4
467+ let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
468+ let bv = R(bt)
469+ let M = bv._1
470+ let N = bv._2
471+ let O = bv._3
472+ let P = bv._4
469473 if ((M == e))
470474 then i("invalid withdrawal request status")
471475 else if ((O > aE))
472476 then i("invalid withdrawal request period")
473477 else {
474- let bs = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
475- let bt = if ((bs > 0))
476- then fraction(N, bs, c)
478+ let bw = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
479+ let bx = if ((bw > 0))
480+ then fraction(N, bw, c)
477481 else 0
478- let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bt], nil)]
482+ let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bx], nil)]
479483 $Tuple2(nil, aA)
480484 }
481485 }
482486 else throw("Strict value is not equal to itself.")
483487 }
484488
485489
486490
487491 @Callable(ah)
488492 func processBlocks (aw) = {
489493 let ax = aj(ah)
490494 if ((ax == ax))
491495 then {
492496 let x = Address(aw)
493497 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
494498 let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length"))
495499 let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height"))
496500 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
497501 let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process"))
498502 let aJ = ((aG + aF) - 1)
499- let bu = 40
500- let bv = if (if (if ((height >= aI))
503+ let by = 40
504+ let bz = if (if (if ((height >= aI))
501505 then if ((aI >= aG))
502506 then true
503507 else (aE == 0)
504508 else false)
505509 then (aJ >= aI)
506510 else false)
507- then min([((aJ - aI) + 1), bu])
511+ then min([((aJ - aI) + 1), by])
508512 else i(g("invalid target block"))
509- let bw = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward"))
510- let bx = (bw / bv)
511- let by = (bw - (bx * bv))
512- func bz (bA,bB) = if ((bB >= bv))
513- then bA
513+ let bA = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward"))
514+ let bB = (bA / bz)
515+ let bC = (bA - (bB * bz))
516+ func bD (bE,bF) = if ((bF >= bz))
517+ then bE
514518 else {
515- let bC = (aI + bB)
516- let bD = valueOrErrorMessage(blockInfoByHeight(bC), g("invalid block info"))
517- let bE = valueOrErrorMessage(ak(bD.rewards, aa), g(("invalid treasury reward for height " + toString(bC))))
518- let bF = bD.generator
519- let ay = valueOrElse(getInteger(U, w(bF)), 0)
520- let bG = if ((bB == (bv - 1)))
521- then (bx + by)
522- else bx
519+ let bG = (aI + bF)
520+ let bH = valueOrErrorMessage(blockInfoByHeight(bG), g("invalid block info"))
521+ let bI = valueOrErrorMessage(ak(bH.rewards, aa), g(("invalid treasury reward for height " + toString(bG))))
522+ let bJ = bH.generator
523+ let ay = valueOrElse(getInteger(U, w(bJ)), 0)
524+ let bK = if ((bF == (bz - 1)))
525+ then (bB + bC)
526+ else bB
523527 let N = if ((aH > 0))
524- then fraction((bE - bG), c, aH)
528+ then fraction((bI - bK), c, aH)
525529 else 0
526- let bH = [invoke(U, "stringEntry", [G(bC), makeString([toBase58String(ah.transactionId), toString(aE), toString(bF), toBase58String(aw), toString(bE), toString(bG), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bF), (ay + N)], nil)]
527- if ((bH == bH))
530+ let bL = [invoke(U, "stringEntry", [G(bG), makeString([toBase58String(ah.transactionId), toString(aE), toString(bJ), toBase58String(aw), toString(bI), toString(bK), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bJ), (ay + N)], nil)]
531+ if ((bL == bL))
528532 then {
529- let bI = bA
530- let bJ = bI._1
531- let bK = bI._2
532- $Tuple2((bJ + N), (bK + bE))
533+ let bM = bE
534+ let bN = bM._1
535+ let bO = bM._2
536+ $Tuple2((bN + N), (bO + bI))
533537 }
534538 else throw("Strict value is not equal to itself.")
535539 }
536540
537- let bL = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
538- let bM = {
539- let bN = bL
540- let bO = size(bN)
541- let bP = $Tuple2(0, 0)
542- func bQ (bR,bS) = if ((bS >= bO))
543- then bR
544- else bz(bR, bN[bS])
541+ let bP = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]
542+ let bQ = {
543+ let bR = bP
544+ let bS = size(bR)
545+ let bT = $Tuple2(0, 0)
546+ func bU (bV,bW) = if ((bW >= bS))
547+ then bV
548+ else bD(bV, bR[bW])
545549
546- func bT (bR,bS) = if ((bS >= bO))
547- then bR
550+ func bX (bV,bW) = if ((bW >= bS))
551+ then bV
548552 else throw("List size exceeds 40")
549553
550- bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
554+ bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40)
551555 }
552- if ((bM == bM))
556+ if ((bQ == bQ))
553557 then {
554- let bU = bM._2
555- let bV = bM._1
556- let bW = (bU - bw)
557- let bn = valueOrElse(getInteger(U, u(unit)), 0)
558- let bk = [invoke(U, "reissue", [bV], nil), invoke(U, "integerEntry", [F(), (aI + bv)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, bW], nil), invoke(U, "transferFromProxyTreasury", [aw, bw], nil), invoke(U, "integerEntry", [u(unit), (bn + bW)], nil)]
559- if ((bk == bk))
558+ let bY = bQ._2
559+ let bZ = bQ._1
560+ let ca = (bY - bA)
561+ let br = valueOrElse(getInteger(U, u(unit)), 0)
562+ let bo = [invoke(U, "reissue", [bZ], nil), invoke(U, "integerEntry", [F(), (aI + bz)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, ca], nil), invoke(U, "transferFromProxyTreasury", [aw, bA], nil), invoke(U, "integerEntry", [u(unit), (br + ca)], nil)]
563+ if ((bo == bo))
560564 then $Tuple2(nil, unit)
561565 else throw("Strict value is not equal to itself.")
562566 }
563567 else throw("Strict value is not equal to itself.")
564568 }
565569 else throw("Strict value is not equal to itself.")
566570 }
567571
568572
569-@Verifier(bX)
570-func bY () = {
571- let bZ = {
573+@Verifier(cb)
574+func cc () = {
575+ let cd = {
572576 let l = ad()
573577 if ($isInstanceOf(l, "ByteVector"))
574578 then {
575579 let af = l
576580 af
577581 }
578- else bX.senderPublicKey
582+ else cb.senderPublicKey
579583 }
580- sigVerify(bX.bodyBytes, bX.proofs[0], bZ)
584+ sigVerify(cb.bodyBytes, cb.proofs[0], cd)
581585 }
582586

github/deemru/w8io/026f985 
131.32 ms