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