tx · 8XZjmSv9YmBVodmaa5FhmYk9s7crxSb3CvXwCLDRiFeb 3MtoZUczzB13W1FBwFat4qUsPvZTmfbPgfD: -0.07500000 Waves 2022.12.16 16:03 [2362899] smart account 3MtoZUczzB13W1FBwFat4qUsPvZTmfbPgfD > SELF 0.00000000 Waves
{ "type": 13, "id": "8XZjmSv9YmBVodmaa5FhmYk9s7crxSb3CvXwCLDRiFeb", "fee": 7500000, "feeAssetId": null, "timestamp": 1671195912498, "version": 2, "chainId": 84, "sender": "3MtoZUczzB13W1FBwFat4qUsPvZTmfbPgfD", "senderPublicKey": "A4SEfMUg91Ajmn3tCGwsoA6fGedNdTgs5GdAo5JdeP79", "proofs": [ "2SVPAT6uQxmuf1vu4864RJ77aq6tLoaMyHboWUh693yFHftthjvXVXEjbKkAJHArqZk4zHs9sBu4a4FKXb6nHnFN" ], "script": "base64:BgJ6CAISABIAEgASABIDCgEBEgMKAQESDgoMAQEBAQEBAQEBAQEBEhQKEgEBAQEBAQEICAgIAQEBAQEBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESBAoCAQESAwoBCBIAEgASAwoBCBIDCgEBEgASABIDCgEIEgASBAoCCAjBAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgASa19wb3NpdGlvblNlcXVlbmNlAhJrX3Bvc2l0aW9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190cmFkZXIEDSR0MDg0Njg5ODQ3NDMJARNnZXRCb3Jyb3dlZEJ5VHJhZGVyAQUHX3RyYWRlcgQIYm9ycm93ZWQIBQ0kdDA4NDY4OTg0NzQzAl8xBAdhc3NldElkCAUNJHQwODQ2ODk4NDc0MwJfMgkAAgEJAKwCAgkBAXMBBQhib3Jyb3dlZAUHYXNzZXRJZAFpARBjb21wdXRlU3BvdFByaWNlAAQGcmVzdWx0CQEMZ2V0U3BvdFByaWNlAAkAlAoCBQNuaWwFBnJlc3VsdAFpAR9jb21wdXRlRmVlRm9yVHJhZGVyV2l0aEFydGlmYWN0AgdfdHJhZGVyC19hcnRpZmFjdElkBAZyZXN1bHQJARhnZXRGb3JUcmFkZXJXaXRoQXJ0aWZhY3QCBQdfdHJhZGVyBQtfYXJ0aWZhY3RJZAkAlAoCBQNuaWwFBnJlc3VsdAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJAQ5hZG1pblB1YmxpY0tleQDCYRmU", "height": 2362899, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JBA1KTNeUyLdcDHMzXpF3BQAQYAKx6yTHPwhje5aRjqU Next: 9z9TFTBnoasCLfXLbbqzQAUcMB9977wx9Xv4zUG8Kvdu Diff:
Old | New | Differences | |
---|---|---|---|
555 | 555 | } | |
556 | 556 | ||
557 | 557 | ||
558 | - | func dG (dq,ds) = { | |
559 | - | let dH = dz() | |
558 | + | func dG (dH,dq,ds,cI,cK) = { | |
559 | + | let dI = aR(aT(dq, cI), aT(ds, cK)) | |
560 | + | let dJ = aR((dH + dI), (2 * aK)) | |
561 | + | let dG = aR(ba((dH - dI)), dJ) | |
562 | + | dG | |
563 | + | } | |
564 | + | ||
565 | + | ||
566 | + | func dK (dq,ds) = { | |
567 | + | let dL = dz() | |
560 | 568 | let cI = bH() | |
561 | 569 | let cK = bI() | |
562 | - | let dI = aR(aT(dq, cI), aT(ds, cK)) | |
563 | - | let dJ = aR((dH + dI), (2 * aK)) | |
564 | - | let dK = aR(ba((dH - dI)), dJ) | |
565 | - | if ((dK > bW())) | |
566 | - | then throw(((("Price spread " + toString(dK)) + " > max price spread ") + toString(bW()))) | |
570 | + | let dM = dG(dL, bF(), bG(), cI, cK) | |
571 | + | let dN = dG(dL, dq, ds, cI, cK) | |
572 | + | if (if ((dN > bW())) | |
573 | + | then (dN > dM) | |
574 | + | else false) | |
575 | + | then throw(((("Price spread " + toString(dN)) + " > max price spread ") + toString(bW()))) | |
567 | 576 | else true | |
568 | 577 | } | |
569 | 578 | ||
570 | 579 | ||
571 | - | func | |
572 | - | let | |
573 | - | if (( | |
574 | - | then throw(((("Long open notional " + toString( | |
575 | - | else if (( | |
576 | - | then throw(((("Short open notional " + toString( | |
580 | + | func dO (dP,dQ) = { | |
581 | + | let dR = bX() | |
582 | + | if ((dP > dR)) | |
583 | + | then throw(((("Long open notional " + toString(dP)) + " > max open notional ") + toString(dR))) | |
584 | + | else if ((dQ > dR)) | |
585 | + | then throw(((("Short open notional " + toString(dQ)) + " > max open notional ") + toString(dR))) | |
577 | 586 | else true | |
578 | 587 | } | |
579 | 588 | ||
580 | 589 | ||
581 | - | func | |
590 | + | func dS () = { | |
582 | 591 | let dq = bF() | |
583 | 592 | let ds = bG() | |
584 | 593 | let cI = bH() | |
587 | 596 | } | |
588 | 597 | ||
589 | 598 | ||
590 | - | func | |
591 | - | let | |
592 | - | let | |
593 | - | (aR(ba(( | |
594 | - | } | |
595 | - | ||
596 | - | ||
597 | - | func | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
599 | + | func dT () = { | |
600 | + | let dL = dz() | |
601 | + | let dU = dS() | |
602 | + | (aR(ba((dL - dU)), dL) > bU()) | |
603 | + | } | |
604 | + | ||
605 | + | ||
606 | + | func dV (cn,dW,dq,dr,ds,dt) = { | |
607 | + | let dX = ba(cn) | |
608 | + | let dY = (0 > cn) | |
609 | + | let dZ = if ((dW == aN)) | |
601 | 610 | then { | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | | |
608 | - | } | |
609 | - | else aT( | |
610 | - | | |
611 | - | } | |
612 | - | ||
613 | - | ||
614 | - | func | |
611 | + | let ea = do(!(dY), dX, false, dq, dr, ds, dt) | |
612 | + | let eb = ea._1 | |
613 | + | let ec = ea._2 | |
614 | + | let ed = ea._3 | |
615 | + | let ee = ea._4 | |
616 | + | eb | |
617 | + | } | |
618 | + | else aT(dX, dz()) | |
619 | + | dZ | |
620 | + | } | |
621 | + | ||
622 | + | ||
623 | + | func ef (cn,eg,dq,dr,ds,dt,dW) = if ((cn == 0)) | |
615 | 624 | then throw("Invalid position size") | |
616 | 625 | else { | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | then ( | |
621 | - | else ( | |
622 | - | $Tuple2( | |
626 | + | let dY = (0 > cn) | |
627 | + | let dZ = dV(cn, dW, dq, dr, ds, dt) | |
628 | + | let eh = if (dY) | |
629 | + | then (eg - dZ) | |
630 | + | else (dZ - eg) | |
631 | + | $Tuple2(dZ, eh) | |
623 | 632 | } | |
624 | 633 | ||
625 | 634 | ||
626 | - | func | |
627 | - | let | |
628 | - | let cs = | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | | |
633 | - | } | |
634 | - | ||
635 | - | ||
636 | - | func | |
637 | - | ||
638 | - | ||
639 | - | func | |
640 | - | let | |
641 | - | let cs = | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let dm = | |
650 | - | let dn = | |
651 | - | | |
652 | - | } | |
653 | - | ||
654 | - | ||
655 | - | func | |
656 | - | ||
657 | - | ||
658 | - | func | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let db = | |
635 | + | func ei (cp,dW) = { | |
636 | + | let ej = co(cp) | |
637 | + | let cs = ej._1 | |
638 | + | let ek = ej._2 | |
639 | + | let el = ej._3 | |
640 | + | let em = ej._4 | |
641 | + | ef(cs, el, bF(), bH(), bG(), bI(), dW) | |
642 | + | } | |
643 | + | ||
644 | + | ||
645 | + | func en (eo,ep,eq) = aR((eo - ep), eq) | |
646 | + | ||
647 | + | ||
648 | + | func er (cp,dW) = { | |
649 | + | let es = co(cp) | |
650 | + | let cs = es._1 | |
651 | + | let ek = es._2 | |
652 | + | let et = es._3 | |
653 | + | let em = es._4 | |
654 | + | let eu = ei(cp, dW) | |
655 | + | let dZ = eu._1 | |
656 | + | let eh = eu._2 | |
657 | + | let ev = dd(cs, ek, em, eh) | |
658 | + | let dm = ev._1 | |
659 | + | let dn = ev._2 | |
660 | + | en(dm, dn, dZ) | |
661 | + | } | |
662 | + | ||
663 | + | ||
664 | + | func ew (cp) = er(cp, aN) | |
665 | + | ||
666 | + | ||
667 | + | func ex (cp,cn) = { | |
668 | + | let ey = bb(bT(), (aK - aR(ew(cp), bR()))) | |
669 | + | let ez = aT(ba(cn), ey) | |
670 | + | let eA = dy((cn > 0), ez, false) | |
671 | + | let eB = eA._1 | |
672 | + | let db = eA._7 | |
664 | 673 | if ((bV() > db)) | |
665 | - | then | |
674 | + | then eB | |
666 | 675 | else { | |
667 | - | let | |
668 | - | let | |
669 | - | | |
670 | - | } | |
671 | - | } | |
672 | - | ||
673 | - | ||
674 | - | func | |
675 | - | let | |
676 | - | let cs = | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let dm = | |
683 | - | let dn = | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let cQ = | |
690 | - | let cR = | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | $Tuple13( | |
696 | - | then | |
676 | + | let eC = aT(ba(cn), bT()) | |
677 | + | let eD = dy((cn > 0), eC, false)._1 | |
678 | + | eD | |
679 | + | } | |
680 | + | } | |
681 | + | ||
682 | + | ||
683 | + | func eE (cp,dp) = { | |
684 | + | let eF = co(cp) | |
685 | + | let cs = eF._1 | |
686 | + | let ek = eF._2 | |
687 | + | let el = eF._3 | |
688 | + | let em = eF._4 | |
689 | + | let eh = ei(cp, aN)._2 | |
690 | + | let eG = dd(cs, ek, em, eh) | |
691 | + | let dm = eG._1 | |
692 | + | let dn = eG._2 | |
693 | + | let eC = -(cs) | |
694 | + | let eH = eh | |
695 | + | let eI = -(dm) | |
696 | + | let eJ = dy((cs > 0), ba(cs), dp) | |
697 | + | let eD = eJ._1 | |
698 | + | let cQ = eJ._2 | |
699 | + | let cR = eJ._3 | |
700 | + | let eK = eJ._4 | |
701 | + | let eL = eJ._5 | |
702 | + | let eM = eJ._6 | |
703 | + | let eN = (bK() - el) | |
704 | + | $Tuple13(eC, dn, eH, eI, cQ, cR, eK, eN, eD, eL, eM, (bM() - (if ((cs > 0)) | |
705 | + | then el | |
697 | 706 | else 0)), (bL() - (if ((0 > cs)) | |
698 | - | then | |
707 | + | then el | |
699 | 708 | else 0))) | |
700 | 709 | } | |
701 | 710 | ||
702 | 711 | ||
703 | - | func | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | func | |
709 | - | then (bf :+ parseIntValue( | |
712 | + | func eO () = { | |
713 | + | let eP = ((lastBlock.timestamp / 1000) / 60) | |
714 | + | let eQ = (eP - aG) | |
715 | + | let eR = valueOrElse(getString(this, A), "") | |
716 | + | let eS = split(eR, ",") | |
717 | + | func eT (bf,eU) = if ((eQ >= parseIntValue(eU))) | |
718 | + | then (bf :+ parseIntValue(eU)) | |
710 | 719 | else bf | |
711 | 720 | ||
712 | - | let | |
713 | - | let bi = | |
721 | + | let eV = { | |
722 | + | let bi = eS | |
714 | 723 | let bj = size(bi) | |
715 | 724 | let bk = nil | |
716 | 725 | func bl (bm,bn) = if ((bn >= bj)) | |
717 | 726 | then bm | |
718 | - | else | |
727 | + | else eT(bm, bi[bn]) | |
719 | 728 | ||
720 | 729 | func bo (bm,bn) = if ((bn >= bj)) | |
721 | 730 | then bm | |
723 | 732 | ||
724 | 733 | bo(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bk, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
725 | 734 | } | |
726 | - | let | |
727 | - | then max( | |
728 | - | else parseIntValue( | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | (( | |
737 | - | } | |
738 | - | ||
739 | - | ||
740 | - | func | |
735 | + | let eW = if ((size(eV) > 0)) | |
736 | + | then max(eV) | |
737 | + | else parseIntValue(eS[0]) | |
738 | + | let eX = valueOrElse(getInteger(this, B), 0) | |
739 | + | let eY = valueOrElse(getInteger(this, ((C + "_") + toString(eX))), 0) | |
740 | + | let eZ = valueOrElse(getInteger(this, ((D + "_") + toString(eX))), 0) | |
741 | + | let fa = (eY + ((eP - eX) * eZ)) | |
742 | + | let fb = valueOrElse(getInteger(this, ((C + "_") + toString(eW))), 0) | |
743 | + | let fc = valueOrElse(getInteger(this, ((D + "_") + toString(eW))), 0) | |
744 | + | let fd = (fb + ((eQ - eW) * fc)) | |
745 | + | ((fa - fd) / aG) | |
746 | + | } | |
747 | + | ||
748 | + | ||
749 | + | func fe () = { | |
741 | 750 | let cn = bJ() | |
742 | 751 | if ((cn == 0)) | |
743 | 752 | then $Tuple2(bF(), bG()) | |
744 | 753 | else { | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | $Tuple2( | |
751 | - | } | |
752 | - | } | |
753 | - | ||
754 | - | ||
755 | - | func | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | toInt( | |
770 | - | } | |
771 | - | ||
772 | - | ||
773 | - | func | |
754 | + | let ff = (cn > 0) | |
755 | + | let fg = dy(ff, ba(cn), false) | |
756 | + | let fh = fg._1 | |
757 | + | let fi = fg._2 | |
758 | + | let fj = fg._3 | |
759 | + | $Tuple2(fi, fj) | |
760 | + | } | |
761 | + | } | |
762 | + | ||
763 | + | ||
764 | + | func fk (fl,bJ,fm,fn) = { | |
765 | + | let fo = toBigInt(fl) | |
766 | + | let fp = toBigInt(bJ) | |
767 | + | let fq = toBigInt(fm) | |
768 | + | let fr = toBigInt(fn) | |
769 | + | let fs = aZ((fo + fp), toBigInt((2 * aK))) | |
770 | + | let ft = aX(fq, fs) | |
771 | + | let fu = (toBigInt(4) * aX(fr, fp)) | |
772 | + | let fv = aY(aX(ft, (fq - fu))) | |
773 | + | let fw = aX(fo, fq) | |
774 | + | let fx = aX(fq, fp) | |
775 | + | let fy = ((-(fv) + fw) + fx) | |
776 | + | let fz = (toBigInt(2) * aX(fq, fp)) | |
777 | + | let fA = aW(fy, fz) | |
778 | + | toInt(fA) | |
779 | + | } | |
780 | + | ||
781 | + | ||
782 | + | func fB (fC,cH,cJ) = { | |
774 | 783 | let cn = bJ() | |
775 | 784 | if ((cn == 0)) | |
776 | 785 | then { | |
777 | - | let cH = bF() | |
778 | - | let cJ = bG() | |
779 | - | let fA = aR(aT(fz, cJ), cH) | |
780 | - | $Tuple3(fA, aK, 0) | |
786 | + | let fD = aR(aT(fC, cJ), cH) | |
787 | + | $Tuple3(fD, aK, 0) | |
781 | 788 | } | |
782 | 789 | else { | |
783 | - | let fc = (cn > 0) | |
784 | - | let fe = dy(fc, ba(cn), false)._1 | |
785 | - | let cH = bF() | |
786 | - | let cJ = bG() | |
787 | - | let fA = fh(cJ, cn, cH, fz) | |
788 | - | let fB = aK | |
789 | - | let eF = ec(cn, fe, cH, fA, cJ, fB, aN)._2 | |
790 | - | $Tuple3(fA, fB, eF) | |
791 | - | } | |
792 | - | } | |
793 | - | ||
794 | - | ||
795 | - | func fC () = { | |
796 | - | let fD = dz() | |
797 | - | let fE = eL() | |
798 | - | let fF = (fE - fD) | |
790 | + | let ff = (cn > 0) | |
791 | + | let fh = dy(ff, ba(cn), false)._1 | |
792 | + | let fD = fk(cJ, cn, cH, fC) | |
793 | + | let fE = aK | |
794 | + | let eI = ef(cn, fh, cH, fD, cJ, fE, aN)._2 | |
795 | + | $Tuple3(fD, fE, eI) | |
796 | + | } | |
797 | + | } | |
798 | + | ||
799 | + | ||
800 | + | func fF () = { | |
801 | + | let fG = dz() | |
802 | + | let fH = eO() | |
803 | + | let fI = (fH - fG) | |
799 | 804 | if (if ((ca() == 0)) | |
800 | 805 | then true | |
801 | 806 | else (cb() == 0)) | |
802 | 807 | then $Tuple2(0, 0) | |
803 | - | else if ((0 > | |
808 | + | else if ((0 > fI)) | |
804 | 809 | then { | |
805 | - | let | |
806 | - | let | |
807 | - | $Tuple2( | |
810 | + | let fJ = aR(aT(fI, bP()), aL) | |
811 | + | let fK = aR(aT(fJ, ca()), cb()) | |
812 | + | $Tuple2(fJ, fK) | |
808 | 813 | } | |
809 | 814 | else { | |
810 | - | let | |
811 | - | let | |
812 | - | $Tuple2( | |
815 | + | let fK = aR(aT(fI, bP()), aL) | |
816 | + | let fJ = aR(aT(fK, cb()), ca()) | |
817 | + | $Tuple2(fJ, fK) | |
813 | 818 | } | |
814 | 819 | } | |
815 | 820 | ||
816 | 821 | ||
817 | - | func | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
822 | + | func fL (fM,fN) = { | |
823 | + | let fO = bD() | |
824 | + | let fP = aT(fO, fN) | |
825 | + | let fQ = if ((fM != "")) | |
821 | 826 | then { | |
822 | - | let | |
823 | - | if (( | |
827 | + | let fR = bA(av(), ai(aC, fM)) | |
828 | + | if ((fR == aD)) | |
824 | 829 | then { | |
825 | - | let | |
826 | - | let | |
827 | - | $Tuple2( | |
830 | + | let fS = bB(av(), ai(aB, fM)) | |
831 | + | let fT = aT(fP, fS) | |
832 | + | $Tuple2(fT, true) | |
828 | 833 | } | |
829 | 834 | else throw("Invalid attached artifact") | |
830 | 835 | } | |
831 | - | else $Tuple2( | |
832 | - | let | |
833 | - | let | |
834 | - | $Tuple2( | |
835 | - | } | |
836 | - | ||
837 | - | ||
838 | - | func | |
839 | - | let | |
840 | - | if (( | |
836 | + | else $Tuple2(fP, false) | |
837 | + | let fT = fQ._1 | |
838 | + | let fU = fQ._2 | |
839 | + | $Tuple2(fT, fU) | |
840 | + | } | |
841 | + | ||
842 | + | ||
843 | + | func fV (cp,aA) = { | |
844 | + | let fW = co(cp)._1 | |
845 | + | if ((fW == 0)) | |
841 | 846 | then true | |
842 | 847 | else (ct(cp) == aA) | |
843 | 848 | } | |
844 | 849 | ||
845 | 850 | ||
846 | - | func | |
847 | - | ||
848 | - | ||
849 | - | func | |
850 | - | ||
851 | - | ||
852 | - | func | |
851 | + | func fX (cp,aA) = (ct(cp) == aA) | |
852 | + | ||
853 | + | ||
854 | + | func fY (fZ,aA,cp) = ((((((ah + "_") + fZ) + "_") + aA) + "_") + cp) | |
855 | + | ||
856 | + | ||
857 | + | func ga (cp) = { | |
853 | 858 | let cv = ct(cp) | |
854 | 859 | if ((cv == toBase58String(ao()))) | |
855 | 860 | then $Tuple2(0, cv) | |
856 | 861 | else { | |
857 | - | let | |
858 | - | let | |
859 | - | $Tuple2( | |
860 | - | } | |
861 | - | } | |
862 | - | ||
863 | - | ||
864 | - | func | |
865 | - | let | |
866 | - | if (( | |
862 | + | let gb = fY(toString(this), cv, cp) | |
863 | + | let gc = valueOrElse(getInteger(aw(), gb), 0) | |
864 | + | $Tuple2(gc, cv) | |
865 | + | } | |
866 | + | } | |
867 | + | ||
868 | + | ||
869 | + | func gd (cp,fM) = { | |
870 | + | let ge = invoke(as(), "computeFeeDiscount", [cp], nil) | |
871 | + | if ((ge == ge)) | |
867 | 872 | then { | |
868 | - | let | |
869 | - | let cr = | |
873 | + | let gf = { | |
874 | + | let cr = ge | |
870 | 875 | if ($isInstanceOf(cr, "Int")) | |
871 | 876 | then { | |
872 | - | let | |
873 | - | | |
877 | + | let gg = cr | |
878 | + | gg | |
874 | 879 | } | |
875 | 880 | else throw("Invalid computeFeeDiscount result") | |
876 | 881 | } | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | $Tuple2( | |
882 | + | let gh = fL(fM, gf) | |
883 | + | let fT = gh._1 | |
884 | + | let fU = gh._2 | |
885 | + | $Tuple2(fT, fU) | |
881 | 886 | } | |
882 | 887 | else throw("Strict value is not equal to itself.") | |
883 | 888 | } | |
884 | 889 | ||
885 | 890 | ||
886 | - | func | |
887 | - | let | |
891 | + | func gi (cg) = { | |
892 | + | let gj = if ((size(cg.payments) > 1)) | |
888 | 893 | then toBase58String(valueOrErrorMessage(cg.payments[1].assetId, "Invalid artifactId")) | |
889 | 894 | else "" | |
890 | - | | |
891 | - | } | |
892 | - | ||
893 | - | ||
894 | - | func | |
895 | - | let | |
896 | - | let | |
897 | - | $Tuple2( | |
898 | - | } | |
899 | - | ||
900 | - | ||
901 | - | func | |
902 | - | ||
903 | - | ||
904 | - | func | |
905 | - | ||
906 | - | ||
907 | - | func | |
908 | - | ||
909 | - | ||
910 | - | func | |
895 | + | gj | |
896 | + | } | |
897 | + | ||
898 | + | ||
899 | + | func gk (gl) = { | |
900 | + | let gm = aT(gl, cd()) | |
901 | + | let gn = (gl - gm) | |
902 | + | $Tuple2(gm, gn) | |
903 | + | } | |
904 | + | ||
905 | + | ||
906 | + | func go (gp,gq,gr,gs,gt,gu,gv,gw,gx,dR,gy,gz) = [IntegerEntry(q, gp), IntegerEntry(r, gq), IntegerEntry(s, gr), IntegerEntry(p, gs), IntegerEntry(o, gt), IntegerEntry(u, gu), IntegerEntry(v, gv), IntegerEntry(t, gw), IntegerEntry(w, gx), IntegerEntry(x, dR), IntegerEntry(y, gy), IntegerEntry(z, gy)] | |
907 | + | ||
908 | + | ||
909 | + | func gA (gB,gC,gD,gE,gF) = [IntegerEntry(H, gB), IntegerEntry(F, gC), IntegerEntry(G, gD), IntegerEntry(I, gE), IntegerEntry(J, gF)] | |
910 | + | ||
911 | + | ||
912 | + | func gG (ak,aA) = [StringEntry(ai(k, ak), aA)] | |
913 | + | ||
914 | + | ||
915 | + | func gH (gI,ak) = if (gI) | |
911 | 916 | then { | |
912 | - | let | |
913 | - | [IntegerEntry(ai(j, ak), ( | |
917 | + | let gJ = cc() | |
918 | + | [IntegerEntry(ai(j, ak), (gJ + 1)), IntegerEntry(e, (gJ + 1))] | |
914 | 919 | } | |
915 | 920 | else nil | |
916 | 921 | ||
917 | 922 | ||
918 | - | func | |
919 | - | ||
920 | - | ||
921 | - | func | |
922 | - | let | |
923 | - | let | |
924 | - | if (( | |
923 | + | func gK (ak,gL,gM,gN,dj) = [IntegerEntry(ai(f, ak), gL), IntegerEntry(ai(g, ak), gM), IntegerEntry(ai(h, ak), gN), IntegerEntry(ai(i, ak), dj)] | |
924 | + | ||
925 | + | ||
926 | + | func gO (gP) = { | |
927 | + | let eP = ((lastBlock.timestamp / 1000) / 60) | |
928 | + | let gQ = valueOrElse(getInteger(this, B), 0) | |
929 | + | if ((gQ > eP)) | |
925 | 930 | then throw("TWAP out-of-order") | |
926 | 931 | else { | |
927 | - | let | |
928 | - | then | |
929 | - | else | |
930 | - | if (( | |
932 | + | let eX = if ((gQ == 0)) | |
933 | + | then eP | |
934 | + | else gQ | |
935 | + | if ((eP > gQ)) | |
931 | 936 | then { | |
932 | - | let | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | [IntegerEntry(ai(C, toString( | |
937 | + | let gR = valueOrElse(getInteger(this, ((C + "_") + toString(gQ))), 0) | |
938 | + | let gS = valueOrElse(getInteger(this, ((D + "_") + toString(gQ))), gP) | |
939 | + | let gT = (gR + ((eP - eX) * gS)) | |
940 | + | let eS = bt(br(valueOrElse(getString(this, A), "")), aG, toString(eP)) | |
941 | + | [IntegerEntry(ai(C, toString(eP)), gT), IntegerEntry(ai(D, toString(eP)), gP), IntegerEntry(ai(E, toString(eP)), gQ), IntegerEntry(B, eP), StringEntry(A, bc(eS))] | |
937 | 942 | } | |
938 | 943 | else { | |
939 | - | let | |
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | [IntegerEntry(ai(C, toString( | |
944 | + | let gU = valueOrElse(getInteger(this, ai(E, toString(eP))), 0) | |
945 | + | let gR = valueOrElse(getInteger(this, ai(C, toString(gU))), 0) | |
946 | + | let gS = valueOrElse(getInteger(this, ai(D, toString(gU))), gP) | |
947 | + | let gT = (gR + ((eP - gU) * gS)) | |
948 | + | [IntegerEntry(ai(C, toString(eP)), gT), IntegerEntry(ai(D, toString(eP)), gP)] | |
944 | 949 | } | |
945 | 950 | } | |
946 | 951 | } | |
947 | 952 | ||
948 | 953 | ||
949 | - | func | |
950 | - | ||
951 | - | ||
952 | - | func | |
953 | - | ||
954 | - | ||
955 | - | func | |
954 | + | func gV (cH,cJ) = [IntegerEntry(K, cH), IntegerEntry(L, cJ)] | |
955 | + | ||
956 | + | ||
957 | + | func gW (cI,cK) = [IntegerEntry(M, cI), IntegerEntry(N, cK)] | |
958 | + | ||
959 | + | ||
960 | + | func gX (cH,cJ,gY,gZ,ha,hb,hc,hd) = { | |
956 | 961 | let cI = bH() | |
957 | 962 | let cK = bI() | |
958 | - | if ((( | |
959 | - | then throw(((((("Invalid AMM state data: " + toString( | |
960 | - | else (( | |
961 | - | } | |
962 | - | ||
963 | - | ||
964 | - | func | |
965 | - | ||
966 | - | ||
967 | - | func | |
968 | - | let | |
969 | - | if (( | |
970 | - | then throw(((("Unable to withdraw " + toString( | |
971 | - | else [ScriptTransfer(ak, | |
972 | - | } | |
973 | - | ||
974 | - | ||
975 | - | func | |
963 | + | if (((ha - hb) != gY)) | |
964 | + | then throw(((((("Invalid AMM state data: " + toString(ha)) + " + ") + toString(hb)) + " != ") + toString(gY))) | |
965 | + | else ((gV(cH, cJ) ++ [IntegerEntry(O, gY), IntegerEntry(R, gZ), IntegerEntry(P, ha), IntegerEntry(Q, hb), IntegerEntry(T, hc), IntegerEntry(S, hd)]) ++ gO(aR(aT(cH, cI), aT(cJ, cK)))) | |
966 | + | } | |
967 | + | ||
968 | + | ||
969 | + | func he (ak) = [DeleteEntry(ai(f, ak)), DeleteEntry(ai(g, ak)), DeleteEntry(ai(h, ak)), DeleteEntry(ai(i, ak)), DeleteEntry(ai(k, ak))] | |
970 | + | ||
971 | + | ||
972 | + | func hf (ak,hg) = { | |
973 | + | let hh = assetBalance(this, ao()) | |
974 | + | if ((hg > hh)) | |
975 | + | then throw(((("Unable to withdraw " + toString(hg)) + " from contract balance ") + toString(hh))) | |
976 | + | else [ScriptTransfer(ak, hg, ao())] | |
977 | + | } | |
978 | + | ||
979 | + | ||
980 | + | func hi (cg) = if ((0 > cg)) | |
976 | 981 | then throw("Balance") | |
977 | 982 | else [IntegerEntry(d, cg)] | |
978 | 983 | ||
979 | 984 | ||
980 | - | func | |
981 | - | ||
982 | - | ||
983 | - | func | |
985 | + | func hj (cg) = [ScriptTransfer(aq(), cg, ao())] | |
986 | + | ||
987 | + | ||
988 | + | func hk (hl,cg) = if (hl) | |
984 | 989 | then [Burn(valueOrErrorMessage(cg.payments[1].assetId, "Invalid artifact"), 1)] | |
985 | 990 | else nil | |
986 | 991 | ||
1023 | 1028 | let cJ = bG() | |
1024 | 1029 | let cI = bH() | |
1025 | 1030 | let cK = bI() | |
1026 | - | let hj = aR(aT(cH, cI), aT(cJ, cK)) | |
1027 | - | let hk = aR(cC, hj) | |
1028 | - | let hl = (cH + cC) | |
1029 | - | let hm = (cJ + hk) | |
1030 | - | gS(hl, hm) | |
1031 | + | let hm = aR(aT(cH, cI), aT(cJ, cK)) | |
1032 | + | let hn = (cH + cC) | |
1033 | + | let ho = (aR(aT(hn, cI), hm) - cJ) | |
1034 | + | let hp = (cJ + ho) | |
1035 | + | let hq = fB(dz(), hn, hp) | |
1036 | + | let hr = hq._1 | |
1037 | + | let hs = hq._2 | |
1038 | + | let eI = hq._3 | |
1039 | + | let ht = if ((eI != 0)) | |
1040 | + | then { | |
1041 | + | let ht = invoke(ar(), "exchangeFreeAndLocked", [eI], nil) | |
1042 | + | if ((ht == ht)) | |
1043 | + | then nil | |
1044 | + | else throw("Strict value is not equal to itself.") | |
1045 | + | } | |
1046 | + | else nil | |
1047 | + | if ((ht == ht)) | |
1048 | + | then (gV(hn, hp) ++ gW(hr, hs)) | |
1049 | + | else throw("Strict value is not equal to itself.") | |
1031 | 1050 | } | |
1032 | 1051 | ||
1033 | 1052 | ||
1042 | 1061 | let cJ = bG() | |
1043 | 1062 | let cI = bH() | |
1044 | 1063 | let cK = bI() | |
1045 | - | let | |
1046 | - | let | |
1047 | - | let | |
1048 | - | let | |
1049 | - | | |
1064 | + | let hm = aR(aT(cH, cI), aT(cJ, cK)) | |
1065 | + | let hu = aR(cC, hm) | |
1066 | + | let hn = (cH - cC) | |
1067 | + | let hp = (cJ - hu) | |
1068 | + | gV(hn, hp) | |
1050 | 1069 | } | |
1051 | 1070 | ||
1052 | 1071 | ||
1053 | 1072 | ||
1054 | 1073 | @Callable(cg) | |
1055 | - | func changeSettings ( | |
1074 | + | func changeSettings (gp,gq,gr,gs,gt,gu,gv,gw,gx,dR,gy,gz) = if ((cg.caller != am())) | |
1056 | 1075 | then throw("Invalid changeSettings params") | |
1057 | - | else | |
1058 | - | ||
1059 | - | ||
1060 | - | ||
1061 | - | @Callable(cg) | |
1062 | - | func initialize (cH,cJ,gp | |
1076 | + | else go(gp, gq, gr, gs, gt, gu, gv, gw, gx, dR, gy, gz) | |
1077 | + | ||
1078 | + | ||
1079 | + | ||
1080 | + | @Callable(cg) | |
1081 | + | func initialize (cH,cJ,gs,gp,gq,gr,gt,hv,hw,hx,hy,gu,gv,gw,gx,dR,gy,gz) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= cH)) | |
1063 | 1082 | then true | |
1064 | 1083 | else (0 >= cJ)) | |
1065 | 1084 | then true | |
1085 | + | else (0 >= gs)) | |
1086 | + | then true | |
1066 | 1087 | else (0 >= gp)) | |
1067 | - | then true | |
1068 | - | else (0 >= gm)) | |
1069 | - | then true | |
1070 | - | else (0 >= gn)) | |
1071 | - | then true | |
1072 | - | else (0 >= go)) | |
1073 | 1088 | then true | |
1074 | 1089 | else (0 >= gq)) | |
1075 | 1090 | then true | |
1076 | 1091 | else (0 >= gr)) | |
1077 | 1092 | then true | |
1078 | - | else (0 >= gs)) | |
1079 | - | then true | |
1080 | 1093 | else (0 >= gt)) | |
1081 | 1094 | then true | |
1082 | 1095 | else (0 >= gu)) | |
1083 | 1096 | then true | |
1084 | - | else (0 >= dO)) | |
1085 | - | then true | |
1086 | 1097 | else (0 >= gv)) | |
1087 | - | then true | |
1088 | - | else (gv > aK)) | |
1089 | 1098 | then true | |
1090 | 1099 | else (0 >= gw)) | |
1091 | 1100 | then true | |
1101 | + | else (0 >= gx)) | |
1102 | + | then true | |
1103 | + | else (0 >= dR)) | |
1104 | + | then true | |
1105 | + | else (0 >= gy)) | |
1106 | + | then true | |
1107 | + | else (gy > aK)) | |
1108 | + | then true | |
1109 | + | else (0 >= gz)) | |
1110 | + | then true | |
1092 | 1111 | else cx()) | |
1093 | 1112 | then throw("Invalid initialize parameters") | |
1094 | - | else (((( | |
1095 | - | ||
1096 | - | ||
1097 | - | ||
1098 | - | @Callable(cg) | |
1099 | - | func decreasePosition ( | |
1100 | - | let | |
1101 | - | if (( | |
1113 | + | else ((((gX(cH, cJ, 0, 0, 0, 0, 0, 0) ++ go(gp, gq, gr, gs, gt, gu, gv, gw, gx, dR, gy, gz)) ++ gA((lastBlock.timestamp + gs), 0, 0, 0, 0)) ++ hi(0)) ++ [BooleanEntry(l, true), StringEntry(c, hv), StringEntry(a, hw), StringEntry(b, hx), StringEntry(U, hy)]) | |
1114 | + | ||
1115 | + | ||
1116 | + | ||
1117 | + | @Callable(cg) | |
1118 | + | func decreasePosition (hg,hz,hA) = { | |
1119 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1120 | + | if ((hB == hB)) | |
1102 | 1121 | then { | |
1103 | 1122 | let cp = cf(cg) | |
1104 | - | if (if (if (if (if ((0 >= | |
1123 | + | if (if (if (if (if ((0 >= hg)) | |
1105 | 1124 | then true | |
1106 | 1125 | else !(cx())) | |
1107 | 1126 | then true | |
1108 | - | else !(ch(aR(aK, | |
1127 | + | else !(ch(aR(aK, hz), bE(), true))) | |
1109 | 1128 | then true | |
1110 | 1129 | else !(cw(cp))) | |
1111 | 1130 | then true | |
1112 | 1131 | else cy()) | |
1113 | 1132 | then throw("Invalid decreasePosition parameters") | |
1114 | 1133 | else { | |
1115 | - | let | |
1116 | - | let | |
1117 | - | let | |
1118 | - | let | |
1119 | - | let | |
1120 | - | let | |
1134 | + | let hC = co(cp) | |
1135 | + | let fW = hC._1 | |
1136 | + | let hD = hC._2 | |
1137 | + | let hE = hC._3 | |
1138 | + | let hF = hC._4 | |
1139 | + | let hG = if ((fW > 0)) | |
1121 | 1140 | then aF | |
1122 | 1141 | else aE | |
1123 | - | let | |
1124 | - | let | |
1125 | - | let | |
1126 | - | let | |
1127 | - | let | |
1128 | - | let | |
1142 | + | let hH = (hG == aE) | |
1143 | + | let hI = aT(hg, hz) | |
1144 | + | let hJ = ei(cp, aN) | |
1145 | + | let hK = hJ._1 | |
1146 | + | let eh = hJ._2 | |
1147 | + | let hL = if ((hK > hI)) | |
1129 | 1148 | then { | |
1130 | - | let | |
1131 | - | let | |
1132 | - | let cQ = | |
1133 | - | let cR = | |
1134 | - | let | |
1135 | - | let | |
1136 | - | if (if (( | |
1137 | - | then ( | |
1149 | + | let hM = cP(hH, hI) | |
1150 | + | let eC = hM._1 | |
1151 | + | let cQ = hM._2 | |
1152 | + | let cR = hM._3 | |
1153 | + | let eK = hM._4 | |
1154 | + | let hN = ba(eC) | |
1155 | + | if (if ((hA != 0)) | |
1156 | + | then (hA > hN) | |
1138 | 1157 | else false) | |
1139 | - | then throw(((("Too little base asset exchanged, got " + toString( | |
1158 | + | then throw(((("Too little base asset exchanged, got " + toString(hN)) + " expected ") + toString(hA))) | |
1140 | 1159 | else { | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let dm = | |
1144 | - | let dn = | |
1145 | - | let di = | |
1146 | - | let | |
1147 | - | let | |
1148 | - | let | |
1149 | - | then (( | |
1150 | - | else (( | |
1151 | - | let | |
1152 | - | $Tuple12( | |
1153 | - | then ba( | |
1154 | - | else 0)), (ca() - (if ((0 > | |
1155 | - | then ba( | |
1156 | - | else 0)), (bM() - (if (( | |
1157 | - | then | |
1158 | - | else 0)), (bL() - (if ((0 > | |
1159 | - | then | |
1160 | + | let eH = aR(aT(eh, hN), ba(fW)) | |
1161 | + | let hO = dd(fW, hD, hF, eH) | |
1162 | + | let dm = hO._1 | |
1163 | + | let dn = hO._2 | |
1164 | + | let di = hO._3 | |
1165 | + | let eD = hI | |
1166 | + | let hP = (eh - eH) | |
1167 | + | let hQ = if ((fW > 0)) | |
1168 | + | then ((hK - eD) - hP) | |
1169 | + | else ((hP + hK) - eD) | |
1170 | + | let hR = (fW + eC) | |
1171 | + | $Tuple12(hR, dm, ba(hQ), cm(hR), cR, cQ, eK, (bK() - hI), (cb() - (if ((hR > 0)) | |
1172 | + | then ba(eC) | |
1173 | + | else 0)), (ca() - (if ((0 > hR)) | |
1174 | + | then ba(eC) | |
1175 | + | else 0)), (bM() - (if ((hR > 0)) | |
1176 | + | then hI | |
1177 | + | else 0)), (bL() - (if ((0 > hR)) | |
1178 | + | then hI | |
1160 | 1179 | else 0))) | |
1161 | 1180 | } | |
1162 | 1181 | } | |
1163 | 1182 | else throw("Close position first") | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let cR = | |
1169 | - | let cQ = | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | if (( | |
1178 | - | then ( | |
1183 | + | let hR = hL._1 | |
1184 | + | let hS = hL._2 | |
1185 | + | let hT = hL._3 | |
1186 | + | let hU = hL._4 | |
1187 | + | let cR = hL._5 | |
1188 | + | let cQ = hL._6 | |
1189 | + | let eK = hL._7 | |
1190 | + | let eN = hL._8 | |
1191 | + | let eL = hL._9 | |
1192 | + | let eM = hL._10 | |
1193 | + | let hV = hL._11 | |
1194 | + | let hW = hL._12 | |
1195 | + | let hX = invoke(as(), "notifyNotional", [cp, hT], nil) | |
1196 | + | if ((hX == hX)) | |
1197 | + | then (gK(cp, hR, hS, hT, hU) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) | |
1179 | 1198 | else throw("Strict value is not equal to itself.") | |
1180 | 1199 | } | |
1181 | 1200 | } | |
1185 | 1204 | ||
1186 | 1205 | ||
1187 | 1206 | @Callable(cg) | |
1188 | - | func increasePosition (hz, | |
1189 | - | let | |
1190 | - | if (( | |
1207 | + | func increasePosition (hG,hz,hA,hY) = { | |
1208 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1209 | + | if ((hB == hB)) | |
1191 | 1210 | then { | |
1192 | 1211 | let cp = cf(cg) | |
1193 | - | let | |
1212 | + | let hZ = cg.payments[0].amount | |
1194 | 1213 | let aA = cg.payments[0].assetId | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | if (if (if (if (if (if (if (if (if (( | |
1199 | - | then ( | |
1214 | + | let ia = toBase58String(value(aA)) | |
1215 | + | let ib = (aA == ao()) | |
1216 | + | let ic = az(ia) | |
1217 | + | if (if (if (if (if (if (if (if (if ((hG != aE)) | |
1218 | + | then (hG != aF) | |
1200 | 1219 | else false) | |
1201 | 1220 | then true | |
1202 | - | else (0 >= | |
1221 | + | else (0 >= hZ)) | |
1203 | 1222 | then true | |
1204 | 1223 | else !(cx())) | |
1205 | 1224 | then true | |
1206 | - | else if (!( | |
1207 | - | then !( | |
1225 | + | else if (!(ib)) | |
1226 | + | then !(ic) | |
1208 | 1227 | else false) | |
1209 | 1228 | then true | |
1210 | - | else !( | |
1211 | - | then true | |
1212 | - | else !(ch(aR(aK, | |
1229 | + | else !(fV(cp, ia))) | |
1230 | + | then true | |
1231 | + | else !(ch(aR(aK, hz), bE(), true))) | |
1213 | 1232 | then true | |
1214 | 1233 | else cy()) | |
1215 | 1234 | then true | |
1216 | 1235 | else cz()) | |
1217 | 1236 | then throw("Invalid increasePosition parameters") | |
1218 | 1237 | else { | |
1219 | - | let | |
1220 | - | let | |
1221 | - | let | |
1222 | - | let | |
1223 | - | let | |
1224 | - | let | |
1238 | + | let id = gd(cp, gi(cg)) | |
1239 | + | let fT = id._1 | |
1240 | + | let fU = id._2 | |
1241 | + | let ie = aT(hZ, fT) | |
1242 | + | let hg = (hZ - ie) | |
1243 | + | let if = if (ic) | |
1225 | 1244 | then { | |
1226 | - | let | |
1227 | - | if (( | |
1245 | + | let ig = invoke(aw(), "borrow", [cp], [AttachedPayment(aA, hg)]) | |
1246 | + | if ((ig == ig)) | |
1228 | 1247 | then { | |
1229 | - | let | |
1230 | - | if (( | |
1248 | + | let ih = assetBalance(this, ao()) | |
1249 | + | if ((ih == ih)) | |
1231 | 1250 | then { | |
1232 | - | let | |
1233 | - | if (( | |
1251 | + | let ii = invoke(ax(), "swap", [toBase58String(ao()), 0], [AttachedPayment(aA, ie)]) | |
1252 | + | if ((ii == ii)) | |
1234 | 1253 | then { | |
1235 | - | let | |
1236 | - | if (( | |
1254 | + | let ij = assetBalance(this, ao()) | |
1255 | + | if ((ij == ij)) | |
1237 | 1256 | then { | |
1238 | - | let | |
1239 | - | if (( | |
1240 | - | then | |
1257 | + | let ik = (ij - ih) | |
1258 | + | if ((ik == ik)) | |
1259 | + | then ik | |
1241 | 1260 | else throw("Strict value is not equal to itself.") | |
1242 | 1261 | } | |
1243 | 1262 | else throw("Strict value is not equal to itself.") | |
1248 | 1267 | } | |
1249 | 1268 | else throw("Strict value is not equal to itself.") | |
1250 | 1269 | } | |
1251 | - | else | |
1252 | - | if (( | |
1270 | + | else ie | |
1271 | + | if ((if == if)) | |
1253 | 1272 | then { | |
1254 | - | let | |
1255 | - | if (( | |
1273 | + | let il = invoke(au(), "acceptPaymentWithLink", [cp, hY], [AttachedPayment(ao(), if)]) | |
1274 | + | if ((il == il)) | |
1256 | 1275 | then { | |
1257 | - | let | |
1258 | - | let cr = | |
1276 | + | let im = { | |
1277 | + | let cr = il | |
1259 | 1278 | if ($isInstanceOf(cr, "Int")) | |
1260 | 1279 | then { | |
1261 | - | let | |
1262 | - | | |
1280 | + | let gg = cr | |
1281 | + | gg | |
1263 | 1282 | } | |
1264 | 1283 | else throw("Invalid referrerFee") | |
1265 | 1284 | } | |
1266 | - | let | |
1267 | - | let | |
1268 | - | let | |
1269 | - | let | |
1270 | - | let | |
1271 | - | let | |
1272 | - | let | |
1273 | - | let | |
1274 | - | then ( | |
1275 | - | else ( | |
1276 | - | let | |
1277 | - | then | |
1285 | + | let in = (if - im) | |
1286 | + | let io = co(cp) | |
1287 | + | let fW = io._1 | |
1288 | + | let hD = io._2 | |
1289 | + | let hE = io._3 | |
1290 | + | let hF = io._4 | |
1291 | + | let gI = (fW == 0) | |
1292 | + | let ip = if ((fW > 0)) | |
1293 | + | then (hG == aE) | |
1294 | + | else (hG == aF) | |
1295 | + | let iq = if (!(gI)) | |
1296 | + | then ip | |
1278 | 1297 | else false | |
1279 | - | let | |
1280 | - | let | |
1298 | + | let hH = (hG == aE) | |
1299 | + | let ir = if (if (gI) | |
1281 | 1300 | then true | |
1282 | - | else | |
1301 | + | else iq) | |
1283 | 1302 | then { | |
1284 | - | let | |
1285 | - | let | |
1286 | - | let cT = | |
1287 | - | let cQ = | |
1288 | - | let cR = | |
1289 | - | let | |
1290 | - | if (if (( | |
1291 | - | then ( | |
1303 | + | let hI = aT(hg, hz) | |
1304 | + | let is = cP(hH, hI) | |
1305 | + | let cT = is._1 | |
1306 | + | let cQ = is._2 | |
1307 | + | let cR = is._3 | |
1308 | + | let eK = is._4 | |
1309 | + | if (if ((hA != 0)) | |
1310 | + | then (hA > ba(cT)) | |
1292 | 1311 | else false) | |
1293 | - | then throw(((("Limit error: " + toString(ba(cT))) + " < ") + toString( | |
1312 | + | then throw(((("Limit error: " + toString(ba(cT))) + " < ") + toString(hA))) | |
1294 | 1313 | else { | |
1295 | - | let | |
1296 | - | let | |
1297 | - | then | |
1314 | + | let hR = (fW + cT) | |
1315 | + | let hV = (bM() + (if ((hR > 0)) | |
1316 | + | then hI | |
1298 | 1317 | else 0)) | |
1299 | - | let | |
1300 | - | then | |
1318 | + | let hW = (bL() + (if ((0 > hR)) | |
1319 | + | then hI | |
1301 | 1320 | else 0)) | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let dm = | |
1305 | - | let | |
1306 | - | let | |
1307 | - | if (!( | |
1321 | + | let it = aR(hI, hz) | |
1322 | + | let iu = dd(fW, hD, hF, it) | |
1323 | + | let dm = iu._1 | |
1324 | + | let ec = iu._2 | |
1325 | + | let ed = iu._3 | |
1326 | + | if (!(dK(cQ, cR))) | |
1308 | 1327 | then throw("Over max spread limit") | |
1309 | - | else if (!( | |
1328 | + | else if (!(dO(hV, hW))) | |
1310 | 1329 | then throw("Over max open notional") | |
1311 | - | else $Tuple12( | |
1330 | + | else $Tuple12(hR, dm, (hE + hI), cm(hR), cR, cQ, eK, (bK() + hI), (cb() + (if ((hR > 0)) | |
1312 | 1331 | then ba(cT) | |
1313 | - | else 0)), (ca() + (if ((0 > | |
1332 | + | else 0)), (ca() + (if ((0 > hR)) | |
1314 | 1333 | then ba(cT) | |
1315 | - | else 0)), | |
1334 | + | else 0)), hV, hW) | |
1316 | 1335 | } | |
1317 | 1336 | } | |
1318 | 1337 | else { | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | if (( | |
1338 | + | let hI = aT(hg, hz) | |
1339 | + | let iv = ei(toString(cg.caller), aN) | |
1340 | + | let hK = iv._1 | |
1341 | + | let eh = iv._2 | |
1342 | + | if ((hK > hI)) | |
1324 | 1343 | then throw("Use decreasePosition to decrease position size") | |
1325 | 1344 | else throw("Close position first") | |
1326 | 1345 | } | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let cR = | |
1332 | - | let cQ = | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1338 | - | let | |
1339 | - | let | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1346 | + | let hR = ir._1 | |
1347 | + | let hS = ir._2 | |
1348 | + | let hT = ir._3 | |
1349 | + | let hU = ir._4 | |
1350 | + | let cR = ir._5 | |
1351 | + | let cQ = ir._6 | |
1352 | + | let eK = ir._7 | |
1353 | + | let eN = ir._8 | |
1354 | + | let eL = ir._9 | |
1355 | + | let eM = ir._10 | |
1356 | + | let hV = ir._11 | |
1357 | + | let hW = ir._12 | |
1358 | + | let iw = gk(in) | |
1359 | + | let gm = iw._1 | |
1360 | + | let gn = iw._2 | |
1361 | + | let ix = if (ib) | |
1343 | 1362 | then { | |
1344 | - | let | |
1345 | - | if (( | |
1363 | + | let ix = invoke(ar(), "addLocked", [false], [AttachedPayment(ao(), hg)]) | |
1364 | + | if ((ix == ix)) | |
1346 | 1365 | then nil | |
1347 | 1366 | else throw("Strict value is not equal to itself.") | |
1348 | 1367 | } | |
1349 | 1368 | else nil | |
1350 | - | if (( | |
1369 | + | if ((ix == ix)) | |
1351 | 1370 | then { | |
1352 | - | let | |
1353 | - | if (( | |
1371 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1372 | + | if ((iy == iy)) | |
1354 | 1373 | then { | |
1355 | - | let | |
1356 | - | if (( | |
1374 | + | let iz = invoke(as(), "notifyFees", [cp, in], nil) | |
1375 | + | if ((iz == iz)) | |
1357 | 1376 | then { | |
1358 | - | let | |
1359 | - | if (( | |
1360 | - | then (((((( | |
1377 | + | let hX = invoke(as(), "notifyNotional", [cp, hT], nil) | |
1378 | + | if ((hX == hX)) | |
1379 | + | then ((((((gK(cp, hR, hS, hT, hU) ++ gH(gI, cp)) ++ gG(cp, ia)) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) ++ hj(gm)) ++ hi((bC() + hg))) ++ hk(fU, cg)) | |
1361 | 1380 | else throw("Strict value is not equal to itself.") | |
1362 | 1381 | } | |
1363 | 1382 | else throw("Strict value is not equal to itself.") | |
1378 | 1397 | ||
1379 | 1398 | @Callable(cg) | |
1380 | 1399 | func addMargin () = { | |
1381 | - | let | |
1382 | - | if (( | |
1400 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1401 | + | if ((hB == hB)) | |
1383 | 1402 | then { | |
1384 | 1403 | let cp = toString(cg.caller) | |
1385 | - | let | |
1404 | + | let hZ = cg.payments[0].amount | |
1386 | 1405 | let aA = cg.payments[0].assetId | |
1387 | - | let | |
1388 | - | let | |
1389 | - | let | |
1390 | - | if (if (if (if (if (if (if (!( | |
1391 | - | then !( | |
1406 | + | let ia = toBase58String(value(aA)) | |
1407 | + | let ib = (aA == ao()) | |
1408 | + | let ic = az(ia) | |
1409 | + | if (if (if (if (if (if (if (!(ib)) | |
1410 | + | then !(ic) | |
1392 | 1411 | else false) | |
1393 | 1412 | then true | |
1394 | 1413 | else !(cw(toString(cg.caller)))) | |
1395 | 1414 | then true | |
1396 | - | else !( | |
1415 | + | else !(fX(cp, ia))) | |
1397 | 1416 | then true | |
1398 | 1417 | else !(cx())) | |
1399 | 1418 | then true | |
1402 | 1421 | else cz()) | |
1403 | 1422 | then throw("Invalid addMargin parameters") | |
1404 | 1423 | else { | |
1405 | - | let | |
1406 | - | let | |
1407 | - | let | |
1408 | - | let | |
1409 | - | let | |
1410 | - | let | |
1424 | + | let iA = gd(cp, gi(cg)) | |
1425 | + | let fT = iA._1 | |
1426 | + | let fU = iA._2 | |
1427 | + | let ie = aT(hZ, fT) | |
1428 | + | let hg = (hZ - ie) | |
1429 | + | let if = if (ic) | |
1411 | 1430 | then { | |
1412 | - | let | |
1413 | - | if (( | |
1431 | + | let ig = invoke(aw(), "borrow", [cp], [AttachedPayment(aA, hg)]) | |
1432 | + | if ((ig == ig)) | |
1414 | 1433 | then { | |
1415 | - | let | |
1416 | - | if (( | |
1434 | + | let ih = assetBalance(this, ao()) | |
1435 | + | if ((ih == ih)) | |
1417 | 1436 | then { | |
1418 | - | let | |
1419 | - | if (( | |
1437 | + | let ii = invoke(ax(), "swap", [toBase58String(ao()), 0], [AttachedPayment(aA, ie)]) | |
1438 | + | if ((ii == ii)) | |
1420 | 1439 | then { | |
1421 | - | let | |
1422 | - | if (( | |
1440 | + | let ij = assetBalance(this, ao()) | |
1441 | + | if ((ij == ij)) | |
1423 | 1442 | then { | |
1424 | - | let | |
1425 | - | if (( | |
1426 | - | then | |
1443 | + | let ik = (ij - ih) | |
1444 | + | if ((ik == ik)) | |
1445 | + | then ik | |
1427 | 1446 | else throw("Strict value is not equal to itself.") | |
1428 | 1447 | } | |
1429 | 1448 | else throw("Strict value is not equal to itself.") | |
1434 | 1453 | } | |
1435 | 1454 | else throw("Strict value is not equal to itself.") | |
1436 | 1455 | } | |
1437 | - | else | |
1438 | - | if (( | |
1456 | + | else ie | |
1457 | + | if ((if == if)) | |
1439 | 1458 | then { | |
1440 | - | let | |
1441 | - | if (( | |
1459 | + | let il = invoke(au(), "acceptPayment", [cp], [AttachedPayment(ao(), if)]) | |
1460 | + | if ((il == il)) | |
1442 | 1461 | then { | |
1443 | - | let | |
1444 | - | let cr = | |
1462 | + | let im = { | |
1463 | + | let cr = il | |
1445 | 1464 | if ($isInstanceOf(cr, "Int")) | |
1446 | 1465 | then { | |
1447 | - | let | |
1448 | - | | |
1466 | + | let gg = cr | |
1467 | + | gg | |
1449 | 1468 | } | |
1450 | 1469 | else throw("Invalid referrerFee") | |
1451 | 1470 | } | |
1452 | - | let | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | let | |
1458 | - | let | |
1459 | - | let | |
1460 | - | let | |
1461 | - | let | |
1471 | + | let in = (if - im) | |
1472 | + | let iB = co(cp) | |
1473 | + | let fW = iB._1 | |
1474 | + | let hD = iB._2 | |
1475 | + | let hE = iB._3 | |
1476 | + | let hF = iB._4 | |
1477 | + | let iC = gk(in) | |
1478 | + | let gm = iC._1 | |
1479 | + | let gn = iC._2 | |
1480 | + | let ix = if (ib) | |
1462 | 1481 | then { | |
1463 | - | let | |
1464 | - | if (( | |
1482 | + | let ix = invoke(ar(), "addLocked", [false], [AttachedPayment(ao(), hg)]) | |
1483 | + | if ((ix == ix)) | |
1465 | 1484 | then nil | |
1466 | 1485 | else throw("Strict value is not equal to itself.") | |
1467 | 1486 | } | |
1468 | 1487 | else nil | |
1469 | - | if (( | |
1488 | + | if ((ix == ix)) | |
1470 | 1489 | then { | |
1471 | - | let | |
1472 | - | if (( | |
1490 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1491 | + | if ((iy == iy)) | |
1473 | 1492 | then { | |
1474 | - | let | |
1475 | - | if (( | |
1476 | - | then ((( | |
1493 | + | let iz = invoke(as(), "notifyFees", [cp, in], nil) | |
1494 | + | if ((iz == iz)) | |
1495 | + | then (((gK(cp, fW, (hD + hg), hE, hF) ++ hj(gm)) ++ hi((bC() + hg))) ++ hk(fU, cg)) | |
1477 | 1496 | else throw("Strict value is not equal to itself.") | |
1478 | 1497 | } | |
1479 | 1498 | else throw("Strict value is not equal to itself.") | |
1491 | 1510 | ||
1492 | 1511 | ||
1493 | 1512 | @Callable(cg) | |
1494 | - | func removeMargin ( | |
1495 | - | let | |
1496 | - | if (( | |
1513 | + | func removeMargin (hg) = { | |
1514 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1515 | + | if ((hB == hB)) | |
1497 | 1516 | then { | |
1498 | 1517 | let cp = toString(cg.caller) | |
1499 | - | if (if (if (if ((0 >= | |
1518 | + | if (if (if (if ((0 >= hg)) | |
1500 | 1519 | then true | |
1501 | 1520 | else !(cw(cp))) | |
1502 | 1521 | then true | |
1505 | 1524 | else cy()) | |
1506 | 1525 | then throw("Invalid removeMargin parameters") | |
1507 | 1526 | else { | |
1508 | - | let | |
1509 | - | let | |
1510 | - | let | |
1511 | - | let | |
1512 | - | let | |
1513 | - | let | |
1514 | - | let | |
1515 | - | let dm = | |
1516 | - | let dn = | |
1527 | + | let iD = co(cp) | |
1528 | + | let fW = iD._1 | |
1529 | + | let hD = iD._2 | |
1530 | + | let hE = iD._3 | |
1531 | + | let hF = iD._4 | |
1532 | + | let iE = -(hg) | |
1533 | + | let iF = dd(fW, hD, hF, iE) | |
1534 | + | let dm = iF._1 | |
1535 | + | let dn = iF._2 | |
1517 | 1536 | if ((dn != 0)) | |
1518 | 1537 | then throw("Invalid removed margin amount") | |
1519 | 1538 | else { | |
1520 | - | let | |
1521 | - | if (!(ch( | |
1522 | - | then throw(((("Too much margin removed: " + toString( | |
1539 | + | let iG = en(dm, dn, hE) | |
1540 | + | if (!(ch(iG, bE(), true))) | |
1541 | + | then throw(((("Too much margin removed: " + toString(iG)) + " < ") + toString(bE()))) | |
1523 | 1542 | else { | |
1524 | - | let | |
1525 | - | let | |
1526 | - | let | |
1527 | - | let | |
1528 | - | let | |
1529 | - | then | |
1530 | - | else | |
1531 | - | let | |
1543 | + | let iH = toBase58String(ao()) | |
1544 | + | let iI = ga(cp) | |
1545 | + | let iJ = iI._1 | |
1546 | + | let iK = iI._2 | |
1547 | + | let iL = if ((hg > iJ)) | |
1548 | + | then iJ | |
1549 | + | else hg | |
1550 | + | let iM = if ((iJ > hg)) | |
1532 | 1551 | then 0 | |
1533 | - | else ( | |
1534 | - | let | |
1535 | - | let | |
1552 | + | else (hg - iJ) | |
1553 | + | let iN = (iJ - iL) | |
1554 | + | let iO = if ((iN > 0)) | |
1536 | 1555 | then nil | |
1537 | - | else | |
1538 | - | let | |
1539 | - | then throw(((((("toRepay=" + toString( | |
1556 | + | else gG(cp, iH) | |
1557 | + | let iP = if (((iL + iM) != hg)) | |
1558 | + | then throw(((((("toRepay=" + toString(iL)) + " + toWithdraw=") + toString(iM)) + " != ") + toString(hg))) | |
1540 | 1559 | else nil | |
1541 | - | if (( | |
1560 | + | if ((iP == iP)) | |
1542 | 1561 | then { | |
1543 | - | let | |
1562 | + | let iQ = if ((iM > 0)) | |
1544 | 1563 | then { | |
1545 | - | let | |
1546 | - | if (( | |
1564 | + | let iQ = invoke(ar(), "withdrawLocked", [iM], nil) | |
1565 | + | if ((iQ == iQ)) | |
1547 | 1566 | then nil | |
1548 | 1567 | else throw("Strict value is not equal to itself.") | |
1549 | 1568 | } | |
1550 | 1569 | else nil | |
1551 | - | if (( | |
1570 | + | if ((iQ == iQ)) | |
1552 | 1571 | then { | |
1553 | - | let | |
1572 | + | let iR = if ((iL > 0)) | |
1554 | 1573 | then { | |
1555 | - | let | |
1556 | - | if (( | |
1557 | - | then [ScriptTransfer(cg.caller, | |
1574 | + | let iS = invoke(aw(), "repay", [cp, iL, iK], nil) | |
1575 | + | if ((iS == iS)) | |
1576 | + | then [ScriptTransfer(cg.caller, iL, fromBase58String(iK))] | |
1558 | 1577 | else throw("Strict value is not equal to itself.") | |
1559 | 1578 | } | |
1560 | 1579 | else nil | |
1561 | - | if (( | |
1562 | - | then (((( | |
1563 | - | then | |
1564 | - | else nil)) ++ | |
1580 | + | if ((iR == iR)) | |
1581 | + | then ((((gK(cp, fW, dm, hE, cm(fW)) ++ (if ((iM > 0)) | |
1582 | + | then hf(cg.caller, iM) | |
1583 | + | else nil)) ++ hi((bC() - hg))) ++ iO) ++ iR) | |
1565 | 1584 | else throw("Strict value is not equal to itself.") | |
1566 | 1585 | } | |
1567 | 1586 | else throw("Strict value is not equal to itself.") | |
1577 | 1596 | ||
1578 | 1597 | ||
1579 | 1598 | @Callable(cg) | |
1580 | - | func closePosition ( | |
1581 | - | let | |
1582 | - | if (( | |
1599 | + | func closePosition (gL,iT) = { | |
1600 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1601 | + | if ((hB == hB)) | |
1583 | 1602 | then { | |
1584 | 1603 | let cp = cf(cg) | |
1585 | - | let | |
1604 | + | let iU = valueOrErrorMessage(addressFromString(cp), "Invalid caller") | |
1586 | 1605 | if (if (if (if (if (!(cw(cp))) | |
1587 | 1606 | then true | |
1588 | 1607 | else !(cx())) | |
1589 | 1608 | then true | |
1590 | 1609 | else cy()) | |
1591 | 1610 | then true | |
1592 | - | else (0 >= | |
1593 | - | then true | |
1594 | - | else (0 > | |
1611 | + | else (0 >= gL)) | |
1612 | + | then true | |
1613 | + | else (0 > iT)) | |
1595 | 1614 | then throw("Invalid closePosition parameters") | |
1596 | 1615 | else { | |
1597 | - | let | |
1598 | - | let | |
1599 | - | let | |
1600 | - | let | |
1601 | - | let | |
1602 | - | let | |
1616 | + | let iV = co(cp) | |
1617 | + | let fW = iV._1 | |
1618 | + | let hD = iV._2 | |
1619 | + | let hE = iV._3 | |
1620 | + | let hF = iV._4 | |
1621 | + | let iW = if ((ba(fW) > gL)) | |
1603 | 1622 | then { | |
1604 | - | let | |
1623 | + | let hG = if ((fW > 0)) | |
1605 | 1624 | then aF | |
1606 | 1625 | else aE | |
1607 | - | let | |
1608 | - | let | |
1609 | - | let | |
1610 | - | let cQ = | |
1611 | - | let cR = | |
1612 | - | let | |
1613 | - | let | |
1614 | - | then -( | |
1615 | - | else | |
1616 | - | let | |
1617 | - | let | |
1618 | - | let | |
1619 | - | let | |
1620 | - | let | |
1621 | - | let | |
1622 | - | let | |
1623 | - | let dm = | |
1624 | - | let | |
1625 | - | let di = | |
1626 | - | let | |
1627 | - | let | |
1628 | - | then (( | |
1629 | - | else (( | |
1630 | - | let | |
1631 | - | let | |
1632 | - | let | |
1633 | - | let | |
1634 | - | let | |
1635 | - | if (if (( | |
1636 | - | then ( | |
1626 | + | let hH = (hG == aE) | |
1627 | + | let iX = dy((fW > 0), gL, true) | |
1628 | + | let eD = iX._1 | |
1629 | + | let cQ = iX._2 | |
1630 | + | let cR = iX._3 | |
1631 | + | let eK = iX._4 | |
1632 | + | let eC = if ((fW > 0)) | |
1633 | + | then -(gL) | |
1634 | + | else gL | |
1635 | + | let iY = ei(cp, aN) | |
1636 | + | let hK = iY._1 | |
1637 | + | let eh = iY._2 | |
1638 | + | let iZ = er(cp, aN) | |
1639 | + | let ja = aR(ba(eC), ba(fW)) | |
1640 | + | let eH = aT(eh, ja) | |
1641 | + | let jb = dd(fW, hD, hF, eH) | |
1642 | + | let dm = jb._1 | |
1643 | + | let jc = jb._2 | |
1644 | + | let di = jb._3 | |
1645 | + | let hP = (eh - eH) | |
1646 | + | let hQ = if ((fW > 0)) | |
1647 | + | then ((hK - eD) - hP) | |
1648 | + | else ((hP + hK) - eD) | |
1649 | + | let hT = ba(hQ) | |
1650 | + | let jd = aT(hT, iZ) | |
1651 | + | let hR = (fW + eC) | |
1652 | + | let je = cm(hR) | |
1653 | + | let eN = (bK() - eD) | |
1654 | + | if (if ((iT != 0)) | |
1655 | + | then (iT > eD) | |
1637 | 1656 | else false) | |
1638 | - | then throw(((("Limit error: " + toString( | |
1639 | - | else $Tuple15( | |
1640 | - | then ba( | |
1641 | - | else 0)), (ca() - (if ((0 > | |
1642 | - | then ba( | |
1643 | - | else 0)), (bM() - (if (( | |
1644 | - | then | |
1645 | - | else 0)), (bL() - (if ((0 > | |
1646 | - | then | |
1657 | + | then throw(((("Limit error: " + toString(eD)) + " < ") + toString(iT))) | |
1658 | + | else $Tuple15(hR, jd, hT, je, jc, eH, (ba((dm - jd)) + eH), cQ, cR, eK, eN, (cb() - (if ((hR > 0)) | |
1659 | + | then ba(eC) | |
1660 | + | else 0)), (ca() - (if ((0 > hR)) | |
1661 | + | then ba(eC) | |
1662 | + | else 0)), (bM() - (if ((hR > 0)) | |
1663 | + | then eD | |
1664 | + | else 0)), (bL() - (if ((0 > hR)) | |
1665 | + | then eD | |
1647 | 1666 | else 0))) | |
1648 | 1667 | } | |
1649 | - | else if (( | |
1668 | + | else if ((gL > ba(fW))) | |
1650 | 1669 | then throw("Invalid closePosition parameters") | |
1651 | 1670 | else { | |
1652 | - | let | |
1653 | - | let | |
1654 | - | let | |
1655 | - | let | |
1656 | - | let | |
1657 | - | let cQ = | |
1658 | - | let cR = | |
1659 | - | let | |
1660 | - | let | |
1661 | - | let | |
1662 | - | let | |
1663 | - | let | |
1664 | - | let | |
1665 | - | let | |
1666 | - | if (if (( | |
1667 | - | then ( | |
1671 | + | let jf = eE(cp, true) | |
1672 | + | let eD = jf._1 | |
1673 | + | let jc = jf._2 | |
1674 | + | let eH = jf._3 | |
1675 | + | let eI = jf._4 | |
1676 | + | let cQ = jf._5 | |
1677 | + | let cR = jf._6 | |
1678 | + | let eK = jf._7 | |
1679 | + | let eN = jf._8 | |
1680 | + | let ed = jf._9 | |
1681 | + | let eL = jf._10 | |
1682 | + | let eM = jf._11 | |
1683 | + | let hV = jf._12 | |
1684 | + | let hW = jf._13 | |
1685 | + | if (if ((iT != 0)) | |
1686 | + | then (iT > eD) | |
1668 | 1687 | else false) | |
1669 | - | then throw(((("Limit error: " + toString( | |
1670 | - | else $Tuple15(0, 0, 0, 0, | |
1688 | + | then throw(((("Limit error: " + toString(eD)) + " < ") + toString(iT))) | |
1689 | + | else $Tuple15(0, 0, 0, 0, jc, eH, eI, cQ, cR, eK, eN, eL, eM, hV, hW) | |
1671 | 1690 | } | |
1672 | - | let | |
1673 | - | let | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1677 | - | let | |
1678 | - | let | |
1679 | - | let cQ = | |
1680 | - | let cR = | |
1681 | - | let | |
1682 | - | let | |
1683 | - | let | |
1684 | - | let | |
1685 | - | let | |
1686 | - | let | |
1687 | - | if (( | |
1691 | + | let hR = iW._1 | |
1692 | + | let jd = iW._2 | |
1693 | + | let hT = iW._3 | |
1694 | + | let je = iW._4 | |
1695 | + | let jc = iW._5 | |
1696 | + | let eH = iW._6 | |
1697 | + | let eI = iW._7 | |
1698 | + | let cQ = iW._8 | |
1699 | + | let cR = iW._9 | |
1700 | + | let eK = iW._10 | |
1701 | + | let eN = iW._11 | |
1702 | + | let eL = iW._12 | |
1703 | + | let eM = iW._13 | |
1704 | + | let hV = iW._14 | |
1705 | + | let hW = iW._15 | |
1706 | + | if ((jc > 0)) | |
1688 | 1707 | then throw("Unable to close position with bad debt") | |
1689 | 1708 | else { | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1693 | - | then $Tuple2(0, ba( | |
1694 | - | else $Tuple2( | |
1695 | - | let | |
1696 | - | let | |
1697 | - | let | |
1698 | - | let | |
1699 | - | let | |
1700 | - | let | |
1701 | - | then if (( | |
1709 | + | let jg = ba(eI) | |
1710 | + | let jh = (bC() - jg) | |
1711 | + | let ji = if ((0 > jh)) | |
1712 | + | then $Tuple2(0, ba(jh)) | |
1713 | + | else $Tuple2(jh, 0) | |
1714 | + | let jj = ji._1 | |
1715 | + | let jk = ji._2 | |
1716 | + | let jl = ga(cp) | |
1717 | + | let iJ = jl._1 | |
1718 | + | let iK = jl._2 | |
1719 | + | let jm = if ((iJ > 0)) | |
1720 | + | then if ((jg >= iJ)) | |
1702 | 1721 | then { | |
1703 | - | let | |
1704 | - | if (( | |
1705 | - | then $Tuple2([ScriptTransfer( | |
1722 | + | let iS = invoke(aw(), "repay", [cp, iJ, iK], nil) | |
1723 | + | if ((iS == iS)) | |
1724 | + | then $Tuple2([ScriptTransfer(iU, iJ, fromBase58String(iK))], (jg - iJ)) | |
1706 | 1725 | else throw("Strict value is not equal to itself.") | |
1707 | 1726 | } | |
1708 | 1727 | else { | |
1709 | - | let | |
1710 | - | if (( | |
1711 | - | then $Tuple2([ScriptTransfer( | |
1728 | + | let jn = invoke(aw(), "realizePartiallyAndClose", [cp, jg, iK], nil) | |
1729 | + | if ((jn == jn)) | |
1730 | + | then $Tuple2([ScriptTransfer(iU, jg, fromBase58String(iK))], 0) | |
1712 | 1731 | else throw("Strict value is not equal to itself.") | |
1713 | 1732 | } | |
1714 | - | else $Tuple2(nil, | |
1715 | - | if (( | |
1733 | + | else $Tuple2(nil, jg) | |
1734 | + | if ((jm == jm)) | |
1716 | 1735 | then { | |
1717 | - | let | |
1718 | - | let | |
1719 | - | let | |
1736 | + | let jo = jm._2 | |
1737 | + | let jp = jm._1 | |
1738 | + | let jq = if ((jo > 0)) | |
1720 | 1739 | then { | |
1721 | - | let | |
1722 | - | if (( | |
1740 | + | let jq = invoke(ar(), "withdrawLocked", [jo], nil) | |
1741 | + | if ((jq == jq)) | |
1723 | 1742 | then nil | |
1724 | 1743 | else throw("Strict value is not equal to itself.") | |
1725 | 1744 | } | |
1726 | 1745 | else nil | |
1727 | - | if (( | |
1746 | + | if ((jq == jq)) | |
1728 | 1747 | then { | |
1729 | - | let | |
1730 | - | if (( | |
1731 | - | then (((((if (( | |
1732 | - | then | |
1733 | - | else | |
1734 | - | then | |
1735 | - | else nil)) ++ | |
1748 | + | let hX = invoke(as(), "notifyNotional", [cp, 0], nil) | |
1749 | + | if ((hX == hX)) | |
1750 | + | then (((((if ((hR == 0)) | |
1751 | + | then he(cp) | |
1752 | + | else gK(cp, hR, jd, hT, je)) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) ++ (if ((jo > 0)) | |
1753 | + | then hf(iU, jo) | |
1754 | + | else nil)) ++ hi(jj)) ++ jp) | |
1736 | 1755 | else throw("Strict value is not equal to itself.") | |
1737 | 1756 | } | |
1738 | 1757 | else throw("Strict value is not equal to itself.") | |
1748 | 1767 | ||
1749 | 1768 | @Callable(cg) | |
1750 | 1769 | func liquidate (cp) = { | |
1751 | - | let | |
1752 | - | if (( | |
1770 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1771 | + | if ((hB == hB)) | |
1753 | 1772 | then { | |
1754 | - | let | |
1755 | - | let | |
1773 | + | let jr = er(cp, aN) | |
1774 | + | let iG = if (dT()) | |
1756 | 1775 | then { | |
1757 | - | let | |
1758 | - | bb( | |
1776 | + | let js = er(cp, aO) | |
1777 | + | bb(jr, js) | |
1759 | 1778 | } | |
1760 | - | else | |
1761 | - | if (if (if (if (!(ch( | |
1779 | + | else jr | |
1780 | + | if (if (if (if (!(ch(iG, bR(), false))) | |
1762 | 1781 | then true | |
1763 | 1782 | else !(cw(cp))) | |
1764 | 1783 | then true | |
1766 | 1785 | then true | |
1767 | 1786 | else cy()) | |
1768 | 1787 | then throw("Unable to liquidate") | |
1769 | - | else if (if (if (( | |
1788 | + | else if (if (if ((jr > bS())) | |
1770 | 1789 | then (bT() > 0) | |
1771 | 1790 | else false) | |
1772 | 1791 | then (aK > bT()) | |
1773 | 1792 | else false) | |
1774 | 1793 | then { | |
1775 | - | let | |
1776 | - | let | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1794 | + | let jt = co(cp) | |
1795 | + | let fW = jt._1 | |
1796 | + | let hD = jt._2 | |
1797 | + | let hE = jt._3 | |
1798 | + | let hF = jt._4 | |
1799 | + | let hG = if ((fW > 0)) | |
1781 | 1800 | then aF | |
1782 | 1801 | else aE | |
1783 | - | let | |
1784 | - | let | |
1785 | - | let | |
1786 | - | let | |
1787 | - | let | |
1788 | - | let | |
1789 | - | let | |
1790 | - | let cQ = | |
1791 | - | let cR = | |
1792 | - | let | |
1793 | - | let | |
1794 | - | let | |
1795 | - | let | |
1796 | - | let dm = | |
1797 | - | let dn = | |
1798 | - | let di = | |
1799 | - | let | |
1800 | - | let | |
1801 | - | then (( | |
1802 | - | else (( | |
1803 | - | let | |
1804 | - | let | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1808 | - | let | |
1809 | - | let | |
1810 | - | let | |
1811 | - | let | |
1812 | - | let | |
1813 | - | then $Tuple2(0, ba( | |
1814 | - | else $Tuple2( | |
1815 | - | let | |
1816 | - | let | |
1817 | - | let | |
1818 | - | let | |
1819 | - | let | |
1820 | - | let | |
1802 | + | let hH = (hG == aE) | |
1803 | + | let eD = ex(cp, fW) | |
1804 | + | let ju = ei(cp, aN) | |
1805 | + | let hK = ju._1 | |
1806 | + | let eh = ju._2 | |
1807 | + | let jv = cP(hH, eD) | |
1808 | + | let eC = jv._1 | |
1809 | + | let cQ = jv._2 | |
1810 | + | let cR = jv._3 | |
1811 | + | let eK = jv._4 | |
1812 | + | let jw = aR(ba(eC), ba(fW)) | |
1813 | + | let eH = aT(eh, jw) | |
1814 | + | let jx = dd(fW, hD, hF, eH) | |
1815 | + | let dm = jx._1 | |
1816 | + | let dn = jx._2 | |
1817 | + | let di = jx._3 | |
1818 | + | let hP = (eh - eH) | |
1819 | + | let hQ = if ((fW > 0)) | |
1820 | + | then ((hK - eD) - hP) | |
1821 | + | else ((hP + hK) - eD) | |
1822 | + | let jy = aT(eD, bS()) | |
1823 | + | let jz = (jy / 2) | |
1824 | + | let gn = (jy - jz) | |
1825 | + | let jd = (dm - jy) | |
1826 | + | let hR = (fW + eC) | |
1827 | + | let hT = ba(hQ) | |
1828 | + | let je = cm(hR) | |
1829 | + | let eN = (bK() - eD) | |
1830 | + | let jh = (bC() - jy) | |
1831 | + | let jA = if ((0 > jh)) | |
1832 | + | then $Tuple2(0, ba(jh)) | |
1833 | + | else $Tuple2(jh, 0) | |
1834 | + | let jB = jA._1 | |
1835 | + | let jk = jA._2 | |
1836 | + | let jC = ga(cp) | |
1837 | + | let iJ = jC._1 | |
1838 | + | let iK = jC._2 | |
1839 | + | let jD = if ((iJ > 0)) | |
1821 | 1840 | then { | |
1822 | - | let | |
1823 | - | let | |
1824 | - | if (( | |
1841 | + | let jE = aT(iJ, jw) | |
1842 | + | let jn = invoke(aw(), "realizePartially", [cp, iK, jE], nil) | |
1843 | + | if ((jn == jn)) | |
1825 | 1844 | then nil | |
1826 | 1845 | else throw("Strict value is not equal to itself.") | |
1827 | 1846 | } | |
1828 | 1847 | else nil | |
1829 | - | if (( | |
1848 | + | if ((jD == jD)) | |
1830 | 1849 | then { | |
1831 | - | let | |
1832 | - | if (( | |
1850 | + | let jq = invoke(ar(), "withdrawLocked", [jy], nil) | |
1851 | + | if ((jq == jq)) | |
1833 | 1852 | then { | |
1834 | - | let | |
1835 | - | if (( | |
1853 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1854 | + | if ((iy == iy)) | |
1836 | 1855 | then { | |
1837 | - | let | |
1838 | - | if (( | |
1839 | - | then ((( | |
1840 | - | then ba( | |
1841 | - | else 0)), (ca() - (if ((0 > | |
1842 | - | then ba( | |
1843 | - | else 0)), (bM() - (if (( | |
1844 | - | then | |
1845 | - | else 0)), (bL() - (if ((0 > | |
1846 | - | then | |
1847 | - | else 0)))) ++ | |
1856 | + | let hX = invoke(as(), "notifyNotional", [cp, hT], nil) | |
1857 | + | if ((hX == hX)) | |
1858 | + | then (((gK(cp, hR, jd, hT, je) ++ gX(cQ, cR, eK, eN, (cb() - (if ((hR > 0)) | |
1859 | + | then ba(eC) | |
1860 | + | else 0)), (ca() - (if ((0 > hR)) | |
1861 | + | then ba(eC) | |
1862 | + | else 0)), (bM() - (if ((hR > 0)) | |
1863 | + | then eD | |
1864 | + | else 0)), (bL() - (if ((0 > hR)) | |
1865 | + | then eD | |
1866 | + | else 0)))) ++ hf(cg.caller, jz)) ++ hi(jB)) | |
1848 | 1867 | else throw("Strict value is not equal to itself.") | |
1849 | 1868 | } | |
1850 | 1869 | else throw("Strict value is not equal to itself.") | |
1854 | 1873 | else throw("Strict value is not equal to itself.") | |
1855 | 1874 | } | |
1856 | 1875 | else { | |
1857 | - | let | |
1858 | - | let | |
1859 | - | let dn = | |
1860 | - | let | |
1861 | - | let | |
1862 | - | let cQ = | |
1863 | - | let cR = | |
1864 | - | let | |
1865 | - | let | |
1866 | - | let | |
1867 | - | let | |
1868 | - | let | |
1869 | - | let | |
1870 | - | let | |
1871 | - | let | |
1872 | - | let | |
1873 | - | let | |
1874 | - | let | |
1875 | - | let | |
1876 | - | then $Tuple2(0, ba( | |
1877 | - | else $Tuple2( | |
1878 | - | let | |
1879 | - | let | |
1880 | - | let | |
1881 | - | let | |
1882 | - | let | |
1883 | - | let | |
1876 | + | let jF = eE(cp, false) | |
1877 | + | let ec = jF._1 | |
1878 | + | let dn = jF._2 | |
1879 | + | let ed = jF._3 | |
1880 | + | let ee = jF._4 | |
1881 | + | let cQ = jF._5 | |
1882 | + | let cR = jF._6 | |
1883 | + | let eK = jF._7 | |
1884 | + | let eN = jF._8 | |
1885 | + | let eD = jF._9 | |
1886 | + | let eL = jF._10 | |
1887 | + | let eM = jF._11 | |
1888 | + | let hV = jF._12 | |
1889 | + | let hW = jF._13 | |
1890 | + | let jy = aT(eD, bS()) | |
1891 | + | let jz = (jy / 2) | |
1892 | + | let gn = (jy - jz) | |
1893 | + | let jh = (bC() - jy) | |
1894 | + | let jG = if ((0 > jh)) | |
1895 | + | then $Tuple2(0, ba(jh)) | |
1896 | + | else $Tuple2(jh, 0) | |
1897 | + | let jB = jG._1 | |
1898 | + | let jk = jG._2 | |
1899 | + | let jH = ga(cp) | |
1900 | + | let iJ = jH._1 | |
1901 | + | let iK = jH._2 | |
1902 | + | let jD = if ((iJ > 0)) | |
1884 | 1903 | then { | |
1885 | - | let | |
1886 | - | if (( | |
1904 | + | let jn = invoke(aw(), "realizePartiallyAndClose", [cp, 0, iK], nil) | |
1905 | + | if ((jn == jn)) | |
1887 | 1906 | then nil | |
1888 | 1907 | else throw("Strict value is not equal to itself.") | |
1889 | 1908 | } | |
1890 | 1909 | else nil | |
1891 | - | if (( | |
1910 | + | if ((jD == jD)) | |
1892 | 1911 | then { | |
1893 | - | let | |
1912 | + | let gg = if ((dn > 0)) | |
1894 | 1913 | then { | |
1895 | - | let | |
1896 | - | if (( | |
1914 | + | let jI = invoke(ar(), "exchangeFreeAndLocked", [dn], nil) | |
1915 | + | if ((jI == jI)) | |
1897 | 1916 | then nil | |
1898 | 1917 | else throw("Strict value is not equal to itself.") | |
1899 | 1918 | } | |
1900 | 1919 | else nil | |
1901 | - | if (( | |
1920 | + | if ((gg == gg)) | |
1902 | 1921 | then { | |
1903 | - | let | |
1904 | - | if (( | |
1922 | + | let jq = invoke(ar(), "withdrawLocked", [jy], nil) | |
1923 | + | if ((jq == jq)) | |
1905 | 1924 | then { | |
1906 | - | let | |
1907 | - | if (( | |
1925 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1926 | + | if ((iy == iy)) | |
1908 | 1927 | then { | |
1909 | - | let | |
1910 | - | if (( | |
1911 | - | then ((( | |
1928 | + | let hX = invoke(as(), "notifyNotional", [cp, 0], nil) | |
1929 | + | if ((hX == hX)) | |
1930 | + | then (((he(cp) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) ++ hf(cg.caller, jz)) ++ hi(jB)) | |
1912 | 1931 | else throw("Strict value is not equal to itself.") | |
1913 | 1932 | } | |
1914 | 1933 | else throw("Strict value is not equal to itself.") | |
1927 | 1946 | ||
1928 | 1947 | @Callable(cg) | |
1929 | 1948 | func payFunding () = { | |
1930 | - | let | |
1931 | - | if (( | |
1949 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1950 | + | if ((hB == hB)) | |
1932 | 1951 | then { | |
1933 | - | let | |
1934 | - | if (if (if (( | |
1952 | + | let jJ = bN() | |
1953 | + | if (if (if ((jJ > lastBlock.timestamp)) | |
1935 | 1954 | then true | |
1936 | 1955 | else !(cx())) | |
1937 | 1956 | then true | |
1938 | 1957 | else cy()) | |
1939 | - | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString( | |
1958 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(jJ))) | |
1940 | 1959 | else { | |
1941 | - | let | |
1942 | - | let | |
1943 | - | let | |
1944 | - | let | |
1945 | - | | |
1960 | + | let fG = dz() | |
1961 | + | let jK = fF() | |
1962 | + | let fJ = jK._1 | |
1963 | + | let fK = jK._2 | |
1964 | + | gA((jJ + bQ()), (bY() + fK), (bZ() + fJ), aR(fK, fG), aR(fJ, fG)) | |
1946 | 1965 | } | |
1947 | 1966 | } | |
1948 | 1967 | else throw("Strict value is not equal to itself.") | |
1952 | 1971 | ||
1953 | 1972 | @Callable(cg) | |
1954 | 1973 | func syncTerminalPriceToOracle () = { | |
1955 | - | let jE = fy(dz()) | |
1956 | - | let jF = jE._1 | |
1957 | - | let jG = jE._2 | |
1958 | - | let eF = jE._3 | |
1959 | - | let jH = if ((eF != 0)) | |
1974 | + | let cH = bF() | |
1975 | + | let cJ = bG() | |
1976 | + | let jL = fB(dz(), cH, cJ) | |
1977 | + | let hr = jL._1 | |
1978 | + | let hs = jL._2 | |
1979 | + | let eI = jL._3 | |
1980 | + | let ht = if ((eI != 0)) | |
1960 | 1981 | then { | |
1961 | - | let | |
1962 | - | if (( | |
1982 | + | let ht = invoke(ar(), "exchangeFreeAndLocked", [eI], nil) | |
1983 | + | if ((ht == ht)) | |
1963 | 1984 | then nil | |
1964 | 1985 | else throw("Strict value is not equal to itself.") | |
1965 | 1986 | } | |
1966 | 1987 | else nil | |
1967 | - | if ((jH == jH)) | |
1988 | + | if ((ht == ht)) | |
1989 | + | then (gW(hr, hs) ++ gO(aR(aT(cH, hr), aT(cJ, hs)))) | |
1990 | + | else throw("Strict value is not equal to itself.") | |
1991 | + | } | |
1992 | + | ||
1993 | + | ||
1994 | + | ||
1995 | + | @Callable(cg) | |
1996 | + | func view_calcRemainMarginWithFundingPayment (cp) = { | |
1997 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1998 | + | if ((hB == hB)) | |
1968 | 1999 | then { | |
1969 | - | let cH = bF() | |
1970 | - | let cJ = bG() | |
1971 | - | (gT(jF, jG) ++ gL(aR(aT(cH, jF), aT(cJ, jG)))) | |
2000 | + | let jM = co(cp) | |
2001 | + | let cs = jM._1 | |
2002 | + | let ek = jM._2 | |
2003 | + | let et = jM._3 | |
2004 | + | let em = jM._4 | |
2005 | + | let jN = ei(cp, aN) | |
2006 | + | let dZ = jN._1 | |
2007 | + | let eh = jN._2 | |
2008 | + | let jO = dd(cs, ek, em, eh) | |
2009 | + | let dm = jO._1 | |
2010 | + | let dn = jO._2 | |
2011 | + | let di = jO._3 | |
2012 | + | throw((((((aP(dm) + aP(di)) + aP(ew(cp))) + aP(eh)) + aP(dn)) + aP(dZ))) | |
1972 | 2013 | } | |
1973 | 2014 | else throw("Strict value is not equal to itself.") | |
1974 | 2015 | } | |
1976 | 2017 | ||
1977 | 2018 | ||
1978 | 2019 | @Callable(cg) | |
1979 | - | func view_calcRemainMarginWithFundingPayment (cp) = { | |
1980 | - | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1981 | - | if ((hu == hu)) | |
1982 | - | then { | |
1983 | - | let jI = co(cp) | |
1984 | - | let cs = jI._1 | |
1985 | - | let eh = jI._2 | |
1986 | - | let eq = jI._3 | |
1987 | - | let ej = jI._4 | |
1988 | - | let jJ = ef(cp, aN) | |
1989 | - | let dW = jJ._1 | |
1990 | - | let ee = jJ._2 | |
1991 | - | let jK = dd(cs, eh, ej, ee) | |
1992 | - | let dm = jK._1 | |
1993 | - | let dn = jK._2 | |
1994 | - | let di = jK._3 | |
1995 | - | throw((((((aP(dm) + aP(di)) + aP(et(cp))) + aP(ee)) + aP(dn)) + aP(dW))) | |
1996 | - | } | |
1997 | - | else throw("Strict value is not equal to itself.") | |
1998 | - | } | |
1999 | - | ||
2000 | - | ||
2001 | - | ||
2002 | - | @Callable(cg) | |
2003 | - | func view_getPegAdjustCost (gM) = { | |
2004 | - | let fx = fy(gM) | |
2005 | - | throw(toString(fx._3)) | |
2020 | + | func view_getPegAdjustCost (gP) = { | |
2021 | + | let cH = bF() | |
2022 | + | let cJ = bG() | |
2023 | + | let fA = fB(gP, cH, cJ) | |
2024 | + | throw(toString(fA._3)) | |
2006 | 2025 | } | |
2007 | 2026 | ||
2008 | 2027 | ||
2009 | 2028 | ||
2010 | 2029 | @Callable(cg) | |
2011 | 2030 | func view_getTerminalAmmPrice () = { | |
2012 | - | let | |
2013 | - | let | |
2014 | - | let | |
2015 | - | let | |
2016 | - | throw(toString( | |
2031 | + | let jP = fe() | |
2032 | + | let fi = jP._1 | |
2033 | + | let fj = jP._2 | |
2034 | + | let hm = aR(aT(fi, bH()), aT(fj, bI())) | |
2035 | + | throw(toString(hm)) | |
2017 | 2036 | } | |
2018 | 2037 | ||
2019 | 2038 | ||
2020 | 2039 | ||
2021 | 2040 | @Callable(cg) | |
2022 | 2041 | func view_getFunding () = { | |
2023 | - | let | |
2024 | - | let | |
2025 | - | let | |
2026 | - | let | |
2027 | - | let | |
2028 | - | let | |
2029 | - | throw((((aP( | |
2042 | + | let fG = dz() | |
2043 | + | let jQ = fF() | |
2044 | + | let fJ = jQ._1 | |
2045 | + | let fK = jQ._2 | |
2046 | + | let jR = aR(fK, fG) | |
2047 | + | let jS = aR(fJ, fG) | |
2048 | + | throw((((aP(jR) + aP(jS)) + aP(eO())) + aP(dz()))) | |
2030 | 2049 | } | |
2031 | 2050 | ||
2032 | 2051 | ||
2033 | 2052 | ||
2034 | 2053 | @Callable(cg) | |
2035 | 2054 | func view_getBorrowedByTrader (cp) = { | |
2036 | - | let | |
2037 | - | let | |
2038 | - | let | |
2039 | - | throw((aP( | |
2055 | + | let jT = ga(cp) | |
2056 | + | let iJ = jT._1 | |
2057 | + | let iK = jT._2 | |
2058 | + | throw((aP(iJ) + iK)) | |
2040 | 2059 | } | |
2041 | 2060 | ||
2042 | 2061 | ||
2043 | 2062 | ||
2044 | 2063 | @Callable(cg) | |
2045 | 2064 | func computeSpotPrice () = { | |
2046 | - | let | |
2047 | - | $Tuple2(nil, | |
2048 | - | } | |
2049 | - | ||
2050 | - | ||
2051 | - | ||
2052 | - | @Callable(cg) | |
2053 | - | func computeFeeForTraderWithArtifact (cp, | |
2054 | - | let | |
2055 | - | $Tuple2(nil, | |
2056 | - | } | |
2057 | - | ||
2058 | - | ||
2059 | - | @Verifier( | |
2060 | - | func | |
2065 | + | let fA = dS() | |
2066 | + | $Tuple2(nil, fA) | |
2067 | + | } | |
2068 | + | ||
2069 | + | ||
2070 | + | ||
2071 | + | @Callable(cg) | |
2072 | + | func computeFeeForTraderWithArtifact (cp,fM) = { | |
2073 | + | let fA = gd(cp, fM) | |
2074 | + | $Tuple2(nil, fA) | |
2075 | + | } | |
2076 | + | ||
2077 | + | ||
2078 | + | @Verifier(jU) | |
2079 | + | func jV () = sigVerify(jU.bodyBytes, jU.proofs[0], an()) | |
2061 | 2080 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_ora_key" | |
5 | 5 | ||
6 | 6 | let b = "k_ora_block_key" | |
7 | 7 | ||
8 | 8 | let c = "k_ora" | |
9 | 9 | ||
10 | 10 | let d = "k_balance" | |
11 | 11 | ||
12 | 12 | let e = "k_sequence" | |
13 | 13 | ||
14 | 14 | let f = "k_positionSize" | |
15 | 15 | ||
16 | 16 | let g = "k_positionMargin" | |
17 | 17 | ||
18 | 18 | let h = "k_positionOpenNotional" | |
19 | 19 | ||
20 | 20 | let i = "k_positionFraction" | |
21 | 21 | ||
22 | 22 | let j = "k_positionSequence" | |
23 | 23 | ||
24 | 24 | let k = "k_positionAsset" | |
25 | 25 | ||
26 | 26 | let l = "k_initialized" | |
27 | 27 | ||
28 | 28 | let m = "k_paused" | |
29 | 29 | ||
30 | 30 | let n = "k_closeOnly" | |
31 | 31 | ||
32 | 32 | let o = "k_fee" | |
33 | 33 | ||
34 | 34 | let p = "k_fundingPeriod" | |
35 | 35 | ||
36 | 36 | let q = "k_initMarginRatio" | |
37 | 37 | ||
38 | 38 | let r = "k_mmr" | |
39 | 39 | ||
40 | 40 | let s = "k_liquidationFeeRatio" | |
41 | 41 | ||
42 | 42 | let t = "k_partLiquidationRatio" | |
43 | 43 | ||
44 | 44 | let u = "k_spreadLimit" | |
45 | 45 | ||
46 | 46 | let v = "k_maxPriceImpact" | |
47 | 47 | ||
48 | 48 | let w = "k_maxPriceSpread" | |
49 | 49 | ||
50 | 50 | let x = "k_maxOpenNotional" | |
51 | 51 | ||
52 | 52 | let y = "k_feeToStakersPercent" | |
53 | 53 | ||
54 | 54 | let z = "k_maxOracleDelay" | |
55 | 55 | ||
56 | 56 | let A = "k_lastDataStr" | |
57 | 57 | ||
58 | 58 | let B = "k_lastMinuteId" | |
59 | 59 | ||
60 | 60 | let C = "k_twapDataLastCumulativePrice" | |
61 | 61 | ||
62 | 62 | let D = "k_twapDataLastPrice" | |
63 | 63 | ||
64 | 64 | let E = "k_twapDataPreviousMinuteId" | |
65 | 65 | ||
66 | 66 | let F = "k_latestLongPremiumFraction" | |
67 | 67 | ||
68 | 68 | let G = "k_latestShortPremiumFraction" | |
69 | 69 | ||
70 | 70 | let H = "k_nextFundingBlockMinTimestamp" | |
71 | 71 | ||
72 | 72 | let I = "k_longFundingRate" | |
73 | 73 | ||
74 | 74 | let J = "k_shortFundingRate" | |
75 | 75 | ||
76 | 76 | let K = "k_qtAstR" | |
77 | 77 | ||
78 | 78 | let L = "k_bsAstR" | |
79 | 79 | ||
80 | 80 | let M = "k_qtAstW" | |
81 | 81 | ||
82 | 82 | let N = "k_bsAstW" | |
83 | 83 | ||
84 | 84 | let O = "k_totalPositionSize" | |
85 | 85 | ||
86 | 86 | let P = "k_totalLongPositionSize" | |
87 | 87 | ||
88 | 88 | let Q = "k_totalShortPositionSize" | |
89 | 89 | ||
90 | 90 | let R = "k_openInterestNotional" | |
91 | 91 | ||
92 | 92 | let S = "k_openInterestShort" | |
93 | 93 | ||
94 | 94 | let T = "k_openInterestLong" | |
95 | 95 | ||
96 | 96 | let U = "k_coordinatorAddress" | |
97 | 97 | ||
98 | 98 | let V = "k_vault_address" | |
99 | 99 | ||
100 | 100 | let W = "k_admin_address" | |
101 | 101 | ||
102 | 102 | let X = "k_admin_public_key" | |
103 | 103 | ||
104 | 104 | let Y = "k_quote_asset" | |
105 | 105 | ||
106 | 106 | let Z = "k_quote_staking" | |
107 | 107 | ||
108 | 108 | let aa = "k_staking_address" | |
109 | 109 | ||
110 | 110 | let ab = "k_miner_address" | |
111 | 111 | ||
112 | 112 | let ac = "k_orders_address" | |
113 | 113 | ||
114 | 114 | let ad = "k_referral_address" | |
115 | 115 | ||
116 | 116 | let ae = "k_collateral_address" | |
117 | 117 | ||
118 | 118 | let af = "k_exchange_address" | |
119 | 119 | ||
120 | 120 | let ag = "k_nft_manager_address" | |
121 | 121 | ||
122 | 122 | let ah = "k_trader_market_asset_collateral" | |
123 | 123 | ||
124 | 124 | func ai (aj,ak) = ((aj + "_") + ak) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func al () = valueOrErrorMessage(addressFromString(getStringValue(this, U)), "Coordinator not set") | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func am () = addressFromString(getStringValue(al(), W)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func an () = fromBase58String(getStringValue(al(), X)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ao () = fromBase58String(getStringValue(al(), Y)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ap () = valueOrErrorMessage(addressFromString(getStringValue(al(), Z)), "Quote asset staking not set") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func aq () = valueOrErrorMessage(addressFromString(getStringValue(al(), aa)), "Staking not set") | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ar () = valueOrErrorMessage(addressFromString(getStringValue(al(), V)), "Vault not set") | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func as () = valueOrErrorMessage(addressFromString(getStringValue(al(), ab)), "Miner not set") | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func at () = valueOrErrorMessage(addressFromString(getStringValue(al(), ac)), "Orders not set") | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func au () = valueOrErrorMessage(addressFromString(getStringValue(al(), ad)), "Referral not set") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func av () = valueOrErrorMessage(addressFromString(getStringValue(al(), ag)), "NFT Manager not set") | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aw () = valueOrErrorMessage(addressFromString(getStringValue(al(), ae)), "Collateral Manager not set") | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ax () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(al(), af), "No swap address")), "Invalid swap address") | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | let ay = "k_whitelist_asset" | |
167 | 167 | ||
168 | 168 | func az (aA) = valueOrElse(getBoolean(aw(), ai(ay, aA)), false) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | let aB = "k_token_param" | |
172 | 172 | ||
173 | 173 | let aC = "k_token_type" | |
174 | 174 | ||
175 | 175 | let aD = "fee_reduction" | |
176 | 176 | ||
177 | 177 | let aE = 1 | |
178 | 178 | ||
179 | 179 | let aF = 2 | |
180 | 180 | ||
181 | 181 | let aG = 15 | |
182 | 182 | ||
183 | 183 | let aH = 15 | |
184 | 184 | ||
185 | 185 | let aI = 1000 | |
186 | 186 | ||
187 | 187 | let aJ = 6 | |
188 | 188 | ||
189 | 189 | let aK = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
190 | 190 | ||
191 | 191 | let aL = (86400 * aK) | |
192 | 192 | ||
193 | 193 | let aM = 100 | |
194 | 194 | ||
195 | 195 | let aN = 1 | |
196 | 196 | ||
197 | 197 | let aO = 2 | |
198 | 198 | ||
199 | 199 | func aP (aQ) = (toString(aQ) + ",") | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aR (aQ,aS) = fraction(aQ, aK, aS, HALFEVEN) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aT (aQ,aS) = fraction(aQ, aS, aK, HALFEVEN) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aU (aQ) = sqrt(aQ, aJ, aJ, HALFEVEN) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aV (aQ,aS) = pow(aQ, aJ, aS, aJ, aJ, HALFEVEN) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aW (aQ,aS) = fraction(aQ, toBigInt(aK), aS, HALFEVEN) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aX (aQ,aS) = fraction(aQ, aS, toBigInt(aK), HALFEVEN) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aY (aQ) = sqrtBigInt(aQ, aJ, aJ, HALFEVEN) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aZ (aQ,aS) = pow(aQ, aJ, aS, aJ, aJ, HALFEVEN) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func ba (aQ) = if ((aQ > 0)) | |
227 | 227 | then aQ | |
228 | 228 | else -(aQ) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func bb (aQ,aS) = if ((aQ >= aS)) | |
232 | 232 | then aQ | |
233 | 233 | else aS | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func bc (bd) = { | |
237 | 237 | func be (bf,bg) = ((bf + bg) + ",") | |
238 | 238 | ||
239 | 239 | let bh = { | |
240 | 240 | let bi = bd | |
241 | 241 | let bj = size(bi) | |
242 | 242 | let bk = "" | |
243 | 243 | func bl (bm,bn) = if ((bn >= bj)) | |
244 | 244 | then bm | |
245 | 245 | else be(bm, bi[bn]) | |
246 | 246 | ||
247 | 247 | func bo (bm,bn) = if ((bn >= bj)) | |
248 | 248 | then bm | |
249 | 249 | else throw("List size exceeds 20") | |
250 | 250 | ||
251 | 251 | bo(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bk, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
252 | 252 | } | |
253 | 253 | let bp = dropRight(bh, 1) | |
254 | 254 | let bq = if ((take(bp, 1) == ",")) | |
255 | 255 | then drop(bp, 1) | |
256 | 256 | else bp | |
257 | 257 | bq | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func br (bs) = split(bs, ",") | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func bt (bd,bu,bv) = if ((size(bd) > bu)) | |
265 | 265 | then (removeByIndex(bd, 0) :+ bv) | |
266 | 266 | else (bd :+ bv) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bw (bx) = valueOrErrorMessage(getInteger(this, bx), ("no value for " + bx)) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func by (bx,bz) = valueOrElse(getInteger(this, bx), bz) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bA (ak,aj) = { | |
276 | 276 | let bg = valueOrErrorMessage(getString(ak, aj), ("No value for key " + aj)) | |
277 | 277 | bg | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bB (ak,aj) = { | |
282 | 282 | let bg = valueOrErrorMessage(getInteger(ak, aj), ("No value for key " + aj)) | |
283 | 283 | bg | |
284 | 284 | } | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bC () = bw(d) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bD () = bw(o) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func bE () = bw(q) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bF () = bw(K) | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func bG () = bw(L) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func bH () = by(M, aK) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func bI () = by(N, aK) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func bJ () = bw(O) | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func bK () = bw(R) | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func bL () = bw(S) | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func bM () = bw(T) | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func bN () = bw(H) | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | func bO () = bw(p) | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | func bP () = (bO() * aK) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func bQ () = (bO() * aI) | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func bR () = bw(r) | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func bS () = bw(s) | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func bT () = bw(t) | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func bU () = bw(u) | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func bV () = bw(v) | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func bW () = bw(w) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func bX () = bw(x) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func bY () = bw(F) | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func bZ () = bw(G) | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func ca () = bw(Q) | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | func cb () = bw(P) | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | func cc () = by(e, 0) | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | func cd () = bw(y) | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | func ce () = bw(z) | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | func cf (cg) = valueOrElse(getString(at(), "k_sender"), toString(cg.caller)) | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | func ch (ci,cj,ck) = { | |
378 | 378 | let cl = (ci - cj) | |
379 | 379 | if (if (ck) | |
380 | 380 | then (0 > cl) | |
381 | 381 | else false) | |
382 | 382 | then throw("Invalid margin") | |
383 | 383 | else if (if (!(ck)) | |
384 | 384 | then (cl >= 0) | |
385 | 385 | else false) | |
386 | 386 | then throw("Invalid margin") | |
387 | 387 | else true | |
388 | 388 | } | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | func cm (cn) = if ((cn == 0)) | |
392 | 392 | then throw("Should not be called with _positionSize == 0") | |
393 | 393 | else if ((cn > 0)) | |
394 | 394 | then bY() | |
395 | 395 | else bZ() | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | func co (cp) = { | |
399 | 399 | let cq = getInteger(this, ai(f, cp)) | |
400 | 400 | let cr = cq | |
401 | 401 | if ($isInstanceOf(cr, "Int")) | |
402 | 402 | then { | |
403 | 403 | let cs = cr | |
404 | 404 | $Tuple4(cs, getIntegerValue(this, ai(g, cp)), getIntegerValue(this, ai(h, cp)), getIntegerValue(this, ai(i, cp))) | |
405 | 405 | } | |
406 | 406 | else $Tuple4(0, 0, 0, 0) | |
407 | 407 | } | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | func ct (cp) = { | |
411 | 411 | let cu = getString(this, ai(k, cp)) | |
412 | 412 | let cr = cu | |
413 | 413 | if ($isInstanceOf(cr, "String")) | |
414 | 414 | then { | |
415 | 415 | let cv = cr | |
416 | 416 | cv | |
417 | 417 | } | |
418 | 418 | else toBase58String(ao()) | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | func cw (cp) = if ((co(cp)._1 == 0)) | |
423 | 423 | then throw("No open position") | |
424 | 424 | else true | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | func cx () = valueOrElse(getBoolean(this, l), false) | |
428 | 428 | ||
429 | 429 | ||
430 | 430 | func cy () = valueOrElse(getBoolean(this, m), false) | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | func cz () = valueOrElse(getBoolean(this, n), false) | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | func cA (cB,cC,cD) = if (cB) | |
437 | 437 | then { | |
438 | 438 | let cE = (bG() - cD) | |
439 | 439 | if ((0 >= cE)) | |
440 | 440 | then throw("Tx lead to base asset reserve <= 0, revert") | |
441 | 441 | else $Tuple3((bF() + cC), cE, (bJ() + cD)) | |
442 | 442 | } | |
443 | 443 | else { | |
444 | 444 | let cF = (bF() - cC) | |
445 | 445 | if ((0 >= cF)) | |
446 | 446 | then throw("Tx lead to base quote reserve <= 0, revert") | |
447 | 447 | else $Tuple3(cF, (bG() + cD), (bJ() - cD)) | |
448 | 448 | } | |
449 | 449 | ||
450 | 450 | ||
451 | 451 | func cG (cH,cI,cJ,cK) = { | |
452 | 452 | let cL = toBigInt(cH) | |
453 | 453 | let cM = toBigInt(cI) | |
454 | 454 | let cN = toBigInt(cJ) | |
455 | 455 | let cO = toBigInt(cK) | |
456 | 456 | aX(aX(cL, cM), aX(cN, cO)) | |
457 | 457 | } | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | func cP (cB,cC) = { | |
461 | 461 | let cH = bF() | |
462 | 462 | let cJ = bG() | |
463 | 463 | let cI = bH() | |
464 | 464 | let cK = bI() | |
465 | 465 | let bx = cG(cH, cI, cJ, cK) | |
466 | 466 | let cQ = if (cB) | |
467 | 467 | then (cH + cC) | |
468 | 468 | else (cH - cC) | |
469 | 469 | let cR = toInt(aW(bx, toBigInt(aT(cQ, cI)))) | |
470 | 470 | let cS = aR(ba((cR - cJ)), cI) | |
471 | 471 | let cT = if (cB) | |
472 | 472 | then cS | |
473 | 473 | else -(cS) | |
474 | 474 | let cU = cA(cB, cC, cS) | |
475 | 475 | let cV = cU._1 | |
476 | 476 | let cW = cU._2 | |
477 | 477 | let cX = cU._3 | |
478 | 478 | let cY = aR(aT(cH, cI), aT(cJ, cK)) | |
479 | 479 | let cZ = aR(cC, cS) | |
480 | 480 | let da = ba((cY - cZ)) | |
481 | 481 | let db = (aK - aR(cY, (cY + da))) | |
482 | 482 | let dc = bV() | |
483 | 483 | if ((db > dc)) | |
484 | 484 | then throw(((((((((((((("Price impact " + toString(db)) + " > max price impact ") + toString(dc)) + " before quote asset: ") + toString(cH)) + " before base asset: ") + toString(cJ)) + " quote asset amount to exchange: ") + toString(cC)) + " price before: ") + toString(cY)) + " marketPrice: ") + toString(cZ))) | |
485 | 485 | else $Tuple4(cT, cV, cW, cX) | |
486 | 486 | } | |
487 | 487 | ||
488 | 488 | ||
489 | 489 | func dd (de,df,dg,dh) = { | |
490 | 490 | let di = if ((de != 0)) | |
491 | 491 | then { | |
492 | 492 | let dj = cm(de) | |
493 | 493 | aT((dj - dg), de) | |
494 | 494 | } | |
495 | 495 | else 0 | |
496 | 496 | let dk = ((dh - di) + df) | |
497 | 497 | let dl = if ((0 > dk)) | |
498 | 498 | then $Tuple2(0, ba(dk)) | |
499 | 499 | else $Tuple2(ba(dk), 0) | |
500 | 500 | let dm = dl._1 | |
501 | 501 | let dn = dl._2 | |
502 | 502 | $Tuple3(dm, dn, di) | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | func do (cB,cD,dp,dq,dr,ds,dt) = { | |
507 | 507 | let cY = aR(aT(dq, dr), aT(ds, dt)) | |
508 | 508 | if ((cD == 0)) | |
509 | 509 | then throw("Invalid base asset amount") | |
510 | 510 | else { | |
511 | 511 | let bx = cG(dq, dr, ds, dt) | |
512 | 512 | let du = if (cB) | |
513 | 513 | then (ds + cD) | |
514 | 514 | else (ds - cD) | |
515 | 515 | let dv = toInt(aW(bx, toBigInt(aT(du, dt)))) | |
516 | 516 | let dw = ba((dv - aT(dq, dr))) | |
517 | 517 | let dc = bV() | |
518 | 518 | let dx = cA(!(cB), dw, cD) | |
519 | 519 | let cV = dx._1 | |
520 | 520 | let cW = dx._2 | |
521 | 521 | let cX = dx._3 | |
522 | 522 | let cZ = aR(dw, cD) | |
523 | 523 | let da = ba((cY - cZ)) | |
524 | 524 | let db = (aK - aR(cY, (cY + da))) | |
525 | 525 | if (if ((db > dc)) | |
526 | 526 | then dp | |
527 | 527 | else false) | |
528 | 528 | then throw(((((((((((((("Price impact " + toString(db)) + " > max price impact ") + toString(dc)) + " before quote asset: ") + toString(dq)) + " before base asset: ") + toString(ds)) + " base asset amount to exchange: ") + toString(cD)) + " price before: ") + toString(cY)) + " market price: ") + toString(cZ))) | |
529 | 529 | else $Tuple7(dw, cV, cW, cX, (cb() - (if (cB) | |
530 | 530 | then ba(cD) | |
531 | 531 | else 0)), (ca() - (if (!(cB)) | |
532 | 532 | then ba(cD) | |
533 | 533 | else 0)), db) | |
534 | 534 | } | |
535 | 535 | } | |
536 | 536 | ||
537 | 537 | ||
538 | 538 | func dy (cB,cD,dp) = do(cB, cD, dp, bF(), bH(), bG(), bI()) | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | func dz () = { | |
542 | 542 | let dA = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "") | |
543 | 543 | let dB = getStringValue(this, a) | |
544 | 544 | let dC = valueOrErrorMessage(getInteger(dA, dB), ((("Can not get oracle price. Oracle: " + toString(dA)) + " key: ") + dB)) | |
545 | 545 | let dD = valueOrElse(getString(this, b), "") | |
546 | 546 | if ((dD != "")) | |
547 | 547 | then { | |
548 | 548 | let dE = lastBlock.height | |
549 | 549 | let dF = valueOrErrorMessage(getInteger(dA, dD), ((("Can not get oracle block. Oracle: " + toString(dA)) + " key: ") + dD)) | |
550 | 550 | if (((dE - dF) > ce())) | |
551 | 551 | then throw(((("Oracle stale data. Last oracle block: " + toString(dF)) + " current block: ") + toString(dE))) | |
552 | 552 | else dC | |
553 | 553 | } | |
554 | 554 | else dC | |
555 | 555 | } | |
556 | 556 | ||
557 | 557 | ||
558 | - | func dG (dq,ds) = { | |
559 | - | let dH = dz() | |
558 | + | func dG (dH,dq,ds,cI,cK) = { | |
559 | + | let dI = aR(aT(dq, cI), aT(ds, cK)) | |
560 | + | let dJ = aR((dH + dI), (2 * aK)) | |
561 | + | let dG = aR(ba((dH - dI)), dJ) | |
562 | + | dG | |
563 | + | } | |
564 | + | ||
565 | + | ||
566 | + | func dK (dq,ds) = { | |
567 | + | let dL = dz() | |
560 | 568 | let cI = bH() | |
561 | 569 | let cK = bI() | |
562 | - | let dI = aR(aT(dq, cI), aT(ds, cK)) | |
563 | - | let dJ = aR((dH + dI), (2 * aK)) | |
564 | - | let dK = aR(ba((dH - dI)), dJ) | |
565 | - | if ((dK > bW())) | |
566 | - | then throw(((("Price spread " + toString(dK)) + " > max price spread ") + toString(bW()))) | |
570 | + | let dM = dG(dL, bF(), bG(), cI, cK) | |
571 | + | let dN = dG(dL, dq, ds, cI, cK) | |
572 | + | if (if ((dN > bW())) | |
573 | + | then (dN > dM) | |
574 | + | else false) | |
575 | + | then throw(((("Price spread " + toString(dN)) + " > max price spread ") + toString(bW()))) | |
567 | 576 | else true | |
568 | 577 | } | |
569 | 578 | ||
570 | 579 | ||
571 | - | func | |
572 | - | let | |
573 | - | if (( | |
574 | - | then throw(((("Long open notional " + toString( | |
575 | - | else if (( | |
576 | - | then throw(((("Short open notional " + toString( | |
580 | + | func dO (dP,dQ) = { | |
581 | + | let dR = bX() | |
582 | + | if ((dP > dR)) | |
583 | + | then throw(((("Long open notional " + toString(dP)) + " > max open notional ") + toString(dR))) | |
584 | + | else if ((dQ > dR)) | |
585 | + | then throw(((("Short open notional " + toString(dQ)) + " > max open notional ") + toString(dR))) | |
577 | 586 | else true | |
578 | 587 | } | |
579 | 588 | ||
580 | 589 | ||
581 | - | func | |
590 | + | func dS () = { | |
582 | 591 | let dq = bF() | |
583 | 592 | let ds = bG() | |
584 | 593 | let cI = bH() | |
585 | 594 | let cK = bI() | |
586 | 595 | aR(aT(dq, cI), aT(ds, cK)) | |
587 | 596 | } | |
588 | 597 | ||
589 | 598 | ||
590 | - | func | |
591 | - | let | |
592 | - | let | |
593 | - | (aR(ba(( | |
594 | - | } | |
595 | - | ||
596 | - | ||
597 | - | func | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
599 | + | func dT () = { | |
600 | + | let dL = dz() | |
601 | + | let dU = dS() | |
602 | + | (aR(ba((dL - dU)), dL) > bU()) | |
603 | + | } | |
604 | + | ||
605 | + | ||
606 | + | func dV (cn,dW,dq,dr,ds,dt) = { | |
607 | + | let dX = ba(cn) | |
608 | + | let dY = (0 > cn) | |
609 | + | let dZ = if ((dW == aN)) | |
601 | 610 | then { | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | | |
608 | - | } | |
609 | - | else aT( | |
610 | - | | |
611 | - | } | |
612 | - | ||
613 | - | ||
614 | - | func | |
611 | + | let ea = do(!(dY), dX, false, dq, dr, ds, dt) | |
612 | + | let eb = ea._1 | |
613 | + | let ec = ea._2 | |
614 | + | let ed = ea._3 | |
615 | + | let ee = ea._4 | |
616 | + | eb | |
617 | + | } | |
618 | + | else aT(dX, dz()) | |
619 | + | dZ | |
620 | + | } | |
621 | + | ||
622 | + | ||
623 | + | func ef (cn,eg,dq,dr,ds,dt,dW) = if ((cn == 0)) | |
615 | 624 | then throw("Invalid position size") | |
616 | 625 | else { | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | then ( | |
621 | - | else ( | |
622 | - | $Tuple2( | |
626 | + | let dY = (0 > cn) | |
627 | + | let dZ = dV(cn, dW, dq, dr, ds, dt) | |
628 | + | let eh = if (dY) | |
629 | + | then (eg - dZ) | |
630 | + | else (dZ - eg) | |
631 | + | $Tuple2(dZ, eh) | |
623 | 632 | } | |
624 | 633 | ||
625 | 634 | ||
626 | - | func | |
627 | - | let | |
628 | - | let cs = | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | | |
633 | - | } | |
634 | - | ||
635 | - | ||
636 | - | func | |
637 | - | ||
638 | - | ||
639 | - | func | |
640 | - | let | |
641 | - | let cs = | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let dm = | |
650 | - | let dn = | |
651 | - | | |
652 | - | } | |
653 | - | ||
654 | - | ||
655 | - | func | |
656 | - | ||
657 | - | ||
658 | - | func | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let db = | |
635 | + | func ei (cp,dW) = { | |
636 | + | let ej = co(cp) | |
637 | + | let cs = ej._1 | |
638 | + | let ek = ej._2 | |
639 | + | let el = ej._3 | |
640 | + | let em = ej._4 | |
641 | + | ef(cs, el, bF(), bH(), bG(), bI(), dW) | |
642 | + | } | |
643 | + | ||
644 | + | ||
645 | + | func en (eo,ep,eq) = aR((eo - ep), eq) | |
646 | + | ||
647 | + | ||
648 | + | func er (cp,dW) = { | |
649 | + | let es = co(cp) | |
650 | + | let cs = es._1 | |
651 | + | let ek = es._2 | |
652 | + | let et = es._3 | |
653 | + | let em = es._4 | |
654 | + | let eu = ei(cp, dW) | |
655 | + | let dZ = eu._1 | |
656 | + | let eh = eu._2 | |
657 | + | let ev = dd(cs, ek, em, eh) | |
658 | + | let dm = ev._1 | |
659 | + | let dn = ev._2 | |
660 | + | en(dm, dn, dZ) | |
661 | + | } | |
662 | + | ||
663 | + | ||
664 | + | func ew (cp) = er(cp, aN) | |
665 | + | ||
666 | + | ||
667 | + | func ex (cp,cn) = { | |
668 | + | let ey = bb(bT(), (aK - aR(ew(cp), bR()))) | |
669 | + | let ez = aT(ba(cn), ey) | |
670 | + | let eA = dy((cn > 0), ez, false) | |
671 | + | let eB = eA._1 | |
672 | + | let db = eA._7 | |
664 | 673 | if ((bV() > db)) | |
665 | - | then | |
674 | + | then eB | |
666 | 675 | else { | |
667 | - | let | |
668 | - | let | |
669 | - | | |
670 | - | } | |
671 | - | } | |
672 | - | ||
673 | - | ||
674 | - | func | |
675 | - | let | |
676 | - | let cs = | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let dm = | |
683 | - | let dn = | |
684 | - | let | |
685 | - | let | |
686 | - | let | |
687 | - | let | |
688 | - | let | |
689 | - | let cQ = | |
690 | - | let cR = | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | $Tuple13( | |
696 | - | then | |
676 | + | let eC = aT(ba(cn), bT()) | |
677 | + | let eD = dy((cn > 0), eC, false)._1 | |
678 | + | eD | |
679 | + | } | |
680 | + | } | |
681 | + | ||
682 | + | ||
683 | + | func eE (cp,dp) = { | |
684 | + | let eF = co(cp) | |
685 | + | let cs = eF._1 | |
686 | + | let ek = eF._2 | |
687 | + | let el = eF._3 | |
688 | + | let em = eF._4 | |
689 | + | let eh = ei(cp, aN)._2 | |
690 | + | let eG = dd(cs, ek, em, eh) | |
691 | + | let dm = eG._1 | |
692 | + | let dn = eG._2 | |
693 | + | let eC = -(cs) | |
694 | + | let eH = eh | |
695 | + | let eI = -(dm) | |
696 | + | let eJ = dy((cs > 0), ba(cs), dp) | |
697 | + | let eD = eJ._1 | |
698 | + | let cQ = eJ._2 | |
699 | + | let cR = eJ._3 | |
700 | + | let eK = eJ._4 | |
701 | + | let eL = eJ._5 | |
702 | + | let eM = eJ._6 | |
703 | + | let eN = (bK() - el) | |
704 | + | $Tuple13(eC, dn, eH, eI, cQ, cR, eK, eN, eD, eL, eM, (bM() - (if ((cs > 0)) | |
705 | + | then el | |
697 | 706 | else 0)), (bL() - (if ((0 > cs)) | |
698 | - | then | |
707 | + | then el | |
699 | 708 | else 0))) | |
700 | 709 | } | |
701 | 710 | ||
702 | 711 | ||
703 | - | func | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | func | |
709 | - | then (bf :+ parseIntValue( | |
712 | + | func eO () = { | |
713 | + | let eP = ((lastBlock.timestamp / 1000) / 60) | |
714 | + | let eQ = (eP - aG) | |
715 | + | let eR = valueOrElse(getString(this, A), "") | |
716 | + | let eS = split(eR, ",") | |
717 | + | func eT (bf,eU) = if ((eQ >= parseIntValue(eU))) | |
718 | + | then (bf :+ parseIntValue(eU)) | |
710 | 719 | else bf | |
711 | 720 | ||
712 | - | let | |
713 | - | let bi = | |
721 | + | let eV = { | |
722 | + | let bi = eS | |
714 | 723 | let bj = size(bi) | |
715 | 724 | let bk = nil | |
716 | 725 | func bl (bm,bn) = if ((bn >= bj)) | |
717 | 726 | then bm | |
718 | - | else | |
727 | + | else eT(bm, bi[bn]) | |
719 | 728 | ||
720 | 729 | func bo (bm,bn) = if ((bn >= bj)) | |
721 | 730 | then bm | |
722 | 731 | else throw("List size exceeds 20") | |
723 | 732 | ||
724 | 733 | bo(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bk, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
725 | 734 | } | |
726 | - | let | |
727 | - | then max( | |
728 | - | else parseIntValue( | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | (( | |
737 | - | } | |
738 | - | ||
739 | - | ||
740 | - | func | |
735 | + | let eW = if ((size(eV) > 0)) | |
736 | + | then max(eV) | |
737 | + | else parseIntValue(eS[0]) | |
738 | + | let eX = valueOrElse(getInteger(this, B), 0) | |
739 | + | let eY = valueOrElse(getInteger(this, ((C + "_") + toString(eX))), 0) | |
740 | + | let eZ = valueOrElse(getInteger(this, ((D + "_") + toString(eX))), 0) | |
741 | + | let fa = (eY + ((eP - eX) * eZ)) | |
742 | + | let fb = valueOrElse(getInteger(this, ((C + "_") + toString(eW))), 0) | |
743 | + | let fc = valueOrElse(getInteger(this, ((D + "_") + toString(eW))), 0) | |
744 | + | let fd = (fb + ((eQ - eW) * fc)) | |
745 | + | ((fa - fd) / aG) | |
746 | + | } | |
747 | + | ||
748 | + | ||
749 | + | func fe () = { | |
741 | 750 | let cn = bJ() | |
742 | 751 | if ((cn == 0)) | |
743 | 752 | then $Tuple2(bF(), bG()) | |
744 | 753 | else { | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | $Tuple2( | |
751 | - | } | |
752 | - | } | |
753 | - | ||
754 | - | ||
755 | - | func | |
756 | - | let | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | toInt( | |
770 | - | } | |
771 | - | ||
772 | - | ||
773 | - | func | |
754 | + | let ff = (cn > 0) | |
755 | + | let fg = dy(ff, ba(cn), false) | |
756 | + | let fh = fg._1 | |
757 | + | let fi = fg._2 | |
758 | + | let fj = fg._3 | |
759 | + | $Tuple2(fi, fj) | |
760 | + | } | |
761 | + | } | |
762 | + | ||
763 | + | ||
764 | + | func fk (fl,bJ,fm,fn) = { | |
765 | + | let fo = toBigInt(fl) | |
766 | + | let fp = toBigInt(bJ) | |
767 | + | let fq = toBigInt(fm) | |
768 | + | let fr = toBigInt(fn) | |
769 | + | let fs = aZ((fo + fp), toBigInt((2 * aK))) | |
770 | + | let ft = aX(fq, fs) | |
771 | + | let fu = (toBigInt(4) * aX(fr, fp)) | |
772 | + | let fv = aY(aX(ft, (fq - fu))) | |
773 | + | let fw = aX(fo, fq) | |
774 | + | let fx = aX(fq, fp) | |
775 | + | let fy = ((-(fv) + fw) + fx) | |
776 | + | let fz = (toBigInt(2) * aX(fq, fp)) | |
777 | + | let fA = aW(fy, fz) | |
778 | + | toInt(fA) | |
779 | + | } | |
780 | + | ||
781 | + | ||
782 | + | func fB (fC,cH,cJ) = { | |
774 | 783 | let cn = bJ() | |
775 | 784 | if ((cn == 0)) | |
776 | 785 | then { | |
777 | - | let cH = bF() | |
778 | - | let cJ = bG() | |
779 | - | let fA = aR(aT(fz, cJ), cH) | |
780 | - | $Tuple3(fA, aK, 0) | |
786 | + | let fD = aR(aT(fC, cJ), cH) | |
787 | + | $Tuple3(fD, aK, 0) | |
781 | 788 | } | |
782 | 789 | else { | |
783 | - | let fc = (cn > 0) | |
784 | - | let fe = dy(fc, ba(cn), false)._1 | |
785 | - | let cH = bF() | |
786 | - | let cJ = bG() | |
787 | - | let fA = fh(cJ, cn, cH, fz) | |
788 | - | let fB = aK | |
789 | - | let eF = ec(cn, fe, cH, fA, cJ, fB, aN)._2 | |
790 | - | $Tuple3(fA, fB, eF) | |
791 | - | } | |
792 | - | } | |
793 | - | ||
794 | - | ||
795 | - | func fC () = { | |
796 | - | let fD = dz() | |
797 | - | let fE = eL() | |
798 | - | let fF = (fE - fD) | |
790 | + | let ff = (cn > 0) | |
791 | + | let fh = dy(ff, ba(cn), false)._1 | |
792 | + | let fD = fk(cJ, cn, cH, fC) | |
793 | + | let fE = aK | |
794 | + | let eI = ef(cn, fh, cH, fD, cJ, fE, aN)._2 | |
795 | + | $Tuple3(fD, fE, eI) | |
796 | + | } | |
797 | + | } | |
798 | + | ||
799 | + | ||
800 | + | func fF () = { | |
801 | + | let fG = dz() | |
802 | + | let fH = eO() | |
803 | + | let fI = (fH - fG) | |
799 | 804 | if (if ((ca() == 0)) | |
800 | 805 | then true | |
801 | 806 | else (cb() == 0)) | |
802 | 807 | then $Tuple2(0, 0) | |
803 | - | else if ((0 > | |
808 | + | else if ((0 > fI)) | |
804 | 809 | then { | |
805 | - | let | |
806 | - | let | |
807 | - | $Tuple2( | |
810 | + | let fJ = aR(aT(fI, bP()), aL) | |
811 | + | let fK = aR(aT(fJ, ca()), cb()) | |
812 | + | $Tuple2(fJ, fK) | |
808 | 813 | } | |
809 | 814 | else { | |
810 | - | let | |
811 | - | let | |
812 | - | $Tuple2( | |
815 | + | let fK = aR(aT(fI, bP()), aL) | |
816 | + | let fJ = aR(aT(fK, cb()), ca()) | |
817 | + | $Tuple2(fJ, fK) | |
813 | 818 | } | |
814 | 819 | } | |
815 | 820 | ||
816 | 821 | ||
817 | - | func | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
822 | + | func fL (fM,fN) = { | |
823 | + | let fO = bD() | |
824 | + | let fP = aT(fO, fN) | |
825 | + | let fQ = if ((fM != "")) | |
821 | 826 | then { | |
822 | - | let | |
823 | - | if (( | |
827 | + | let fR = bA(av(), ai(aC, fM)) | |
828 | + | if ((fR == aD)) | |
824 | 829 | then { | |
825 | - | let | |
826 | - | let | |
827 | - | $Tuple2( | |
830 | + | let fS = bB(av(), ai(aB, fM)) | |
831 | + | let fT = aT(fP, fS) | |
832 | + | $Tuple2(fT, true) | |
828 | 833 | } | |
829 | 834 | else throw("Invalid attached artifact") | |
830 | 835 | } | |
831 | - | else $Tuple2( | |
832 | - | let | |
833 | - | let | |
834 | - | $Tuple2( | |
835 | - | } | |
836 | - | ||
837 | - | ||
838 | - | func | |
839 | - | let | |
840 | - | if (( | |
836 | + | else $Tuple2(fP, false) | |
837 | + | let fT = fQ._1 | |
838 | + | let fU = fQ._2 | |
839 | + | $Tuple2(fT, fU) | |
840 | + | } | |
841 | + | ||
842 | + | ||
843 | + | func fV (cp,aA) = { | |
844 | + | let fW = co(cp)._1 | |
845 | + | if ((fW == 0)) | |
841 | 846 | then true | |
842 | 847 | else (ct(cp) == aA) | |
843 | 848 | } | |
844 | 849 | ||
845 | 850 | ||
846 | - | func | |
847 | - | ||
848 | - | ||
849 | - | func | |
850 | - | ||
851 | - | ||
852 | - | func | |
851 | + | func fX (cp,aA) = (ct(cp) == aA) | |
852 | + | ||
853 | + | ||
854 | + | func fY (fZ,aA,cp) = ((((((ah + "_") + fZ) + "_") + aA) + "_") + cp) | |
855 | + | ||
856 | + | ||
857 | + | func ga (cp) = { | |
853 | 858 | let cv = ct(cp) | |
854 | 859 | if ((cv == toBase58String(ao()))) | |
855 | 860 | then $Tuple2(0, cv) | |
856 | 861 | else { | |
857 | - | let | |
858 | - | let | |
859 | - | $Tuple2( | |
860 | - | } | |
861 | - | } | |
862 | - | ||
863 | - | ||
864 | - | func | |
865 | - | let | |
866 | - | if (( | |
862 | + | let gb = fY(toString(this), cv, cp) | |
863 | + | let gc = valueOrElse(getInteger(aw(), gb), 0) | |
864 | + | $Tuple2(gc, cv) | |
865 | + | } | |
866 | + | } | |
867 | + | ||
868 | + | ||
869 | + | func gd (cp,fM) = { | |
870 | + | let ge = invoke(as(), "computeFeeDiscount", [cp], nil) | |
871 | + | if ((ge == ge)) | |
867 | 872 | then { | |
868 | - | let | |
869 | - | let cr = | |
873 | + | let gf = { | |
874 | + | let cr = ge | |
870 | 875 | if ($isInstanceOf(cr, "Int")) | |
871 | 876 | then { | |
872 | - | let | |
873 | - | | |
877 | + | let gg = cr | |
878 | + | gg | |
874 | 879 | } | |
875 | 880 | else throw("Invalid computeFeeDiscount result") | |
876 | 881 | } | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | $Tuple2( | |
882 | + | let gh = fL(fM, gf) | |
883 | + | let fT = gh._1 | |
884 | + | let fU = gh._2 | |
885 | + | $Tuple2(fT, fU) | |
881 | 886 | } | |
882 | 887 | else throw("Strict value is not equal to itself.") | |
883 | 888 | } | |
884 | 889 | ||
885 | 890 | ||
886 | - | func | |
887 | - | let | |
891 | + | func gi (cg) = { | |
892 | + | let gj = if ((size(cg.payments) > 1)) | |
888 | 893 | then toBase58String(valueOrErrorMessage(cg.payments[1].assetId, "Invalid artifactId")) | |
889 | 894 | else "" | |
890 | - | | |
891 | - | } | |
892 | - | ||
893 | - | ||
894 | - | func | |
895 | - | let | |
896 | - | let | |
897 | - | $Tuple2( | |
898 | - | } | |
899 | - | ||
900 | - | ||
901 | - | func | |
902 | - | ||
903 | - | ||
904 | - | func | |
905 | - | ||
906 | - | ||
907 | - | func | |
908 | - | ||
909 | - | ||
910 | - | func | |
895 | + | gj | |
896 | + | } | |
897 | + | ||
898 | + | ||
899 | + | func gk (gl) = { | |
900 | + | let gm = aT(gl, cd()) | |
901 | + | let gn = (gl - gm) | |
902 | + | $Tuple2(gm, gn) | |
903 | + | } | |
904 | + | ||
905 | + | ||
906 | + | func go (gp,gq,gr,gs,gt,gu,gv,gw,gx,dR,gy,gz) = [IntegerEntry(q, gp), IntegerEntry(r, gq), IntegerEntry(s, gr), IntegerEntry(p, gs), IntegerEntry(o, gt), IntegerEntry(u, gu), IntegerEntry(v, gv), IntegerEntry(t, gw), IntegerEntry(w, gx), IntegerEntry(x, dR), IntegerEntry(y, gy), IntegerEntry(z, gy)] | |
907 | + | ||
908 | + | ||
909 | + | func gA (gB,gC,gD,gE,gF) = [IntegerEntry(H, gB), IntegerEntry(F, gC), IntegerEntry(G, gD), IntegerEntry(I, gE), IntegerEntry(J, gF)] | |
910 | + | ||
911 | + | ||
912 | + | func gG (ak,aA) = [StringEntry(ai(k, ak), aA)] | |
913 | + | ||
914 | + | ||
915 | + | func gH (gI,ak) = if (gI) | |
911 | 916 | then { | |
912 | - | let | |
913 | - | [IntegerEntry(ai(j, ak), ( | |
917 | + | let gJ = cc() | |
918 | + | [IntegerEntry(ai(j, ak), (gJ + 1)), IntegerEntry(e, (gJ + 1))] | |
914 | 919 | } | |
915 | 920 | else nil | |
916 | 921 | ||
917 | 922 | ||
918 | - | func | |
919 | - | ||
920 | - | ||
921 | - | func | |
922 | - | let | |
923 | - | let | |
924 | - | if (( | |
923 | + | func gK (ak,gL,gM,gN,dj) = [IntegerEntry(ai(f, ak), gL), IntegerEntry(ai(g, ak), gM), IntegerEntry(ai(h, ak), gN), IntegerEntry(ai(i, ak), dj)] | |
924 | + | ||
925 | + | ||
926 | + | func gO (gP) = { | |
927 | + | let eP = ((lastBlock.timestamp / 1000) / 60) | |
928 | + | let gQ = valueOrElse(getInteger(this, B), 0) | |
929 | + | if ((gQ > eP)) | |
925 | 930 | then throw("TWAP out-of-order") | |
926 | 931 | else { | |
927 | - | let | |
928 | - | then | |
929 | - | else | |
930 | - | if (( | |
932 | + | let eX = if ((gQ == 0)) | |
933 | + | then eP | |
934 | + | else gQ | |
935 | + | if ((eP > gQ)) | |
931 | 936 | then { | |
932 | - | let | |
933 | - | let | |
934 | - | let | |
935 | - | let | |
936 | - | [IntegerEntry(ai(C, toString( | |
937 | + | let gR = valueOrElse(getInteger(this, ((C + "_") + toString(gQ))), 0) | |
938 | + | let gS = valueOrElse(getInteger(this, ((D + "_") + toString(gQ))), gP) | |
939 | + | let gT = (gR + ((eP - eX) * gS)) | |
940 | + | let eS = bt(br(valueOrElse(getString(this, A), "")), aG, toString(eP)) | |
941 | + | [IntegerEntry(ai(C, toString(eP)), gT), IntegerEntry(ai(D, toString(eP)), gP), IntegerEntry(ai(E, toString(eP)), gQ), IntegerEntry(B, eP), StringEntry(A, bc(eS))] | |
937 | 942 | } | |
938 | 943 | else { | |
939 | - | let | |
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | [IntegerEntry(ai(C, toString( | |
944 | + | let gU = valueOrElse(getInteger(this, ai(E, toString(eP))), 0) | |
945 | + | let gR = valueOrElse(getInteger(this, ai(C, toString(gU))), 0) | |
946 | + | let gS = valueOrElse(getInteger(this, ai(D, toString(gU))), gP) | |
947 | + | let gT = (gR + ((eP - gU) * gS)) | |
948 | + | [IntegerEntry(ai(C, toString(eP)), gT), IntegerEntry(ai(D, toString(eP)), gP)] | |
944 | 949 | } | |
945 | 950 | } | |
946 | 951 | } | |
947 | 952 | ||
948 | 953 | ||
949 | - | func | |
950 | - | ||
951 | - | ||
952 | - | func | |
953 | - | ||
954 | - | ||
955 | - | func | |
954 | + | func gV (cH,cJ) = [IntegerEntry(K, cH), IntegerEntry(L, cJ)] | |
955 | + | ||
956 | + | ||
957 | + | func gW (cI,cK) = [IntegerEntry(M, cI), IntegerEntry(N, cK)] | |
958 | + | ||
959 | + | ||
960 | + | func gX (cH,cJ,gY,gZ,ha,hb,hc,hd) = { | |
956 | 961 | let cI = bH() | |
957 | 962 | let cK = bI() | |
958 | - | if ((( | |
959 | - | then throw(((((("Invalid AMM state data: " + toString( | |
960 | - | else (( | |
961 | - | } | |
962 | - | ||
963 | - | ||
964 | - | func | |
965 | - | ||
966 | - | ||
967 | - | func | |
968 | - | let | |
969 | - | if (( | |
970 | - | then throw(((("Unable to withdraw " + toString( | |
971 | - | else [ScriptTransfer(ak, | |
972 | - | } | |
973 | - | ||
974 | - | ||
975 | - | func | |
963 | + | if (((ha - hb) != gY)) | |
964 | + | then throw(((((("Invalid AMM state data: " + toString(ha)) + " + ") + toString(hb)) + " != ") + toString(gY))) | |
965 | + | else ((gV(cH, cJ) ++ [IntegerEntry(O, gY), IntegerEntry(R, gZ), IntegerEntry(P, ha), IntegerEntry(Q, hb), IntegerEntry(T, hc), IntegerEntry(S, hd)]) ++ gO(aR(aT(cH, cI), aT(cJ, cK)))) | |
966 | + | } | |
967 | + | ||
968 | + | ||
969 | + | func he (ak) = [DeleteEntry(ai(f, ak)), DeleteEntry(ai(g, ak)), DeleteEntry(ai(h, ak)), DeleteEntry(ai(i, ak)), DeleteEntry(ai(k, ak))] | |
970 | + | ||
971 | + | ||
972 | + | func hf (ak,hg) = { | |
973 | + | let hh = assetBalance(this, ao()) | |
974 | + | if ((hg > hh)) | |
975 | + | then throw(((("Unable to withdraw " + toString(hg)) + " from contract balance ") + toString(hh))) | |
976 | + | else [ScriptTransfer(ak, hg, ao())] | |
977 | + | } | |
978 | + | ||
979 | + | ||
980 | + | func hi (cg) = if ((0 > cg)) | |
976 | 981 | then throw("Balance") | |
977 | 982 | else [IntegerEntry(d, cg)] | |
978 | 983 | ||
979 | 984 | ||
980 | - | func | |
981 | - | ||
982 | - | ||
983 | - | func | |
985 | + | func hj (cg) = [ScriptTransfer(aq(), cg, ao())] | |
986 | + | ||
987 | + | ||
988 | + | func hk (hl,cg) = if (hl) | |
984 | 989 | then [Burn(valueOrErrorMessage(cg.payments[1].assetId, "Invalid artifact"), 1)] | |
985 | 990 | else nil | |
986 | 991 | ||
987 | 992 | ||
988 | 993 | @Callable(cg) | |
989 | 994 | func pause () = if ((cg.caller != am())) | |
990 | 995 | then throw("Invalid pause params") | |
991 | 996 | else [BooleanEntry(m, true)] | |
992 | 997 | ||
993 | 998 | ||
994 | 999 | ||
995 | 1000 | @Callable(cg) | |
996 | 1001 | func unpause () = if ((cg.caller != am())) | |
997 | 1002 | then throw("Invalid unpause params") | |
998 | 1003 | else [BooleanEntry(m, false)] | |
999 | 1004 | ||
1000 | 1005 | ||
1001 | 1006 | ||
1002 | 1007 | @Callable(cg) | |
1003 | 1008 | func setCloseOnly () = if ((cg.caller != am())) | |
1004 | 1009 | then throw("Invalid setCloseOnly params") | |
1005 | 1010 | else [BooleanEntry(n, true)] | |
1006 | 1011 | ||
1007 | 1012 | ||
1008 | 1013 | ||
1009 | 1014 | @Callable(cg) | |
1010 | 1015 | func unsetCloseOnly () = if ((cg.caller != am())) | |
1011 | 1016 | then throw("Invalid unsetCloseOnly params") | |
1012 | 1017 | else [BooleanEntry(n, false)] | |
1013 | 1018 | ||
1014 | 1019 | ||
1015 | 1020 | ||
1016 | 1021 | @Callable(cg) | |
1017 | 1022 | func addLiquidity (cC) = if (if ((cg.caller != am())) | |
1018 | 1023 | then true | |
1019 | 1024 | else (0 >= cC)) | |
1020 | 1025 | then throw("Invalid addLiquidity params") | |
1021 | 1026 | else { | |
1022 | 1027 | let cH = bF() | |
1023 | 1028 | let cJ = bG() | |
1024 | 1029 | let cI = bH() | |
1025 | 1030 | let cK = bI() | |
1026 | - | let hj = aR(aT(cH, cI), aT(cJ, cK)) | |
1027 | - | let hk = aR(cC, hj) | |
1028 | - | let hl = (cH + cC) | |
1029 | - | let hm = (cJ + hk) | |
1030 | - | gS(hl, hm) | |
1031 | + | let hm = aR(aT(cH, cI), aT(cJ, cK)) | |
1032 | + | let hn = (cH + cC) | |
1033 | + | let ho = (aR(aT(hn, cI), hm) - cJ) | |
1034 | + | let hp = (cJ + ho) | |
1035 | + | let hq = fB(dz(), hn, hp) | |
1036 | + | let hr = hq._1 | |
1037 | + | let hs = hq._2 | |
1038 | + | let eI = hq._3 | |
1039 | + | let ht = if ((eI != 0)) | |
1040 | + | then { | |
1041 | + | let ht = invoke(ar(), "exchangeFreeAndLocked", [eI], nil) | |
1042 | + | if ((ht == ht)) | |
1043 | + | then nil | |
1044 | + | else throw("Strict value is not equal to itself.") | |
1045 | + | } | |
1046 | + | else nil | |
1047 | + | if ((ht == ht)) | |
1048 | + | then (gV(hn, hp) ++ gW(hr, hs)) | |
1049 | + | else throw("Strict value is not equal to itself.") | |
1031 | 1050 | } | |
1032 | 1051 | ||
1033 | 1052 | ||
1034 | 1053 | ||
1035 | 1054 | @Callable(cg) | |
1036 | 1055 | func removeLiquidity (cC) = if (if ((cg.caller != am())) | |
1037 | 1056 | then true | |
1038 | 1057 | else (0 >= cC)) | |
1039 | 1058 | then throw("Invalid removeLiquidity params") | |
1040 | 1059 | else { | |
1041 | 1060 | let cH = bF() | |
1042 | 1061 | let cJ = bG() | |
1043 | 1062 | let cI = bH() | |
1044 | 1063 | let cK = bI() | |
1045 | - | let | |
1046 | - | let | |
1047 | - | let | |
1048 | - | let | |
1049 | - | | |
1064 | + | let hm = aR(aT(cH, cI), aT(cJ, cK)) | |
1065 | + | let hu = aR(cC, hm) | |
1066 | + | let hn = (cH - cC) | |
1067 | + | let hp = (cJ - hu) | |
1068 | + | gV(hn, hp) | |
1050 | 1069 | } | |
1051 | 1070 | ||
1052 | 1071 | ||
1053 | 1072 | ||
1054 | 1073 | @Callable(cg) | |
1055 | - | func changeSettings ( | |
1074 | + | func changeSettings (gp,gq,gr,gs,gt,gu,gv,gw,gx,dR,gy,gz) = if ((cg.caller != am())) | |
1056 | 1075 | then throw("Invalid changeSettings params") | |
1057 | - | else | |
1058 | - | ||
1059 | - | ||
1060 | - | ||
1061 | - | @Callable(cg) | |
1062 | - | func initialize (cH,cJ,gp | |
1076 | + | else go(gp, gq, gr, gs, gt, gu, gv, gw, gx, dR, gy, gz) | |
1077 | + | ||
1078 | + | ||
1079 | + | ||
1080 | + | @Callable(cg) | |
1081 | + | func initialize (cH,cJ,gs,gp,gq,gr,gt,hv,hw,hx,hy,gu,gv,gw,gx,dR,gy,gz) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= cH)) | |
1063 | 1082 | then true | |
1064 | 1083 | else (0 >= cJ)) | |
1065 | 1084 | then true | |
1085 | + | else (0 >= gs)) | |
1086 | + | then true | |
1066 | 1087 | else (0 >= gp)) | |
1067 | - | then true | |
1068 | - | else (0 >= gm)) | |
1069 | - | then true | |
1070 | - | else (0 >= gn)) | |
1071 | - | then true | |
1072 | - | else (0 >= go)) | |
1073 | 1088 | then true | |
1074 | 1089 | else (0 >= gq)) | |
1075 | 1090 | then true | |
1076 | 1091 | else (0 >= gr)) | |
1077 | 1092 | then true | |
1078 | - | else (0 >= gs)) | |
1079 | - | then true | |
1080 | 1093 | else (0 >= gt)) | |
1081 | 1094 | then true | |
1082 | 1095 | else (0 >= gu)) | |
1083 | 1096 | then true | |
1084 | - | else (0 >= dO)) | |
1085 | - | then true | |
1086 | 1097 | else (0 >= gv)) | |
1087 | - | then true | |
1088 | - | else (gv > aK)) | |
1089 | 1098 | then true | |
1090 | 1099 | else (0 >= gw)) | |
1091 | 1100 | then true | |
1101 | + | else (0 >= gx)) | |
1102 | + | then true | |
1103 | + | else (0 >= dR)) | |
1104 | + | then true | |
1105 | + | else (0 >= gy)) | |
1106 | + | then true | |
1107 | + | else (gy > aK)) | |
1108 | + | then true | |
1109 | + | else (0 >= gz)) | |
1110 | + | then true | |
1092 | 1111 | else cx()) | |
1093 | 1112 | then throw("Invalid initialize parameters") | |
1094 | - | else (((( | |
1095 | - | ||
1096 | - | ||
1097 | - | ||
1098 | - | @Callable(cg) | |
1099 | - | func decreasePosition ( | |
1100 | - | let | |
1101 | - | if (( | |
1113 | + | else ((((gX(cH, cJ, 0, 0, 0, 0, 0, 0) ++ go(gp, gq, gr, gs, gt, gu, gv, gw, gx, dR, gy, gz)) ++ gA((lastBlock.timestamp + gs), 0, 0, 0, 0)) ++ hi(0)) ++ [BooleanEntry(l, true), StringEntry(c, hv), StringEntry(a, hw), StringEntry(b, hx), StringEntry(U, hy)]) | |
1114 | + | ||
1115 | + | ||
1116 | + | ||
1117 | + | @Callable(cg) | |
1118 | + | func decreasePosition (hg,hz,hA) = { | |
1119 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1120 | + | if ((hB == hB)) | |
1102 | 1121 | then { | |
1103 | 1122 | let cp = cf(cg) | |
1104 | - | if (if (if (if (if ((0 >= | |
1123 | + | if (if (if (if (if ((0 >= hg)) | |
1105 | 1124 | then true | |
1106 | 1125 | else !(cx())) | |
1107 | 1126 | then true | |
1108 | - | else !(ch(aR(aK, | |
1127 | + | else !(ch(aR(aK, hz), bE(), true))) | |
1109 | 1128 | then true | |
1110 | 1129 | else !(cw(cp))) | |
1111 | 1130 | then true | |
1112 | 1131 | else cy()) | |
1113 | 1132 | then throw("Invalid decreasePosition parameters") | |
1114 | 1133 | else { | |
1115 | - | let | |
1116 | - | let | |
1117 | - | let | |
1118 | - | let | |
1119 | - | let | |
1120 | - | let | |
1134 | + | let hC = co(cp) | |
1135 | + | let fW = hC._1 | |
1136 | + | let hD = hC._2 | |
1137 | + | let hE = hC._3 | |
1138 | + | let hF = hC._4 | |
1139 | + | let hG = if ((fW > 0)) | |
1121 | 1140 | then aF | |
1122 | 1141 | else aE | |
1123 | - | let | |
1124 | - | let | |
1125 | - | let | |
1126 | - | let | |
1127 | - | let | |
1128 | - | let | |
1142 | + | let hH = (hG == aE) | |
1143 | + | let hI = aT(hg, hz) | |
1144 | + | let hJ = ei(cp, aN) | |
1145 | + | let hK = hJ._1 | |
1146 | + | let eh = hJ._2 | |
1147 | + | let hL = if ((hK > hI)) | |
1129 | 1148 | then { | |
1130 | - | let | |
1131 | - | let | |
1132 | - | let cQ = | |
1133 | - | let cR = | |
1134 | - | let | |
1135 | - | let | |
1136 | - | if (if (( | |
1137 | - | then ( | |
1149 | + | let hM = cP(hH, hI) | |
1150 | + | let eC = hM._1 | |
1151 | + | let cQ = hM._2 | |
1152 | + | let cR = hM._3 | |
1153 | + | let eK = hM._4 | |
1154 | + | let hN = ba(eC) | |
1155 | + | if (if ((hA != 0)) | |
1156 | + | then (hA > hN) | |
1138 | 1157 | else false) | |
1139 | - | then throw(((("Too little base asset exchanged, got " + toString( | |
1158 | + | then throw(((("Too little base asset exchanged, got " + toString(hN)) + " expected ") + toString(hA))) | |
1140 | 1159 | else { | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let dm = | |
1144 | - | let dn = | |
1145 | - | let di = | |
1146 | - | let | |
1147 | - | let | |
1148 | - | let | |
1149 | - | then (( | |
1150 | - | else (( | |
1151 | - | let | |
1152 | - | $Tuple12( | |
1153 | - | then ba( | |
1154 | - | else 0)), (ca() - (if ((0 > | |
1155 | - | then ba( | |
1156 | - | else 0)), (bM() - (if (( | |
1157 | - | then | |
1158 | - | else 0)), (bL() - (if ((0 > | |
1159 | - | then | |
1160 | + | let eH = aR(aT(eh, hN), ba(fW)) | |
1161 | + | let hO = dd(fW, hD, hF, eH) | |
1162 | + | let dm = hO._1 | |
1163 | + | let dn = hO._2 | |
1164 | + | let di = hO._3 | |
1165 | + | let eD = hI | |
1166 | + | let hP = (eh - eH) | |
1167 | + | let hQ = if ((fW > 0)) | |
1168 | + | then ((hK - eD) - hP) | |
1169 | + | else ((hP + hK) - eD) | |
1170 | + | let hR = (fW + eC) | |
1171 | + | $Tuple12(hR, dm, ba(hQ), cm(hR), cR, cQ, eK, (bK() - hI), (cb() - (if ((hR > 0)) | |
1172 | + | then ba(eC) | |
1173 | + | else 0)), (ca() - (if ((0 > hR)) | |
1174 | + | then ba(eC) | |
1175 | + | else 0)), (bM() - (if ((hR > 0)) | |
1176 | + | then hI | |
1177 | + | else 0)), (bL() - (if ((0 > hR)) | |
1178 | + | then hI | |
1160 | 1179 | else 0))) | |
1161 | 1180 | } | |
1162 | 1181 | } | |
1163 | 1182 | else throw("Close position first") | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let cR = | |
1169 | - | let cQ = | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | if (( | |
1178 | - | then ( | |
1183 | + | let hR = hL._1 | |
1184 | + | let hS = hL._2 | |
1185 | + | let hT = hL._3 | |
1186 | + | let hU = hL._4 | |
1187 | + | let cR = hL._5 | |
1188 | + | let cQ = hL._6 | |
1189 | + | let eK = hL._7 | |
1190 | + | let eN = hL._8 | |
1191 | + | let eL = hL._9 | |
1192 | + | let eM = hL._10 | |
1193 | + | let hV = hL._11 | |
1194 | + | let hW = hL._12 | |
1195 | + | let hX = invoke(as(), "notifyNotional", [cp, hT], nil) | |
1196 | + | if ((hX == hX)) | |
1197 | + | then (gK(cp, hR, hS, hT, hU) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) | |
1179 | 1198 | else throw("Strict value is not equal to itself.") | |
1180 | 1199 | } | |
1181 | 1200 | } | |
1182 | 1201 | else throw("Strict value is not equal to itself.") | |
1183 | 1202 | } | |
1184 | 1203 | ||
1185 | 1204 | ||
1186 | 1205 | ||
1187 | 1206 | @Callable(cg) | |
1188 | - | func increasePosition (hz, | |
1189 | - | let | |
1190 | - | if (( | |
1207 | + | func increasePosition (hG,hz,hA,hY) = { | |
1208 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1209 | + | if ((hB == hB)) | |
1191 | 1210 | then { | |
1192 | 1211 | let cp = cf(cg) | |
1193 | - | let | |
1212 | + | let hZ = cg.payments[0].amount | |
1194 | 1213 | let aA = cg.payments[0].assetId | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | if (if (if (if (if (if (if (if (if (( | |
1199 | - | then ( | |
1214 | + | let ia = toBase58String(value(aA)) | |
1215 | + | let ib = (aA == ao()) | |
1216 | + | let ic = az(ia) | |
1217 | + | if (if (if (if (if (if (if (if (if ((hG != aE)) | |
1218 | + | then (hG != aF) | |
1200 | 1219 | else false) | |
1201 | 1220 | then true | |
1202 | - | else (0 >= | |
1221 | + | else (0 >= hZ)) | |
1203 | 1222 | then true | |
1204 | 1223 | else !(cx())) | |
1205 | 1224 | then true | |
1206 | - | else if (!( | |
1207 | - | then !( | |
1225 | + | else if (!(ib)) | |
1226 | + | then !(ic) | |
1208 | 1227 | else false) | |
1209 | 1228 | then true | |
1210 | - | else !( | |
1211 | - | then true | |
1212 | - | else !(ch(aR(aK, | |
1229 | + | else !(fV(cp, ia))) | |
1230 | + | then true | |
1231 | + | else !(ch(aR(aK, hz), bE(), true))) | |
1213 | 1232 | then true | |
1214 | 1233 | else cy()) | |
1215 | 1234 | then true | |
1216 | 1235 | else cz()) | |
1217 | 1236 | then throw("Invalid increasePosition parameters") | |
1218 | 1237 | else { | |
1219 | - | let | |
1220 | - | let | |
1221 | - | let | |
1222 | - | let | |
1223 | - | let | |
1224 | - | let | |
1238 | + | let id = gd(cp, gi(cg)) | |
1239 | + | let fT = id._1 | |
1240 | + | let fU = id._2 | |
1241 | + | let ie = aT(hZ, fT) | |
1242 | + | let hg = (hZ - ie) | |
1243 | + | let if = if (ic) | |
1225 | 1244 | then { | |
1226 | - | let | |
1227 | - | if (( | |
1245 | + | let ig = invoke(aw(), "borrow", [cp], [AttachedPayment(aA, hg)]) | |
1246 | + | if ((ig == ig)) | |
1228 | 1247 | then { | |
1229 | - | let | |
1230 | - | if (( | |
1248 | + | let ih = assetBalance(this, ao()) | |
1249 | + | if ((ih == ih)) | |
1231 | 1250 | then { | |
1232 | - | let | |
1233 | - | if (( | |
1251 | + | let ii = invoke(ax(), "swap", [toBase58String(ao()), 0], [AttachedPayment(aA, ie)]) | |
1252 | + | if ((ii == ii)) | |
1234 | 1253 | then { | |
1235 | - | let | |
1236 | - | if (( | |
1254 | + | let ij = assetBalance(this, ao()) | |
1255 | + | if ((ij == ij)) | |
1237 | 1256 | then { | |
1238 | - | let | |
1239 | - | if (( | |
1240 | - | then | |
1257 | + | let ik = (ij - ih) | |
1258 | + | if ((ik == ik)) | |
1259 | + | then ik | |
1241 | 1260 | else throw("Strict value is not equal to itself.") | |
1242 | 1261 | } | |
1243 | 1262 | else throw("Strict value is not equal to itself.") | |
1244 | 1263 | } | |
1245 | 1264 | else throw("Strict value is not equal to itself.") | |
1246 | 1265 | } | |
1247 | 1266 | else throw("Strict value is not equal to itself.") | |
1248 | 1267 | } | |
1249 | 1268 | else throw("Strict value is not equal to itself.") | |
1250 | 1269 | } | |
1251 | - | else | |
1252 | - | if (( | |
1270 | + | else ie | |
1271 | + | if ((if == if)) | |
1253 | 1272 | then { | |
1254 | - | let | |
1255 | - | if (( | |
1273 | + | let il = invoke(au(), "acceptPaymentWithLink", [cp, hY], [AttachedPayment(ao(), if)]) | |
1274 | + | if ((il == il)) | |
1256 | 1275 | then { | |
1257 | - | let | |
1258 | - | let cr = | |
1276 | + | let im = { | |
1277 | + | let cr = il | |
1259 | 1278 | if ($isInstanceOf(cr, "Int")) | |
1260 | 1279 | then { | |
1261 | - | let | |
1262 | - | | |
1280 | + | let gg = cr | |
1281 | + | gg | |
1263 | 1282 | } | |
1264 | 1283 | else throw("Invalid referrerFee") | |
1265 | 1284 | } | |
1266 | - | let | |
1267 | - | let | |
1268 | - | let | |
1269 | - | let | |
1270 | - | let | |
1271 | - | let | |
1272 | - | let | |
1273 | - | let | |
1274 | - | then ( | |
1275 | - | else ( | |
1276 | - | let | |
1277 | - | then | |
1285 | + | let in = (if - im) | |
1286 | + | let io = co(cp) | |
1287 | + | let fW = io._1 | |
1288 | + | let hD = io._2 | |
1289 | + | let hE = io._3 | |
1290 | + | let hF = io._4 | |
1291 | + | let gI = (fW == 0) | |
1292 | + | let ip = if ((fW > 0)) | |
1293 | + | then (hG == aE) | |
1294 | + | else (hG == aF) | |
1295 | + | let iq = if (!(gI)) | |
1296 | + | then ip | |
1278 | 1297 | else false | |
1279 | - | let | |
1280 | - | let | |
1298 | + | let hH = (hG == aE) | |
1299 | + | let ir = if (if (gI) | |
1281 | 1300 | then true | |
1282 | - | else | |
1301 | + | else iq) | |
1283 | 1302 | then { | |
1284 | - | let | |
1285 | - | let | |
1286 | - | let cT = | |
1287 | - | let cQ = | |
1288 | - | let cR = | |
1289 | - | let | |
1290 | - | if (if (( | |
1291 | - | then ( | |
1303 | + | let hI = aT(hg, hz) | |
1304 | + | let is = cP(hH, hI) | |
1305 | + | let cT = is._1 | |
1306 | + | let cQ = is._2 | |
1307 | + | let cR = is._3 | |
1308 | + | let eK = is._4 | |
1309 | + | if (if ((hA != 0)) | |
1310 | + | then (hA > ba(cT)) | |
1292 | 1311 | else false) | |
1293 | - | then throw(((("Limit error: " + toString(ba(cT))) + " < ") + toString( | |
1312 | + | then throw(((("Limit error: " + toString(ba(cT))) + " < ") + toString(hA))) | |
1294 | 1313 | else { | |
1295 | - | let | |
1296 | - | let | |
1297 | - | then | |
1314 | + | let hR = (fW + cT) | |
1315 | + | let hV = (bM() + (if ((hR > 0)) | |
1316 | + | then hI | |
1298 | 1317 | else 0)) | |
1299 | - | let | |
1300 | - | then | |
1318 | + | let hW = (bL() + (if ((0 > hR)) | |
1319 | + | then hI | |
1301 | 1320 | else 0)) | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let dm = | |
1305 | - | let | |
1306 | - | let | |
1307 | - | if (!( | |
1321 | + | let it = aR(hI, hz) | |
1322 | + | let iu = dd(fW, hD, hF, it) | |
1323 | + | let dm = iu._1 | |
1324 | + | let ec = iu._2 | |
1325 | + | let ed = iu._3 | |
1326 | + | if (!(dK(cQ, cR))) | |
1308 | 1327 | then throw("Over max spread limit") | |
1309 | - | else if (!( | |
1328 | + | else if (!(dO(hV, hW))) | |
1310 | 1329 | then throw("Over max open notional") | |
1311 | - | else $Tuple12( | |
1330 | + | else $Tuple12(hR, dm, (hE + hI), cm(hR), cR, cQ, eK, (bK() + hI), (cb() + (if ((hR > 0)) | |
1312 | 1331 | then ba(cT) | |
1313 | - | else 0)), (ca() + (if ((0 > | |
1332 | + | else 0)), (ca() + (if ((0 > hR)) | |
1314 | 1333 | then ba(cT) | |
1315 | - | else 0)), | |
1334 | + | else 0)), hV, hW) | |
1316 | 1335 | } | |
1317 | 1336 | } | |
1318 | 1337 | else { | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | if (( | |
1338 | + | let hI = aT(hg, hz) | |
1339 | + | let iv = ei(toString(cg.caller), aN) | |
1340 | + | let hK = iv._1 | |
1341 | + | let eh = iv._2 | |
1342 | + | if ((hK > hI)) | |
1324 | 1343 | then throw("Use decreasePosition to decrease position size") | |
1325 | 1344 | else throw("Close position first") | |
1326 | 1345 | } | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let cR = | |
1332 | - | let cQ = | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1338 | - | let | |
1339 | - | let | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1346 | + | let hR = ir._1 | |
1347 | + | let hS = ir._2 | |
1348 | + | let hT = ir._3 | |
1349 | + | let hU = ir._4 | |
1350 | + | let cR = ir._5 | |
1351 | + | let cQ = ir._6 | |
1352 | + | let eK = ir._7 | |
1353 | + | let eN = ir._8 | |
1354 | + | let eL = ir._9 | |
1355 | + | let eM = ir._10 | |
1356 | + | let hV = ir._11 | |
1357 | + | let hW = ir._12 | |
1358 | + | let iw = gk(in) | |
1359 | + | let gm = iw._1 | |
1360 | + | let gn = iw._2 | |
1361 | + | let ix = if (ib) | |
1343 | 1362 | then { | |
1344 | - | let | |
1345 | - | if (( | |
1363 | + | let ix = invoke(ar(), "addLocked", [false], [AttachedPayment(ao(), hg)]) | |
1364 | + | if ((ix == ix)) | |
1346 | 1365 | then nil | |
1347 | 1366 | else throw("Strict value is not equal to itself.") | |
1348 | 1367 | } | |
1349 | 1368 | else nil | |
1350 | - | if (( | |
1369 | + | if ((ix == ix)) | |
1351 | 1370 | then { | |
1352 | - | let | |
1353 | - | if (( | |
1371 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1372 | + | if ((iy == iy)) | |
1354 | 1373 | then { | |
1355 | - | let | |
1356 | - | if (( | |
1374 | + | let iz = invoke(as(), "notifyFees", [cp, in], nil) | |
1375 | + | if ((iz == iz)) | |
1357 | 1376 | then { | |
1358 | - | let | |
1359 | - | if (( | |
1360 | - | then (((((( | |
1377 | + | let hX = invoke(as(), "notifyNotional", [cp, hT], nil) | |
1378 | + | if ((hX == hX)) | |
1379 | + | then ((((((gK(cp, hR, hS, hT, hU) ++ gH(gI, cp)) ++ gG(cp, ia)) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) ++ hj(gm)) ++ hi((bC() + hg))) ++ hk(fU, cg)) | |
1361 | 1380 | else throw("Strict value is not equal to itself.") | |
1362 | 1381 | } | |
1363 | 1382 | else throw("Strict value is not equal to itself.") | |
1364 | 1383 | } | |
1365 | 1384 | else throw("Strict value is not equal to itself.") | |
1366 | 1385 | } | |
1367 | 1386 | else throw("Strict value is not equal to itself.") | |
1368 | 1387 | } | |
1369 | 1388 | else throw("Strict value is not equal to itself.") | |
1370 | 1389 | } | |
1371 | 1390 | else throw("Strict value is not equal to itself.") | |
1372 | 1391 | } | |
1373 | 1392 | } | |
1374 | 1393 | else throw("Strict value is not equal to itself.") | |
1375 | 1394 | } | |
1376 | 1395 | ||
1377 | 1396 | ||
1378 | 1397 | ||
1379 | 1398 | @Callable(cg) | |
1380 | 1399 | func addMargin () = { | |
1381 | - | let | |
1382 | - | if (( | |
1400 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1401 | + | if ((hB == hB)) | |
1383 | 1402 | then { | |
1384 | 1403 | let cp = toString(cg.caller) | |
1385 | - | let | |
1404 | + | let hZ = cg.payments[0].amount | |
1386 | 1405 | let aA = cg.payments[0].assetId | |
1387 | - | let | |
1388 | - | let | |
1389 | - | let | |
1390 | - | if (if (if (if (if (if (if (!( | |
1391 | - | then !( | |
1406 | + | let ia = toBase58String(value(aA)) | |
1407 | + | let ib = (aA == ao()) | |
1408 | + | let ic = az(ia) | |
1409 | + | if (if (if (if (if (if (if (!(ib)) | |
1410 | + | then !(ic) | |
1392 | 1411 | else false) | |
1393 | 1412 | then true | |
1394 | 1413 | else !(cw(toString(cg.caller)))) | |
1395 | 1414 | then true | |
1396 | - | else !( | |
1415 | + | else !(fX(cp, ia))) | |
1397 | 1416 | then true | |
1398 | 1417 | else !(cx())) | |
1399 | 1418 | then true | |
1400 | 1419 | else cy()) | |
1401 | 1420 | then true | |
1402 | 1421 | else cz()) | |
1403 | 1422 | then throw("Invalid addMargin parameters") | |
1404 | 1423 | else { | |
1405 | - | let | |
1406 | - | let | |
1407 | - | let | |
1408 | - | let | |
1409 | - | let | |
1410 | - | let | |
1424 | + | let iA = gd(cp, gi(cg)) | |
1425 | + | let fT = iA._1 | |
1426 | + | let fU = iA._2 | |
1427 | + | let ie = aT(hZ, fT) | |
1428 | + | let hg = (hZ - ie) | |
1429 | + | let if = if (ic) | |
1411 | 1430 | then { | |
1412 | - | let | |
1413 | - | if (( | |
1431 | + | let ig = invoke(aw(), "borrow", [cp], [AttachedPayment(aA, hg)]) | |
1432 | + | if ((ig == ig)) | |
1414 | 1433 | then { | |
1415 | - | let | |
1416 | - | if (( | |
1434 | + | let ih = assetBalance(this, ao()) | |
1435 | + | if ((ih == ih)) | |
1417 | 1436 | then { | |
1418 | - | let | |
1419 | - | if (( | |
1437 | + | let ii = invoke(ax(), "swap", [toBase58String(ao()), 0], [AttachedPayment(aA, ie)]) | |
1438 | + | if ((ii == ii)) | |
1420 | 1439 | then { | |
1421 | - | let | |
1422 | - | if (( | |
1440 | + | let ij = assetBalance(this, ao()) | |
1441 | + | if ((ij == ij)) | |
1423 | 1442 | then { | |
1424 | - | let | |
1425 | - | if (( | |
1426 | - | then | |
1443 | + | let ik = (ij - ih) | |
1444 | + | if ((ik == ik)) | |
1445 | + | then ik | |
1427 | 1446 | else throw("Strict value is not equal to itself.") | |
1428 | 1447 | } | |
1429 | 1448 | else throw("Strict value is not equal to itself.") | |
1430 | 1449 | } | |
1431 | 1450 | else throw("Strict value is not equal to itself.") | |
1432 | 1451 | } | |
1433 | 1452 | else throw("Strict value is not equal to itself.") | |
1434 | 1453 | } | |
1435 | 1454 | else throw("Strict value is not equal to itself.") | |
1436 | 1455 | } | |
1437 | - | else | |
1438 | - | if (( | |
1456 | + | else ie | |
1457 | + | if ((if == if)) | |
1439 | 1458 | then { | |
1440 | - | let | |
1441 | - | if (( | |
1459 | + | let il = invoke(au(), "acceptPayment", [cp], [AttachedPayment(ao(), if)]) | |
1460 | + | if ((il == il)) | |
1442 | 1461 | then { | |
1443 | - | let | |
1444 | - | let cr = | |
1462 | + | let im = { | |
1463 | + | let cr = il | |
1445 | 1464 | if ($isInstanceOf(cr, "Int")) | |
1446 | 1465 | then { | |
1447 | - | let | |
1448 | - | | |
1466 | + | let gg = cr | |
1467 | + | gg | |
1449 | 1468 | } | |
1450 | 1469 | else throw("Invalid referrerFee") | |
1451 | 1470 | } | |
1452 | - | let | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | let | |
1458 | - | let | |
1459 | - | let | |
1460 | - | let | |
1461 | - | let | |
1471 | + | let in = (if - im) | |
1472 | + | let iB = co(cp) | |
1473 | + | let fW = iB._1 | |
1474 | + | let hD = iB._2 | |
1475 | + | let hE = iB._3 | |
1476 | + | let hF = iB._4 | |
1477 | + | let iC = gk(in) | |
1478 | + | let gm = iC._1 | |
1479 | + | let gn = iC._2 | |
1480 | + | let ix = if (ib) | |
1462 | 1481 | then { | |
1463 | - | let | |
1464 | - | if (( | |
1482 | + | let ix = invoke(ar(), "addLocked", [false], [AttachedPayment(ao(), hg)]) | |
1483 | + | if ((ix == ix)) | |
1465 | 1484 | then nil | |
1466 | 1485 | else throw("Strict value is not equal to itself.") | |
1467 | 1486 | } | |
1468 | 1487 | else nil | |
1469 | - | if (( | |
1488 | + | if ((ix == ix)) | |
1470 | 1489 | then { | |
1471 | - | let | |
1472 | - | if (( | |
1490 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1491 | + | if ((iy == iy)) | |
1473 | 1492 | then { | |
1474 | - | let | |
1475 | - | if (( | |
1476 | - | then ((( | |
1493 | + | let iz = invoke(as(), "notifyFees", [cp, in], nil) | |
1494 | + | if ((iz == iz)) | |
1495 | + | then (((gK(cp, fW, (hD + hg), hE, hF) ++ hj(gm)) ++ hi((bC() + hg))) ++ hk(fU, cg)) | |
1477 | 1496 | else throw("Strict value is not equal to itself.") | |
1478 | 1497 | } | |
1479 | 1498 | else throw("Strict value is not equal to itself.") | |
1480 | 1499 | } | |
1481 | 1500 | else throw("Strict value is not equal to itself.") | |
1482 | 1501 | } | |
1483 | 1502 | else throw("Strict value is not equal to itself.") | |
1484 | 1503 | } | |
1485 | 1504 | else throw("Strict value is not equal to itself.") | |
1486 | 1505 | } | |
1487 | 1506 | } | |
1488 | 1507 | else throw("Strict value is not equal to itself.") | |
1489 | 1508 | } | |
1490 | 1509 | ||
1491 | 1510 | ||
1492 | 1511 | ||
1493 | 1512 | @Callable(cg) | |
1494 | - | func removeMargin ( | |
1495 | - | let | |
1496 | - | if (( | |
1513 | + | func removeMargin (hg) = { | |
1514 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1515 | + | if ((hB == hB)) | |
1497 | 1516 | then { | |
1498 | 1517 | let cp = toString(cg.caller) | |
1499 | - | if (if (if (if ((0 >= | |
1518 | + | if (if (if (if ((0 >= hg)) | |
1500 | 1519 | then true | |
1501 | 1520 | else !(cw(cp))) | |
1502 | 1521 | then true | |
1503 | 1522 | else !(cx())) | |
1504 | 1523 | then true | |
1505 | 1524 | else cy()) | |
1506 | 1525 | then throw("Invalid removeMargin parameters") | |
1507 | 1526 | else { | |
1508 | - | let | |
1509 | - | let | |
1510 | - | let | |
1511 | - | let | |
1512 | - | let | |
1513 | - | let | |
1514 | - | let | |
1515 | - | let dm = | |
1516 | - | let dn = | |
1527 | + | let iD = co(cp) | |
1528 | + | let fW = iD._1 | |
1529 | + | let hD = iD._2 | |
1530 | + | let hE = iD._3 | |
1531 | + | let hF = iD._4 | |
1532 | + | let iE = -(hg) | |
1533 | + | let iF = dd(fW, hD, hF, iE) | |
1534 | + | let dm = iF._1 | |
1535 | + | let dn = iF._2 | |
1517 | 1536 | if ((dn != 0)) | |
1518 | 1537 | then throw("Invalid removed margin amount") | |
1519 | 1538 | else { | |
1520 | - | let | |
1521 | - | if (!(ch( | |
1522 | - | then throw(((("Too much margin removed: " + toString( | |
1539 | + | let iG = en(dm, dn, hE) | |
1540 | + | if (!(ch(iG, bE(), true))) | |
1541 | + | then throw(((("Too much margin removed: " + toString(iG)) + " < ") + toString(bE()))) | |
1523 | 1542 | else { | |
1524 | - | let | |
1525 | - | let | |
1526 | - | let | |
1527 | - | let | |
1528 | - | let | |
1529 | - | then | |
1530 | - | else | |
1531 | - | let | |
1543 | + | let iH = toBase58String(ao()) | |
1544 | + | let iI = ga(cp) | |
1545 | + | let iJ = iI._1 | |
1546 | + | let iK = iI._2 | |
1547 | + | let iL = if ((hg > iJ)) | |
1548 | + | then iJ | |
1549 | + | else hg | |
1550 | + | let iM = if ((iJ > hg)) | |
1532 | 1551 | then 0 | |
1533 | - | else ( | |
1534 | - | let | |
1535 | - | let | |
1552 | + | else (hg - iJ) | |
1553 | + | let iN = (iJ - iL) | |
1554 | + | let iO = if ((iN > 0)) | |
1536 | 1555 | then nil | |
1537 | - | else | |
1538 | - | let | |
1539 | - | then throw(((((("toRepay=" + toString( | |
1556 | + | else gG(cp, iH) | |
1557 | + | let iP = if (((iL + iM) != hg)) | |
1558 | + | then throw(((((("toRepay=" + toString(iL)) + " + toWithdraw=") + toString(iM)) + " != ") + toString(hg))) | |
1540 | 1559 | else nil | |
1541 | - | if (( | |
1560 | + | if ((iP == iP)) | |
1542 | 1561 | then { | |
1543 | - | let | |
1562 | + | let iQ = if ((iM > 0)) | |
1544 | 1563 | then { | |
1545 | - | let | |
1546 | - | if (( | |
1564 | + | let iQ = invoke(ar(), "withdrawLocked", [iM], nil) | |
1565 | + | if ((iQ == iQ)) | |
1547 | 1566 | then nil | |
1548 | 1567 | else throw("Strict value is not equal to itself.") | |
1549 | 1568 | } | |
1550 | 1569 | else nil | |
1551 | - | if (( | |
1570 | + | if ((iQ == iQ)) | |
1552 | 1571 | then { | |
1553 | - | let | |
1572 | + | let iR = if ((iL > 0)) | |
1554 | 1573 | then { | |
1555 | - | let | |
1556 | - | if (( | |
1557 | - | then [ScriptTransfer(cg.caller, | |
1574 | + | let iS = invoke(aw(), "repay", [cp, iL, iK], nil) | |
1575 | + | if ((iS == iS)) | |
1576 | + | then [ScriptTransfer(cg.caller, iL, fromBase58String(iK))] | |
1558 | 1577 | else throw("Strict value is not equal to itself.") | |
1559 | 1578 | } | |
1560 | 1579 | else nil | |
1561 | - | if (( | |
1562 | - | then (((( | |
1563 | - | then | |
1564 | - | else nil)) ++ | |
1580 | + | if ((iR == iR)) | |
1581 | + | then ((((gK(cp, fW, dm, hE, cm(fW)) ++ (if ((iM > 0)) | |
1582 | + | then hf(cg.caller, iM) | |
1583 | + | else nil)) ++ hi((bC() - hg))) ++ iO) ++ iR) | |
1565 | 1584 | else throw("Strict value is not equal to itself.") | |
1566 | 1585 | } | |
1567 | 1586 | else throw("Strict value is not equal to itself.") | |
1568 | 1587 | } | |
1569 | 1588 | else throw("Strict value is not equal to itself.") | |
1570 | 1589 | } | |
1571 | 1590 | } | |
1572 | 1591 | } | |
1573 | 1592 | } | |
1574 | 1593 | else throw("Strict value is not equal to itself.") | |
1575 | 1594 | } | |
1576 | 1595 | ||
1577 | 1596 | ||
1578 | 1597 | ||
1579 | 1598 | @Callable(cg) | |
1580 | - | func closePosition ( | |
1581 | - | let | |
1582 | - | if (( | |
1599 | + | func closePosition (gL,iT) = { | |
1600 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1601 | + | if ((hB == hB)) | |
1583 | 1602 | then { | |
1584 | 1603 | let cp = cf(cg) | |
1585 | - | let | |
1604 | + | let iU = valueOrErrorMessage(addressFromString(cp), "Invalid caller") | |
1586 | 1605 | if (if (if (if (if (!(cw(cp))) | |
1587 | 1606 | then true | |
1588 | 1607 | else !(cx())) | |
1589 | 1608 | then true | |
1590 | 1609 | else cy()) | |
1591 | 1610 | then true | |
1592 | - | else (0 >= | |
1593 | - | then true | |
1594 | - | else (0 > | |
1611 | + | else (0 >= gL)) | |
1612 | + | then true | |
1613 | + | else (0 > iT)) | |
1595 | 1614 | then throw("Invalid closePosition parameters") | |
1596 | 1615 | else { | |
1597 | - | let | |
1598 | - | let | |
1599 | - | let | |
1600 | - | let | |
1601 | - | let | |
1602 | - | let | |
1616 | + | let iV = co(cp) | |
1617 | + | let fW = iV._1 | |
1618 | + | let hD = iV._2 | |
1619 | + | let hE = iV._3 | |
1620 | + | let hF = iV._4 | |
1621 | + | let iW = if ((ba(fW) > gL)) | |
1603 | 1622 | then { | |
1604 | - | let | |
1623 | + | let hG = if ((fW > 0)) | |
1605 | 1624 | then aF | |
1606 | 1625 | else aE | |
1607 | - | let | |
1608 | - | let | |
1609 | - | let | |
1610 | - | let cQ = | |
1611 | - | let cR = | |
1612 | - | let | |
1613 | - | let | |
1614 | - | then -( | |
1615 | - | else | |
1616 | - | let | |
1617 | - | let | |
1618 | - | let | |
1619 | - | let | |
1620 | - | let | |
1621 | - | let | |
1622 | - | let | |
1623 | - | let dm = | |
1624 | - | let | |
1625 | - | let di = | |
1626 | - | let | |
1627 | - | let | |
1628 | - | then (( | |
1629 | - | else (( | |
1630 | - | let | |
1631 | - | let | |
1632 | - | let | |
1633 | - | let | |
1634 | - | let | |
1635 | - | if (if (( | |
1636 | - | then ( | |
1626 | + | let hH = (hG == aE) | |
1627 | + | let iX = dy((fW > 0), gL, true) | |
1628 | + | let eD = iX._1 | |
1629 | + | let cQ = iX._2 | |
1630 | + | let cR = iX._3 | |
1631 | + | let eK = iX._4 | |
1632 | + | let eC = if ((fW > 0)) | |
1633 | + | then -(gL) | |
1634 | + | else gL | |
1635 | + | let iY = ei(cp, aN) | |
1636 | + | let hK = iY._1 | |
1637 | + | let eh = iY._2 | |
1638 | + | let iZ = er(cp, aN) | |
1639 | + | let ja = aR(ba(eC), ba(fW)) | |
1640 | + | let eH = aT(eh, ja) | |
1641 | + | let jb = dd(fW, hD, hF, eH) | |
1642 | + | let dm = jb._1 | |
1643 | + | let jc = jb._2 | |
1644 | + | let di = jb._3 | |
1645 | + | let hP = (eh - eH) | |
1646 | + | let hQ = if ((fW > 0)) | |
1647 | + | then ((hK - eD) - hP) | |
1648 | + | else ((hP + hK) - eD) | |
1649 | + | let hT = ba(hQ) | |
1650 | + | let jd = aT(hT, iZ) | |
1651 | + | let hR = (fW + eC) | |
1652 | + | let je = cm(hR) | |
1653 | + | let eN = (bK() - eD) | |
1654 | + | if (if ((iT != 0)) | |
1655 | + | then (iT > eD) | |
1637 | 1656 | else false) | |
1638 | - | then throw(((("Limit error: " + toString( | |
1639 | - | else $Tuple15( | |
1640 | - | then ba( | |
1641 | - | else 0)), (ca() - (if ((0 > | |
1642 | - | then ba( | |
1643 | - | else 0)), (bM() - (if (( | |
1644 | - | then | |
1645 | - | else 0)), (bL() - (if ((0 > | |
1646 | - | then | |
1657 | + | then throw(((("Limit error: " + toString(eD)) + " < ") + toString(iT))) | |
1658 | + | else $Tuple15(hR, jd, hT, je, jc, eH, (ba((dm - jd)) + eH), cQ, cR, eK, eN, (cb() - (if ((hR > 0)) | |
1659 | + | then ba(eC) | |
1660 | + | else 0)), (ca() - (if ((0 > hR)) | |
1661 | + | then ba(eC) | |
1662 | + | else 0)), (bM() - (if ((hR > 0)) | |
1663 | + | then eD | |
1664 | + | else 0)), (bL() - (if ((0 > hR)) | |
1665 | + | then eD | |
1647 | 1666 | else 0))) | |
1648 | 1667 | } | |
1649 | - | else if (( | |
1668 | + | else if ((gL > ba(fW))) | |
1650 | 1669 | then throw("Invalid closePosition parameters") | |
1651 | 1670 | else { | |
1652 | - | let | |
1653 | - | let | |
1654 | - | let | |
1655 | - | let | |
1656 | - | let | |
1657 | - | let cQ = | |
1658 | - | let cR = | |
1659 | - | let | |
1660 | - | let | |
1661 | - | let | |
1662 | - | let | |
1663 | - | let | |
1664 | - | let | |
1665 | - | let | |
1666 | - | if (if (( | |
1667 | - | then ( | |
1671 | + | let jf = eE(cp, true) | |
1672 | + | let eD = jf._1 | |
1673 | + | let jc = jf._2 | |
1674 | + | let eH = jf._3 | |
1675 | + | let eI = jf._4 | |
1676 | + | let cQ = jf._5 | |
1677 | + | let cR = jf._6 | |
1678 | + | let eK = jf._7 | |
1679 | + | let eN = jf._8 | |
1680 | + | let ed = jf._9 | |
1681 | + | let eL = jf._10 | |
1682 | + | let eM = jf._11 | |
1683 | + | let hV = jf._12 | |
1684 | + | let hW = jf._13 | |
1685 | + | if (if ((iT != 0)) | |
1686 | + | then (iT > eD) | |
1668 | 1687 | else false) | |
1669 | - | then throw(((("Limit error: " + toString( | |
1670 | - | else $Tuple15(0, 0, 0, 0, | |
1688 | + | then throw(((("Limit error: " + toString(eD)) + " < ") + toString(iT))) | |
1689 | + | else $Tuple15(0, 0, 0, 0, jc, eH, eI, cQ, cR, eK, eN, eL, eM, hV, hW) | |
1671 | 1690 | } | |
1672 | - | let | |
1673 | - | let | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1677 | - | let | |
1678 | - | let | |
1679 | - | let cQ = | |
1680 | - | let cR = | |
1681 | - | let | |
1682 | - | let | |
1683 | - | let | |
1684 | - | let | |
1685 | - | let | |
1686 | - | let | |
1687 | - | if (( | |
1691 | + | let hR = iW._1 | |
1692 | + | let jd = iW._2 | |
1693 | + | let hT = iW._3 | |
1694 | + | let je = iW._4 | |
1695 | + | let jc = iW._5 | |
1696 | + | let eH = iW._6 | |
1697 | + | let eI = iW._7 | |
1698 | + | let cQ = iW._8 | |
1699 | + | let cR = iW._9 | |
1700 | + | let eK = iW._10 | |
1701 | + | let eN = iW._11 | |
1702 | + | let eL = iW._12 | |
1703 | + | let eM = iW._13 | |
1704 | + | let hV = iW._14 | |
1705 | + | let hW = iW._15 | |
1706 | + | if ((jc > 0)) | |
1688 | 1707 | then throw("Unable to close position with bad debt") | |
1689 | 1708 | else { | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1693 | - | then $Tuple2(0, ba( | |
1694 | - | else $Tuple2( | |
1695 | - | let | |
1696 | - | let | |
1697 | - | let | |
1698 | - | let | |
1699 | - | let | |
1700 | - | let | |
1701 | - | then if (( | |
1709 | + | let jg = ba(eI) | |
1710 | + | let jh = (bC() - jg) | |
1711 | + | let ji = if ((0 > jh)) | |
1712 | + | then $Tuple2(0, ba(jh)) | |
1713 | + | else $Tuple2(jh, 0) | |
1714 | + | let jj = ji._1 | |
1715 | + | let jk = ji._2 | |
1716 | + | let jl = ga(cp) | |
1717 | + | let iJ = jl._1 | |
1718 | + | let iK = jl._2 | |
1719 | + | let jm = if ((iJ > 0)) | |
1720 | + | then if ((jg >= iJ)) | |
1702 | 1721 | then { | |
1703 | - | let | |
1704 | - | if (( | |
1705 | - | then $Tuple2([ScriptTransfer( | |
1722 | + | let iS = invoke(aw(), "repay", [cp, iJ, iK], nil) | |
1723 | + | if ((iS == iS)) | |
1724 | + | then $Tuple2([ScriptTransfer(iU, iJ, fromBase58String(iK))], (jg - iJ)) | |
1706 | 1725 | else throw("Strict value is not equal to itself.") | |
1707 | 1726 | } | |
1708 | 1727 | else { | |
1709 | - | let | |
1710 | - | if (( | |
1711 | - | then $Tuple2([ScriptTransfer( | |
1728 | + | let jn = invoke(aw(), "realizePartiallyAndClose", [cp, jg, iK], nil) | |
1729 | + | if ((jn == jn)) | |
1730 | + | then $Tuple2([ScriptTransfer(iU, jg, fromBase58String(iK))], 0) | |
1712 | 1731 | else throw("Strict value is not equal to itself.") | |
1713 | 1732 | } | |
1714 | - | else $Tuple2(nil, | |
1715 | - | if (( | |
1733 | + | else $Tuple2(nil, jg) | |
1734 | + | if ((jm == jm)) | |
1716 | 1735 | then { | |
1717 | - | let | |
1718 | - | let | |
1719 | - | let | |
1736 | + | let jo = jm._2 | |
1737 | + | let jp = jm._1 | |
1738 | + | let jq = if ((jo > 0)) | |
1720 | 1739 | then { | |
1721 | - | let | |
1722 | - | if (( | |
1740 | + | let jq = invoke(ar(), "withdrawLocked", [jo], nil) | |
1741 | + | if ((jq == jq)) | |
1723 | 1742 | then nil | |
1724 | 1743 | else throw("Strict value is not equal to itself.") | |
1725 | 1744 | } | |
1726 | 1745 | else nil | |
1727 | - | if (( | |
1746 | + | if ((jq == jq)) | |
1728 | 1747 | then { | |
1729 | - | let | |
1730 | - | if (( | |
1731 | - | then (((((if (( | |
1732 | - | then | |
1733 | - | else | |
1734 | - | then | |
1735 | - | else nil)) ++ | |
1748 | + | let hX = invoke(as(), "notifyNotional", [cp, 0], nil) | |
1749 | + | if ((hX == hX)) | |
1750 | + | then (((((if ((hR == 0)) | |
1751 | + | then he(cp) | |
1752 | + | else gK(cp, hR, jd, hT, je)) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) ++ (if ((jo > 0)) | |
1753 | + | then hf(iU, jo) | |
1754 | + | else nil)) ++ hi(jj)) ++ jp) | |
1736 | 1755 | else throw("Strict value is not equal to itself.") | |
1737 | 1756 | } | |
1738 | 1757 | else throw("Strict value is not equal to itself.") | |
1739 | 1758 | } | |
1740 | 1759 | else throw("Strict value is not equal to itself.") | |
1741 | 1760 | } | |
1742 | 1761 | } | |
1743 | 1762 | } | |
1744 | 1763 | else throw("Strict value is not equal to itself.") | |
1745 | 1764 | } | |
1746 | 1765 | ||
1747 | 1766 | ||
1748 | 1767 | ||
1749 | 1768 | @Callable(cg) | |
1750 | 1769 | func liquidate (cp) = { | |
1751 | - | let | |
1752 | - | if (( | |
1770 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1771 | + | if ((hB == hB)) | |
1753 | 1772 | then { | |
1754 | - | let | |
1755 | - | let | |
1773 | + | let jr = er(cp, aN) | |
1774 | + | let iG = if (dT()) | |
1756 | 1775 | then { | |
1757 | - | let | |
1758 | - | bb( | |
1776 | + | let js = er(cp, aO) | |
1777 | + | bb(jr, js) | |
1759 | 1778 | } | |
1760 | - | else | |
1761 | - | if (if (if (if (!(ch( | |
1779 | + | else jr | |
1780 | + | if (if (if (if (!(ch(iG, bR(), false))) | |
1762 | 1781 | then true | |
1763 | 1782 | else !(cw(cp))) | |
1764 | 1783 | then true | |
1765 | 1784 | else !(cx())) | |
1766 | 1785 | then true | |
1767 | 1786 | else cy()) | |
1768 | 1787 | then throw("Unable to liquidate") | |
1769 | - | else if (if (if (( | |
1788 | + | else if (if (if ((jr > bS())) | |
1770 | 1789 | then (bT() > 0) | |
1771 | 1790 | else false) | |
1772 | 1791 | then (aK > bT()) | |
1773 | 1792 | else false) | |
1774 | 1793 | then { | |
1775 | - | let | |
1776 | - | let | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1794 | + | let jt = co(cp) | |
1795 | + | let fW = jt._1 | |
1796 | + | let hD = jt._2 | |
1797 | + | let hE = jt._3 | |
1798 | + | let hF = jt._4 | |
1799 | + | let hG = if ((fW > 0)) | |
1781 | 1800 | then aF | |
1782 | 1801 | else aE | |
1783 | - | let | |
1784 | - | let | |
1785 | - | let | |
1786 | - | let | |
1787 | - | let | |
1788 | - | let | |
1789 | - | let | |
1790 | - | let cQ = | |
1791 | - | let cR = | |
1792 | - | let | |
1793 | - | let | |
1794 | - | let | |
1795 | - | let | |
1796 | - | let dm = | |
1797 | - | let dn = | |
1798 | - | let di = | |
1799 | - | let | |
1800 | - | let | |
1801 | - | then (( | |
1802 | - | else (( | |
1803 | - | let | |
1804 | - | let | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1808 | - | let | |
1809 | - | let | |
1810 | - | let | |
1811 | - | let | |
1812 | - | let | |
1813 | - | then $Tuple2(0, ba( | |
1814 | - | else $Tuple2( | |
1815 | - | let | |
1816 | - | let | |
1817 | - | let | |
1818 | - | let | |
1819 | - | let | |
1820 | - | let | |
1802 | + | let hH = (hG == aE) | |
1803 | + | let eD = ex(cp, fW) | |
1804 | + | let ju = ei(cp, aN) | |
1805 | + | let hK = ju._1 | |
1806 | + | let eh = ju._2 | |
1807 | + | let jv = cP(hH, eD) | |
1808 | + | let eC = jv._1 | |
1809 | + | let cQ = jv._2 | |
1810 | + | let cR = jv._3 | |
1811 | + | let eK = jv._4 | |
1812 | + | let jw = aR(ba(eC), ba(fW)) | |
1813 | + | let eH = aT(eh, jw) | |
1814 | + | let jx = dd(fW, hD, hF, eH) | |
1815 | + | let dm = jx._1 | |
1816 | + | let dn = jx._2 | |
1817 | + | let di = jx._3 | |
1818 | + | let hP = (eh - eH) | |
1819 | + | let hQ = if ((fW > 0)) | |
1820 | + | then ((hK - eD) - hP) | |
1821 | + | else ((hP + hK) - eD) | |
1822 | + | let jy = aT(eD, bS()) | |
1823 | + | let jz = (jy / 2) | |
1824 | + | let gn = (jy - jz) | |
1825 | + | let jd = (dm - jy) | |
1826 | + | let hR = (fW + eC) | |
1827 | + | let hT = ba(hQ) | |
1828 | + | let je = cm(hR) | |
1829 | + | let eN = (bK() - eD) | |
1830 | + | let jh = (bC() - jy) | |
1831 | + | let jA = if ((0 > jh)) | |
1832 | + | then $Tuple2(0, ba(jh)) | |
1833 | + | else $Tuple2(jh, 0) | |
1834 | + | let jB = jA._1 | |
1835 | + | let jk = jA._2 | |
1836 | + | let jC = ga(cp) | |
1837 | + | let iJ = jC._1 | |
1838 | + | let iK = jC._2 | |
1839 | + | let jD = if ((iJ > 0)) | |
1821 | 1840 | then { | |
1822 | - | let | |
1823 | - | let | |
1824 | - | if (( | |
1841 | + | let jE = aT(iJ, jw) | |
1842 | + | let jn = invoke(aw(), "realizePartially", [cp, iK, jE], nil) | |
1843 | + | if ((jn == jn)) | |
1825 | 1844 | then nil | |
1826 | 1845 | else throw("Strict value is not equal to itself.") | |
1827 | 1846 | } | |
1828 | 1847 | else nil | |
1829 | - | if (( | |
1848 | + | if ((jD == jD)) | |
1830 | 1849 | then { | |
1831 | - | let | |
1832 | - | if (( | |
1850 | + | let jq = invoke(ar(), "withdrawLocked", [jy], nil) | |
1851 | + | if ((jq == jq)) | |
1833 | 1852 | then { | |
1834 | - | let | |
1835 | - | if (( | |
1853 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1854 | + | if ((iy == iy)) | |
1836 | 1855 | then { | |
1837 | - | let | |
1838 | - | if (( | |
1839 | - | then ((( | |
1840 | - | then ba( | |
1841 | - | else 0)), (ca() - (if ((0 > | |
1842 | - | then ba( | |
1843 | - | else 0)), (bM() - (if (( | |
1844 | - | then | |
1845 | - | else 0)), (bL() - (if ((0 > | |
1846 | - | then | |
1847 | - | else 0)))) ++ | |
1856 | + | let hX = invoke(as(), "notifyNotional", [cp, hT], nil) | |
1857 | + | if ((hX == hX)) | |
1858 | + | then (((gK(cp, hR, jd, hT, je) ++ gX(cQ, cR, eK, eN, (cb() - (if ((hR > 0)) | |
1859 | + | then ba(eC) | |
1860 | + | else 0)), (ca() - (if ((0 > hR)) | |
1861 | + | then ba(eC) | |
1862 | + | else 0)), (bM() - (if ((hR > 0)) | |
1863 | + | then eD | |
1864 | + | else 0)), (bL() - (if ((0 > hR)) | |
1865 | + | then eD | |
1866 | + | else 0)))) ++ hf(cg.caller, jz)) ++ hi(jB)) | |
1848 | 1867 | else throw("Strict value is not equal to itself.") | |
1849 | 1868 | } | |
1850 | 1869 | else throw("Strict value is not equal to itself.") | |
1851 | 1870 | } | |
1852 | 1871 | else throw("Strict value is not equal to itself.") | |
1853 | 1872 | } | |
1854 | 1873 | else throw("Strict value is not equal to itself.") | |
1855 | 1874 | } | |
1856 | 1875 | else { | |
1857 | - | let | |
1858 | - | let | |
1859 | - | let dn = | |
1860 | - | let | |
1861 | - | let | |
1862 | - | let cQ = | |
1863 | - | let cR = | |
1864 | - | let | |
1865 | - | let | |
1866 | - | let | |
1867 | - | let | |
1868 | - | let | |
1869 | - | let | |
1870 | - | let | |
1871 | - | let | |
1872 | - | let | |
1873 | - | let | |
1874 | - | let | |
1875 | - | let | |
1876 | - | then $Tuple2(0, ba( | |
1877 | - | else $Tuple2( | |
1878 | - | let | |
1879 | - | let | |
1880 | - | let | |
1881 | - | let | |
1882 | - | let | |
1883 | - | let | |
1876 | + | let jF = eE(cp, false) | |
1877 | + | let ec = jF._1 | |
1878 | + | let dn = jF._2 | |
1879 | + | let ed = jF._3 | |
1880 | + | let ee = jF._4 | |
1881 | + | let cQ = jF._5 | |
1882 | + | let cR = jF._6 | |
1883 | + | let eK = jF._7 | |
1884 | + | let eN = jF._8 | |
1885 | + | let eD = jF._9 | |
1886 | + | let eL = jF._10 | |
1887 | + | let eM = jF._11 | |
1888 | + | let hV = jF._12 | |
1889 | + | let hW = jF._13 | |
1890 | + | let jy = aT(eD, bS()) | |
1891 | + | let jz = (jy / 2) | |
1892 | + | let gn = (jy - jz) | |
1893 | + | let jh = (bC() - jy) | |
1894 | + | let jG = if ((0 > jh)) | |
1895 | + | then $Tuple2(0, ba(jh)) | |
1896 | + | else $Tuple2(jh, 0) | |
1897 | + | let jB = jG._1 | |
1898 | + | let jk = jG._2 | |
1899 | + | let jH = ga(cp) | |
1900 | + | let iJ = jH._1 | |
1901 | + | let iK = jH._2 | |
1902 | + | let jD = if ((iJ > 0)) | |
1884 | 1903 | then { | |
1885 | - | let | |
1886 | - | if (( | |
1904 | + | let jn = invoke(aw(), "realizePartiallyAndClose", [cp, 0, iK], nil) | |
1905 | + | if ((jn == jn)) | |
1887 | 1906 | then nil | |
1888 | 1907 | else throw("Strict value is not equal to itself.") | |
1889 | 1908 | } | |
1890 | 1909 | else nil | |
1891 | - | if (( | |
1910 | + | if ((jD == jD)) | |
1892 | 1911 | then { | |
1893 | - | let | |
1912 | + | let gg = if ((dn > 0)) | |
1894 | 1913 | then { | |
1895 | - | let | |
1896 | - | if (( | |
1914 | + | let jI = invoke(ar(), "exchangeFreeAndLocked", [dn], nil) | |
1915 | + | if ((jI == jI)) | |
1897 | 1916 | then nil | |
1898 | 1917 | else throw("Strict value is not equal to itself.") | |
1899 | 1918 | } | |
1900 | 1919 | else nil | |
1901 | - | if (( | |
1920 | + | if ((gg == gg)) | |
1902 | 1921 | then { | |
1903 | - | let | |
1904 | - | if (( | |
1922 | + | let jq = invoke(ar(), "withdrawLocked", [jy], nil) | |
1923 | + | if ((jq == jq)) | |
1905 | 1924 | then { | |
1906 | - | let | |
1907 | - | if (( | |
1925 | + | let iy = invoke(ar(), "addFree", nil, [AttachedPayment(ao(), gn)]) | |
1926 | + | if ((iy == iy)) | |
1908 | 1927 | then { | |
1909 | - | let | |
1910 | - | if (( | |
1911 | - | then ((( | |
1928 | + | let hX = invoke(as(), "notifyNotional", [cp, 0], nil) | |
1929 | + | if ((hX == hX)) | |
1930 | + | then (((he(cp) ++ gX(cQ, cR, eK, eN, eL, eM, hV, hW)) ++ hf(cg.caller, jz)) ++ hi(jB)) | |
1912 | 1931 | else throw("Strict value is not equal to itself.") | |
1913 | 1932 | } | |
1914 | 1933 | else throw("Strict value is not equal to itself.") | |
1915 | 1934 | } | |
1916 | 1935 | else throw("Strict value is not equal to itself.") | |
1917 | 1936 | } | |
1918 | 1937 | else throw("Strict value is not equal to itself.") | |
1919 | 1938 | } | |
1920 | 1939 | else throw("Strict value is not equal to itself.") | |
1921 | 1940 | } | |
1922 | 1941 | } | |
1923 | 1942 | else throw("Strict value is not equal to itself.") | |
1924 | 1943 | } | |
1925 | 1944 | ||
1926 | 1945 | ||
1927 | 1946 | ||
1928 | 1947 | @Callable(cg) | |
1929 | 1948 | func payFunding () = { | |
1930 | - | let | |
1931 | - | if (( | |
1949 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1950 | + | if ((hB == hB)) | |
1932 | 1951 | then { | |
1933 | - | let | |
1934 | - | if (if (if (( | |
1952 | + | let jJ = bN() | |
1953 | + | if (if (if ((jJ > lastBlock.timestamp)) | |
1935 | 1954 | then true | |
1936 | 1955 | else !(cx())) | |
1937 | 1956 | then true | |
1938 | 1957 | else cy()) | |
1939 | - | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString( | |
1958 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(jJ))) | |
1940 | 1959 | else { | |
1941 | - | let | |
1942 | - | let | |
1943 | - | let | |
1944 | - | let | |
1945 | - | | |
1960 | + | let fG = dz() | |
1961 | + | let jK = fF() | |
1962 | + | let fJ = jK._1 | |
1963 | + | let fK = jK._2 | |
1964 | + | gA((jJ + bQ()), (bY() + fK), (bZ() + fJ), aR(fK, fG), aR(fJ, fG)) | |
1946 | 1965 | } | |
1947 | 1966 | } | |
1948 | 1967 | else throw("Strict value is not equal to itself.") | |
1949 | 1968 | } | |
1950 | 1969 | ||
1951 | 1970 | ||
1952 | 1971 | ||
1953 | 1972 | @Callable(cg) | |
1954 | 1973 | func syncTerminalPriceToOracle () = { | |
1955 | - | let jE = fy(dz()) | |
1956 | - | let jF = jE._1 | |
1957 | - | let jG = jE._2 | |
1958 | - | let eF = jE._3 | |
1959 | - | let jH = if ((eF != 0)) | |
1974 | + | let cH = bF() | |
1975 | + | let cJ = bG() | |
1976 | + | let jL = fB(dz(), cH, cJ) | |
1977 | + | let hr = jL._1 | |
1978 | + | let hs = jL._2 | |
1979 | + | let eI = jL._3 | |
1980 | + | let ht = if ((eI != 0)) | |
1960 | 1981 | then { | |
1961 | - | let | |
1962 | - | if (( | |
1982 | + | let ht = invoke(ar(), "exchangeFreeAndLocked", [eI], nil) | |
1983 | + | if ((ht == ht)) | |
1963 | 1984 | then nil | |
1964 | 1985 | else throw("Strict value is not equal to itself.") | |
1965 | 1986 | } | |
1966 | 1987 | else nil | |
1967 | - | if ((jH == jH)) | |
1988 | + | if ((ht == ht)) | |
1989 | + | then (gW(hr, hs) ++ gO(aR(aT(cH, hr), aT(cJ, hs)))) | |
1990 | + | else throw("Strict value is not equal to itself.") | |
1991 | + | } | |
1992 | + | ||
1993 | + | ||
1994 | + | ||
1995 | + | @Callable(cg) | |
1996 | + | func view_calcRemainMarginWithFundingPayment (cp) = { | |
1997 | + | let hB = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1998 | + | if ((hB == hB)) | |
1968 | 1999 | then { | |
1969 | - | let cH = bF() | |
1970 | - | let cJ = bG() | |
1971 | - | (gT(jF, jG) ++ gL(aR(aT(cH, jF), aT(cJ, jG)))) | |
2000 | + | let jM = co(cp) | |
2001 | + | let cs = jM._1 | |
2002 | + | let ek = jM._2 | |
2003 | + | let et = jM._3 | |
2004 | + | let em = jM._4 | |
2005 | + | let jN = ei(cp, aN) | |
2006 | + | let dZ = jN._1 | |
2007 | + | let eh = jN._2 | |
2008 | + | let jO = dd(cs, ek, em, eh) | |
2009 | + | let dm = jO._1 | |
2010 | + | let dn = jO._2 | |
2011 | + | let di = jO._3 | |
2012 | + | throw((((((aP(dm) + aP(di)) + aP(ew(cp))) + aP(eh)) + aP(dn)) + aP(dZ))) | |
1972 | 2013 | } | |
1973 | 2014 | else throw("Strict value is not equal to itself.") | |
1974 | 2015 | } | |
1975 | 2016 | ||
1976 | 2017 | ||
1977 | 2018 | ||
1978 | 2019 | @Callable(cg) | |
1979 | - | func view_calcRemainMarginWithFundingPayment (cp) = { | |
1980 | - | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1981 | - | if ((hu == hu)) | |
1982 | - | then { | |
1983 | - | let jI = co(cp) | |
1984 | - | let cs = jI._1 | |
1985 | - | let eh = jI._2 | |
1986 | - | let eq = jI._3 | |
1987 | - | let ej = jI._4 | |
1988 | - | let jJ = ef(cp, aN) | |
1989 | - | let dW = jJ._1 | |
1990 | - | let ee = jJ._2 | |
1991 | - | let jK = dd(cs, eh, ej, ee) | |
1992 | - | let dm = jK._1 | |
1993 | - | let dn = jK._2 | |
1994 | - | let di = jK._3 | |
1995 | - | throw((((((aP(dm) + aP(di)) + aP(et(cp))) + aP(ee)) + aP(dn)) + aP(dW))) | |
1996 | - | } | |
1997 | - | else throw("Strict value is not equal to itself.") | |
1998 | - | } | |
1999 | - | ||
2000 | - | ||
2001 | - | ||
2002 | - | @Callable(cg) | |
2003 | - | func view_getPegAdjustCost (gM) = { | |
2004 | - | let fx = fy(gM) | |
2005 | - | throw(toString(fx._3)) | |
2020 | + | func view_getPegAdjustCost (gP) = { | |
2021 | + | let cH = bF() | |
2022 | + | let cJ = bG() | |
2023 | + | let fA = fB(gP, cH, cJ) | |
2024 | + | throw(toString(fA._3)) | |
2006 | 2025 | } | |
2007 | 2026 | ||
2008 | 2027 | ||
2009 | 2028 | ||
2010 | 2029 | @Callable(cg) | |
2011 | 2030 | func view_getTerminalAmmPrice () = { | |
2012 | - | let | |
2013 | - | let | |
2014 | - | let | |
2015 | - | let | |
2016 | - | throw(toString( | |
2031 | + | let jP = fe() | |
2032 | + | let fi = jP._1 | |
2033 | + | let fj = jP._2 | |
2034 | + | let hm = aR(aT(fi, bH()), aT(fj, bI())) | |
2035 | + | throw(toString(hm)) | |
2017 | 2036 | } | |
2018 | 2037 | ||
2019 | 2038 | ||
2020 | 2039 | ||
2021 | 2040 | @Callable(cg) | |
2022 | 2041 | func view_getFunding () = { | |
2023 | - | let | |
2024 | - | let | |
2025 | - | let | |
2026 | - | let | |
2027 | - | let | |
2028 | - | let | |
2029 | - | throw((((aP( | |
2042 | + | let fG = dz() | |
2043 | + | let jQ = fF() | |
2044 | + | let fJ = jQ._1 | |
2045 | + | let fK = jQ._2 | |
2046 | + | let jR = aR(fK, fG) | |
2047 | + | let jS = aR(fJ, fG) | |
2048 | + | throw((((aP(jR) + aP(jS)) + aP(eO())) + aP(dz()))) | |
2030 | 2049 | } | |
2031 | 2050 | ||
2032 | 2051 | ||
2033 | 2052 | ||
2034 | 2053 | @Callable(cg) | |
2035 | 2054 | func view_getBorrowedByTrader (cp) = { | |
2036 | - | let | |
2037 | - | let | |
2038 | - | let | |
2039 | - | throw((aP( | |
2055 | + | let jT = ga(cp) | |
2056 | + | let iJ = jT._1 | |
2057 | + | let iK = jT._2 | |
2058 | + | throw((aP(iJ) + iK)) | |
2040 | 2059 | } | |
2041 | 2060 | ||
2042 | 2061 | ||
2043 | 2062 | ||
2044 | 2063 | @Callable(cg) | |
2045 | 2064 | func computeSpotPrice () = { | |
2046 | - | let | |
2047 | - | $Tuple2(nil, | |
2048 | - | } | |
2049 | - | ||
2050 | - | ||
2051 | - | ||
2052 | - | @Callable(cg) | |
2053 | - | func computeFeeForTraderWithArtifact (cp, | |
2054 | - | let | |
2055 | - | $Tuple2(nil, | |
2056 | - | } | |
2057 | - | ||
2058 | - | ||
2059 | - | @Verifier( | |
2060 | - | func | |
2065 | + | let fA = dS() | |
2066 | + | $Tuple2(nil, fA) | |
2067 | + | } | |
2068 | + | ||
2069 | + | ||
2070 | + | ||
2071 | + | @Callable(cg) | |
2072 | + | func computeFeeForTraderWithArtifact (cp,fM) = { | |
2073 | + | let fA = gd(cp, fM) | |
2074 | + | $Tuple2(nil, fA) | |
2075 | + | } | |
2076 | + | ||
2077 | + | ||
2078 | + | @Verifier(jU) | |
2079 | + | func jV () = sigVerify(jU.bodyBytes, jU.proofs[0], an()) | |
2061 | 2080 |
github/deemru/w8io/026f985 607.11 ms ◑