tx · p8FVbu4h2pxvGTrgUwHvQd8z8kbpAHzokb2S4pc9KtK 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA: -0.03600000 Waves 2022.12.06 18:46 [2348682] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves
{ "type": 13, "id": "p8FVbu4h2pxvGTrgUwHvQd8z8kbpAHzokb2S4pc9KtK", "fee": 3600000, "feeAssetId": null, "timestamp": 1670341679891, "version": 1, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "65XM8k54tbzZeg3tHWhrGEai41B3xgPGgvufxRNxJ9FFUGwy738QhYAaehxLdYPjX2WFJefyRjGfk3EzDjN5eMCG" ], "script": "base64:BgLNKAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUFtdEFzSWQiDWlkeElQcmljZUFzSWQiD2lk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UBleHRyTmF0aXZlKDEwNjIpAQUCaEoJAJQKAgUDbmlsCQCcCgoIBQJkawJfMQgFAmRrAl8yCAUCZGsCXzMIBQJkawJfNAgFAmRrAl81CAUCZGsCXzYIBQJkawJfNwkApgMBCAUCZGsCXzgIBQJkawJfOQgFAmRrA18xMAJkVgEOZ2V0RmVlUkVBRE9OTFkACQCUCgIFA25pbAUCYWoBAmhMAQJoTQAEAmhOBAJhRQkBAmdpAAMJAAECBQJhRQIKQnl0ZVZlY3RvcgQCZ20FAmFFBQJnbQMJAAECBQJhRQIEVW5pdAgFAmhMD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yBAJhRQUCaEwDCQABAgUCYUUCBU9yZGVyBAJlVwUCYUUEAmhPCQECYVEABAJoUAkBAmVWAQUCZVcEAmhRCQD0AwMIBQJlVwlib2R5Qnl0ZXMJAJEDAggFAmVXBnByb29mcwAACAUCZVcPc2VuZGVyUHVibGljS2V5BAJoUgkA9AMDCAUCZVcJYm9keUJ5dGVzCQCRAwIIBQJlVwZwcm9vZnMAAQUCaE8DAwMFAmhQBQJoUQcFAmhSBwYJAQJhegMFAmhQBQJoUQUCaFIDCQABAgUCYUUCFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJkSQUCYUUEAmhTCQD2AwEJAQV2YWx1ZQEIBQJkSQZzY3JpcHQEAmhUCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYU4JAQJheAAEAmhVCQDxBwEFBHRoaXMDAwkAAAIFAmhUBQJoUwkBAiE9AgUCaFUFAmhTBwYJAPQDAwgFAmhMCWJvZHlCeXRlcwkAkQMCCAUCaEwGcHJvb2ZzAAAFAmhOCQD0AwMIBQJoTAlib2R5Qnl0ZXMJAJEDAggFAmhMBnByb29mcwAABQJoTgbg8jE=", "chainId": 84, "height": 2348682, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BsgQVmXGwdsTwrTjiwujhX4ryJJLCbNhnSEYiBPew8U9 Next: 8k3LQzJ8LDhCwmaQcvE5NbCdeHp6USdFWxe2NppqWEas Diff:
Old | New | Differences | |
---|---|---|---|
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | - | func ej (dF,dV,ek) = { | |
504 | - | let el = g | |
505 | - | let em = dF[if ((dV == 0)) | |
503 | + | func ej (dF) = { | |
504 | + | let ek = g | |
505 | + | let dG = dF[0] | |
506 | + | let dH = dF[1] | |
507 | + | let el = parseBigIntValue(l) | |
508 | + | let dJ = (parseBigIntValue(aO) * el) | |
509 | + | let dI = (dG + dH) | |
510 | + | if ((dI == e)) | |
511 | + | then e | |
512 | + | else { | |
513 | + | let dK = (dJ * ek) | |
514 | + | let dL = (((dG * dH) * ek) * ek) | |
515 | + | let em = ((dK * dI) / el) | |
516 | + | let en = (dK - el) | |
517 | + | let eo = (ek + f) | |
518 | + | func dT (dU,ep) = { | |
519 | + | let eq = dU | |
520 | + | let dP = eq._1 | |
521 | + | let ei = eq._2 | |
522 | + | if ((ei != unit)) | |
523 | + | then dU | |
524 | + | else { | |
525 | + | let dS = (((dP * dP) * dP) / dL) | |
526 | + | let dW = (((em + (dS * ek)) * dP) / (((en * dP) / el) + (eo * dS))) | |
527 | + | let dY = S((dW - value(dP))) | |
528 | + | if ((f >= dY)) | |
529 | + | then $Tuple2(dW, ep) | |
530 | + | else $Tuple2(dW, unit) | |
531 | + | } | |
532 | + | } | |
533 | + | ||
534 | + | let dZ = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
535 | + | let er = { | |
536 | + | let eb = dZ | |
537 | + | let ec = size(eb) | |
538 | + | let ed = $Tuple2(dI, unit) | |
539 | + | func ee (ef,eg) = if ((eg >= ec)) | |
540 | + | then ef | |
541 | + | else dT(ef, eb[eg]) | |
542 | + | ||
543 | + | func eh (ef,eg) = if ((eg >= ec)) | |
544 | + | then ef | |
545 | + | else throw("List size exceeds 15") | |
546 | + | ||
547 | + | eh(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ed, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
548 | + | } | |
549 | + | let dP = er._1 | |
550 | + | let ei = er._2 | |
551 | + | if ((ei != unit)) | |
552 | + | then dP | |
553 | + | else throw(("D calculation error, D = " + toString(dP))) | |
554 | + | } | |
555 | + | } | |
556 | + | ||
557 | + | ||
558 | + | func es (dF,dV,et) = { | |
559 | + | let ek = g | |
560 | + | let eu = dF[if ((dV == 0)) | |
506 | 561 | then 1 | |
507 | 562 | else 0] | |
508 | - | let | |
509 | - | let dJ = (parseBigIntValue(aO) * | |
510 | - | let dI = | |
511 | - | let dK = (dJ * | |
512 | - | let | |
513 | - | let | |
514 | - | func dT (dU, | |
515 | - | let | |
516 | - | let | |
517 | - | let ei = | |
563 | + | let el = parseBigIntValue(l) | |
564 | + | let dJ = (parseBigIntValue(aO) * el) | |
565 | + | let dI = eu | |
566 | + | let dK = (dJ * ek) | |
567 | + | let ev = (((((et * et) / (eu * ek)) * et) * el) / (dK * ek)) | |
568 | + | let ew = ((dI + ((et * el) / dK)) - et) | |
569 | + | func dT (dU,ep) = { | |
570 | + | let ex = dU | |
571 | + | let ey = ex._1 | |
572 | + | let ei = ex._2 | |
518 | 573 | if ((ei != unit)) | |
519 | 574 | then dU | |
520 | 575 | else { | |
521 | - | let | |
522 | - | let | |
523 | - | if ((f >= | |
524 | - | then $Tuple2( | |
525 | - | else $Tuple2( | |
576 | + | let ez = (((ey * ey) + ev) / ((g * ey) + ew)) | |
577 | + | let eA = S((ez - value(ey))) | |
578 | + | if ((f >= eA)) | |
579 | + | then $Tuple2(ez, ep) | |
580 | + | else $Tuple2(ez, unit) | |
526 | 581 | } | |
527 | 582 | } | |
528 | 583 | ||
529 | 584 | let dZ = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
530 | - | let | |
585 | + | let eB = { | |
531 | 586 | let eb = dZ | |
532 | 587 | let ec = size(eb) | |
533 | - | let ed = $Tuple2( | |
588 | + | let ed = $Tuple2(et, unit) | |
534 | 589 | func ee (ef,eg) = if ((eg >= ec)) | |
535 | 590 | then ef | |
536 | 591 | else dT(ef, eb[eg]) | |
541 | 596 | ||
542 | 597 | eh(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ed, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
543 | 598 | } | |
544 | - | let | |
545 | - | let ei = | |
599 | + | let ey = eB._1 | |
600 | + | let ei = eB._2 | |
546 | 601 | if ((ei != unit)) | |
547 | - | then | |
548 | - | else throw(("Y calculation error, Y = " + toString( | |
602 | + | then ey | |
603 | + | else throw(("Y calculation error, Y = " + toString(ey))) | |
549 | 604 | } | |
550 | 605 | ||
551 | 606 | ||
552 | - | func | |
553 | - | let | |
554 | - | | |
607 | + | func eC (eD,eE,eF) = { | |
608 | + | let eG = fraction(dE([eD, eE]), c, eF) | |
609 | + | eG | |
555 | 610 | } | |
556 | 611 | ||
557 | 612 | ||
558 | - | func | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | | |
613 | + | func eH (eI,eJ,eK) = { | |
614 | + | let eL = (toBigInt(bF(aY(bg))) - eI) | |
615 | + | let eM = (toBigInt(bF(aY(bh))) - eJ) | |
616 | + | let eN = (toBigInt(value(assetInfo(bf)).quantity) - eK) | |
617 | + | let eO = eC(eL, eM, eN) | |
618 | + | eO | |
564 | 619 | } | |
565 | 620 | ||
566 | 621 | ||
567 | - | func | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | $Tuple2( | |
622 | + | func eP (eQ,eR,eK) = { | |
623 | + | let eL = (bF(aY(bg)) + eQ) | |
624 | + | let eM = (bF(aY(bh)) + eR) | |
625 | + | let eN = (value(assetInfo(bf)).quantity + eK) | |
626 | + | let eG = eC(toBigInt(eL), toBigInt(eM), toBigInt(eN)) | |
627 | + | let eS = [IntegerEntry(al, height), StringEntry(ak, toString(eG))] | |
628 | + | $Tuple2(eS, eG) | |
574 | 629 | } | |
575 | 630 | ||
576 | 631 | ||
577 | - | func | |
632 | + | func eT (eU,eG) = if ((eG >= eU)) | |
578 | 633 | then true | |
579 | 634 | else aK("updated DLp lower than current DLp") | |
580 | 635 | ||
581 | 636 | ||
582 | - | func | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | then $Tuple2( | |
587 | - | else $Tuple2(-( | |
588 | - | let | |
589 | - | let | |
637 | + | func eV (eW) = { | |
638 | + | let eX = eW.amount | |
639 | + | let eY = fraction(eW.amount, eW.price, a, FLOOR) | |
640 | + | let eZ = if ((eW.orderType == Buy)) | |
641 | + | then $Tuple2(eX, -(eY)) | |
642 | + | else $Tuple2(-(eX), eY) | |
643 | + | let eQ = eZ._1 | |
644 | + | let eR = eZ._2 | |
590 | 645 | if (if (if (aP()) | |
591 | 646 | then true | |
592 | 647 | else (be == r)) | |
593 | 648 | then true | |
594 | 649 | else (be == s)) | |
595 | 650 | then throw("Admin blocked") | |
596 | - | else if (if (( | |
651 | + | else if (if ((eW.assetPair.amountAsset != bg)) | |
597 | 652 | then true | |
598 | - | else ( | |
653 | + | else (eW.assetPair.priceAsset != bh)) | |
599 | 654 | then throw("Wr assets") | |
600 | 655 | else { | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | | |
656 | + | let fa = parseBigIntValue(getStringValue(this, ak)) | |
657 | + | let fb = eP(eQ, eR, 0) | |
658 | + | let fc = fb._1 | |
659 | + | let fd = fb._2 | |
660 | + | let fe = (fd >= fa) | |
661 | + | fe | |
607 | 662 | } | |
608 | 663 | } | |
609 | 664 | ||
610 | 665 | ||
611 | - | func | |
666 | + | func ff (dV) = if ((size(dV.payments) != 1)) | |
612 | 667 | then throw("1 pmnt exp") | |
613 | 668 | else { | |
614 | - | let | |
615 | - | let cs = value( | |
616 | - | let cY = | |
669 | + | let fg = value(dV.payments[0]) | |
670 | + | let cs = value(fg.assetId) | |
671 | + | let cY = fg.amount | |
617 | 672 | let dk = cq(toBase58String(dV.transactionId), toBase58String(cs), cY, dV.caller) | |
618 | 673 | let cM = dk._1 | |
619 | 674 | let cN = dk._2 | |
627 | 682 | } | |
628 | 683 | ||
629 | 684 | ||
630 | - | func | |
631 | - | let dk = cP(ac, bN, value( | |
685 | + | func fh (fi,ac,fj,fk,bN,cV,cW,cX,cY,cZ) = { | |
686 | + | let dk = cP(ac, bN, value(fj).amount, value(fj).assetId, value(fk).amount, value(fk).assetId, fi, (ac == ""), cV, cW, cX, cY, cZ) | |
632 | 687 | let cA = parseIntValue(dk._8) | |
633 | 688 | if (if (if (aP()) | |
634 | 689 | then true | |
640 | 695 | } | |
641 | 696 | ||
642 | 697 | ||
643 | - | func | |
698 | + | func fl (fm,cs,cu,ac,fn) = { | |
644 | 699 | let ba = aS() | |
645 | 700 | let cw = ba[w] | |
646 | 701 | let cx = ba[x] | |
647 | 702 | let cv = ba[v] | |
648 | 703 | let de = parseIntValue(ba[y]) | |
649 | 704 | let df = parseIntValue(ba[z]) | |
650 | - | let | |
651 | - | let | |
705 | + | let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
706 | + | let fo = if ((eN > e)) | |
652 | 707 | then true | |
653 | 708 | else throw("initial deposit requires all coins") | |
654 | - | if (( | |
709 | + | if ((fo == fo)) | |
655 | 710 | then { | |
656 | 711 | let cC = bF(cw) | |
657 | 712 | let cE = bF(cx) | |
658 | - | let | |
713 | + | let fp = if ((ac == "")) | |
659 | 714 | then $Tuple2(cC, cE) | |
660 | 715 | else if ((cs == cw)) | |
661 | - | then if (( | |
716 | + | then if ((fm > cC)) | |
662 | 717 | then throw("invalid payment amount") | |
663 | - | else $Tuple2((cC - | |
718 | + | else $Tuple2((cC - fm), cE) | |
664 | 719 | else if ((cs == cx)) | |
665 | - | then if (( | |
720 | + | then if ((fm > cE)) | |
666 | 721 | then throw("invalid payment amount") | |
667 | - | else $Tuple2(cC, (cE - | |
722 | + | else $Tuple2(cC, (cE - fm)) | |
668 | 723 | else throw("wrong pmtAssetId") | |
669 | - | let fk = fj._1 | |
670 | - | let fl = fj._2 | |
671 | - | let fm = if ((cs == cw)) | |
672 | - | then $Tuple2(fg, 0) | |
673 | - | else if ((cs == cx)) | |
674 | - | then $Tuple2(0, fg) | |
675 | - | else throw("invalid payment") | |
676 | - | let fn = fm._1 | |
677 | - | let fo = fm._2 | |
678 | - | let fp = if (fh) | |
679 | - | then $Tuple3(cn(fn)._1, cn(fo)._1, cn(fg)._2) | |
680 | - | else $Tuple3(fn, fo, 0) | |
681 | 724 | let fq = fp._1 | |
682 | 725 | let fr = fp._2 | |
683 | - | let cp = fp._3 | |
684 | - | let fs = (fk + fq) | |
685 | - | let ft = (fl + fr) | |
686 | - | let bS = dE([toBigInt(fk), toBigInt(fl)]) | |
687 | - | let bR = dE([toBigInt(fs), toBigInt(ft)]) | |
688 | - | let fu = if ((bR > bS)) | |
726 | + | let fs = if ((cs == cw)) | |
727 | + | then $Tuple2(fm, 0) | |
728 | + | else if ((cs == cx)) | |
729 | + | then $Tuple2(0, fm) | |
730 | + | else throw("invalid payment") | |
731 | + | let ft = fs._1 | |
732 | + | let fu = fs._2 | |
733 | + | let fv = if (fn) | |
734 | + | then $Tuple3(cn(ft)._1, cn(fu)._1, cn(fm)._2) | |
735 | + | else $Tuple3(ft, fu, 0) | |
736 | + | let fw = fv._1 | |
737 | + | let fx = fv._2 | |
738 | + | let cp = fv._3 | |
739 | + | let fy = (fq + fw) | |
740 | + | let fz = (fr + fx) | |
741 | + | let bS = dE([toBigInt(fq), toBigInt(fr)]) | |
742 | + | let bR = dE([toBigInt(fy), toBigInt(fz)]) | |
743 | + | let fA = if ((bR > bS)) | |
689 | 744 | then true | |
690 | 745 | else throw() | |
691 | - | if (( | |
746 | + | if ((fA == fA)) | |
692 | 747 | then { | |
693 | - | let | |
694 | - | let cH = K(bH(H( | |
695 | - | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq( | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | $Tuple4(toInt( | |
748 | + | let fB = fraction(eN, (bR - bS), bS) | |
749 | + | let cH = K(bH(H(fz, df), H(fy, de)), a) | |
750 | + | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq(ft, fu, toInt(fB), cH, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
751 | + | let fC = fraction(fr, a, fq) | |
752 | + | let fD = fraction(fm, a, (fC + a)) | |
753 | + | let fE = (fm - fD) | |
754 | + | let fF = fraction(eN, toBigInt(fE), toBigInt(fr)) | |
755 | + | let fG = toInt(fraction((fB - fF), b, fF)) | |
756 | + | $Tuple4(toInt(fB), dD, cp, fG) | |
702 | 757 | } | |
703 | 758 | else throw("Strict value is not equal to itself.") | |
704 | 759 | } | |
706 | 761 | } | |
707 | 762 | ||
708 | 763 | ||
709 | - | func | |
764 | + | func fH (fI,fJ,fK,fi,fL,fM) = { | |
710 | 765 | let ba = aS() | |
711 | 766 | let cv = ba[v] | |
712 | 767 | let cw = ba[w] | |
713 | 768 | let cx = ba[x] | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let cu = if (( | |
718 | - | then | |
719 | - | else | |
720 | - | let | |
721 | - | let cs = value( | |
722 | - | let cY = | |
723 | - | let | |
724 | - | let cr = toBase58String( | |
769 | + | let fN = parseIntValue(ba[y]) | |
770 | + | let fO = parseIntValue(ba[z]) | |
771 | + | let fP = ba[u] | |
772 | + | let cu = if ((fi == bp)) | |
773 | + | then fL | |
774 | + | else fi | |
775 | + | let fg = value(fK[0]) | |
776 | + | let cs = value(fg.assetId) | |
777 | + | let cY = fg.amount | |
778 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
779 | + | let cr = toBase58String(fM) | |
725 | 780 | if ((cv != toBase58String(cs))) | |
726 | 781 | then throw("Wrong LP") | |
727 | 782 | else { | |
728 | 783 | let cC = bF(cw) | |
729 | 784 | let cE = bF(cx) | |
730 | - | let | |
731 | - | let | |
732 | - | if ($isInstanceOf( | |
733 | - | then | |
734 | - | else throw(($getType( | |
785 | + | let fQ = { | |
786 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, cY], nil) | |
787 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
788 | + | then fR | |
789 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
735 | 790 | } | |
736 | - | if (( | |
791 | + | if ((fQ == fQ)) | |
737 | 792 | then { | |
738 | - | let cp = | |
739 | - | let | |
740 | - | let | |
741 | - | then ( | |
793 | + | let cp = fQ._2 | |
794 | + | let fS = fQ._1 | |
795 | + | let fT = if (if ((fJ > 0)) | |
796 | + | then (fJ > fS) | |
742 | 797 | else false) | |
743 | - | then aK(makeString(["amount to receive is less than ", toString( | |
744 | - | else | |
745 | - | let | |
746 | - | then $Tuple4( | |
747 | - | else if (( | |
748 | - | then $Tuple4(0, | |
798 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
799 | + | else fS | |
800 | + | let fU = if ((fI == cw)) | |
801 | + | then $Tuple4(fT, 0, ((cC - fT) - cp), cE) | |
802 | + | else if ((fI == cx)) | |
803 | + | then $Tuple4(0, fT, cC, ((cE - fT) - cp)) | |
749 | 804 | else throw("invalid out asset id") | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
805 | + | let fV = fU._1 | |
806 | + | let fW = fU._2 | |
807 | + | let fy = fU._3 | |
808 | + | let fz = fU._4 | |
809 | + | let fX = bH(H(fz, fO), H(fy, fN)) | |
810 | + | let fY = K(fX, a) | |
811 | + | let fZ = if ((fI == "WAVES")) | |
757 | 812 | then unit | |
758 | - | else fromBase58String( | |
759 | - | let | |
760 | - | then [ScriptTransfer(aR, cp, | |
813 | + | else fromBase58String(fI) | |
814 | + | let ga = if ((cp > 0)) | |
815 | + | then [ScriptTransfer(aR, cp, fZ)] | |
761 | 816 | else nil | |
762 | - | let cO = ([ScriptTransfer(cu, | |
817 | + | let cO = ([ScriptTransfer(cu, fT, fZ), StringEntry(ad(toString(cu), cr), bB(fV, fW, cY, fY, height, lastBlock.timestamp)), IntegerEntry(W(), fY), IntegerEntry(X(height, lastBlock.timestamp), fY)] ++ ga) | |
763 | 818 | if ((cO == cO)) | |
764 | 819 | then { | |
765 | - | let | |
766 | - | if (( | |
820 | + | let gb = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
821 | + | if ((gb == gb)) | |
767 | 822 | then { | |
768 | - | let | |
769 | - | let | |
823 | + | let gc = { | |
824 | + | let gd = if ((this == aR)) | |
770 | 825 | then 0 | |
771 | 826 | else cp | |
772 | - | let | |
827 | + | let ge = if ((aW(fI) == bg)) | |
773 | 828 | then true | |
774 | 829 | else false | |
775 | - | if ( | |
776 | - | then $Tuple2(-(( | |
777 | - | else $Tuple2(0, -(( | |
830 | + | if (ge) | |
831 | + | then $Tuple2(-((fS + gd)), 0) | |
832 | + | else $Tuple2(0, -((fS + gd))) | |
778 | 833 | } | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | if (( | |
786 | - | then $Tuple2((cO ++ | |
834 | + | let eQ = gc._1 | |
835 | + | let eR = gc._2 | |
836 | + | let gf = eP(eQ, eR, 0) | |
837 | + | let gg = gf._1 | |
838 | + | let eG = gf._2 | |
839 | + | let gh = eT(eO, eG) | |
840 | + | if ((gh == gh)) | |
841 | + | then $Tuple2((cO ++ gg), fT) | |
787 | 842 | else throw("Strict value is not equal to itself.") | |
788 | 843 | } | |
789 | 844 | else throw("Strict value is not equal to itself.") | |
795 | 850 | } | |
796 | 851 | ||
797 | 852 | ||
798 | - | func | |
853 | + | func gi () = { | |
799 | 854 | let aE = getString(U()) | |
800 | 855 | if ($isInstanceOf(aE, "String")) | |
801 | 856 | then { | |
808 | 863 | } | |
809 | 864 | ||
810 | 865 | ||
811 | - | func | |
866 | + | func gj () = { | |
812 | 867 | let aE = getString(V()) | |
813 | 868 | if ($isInstanceOf(aE, "String")) | |
814 | 869 | then { | |
821 | 876 | } | |
822 | 877 | ||
823 | 878 | ||
824 | - | let | |
879 | + | let gk = throw("Permission denied") | |
825 | 880 | ||
826 | - | func | |
827 | - | let aE = | |
881 | + | func gl (dV) = { | |
882 | + | let aE = gi() | |
828 | 883 | if ($isInstanceOf(aE, "ByteVector")) | |
829 | 884 | then { | |
830 | - | let | |
831 | - | (dV.callerPublicKey == | |
885 | + | let gm = aE | |
886 | + | (dV.callerPublicKey == gm) | |
832 | 887 | } | |
833 | 888 | else if ($isInstanceOf(aE, "Unit")) | |
834 | 889 | then (dV.caller == this) | |
836 | 891 | } | |
837 | 892 | ||
838 | 893 | ||
839 | - | func | |
840 | - | let aE = | |
894 | + | func gn (dV) = { | |
895 | + | let aE = gi() | |
841 | 896 | if ($isInstanceOf(aE, "ByteVector")) | |
842 | 897 | then { | |
843 | - | let | |
844 | - | if ((dV.callerPublicKey == | |
898 | + | let gm = aE | |
899 | + | if ((dV.callerPublicKey == gm)) | |
845 | 900 | then true | |
846 | - | else | |
901 | + | else gk | |
847 | 902 | } | |
848 | 903 | else if ($isInstanceOf(aE, "Unit")) | |
849 | 904 | then if ((dV.caller == this)) | |
850 | 905 | then true | |
851 | - | else | |
906 | + | else gk | |
852 | 907 | else throw("Match error") | |
853 | 908 | } | |
854 | 909 | ||
855 | 910 | ||
856 | 911 | @Callable(dV) | |
857 | 912 | func constructor (T) = { | |
858 | - | let | |
859 | - | if (( | |
913 | + | let ev = gn(dV) | |
914 | + | if ((ev == ev)) | |
860 | 915 | then [StringEntry(T(), T)] | |
861 | 916 | else throw("Strict value is not equal to itself.") | |
862 | 917 | } | |
864 | 919 | ||
865 | 920 | ||
866 | 921 | @Callable(dV) | |
867 | - | func setManager ( | |
868 | - | let | |
869 | - | if (( | |
922 | + | func setManager (go) = { | |
923 | + | let ev = gn(dV) | |
924 | + | if ((ev == ev)) | |
870 | 925 | then { | |
871 | - | let | |
872 | - | if (( | |
873 | - | then [StringEntry(V(), | |
926 | + | let gp = fromBase58String(go) | |
927 | + | if ((gp == gp)) | |
928 | + | then [StringEntry(V(), go)] | |
874 | 929 | else throw("Strict value is not equal to itself.") | |
875 | 930 | } | |
876 | 931 | else throw("Strict value is not equal to itself.") | |
880 | 935 | ||
881 | 936 | @Callable(dV) | |
882 | 937 | func confirmManager () = { | |
883 | - | let cm = | |
884 | - | let | |
938 | + | let cm = gj() | |
939 | + | let gq = if (isDefined(cm)) | |
885 | 940 | then true | |
886 | 941 | else throw("No pending manager") | |
887 | - | if (( | |
942 | + | if ((gq == gq)) | |
888 | 943 | then { | |
889 | - | let | |
944 | + | let gr = if ((dV.callerPublicKey == value(cm))) | |
890 | 945 | then true | |
891 | 946 | else throw("You are not pending manager") | |
892 | - | if (( | |
947 | + | if ((gr == gr)) | |
893 | 948 | then [StringEntry(U(), toBase58String(value(cm))), DeleteEntry(V())] | |
894 | 949 | else throw("Strict value is not equal to itself.") | |
895 | 950 | } | |
899 | 954 | ||
900 | 955 | ||
901 | 956 | @Callable(dV) | |
902 | - | func put ( | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | if ((0 > | |
957 | + | func put (gs,gt) = { | |
958 | + | let gu = bk() | |
959 | + | let gv = valueOrErrorMessage(addressFromString(gu[C]), "Wr st addr") | |
960 | + | let gw = valueOrErrorMessage(addressFromString(gu[E]), "Wr sl addr") | |
961 | + | if ((0 > gs)) | |
907 | 962 | then throw("Wrong slippage") | |
908 | 963 | else if ((size(dV.payments) != 2)) | |
909 | 964 | then throw("2 pmnts expd") | |
910 | 965 | else { | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | if (( | |
966 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
967 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
968 | + | let eO = eH(gx, gy, toBigInt(0)) | |
969 | + | if ((eO == eO)) | |
915 | 970 | then { | |
916 | - | let | |
917 | - | let dx = | |
918 | - | let | |
919 | - | let cO = | |
920 | - | let dy = | |
921 | - | let dz = | |
922 | - | let cw = | |
923 | - | let cx = | |
971 | + | let gz = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gs, true, false, true, 0, "") | |
972 | + | let dx = gz._2 | |
973 | + | let gA = gz._7 | |
974 | + | let cO = gz._9 | |
975 | + | let dy = gz._10 | |
976 | + | let dz = gz._11 | |
977 | + | let cw = gz._12 | |
978 | + | let cx = gz._13 | |
924 | 979 | let dk = invoke(aN, "emit", [dx], nil) | |
925 | 980 | if ((dk == dk)) | |
926 | 981 | then { | |
927 | - | let | |
982 | + | let gB = { | |
928 | 983 | let aE = dk | |
929 | 984 | if ($isInstanceOf(aE, "Address")) | |
930 | 985 | then { | |
931 | - | let | |
932 | - | invoke( | |
986 | + | let gC = aE | |
987 | + | invoke(gC, "emit", [dx], nil) | |
933 | 988 | } | |
934 | 989 | else unit | |
935 | 990 | } | |
936 | - | if (( | |
991 | + | if ((gB == gB)) | |
937 | 992 | then { | |
938 | - | let | |
939 | - | then invoke( | |
993 | + | let gD = if ((dy > 0)) | |
994 | + | then invoke(gw, "put", nil, [AttachedPayment(cw, dy)]) | |
940 | 995 | else nil | |
941 | - | if (( | |
996 | + | if ((gD == gD)) | |
942 | 997 | then { | |
943 | - | let | |
944 | - | then invoke( | |
998 | + | let gE = if ((dz > 0)) | |
999 | + | then invoke(gw, "put", nil, [AttachedPayment(cx, dz)]) | |
945 | 1000 | else nil | |
946 | - | if (( | |
1001 | + | if ((gE == gE)) | |
947 | 1002 | then { | |
948 | - | let | |
1003 | + | let gF = if (gt) | |
949 | 1004 | then { | |
950 | - | let | |
951 | - | if (( | |
1005 | + | let gG = invoke(gv, "stake", nil, [AttachedPayment(gA, dx)]) | |
1006 | + | if ((gG == gG)) | |
952 | 1007 | then nil | |
953 | 1008 | else throw("Strict value is not equal to itself.") | |
954 | 1009 | } | |
955 | - | else [ScriptTransfer(dV.caller, dx, | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | if (( | |
961 | - | then ((cO ++ | |
1010 | + | else [ScriptTransfer(dV.caller, dx, gA)] | |
1011 | + | let gH = eP(0, 0, 0) | |
1012 | + | let gg = gH._1 | |
1013 | + | let eG = gH._2 | |
1014 | + | let gh = eT(eO, eG) | |
1015 | + | if ((gh == gh)) | |
1016 | + | then ((cO ++ gF) ++ gg) | |
962 | 1017 | else throw("Strict value is not equal to itself.") | |
963 | 1018 | } | |
964 | 1019 | else throw("Strict value is not equal to itself.") | |
976 | 1031 | ||
977 | 1032 | ||
978 | 1033 | @Callable(dV) | |
979 | - | func putOneTknV2 ( | |
980 | - | let | |
981 | - | let | |
982 | - | if ($isInstanceOf( | |
983 | - | then | |
984 | - | else throw(($getType( | |
1034 | + | func putOneTknV2 (fJ,gt) = { | |
1035 | + | let gI = { | |
1036 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1037 | + | if ($isInstanceOf(fR, "Boolean")) | |
1038 | + | then fR | |
1039 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
985 | 1040 | } | |
986 | - | let | |
1041 | + | let gJ = if (if (if (aP()) | |
987 | 1042 | then true | |
988 | 1043 | else (be == q)) | |
989 | 1044 | then true | |
990 | 1045 | else (be == s)) | |
991 | 1046 | then true | |
992 | - | else | |
993 | - | let | |
1047 | + | else gI | |
1048 | + | let gK = [if (if (!(gJ)) | |
994 | 1049 | then true | |
995 | - | else | |
1050 | + | else gl(dV)) | |
996 | 1051 | then true | |
997 | 1052 | else aK("put operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
998 | 1053 | then true | |
999 | 1054 | else aK("exactly 1 payment are expected")] | |
1000 | - | if (( | |
1055 | + | if ((gK == gK)) | |
1001 | 1056 | then { | |
1002 | 1057 | let ba = aS() | |
1003 | 1058 | let cw = ba[w] | |
1004 | 1059 | let cx = ba[x] | |
1005 | 1060 | let cv = fromBase58String(ba[v]) | |
1006 | - | let | |
1007 | - | let | |
1061 | + | let fN = parseIntValue(ba[y]) | |
1062 | + | let fO = parseIntValue(ba[z]) | |
1008 | 1063 | let cu = if ((dV.caller == this)) | |
1009 | 1064 | then dV.originCaller | |
1010 | 1065 | else dV.caller | |
1011 | - | let | |
1012 | - | let cs = toBase58String(value( | |
1013 | - | let cY = | |
1014 | - | let | |
1015 | - | if (( | |
1066 | + | let fg = value(dV.payments[0]) | |
1067 | + | let cs = toBase58String(value(fg.assetId)) | |
1068 | + | let cY = fg.amount | |
1069 | + | let gL = fl(cY, cs, toString(cu), toBase58String(dV.transactionId), true) | |
1070 | + | if ((gL == gL)) | |
1016 | 1071 | then { | |
1017 | - | let cp = | |
1018 | - | let cO = | |
1019 | - | let | |
1020 | - | let dx = if (if (( | |
1021 | - | then ( | |
1072 | + | let cp = gL._3 | |
1073 | + | let cO = gL._2 | |
1074 | + | let gM = gL._1 | |
1075 | + | let dx = if (if ((fJ > 0)) | |
1076 | + | then (fJ > gM) | |
1022 | 1077 | else false) | |
1023 | - | then aK(makeString(["amount to receive is less than ", toString( | |
1024 | - | else | |
1025 | - | let | |
1026 | - | if (( | |
1078 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
1079 | + | else gM | |
1080 | + | let gz = invoke(aN, "emit", [dx], nil) | |
1081 | + | if ((gz == gz)) | |
1027 | 1082 | then { | |
1028 | - | let | |
1029 | - | let aE = | |
1083 | + | let gB = { | |
1084 | + | let aE = gz | |
1030 | 1085 | if ($isInstanceOf(aE, "Address")) | |
1031 | 1086 | then { | |
1032 | - | let | |
1033 | - | invoke( | |
1087 | + | let gC = aE | |
1088 | + | invoke(gC, "emit", [dx], nil) | |
1034 | 1089 | } | |
1035 | 1090 | else unit | |
1036 | 1091 | } | |
1037 | - | if (( | |
1092 | + | if ((gB == gB)) | |
1038 | 1093 | then { | |
1039 | - | let | |
1094 | + | let gF = if (gt) | |
1040 | 1095 | then { | |
1041 | - | let | |
1042 | - | if (( | |
1096 | + | let gG = invoke(bm, "stake", nil, [AttachedPayment(cv, dx)]) | |
1097 | + | if ((gG == gG)) | |
1043 | 1098 | then nil | |
1044 | 1099 | else throw("Strict value is not equal to itself.") | |
1045 | 1100 | } | |
1046 | 1101 | else [ScriptTransfer(dV.caller, dx, cv)] | |
1047 | - | let | |
1102 | + | let ga = if ((cp > 0)) | |
1048 | 1103 | then [ScriptTransfer(aR, cp, fromBase58String(cs))] | |
1049 | 1104 | else nil | |
1050 | - | let | |
1105 | + | let gN = if ((this == aR)) | |
1051 | 1106 | then $Tuple2(0, 0) | |
1052 | 1107 | else { | |
1053 | - | let | |
1108 | + | let gO = if ((fg.assetId == bg)) | |
1054 | 1109 | then true | |
1055 | 1110 | else false | |
1056 | - | if ( | |
1111 | + | if (gO) | |
1057 | 1112 | then $Tuple2(-(cp), 0) | |
1058 | 1113 | else $Tuple2(0, -(cp)) | |
1059 | 1114 | } | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | $Tuple2((((cO ++ | |
1115 | + | let eQ = gN._1 | |
1116 | + | let eR = gN._2 | |
1117 | + | let gP = eP(eQ, eR, 0) | |
1118 | + | let gg = gP._1 | |
1119 | + | let eG = gP._2 | |
1120 | + | $Tuple2((((cO ++ gF) ++ ga) ++ gg), dx) | |
1066 | 1121 | } | |
1067 | 1122 | else throw("Strict value is not equal to itself.") | |
1068 | 1123 | } | |
1076 | 1131 | ||
1077 | 1132 | ||
1078 | 1133 | @Callable(dV) | |
1079 | - | func putForFree ( | |
1134 | + | func putForFree (gQ) = if ((0 > gQ)) | |
1080 | 1135 | then throw("Wrong slpg") | |
1081 | 1136 | else if ((size(dV.payments) != 2)) | |
1082 | 1137 | then throw("2 pmnts expd") | |
1083 | 1138 | else { | |
1084 | - | let | |
1085 | - | let cO = | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | if (( | |
1139 | + | let gR = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gQ, false, false, true, 0, "") | |
1140 | + | let cO = gR._9 | |
1141 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
1142 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
1143 | + | let eO = eH(gx, gy, toBigInt(0)) | |
1144 | + | if ((eO == eO)) | |
1090 | 1145 | then { | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | if (( | |
1096 | - | then (cO ++ | |
1146 | + | let gS = eP(0, 0, 0) | |
1147 | + | let gg = gS._1 | |
1148 | + | let eG = gS._2 | |
1149 | + | let gh = eT(eO, eG) | |
1150 | + | if ((gh == gh)) | |
1151 | + | then (cO ++ gg) | |
1097 | 1152 | else throw("Strict value is not equal to itself.") | |
1098 | 1153 | } | |
1099 | 1154 | else throw("Strict value is not equal to itself.") | |
1103 | 1158 | ||
1104 | 1159 | @Callable(dV) | |
1105 | 1160 | func get () = { | |
1106 | - | let dk = | |
1107 | - | let | |
1161 | + | let dk = ff(dV) | |
1162 | + | let gT = dk._1 | |
1108 | 1163 | let cN = dk._2 | |
1109 | 1164 | let cY = dk._3 | |
1110 | 1165 | let cs = dk._4 | |
1111 | 1166 | let cO = dk._5 | |
1112 | - | let | |
1113 | - | if (( | |
1167 | + | let ew = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1168 | + | if ((ew == ew)) | |
1114 | 1169 | then { | |
1115 | - | let | |
1116 | - | let | |
1117 | - | let | |
1118 | - | let | |
1119 | - | let | |
1120 | - | if (( | |
1121 | - | then (cO ++ | |
1170 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1171 | + | let gU = eP(-(gT), -(cN), 0) | |
1172 | + | let gg = gU._1 | |
1173 | + | let eG = gU._2 | |
1174 | + | let gh = eT(eO, eG) | |
1175 | + | if ((gh == gh)) | |
1176 | + | then (cO ++ gg) | |
1122 | 1177 | else throw("Strict value is not equal to itself.") | |
1123 | 1178 | } | |
1124 | 1179 | else throw("Strict value is not equal to itself.") | |
1127 | 1182 | ||
1128 | 1183 | ||
1129 | 1184 | @Callable(dV) | |
1130 | - | func getOneTknV2 ( | |
1131 | - | let | |
1132 | - | let | |
1133 | - | if ($isInstanceOf( | |
1134 | - | then | |
1135 | - | else throw(($getType( | |
1185 | + | func getOneTknV2 (fI,fJ) = { | |
1186 | + | let gI = { | |
1187 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1188 | + | if ($isInstanceOf(fR, "Boolean")) | |
1189 | + | then fR | |
1190 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1136 | 1191 | } | |
1137 | - | let | |
1192 | + | let gV = if (if (aP()) | |
1138 | 1193 | then true | |
1139 | 1194 | else (be == s)) | |
1140 | 1195 | then true | |
1141 | - | else | |
1142 | - | let | |
1196 | + | else gI | |
1197 | + | let gK = [if (if (!(gV)) | |
1143 | 1198 | then true | |
1144 | - | else | |
1199 | + | else gl(dV)) | |
1145 | 1200 | then true | |
1146 | 1201 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
1147 | 1202 | then true | |
1148 | 1203 | else aK("exactly 1 payment are expected")] | |
1149 | - | if (( | |
1204 | + | if ((gK == gK)) | |
1150 | 1205 | then { | |
1151 | - | let | |
1152 | - | let cO = | |
1153 | - | let | |
1154 | - | $Tuple2(cO, | |
1206 | + | let gW = fH(fI, fJ, dV.payments, dV.caller, dV.originCaller, dV.transactionId) | |
1207 | + | let cO = gW._1 | |
1208 | + | let fT = gW._2 | |
1209 | + | $Tuple2(cO, fT) | |
1155 | 1210 | } | |
1156 | 1211 | else throw("Strict value is not equal to itself.") | |
1157 | 1212 | } | |
1160 | 1215 | ||
1161 | 1216 | @Callable(dV) | |
1162 | 1217 | func refreshDLp () = { | |
1163 | - | let | |
1164 | - | let | |
1218 | + | let gX = valueOrElse(getInteger(al), 0) | |
1219 | + | let gY = if (((height - gX) >= ao)) | |
1165 | 1220 | then unit | |
1166 | 1221 | else aK(makeString([toString(ao), " blocks have not passed since the previous call"], "")) | |
1167 | - | if (( | |
1222 | + | if ((gY == gY)) | |
1168 | 1223 | then { | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | then | |
1224 | + | let fa = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ak), "0")), aM("invalid dLp")) | |
1225 | + | let gZ = eP(0, 0, 0) | |
1226 | + | let ha = gZ._1 | |
1227 | + | let eG = gZ._2 | |
1228 | + | let eS = if ((fa != eG)) | |
1229 | + | then ha | |
1175 | 1230 | else aK("nothing to refresh") | |
1176 | - | $Tuple2( | |
1231 | + | $Tuple2(eS, toString(eG)) | |
1177 | 1232 | } | |
1178 | 1233 | else throw("Strict value is not equal to itself.") | |
1179 | 1234 | } | |
1181 | 1236 | ||
1182 | 1237 | ||
1183 | 1238 | @Callable(dV) | |
1184 | - | func getOneTknV2READONLY ( | |
1239 | + | func getOneTknV2READONLY (fI,hb) = { | |
1185 | 1240 | let ba = aS() | |
1186 | 1241 | let cw = ba[w] | |
1187 | 1242 | let cx = ba[x] | |
1188 | 1243 | let cv = ba[v] | |
1189 | 1244 | let dF = [toBigInt(bF(cw)), toBigInt(bF(cx))] | |
1190 | - | let | |
1245 | + | let eF = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
1191 | 1246 | let bS = dE(dF) | |
1192 | - | let bR = (bS - fraction(toBigInt( | |
1193 | - | let | |
1247 | + | let bR = (bS - fraction(toBigInt(hb), bS, eF)) | |
1248 | + | let hc = if ((fI == cw)) | |
1194 | 1249 | then 0 | |
1195 | - | else if (( | |
1250 | + | else if ((fI == cx)) | |
1196 | 1251 | then 1 | |
1197 | 1252 | else throw("invalid out asset id") | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | let cp = | |
1204 | - | $Tuple2(nil, $Tuple2( | |
1253 | + | let hd = es(dF, hc, bR) | |
1254 | + | let he = (dF[hc] - hd) | |
1255 | + | let hf = max([0, toInt((he - f))]) | |
1256 | + | let hg = cn(hf) | |
1257 | + | let fS = hg._1 | |
1258 | + | let cp = hg._2 | |
1259 | + | $Tuple2(nil, $Tuple2(fS, cp)) | |
1205 | 1260 | } | |
1206 | 1261 | ||
1207 | 1262 | ||
1208 | 1263 | ||
1209 | 1264 | @Callable(dV) | |
1210 | - | func getOneTknV2WithBonusREADONLY ( | |
1265 | + | func getOneTknV2WithBonusREADONLY (fI,hb) = { | |
1211 | 1266 | let ba = aS() | |
1212 | 1267 | let cw = ba[w] | |
1213 | 1268 | let cx = ba[x] | |
1214 | 1269 | let cv = ba[v] | |
1215 | 1270 | let cC = bF(cw) | |
1216 | 1271 | let cE = bF(cx) | |
1217 | - | let | |
1218 | - | let | |
1219 | - | if ($isInstanceOf( | |
1220 | - | then | |
1221 | - | else throw(($getType( | |
1272 | + | let hh = { | |
1273 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, hb], nil) | |
1274 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
1275 | + | then fR | |
1276 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
1222 | 1277 | } | |
1223 | - | let | |
1224 | - | let cp = | |
1225 | - | let dk = cq("", cv, | |
1278 | + | let fS = hh._1 | |
1279 | + | let cp = hh._2 | |
1280 | + | let dk = cq("", cv, hb, this) | |
1226 | 1281 | let cM = dk._1 | |
1227 | 1282 | let cN = dk._2 | |
1228 | - | let | |
1229 | - | let | |
1230 | - | then if (( | |
1283 | + | let hi = (cM + cN) | |
1284 | + | let fG = if ((hi == 0)) | |
1285 | + | then if ((fS == 0)) | |
1231 | 1286 | then 0 | |
1232 | 1287 | else throw("bonus calculation error") | |
1233 | - | else fraction(( | |
1234 | - | $Tuple2(nil, $Tuple3( | |
1288 | + | else fraction((fS - hi), a, hi) | |
1289 | + | $Tuple2(nil, $Tuple3(fS, cp, fG)) | |
1235 | 1290 | } | |
1236 | 1291 | ||
1237 | 1292 | ||
1238 | 1293 | ||
1239 | 1294 | @Callable(dV) | |
1240 | - | func getNoLess ( | |
1241 | - | let dk = | |
1295 | + | func getNoLess (hj,hk) = { | |
1296 | + | let dk = ff(dV) | |
1242 | 1297 | let cM = dk._1 | |
1243 | 1298 | let cN = dk._2 | |
1244 | 1299 | let cY = dk._3 | |
1245 | 1300 | let cs = dk._4 | |
1246 | 1301 | let cO = dk._5 | |
1247 | - | if (( | |
1248 | - | then throw(((("Failed: " + toString(cM)) + " < ") + toString( | |
1249 | - | else if (( | |
1250 | - | then throw(((("Failed: " + toString(cN)) + " < ") + toString( | |
1302 | + | if ((hj > cM)) | |
1303 | + | then throw(((("Failed: " + toString(cM)) + " < ") + toString(hj))) | |
1304 | + | else if ((hk > cN)) | |
1305 | + | then throw(((("Failed: " + toString(cN)) + " < ") + toString(hk))) | |
1251 | 1306 | else { | |
1252 | - | let | |
1253 | - | let | |
1254 | - | if (( | |
1307 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1308 | + | let hl = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1309 | + | if ((hl == hl)) | |
1255 | 1310 | then { | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | if (( | |
1261 | - | then (cO ++ | |
1311 | + | let hm = eP(-(cM), -(cN), 0) | |
1312 | + | let gg = hm._1 | |
1313 | + | let eG = hm._2 | |
1314 | + | let gh = eT(eO, eG) | |
1315 | + | if ((gh == gh)) | |
1316 | + | then (cO ++ gg) | |
1262 | 1317 | else throw("Strict value is not equal to itself.") | |
1263 | 1318 | } | |
1264 | 1319 | else throw("Strict value is not equal to itself.") | |
1269 | 1324 | ||
1270 | 1325 | @Callable(dV) | |
1271 | 1326 | func unstakeAndGet (co) = { | |
1272 | - | let | |
1327 | + | let hn = if ((size(dV.payments) != 0)) | |
1273 | 1328 | then throw("No pmnts expd") | |
1274 | 1329 | else true | |
1275 | - | if (( | |
1330 | + | if ((hn == hn)) | |
1276 | 1331 | then { | |
1277 | 1332 | let ce = aS() | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | let | |
1282 | - | let | |
1283 | - | if (( | |
1333 | + | let ho = bk() | |
1334 | + | let gA = fromBase58String(ce[v]) | |
1335 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1336 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1337 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), co], nil) | |
1338 | + | if ((hq == hq)) | |
1284 | 1339 | then { | |
1285 | - | let dk = cq(toBase58String(dV.transactionId), toBase58String( | |
1340 | + | let dk = cq(toBase58String(dV.transactionId), toBase58String(gA), co, dV.caller) | |
1286 | 1341 | let cM = dk._1 | |
1287 | 1342 | let cN = dk._2 | |
1288 | 1343 | let cA = parseIntValue(dk._9) | |
1289 | 1344 | let cO = dk._10 | |
1290 | - | let | |
1345 | + | let hr = if (if (aP()) | |
1291 | 1346 | then true | |
1292 | 1347 | else (cA == s)) | |
1293 | 1348 | then throw(("Blocked: " + toString(cA))) | |
1294 | 1349 | else true | |
1295 | - | if (( | |
1350 | + | if ((hr == hr)) | |
1296 | 1351 | then { | |
1297 | - | let | |
1298 | - | if (( | |
1352 | + | let hs = invoke(aN, "burn", [co], [AttachedPayment(gA, co)]) | |
1353 | + | if ((hs == hs)) | |
1299 | 1354 | then { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | if (( | |
1305 | - | then (cO ++ | |
1355 | + | let ht = eP(-(cM), -(cN), 0) | |
1356 | + | let gg = ht._1 | |
1357 | + | let eG = ht._2 | |
1358 | + | let gh = eT(eO, eG) | |
1359 | + | if ((gh == gh)) | |
1360 | + | then (cO ++ gg) | |
1306 | 1361 | else throw("Strict value is not equal to itself.") | |
1307 | 1362 | } | |
1308 | 1363 | else throw("Strict value is not equal to itself.") | |
1317 | 1372 | ||
1318 | 1373 | ||
1319 | 1374 | @Callable(dV) | |
1320 | - | func unstakeAndGetNoLess ( | |
1321 | - | let | |
1375 | + | func unstakeAndGetNoLess (hu,hv,hk) = { | |
1376 | + | let gV = if (aP()) | |
1322 | 1377 | then true | |
1323 | 1378 | else (be == s) | |
1324 | - | let | |
1379 | + | let gK = [if (!(gV)) | |
1325 | 1380 | then true | |
1326 | 1381 | else throw("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1327 | 1382 | then true | |
1328 | 1383 | else throw("no payments are expected")] | |
1329 | - | if (( | |
1384 | + | if ((gK == gK)) | |
1330 | 1385 | then { | |
1331 | - | let | |
1332 | - | let | |
1333 | - | if (( | |
1386 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1387 | + | let hq = invoke(bm, "unstake", [toBase58String(bf), hu], nil) | |
1388 | + | if ((hq == hq)) | |
1334 | 1389 | then { | |
1335 | - | let | |
1336 | - | let cM = | |
1337 | - | let cN = | |
1338 | - | let cO = | |
1339 | - | let | |
1390 | + | let hw = cq(toBase58String(dV.transactionId), toBase58String(bf), hu, dV.caller) | |
1391 | + | let cM = hw._1 | |
1392 | + | let cN = hw._2 | |
1393 | + | let cO = hw._10 | |
1394 | + | let hx = [if ((cM >= hv)) | |
1340 | 1395 | then true | |
1341 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1396 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hv)], "")), if ((cN >= hk)) | |
1342 | 1397 | then true | |
1343 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1344 | - | if (( | |
1398 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hk)], ""))] | |
1399 | + | if ((hx == hx)) | |
1345 | 1400 | then { | |
1346 | - | let | |
1347 | - | if (( | |
1401 | + | let hl = invoke(aN, "burn", [hu], [AttachedPayment(bf, hu)]) | |
1402 | + | if ((hl == hl)) | |
1348 | 1403 | then { | |
1349 | - | let | |
1350 | - | let | |
1351 | - | let | |
1352 | - | let | |
1353 | - | if (( | |
1354 | - | then (cO ++ | |
1404 | + | let hy = eP(-(cM), -(cN), 0) | |
1405 | + | let gg = hy._1 | |
1406 | + | let eG = hy._2 | |
1407 | + | let gh = eT(eO, eG) | |
1408 | + | if ((gh == gh)) | |
1409 | + | then (cO ++ gg) | |
1355 | 1410 | else throw("Strict value is not equal to itself.") | |
1356 | 1411 | } | |
1357 | 1412 | else throw("Strict value is not equal to itself.") | |
1366 | 1421 | ||
1367 | 1422 | ||
1368 | 1423 | @Callable(dV) | |
1369 | - | func unstakeAndGetOneTknV2 ( | |
1370 | - | let | |
1371 | - | let | |
1372 | - | if ($isInstanceOf( | |
1373 | - | then | |
1374 | - | else throw(($getType( | |
1424 | + | func unstakeAndGetOneTknV2 (hu,fI,fJ) = { | |
1425 | + | let gI = { | |
1426 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1427 | + | if ($isInstanceOf(fR, "Boolean")) | |
1428 | + | then fR | |
1429 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1375 | 1430 | } | |
1376 | - | let | |
1431 | + | let gV = if (if (aP()) | |
1377 | 1432 | then true | |
1378 | 1433 | else (be == s)) | |
1379 | 1434 | then true | |
1380 | - | else | |
1381 | - | let | |
1435 | + | else gI | |
1436 | + | let gK = [if (if (!(gV)) | |
1382 | 1437 | then true | |
1383 | - | else | |
1438 | + | else gl(dV)) | |
1384 | 1439 | then true | |
1385 | 1440 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1386 | 1441 | then true | |
1387 | 1442 | else aK("no payments are expected")] | |
1388 | - | if (( | |
1443 | + | if ((gK == gK)) | |
1389 | 1444 | then { | |
1390 | 1445 | let ce = aS() | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | let | |
1395 | - | if (( | |
1446 | + | let ho = bk() | |
1447 | + | let gA = fromBase58String(ce[v]) | |
1448 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1449 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), hu], nil) | |
1450 | + | if ((hq == hq)) | |
1396 | 1451 | then { | |
1397 | - | let | |
1398 | - | let cO = | |
1399 | - | let | |
1400 | - | $Tuple2(cO, | |
1452 | + | let hz = fH(fI, fJ, [AttachedPayment(gA, hu)], dV.caller, dV.originCaller, dV.transactionId) | |
1453 | + | let cO = hz._1 | |
1454 | + | let fT = hz._2 | |
1455 | + | $Tuple2(cO, fT) | |
1401 | 1456 | } | |
1402 | 1457 | else throw("Strict value is not equal to itself.") | |
1403 | 1458 | } | |
1407 | 1462 | ||
1408 | 1463 | ||
1409 | 1464 | @Callable(dV) | |
1410 | - | func putOneTknV2WithBonusREADONLY ( | |
1465 | + | func putOneTknV2WithBonusREADONLY (hA,hB) = { | |
1411 | 1466 | let ba = aS() | |
1412 | 1467 | let cw = ba[w] | |
1413 | 1468 | let cx = ba[x] | |
1414 | 1469 | let cv = ba[v] | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let cO = | |
1418 | - | let cp = | |
1419 | - | let | |
1420 | - | $Tuple2(nil, $Tuple3( | |
1470 | + | let hC = fl(hA, hB, "", "", true) | |
1471 | + | let fB = hC._1 | |
1472 | + | let cO = hC._2 | |
1473 | + | let cp = hC._3 | |
1474 | + | let fG = hC._4 | |
1475 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1421 | 1476 | } | |
1422 | 1477 | ||
1423 | 1478 | ||
1424 | 1479 | ||
1425 | 1480 | @Callable(dV) | |
1426 | - | func putOneTknV2WithoutTakeFeeREADONLY ( | |
1481 | + | func putOneTknV2WithoutTakeFeeREADONLY (hA,hB) = { | |
1427 | 1482 | let ba = aS() | |
1428 | 1483 | let cw = ba[w] | |
1429 | 1484 | let cx = ba[x] | |
1430 | 1485 | let cv = ba[v] | |
1431 | - | let | |
1432 | - | let | |
1433 | - | let cO = | |
1434 | - | let cp = | |
1435 | - | let | |
1436 | - | $Tuple2(nil, $Tuple3( | |
1486 | + | let hD = fl(hA, hB, "", "", false) | |
1487 | + | let fB = hD._1 | |
1488 | + | let cO = hD._2 | |
1489 | + | let cp = hD._3 | |
1490 | + | let fG = hD._4 | |
1491 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1437 | 1492 | } | |
1438 | 1493 | ||
1439 | 1494 | ||
1440 | 1495 | ||
1441 | 1496 | @Callable(dV) | |
1442 | - | func activate ( | |
1497 | + | func activate (hE,hF) = if ((toString(dV.caller) != toString(aN))) | |
1443 | 1498 | then throw("denied") | |
1444 | - | else $Tuple2([StringEntry(ae(), | |
1499 | + | else $Tuple2([StringEntry(ae(), hE), StringEntry(af(), hF)], "success") | |
1445 | 1500 | ||
1446 | 1501 | ||
1447 | 1502 | ||
1448 | 1503 | @Callable(dV) | |
1449 | - | func setS ( | |
1450 | - | then | |
1451 | - | else [StringEntry( | |
1504 | + | func setS (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1505 | + | then gk | |
1506 | + | else [StringEntry(hG, hr)] | |
1452 | 1507 | ||
1453 | 1508 | ||
1454 | 1509 | ||
1455 | 1510 | @Callable(dV) | |
1456 | - | func setI ( | |
1457 | - | then | |
1458 | - | else [IntegerEntry( | |
1511 | + | func setI (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1512 | + | then gk | |
1513 | + | else [IntegerEntry(hG, hr)] | |
1459 | 1514 | ||
1460 | 1515 | ||
1461 | 1516 | ||
1471 | 1526 | ||
1472 | 1527 | @Callable(dV) | |
1473 | 1528 | func calcPricesWrapperREADONLY (bY,bZ,cd) = { | |
1474 | - | let | |
1475 | - | $Tuple2(nil, [toString( | |
1529 | + | let hH = cc(bY, bZ, cd) | |
1530 | + | $Tuple2(nil, [toString(hH[0]), toString(hH[1]), toString(hH[2])]) | |
1476 | 1531 | } | |
1477 | 1532 | ||
1478 | 1533 | ||
1479 | 1534 | ||
1480 | 1535 | @Callable(dV) | |
1481 | - | func fromX18WrapperREADONLY (L, | |
1536 | + | func fromX18WrapperREADONLY (L,hI) = $Tuple2(nil, K(parseBigIntValue(L), hI)) | |
1482 | 1537 | ||
1483 | 1538 | ||
1484 | 1539 | ||
1493 | 1548 | ||
1494 | 1549 | ||
1495 | 1550 | @Callable(dV) | |
1496 | - | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT, | |
1551 | + | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT,hJ,cU,cV) = $Tuple2(nil, cP(cr, bN, cQ, cR, cS, cT, hJ, cU, cV, true, false, 0, "")) | |
1497 | 1552 | ||
1498 | 1553 | ||
1499 | 1554 | ||
1500 | 1555 | @Callable(dV) | |
1501 | - | func estimateGetOperationWrapperREADONLY (cr, | |
1502 | - | let dk = cq(cr, | |
1556 | + | func estimateGetOperationWrapperREADONLY (cr,hK,ct,hJ) = { | |
1557 | + | let dk = cq(cr, hK, ct, addressFromStringValue(hJ)) | |
1503 | 1558 | $Tuple2(nil, $Tuple10(dk._1, dk._2, dk._3, dk._4, dk._5, dk._6, dk._7, toString(dk._8), dk._9, dk._10)) | |
1504 | 1559 | } | |
1505 | 1560 | ||
1509 | 1564 | func getFeeREADONLY () = $Tuple2(nil, aj) | |
1510 | 1565 | ||
1511 | 1566 | ||
1512 | - | @Verifier( | |
1513 | - | func | |
1514 | - | let | |
1515 | - | let aE = | |
1567 | + | @Verifier(hL) | |
1568 | + | func hM () = { | |
1569 | + | let hN = { | |
1570 | + | let aE = gi() | |
1516 | 1571 | if ($isInstanceOf(aE, "ByteVector")) | |
1517 | 1572 | then { | |
1518 | - | let | |
1519 | - | | |
1573 | + | let gm = aE | |
1574 | + | gm | |
1520 | 1575 | } | |
1521 | 1576 | else if ($isInstanceOf(aE, "Unit")) | |
1522 | - | then | |
1577 | + | then hL.senderPublicKey | |
1523 | 1578 | else throw("Match error") | |
1524 | 1579 | } | |
1525 | - | let aE = | |
1580 | + | let aE = hL | |
1526 | 1581 | if ($isInstanceOf(aE, "Order")) | |
1527 | 1582 | then { | |
1528 | - | let | |
1529 | - | let | |
1530 | - | let | |
1531 | - | let | |
1532 | - | let | |
1533 | - | if (if (if ( | |
1534 | - | then | |
1583 | + | let eW = aE | |
1584 | + | let hO = aQ() | |
1585 | + | let hP = eV(eW) | |
1586 | + | let hQ = sigVerify(eW.bodyBytes, eW.proofs[0], eW.senderPublicKey) | |
1587 | + | let hR = sigVerify(eW.bodyBytes, eW.proofs[1], hO) | |
1588 | + | if (if (if (hP) | |
1589 | + | then hQ | |
1535 | 1590 | else false) | |
1536 | - | then | |
1591 | + | then hR | |
1537 | 1592 | else false) | |
1538 | 1593 | then true | |
1539 | - | else az( | |
1594 | + | else az(hP, hQ, hR) | |
1540 | 1595 | } | |
1541 | 1596 | else if ($isInstanceOf(aE, "SetScriptTransaction")) | |
1542 | 1597 | then { | |
1543 | 1598 | let dI = aE | |
1544 | - | let | |
1545 | - | let | |
1546 | - | let | |
1547 | - | if (if (( | |
1548 | - | then ( | |
1599 | + | let hS = blake2b256(value(dI.script)) | |
1600 | + | let hT = fromBase64String(value(getString(aN, ax()))) | |
1601 | + | let hU = scriptHash(this) | |
1602 | + | if (if ((hT == hS)) | |
1603 | + | then (hU != hS) | |
1549 | 1604 | else false) | |
1550 | 1605 | then true | |
1551 | - | else sigVerify( | |
1606 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1552 | 1607 | } | |
1553 | - | else sigVerify( | |
1608 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1554 | 1609 | } | |
1555 | 1610 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(3) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(4) | |
21 | 21 | ||
22 | 22 | let j = toBigInt((a - ((a * 1) / a))) | |
23 | 23 | ||
24 | 24 | let k = "WAVES" | |
25 | 25 | ||
26 | 26 | let l = "100" | |
27 | 27 | ||
28 | 28 | let m = "1" | |
29 | 29 | ||
30 | 30 | let n = "__" | |
31 | 31 | ||
32 | 32 | let o = "" | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | let u = 2 | |
45 | 45 | ||
46 | 46 | let v = 3 | |
47 | 47 | ||
48 | 48 | let w = 4 | |
49 | 49 | ||
50 | 50 | let x = 5 | |
51 | 51 | ||
52 | 52 | let y = 6 | |
53 | 53 | ||
54 | 54 | let z = 7 | |
55 | 55 | ||
56 | 56 | let A = 8 | |
57 | 57 | ||
58 | 58 | let B = 9 | |
59 | 59 | ||
60 | 60 | let C = 1 | |
61 | 61 | ||
62 | 62 | let D = 6 | |
63 | 63 | ||
64 | 64 | let E = 7 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = fraction(10, a, 10000) | |
69 | 69 | ||
70 | 70 | func H (I,J) = fraction(toBigInt(I), c, toBigInt(J)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func K (L,M) = toInt(fraction(L, toBigInt(M), c)) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func N (O,P,Q) = fraction(O, P, Q) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func R (L) = if ((d > L)) | |
80 | 80 | then -(L) | |
81 | 81 | else L | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func S (L) = if ((d > L)) | |
85 | 85 | then -(L) | |
86 | 86 | else L | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func T () = "%s__factoryContract" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func U () = "%s__managerPublicKey" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func V () = "%s__pendingManagerPublicKey" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func W () = "%s%s__price__last" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func X (Y,Z) = makeString(["%s%s%d%d__price__history", toString(Y), toString(Z)], n) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func aa (ab,ac) = ((("%s%s%s__P__" + ab) + "__") + ac) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func ad (ab,ac) = ((("%s%s%s__G__" + ab) + "__") + ac) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func ae () = "%s__amountAsset" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func af () = "%s__priceAsset" | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func ag () = "%s__amp" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ah () = "%s__addonAddr" | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | let ai = "%s__fee" | |
123 | 123 | ||
124 | 124 | let aj = valueOrElse(getInteger(this, ai), G) | |
125 | 125 | ||
126 | 126 | let ak = makeString(["%s", "dLp"], n) | |
127 | 127 | ||
128 | 128 | let al = makeString(["%s", "dLpRefreshedHeight"], n) | |
129 | 129 | ||
130 | 130 | let am = makeString(["%s", "refreshDLpDelay"], n) | |
131 | 131 | ||
132 | 132 | let an = 1 | |
133 | 133 | ||
134 | 134 | let ao = valueOrElse(getInteger(this, am), an) | |
135 | 135 | ||
136 | 136 | func ap () = "%s__factoryConfig" | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func aq () = "%s%s__matcher__publicKey" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ar (as,at) = (((("%d%d%s__" + as) + "__") + at) + "__config") | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func au (av) = ("%s%s%s__mappings__baseAsset2internalId__" + av) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func aw () = "%s__shutdown" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ax () = "%s__allowedLpStableScriptHash" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ay () = "%s__feeCollectorAddress" | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func az (aA,aB,aC) = throw(((((("Failed: ordValid=" + toString(aA)) + " sndrValid=") + toString(aB)) + " mtchrValid=") + toString(aC))) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aD (L) = { | |
161 | 161 | let aE = L | |
162 | 162 | if ($isInstanceOf(aE, "String")) | |
163 | 163 | then { | |
164 | 164 | let aF = aE | |
165 | 165 | aF | |
166 | 166 | } | |
167 | 167 | else throw("fail cast to String") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aG (aH,aI) = valueOrErrorMessage(getString(aH, aI), makeString(["mandatory ", toString(aH), ".", aI, " not defined"], "")) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aJ (aH,aI) = valueOrErrorMessage(getInteger(aH, aI), makeString(["mandatory ", toString(aH), ".", aI, " not defined"], "")) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aK (aL) = throw(makeString(["lp_stable.ride:", aL], " ")) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aM (aL) = makeString(["lp_stable.ride:", aL], " ") | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | let aN = addressFromStringValue(aG(this, T())) | |
184 | 184 | ||
185 | 185 | let aO = aG(this, ag()) | |
186 | 186 | ||
187 | 187 | func aP () = valueOrElse(getBoolean(aN, aw()), false) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aQ () = fromBase58String(aG(aN, aq())) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | let aR = addressFromStringValue(aG(aN, ay())) | |
194 | 194 | ||
195 | 195 | func aS () = { | |
196 | 196 | let aT = aG(this, ae()) | |
197 | 197 | let aU = aG(this, af()) | |
198 | 198 | let aV = aJ(aN, au(aU)) | |
199 | 199 | let as = aJ(aN, au(aT)) | |
200 | 200 | split(aG(aN, ar(toString(as), toString(aV))), n) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aW (aX) = if ((aX == k)) | |
205 | 205 | then unit | |
206 | 206 | else fromBase58String(aX) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func aY (aX) = if ((aX == unit)) | |
210 | 210 | then k | |
211 | 211 | else toBase58String(value(aX)) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aZ (ba) = $Tuple7(addressFromStringValue(ba[t]), parseIntValue(ba[u]), fromBase58String(ba[v]), aW(ba[w]), aW(ba[x]), parseIntValue(ba[y]), parseIntValue(ba[z])) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | let bb = aZ(aS()) | |
218 | 218 | ||
219 | 219 | let bc = bb | |
220 | 220 | ||
221 | 221 | let bd = bc._1 | |
222 | 222 | ||
223 | 223 | let be = bc._2 | |
224 | 224 | ||
225 | 225 | let bf = bc._3 | |
226 | 226 | ||
227 | 227 | let bg = bc._4 | |
228 | 228 | ||
229 | 229 | let bh = bc._5 | |
230 | 230 | ||
231 | 231 | let bi = bc._6 | |
232 | 232 | ||
233 | 233 | let bj = bc._7 | |
234 | 234 | ||
235 | 235 | func bk () = split(aG(aN, ap()), n) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | let bl = bk() | |
239 | 239 | ||
240 | 240 | let bm = valueOrErrorMessage(addressFromString(bl[C]), "Invalid staking contract address") | |
241 | 241 | ||
242 | 242 | let bn = valueOrErrorMessage(addressFromString(bl[E]), "Invalid slipage contract address") | |
243 | 243 | ||
244 | 244 | let bo = valueOrErrorMessage(addressFromString(bl[F]), "Invalid gwx contract address") | |
245 | 245 | ||
246 | 246 | let bp = valueOrErrorMessage(addressFromString(bl[D]), "Invalid gwx contract address") | |
247 | 247 | ||
248 | 248 | func bq (br,bs,bt,bu,bv,bw,bx,by,bz,bA) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(br), toString(bs), toString(bt), toString(bu), toString(bv), toString(bw), toString(bx), toString(by), toString(bz), toString(bA)], n) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func bB (bC,bD,bE,bu,bx,by) = makeString(["%d%d%d%d%d%d", toString(bC), toString(bD), toString(bE), toString(bu), toString(bx), toString(by)], n) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bF (bG) = if ((bG == "WAVES")) | |
255 | 255 | then wavesBalance(this).available | |
256 | 256 | else assetBalance(this, fromBase58String(bG)) | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func bH (bI,bJ) = fraction(bI, c, bJ) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bK (bL,bM,bN) = { | |
263 | 263 | let bO = fraction((bL - bM), b, bM) | |
264 | 264 | let bP = ((bN - R(bO)) > d) | |
265 | 265 | if (!(bP)) | |
266 | 266 | then throw(("Big slpg: " + toString(bO))) | |
267 | 267 | else $Tuple2(bP, min([bL, bM])) | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func bQ (bR,bS,bT) = { | |
272 | 272 | let bO = fraction(bS, b, bR) | |
273 | 273 | let bU = (bT > bO) | |
274 | 274 | if (if (bU) | |
275 | 275 | then true | |
276 | 276 | else (bS > bR)) | |
277 | 277 | then throw(((((((toString(bS) + " ") + toString(bR)) + " ") + toString(bO)) + " ") + toString(bT))) | |
278 | 278 | else bU | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func bV (bW,bX,bY,bZ) = { | |
283 | 283 | let ca = H(bY, bW) | |
284 | 284 | let cb = H(bZ, bX) | |
285 | 285 | bH(cb, ca) | |
286 | 286 | } | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func cc (bY,bZ,cd) = { | |
290 | 290 | let ce = aS() | |
291 | 291 | let cf = parseIntValue(ce[y]) | |
292 | 292 | let cg = parseIntValue(ce[z]) | |
293 | 293 | let ch = bV(cf, cg, bY, bZ) | |
294 | 294 | let bJ = H(bY, cf) | |
295 | 295 | let bI = H(bZ, cg) | |
296 | 296 | let ci = H(cd, a) | |
297 | 297 | let cj = bH(bJ, ci) | |
298 | 298 | let ck = bH(bI, ci) | |
299 | 299 | [ch, cj, ck] | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func cl (bY,bZ,cd) = { | |
304 | 304 | let cm = cc(bY, bZ, cd) | |
305 | 305 | [K(cm[0], a), K(cm[1], a), K(cm[2], a)] | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func cn (co) = { | |
310 | 310 | let cp = fraction(co, aj, a) | |
311 | 311 | $Tuple2((co - cp), cp) | |
312 | 312 | } | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func cq (cr,cs,ct,cu) = { | |
316 | 316 | let ce = aS() | |
317 | 317 | let cv = ce[v] | |
318 | 318 | let cw = ce[w] | |
319 | 319 | let cx = ce[x] | |
320 | 320 | let cy = parseIntValue(ce[y]) | |
321 | 321 | let cz = parseIntValue(ce[z]) | |
322 | 322 | let cA = ce[u] | |
323 | 323 | let cB = valueOrErrorMessage(assetInfo(fromBase58String(cv)), "Wrong LP id").quantity | |
324 | 324 | if ((cv != cs)) | |
325 | 325 | then throw("Wrong pmt asset") | |
326 | 326 | else { | |
327 | 327 | let cC = bF(cw) | |
328 | 328 | let cD = H(cC, cy) | |
329 | 329 | let cE = bF(cx) | |
330 | 330 | let cF = H(cE, cz) | |
331 | 331 | let cG = bH(cF, cD) | |
332 | 332 | let cH = K(cG, a) | |
333 | 333 | let cI = H(ct, a) | |
334 | 334 | let cJ = H(cB, a) | |
335 | 335 | let cK = fraction(cD, cI, cJ) | |
336 | 336 | let cL = fraction(cF, cI, cJ) | |
337 | 337 | let cM = K(cK, cy) | |
338 | 338 | let cN = K(cL, cz) | |
339 | 339 | let cO = if ((cr == "")) | |
340 | 340 | then nil | |
341 | 341 | else [ScriptTransfer(cu, cM, if ((cw == "WAVES")) | |
342 | 342 | then unit | |
343 | 343 | else fromBase58String(cw)), ScriptTransfer(cu, cN, if ((cx == "WAVES")) | |
344 | 344 | then unit | |
345 | 345 | else fromBase58String(cx)), StringEntry(ad(toString(cu), cr), bB(cM, cN, ct, cH, height, lastBlock.timestamp)), IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH)] | |
346 | 346 | $Tuple10(cM, cN, cw, cx, cC, cE, cB, cG, cA, cO) | |
347 | 347 | } | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 | ||
351 | 351 | func cP (cr,bN,cQ,cR,cS,cT,cu,cU,cV,cW,cX,cY,cZ) = { | |
352 | 352 | let ce = aS() | |
353 | 353 | let cv = fromBase58String(ce[v]) | |
354 | 354 | let da = ce[w] | |
355 | 355 | let db = ce[x] | |
356 | 356 | let dc = ce[A] | |
357 | 357 | let dd = ce[B] | |
358 | 358 | let de = parseIntValue(ce[y]) | |
359 | 359 | let df = parseIntValue(ce[z]) | |
360 | 360 | let cA = ce[u] | |
361 | 361 | let dg = valueOrErrorMessage(assetInfo(cv), "Wr lp as").quantity | |
362 | 362 | let cC = if (cU) | |
363 | 363 | then bF(da) | |
364 | 364 | else if (if (cW) | |
365 | 365 | then (cZ == da) | |
366 | 366 | else false) | |
367 | 367 | then (bF(da) - cY) | |
368 | 368 | else if (cW) | |
369 | 369 | then bF(da) | |
370 | 370 | else (bF(da) - cQ) | |
371 | 371 | let cE = if (cU) | |
372 | 372 | then bF(db) | |
373 | 373 | else if (if (cW) | |
374 | 374 | then (cZ == db) | |
375 | 375 | else false) | |
376 | 376 | then (bF(db) - cY) | |
377 | 377 | else if (cW) | |
378 | 378 | then bF(db) | |
379 | 379 | else (bF(db) - cS) | |
380 | 380 | let dh = H(cQ, de) | |
381 | 381 | let di = H(cS, df) | |
382 | 382 | let dj = bH(di, dh) | |
383 | 383 | let cD = H(cC, de) | |
384 | 384 | let cF = H(cE, df) | |
385 | 385 | let dk = if ((dg == 0)) | |
386 | 386 | then { | |
387 | 387 | let cG = d | |
388 | 388 | let dl = d | |
389 | 389 | let ci = pow((dh * di), 0, toBigInt(5), 1, 0, DOWN) | |
390 | 390 | $Tuple5(K(ci, a), K(dh, de), K(di, df), bH((cF + di), (cD + dh)), dl) | |
391 | 391 | } | |
392 | 392 | else { | |
393 | 393 | let cG = bH(cF, cD) | |
394 | 394 | let dm = fraction(R((cG - dj)), c, cG) | |
395 | 395 | let dl = H(bN, a) | |
396 | 396 | if (if (if (cX) | |
397 | 397 | then (cG != d) | |
398 | 398 | else false) | |
399 | 399 | then (dm > dl) | |
400 | 400 | else false) | |
401 | 401 | then throw(((("Price slippage " + toString(dm)) + " > ") + toString(dl))) | |
402 | 402 | else { | |
403 | 403 | let dn = H(dg, a) | |
404 | 404 | let do = fraction(dh, cG, c) | |
405 | 405 | let dp = fraction(di, c, cG) | |
406 | 406 | let dq = if ((do > di)) | |
407 | 407 | then $Tuple2(dp, di) | |
408 | 408 | else $Tuple2(dh, do) | |
409 | 409 | let dr = dq._1 | |
410 | 410 | let ds = dq._2 | |
411 | 411 | let ci = fraction(dn, ds, cF) | |
412 | 412 | $Tuple5(K(ci, a), K(dr, de), K(ds, df), cG, dl) | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | let dt = dk._1 | |
416 | 416 | let du = dk._2 | |
417 | 417 | let dv = dk._3 | |
418 | 418 | let cH = K(dk._4, a) | |
419 | 419 | let dw = K(dk._5, a) | |
420 | 420 | if ((0 >= dt)) | |
421 | 421 | then throw("LP <= 0") | |
422 | 422 | else { | |
423 | 423 | let dx = if (!(cV)) | |
424 | 424 | then 0 | |
425 | 425 | else dt | |
426 | 426 | let dy = (cQ - du) | |
427 | 427 | let dz = (cS - dv) | |
428 | 428 | let dA = if (if (cW) | |
429 | 429 | then (cZ == da) | |
430 | 430 | else false) | |
431 | 431 | then $Tuple2(cY, 0) | |
432 | 432 | else if (if (cW) | |
433 | 433 | then (cZ == db) | |
434 | 434 | else false) | |
435 | 435 | then $Tuple2(0, cY) | |
436 | 436 | else $Tuple2(du, dv) | |
437 | 437 | let dB = dA._1 | |
438 | 438 | let dC = dA._2 | |
439 | 439 | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, cr), bq(dB, dC, dx, cH, bN, dw, height, lastBlock.timestamp, dy, dz))] | |
440 | 440 | $Tuple13(dt, dx, cH, cC, cE, dg, cv, cA, dD, dy, dz, cR, cT) | |
441 | 441 | } | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | func dE (dF) = { | |
446 | 446 | let dG = dF[0] | |
447 | 447 | let dH = dF[1] | |
448 | 448 | let dI = (dG + dH) | |
449 | 449 | if ((dI == e)) | |
450 | 450 | then e | |
451 | 451 | else { | |
452 | 452 | let dJ = parseIntValue(aO) | |
453 | 453 | let dK = (dJ * 2) | |
454 | 454 | let cm = fraction(dG, dH, f) | |
455 | 455 | let dL = fraction(cm, i, f) | |
456 | 456 | let dM = fraction(toBigInt(dK), dI, f) | |
457 | 457 | let dN = toBigInt((dK - 1)) | |
458 | 458 | func dO (dP) = { | |
459 | 459 | let dQ = fraction(dP, dP, f) | |
460 | 460 | let dR = fraction(dQ, dP, f) | |
461 | 461 | let dS = fraction(dR, f, dL) | |
462 | 462 | fraction((dM + fraction(dS, g, f)), dP, (fraction(dN, dP, f) + fraction(h, dS, f))) | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | func dT (dU,dV) = if (dU._2) | |
466 | 466 | then dU | |
467 | 467 | else { | |
468 | 468 | let dP = dU._1 | |
469 | 469 | let dW = dO(dP) | |
470 | 470 | let dX = toInt((dW - value(dP))) | |
471 | 471 | let dY = if ((0 > dX)) | |
472 | 472 | then -(dX) | |
473 | 473 | else dX | |
474 | 474 | if ((1 >= dY)) | |
475 | 475 | then $Tuple2(dW, true) | |
476 | 476 | else $Tuple2(dW, false) | |
477 | 477 | } | |
478 | 478 | ||
479 | 479 | let dZ = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
480 | 480 | let ea = { | |
481 | 481 | let eb = dZ | |
482 | 482 | let ec = size(eb) | |
483 | 483 | let ed = $Tuple2(dI, false) | |
484 | 484 | func ee (ef,eg) = if ((eg >= ec)) | |
485 | 485 | then ef | |
486 | 486 | else dT(ef, eb[eg]) | |
487 | 487 | ||
488 | 488 | func eh (ef,eg) = if ((eg >= ec)) | |
489 | 489 | then ef | |
490 | 490 | else throw("List size exceeds 15") | |
491 | 491 | ||
492 | 492 | eh(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ed, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
493 | 493 | } | |
494 | 494 | let dP = ea._1 | |
495 | 495 | let ei = ea._2 | |
496 | 496 | if (ei) | |
497 | 497 | then dP | |
498 | 498 | else throw(("D calculation error, D = " + toString(dP))) | |
499 | 499 | } | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | - | func ej (dF,dV,ek) = { | |
504 | - | let el = g | |
505 | - | let em = dF[if ((dV == 0)) | |
503 | + | func ej (dF) = { | |
504 | + | let ek = g | |
505 | + | let dG = dF[0] | |
506 | + | let dH = dF[1] | |
507 | + | let el = parseBigIntValue(l) | |
508 | + | let dJ = (parseBigIntValue(aO) * el) | |
509 | + | let dI = (dG + dH) | |
510 | + | if ((dI == e)) | |
511 | + | then e | |
512 | + | else { | |
513 | + | let dK = (dJ * ek) | |
514 | + | let dL = (((dG * dH) * ek) * ek) | |
515 | + | let em = ((dK * dI) / el) | |
516 | + | let en = (dK - el) | |
517 | + | let eo = (ek + f) | |
518 | + | func dT (dU,ep) = { | |
519 | + | let eq = dU | |
520 | + | let dP = eq._1 | |
521 | + | let ei = eq._2 | |
522 | + | if ((ei != unit)) | |
523 | + | then dU | |
524 | + | else { | |
525 | + | let dS = (((dP * dP) * dP) / dL) | |
526 | + | let dW = (((em + (dS * ek)) * dP) / (((en * dP) / el) + (eo * dS))) | |
527 | + | let dY = S((dW - value(dP))) | |
528 | + | if ((f >= dY)) | |
529 | + | then $Tuple2(dW, ep) | |
530 | + | else $Tuple2(dW, unit) | |
531 | + | } | |
532 | + | } | |
533 | + | ||
534 | + | let dZ = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
535 | + | let er = { | |
536 | + | let eb = dZ | |
537 | + | let ec = size(eb) | |
538 | + | let ed = $Tuple2(dI, unit) | |
539 | + | func ee (ef,eg) = if ((eg >= ec)) | |
540 | + | then ef | |
541 | + | else dT(ef, eb[eg]) | |
542 | + | ||
543 | + | func eh (ef,eg) = if ((eg >= ec)) | |
544 | + | then ef | |
545 | + | else throw("List size exceeds 15") | |
546 | + | ||
547 | + | eh(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ed, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
548 | + | } | |
549 | + | let dP = er._1 | |
550 | + | let ei = er._2 | |
551 | + | if ((ei != unit)) | |
552 | + | then dP | |
553 | + | else throw(("D calculation error, D = " + toString(dP))) | |
554 | + | } | |
555 | + | } | |
556 | + | ||
557 | + | ||
558 | + | func es (dF,dV,et) = { | |
559 | + | let ek = g | |
560 | + | let eu = dF[if ((dV == 0)) | |
506 | 561 | then 1 | |
507 | 562 | else 0] | |
508 | - | let | |
509 | - | let dJ = (parseBigIntValue(aO) * | |
510 | - | let dI = | |
511 | - | let dK = (dJ * | |
512 | - | let | |
513 | - | let | |
514 | - | func dT (dU, | |
515 | - | let | |
516 | - | let | |
517 | - | let ei = | |
563 | + | let el = parseBigIntValue(l) | |
564 | + | let dJ = (parseBigIntValue(aO) * el) | |
565 | + | let dI = eu | |
566 | + | let dK = (dJ * ek) | |
567 | + | let ev = (((((et * et) / (eu * ek)) * et) * el) / (dK * ek)) | |
568 | + | let ew = ((dI + ((et * el) / dK)) - et) | |
569 | + | func dT (dU,ep) = { | |
570 | + | let ex = dU | |
571 | + | let ey = ex._1 | |
572 | + | let ei = ex._2 | |
518 | 573 | if ((ei != unit)) | |
519 | 574 | then dU | |
520 | 575 | else { | |
521 | - | let | |
522 | - | let | |
523 | - | if ((f >= | |
524 | - | then $Tuple2( | |
525 | - | else $Tuple2( | |
576 | + | let ez = (((ey * ey) + ev) / ((g * ey) + ew)) | |
577 | + | let eA = S((ez - value(ey))) | |
578 | + | if ((f >= eA)) | |
579 | + | then $Tuple2(ez, ep) | |
580 | + | else $Tuple2(ez, unit) | |
526 | 581 | } | |
527 | 582 | } | |
528 | 583 | ||
529 | 584 | let dZ = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
530 | - | let | |
585 | + | let eB = { | |
531 | 586 | let eb = dZ | |
532 | 587 | let ec = size(eb) | |
533 | - | let ed = $Tuple2( | |
588 | + | let ed = $Tuple2(et, unit) | |
534 | 589 | func ee (ef,eg) = if ((eg >= ec)) | |
535 | 590 | then ef | |
536 | 591 | else dT(ef, eb[eg]) | |
537 | 592 | ||
538 | 593 | func eh (ef,eg) = if ((eg >= ec)) | |
539 | 594 | then ef | |
540 | 595 | else throw("List size exceeds 15") | |
541 | 596 | ||
542 | 597 | eh(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(ed, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
543 | 598 | } | |
544 | - | let | |
545 | - | let ei = | |
599 | + | let ey = eB._1 | |
600 | + | let ei = eB._2 | |
546 | 601 | if ((ei != unit)) | |
547 | - | then | |
548 | - | else throw(("Y calculation error, Y = " + toString( | |
602 | + | then ey | |
603 | + | else throw(("Y calculation error, Y = " + toString(ey))) | |
549 | 604 | } | |
550 | 605 | ||
551 | 606 | ||
552 | - | func | |
553 | - | let | |
554 | - | | |
607 | + | func eC (eD,eE,eF) = { | |
608 | + | let eG = fraction(dE([eD, eE]), c, eF) | |
609 | + | eG | |
555 | 610 | } | |
556 | 611 | ||
557 | 612 | ||
558 | - | func | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | | |
613 | + | func eH (eI,eJ,eK) = { | |
614 | + | let eL = (toBigInt(bF(aY(bg))) - eI) | |
615 | + | let eM = (toBigInt(bF(aY(bh))) - eJ) | |
616 | + | let eN = (toBigInt(value(assetInfo(bf)).quantity) - eK) | |
617 | + | let eO = eC(eL, eM, eN) | |
618 | + | eO | |
564 | 619 | } | |
565 | 620 | ||
566 | 621 | ||
567 | - | func | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | $Tuple2( | |
622 | + | func eP (eQ,eR,eK) = { | |
623 | + | let eL = (bF(aY(bg)) + eQ) | |
624 | + | let eM = (bF(aY(bh)) + eR) | |
625 | + | let eN = (value(assetInfo(bf)).quantity + eK) | |
626 | + | let eG = eC(toBigInt(eL), toBigInt(eM), toBigInt(eN)) | |
627 | + | let eS = [IntegerEntry(al, height), StringEntry(ak, toString(eG))] | |
628 | + | $Tuple2(eS, eG) | |
574 | 629 | } | |
575 | 630 | ||
576 | 631 | ||
577 | - | func | |
632 | + | func eT (eU,eG) = if ((eG >= eU)) | |
578 | 633 | then true | |
579 | 634 | else aK("updated DLp lower than current DLp") | |
580 | 635 | ||
581 | 636 | ||
582 | - | func | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | then $Tuple2( | |
587 | - | else $Tuple2(-( | |
588 | - | let | |
589 | - | let | |
637 | + | func eV (eW) = { | |
638 | + | let eX = eW.amount | |
639 | + | let eY = fraction(eW.amount, eW.price, a, FLOOR) | |
640 | + | let eZ = if ((eW.orderType == Buy)) | |
641 | + | then $Tuple2(eX, -(eY)) | |
642 | + | else $Tuple2(-(eX), eY) | |
643 | + | let eQ = eZ._1 | |
644 | + | let eR = eZ._2 | |
590 | 645 | if (if (if (aP()) | |
591 | 646 | then true | |
592 | 647 | else (be == r)) | |
593 | 648 | then true | |
594 | 649 | else (be == s)) | |
595 | 650 | then throw("Admin blocked") | |
596 | - | else if (if (( | |
651 | + | else if (if ((eW.assetPair.amountAsset != bg)) | |
597 | 652 | then true | |
598 | - | else ( | |
653 | + | else (eW.assetPair.priceAsset != bh)) | |
599 | 654 | then throw("Wr assets") | |
600 | 655 | else { | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | | |
656 | + | let fa = parseBigIntValue(getStringValue(this, ak)) | |
657 | + | let fb = eP(eQ, eR, 0) | |
658 | + | let fc = fb._1 | |
659 | + | let fd = fb._2 | |
660 | + | let fe = (fd >= fa) | |
661 | + | fe | |
607 | 662 | } | |
608 | 663 | } | |
609 | 664 | ||
610 | 665 | ||
611 | - | func | |
666 | + | func ff (dV) = if ((size(dV.payments) != 1)) | |
612 | 667 | then throw("1 pmnt exp") | |
613 | 668 | else { | |
614 | - | let | |
615 | - | let cs = value( | |
616 | - | let cY = | |
669 | + | let fg = value(dV.payments[0]) | |
670 | + | let cs = value(fg.assetId) | |
671 | + | let cY = fg.amount | |
617 | 672 | let dk = cq(toBase58String(dV.transactionId), toBase58String(cs), cY, dV.caller) | |
618 | 673 | let cM = dk._1 | |
619 | 674 | let cN = dk._2 | |
620 | 675 | let cA = parseIntValue(dk._9) | |
621 | 676 | let cO = dk._10 | |
622 | 677 | if (if (aP()) | |
623 | 678 | then true | |
624 | 679 | else (cA == s)) | |
625 | 680 | then throw(("Admin blocked: " + toString(cA))) | |
626 | 681 | else $Tuple5(cM, cN, cY, cs, cO) | |
627 | 682 | } | |
628 | 683 | ||
629 | 684 | ||
630 | - | func | |
631 | - | let dk = cP(ac, bN, value( | |
685 | + | func fh (fi,ac,fj,fk,bN,cV,cW,cX,cY,cZ) = { | |
686 | + | let dk = cP(ac, bN, value(fj).amount, value(fj).assetId, value(fk).amount, value(fk).assetId, fi, (ac == ""), cV, cW, cX, cY, cZ) | |
632 | 687 | let cA = parseIntValue(dk._8) | |
633 | 688 | if (if (if (aP()) | |
634 | 689 | then true | |
635 | 690 | else (cA == q)) | |
636 | 691 | then true | |
637 | 692 | else (cA == s)) | |
638 | 693 | then throw(("Blocked:" + toString(cA))) | |
639 | 694 | else dk | |
640 | 695 | } | |
641 | 696 | ||
642 | 697 | ||
643 | - | func | |
698 | + | func fl (fm,cs,cu,ac,fn) = { | |
644 | 699 | let ba = aS() | |
645 | 700 | let cw = ba[w] | |
646 | 701 | let cx = ba[x] | |
647 | 702 | let cv = ba[v] | |
648 | 703 | let de = parseIntValue(ba[y]) | |
649 | 704 | let df = parseIntValue(ba[z]) | |
650 | - | let | |
651 | - | let | |
705 | + | let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
706 | + | let fo = if ((eN > e)) | |
652 | 707 | then true | |
653 | 708 | else throw("initial deposit requires all coins") | |
654 | - | if (( | |
709 | + | if ((fo == fo)) | |
655 | 710 | then { | |
656 | 711 | let cC = bF(cw) | |
657 | 712 | let cE = bF(cx) | |
658 | - | let | |
713 | + | let fp = if ((ac == "")) | |
659 | 714 | then $Tuple2(cC, cE) | |
660 | 715 | else if ((cs == cw)) | |
661 | - | then if (( | |
716 | + | then if ((fm > cC)) | |
662 | 717 | then throw("invalid payment amount") | |
663 | - | else $Tuple2((cC - | |
718 | + | else $Tuple2((cC - fm), cE) | |
664 | 719 | else if ((cs == cx)) | |
665 | - | then if (( | |
720 | + | then if ((fm > cE)) | |
666 | 721 | then throw("invalid payment amount") | |
667 | - | else $Tuple2(cC, (cE - | |
722 | + | else $Tuple2(cC, (cE - fm)) | |
668 | 723 | else throw("wrong pmtAssetId") | |
669 | - | let fk = fj._1 | |
670 | - | let fl = fj._2 | |
671 | - | let fm = if ((cs == cw)) | |
672 | - | then $Tuple2(fg, 0) | |
673 | - | else if ((cs == cx)) | |
674 | - | then $Tuple2(0, fg) | |
675 | - | else throw("invalid payment") | |
676 | - | let fn = fm._1 | |
677 | - | let fo = fm._2 | |
678 | - | let fp = if (fh) | |
679 | - | then $Tuple3(cn(fn)._1, cn(fo)._1, cn(fg)._2) | |
680 | - | else $Tuple3(fn, fo, 0) | |
681 | 724 | let fq = fp._1 | |
682 | 725 | let fr = fp._2 | |
683 | - | let cp = fp._3 | |
684 | - | let fs = (fk + fq) | |
685 | - | let ft = (fl + fr) | |
686 | - | let bS = dE([toBigInt(fk), toBigInt(fl)]) | |
687 | - | let bR = dE([toBigInt(fs), toBigInt(ft)]) | |
688 | - | let fu = if ((bR > bS)) | |
726 | + | let fs = if ((cs == cw)) | |
727 | + | then $Tuple2(fm, 0) | |
728 | + | else if ((cs == cx)) | |
729 | + | then $Tuple2(0, fm) | |
730 | + | else throw("invalid payment") | |
731 | + | let ft = fs._1 | |
732 | + | let fu = fs._2 | |
733 | + | let fv = if (fn) | |
734 | + | then $Tuple3(cn(ft)._1, cn(fu)._1, cn(fm)._2) | |
735 | + | else $Tuple3(ft, fu, 0) | |
736 | + | let fw = fv._1 | |
737 | + | let fx = fv._2 | |
738 | + | let cp = fv._3 | |
739 | + | let fy = (fq + fw) | |
740 | + | let fz = (fr + fx) | |
741 | + | let bS = dE([toBigInt(fq), toBigInt(fr)]) | |
742 | + | let bR = dE([toBigInt(fy), toBigInt(fz)]) | |
743 | + | let fA = if ((bR > bS)) | |
689 | 744 | then true | |
690 | 745 | else throw() | |
691 | - | if (( | |
746 | + | if ((fA == fA)) | |
692 | 747 | then { | |
693 | - | let | |
694 | - | let cH = K(bH(H( | |
695 | - | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq( | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | $Tuple4(toInt( | |
748 | + | let fB = fraction(eN, (bR - bS), bS) | |
749 | + | let cH = K(bH(H(fz, df), H(fy, de)), a) | |
750 | + | let dD = [IntegerEntry(W(), cH), IntegerEntry(X(height, lastBlock.timestamp), cH), StringEntry(aa(cu, ac), bq(ft, fu, toInt(fB), cH, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
751 | + | let fC = fraction(fr, a, fq) | |
752 | + | let fD = fraction(fm, a, (fC + a)) | |
753 | + | let fE = (fm - fD) | |
754 | + | let fF = fraction(eN, toBigInt(fE), toBigInt(fr)) | |
755 | + | let fG = toInt(fraction((fB - fF), b, fF)) | |
756 | + | $Tuple4(toInt(fB), dD, cp, fG) | |
702 | 757 | } | |
703 | 758 | else throw("Strict value is not equal to itself.") | |
704 | 759 | } | |
705 | 760 | else throw("Strict value is not equal to itself.") | |
706 | 761 | } | |
707 | 762 | ||
708 | 763 | ||
709 | - | func | |
764 | + | func fH (fI,fJ,fK,fi,fL,fM) = { | |
710 | 765 | let ba = aS() | |
711 | 766 | let cv = ba[v] | |
712 | 767 | let cw = ba[w] | |
713 | 768 | let cx = ba[x] | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let cu = if (( | |
718 | - | then | |
719 | - | else | |
720 | - | let | |
721 | - | let cs = value( | |
722 | - | let cY = | |
723 | - | let | |
724 | - | let cr = toBase58String( | |
769 | + | let fN = parseIntValue(ba[y]) | |
770 | + | let fO = parseIntValue(ba[z]) | |
771 | + | let fP = ba[u] | |
772 | + | let cu = if ((fi == bp)) | |
773 | + | then fL | |
774 | + | else fi | |
775 | + | let fg = value(fK[0]) | |
776 | + | let cs = value(fg.assetId) | |
777 | + | let cY = fg.amount | |
778 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
779 | + | let cr = toBase58String(fM) | |
725 | 780 | if ((cv != toBase58String(cs))) | |
726 | 781 | then throw("Wrong LP") | |
727 | 782 | else { | |
728 | 783 | let cC = bF(cw) | |
729 | 784 | let cE = bF(cx) | |
730 | - | let | |
731 | - | let | |
732 | - | if ($isInstanceOf( | |
733 | - | then | |
734 | - | else throw(($getType( | |
785 | + | let fQ = { | |
786 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, cY], nil) | |
787 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
788 | + | then fR | |
789 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
735 | 790 | } | |
736 | - | if (( | |
791 | + | if ((fQ == fQ)) | |
737 | 792 | then { | |
738 | - | let cp = | |
739 | - | let | |
740 | - | let | |
741 | - | then ( | |
793 | + | let cp = fQ._2 | |
794 | + | let fS = fQ._1 | |
795 | + | let fT = if (if ((fJ > 0)) | |
796 | + | then (fJ > fS) | |
742 | 797 | else false) | |
743 | - | then aK(makeString(["amount to receive is less than ", toString( | |
744 | - | else | |
745 | - | let | |
746 | - | then $Tuple4( | |
747 | - | else if (( | |
748 | - | then $Tuple4(0, | |
798 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
799 | + | else fS | |
800 | + | let fU = if ((fI == cw)) | |
801 | + | then $Tuple4(fT, 0, ((cC - fT) - cp), cE) | |
802 | + | else if ((fI == cx)) | |
803 | + | then $Tuple4(0, fT, cC, ((cE - fT) - cp)) | |
749 | 804 | else throw("invalid out asset id") | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
805 | + | let fV = fU._1 | |
806 | + | let fW = fU._2 | |
807 | + | let fy = fU._3 | |
808 | + | let fz = fU._4 | |
809 | + | let fX = bH(H(fz, fO), H(fy, fN)) | |
810 | + | let fY = K(fX, a) | |
811 | + | let fZ = if ((fI == "WAVES")) | |
757 | 812 | then unit | |
758 | - | else fromBase58String( | |
759 | - | let | |
760 | - | then [ScriptTransfer(aR, cp, | |
813 | + | else fromBase58String(fI) | |
814 | + | let ga = if ((cp > 0)) | |
815 | + | then [ScriptTransfer(aR, cp, fZ)] | |
761 | 816 | else nil | |
762 | - | let cO = ([ScriptTransfer(cu, | |
817 | + | let cO = ([ScriptTransfer(cu, fT, fZ), StringEntry(ad(toString(cu), cr), bB(fV, fW, cY, fY, height, lastBlock.timestamp)), IntegerEntry(W(), fY), IntegerEntry(X(height, lastBlock.timestamp), fY)] ++ ga) | |
763 | 818 | if ((cO == cO)) | |
764 | 819 | then { | |
765 | - | let | |
766 | - | if (( | |
820 | + | let gb = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
821 | + | if ((gb == gb)) | |
767 | 822 | then { | |
768 | - | let | |
769 | - | let | |
823 | + | let gc = { | |
824 | + | let gd = if ((this == aR)) | |
770 | 825 | then 0 | |
771 | 826 | else cp | |
772 | - | let | |
827 | + | let ge = if ((aW(fI) == bg)) | |
773 | 828 | then true | |
774 | 829 | else false | |
775 | - | if ( | |
776 | - | then $Tuple2(-(( | |
777 | - | else $Tuple2(0, -(( | |
830 | + | if (ge) | |
831 | + | then $Tuple2(-((fS + gd)), 0) | |
832 | + | else $Tuple2(0, -((fS + gd))) | |
778 | 833 | } | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | if (( | |
786 | - | then $Tuple2((cO ++ | |
834 | + | let eQ = gc._1 | |
835 | + | let eR = gc._2 | |
836 | + | let gf = eP(eQ, eR, 0) | |
837 | + | let gg = gf._1 | |
838 | + | let eG = gf._2 | |
839 | + | let gh = eT(eO, eG) | |
840 | + | if ((gh == gh)) | |
841 | + | then $Tuple2((cO ++ gg), fT) | |
787 | 842 | else throw("Strict value is not equal to itself.") | |
788 | 843 | } | |
789 | 844 | else throw("Strict value is not equal to itself.") | |
790 | 845 | } | |
791 | 846 | else throw("Strict value is not equal to itself.") | |
792 | 847 | } | |
793 | 848 | else throw("Strict value is not equal to itself.") | |
794 | 849 | } | |
795 | 850 | } | |
796 | 851 | ||
797 | 852 | ||
798 | - | func | |
853 | + | func gi () = { | |
799 | 854 | let aE = getString(U()) | |
800 | 855 | if ($isInstanceOf(aE, "String")) | |
801 | 856 | then { | |
802 | 857 | let dI = aE | |
803 | 858 | fromBase58String(dI) | |
804 | 859 | } | |
805 | 860 | else if ($isInstanceOf(aE, "Unit")) | |
806 | 861 | then unit | |
807 | 862 | else throw("Match error") | |
808 | 863 | } | |
809 | 864 | ||
810 | 865 | ||
811 | - | func | |
866 | + | func gj () = { | |
812 | 867 | let aE = getString(V()) | |
813 | 868 | if ($isInstanceOf(aE, "String")) | |
814 | 869 | then { | |
815 | 870 | let dI = aE | |
816 | 871 | fromBase58String(dI) | |
817 | 872 | } | |
818 | 873 | else if ($isInstanceOf(aE, "Unit")) | |
819 | 874 | then unit | |
820 | 875 | else throw("Match error") | |
821 | 876 | } | |
822 | 877 | ||
823 | 878 | ||
824 | - | let | |
879 | + | let gk = throw("Permission denied") | |
825 | 880 | ||
826 | - | func | |
827 | - | let aE = | |
881 | + | func gl (dV) = { | |
882 | + | let aE = gi() | |
828 | 883 | if ($isInstanceOf(aE, "ByteVector")) | |
829 | 884 | then { | |
830 | - | let | |
831 | - | (dV.callerPublicKey == | |
885 | + | let gm = aE | |
886 | + | (dV.callerPublicKey == gm) | |
832 | 887 | } | |
833 | 888 | else if ($isInstanceOf(aE, "Unit")) | |
834 | 889 | then (dV.caller == this) | |
835 | 890 | else throw("Match error") | |
836 | 891 | } | |
837 | 892 | ||
838 | 893 | ||
839 | - | func | |
840 | - | let aE = | |
894 | + | func gn (dV) = { | |
895 | + | let aE = gi() | |
841 | 896 | if ($isInstanceOf(aE, "ByteVector")) | |
842 | 897 | then { | |
843 | - | let | |
844 | - | if ((dV.callerPublicKey == | |
898 | + | let gm = aE | |
899 | + | if ((dV.callerPublicKey == gm)) | |
845 | 900 | then true | |
846 | - | else | |
901 | + | else gk | |
847 | 902 | } | |
848 | 903 | else if ($isInstanceOf(aE, "Unit")) | |
849 | 904 | then if ((dV.caller == this)) | |
850 | 905 | then true | |
851 | - | else | |
906 | + | else gk | |
852 | 907 | else throw("Match error") | |
853 | 908 | } | |
854 | 909 | ||
855 | 910 | ||
856 | 911 | @Callable(dV) | |
857 | 912 | func constructor (T) = { | |
858 | - | let | |
859 | - | if (( | |
913 | + | let ev = gn(dV) | |
914 | + | if ((ev == ev)) | |
860 | 915 | then [StringEntry(T(), T)] | |
861 | 916 | else throw("Strict value is not equal to itself.") | |
862 | 917 | } | |
863 | 918 | ||
864 | 919 | ||
865 | 920 | ||
866 | 921 | @Callable(dV) | |
867 | - | func setManager ( | |
868 | - | let | |
869 | - | if (( | |
922 | + | func setManager (go) = { | |
923 | + | let ev = gn(dV) | |
924 | + | if ((ev == ev)) | |
870 | 925 | then { | |
871 | - | let | |
872 | - | if (( | |
873 | - | then [StringEntry(V(), | |
926 | + | let gp = fromBase58String(go) | |
927 | + | if ((gp == gp)) | |
928 | + | then [StringEntry(V(), go)] | |
874 | 929 | else throw("Strict value is not equal to itself.") | |
875 | 930 | } | |
876 | 931 | else throw("Strict value is not equal to itself.") | |
877 | 932 | } | |
878 | 933 | ||
879 | 934 | ||
880 | 935 | ||
881 | 936 | @Callable(dV) | |
882 | 937 | func confirmManager () = { | |
883 | - | let cm = | |
884 | - | let | |
938 | + | let cm = gj() | |
939 | + | let gq = if (isDefined(cm)) | |
885 | 940 | then true | |
886 | 941 | else throw("No pending manager") | |
887 | - | if (( | |
942 | + | if ((gq == gq)) | |
888 | 943 | then { | |
889 | - | let | |
944 | + | let gr = if ((dV.callerPublicKey == value(cm))) | |
890 | 945 | then true | |
891 | 946 | else throw("You are not pending manager") | |
892 | - | if (( | |
947 | + | if ((gr == gr)) | |
893 | 948 | then [StringEntry(U(), toBase58String(value(cm))), DeleteEntry(V())] | |
894 | 949 | else throw("Strict value is not equal to itself.") | |
895 | 950 | } | |
896 | 951 | else throw("Strict value is not equal to itself.") | |
897 | 952 | } | |
898 | 953 | ||
899 | 954 | ||
900 | 955 | ||
901 | 956 | @Callable(dV) | |
902 | - | func put ( | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | if ((0 > | |
957 | + | func put (gs,gt) = { | |
958 | + | let gu = bk() | |
959 | + | let gv = valueOrErrorMessage(addressFromString(gu[C]), "Wr st addr") | |
960 | + | let gw = valueOrErrorMessage(addressFromString(gu[E]), "Wr sl addr") | |
961 | + | if ((0 > gs)) | |
907 | 962 | then throw("Wrong slippage") | |
908 | 963 | else if ((size(dV.payments) != 2)) | |
909 | 964 | then throw("2 pmnts expd") | |
910 | 965 | else { | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | if (( | |
966 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
967 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
968 | + | let eO = eH(gx, gy, toBigInt(0)) | |
969 | + | if ((eO == eO)) | |
915 | 970 | then { | |
916 | - | let | |
917 | - | let dx = | |
918 | - | let | |
919 | - | let cO = | |
920 | - | let dy = | |
921 | - | let dz = | |
922 | - | let cw = | |
923 | - | let cx = | |
971 | + | let gz = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gs, true, false, true, 0, "") | |
972 | + | let dx = gz._2 | |
973 | + | let gA = gz._7 | |
974 | + | let cO = gz._9 | |
975 | + | let dy = gz._10 | |
976 | + | let dz = gz._11 | |
977 | + | let cw = gz._12 | |
978 | + | let cx = gz._13 | |
924 | 979 | let dk = invoke(aN, "emit", [dx], nil) | |
925 | 980 | if ((dk == dk)) | |
926 | 981 | then { | |
927 | - | let | |
982 | + | let gB = { | |
928 | 983 | let aE = dk | |
929 | 984 | if ($isInstanceOf(aE, "Address")) | |
930 | 985 | then { | |
931 | - | let | |
932 | - | invoke( | |
986 | + | let gC = aE | |
987 | + | invoke(gC, "emit", [dx], nil) | |
933 | 988 | } | |
934 | 989 | else unit | |
935 | 990 | } | |
936 | - | if (( | |
991 | + | if ((gB == gB)) | |
937 | 992 | then { | |
938 | - | let | |
939 | - | then invoke( | |
993 | + | let gD = if ((dy > 0)) | |
994 | + | then invoke(gw, "put", nil, [AttachedPayment(cw, dy)]) | |
940 | 995 | else nil | |
941 | - | if (( | |
996 | + | if ((gD == gD)) | |
942 | 997 | then { | |
943 | - | let | |
944 | - | then invoke( | |
998 | + | let gE = if ((dz > 0)) | |
999 | + | then invoke(gw, "put", nil, [AttachedPayment(cx, dz)]) | |
945 | 1000 | else nil | |
946 | - | if (( | |
1001 | + | if ((gE == gE)) | |
947 | 1002 | then { | |
948 | - | let | |
1003 | + | let gF = if (gt) | |
949 | 1004 | then { | |
950 | - | let | |
951 | - | if (( | |
1005 | + | let gG = invoke(gv, "stake", nil, [AttachedPayment(gA, dx)]) | |
1006 | + | if ((gG == gG)) | |
952 | 1007 | then nil | |
953 | 1008 | else throw("Strict value is not equal to itself.") | |
954 | 1009 | } | |
955 | - | else [ScriptTransfer(dV.caller, dx, | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | if (( | |
961 | - | then ((cO ++ | |
1010 | + | else [ScriptTransfer(dV.caller, dx, gA)] | |
1011 | + | let gH = eP(0, 0, 0) | |
1012 | + | let gg = gH._1 | |
1013 | + | let eG = gH._2 | |
1014 | + | let gh = eT(eO, eG) | |
1015 | + | if ((gh == gh)) | |
1016 | + | then ((cO ++ gF) ++ gg) | |
962 | 1017 | else throw("Strict value is not equal to itself.") | |
963 | 1018 | } | |
964 | 1019 | else throw("Strict value is not equal to itself.") | |
965 | 1020 | } | |
966 | 1021 | else throw("Strict value is not equal to itself.") | |
967 | 1022 | } | |
968 | 1023 | else throw("Strict value is not equal to itself.") | |
969 | 1024 | } | |
970 | 1025 | else throw("Strict value is not equal to itself.") | |
971 | 1026 | } | |
972 | 1027 | else throw("Strict value is not equal to itself.") | |
973 | 1028 | } | |
974 | 1029 | } | |
975 | 1030 | ||
976 | 1031 | ||
977 | 1032 | ||
978 | 1033 | @Callable(dV) | |
979 | - | func putOneTknV2 ( | |
980 | - | let | |
981 | - | let | |
982 | - | if ($isInstanceOf( | |
983 | - | then | |
984 | - | else throw(($getType( | |
1034 | + | func putOneTknV2 (fJ,gt) = { | |
1035 | + | let gI = { | |
1036 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1037 | + | if ($isInstanceOf(fR, "Boolean")) | |
1038 | + | then fR | |
1039 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
985 | 1040 | } | |
986 | - | let | |
1041 | + | let gJ = if (if (if (aP()) | |
987 | 1042 | then true | |
988 | 1043 | else (be == q)) | |
989 | 1044 | then true | |
990 | 1045 | else (be == s)) | |
991 | 1046 | then true | |
992 | - | else | |
993 | - | let | |
1047 | + | else gI | |
1048 | + | let gK = [if (if (!(gJ)) | |
994 | 1049 | then true | |
995 | - | else | |
1050 | + | else gl(dV)) | |
996 | 1051 | then true | |
997 | 1052 | else aK("put operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
998 | 1053 | then true | |
999 | 1054 | else aK("exactly 1 payment are expected")] | |
1000 | - | if (( | |
1055 | + | if ((gK == gK)) | |
1001 | 1056 | then { | |
1002 | 1057 | let ba = aS() | |
1003 | 1058 | let cw = ba[w] | |
1004 | 1059 | let cx = ba[x] | |
1005 | 1060 | let cv = fromBase58String(ba[v]) | |
1006 | - | let | |
1007 | - | let | |
1061 | + | let fN = parseIntValue(ba[y]) | |
1062 | + | let fO = parseIntValue(ba[z]) | |
1008 | 1063 | let cu = if ((dV.caller == this)) | |
1009 | 1064 | then dV.originCaller | |
1010 | 1065 | else dV.caller | |
1011 | - | let | |
1012 | - | let cs = toBase58String(value( | |
1013 | - | let cY = | |
1014 | - | let | |
1015 | - | if (( | |
1066 | + | let fg = value(dV.payments[0]) | |
1067 | + | let cs = toBase58String(value(fg.assetId)) | |
1068 | + | let cY = fg.amount | |
1069 | + | let gL = fl(cY, cs, toString(cu), toBase58String(dV.transactionId), true) | |
1070 | + | if ((gL == gL)) | |
1016 | 1071 | then { | |
1017 | - | let cp = | |
1018 | - | let cO = | |
1019 | - | let | |
1020 | - | let dx = if (if (( | |
1021 | - | then ( | |
1072 | + | let cp = gL._3 | |
1073 | + | let cO = gL._2 | |
1074 | + | let gM = gL._1 | |
1075 | + | let dx = if (if ((fJ > 0)) | |
1076 | + | then (fJ > gM) | |
1022 | 1077 | else false) | |
1023 | - | then aK(makeString(["amount to receive is less than ", toString( | |
1024 | - | else | |
1025 | - | let | |
1026 | - | if (( | |
1078 | + | then aK(makeString(["amount to receive is less than ", toString(fJ)], "")) | |
1079 | + | else gM | |
1080 | + | let gz = invoke(aN, "emit", [dx], nil) | |
1081 | + | if ((gz == gz)) | |
1027 | 1082 | then { | |
1028 | - | let | |
1029 | - | let aE = | |
1083 | + | let gB = { | |
1084 | + | let aE = gz | |
1030 | 1085 | if ($isInstanceOf(aE, "Address")) | |
1031 | 1086 | then { | |
1032 | - | let | |
1033 | - | invoke( | |
1087 | + | let gC = aE | |
1088 | + | invoke(gC, "emit", [dx], nil) | |
1034 | 1089 | } | |
1035 | 1090 | else unit | |
1036 | 1091 | } | |
1037 | - | if (( | |
1092 | + | if ((gB == gB)) | |
1038 | 1093 | then { | |
1039 | - | let | |
1094 | + | let gF = if (gt) | |
1040 | 1095 | then { | |
1041 | - | let | |
1042 | - | if (( | |
1096 | + | let gG = invoke(bm, "stake", nil, [AttachedPayment(cv, dx)]) | |
1097 | + | if ((gG == gG)) | |
1043 | 1098 | then nil | |
1044 | 1099 | else throw("Strict value is not equal to itself.") | |
1045 | 1100 | } | |
1046 | 1101 | else [ScriptTransfer(dV.caller, dx, cv)] | |
1047 | - | let | |
1102 | + | let ga = if ((cp > 0)) | |
1048 | 1103 | then [ScriptTransfer(aR, cp, fromBase58String(cs))] | |
1049 | 1104 | else nil | |
1050 | - | let | |
1105 | + | let gN = if ((this == aR)) | |
1051 | 1106 | then $Tuple2(0, 0) | |
1052 | 1107 | else { | |
1053 | - | let | |
1108 | + | let gO = if ((fg.assetId == bg)) | |
1054 | 1109 | then true | |
1055 | 1110 | else false | |
1056 | - | if ( | |
1111 | + | if (gO) | |
1057 | 1112 | then $Tuple2(-(cp), 0) | |
1058 | 1113 | else $Tuple2(0, -(cp)) | |
1059 | 1114 | } | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | $Tuple2((((cO ++ | |
1115 | + | let eQ = gN._1 | |
1116 | + | let eR = gN._2 | |
1117 | + | let gP = eP(eQ, eR, 0) | |
1118 | + | let gg = gP._1 | |
1119 | + | let eG = gP._2 | |
1120 | + | $Tuple2((((cO ++ gF) ++ ga) ++ gg), dx) | |
1066 | 1121 | } | |
1067 | 1122 | else throw("Strict value is not equal to itself.") | |
1068 | 1123 | } | |
1069 | 1124 | else throw("Strict value is not equal to itself.") | |
1070 | 1125 | } | |
1071 | 1126 | else throw("Strict value is not equal to itself.") | |
1072 | 1127 | } | |
1073 | 1128 | else throw("Strict value is not equal to itself.") | |
1074 | 1129 | } | |
1075 | 1130 | ||
1076 | 1131 | ||
1077 | 1132 | ||
1078 | 1133 | @Callable(dV) | |
1079 | - | func putForFree ( | |
1134 | + | func putForFree (gQ) = if ((0 > gQ)) | |
1080 | 1135 | then throw("Wrong slpg") | |
1081 | 1136 | else if ((size(dV.payments) != 2)) | |
1082 | 1137 | then throw("2 pmnts expd") | |
1083 | 1138 | else { | |
1084 | - | let | |
1085 | - | let cO = | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | if (( | |
1139 | + | let gR = fh(toString(dV.caller), toBase58String(dV.transactionId), AttachedPayment(value(dV.payments[0]).assetId, value(dV.payments[0]).amount), dV.payments[1], gQ, false, false, true, 0, "") | |
1140 | + | let cO = gR._9 | |
1141 | + | let gx = toBigInt(value(dV.payments[0]).amount) | |
1142 | + | let gy = toBigInt(value(dV.payments[1]).amount) | |
1143 | + | let eO = eH(gx, gy, toBigInt(0)) | |
1144 | + | if ((eO == eO)) | |
1090 | 1145 | then { | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | if (( | |
1096 | - | then (cO ++ | |
1146 | + | let gS = eP(0, 0, 0) | |
1147 | + | let gg = gS._1 | |
1148 | + | let eG = gS._2 | |
1149 | + | let gh = eT(eO, eG) | |
1150 | + | if ((gh == gh)) | |
1151 | + | then (cO ++ gg) | |
1097 | 1152 | else throw("Strict value is not equal to itself.") | |
1098 | 1153 | } | |
1099 | 1154 | else throw("Strict value is not equal to itself.") | |
1100 | 1155 | } | |
1101 | 1156 | ||
1102 | 1157 | ||
1103 | 1158 | ||
1104 | 1159 | @Callable(dV) | |
1105 | 1160 | func get () = { | |
1106 | - | let dk = | |
1107 | - | let | |
1161 | + | let dk = ff(dV) | |
1162 | + | let gT = dk._1 | |
1108 | 1163 | let cN = dk._2 | |
1109 | 1164 | let cY = dk._3 | |
1110 | 1165 | let cs = dk._4 | |
1111 | 1166 | let cO = dk._5 | |
1112 | - | let | |
1113 | - | if (( | |
1167 | + | let ew = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1168 | + | if ((ew == ew)) | |
1114 | 1169 | then { | |
1115 | - | let | |
1116 | - | let | |
1117 | - | let | |
1118 | - | let | |
1119 | - | let | |
1120 | - | if (( | |
1121 | - | then (cO ++ | |
1170 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1171 | + | let gU = eP(-(gT), -(cN), 0) | |
1172 | + | let gg = gU._1 | |
1173 | + | let eG = gU._2 | |
1174 | + | let gh = eT(eO, eG) | |
1175 | + | if ((gh == gh)) | |
1176 | + | then (cO ++ gg) | |
1122 | 1177 | else throw("Strict value is not equal to itself.") | |
1123 | 1178 | } | |
1124 | 1179 | else throw("Strict value is not equal to itself.") | |
1125 | 1180 | } | |
1126 | 1181 | ||
1127 | 1182 | ||
1128 | 1183 | ||
1129 | 1184 | @Callable(dV) | |
1130 | - | func getOneTknV2 ( | |
1131 | - | let | |
1132 | - | let | |
1133 | - | if ($isInstanceOf( | |
1134 | - | then | |
1135 | - | else throw(($getType( | |
1185 | + | func getOneTknV2 (fI,fJ) = { | |
1186 | + | let gI = { | |
1187 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1188 | + | if ($isInstanceOf(fR, "Boolean")) | |
1189 | + | then fR | |
1190 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1136 | 1191 | } | |
1137 | - | let | |
1192 | + | let gV = if (if (aP()) | |
1138 | 1193 | then true | |
1139 | 1194 | else (be == s)) | |
1140 | 1195 | then true | |
1141 | - | else | |
1142 | - | let | |
1196 | + | else gI | |
1197 | + | let gK = [if (if (!(gV)) | |
1143 | 1198 | then true | |
1144 | - | else | |
1199 | + | else gl(dV)) | |
1145 | 1200 | then true | |
1146 | 1201 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 1)) | |
1147 | 1202 | then true | |
1148 | 1203 | else aK("exactly 1 payment are expected")] | |
1149 | - | if (( | |
1204 | + | if ((gK == gK)) | |
1150 | 1205 | then { | |
1151 | - | let | |
1152 | - | let cO = | |
1153 | - | let | |
1154 | - | $Tuple2(cO, | |
1206 | + | let gW = fH(fI, fJ, dV.payments, dV.caller, dV.originCaller, dV.transactionId) | |
1207 | + | let cO = gW._1 | |
1208 | + | let fT = gW._2 | |
1209 | + | $Tuple2(cO, fT) | |
1155 | 1210 | } | |
1156 | 1211 | else throw("Strict value is not equal to itself.") | |
1157 | 1212 | } | |
1158 | 1213 | ||
1159 | 1214 | ||
1160 | 1215 | ||
1161 | 1216 | @Callable(dV) | |
1162 | 1217 | func refreshDLp () = { | |
1163 | - | let | |
1164 | - | let | |
1218 | + | let gX = valueOrElse(getInteger(al), 0) | |
1219 | + | let gY = if (((height - gX) >= ao)) | |
1165 | 1220 | then unit | |
1166 | 1221 | else aK(makeString([toString(ao), " blocks have not passed since the previous call"], "")) | |
1167 | - | if (( | |
1222 | + | if ((gY == gY)) | |
1168 | 1223 | then { | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | then | |
1224 | + | let fa = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ak), "0")), aM("invalid dLp")) | |
1225 | + | let gZ = eP(0, 0, 0) | |
1226 | + | let ha = gZ._1 | |
1227 | + | let eG = gZ._2 | |
1228 | + | let eS = if ((fa != eG)) | |
1229 | + | then ha | |
1175 | 1230 | else aK("nothing to refresh") | |
1176 | - | $Tuple2( | |
1231 | + | $Tuple2(eS, toString(eG)) | |
1177 | 1232 | } | |
1178 | 1233 | else throw("Strict value is not equal to itself.") | |
1179 | 1234 | } | |
1180 | 1235 | ||
1181 | 1236 | ||
1182 | 1237 | ||
1183 | 1238 | @Callable(dV) | |
1184 | - | func getOneTknV2READONLY ( | |
1239 | + | func getOneTknV2READONLY (fI,hb) = { | |
1185 | 1240 | let ba = aS() | |
1186 | 1241 | let cw = ba[w] | |
1187 | 1242 | let cx = ba[x] | |
1188 | 1243 | let cv = ba[v] | |
1189 | 1244 | let dF = [toBigInt(bF(cw)), toBigInt(bF(cx))] | |
1190 | - | let | |
1245 | + | let eF = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(cv)), "invalid lp asset").quantity) | |
1191 | 1246 | let bS = dE(dF) | |
1192 | - | let bR = (bS - fraction(toBigInt( | |
1193 | - | let | |
1247 | + | let bR = (bS - fraction(toBigInt(hb), bS, eF)) | |
1248 | + | let hc = if ((fI == cw)) | |
1194 | 1249 | then 0 | |
1195 | - | else if (( | |
1250 | + | else if ((fI == cx)) | |
1196 | 1251 | then 1 | |
1197 | 1252 | else throw("invalid out asset id") | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | let cp = | |
1204 | - | $Tuple2(nil, $Tuple2( | |
1253 | + | let hd = es(dF, hc, bR) | |
1254 | + | let he = (dF[hc] - hd) | |
1255 | + | let hf = max([0, toInt((he - f))]) | |
1256 | + | let hg = cn(hf) | |
1257 | + | let fS = hg._1 | |
1258 | + | let cp = hg._2 | |
1259 | + | $Tuple2(nil, $Tuple2(fS, cp)) | |
1205 | 1260 | } | |
1206 | 1261 | ||
1207 | 1262 | ||
1208 | 1263 | ||
1209 | 1264 | @Callable(dV) | |
1210 | - | func getOneTknV2WithBonusREADONLY ( | |
1265 | + | func getOneTknV2WithBonusREADONLY (fI,hb) = { | |
1211 | 1266 | let ba = aS() | |
1212 | 1267 | let cw = ba[w] | |
1213 | 1268 | let cx = ba[x] | |
1214 | 1269 | let cv = ba[v] | |
1215 | 1270 | let cC = bF(cw) | |
1216 | 1271 | let cE = bF(cx) | |
1217 | - | let | |
1218 | - | let | |
1219 | - | if ($isInstanceOf( | |
1220 | - | then | |
1221 | - | else throw(($getType( | |
1272 | + | let hh = { | |
1273 | + | let fR = invoke(this, "getOneTknV2READONLY", [fI, hb], nil) | |
1274 | + | if ($isInstanceOf(fR, "(Int, Int)")) | |
1275 | + | then fR | |
1276 | + | else throw(($getType(fR) + " couldn't be cast to (Int, Int)")) | |
1222 | 1277 | } | |
1223 | - | let | |
1224 | - | let cp = | |
1225 | - | let dk = cq("", cv, | |
1278 | + | let fS = hh._1 | |
1279 | + | let cp = hh._2 | |
1280 | + | let dk = cq("", cv, hb, this) | |
1226 | 1281 | let cM = dk._1 | |
1227 | 1282 | let cN = dk._2 | |
1228 | - | let | |
1229 | - | let | |
1230 | - | then if (( | |
1283 | + | let hi = (cM + cN) | |
1284 | + | let fG = if ((hi == 0)) | |
1285 | + | then if ((fS == 0)) | |
1231 | 1286 | then 0 | |
1232 | 1287 | else throw("bonus calculation error") | |
1233 | - | else fraction(( | |
1234 | - | $Tuple2(nil, $Tuple3( | |
1288 | + | else fraction((fS - hi), a, hi) | |
1289 | + | $Tuple2(nil, $Tuple3(fS, cp, fG)) | |
1235 | 1290 | } | |
1236 | 1291 | ||
1237 | 1292 | ||
1238 | 1293 | ||
1239 | 1294 | @Callable(dV) | |
1240 | - | func getNoLess ( | |
1241 | - | let dk = | |
1295 | + | func getNoLess (hj,hk) = { | |
1296 | + | let dk = ff(dV) | |
1242 | 1297 | let cM = dk._1 | |
1243 | 1298 | let cN = dk._2 | |
1244 | 1299 | let cY = dk._3 | |
1245 | 1300 | let cs = dk._4 | |
1246 | 1301 | let cO = dk._5 | |
1247 | - | if (( | |
1248 | - | then throw(((("Failed: " + toString(cM)) + " < ") + toString( | |
1249 | - | else if (( | |
1250 | - | then throw(((("Failed: " + toString(cN)) + " < ") + toString( | |
1302 | + | if ((hj > cM)) | |
1303 | + | then throw(((("Failed: " + toString(cM)) + " < ") + toString(hj))) | |
1304 | + | else if ((hk > cN)) | |
1305 | + | then throw(((("Failed: " + toString(cN)) + " < ") + toString(hk))) | |
1251 | 1306 | else { | |
1252 | - | let | |
1253 | - | let | |
1254 | - | if (( | |
1307 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(cY)) | |
1308 | + | let hl = invoke(aN, "burn", [cY], [AttachedPayment(cs, cY)]) | |
1309 | + | if ((hl == hl)) | |
1255 | 1310 | then { | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | if (( | |
1261 | - | then (cO ++ | |
1311 | + | let hm = eP(-(cM), -(cN), 0) | |
1312 | + | let gg = hm._1 | |
1313 | + | let eG = hm._2 | |
1314 | + | let gh = eT(eO, eG) | |
1315 | + | if ((gh == gh)) | |
1316 | + | then (cO ++ gg) | |
1262 | 1317 | else throw("Strict value is not equal to itself.") | |
1263 | 1318 | } | |
1264 | 1319 | else throw("Strict value is not equal to itself.") | |
1265 | 1320 | } | |
1266 | 1321 | } | |
1267 | 1322 | ||
1268 | 1323 | ||
1269 | 1324 | ||
1270 | 1325 | @Callable(dV) | |
1271 | 1326 | func unstakeAndGet (co) = { | |
1272 | - | let | |
1327 | + | let hn = if ((size(dV.payments) != 0)) | |
1273 | 1328 | then throw("No pmnts expd") | |
1274 | 1329 | else true | |
1275 | - | if (( | |
1330 | + | if ((hn == hn)) | |
1276 | 1331 | then { | |
1277 | 1332 | let ce = aS() | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | let | |
1282 | - | let | |
1283 | - | if (( | |
1333 | + | let ho = bk() | |
1334 | + | let gA = fromBase58String(ce[v]) | |
1335 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1336 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1337 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), co], nil) | |
1338 | + | if ((hq == hq)) | |
1284 | 1339 | then { | |
1285 | - | let dk = cq(toBase58String(dV.transactionId), toBase58String( | |
1340 | + | let dk = cq(toBase58String(dV.transactionId), toBase58String(gA), co, dV.caller) | |
1286 | 1341 | let cM = dk._1 | |
1287 | 1342 | let cN = dk._2 | |
1288 | 1343 | let cA = parseIntValue(dk._9) | |
1289 | 1344 | let cO = dk._10 | |
1290 | - | let | |
1345 | + | let hr = if (if (aP()) | |
1291 | 1346 | then true | |
1292 | 1347 | else (cA == s)) | |
1293 | 1348 | then throw(("Blocked: " + toString(cA))) | |
1294 | 1349 | else true | |
1295 | - | if (( | |
1350 | + | if ((hr == hr)) | |
1296 | 1351 | then { | |
1297 | - | let | |
1298 | - | if (( | |
1352 | + | let hs = invoke(aN, "burn", [co], [AttachedPayment(gA, co)]) | |
1353 | + | if ((hs == hs)) | |
1299 | 1354 | then { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | if (( | |
1305 | - | then (cO ++ | |
1355 | + | let ht = eP(-(cM), -(cN), 0) | |
1356 | + | let gg = ht._1 | |
1357 | + | let eG = ht._2 | |
1358 | + | let gh = eT(eO, eG) | |
1359 | + | if ((gh == gh)) | |
1360 | + | then (cO ++ gg) | |
1306 | 1361 | else throw("Strict value is not equal to itself.") | |
1307 | 1362 | } | |
1308 | 1363 | else throw("Strict value is not equal to itself.") | |
1309 | 1364 | } | |
1310 | 1365 | else throw("Strict value is not equal to itself.") | |
1311 | 1366 | } | |
1312 | 1367 | else throw("Strict value is not equal to itself.") | |
1313 | 1368 | } | |
1314 | 1369 | else throw("Strict value is not equal to itself.") | |
1315 | 1370 | } | |
1316 | 1371 | ||
1317 | 1372 | ||
1318 | 1373 | ||
1319 | 1374 | @Callable(dV) | |
1320 | - | func unstakeAndGetNoLess ( | |
1321 | - | let | |
1375 | + | func unstakeAndGetNoLess (hu,hv,hk) = { | |
1376 | + | let gV = if (aP()) | |
1322 | 1377 | then true | |
1323 | 1378 | else (be == s) | |
1324 | - | let | |
1379 | + | let gK = [if (!(gV)) | |
1325 | 1380 | then true | |
1326 | 1381 | else throw("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1327 | 1382 | then true | |
1328 | 1383 | else throw("no payments are expected")] | |
1329 | - | if (( | |
1384 | + | if ((gK == gK)) | |
1330 | 1385 | then { | |
1331 | - | let | |
1332 | - | let | |
1333 | - | if (( | |
1386 | + | let eO = eH(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1387 | + | let hq = invoke(bm, "unstake", [toBase58String(bf), hu], nil) | |
1388 | + | if ((hq == hq)) | |
1334 | 1389 | then { | |
1335 | - | let | |
1336 | - | let cM = | |
1337 | - | let cN = | |
1338 | - | let cO = | |
1339 | - | let | |
1390 | + | let hw = cq(toBase58String(dV.transactionId), toBase58String(bf), hu, dV.caller) | |
1391 | + | let cM = hw._1 | |
1392 | + | let cN = hw._2 | |
1393 | + | let cO = hw._10 | |
1394 | + | let hx = [if ((cM >= hv)) | |
1340 | 1395 | then true | |
1341 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1396 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hv)], "")), if ((cN >= hk)) | |
1342 | 1397 | then true | |
1343 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1344 | - | if (( | |
1398 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hk)], ""))] | |
1399 | + | if ((hx == hx)) | |
1345 | 1400 | then { | |
1346 | - | let | |
1347 | - | if (( | |
1401 | + | let hl = invoke(aN, "burn", [hu], [AttachedPayment(bf, hu)]) | |
1402 | + | if ((hl == hl)) | |
1348 | 1403 | then { | |
1349 | - | let | |
1350 | - | let | |
1351 | - | let | |
1352 | - | let | |
1353 | - | if (( | |
1354 | - | then (cO ++ | |
1404 | + | let hy = eP(-(cM), -(cN), 0) | |
1405 | + | let gg = hy._1 | |
1406 | + | let eG = hy._2 | |
1407 | + | let gh = eT(eO, eG) | |
1408 | + | if ((gh == gh)) | |
1409 | + | then (cO ++ gg) | |
1355 | 1410 | else throw("Strict value is not equal to itself.") | |
1356 | 1411 | } | |
1357 | 1412 | else throw("Strict value is not equal to itself.") | |
1358 | 1413 | } | |
1359 | 1414 | else throw("Strict value is not equal to itself.") | |
1360 | 1415 | } | |
1361 | 1416 | else throw("Strict value is not equal to itself.") | |
1362 | 1417 | } | |
1363 | 1418 | else throw("Strict value is not equal to itself.") | |
1364 | 1419 | } | |
1365 | 1420 | ||
1366 | 1421 | ||
1367 | 1422 | ||
1368 | 1423 | @Callable(dV) | |
1369 | - | func unstakeAndGetOneTknV2 ( | |
1370 | - | let | |
1371 | - | let | |
1372 | - | if ($isInstanceOf( | |
1373 | - | then | |
1374 | - | else throw(($getType( | |
1424 | + | func unstakeAndGetOneTknV2 (hu,fI,fJ) = { | |
1425 | + | let gI = { | |
1426 | + | let fR = invoke(aN, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1427 | + | if ($isInstanceOf(fR, "Boolean")) | |
1428 | + | then fR | |
1429 | + | else throw(($getType(fR) + " couldn't be cast to Boolean")) | |
1375 | 1430 | } | |
1376 | - | let | |
1431 | + | let gV = if (if (aP()) | |
1377 | 1432 | then true | |
1378 | 1433 | else (be == s)) | |
1379 | 1434 | then true | |
1380 | - | else | |
1381 | - | let | |
1435 | + | else gI | |
1436 | + | let gK = [if (if (!(gV)) | |
1382 | 1437 | then true | |
1383 | - | else | |
1438 | + | else gl(dV)) | |
1384 | 1439 | then true | |
1385 | 1440 | else aK("get operation is blocked by admin"), if ((size(dV.payments) == 0)) | |
1386 | 1441 | then true | |
1387 | 1442 | else aK("no payments are expected")] | |
1388 | - | if (( | |
1443 | + | if ((gK == gK)) | |
1389 | 1444 | then { | |
1390 | 1445 | let ce = aS() | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | let | |
1395 | - | if (( | |
1446 | + | let ho = bk() | |
1447 | + | let gA = fromBase58String(ce[v]) | |
1448 | + | let hp = valueOrErrorMessage(addressFromString(ho[C]), "Wr st addr") | |
1449 | + | let hq = invoke(hp, "unstake", [toBase58String(gA), hu], nil) | |
1450 | + | if ((hq == hq)) | |
1396 | 1451 | then { | |
1397 | - | let | |
1398 | - | let cO = | |
1399 | - | let | |
1400 | - | $Tuple2(cO, | |
1452 | + | let hz = fH(fI, fJ, [AttachedPayment(gA, hu)], dV.caller, dV.originCaller, dV.transactionId) | |
1453 | + | let cO = hz._1 | |
1454 | + | let fT = hz._2 | |
1455 | + | $Tuple2(cO, fT) | |
1401 | 1456 | } | |
1402 | 1457 | else throw("Strict value is not equal to itself.") | |
1403 | 1458 | } | |
1404 | 1459 | else throw("Strict value is not equal to itself.") | |
1405 | 1460 | } | |
1406 | 1461 | ||
1407 | 1462 | ||
1408 | 1463 | ||
1409 | 1464 | @Callable(dV) | |
1410 | - | func putOneTknV2WithBonusREADONLY ( | |
1465 | + | func putOneTknV2WithBonusREADONLY (hA,hB) = { | |
1411 | 1466 | let ba = aS() | |
1412 | 1467 | let cw = ba[w] | |
1413 | 1468 | let cx = ba[x] | |
1414 | 1469 | let cv = ba[v] | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let cO = | |
1418 | - | let cp = | |
1419 | - | let | |
1420 | - | $Tuple2(nil, $Tuple3( | |
1470 | + | let hC = fl(hA, hB, "", "", true) | |
1471 | + | let fB = hC._1 | |
1472 | + | let cO = hC._2 | |
1473 | + | let cp = hC._3 | |
1474 | + | let fG = hC._4 | |
1475 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1421 | 1476 | } | |
1422 | 1477 | ||
1423 | 1478 | ||
1424 | 1479 | ||
1425 | 1480 | @Callable(dV) | |
1426 | - | func putOneTknV2WithoutTakeFeeREADONLY ( | |
1481 | + | func putOneTknV2WithoutTakeFeeREADONLY (hA,hB) = { | |
1427 | 1482 | let ba = aS() | |
1428 | 1483 | let cw = ba[w] | |
1429 | 1484 | let cx = ba[x] | |
1430 | 1485 | let cv = ba[v] | |
1431 | - | let | |
1432 | - | let | |
1433 | - | let cO = | |
1434 | - | let cp = | |
1435 | - | let | |
1436 | - | $Tuple2(nil, $Tuple3( | |
1486 | + | let hD = fl(hA, hB, "", "", false) | |
1487 | + | let fB = hD._1 | |
1488 | + | let cO = hD._2 | |
1489 | + | let cp = hD._3 | |
1490 | + | let fG = hD._4 | |
1491 | + | $Tuple2(nil, $Tuple3(fB, cp, fG)) | |
1437 | 1492 | } | |
1438 | 1493 | ||
1439 | 1494 | ||
1440 | 1495 | ||
1441 | 1496 | @Callable(dV) | |
1442 | - | func activate ( | |
1497 | + | func activate (hE,hF) = if ((toString(dV.caller) != toString(aN))) | |
1443 | 1498 | then throw("denied") | |
1444 | - | else $Tuple2([StringEntry(ae(), | |
1499 | + | else $Tuple2([StringEntry(ae(), hE), StringEntry(af(), hF)], "success") | |
1445 | 1500 | ||
1446 | 1501 | ||
1447 | 1502 | ||
1448 | 1503 | @Callable(dV) | |
1449 | - | func setS ( | |
1450 | - | then | |
1451 | - | else [StringEntry( | |
1504 | + | func setS (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1505 | + | then gk | |
1506 | + | else [StringEntry(hG, hr)] | |
1452 | 1507 | ||
1453 | 1508 | ||
1454 | 1509 | ||
1455 | 1510 | @Callable(dV) | |
1456 | - | func setI ( | |
1457 | - | then | |
1458 | - | else [IntegerEntry( | |
1511 | + | func setI (hG,hr) = if ((toString(dV.caller) != aG(this, ah()))) | |
1512 | + | then gk | |
1513 | + | else [IntegerEntry(hG, hr)] | |
1459 | 1514 | ||
1460 | 1515 | ||
1461 | 1516 | ||
1462 | 1517 | @Callable(dV) | |
1463 | 1518 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aS()) | |
1464 | 1519 | ||
1465 | 1520 | ||
1466 | 1521 | ||
1467 | 1522 | @Callable(dV) | |
1468 | 1523 | func getAccBalanceWrapperREADONLY (bG) = $Tuple2(nil, bF(bG)) | |
1469 | 1524 | ||
1470 | 1525 | ||
1471 | 1526 | ||
1472 | 1527 | @Callable(dV) | |
1473 | 1528 | func calcPricesWrapperREADONLY (bY,bZ,cd) = { | |
1474 | - | let | |
1475 | - | $Tuple2(nil, [toString( | |
1529 | + | let hH = cc(bY, bZ, cd) | |
1530 | + | $Tuple2(nil, [toString(hH[0]), toString(hH[1]), toString(hH[2])]) | |
1476 | 1531 | } | |
1477 | 1532 | ||
1478 | 1533 | ||
1479 | 1534 | ||
1480 | 1535 | @Callable(dV) | |
1481 | - | func fromX18WrapperREADONLY (L, | |
1536 | + | func fromX18WrapperREADONLY (L,hI) = $Tuple2(nil, K(parseBigIntValue(L), hI)) | |
1482 | 1537 | ||
1483 | 1538 | ||
1484 | 1539 | ||
1485 | 1540 | @Callable(dV) | |
1486 | 1541 | func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J))) | |
1487 | 1542 | ||
1488 | 1543 | ||
1489 | 1544 | ||
1490 | 1545 | @Callable(dV) | |
1491 | 1546 | func calcPriceBigIntWrapperREADONLY (bI,bJ) = $Tuple2(nil, toString(bH(parseBigIntValue(bI), parseBigIntValue(bJ)))) | |
1492 | 1547 | ||
1493 | 1548 | ||
1494 | 1549 | ||
1495 | 1550 | @Callable(dV) | |
1496 | - | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT, | |
1551 | + | func estimatePutOperationWrapperREADONLY (cr,bN,cQ,cR,cS,cT,hJ,cU,cV) = $Tuple2(nil, cP(cr, bN, cQ, cR, cS, cT, hJ, cU, cV, true, false, 0, "")) | |
1497 | 1552 | ||
1498 | 1553 | ||
1499 | 1554 | ||
1500 | 1555 | @Callable(dV) | |
1501 | - | func estimateGetOperationWrapperREADONLY (cr, | |
1502 | - | let dk = cq(cr, | |
1556 | + | func estimateGetOperationWrapperREADONLY (cr,hK,ct,hJ) = { | |
1557 | + | let dk = cq(cr, hK, ct, addressFromStringValue(hJ)) | |
1503 | 1558 | $Tuple2(nil, $Tuple10(dk._1, dk._2, dk._3, dk._4, dk._5, dk._6, dk._7, toString(dk._8), dk._9, dk._10)) | |
1504 | 1559 | } | |
1505 | 1560 | ||
1506 | 1561 | ||
1507 | 1562 | ||
1508 | 1563 | @Callable(dV) | |
1509 | 1564 | func getFeeREADONLY () = $Tuple2(nil, aj) | |
1510 | 1565 | ||
1511 | 1566 | ||
1512 | - | @Verifier( | |
1513 | - | func | |
1514 | - | let | |
1515 | - | let aE = | |
1567 | + | @Verifier(hL) | |
1568 | + | func hM () = { | |
1569 | + | let hN = { | |
1570 | + | let aE = gi() | |
1516 | 1571 | if ($isInstanceOf(aE, "ByteVector")) | |
1517 | 1572 | then { | |
1518 | - | let | |
1519 | - | | |
1573 | + | let gm = aE | |
1574 | + | gm | |
1520 | 1575 | } | |
1521 | 1576 | else if ($isInstanceOf(aE, "Unit")) | |
1522 | - | then | |
1577 | + | then hL.senderPublicKey | |
1523 | 1578 | else throw("Match error") | |
1524 | 1579 | } | |
1525 | - | let aE = | |
1580 | + | let aE = hL | |
1526 | 1581 | if ($isInstanceOf(aE, "Order")) | |
1527 | 1582 | then { | |
1528 | - | let | |
1529 | - | let | |
1530 | - | let | |
1531 | - | let | |
1532 | - | let | |
1533 | - | if (if (if ( | |
1534 | - | then | |
1583 | + | let eW = aE | |
1584 | + | let hO = aQ() | |
1585 | + | let hP = eV(eW) | |
1586 | + | let hQ = sigVerify(eW.bodyBytes, eW.proofs[0], eW.senderPublicKey) | |
1587 | + | let hR = sigVerify(eW.bodyBytes, eW.proofs[1], hO) | |
1588 | + | if (if (if (hP) | |
1589 | + | then hQ | |
1535 | 1590 | else false) | |
1536 | - | then | |
1591 | + | then hR | |
1537 | 1592 | else false) | |
1538 | 1593 | then true | |
1539 | - | else az( | |
1594 | + | else az(hP, hQ, hR) | |
1540 | 1595 | } | |
1541 | 1596 | else if ($isInstanceOf(aE, "SetScriptTransaction")) | |
1542 | 1597 | then { | |
1543 | 1598 | let dI = aE | |
1544 | - | let | |
1545 | - | let | |
1546 | - | let | |
1547 | - | if (if (( | |
1548 | - | then ( | |
1599 | + | let hS = blake2b256(value(dI.script)) | |
1600 | + | let hT = fromBase64String(value(getString(aN, ax()))) | |
1601 | + | let hU = scriptHash(this) | |
1602 | + | if (if ((hT == hS)) | |
1603 | + | then (hU != hS) | |
1549 | 1604 | else false) | |
1550 | 1605 | then true | |
1551 | - | else sigVerify( | |
1606 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1552 | 1607 | } | |
1553 | - | else sigVerify( | |
1608 | + | else sigVerify(hL.bodyBytes, hL.proofs[0], hN) | |
1554 | 1609 | } | |
1555 | 1610 |
github/deemru/w8io/169f3d6 388.94 ms ◑