tx · DPFPUjQknkXcW39XR6YG7J82qbzUbjTKmSA75aVPE61d

3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA:  -0.02500000 Waves

2023.07.05 15:47 [2652633] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves

{ "type": 13, "id": "DPFPUjQknkXcW39XR6YG7J82qbzUbjTKmSA75aVPE61d", "fee": 2500000, "feeAssetId": null, "timestamp": 1688561310437, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "5CDePu85YaQnY34d32PB9h5Y3Re8VzYmZeP9i3VsT65fNDtHvYbVohsxuMgFwrP9kg48k9fcEDuupRTEj6YFvnz1" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUAETa2V5TWFuYWdl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yRnJvbVByb3h5VHJlYXN1cnkJAMwIAggFGW1haW5UcmVhc3VyeUFkZHJlc3NPckZhaWwFYnl0ZXMJAMwIAgUacmV3YXJkVG9NYWluVHJlYXN1cnlBbW91bnQFA25pbAUDbmlsCQDMCAIJAPwHBAUUZmFjdG9yeUFkZHJlc3NPckZhaWwCGXRyYW5zZmVyRnJvbVByb3h5VHJlYXN1cnkJAMwIAgUQdXNlckFkZHJlc3NCeXRlcwkAzAgCBRVibG9ja1Byb2Nlc3NpbmdSZXdhcmQFA25pbAUDbmlsCQDMCAIJAPwHBAUUZmFjdG9yeUFkZHJlc3NPckZhaWwCDGludGVnZXJFbnRyeQkAzAgCCQELa2V5SW52ZXN0ZWQBBQR1bml0CQDMCAIJAGQCBQhpbnZlc3RlZAUacmV3YXJkVG9NYWluVHJlYXN1cnlBbW91bnQFA25pbAUDbmlsBQNuaWwDCQAAAgUHYWN0aW9ucwUHYWN0aW9ucwkAlAoCBQNuaWwFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAlwdWJsaWNLZXkEByRtYXRjaDAJARlnZXRNYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBANwdWIFByRtYXRjaDAFA3B1YggFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJcHVibGljS2V5mq1DaA==", "chainId": 84, "height": 2652633, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A4MpZkcfD8CUmaNtusZTvkrS9RdWe6CQFGoBxPmQmgdq Next: DZYiVb1nMQ2pJKqCDRp2LPatLbdkTKBQfZLMcZxya4wv Diff:
OldNewDifferences
348348 else i(("invalid payments, payment amount min: " + toString(bj)))
349349 if ((bn == bn))
350350 then {
351- let bo = if ((bk != unit))
352- then [ScriptTransfer(U, bl, bm)]
353- else nil
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)
351+ let bo = if ((bh != 0))
352+ then true
353+ else i("LP price cannot be 0")
354+ if ((bo == bo))
355+ then {
356+ let bp = if ((bk != unit))
357+ then [ScriptTransfer(U, bl, bm)]
358+ else nil
359+ 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)]
360+ $Tuple2(bp, aA)
361+ }
362+ else throw("Strict value is not equal to itself.")
356363 }
357364 else throw("Strict value is not equal to itself.")
358365 }
371378 let x = Address(aw)
372379 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
373380 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
374- let bp = if ((size(ah.payments) == 1))
381+ let bq = if ((size(ah.payments) == 1))
375382 then ah.payments[0]
376383 else i("invalid payments")
377- let bq = if (if ((bp.assetId == unit))
378- then (bp.amount > 0)
384+ let br = if (if ((bq.assetId == unit))
385+ then (bq.amount > 0)
379386 else false)
380- then $Tuple2(bp.amount, bp.assetId)
387+ then $Tuple2(bq.amount, bq.assetId)
381388 else i("invalid payment amount")
382- let bl = bq._1
383- let bm = bq._2
389+ let bl = br._1
390+ let bm = br._2
384391 let N = if ((aH > 0))
385392 then fraction(bl, c, aH)
386393 else 0
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)
394+ let bs = valueOrElse(getInteger(U, u(unit)), 0)
395+ let bp = [ScriptTransfer(ac, bl, bm)]
396+ let aA = [invoke(U, "integerEntry", [u(unit), (bs + bl)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
397+ $Tuple2(bp, aA)
391398 }
392399 else throw("Strict value is not equal to itself.")
393400 }
401408 then {
402409 let x = Address(aw)
403410 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
404- let bp = if ((size(ah.payments) == 1))
411+ let bq = if ((size(ah.payments) == 1))
405412 then ah.payments[0]
406413 else i(g("invalid payments"))
407- let bm = if ((bp.assetId == Y))
414+ let bm = if ((bq.assetId == Y))
408415 then Y
409416 else i("invalid payment asset")
410- let bl = if ((bp.amount > 0))
411- then bp.amount
417+ let bl = if ((bq.amount > 0))
418+ then bq.amount
412419 else i("invalid payment amount")
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)]
420+ let bt = valueOrElse(getInteger(U, I()), 0)
421+ let bp = [ScriptTransfer(U, bl, bm)]
422+ let aA = [invoke(U, "integerEntry", [I(), (bt + bl)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bl, (aE + 1), unit)], nil)]
416423 if ((aA == aA))
417- then $Tuple2(bo, aA)
424+ then $Tuple2(bp, aA)
418425 else throw("Strict value is not equal to itself.")
419426 }
420427 else throw("Strict value is not equal to itself.")
428435 if ((ax == ax))
429436 then {
430437 let x = Address(aw)
431- let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
438+ let bu = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
432439 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
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
440+ let bv = R(bu)
441+ let M = bv._1
442+ let N = bv._2
443+ let O = bv._3
444+ let P = bv._4
438445 let aK = [if ((M == d))
439446 then true
440447 else i("invalid withdrawal request status"), if ((O > aE))
442449 else i("invalid withdrawal request period")]
443450 if ((aK == aK))
444451 then {
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)
452+ let bt = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount"))
453+ let aA = [invoke(U, "integerEntry", [I(), if ((bt >= N))
454+ then (bt - N)
448455 else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
449456 if ((aA == aA))
450457 then $Tuple2(nil, aA)
464471 then {
465472 let x = Address(aw)
466473 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
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
474+ let bu = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
475+ let bw = R(bu)
476+ let M = bw._1
477+ let N = bw._2
478+ let O = bw._3
479+ let P = bw._4
473480 if ((M == e))
474481 then i("invalid withdrawal request status")
475482 else if ((O > aE))
476483 then i("invalid withdrawal request period")
477484 else {
478- let bw = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
479- let bx = if ((bw > 0))
480- then fraction(N, bw, c)
485+ let bx = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
486+ let by = if ((bx > 0))
487+ then fraction(N, bx, c)
481488 else 0
482- let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bx], nil)]
489+ let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, by], nil)]
483490 $Tuple2(nil, aA)
484491 }
485492 }
500507 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
501508 let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process"))
502509 let aJ = ((aG + aF) - 1)
503- let by = 40
504- let bz = if (if (if ((height >= aI))
510+ let bz = 40
511+ let bA = if (if (if ((height >= aI))
505512 then if ((aI >= aG))
506513 then true
507514 else (aE == 0)
508515 else false)
509516 then (aJ >= aI)
510517 else false)
511- then min([((aJ - aI) + 1), by])
518+ then min([((aJ - aI) + 1), bz])
512519 else i(g("invalid target block"))
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
520+ let bB = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward"))
521+ let bC = (bB / bA)
522+ let bD = (bB - (bC * bA))
523+ func bE (bF,bG) = if ((bG >= bA))
524+ then bF
518525 else {
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
526+ let bH = (aI + bG)
527+ let bI = valueOrErrorMessage(blockInfoByHeight(bH), g("invalid block info"))
528+ let bJ = valueOrErrorMessage(ak(bI.rewards, aa), g(("invalid treasury reward for height " + toString(bH))))
529+ let bK = bI.generator
530+ let ay = valueOrElse(getInteger(U, w(bK)), 0)
531+ let bL = if ((bG == (bA - 1)))
532+ then (bC + bD)
533+ else bC
527534 let N = if ((aH > 0))
528- then fraction((bI - bK), c, aH)
535+ then fraction((bJ - bL), c, aH)
529536 else 0
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))
537+ let bM = [invoke(U, "stringEntry", [G(bH), makeString([toBase58String(ah.transactionId), toString(aE), toString(bK), toBase58String(aw), toString(bJ), toString(bL), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bK), (ay + N)], nil)]
538+ if ((bM == bM))
532539 then {
533- let bM = bE
534- let bN = bM._1
535- let bO = bM._2
536- $Tuple2((bN + N), (bO + bI))
540+ let bN = bF
541+ let bO = bN._1
542+ let bP = bN._2
543+ $Tuple2((bO + N), (bP + bJ))
537544 }
538545 else throw("Strict value is not equal to itself.")
539546 }
540547
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])
548+ let bQ = [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]
549+ let bR = {
550+ let bS = bQ
551+ let bT = size(bS)
552+ let bU = $Tuple2(0, 0)
553+ func bV (bW,bX) = if ((bX >= bT))
554+ then bW
555+ else bE(bW, bS[bX])
549556
550- func bX (bV,bW) = if ((bW >= bS))
551- then bV
557+ func bY (bW,bX) = if ((bX >= bT))
558+ then bW
552559 else throw("List size exceeds 40")
553560
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)
561+ bY(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bU, 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)
555562 }
556- if ((bQ == bQ))
563+ if ((bR == bR))
557564 then {
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))
565+ let bZ = bR._2
566+ let ca = bR._1
567+ let cb = (bZ - bB)
568+ let bs = valueOrElse(getInteger(U, u(unit)), 0)
569+ let bp = [invoke(U, "reissue", [ca], nil), invoke(U, "integerEntry", [F(), (aI + bA)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, cb], nil), invoke(U, "transferFromProxyTreasury", [aw, bB], nil), invoke(U, "integerEntry", [u(unit), (bs + cb)], nil)]
570+ if ((bp == bp))
564571 then $Tuple2(nil, unit)
565572 else throw("Strict value is not equal to itself.")
566573 }
570577 }
571578
572579
573-@Verifier(cb)
574-func cc () = {
575- let cd = {
580+@Verifier(cc)
581+func cd () = {
582+ let ce = {
576583 let l = ad()
577584 if ($isInstanceOf(l, "ByteVector"))
578585 then {
579586 let af = l
580587 af
581588 }
582- else cb.senderPublicKey
589+ else cc.senderPublicKey
583590 }
584- sigVerify(cb.bodyBytes, cb.proofs[0], cd)
591+ sigVerify(cc.bodyBytes, cc.proofs[0], ce)
585592 }
586593
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)
324324 let aZ = (aL + aX)
325325 let ba = (aM + aY)
326326 let bb = min([0, aZ])
327327 let bc = min([0, ba])
328328 let bd = (max([0, aZ]) + bc)
329329 let be = (max([0, ba]) + bb)
330330 let bf = (aE + 1)
331331 let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity
332332 let bh = fraction(be, c, bg)
333333 let bi = valueOrElse(getInteger(U, I()), 0)
334334 let bj = max([0, fraction(bi, bh, c)])
335335 let bk = if ((size(ah.payments) > 0))
336336 then ah.payments[0]
337337 else unit
338338 let bl = value(bk).amount
339339 let bm = value(bk).assetId
340340 let bn = if (if ((bj == 0))
341341 then true
342342 else if (if ((bk != unit))
343343 then (bm == unit)
344344 else false)
345345 then (bl >= bj)
346346 else false)
347347 then true
348348 else i(("invalid payments, payment amount min: " + toString(bj)))
349349 if ((bn == bn))
350350 then {
351- let bo = if ((bk != unit))
352- then [ScriptTransfer(U, bl, bm)]
353- else nil
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)
351+ let bo = if ((bh != 0))
352+ then true
353+ else i("LP price cannot be 0")
354+ if ((bo == bo))
355+ then {
356+ let bp = if ((bk != unit))
357+ then [ScriptTransfer(U, bl, bm)]
358+ else nil
359+ 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)]
360+ $Tuple2(bp, aA)
361+ }
362+ else throw("Strict value is not equal to itself.")
356363 }
357364 else throw("Strict value is not equal to itself.")
358365 }
359366 else throw("Strict value is not equal to itself.")
360367 }
361368 else throw("Strict value is not equal to itself.")
362369 }
363370
364371
365372
366373 @Callable(ah)
367374 func invest (aw) = {
368375 let ax = aj(ah)
369376 if ((ax == ax))
370377 then {
371378 let x = Address(aw)
372379 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
373380 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
374- let bp = if ((size(ah.payments) == 1))
381+ let bq = if ((size(ah.payments) == 1))
375382 then ah.payments[0]
376383 else i("invalid payments")
377- let bq = if (if ((bp.assetId == unit))
378- then (bp.amount > 0)
384+ let br = if (if ((bq.assetId == unit))
385+ then (bq.amount > 0)
379386 else false)
380- then $Tuple2(bp.amount, bp.assetId)
387+ then $Tuple2(bq.amount, bq.assetId)
381388 else i("invalid payment amount")
382- let bl = bq._1
383- let bm = bq._2
389+ let bl = br._1
390+ let bm = br._2
384391 let N = if ((aH > 0))
385392 then fraction(bl, c, aH)
386393 else 0
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)
394+ let bs = valueOrElse(getInteger(U, u(unit)), 0)
395+ let bp = [ScriptTransfer(ac, bl, bm)]
396+ let aA = [invoke(U, "integerEntry", [u(unit), (bs + bl)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
397+ $Tuple2(bp, aA)
391398 }
392399 else throw("Strict value is not equal to itself.")
393400 }
394401
395402
396403
397404 @Callable(ah)
398405 func withdraw (aw) = {
399406 let ax = aj(ah)
400407 if ((ax == ax))
401408 then {
402409 let x = Address(aw)
403410 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
404- let bp = if ((size(ah.payments) == 1))
411+ let bq = if ((size(ah.payments) == 1))
405412 then ah.payments[0]
406413 else i(g("invalid payments"))
407- let bm = if ((bp.assetId == Y))
414+ let bm = if ((bq.assetId == Y))
408415 then Y
409416 else i("invalid payment asset")
410- let bl = if ((bp.amount > 0))
411- then bp.amount
417+ let bl = if ((bq.amount > 0))
418+ then bq.amount
412419 else i("invalid payment amount")
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)]
420+ let bt = valueOrElse(getInteger(U, I()), 0)
421+ let bp = [ScriptTransfer(U, bl, bm)]
422+ let aA = [invoke(U, "integerEntry", [I(), (bt + bl)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bl, (aE + 1), unit)], nil)]
416423 if ((aA == aA))
417- then $Tuple2(bo, aA)
424+ then $Tuple2(bp, aA)
418425 else throw("Strict value is not equal to itself.")
419426 }
420427 else throw("Strict value is not equal to itself.")
421428 }
422429
423430
424431
425432 @Callable(ah)
426433 func cancelWithdraw (aw,K) = {
427434 let ax = aj(ah)
428435 if ((ax == ax))
429436 then {
430437 let x = Address(aw)
431- let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
438+ let bu = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
432439 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
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
440+ let bv = R(bu)
441+ let M = bv._1
442+ let N = bv._2
443+ let O = bv._3
444+ let P = bv._4
438445 let aK = [if ((M == d))
439446 then true
440447 else i("invalid withdrawal request status"), if ((O > aE))
441448 then true
442449 else i("invalid withdrawal request period")]
443450 if ((aK == aK))
444451 then {
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)
452+ let bt = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount"))
453+ let aA = [invoke(U, "integerEntry", [I(), if ((bt >= N))
454+ then (bt - N)
448455 else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)]
449456 if ((aA == aA))
450457 then $Tuple2(nil, aA)
451458 else throw("Strict value is not equal to itself.")
452459 }
453460 else throw("Strict value is not equal to itself.")
454461 }
455462 else throw("Strict value is not equal to itself.")
456463 }
457464
458465
459466
460467 @Callable(ah)
461468 func claimWaves (aw,K) = {
462469 let ax = aj(ah)
463470 if ((ax == ax))
464471 then {
465472 let x = Address(aw)
466473 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
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
474+ let bu = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request"))
475+ let bw = R(bu)
476+ let M = bw._1
477+ let N = bw._2
478+ let O = bw._3
479+ let P = bw._4
473480 if ((M == e))
474481 then i("invalid withdrawal request status")
475482 else if ((O > aE))
476483 then i("invalid withdrawal request period")
477484 else {
478- let bw = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
479- let bx = if ((bw > 0))
480- then fraction(N, bw, c)
485+ let bx = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price"))
486+ let by = if ((bx > 0))
487+ then fraction(N, bx, c)
481488 else 0
482- let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bx], nil)]
489+ let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, by], nil)]
483490 $Tuple2(nil, aA)
484491 }
485492 }
486493 else throw("Strict value is not equal to itself.")
487494 }
488495
489496
490497
491498 @Callable(ah)
492499 func processBlocks (aw) = {
493500 let ax = aj(ah)
494501 if ((ax == ax))
495502 then {
496503 let x = Address(aw)
497504 let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period"))
498505 let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length"))
499506 let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height"))
500507 let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price"))
501508 let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process"))
502509 let aJ = ((aG + aF) - 1)
503- let by = 40
504- let bz = if (if (if ((height >= aI))
510+ let bz = 40
511+ let bA = if (if (if ((height >= aI))
505512 then if ((aI >= aG))
506513 then true
507514 else (aE == 0)
508515 else false)
509516 then (aJ >= aI)
510517 else false)
511- then min([((aJ - aI) + 1), by])
518+ then min([((aJ - aI) + 1), bz])
512519 else i(g("invalid target block"))
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
520+ let bB = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward"))
521+ let bC = (bB / bA)
522+ let bD = (bB - (bC * bA))
523+ func bE (bF,bG) = if ((bG >= bA))
524+ then bF
518525 else {
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
526+ let bH = (aI + bG)
527+ let bI = valueOrErrorMessage(blockInfoByHeight(bH), g("invalid block info"))
528+ let bJ = valueOrErrorMessage(ak(bI.rewards, aa), g(("invalid treasury reward for height " + toString(bH))))
529+ let bK = bI.generator
530+ let ay = valueOrElse(getInteger(U, w(bK)), 0)
531+ let bL = if ((bG == (bA - 1)))
532+ then (bC + bD)
533+ else bC
527534 let N = if ((aH > 0))
528- then fraction((bI - bK), c, aH)
535+ then fraction((bJ - bL), c, aH)
529536 else 0
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))
537+ let bM = [invoke(U, "stringEntry", [G(bH), makeString([toBase58String(ah.transactionId), toString(aE), toString(bK), toBase58String(aw), toString(bJ), toString(bL), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bK), (ay + N)], nil)]
538+ if ((bM == bM))
532539 then {
533- let bM = bE
534- let bN = bM._1
535- let bO = bM._2
536- $Tuple2((bN + N), (bO + bI))
540+ let bN = bF
541+ let bO = bN._1
542+ let bP = bN._2
543+ $Tuple2((bO + N), (bP + bJ))
537544 }
538545 else throw("Strict value is not equal to itself.")
539546 }
540547
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])
548+ let bQ = [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]
549+ let bR = {
550+ let bS = bQ
551+ let bT = size(bS)
552+ let bU = $Tuple2(0, 0)
553+ func bV (bW,bX) = if ((bX >= bT))
554+ then bW
555+ else bE(bW, bS[bX])
549556
550- func bX (bV,bW) = if ((bW >= bS))
551- then bV
557+ func bY (bW,bX) = if ((bX >= bT))
558+ then bW
552559 else throw("List size exceeds 40")
553560
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)
561+ bY(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bU, 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)
555562 }
556- if ((bQ == bQ))
563+ if ((bR == bR))
557564 then {
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))
565+ let bZ = bR._2
566+ let ca = bR._1
567+ let cb = (bZ - bB)
568+ let bs = valueOrElse(getInteger(U, u(unit)), 0)
569+ let bp = [invoke(U, "reissue", [ca], nil), invoke(U, "integerEntry", [F(), (aI + bA)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, cb], nil), invoke(U, "transferFromProxyTreasury", [aw, bB], nil), invoke(U, "integerEntry", [u(unit), (bs + cb)], nil)]
570+ if ((bp == bp))
564571 then $Tuple2(nil, unit)
565572 else throw("Strict value is not equal to itself.")
566573 }
567574 else throw("Strict value is not equal to itself.")
568575 }
569576 else throw("Strict value is not equal to itself.")
570577 }
571578
572579
573-@Verifier(cb)
574-func cc () = {
575- let cd = {
580+@Verifier(cc)
581+func cd () = {
582+ let ce = {
576583 let l = ad()
577584 if ($isInstanceOf(l, "ByteVector"))
578585 then {
579586 let af = l
580587 af
581588 }
582- else cb.senderPublicKey
589+ else cc.senderPublicKey
583590 }
584- sigVerify(cb.bodyBytes, cb.proofs[0], cd)
591+ sigVerify(cc.bodyBytes, cc.proofs[0], ce)
585592 }
586593

github/deemru/w8io/169f3d6 
107.67 ms