tx · 9LcQaLNXkXYqtYStNyvvREGvA84mY4gSubqhHMwgY85V 3MzGPAZokuNfqjMuP7yDXFATZjhjtEP5UCa: -0.03700000 Waves 2023.03.23 21:29 [2503003] smart account 3MzGPAZokuNfqjMuP7yDXFATZjhjtEP5UCa > SELF 0.00000000 Waves
{ "type": 13, "id": "9LcQaLNXkXYqtYStNyvvREGvA84mY4gSubqhHMwgY85V", "fee": 3700000, "feeAssetId": null, "timestamp": 1679596205081, "version": 2, "chainId": 84, "sender": "3MzGPAZokuNfqjMuP7yDXFATZjhjtEP5UCa", "senderPublicKey": "4EBKd2zSCvpiSLeyovT5FUuMvGpi6oxdBAbvQybSYi6p", "proofs": [ "3rQZFkvsTM34TshY89Sion6DnnqAkxstgMUKBAamMXxTZ2dHADMmxc2gXmPfKeJviuXPMd3MdA918Hd7GrjKYbHo" ], "script": "base64:BgJgCAISBAoCCAgSAwoBCBIAEgMKAQgSDgoMCAEBAQEBAQgBAQEBEgsKCQgBAQEIAQEBARIFCgMICAESCAoGCAgBAQEBEg0KCwgIAQEBAQEBCAgBEgMKAQESAwoBARIDCgEBQgAUa19jb29yZGluYXRvckFkZHJlc3MCFGtfY29vcmRpbmF0b3JBZGRyZXNzAA9rX2FkbWluX2FkZHJlc3MCD2tfYWRtaW5fYWRkcmVzcwANa19xdW90ZV9hc3NldAINa19xdW90ZV9hc3NldAAFa19hbW0CBWtfYW1tABFrX21hbmFnZXJfYWRkcmVzcwIRa19tYW5hZ2VyX2FkZHJlc3MAEmtfcG9zaXRpb25TZXF1ZW5jZQISa19wb3NpdGlvblNlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfZXhlY3V0ZWRPcmRlcnMCEGtfZXhlY3V0ZWRPcmRlcnMAEGtfY2FuY2VsZWRPcmRlcnMCEGtfY2FuY2VsZWRPcmRlcnMAB2tfb3JkZXICB2tfb3JkZXIADmtfb3JkZXJSZXF1ZXN0AgprX29yZGVyUmVxAA1rX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VzcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEDmNvb3JkaW5hdG9yU3RyCQCdCAIFBHRoaXMFFGtfY29vcmRpbmF0b3JBZGRyZXNzAwkBCWlzRGVmaW5lZAEFDmNvb3JkaW5hdG9yU3RyBAVhZG1pbgkAnQgCCQERQGV4dHJOYXRpdmUoMTA2MikBCQEFdmFsdWUBBQ5jb29yZGluYXRvclN0cgUPa19hZG1pbl9hZGRyZXNzAwkBCWlzRGVmaW5lZAEFBWFkbWluCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEJAQV2YWx1ZQEFBWFkbWluCQCsAgIJAKwCAgkArAICAgdzdGF0dXNfCQClCAEFBHRoaXMCAV8JANgEAQgFAnR4AmlkBwkAAgECLnVuYWJsZSB0byB2ZXJpZnk6IGFkbWluIG5vdCBzZXQgaW4gY29vcmRpbmF0b3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXk4/OYT", "height": 2503003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ED8H92iHUuNVXbc1JqPsV7FJVe87wKAUMxhtLrbD1XXU Next: 8BvDNGLK6j3Up8oKjGFsGXPwf8869XzRh48XkMdCuD2Z Diff:
Old | New | Differences | |
---|---|---|---|
523 | 523 | ||
524 | 524 | ||
525 | 525 | @Callable(bu) | |
526 | - | func internalCreateOrder (S,R,P,aS,aX,aQ,aR,aU,aV,cv,cw) = if (if (if (if (if (if (if (if (if (!(Y())) | |
527 | - | then true | |
528 | - | else !(X(R))) | |
529 | - | then true | |
530 | - | else (0 >= aS)) | |
531 | - | then true | |
532 | - | else (0 > aX)) | |
533 | - | then true | |
534 | - | else (0 >= aQ)) | |
535 | - | then true | |
536 | - | else (0 > aR)) | |
537 | - | then true | |
538 | - | else !(if ((aU == t)) | |
526 | + | func internalCreateOrder (S,R,P,aS,aX,aQ,aR,aU,aV,cv,cw) = { | |
527 | + | let cx = toString(!(Y())) | |
528 | + | let cy = toString(!(X(R))) | |
529 | + | let cz = toString((0 >= aS)) | |
530 | + | let cA = toString((0 > aX)) | |
531 | + | let cB = toString((0 >= aQ)) | |
532 | + | let cC = toString((0 > aR)) | |
533 | + | let cD = toString(!(if ((aU == t)) | |
539 | 534 | then true | |
540 | 535 | else (aU == u))) | |
541 | - | then true | |
542 | - | else !(if (if ((P == q)) | |
536 | + | let cE = toString(!(if (if ((P == q)) | |
543 | 537 | then true | |
544 | 538 | else (P == r)) | |
545 | 539 | then true | |
546 | 540 | else (P == s))) | |
547 | - | then true | |
548 | - | else !((bu.caller == this))) | |
549 | - | then throw("Invalid internalCreateOrder parameters") | |
550 | - | else { | |
551 | - | let aj = (aa() + 1) | |
552 | - | let cx = aE(aU, P) | |
553 | - | let cu = (ab(R, S) + 1) | |
554 | - | let cm = aH(R, S, cx) | |
555 | - | let aI = if (if (if ((cm == 0)) | |
541 | + | let cF = toString(!((bu.caller == this))) | |
542 | + | let cG = makeString([cx, cy, cz, cA, cB, cC, cD, cE, cF], ",") | |
543 | + | if (if (if (if (if (if (if (if (if (!(Y())) | |
544 | + | then true | |
545 | + | else !(X(R))) | |
546 | + | then true | |
547 | + | else (0 >= aS)) | |
548 | + | then true | |
549 | + | else (0 > aX)) | |
550 | + | then true | |
551 | + | else (0 >= aQ)) | |
552 | + | then true | |
553 | + | else (0 > aR)) | |
554 | + | then true | |
555 | + | else !(if ((aU == t)) | |
556 | 556 | then true | |
557 | - | else if ((cm > 0)) | |
558 | - | then (aU == t) | |
557 | + | else (aU == u))) | |
558 | + | then true | |
559 | + | else !(if (if ((P == q)) | |
560 | + | then true | |
561 | + | else (P == r)) | |
562 | + | then true | |
563 | + | else (P == s))) | |
564 | + | then true | |
565 | + | else !((bu.caller == this))) | |
566 | + | then throw(("Invalid internalCreateOrder parameters " + cG)) | |
567 | + | else { | |
568 | + | let aj = (aa() + 1) | |
569 | + | let cH = aE(aU, P) | |
570 | + | let cu = (ab(R, S) + 1) | |
571 | + | let cm = aH(R, S, cH) | |
572 | + | let aI = if (if (if ((cm == 0)) | |
573 | + | then true | |
574 | + | else if ((cm > 0)) | |
575 | + | then (aU == t) | |
576 | + | else false) | |
577 | + | then true | |
578 | + | else if ((0 > cm)) | |
579 | + | then (aU == u) | |
580 | + | else false) | |
581 | + | then v | |
582 | + | else w | |
583 | + | if (if ((cm == 0)) | |
584 | + | then if ((P == q)) | |
585 | + | then true | |
586 | + | else (P == r) | |
559 | 587 | else false) | |
560 | - | then true | |
561 | - | else if ((0 > cm)) | |
562 | - | then (aU == u) | |
563 | - | else false) | |
564 | - | then v | |
565 | - | else w | |
566 | - | if (if ((cm == 0)) | |
567 | - | then if ((P == q)) | |
568 | - | then true | |
569 | - | else (P == r) | |
570 | - | else false) | |
571 | - | then throw("Can not create STOP/TAKE order: no position") | |
572 | - | else { | |
573 | - | let cy = if ((aI == v)) | |
574 | - | then if (if ((cv != toBase58String(V()))) | |
575 | - | then true | |
576 | - | else (cw != aQ)) | |
577 | - | then throw("Invalid createLimitOrder parameters: invalid payment") | |
578 | - | else { | |
579 | - | let cz = invoke(W(), "deposit", nil, [AttachedPayment(V(), cw)]) | |
580 | - | if ((cz == cz)) | |
581 | - | then cw | |
582 | - | else throw("Strict value is not equal to itself.") | |
588 | + | then throw("Can not create STOP/TAKE order: no position") | |
589 | + | else { | |
590 | + | let cI = if ((aI == v)) | |
591 | + | then if (if ((cv != toBase58String(V()))) | |
592 | + | then true | |
593 | + | else (cw != aQ)) | |
594 | + | then throw("Invalid createLimitOrder parameters: invalid payment") | |
595 | + | else { | |
596 | + | let cJ = invoke(W(), "deposit", nil, [AttachedPayment(V(), cw)]) | |
597 | + | if ((cJ == cJ)) | |
598 | + | then cw | |
599 | + | else throw("Strict value is not equal to itself.") | |
600 | + | } | |
601 | + | else 0 | |
602 | + | if ((cI == cI)) | |
603 | + | then { | |
604 | + | let ax = if ((cm != 0)) | |
605 | + | then aL(R, S, cH) | |
606 | + | else 0 | |
607 | + | if (if (if ((P == q)) | |
608 | + | then true | |
609 | + | else (P == r)) | |
610 | + | then (ax == 0) | |
611 | + | else false) | |
612 | + | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
613 | + | else if ((cu > x)) | |
614 | + | then throw("Invalid createLimitOrder parameters: order count") | |
615 | + | else { | |
616 | + | let cK = (((aP(aj, R, S, aQ, aR, P, aS, cI, aU, aV, ax, aX) ++ bg(aj, R, S, true)) ++ bj(R, S, cu)) ++ bl(aj)) | |
617 | + | $Tuple2(cK, aj) | |
618 | + | } | |
583 | 619 | } | |
584 | - | else 0 | |
585 | - | if ((cy == cy)) | |
586 | - | then { | |
587 | - | let ax = if ((cm != 0)) | |
588 | - | then aL(R, S, cx) | |
589 | - | else 0 | |
590 | - | if (if (if ((P == q)) | |
591 | - | then true | |
592 | - | else (P == r)) | |
593 | - | then (ax == 0) | |
594 | - | else false) | |
595 | - | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
596 | - | else if ((cu > x)) | |
597 | - | then throw("Invalid createLimitOrder parameters: order count") | |
598 | - | else { | |
599 | - | let cA = (((aP(aj, R, S, aQ, aR, P, aS, cy, aU, aV, ax, aX) ++ bg(aj, R, S, true)) ++ bj(R, S, cu)) ++ bl(aj)) | |
600 | - | $Tuple2(cA, aj) | |
601 | - | } | |
602 | - | } | |
603 | - | else throw("Strict value is not equal to itself.") | |
604 | - | } | |
605 | - | } | |
620 | + | else throw("Strict value is not equal to itself.") | |
621 | + | } | |
622 | + | } | |
623 | + | } | |
606 | 624 | ||
607 | 625 | ||
608 | 626 | ||
609 | 627 | @Callable(bu) | |
610 | 628 | func cancelOrder (L) = { | |
611 | - | let | |
612 | - | let R = | |
613 | - | let S = | |
614 | - | let aQ = | |
615 | - | let aR = | |
616 | - | let P = | |
617 | - | let aS = | |
618 | - | let | |
619 | - | let aU = | |
620 | - | let aV = | |
621 | - | let aW = | |
622 | - | let aX = | |
629 | + | let cL = ap(L) | |
630 | + | let R = cL._1 | |
631 | + | let S = cL._2 | |
632 | + | let aQ = cL._3 | |
633 | + | let aR = cL._4 | |
634 | + | let P = cL._5 | |
635 | + | let aS = cL._6 | |
636 | + | let cM = cL._7 | |
637 | + | let aU = cL._8 | |
638 | + | let aV = cL._9 | |
639 | + | let aW = cL._10 | |
640 | + | let aX = cL._11 | |
623 | 641 | if (if (if (!(Y())) | |
624 | 642 | then true | |
625 | 643 | else !(Z(L))) | |
631 | 649 | if ((cc == cc)) | |
632 | 650 | then { | |
633 | 651 | let cu = (ab(R, S) - 1) | |
634 | - | let | |
652 | + | let cN = if ((cM > 0)) | |
635 | 653 | then { | |
636 | - | let | |
637 | - | if (( | |
654 | + | let cO = invoke(W(), "withdraw", [toBase58String(V()), cM], nil) | |
655 | + | if ((cO == cO)) | |
638 | 656 | then nil | |
639 | 657 | else throw("Strict value is not equal to itself.") | |
640 | 658 | } | |
641 | 659 | else nil | |
642 | - | if (( | |
643 | - | then (((bo(L) ++ bg(L, R, S, false)) ++ bj(R, S, cu)) ++ (if (( | |
644 | - | then [ScriptTransfer(bu.caller, | |
660 | + | if ((cN == cN)) | |
661 | + | then (((bo(L) ++ bg(L, R, S, false)) ++ bj(R, S, cu)) ++ (if ((cM > 0)) | |
662 | + | then [ScriptTransfer(bu.caller, cM, V())] | |
645 | 663 | else nil)) | |
646 | 664 | else throw("Strict value is not equal to itself.") | |
647 | 665 | } | |
653 | 671 | ||
654 | 672 | @Callable(bu) | |
655 | 673 | func executeOrder (L) = { | |
656 | - | let | |
657 | - | let R = | |
658 | - | let S = | |
659 | - | let aQ = | |
660 | - | let aR = | |
661 | - | let P = | |
662 | - | let aS = | |
663 | - | let | |
664 | - | let aU = | |
665 | - | let aV = | |
666 | - | let aW = | |
667 | - | let aX = | |
674 | + | let cP = ap(L) | |
675 | + | let R = cP._1 | |
676 | + | let S = cP._2 | |
677 | + | let aQ = cP._3 | |
678 | + | let aR = cP._4 | |
679 | + | let P = cP._5 | |
680 | + | let aS = cP._6 | |
681 | + | let cM = cP._7 | |
682 | + | let aU = cP._8 | |
683 | + | let aV = cP._9 | |
684 | + | let aW = cP._10 | |
685 | + | let aX = cP._11 | |
668 | 686 | let cc = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
669 | 687 | if ((cc == cc)) | |
670 | 688 | then { | |
671 | - | let | |
689 | + | let cH = aE(aU, P) | |
672 | 690 | if (if (!(Y())) | |
673 | 691 | then true | |
674 | 692 | else !(Z(L))) | |
675 | 693 | then throw("Invalid executeOrder parameters") | |
676 | 694 | else { | |
677 | - | let cm = aH(R, S, | |
695 | + | let cm = aH(R, S, cH) | |
678 | 696 | if ((cm == cm)) | |
679 | 697 | then { | |
680 | - | let | |
681 | - | then aL(R, S, | |
698 | + | let cQ = if ((cm != 0)) | |
699 | + | then aL(R, S, cH) | |
682 | 700 | else 0 | |
683 | - | let | |
701 | + | let cR = if ((P == q)) | |
684 | 702 | then { | |
685 | - | let | |
703 | + | let cS = if ((cm > 0)) | |
686 | 704 | then t | |
687 | 705 | else if ((0 > cm)) | |
688 | 706 | then u | |
689 | 707 | else throw("Can not execute STOP order: no open position") | |
690 | - | let | |
691 | - | let | |
708 | + | let cT = ay(R) | |
709 | + | let cU = if ((aU == cS)) | |
692 | 710 | then throw("Can not execute STOP order: reduce only") | |
693 | - | else if (( | |
711 | + | else if ((cQ != aW)) | |
694 | 712 | then throw("Can not execute STOP order: position closed") | |
695 | - | else if (( | |
696 | - | then (aS >= | |
697 | - | else ( | |
698 | - | if ( | |
699 | - | then $Tuple3("closePosition", [G(aQ, B(cm)), | |
713 | + | else if ((cS == t)) | |
714 | + | then (aS >= cT) | |
715 | + | else (cT >= aS) | |
716 | + | if (cU) | |
717 | + | then $Tuple3("closePosition", [G(aQ, B(cm)), cH, F(aX, B(cm)), false], nil) | |
700 | 718 | else throw("Can not execute STOP order: triggerPrice mismatch") | |
701 | 719 | } | |
702 | 720 | else if ((P == r)) | |
703 | 721 | then { | |
704 | - | let | |
722 | + | let cS = if ((cm > 0)) | |
705 | 723 | then t | |
706 | 724 | else if ((0 > cm)) | |
707 | 725 | then u | |
708 | 726 | else throw("Can not execute STOP order: no open position") | |
709 | - | let | |
710 | - | let | |
727 | + | let cT = ay(R) | |
728 | + | let cU = if ((aU == cS)) | |
711 | 729 | then throw("Can not execute TAKE order: reduce only") | |
712 | - | else if (( | |
713 | - | then throw(((("Can not execute TAKE order: position closed " + toString( | |
714 | - | else if (( | |
715 | - | then ( | |
716 | - | else (aS >= | |
717 | - | if ( | |
718 | - | then $Tuple3("closePosition", [G(aQ, B(cm)), | |
730 | + | else if ((cQ != aW)) | |
731 | + | then throw(((("Can not execute TAKE order: position closed " + toString(cQ)) + "!=") + toString(aW))) | |
732 | + | else if ((cS == t)) | |
733 | + | then (cT >= aS) | |
734 | + | else (aS >= cT) | |
735 | + | if (cU) | |
736 | + | then $Tuple3("closePosition", [G(aQ, B(cm)), cH, F(aX, B(cm)), false], nil) | |
719 | 737 | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
720 | 738 | } | |
721 | 739 | else if ((P == s)) | |
722 | 740 | then { | |
723 | - | let | |
724 | - | let | |
741 | + | let cT = ay(R) | |
742 | + | let cV = if ((aX == 0)) | |
725 | 743 | then aN(aS) | |
726 | 744 | else B((aS - aX)) | |
727 | - | let | |
728 | - | then ((aS + | |
745 | + | let cU = if ((cT >= (aS - cV))) | |
746 | + | then ((aS + cV) >= cT) | |
729 | 747 | else false | |
730 | - | if ( | |
748 | + | if (cU) | |
731 | 749 | then { | |
732 | - | let | |
750 | + | let cW = (cM - F(cM, aD(R, S))) | |
733 | 751 | $Tuple3("increasePosition", [aU, aR, if ((aX == 0)) | |
734 | 752 | then 0 | |
735 | - | else D( | |
753 | + | else D(cW, aX), aV], [AttachedPayment(V(), cM)]) | |
736 | 754 | } | |
737 | 755 | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
738 | 756 | } | |
739 | 757 | else throw(("Invalid order type: " + toString(P))) | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
758 | + | let cX = cR._1 | |
759 | + | let cY = cR._2 | |
760 | + | let cZ = cR._3 | |
761 | + | let cN = if ((size(cZ) == 1)) | |
744 | 762 | then { | |
745 | - | let | |
746 | - | if (( | |
763 | + | let cO = invoke(W(), "withdraw", [toBase58String(V()), cZ[0].amount], nil) | |
764 | + | if ((cO == cO)) | |
747 | 765 | then nil | |
748 | 766 | else throw("Strict value is not equal to itself.") | |
749 | 767 | } | |
750 | 768 | else nil | |
751 | - | if (( | |
769 | + | if ((cN == cN)) | |
752 | 770 | then { | |
753 | 771 | let cn = invoke(this, "setContext", [S], nil) | |
754 | 772 | if ((cn == cn)) | |
755 | 773 | then { | |
756 | - | let co = invoke(addressFromStringValue(R), | |
774 | + | let co = invoke(addressFromStringValue(R), cX, cY, cZ) | |
757 | 775 | if ((co == co)) | |
758 | 776 | then { | |
759 | 777 | let cp = invoke(this, "resetContext", nil, nil) | |
760 | 778 | if ((cp == cp)) | |
761 | 779 | then { | |
762 | - | let | |
780 | + | let da = if ((P == s)) | |
763 | 781 | then { | |
764 | - | let | |
765 | - | if (( | |
782 | + | let db = aH(R, S, cH) | |
783 | + | if ((db == db)) | |
766 | 784 | then { | |
767 | - | let | |
768 | - | if (( | |
785 | + | let dc = aL(R, S, cH) | |
786 | + | if ((dc == dc)) | |
769 | 787 | then { | |
770 | - | let | |
771 | - | let | |
788 | + | let dd = (db - cm) | |
789 | + | let de = if ((db > 0)) | |
772 | 790 | then u | |
773 | 791 | else t | |
774 | - | let | |
792 | + | let df = if (af(L, r)) | |
775 | 793 | then { | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | let cg = invoke(this, "internalCreateOrder", [ | |
794 | + | let dg = ag(L, r) | |
795 | + | let dh = dg._1 | |
796 | + | let di = dg._2 | |
797 | + | let dj = dg._3 | |
798 | + | let dk = dg._4 | |
799 | + | let dl = dg._5 | |
800 | + | let dm = dg._6 | |
801 | + | let cg = invoke(this, "internalCreateOrder", [dj, di, dk, dl, dm, dd, 0, de, "", "", 0], nil) | |
784 | 802 | if ((cg == cg)) | |
785 | 803 | then nil | |
786 | 804 | else throw("Strict value is not equal to itself.") | |
787 | 805 | } | |
788 | 806 | else nil | |
789 | - | if (( | |
807 | + | if ((df == df)) | |
790 | 808 | then { | |
791 | - | let | |
809 | + | let dn = if (af(L, q)) | |
792 | 810 | then { | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let cg = invoke(this, "internalCreateOrder", [ | |
811 | + | let do = ag(L, q) | |
812 | + | let dh = do._1 | |
813 | + | let di = do._2 | |
814 | + | let dj = do._3 | |
815 | + | let dk = do._4 | |
816 | + | let dl = do._5 | |
817 | + | let dm = do._6 | |
818 | + | let cg = invoke(this, "internalCreateOrder", [dj, di, dk, dl, dm, dd, 0, de, "", "", 0], nil) | |
801 | 819 | if ((cg == cg)) | |
802 | 820 | then nil | |
803 | 821 | else throw("Strict value is not equal to itself.") | |
804 | 822 | } | |
805 | 823 | else nil | |
806 | - | if (( | |
807 | - | then ( | |
824 | + | if ((dn == dn)) | |
825 | + | then (df ++ dn) | |
808 | 826 | else throw("Strict value is not equal to itself.") | |
809 | 827 | } | |
810 | 828 | else throw("Strict value is not equal to itself.") | |
814 | 832 | else throw("Strict value is not equal to itself.") | |
815 | 833 | } | |
816 | 834 | else nil | |
817 | - | if (( | |
835 | + | if ((da == da)) | |
818 | 836 | then { | |
819 | - | let | |
820 | - | if (( | |
837 | + | let dp = invoke(this, "internalMarkOrderExecuted", [R, S, L], nil) | |
838 | + | if ((dp == dp)) | |
821 | 839 | then nil | |
822 | 840 | else throw("Strict value is not equal to itself.") | |
823 | 841 | } | |
848 | 866 | } | |
849 | 867 | ||
850 | 868 | ||
851 | - | @Verifier( | |
852 | - | func | |
853 | - | let | |
854 | - | if (isDefined( | |
869 | + | @Verifier(dq) | |
870 | + | func dr () = { | |
871 | + | let ds = getString(this, a) | |
872 | + | if (isDefined(ds)) | |
855 | 873 | then { | |
856 | - | let | |
857 | - | if (isDefined( | |
858 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
874 | + | let dt = getString(addressFromStringValue(value(ds)), b) | |
875 | + | if (isDefined(dt)) | |
876 | + | then valueOrElse(getBoolean(addressFromStringValue(value(dt)), ((("status_" + toString(this)) + "_") + toBase58String(dq.id))), false) | |
859 | 877 | else throw("unable to verify: admin not set in coordinator") | |
860 | 878 | } | |
861 | - | else sigVerify( | |
879 | + | else sigVerify(dq.bodyBytes, dq.proofs[0], dq.senderPublicKey) | |
862 | 880 | } | |
863 | 881 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_coordinatorAddress" | |
5 | 5 | ||
6 | 6 | let b = "k_admin_address" | |
7 | 7 | ||
8 | 8 | let c = "k_quote_asset" | |
9 | 9 | ||
10 | 10 | let d = "k_amm" | |
11 | 11 | ||
12 | 12 | let e = "k_manager_address" | |
13 | 13 | ||
14 | 14 | let f = "k_positionSequence" | |
15 | 15 | ||
16 | 16 | let g = "k_positionSize" | |
17 | 17 | ||
18 | 18 | let h = "k_executedOrders" | |
19 | 19 | ||
20 | 20 | let i = "k_canceledOrders" | |
21 | 21 | ||
22 | 22 | let j = "k_order" | |
23 | 23 | ||
24 | 24 | let k = "k_orderReq" | |
25 | 25 | ||
26 | 26 | let l = "k_lastOrderId" | |
27 | 27 | ||
28 | 28 | let m = "k_traderOrderCnt" | |
29 | 29 | ||
30 | 30 | let n = "k_traderOrderIds" | |
31 | 31 | ||
32 | 32 | let o = "k_sender" | |
33 | 33 | ||
34 | 34 | let p = "k_initialized" | |
35 | 35 | ||
36 | 36 | let q = 1 | |
37 | 37 | ||
38 | 38 | let r = 2 | |
39 | 39 | ||
40 | 40 | let s = 3 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | let u = 2 | |
45 | 45 | ||
46 | 46 | let v = 1 | |
47 | 47 | ||
48 | 48 | let w = 2 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = lastBlock.timestamp | |
53 | 53 | ||
54 | 54 | let z = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
55 | 55 | ||
56 | 56 | let A = (z / 200) | |
57 | 57 | ||
58 | 58 | func B (C) = if ((C > 0)) | |
59 | 59 | then C | |
60 | 60 | else -(C) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func D (C,E) = fraction(C, z, E, HALFEVEN) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func F (C,E) = fraction(C, E, z, HALFEVEN) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func G (C,E) = if ((C > E)) | |
70 | 70 | then E | |
71 | 71 | else C | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (I,J) = ((I + "_") + J) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func K (L) = ((h + "_") + toString(L)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func M (L) = ((i + "_") + toString(L)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func N (L) = H(j, toString(L)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func O (L,P) = ((((k + "_") + toString(L)) + "_") + toString(P)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R,S) = ((((m + "_") + R) + "_") + S) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func T (R,S) = ((((n + "_") + R) + "_") + S) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func U () = valueOrErrorMessage(addressFromString(getStringValue(this, a)), "Coordinator not set") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func V () = fromBase58String(getStringValue(U(), c)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func W () = valueOrErrorMessage(addressFromString(getStringValue(U(), e)), "Manager not set") | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func X (J) = valueOrElse(getBoolean(U(), H(d, J)), false) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func Y () = valueOrElse(getBoolean(this, p), false) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func Z (L) = if (valueOrElse(getBoolean(this, K(L)), false)) | |
111 | 111 | then throw(("Order already executed: " + toString(L))) | |
112 | 112 | else if (valueOrElse(getBoolean(this, M(L)), false)) | |
113 | 113 | then throw(("Order already cancelled: " + toString(L))) | |
114 | 114 | else true | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func aa () = valueOrElse(getInteger(this, l), 0) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ab (R,S) = { | |
121 | 121 | let ac = Q(R, S) | |
122 | 122 | valueOrElse(getInteger(this, ac), 0) | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ad (R,S) = { | |
127 | 127 | let ac = T(R, S) | |
128 | 128 | let ae = valueOrElse(getString(this, ac), "") | |
129 | 129 | if ((ae == "")) | |
130 | 130 | then nil | |
131 | 131 | else split(ae, ",") | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func af (L,P) = { | |
136 | 136 | let ac = O(L, P) | |
137 | 137 | isDefined(getString(this, ac)) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ag (L,P) = { | |
142 | 142 | let ac = O(L, P) | |
143 | 143 | let ah = valueOrErrorMessage(getString(this, ac), ("Not order request for key: " + ac)) | |
144 | 144 | let ai = split(ah, ",") | |
145 | 145 | let aj = valueOrErrorMessage(parseInt(ai[0]), "Invalid orderId") | |
146 | 146 | let ak = ai[1] | |
147 | 147 | let al = ai[2] | |
148 | 148 | let am = valueOrErrorMessage(parseInt(ai[3]), "Invalid type") | |
149 | 149 | let an = valueOrErrorMessage(parseInt(ai[4]), "Invalid triggerPrice") | |
150 | 150 | let ao = valueOrErrorMessage(parseInt(ai[5]), "Invalid limitPrice") | |
151 | 151 | $Tuple6(aj, ak, al, am, an, ao) | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ap (L) = { | |
156 | 156 | let aq = valueOrErrorMessage(getString(this, N(L)), ("Invalid order id: " + toString(L))) | |
157 | 157 | let ar = split(aq, ",") | |
158 | 158 | let ak = ar[0] | |
159 | 159 | let al = ar[1] | |
160 | 160 | let as = valueOrErrorMessage(parseInt(ar[2]), "Invalid amountIn") | |
161 | 161 | let at = valueOrErrorMessage(parseInt(ar[3]), "Invalid leverage") | |
162 | 162 | let am = valueOrErrorMessage(parseInt(ar[4]), "Invalid type") | |
163 | 163 | let an = valueOrErrorMessage(parseInt(ar[5]), "Invalid triggerPrice") | |
164 | 164 | let au = valueOrErrorMessage(parseInt(ar[6]), "Invalid paymentUsdn") | |
165 | 165 | let av = valueOrErrorMessage(parseInt(ar[7]), "Invalid side") | |
166 | 166 | let aw = ar[8] | |
167 | 167 | let ax = valueOrErrorMessage(parseInt(ar[9]), "Invalid positionId") | |
168 | 168 | let ao = valueOrErrorMessage(parseInt(ar[10]), "Invalid limitPrice") | |
169 | 169 | $Tuple11(ak, al, as, at, am, an, au, av, aw, ax, ao) | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func ay (R) = { | |
174 | 174 | let az = invoke(addressFromStringValue(R), "computeSpotPrice", nil, nil) | |
175 | 175 | if ((az == az)) | |
176 | 176 | then { | |
177 | 177 | let aA = { | |
178 | 178 | let aB = az | |
179 | 179 | if ($isInstanceOf(aB, "Int")) | |
180 | 180 | then { | |
181 | 181 | let aC = aB | |
182 | 182 | aC | |
183 | 183 | } | |
184 | 184 | else throw("Invalid computeSpotPrice result") | |
185 | 185 | } | |
186 | 186 | value(aA) | |
187 | 187 | } | |
188 | 188 | else throw("Strict value is not equal to itself.") | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aD (R,S) = { | |
193 | 193 | let az = invoke(addressFromStringValue(R), "computeFeeForTraderWithArtifact", [S, ""], nil) | |
194 | 194 | if ((az == az)) | |
195 | 195 | then { | |
196 | 196 | let aA = { | |
197 | 197 | let aB = az | |
198 | 198 | if ($isInstanceOf(aB, "(Int, Boolean)")) | |
199 | 199 | then { | |
200 | 200 | let aC = aB | |
201 | 201 | aC._1 | |
202 | 202 | } | |
203 | 203 | else throw("Invalid computeFeeForTraderWithArtifact result") | |
204 | 204 | } | |
205 | 205 | value(aA) | |
206 | 206 | } | |
207 | 207 | else throw("Strict value is not equal to itself.") | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aE (aF,aG) = if (if ((aG == r)) | |
212 | 212 | then true | |
213 | 213 | else (aG == q)) | |
214 | 214 | then if ((aF == t)) | |
215 | 215 | then u | |
216 | 216 | else t | |
217 | 217 | else aF | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aH (R,S,aI) = { | |
221 | 221 | let ak = addressFromStringValue(R) | |
222 | 222 | let aJ = ((S + "_") + toString(aI)) | |
223 | 223 | let aK = H(g, aJ) | |
224 | 224 | valueOrElse(getInteger(ak, aK), 0) | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aL (R,S,aI) = { | |
229 | 229 | let ak = addressFromStringValue(R) | |
230 | 230 | let aJ = ((S + "_") + toString(aI)) | |
231 | 231 | let aM = H(f, aJ) | |
232 | 232 | valueOrElse(getInteger(ak, aM), 0) | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aN (aO) = F(aO, A) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aP (L,R,S,aQ,aR,P,aS,aT,aU,aV,aW,aX) = { | |
240 | 240 | let aq = makeString([R, S, toString(aQ), toString(aR), toString(P), toString(aS), toString(aT), toString(aU), aV, toString(aW), toString(aX)], ",") | |
241 | 241 | [StringEntry(N(L), aq)] | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func aY (L,R,S,P,aS,aX) = { | |
246 | 246 | let aZ = makeString([toString(L), R, S, toString(P), toString(aS), toString(aX)], ",") | |
247 | 247 | [StringEntry(O(L, P), aZ)] | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func ba (bb,R,S) = [StringEntry(T(R, S), bb)] | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bc (bd,L,R,S,be) = { | |
255 | 255 | let bf = if (be) | |
256 | 256 | then (bd :+ toString(L)) | |
257 | 257 | else removeByIndex(bd, valueOrErrorMessage(indexOf(bd, toString(L)), ("No order with id: " + toString(L)))) | |
258 | 258 | bf | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bg (L,R,S,be) = { | |
263 | 263 | let bh = ad(R, S) | |
264 | 264 | let bf = bc(bh, L, R, S, be) | |
265 | 265 | let bi = makeString(bf, ",") | |
266 | 266 | ba(bi, R, S) | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func bj (R,S,bk) = if ((0 > bk)) | |
271 | 271 | then throw(("Invalid order count: " + toString(bk))) | |
272 | 272 | else [IntegerEntry(Q(R, S), bk)] | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bl (bm) = [IntegerEntry(l, bm)] | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bn (L) = [BooleanEntry(H(h, toString(L)), true)] | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bo (L) = [BooleanEntry(H(i, toString(L)), true)] | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bp (R,S) = { | |
285 | 285 | let bq = aH(R, S, t) | |
286 | 286 | let br = if ((bq != 0)) | |
287 | 287 | then aL(R, S, t) | |
288 | 288 | else 0 | |
289 | 289 | let bs = aH(R, S, u) | |
290 | 290 | let bt = if ((bs != 0)) | |
291 | 291 | then aL(R, S, u) | |
292 | 292 | else 0 | |
293 | 293 | [br, bt] | |
294 | 294 | } | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Callable(bu) | |
298 | 298 | func cleanUpStaleOrders (R,S) = { | |
299 | 299 | let bv = ad(R, S) | |
300 | 300 | let bw = bp(R, S) | |
301 | 301 | func bx (by,L) = { | |
302 | 302 | let bz = valueOrErrorMessage(parseInt(L), "Invalid order id") | |
303 | 303 | let bA = ap(bz) | |
304 | 304 | let bB = bA._1 | |
305 | 305 | let bC = bA._2 | |
306 | 306 | let bD = bA._3 | |
307 | 307 | let bE = bA._4 | |
308 | 308 | let P = bA._5 | |
309 | 309 | let bF = bA._6 | |
310 | 310 | let bG = bA._7 | |
311 | 311 | let bH = bA._8 | |
312 | 312 | let bI = bA._9 | |
313 | 313 | let aW = bA._10 | |
314 | 314 | let bJ = bA._11 | |
315 | 315 | if (if (if (if ((P == q)) | |
316 | 316 | then true | |
317 | 317 | else (P == r)) | |
318 | 318 | then (bw[0] != aW) | |
319 | 319 | else false) | |
320 | 320 | then (bw[1] != aW) | |
321 | 321 | else false) | |
322 | 322 | then { | |
323 | 323 | let bK = bo(bz) | |
324 | 324 | let bL = bc(by._1, bz, R, S, false) | |
325 | 325 | $Tuple2(bL, (by._2 ++ bK)) | |
326 | 326 | } | |
327 | 327 | else by | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | let bM = { | |
331 | 331 | let bN = bv | |
332 | 332 | let bO = size(bN) | |
333 | 333 | let bP = $Tuple2(bv, nil) | |
334 | 334 | func bQ (bR,bS) = if ((bS >= bO)) | |
335 | 335 | then bR | |
336 | 336 | else bx(bR, bN[bS]) | |
337 | 337 | ||
338 | 338 | func bT (bR,bS) = if ((bS >= bO)) | |
339 | 339 | then bR | |
340 | 340 | else throw("List size exceeds 10") | |
341 | 341 | ||
342 | 342 | bT(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bQ(bP, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
343 | 343 | } | |
344 | 344 | let bU = bM._1 | |
345 | 345 | let bV = bM._2 | |
346 | 346 | ((bV ++ bj(R, S, size(bU))) ++ ba(makeString(bU, ","), R, S)) | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(bu) | |
352 | 352 | func setContext (bW) = if ((bu.caller != this)) | |
353 | 353 | then throw("Only self-call") | |
354 | 354 | else [StringEntry(o, bW)] | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | ||
358 | 358 | @Callable(bu) | |
359 | 359 | func resetContext () = if ((bu.caller != this)) | |
360 | 360 | then throw("Only self-call") | |
361 | 361 | else [DeleteEntry(o)] | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(bu) | |
366 | 366 | func initialize (bX) = if (if (Y()) | |
367 | 367 | then true | |
368 | 368 | else (bu.caller != this)) | |
369 | 369 | then throw("Unable to initialize") | |
370 | 370 | else [StringEntry(a, toString(addressFromStringValue(bX))), BooleanEntry(p, true)] | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(bu) | |
375 | 375 | func createOrder (R,P,aS,aX,aQ,aR,aU,aV,bY,bZ,ca,cb) = { | |
376 | 376 | let S = toString(bu.caller) | |
377 | 377 | let cc = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
378 | 378 | if ((cc == cc)) | |
379 | 379 | then if ((size(bu.payments) > 1)) | |
380 | 380 | then throw("Invalid createOrder parameters: invalid payment count") | |
381 | 381 | else { | |
382 | 382 | let cd = if ((size(bu.payments) == 1)) | |
383 | 383 | then $Tuple2(toBase58String(valueOrErrorMessage(bu.payments[0].assetId, "Invalid asset id")), bu.payments[0].amount) | |
384 | 384 | else $Tuple2("", 0) | |
385 | 385 | let ce = cd._1 | |
386 | 386 | let cf = cd._2 | |
387 | 387 | let cg = invoke(this, "internalCreateOrder", [S, R, P, aS, aX, aQ, aR, aU, aV, ce, cf], nil) | |
388 | 388 | if ((cg == cg)) | |
389 | 389 | then { | |
390 | 390 | let aj = { | |
391 | 391 | let aB = cg | |
392 | 392 | if ($isInstanceOf(aB, "Int")) | |
393 | 393 | then { | |
394 | 394 | let aC = aB | |
395 | 395 | aC | |
396 | 396 | } | |
397 | 397 | else throw("Invalid ID of created order") | |
398 | 398 | } | |
399 | 399 | if ((P == s)) | |
400 | 400 | then { | |
401 | 401 | let ch = if ((bY > 0)) | |
402 | 402 | then { | |
403 | 403 | let ci = invoke(this, "internalCreateOrderRequest", [S, R, aj, q, bY, bZ], nil) | |
404 | 404 | if ((ci == ci)) | |
405 | 405 | then nil | |
406 | 406 | else throw("Strict value is not equal to itself.") | |
407 | 407 | } | |
408 | 408 | else nil | |
409 | 409 | let cj = if ((ca > 0)) | |
410 | 410 | then { | |
411 | 411 | let ck = invoke(this, "internalCreateOrderRequest", [S, R, aj, r, ca, cb], nil) | |
412 | 412 | if ((ck == ck)) | |
413 | 413 | then nil | |
414 | 414 | else throw("Strict value is not equal to itself.") | |
415 | 415 | } | |
416 | 416 | else nil | |
417 | 417 | (ch ++ cj) | |
418 | 418 | } | |
419 | 419 | else nil | |
420 | 420 | } | |
421 | 421 | else throw("Strict value is not equal to itself.") | |
422 | 422 | } | |
423 | 423 | else throw("Strict value is not equal to itself.") | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | ||
428 | 428 | @Callable(bu) | |
429 | 429 | func increasePositionWithStopLoss (R,aI,aR,cl,aV,bY,bZ,ca,cb) = { | |
430 | 430 | let S = toString(bu.caller) | |
431 | 431 | let cc = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
432 | 432 | if ((cc == cc)) | |
433 | 433 | then if (if (!(Y())) | |
434 | 434 | then true | |
435 | 435 | else !(X(R))) | |
436 | 436 | then throw("Invalid increasePositionWithStopLoss parameters") | |
437 | 437 | else { | |
438 | 438 | let cm = aH(R, S, aI) | |
439 | 439 | if ((cm != 0)) | |
440 | 440 | then throw("Invalid increasePositionWithStopLoss parameters: only new position") | |
441 | 441 | else { | |
442 | 442 | let cn = invoke(this, "setContext", [S], nil) | |
443 | 443 | if ((cn == cn)) | |
444 | 444 | then { | |
445 | 445 | let co = invoke(addressFromStringValue(R), "increasePosition", [aI, aR, cl, aV], bu.payments) | |
446 | 446 | if ((co == co)) | |
447 | 447 | then { | |
448 | 448 | let cp = invoke(this, "resetContext", nil, nil) | |
449 | 449 | if ((cp == cp)) | |
450 | 450 | then { | |
451 | 451 | let cq = aH(R, S, aI) | |
452 | 452 | if ((cq == cq)) | |
453 | 453 | then { | |
454 | 454 | let as = B(cq) | |
455 | 455 | let cr = if ((0 > cq)) | |
456 | 456 | then t | |
457 | 457 | else u | |
458 | 458 | let cs = if ((bY > 0)) | |
459 | 459 | then { | |
460 | 460 | let cs = invoke(this, "internalCreateOrder", [S, R, q, bY, bZ, as, 0, cr, aV, "", 0], nil) | |
461 | 461 | if ((cs == cs)) | |
462 | 462 | then nil | |
463 | 463 | else throw("Strict value is not equal to itself.") | |
464 | 464 | } | |
465 | 465 | else nil | |
466 | 466 | if ((cs == cs)) | |
467 | 467 | then { | |
468 | 468 | let ct = if ((ca > 0)) | |
469 | 469 | then { | |
470 | 470 | let ct = invoke(this, "internalCreateOrder", [S, R, r, ca, cb, as, 0, cr, aV, "", 0], nil) | |
471 | 471 | if ((ct == ct)) | |
472 | 472 | then nil | |
473 | 473 | else throw("Strict value is not equal to itself.") | |
474 | 474 | } | |
475 | 475 | else nil | |
476 | 476 | if ((ct == ct)) | |
477 | 477 | then nil | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | else throw("Strict value is not equal to itself.") | |
481 | 481 | } | |
482 | 482 | else throw("Strict value is not equal to itself.") | |
483 | 483 | } | |
484 | 484 | else throw("Strict value is not equal to itself.") | |
485 | 485 | } | |
486 | 486 | else throw("Strict value is not equal to itself.") | |
487 | 487 | } | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | } | |
491 | 491 | else throw("Strict value is not equal to itself.") | |
492 | 492 | } | |
493 | 493 | ||
494 | 494 | ||
495 | 495 | ||
496 | 496 | @Callable(bu) | |
497 | 497 | func internalMarkOrderExecuted (R,S,L) = if (if (if (!(Y())) | |
498 | 498 | then true | |
499 | 499 | else !(X(R))) | |
500 | 500 | then true | |
501 | 501 | else !((bu.caller == this))) | |
502 | 502 | then throw("Invalid internalMarkOrderExecuted parameters") | |
503 | 503 | else { | |
504 | 504 | let cu = (ab(R, S) - 1) | |
505 | 505 | ((bj(R, S, cu) ++ bg(L, R, S, false)) ++ bn(L)) | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 | ||
509 | 509 | ||
510 | 510 | @Callable(bu) | |
511 | 511 | func internalCreateOrderRequest (S,R,L,P,aS,aX) = if (if (if (if (if (!(Y())) | |
512 | 512 | then true | |
513 | 513 | else !(X(R))) | |
514 | 514 | then true | |
515 | 515 | else (0 >= aS)) | |
516 | 516 | then true | |
517 | 517 | else (0 > aX)) | |
518 | 518 | then true | |
519 | 519 | else !((bu.caller == this))) | |
520 | 520 | then throw("Invalid internalCreateOrderRequest parameters") | |
521 | 521 | else aY(L, R, S, P, aS, aX) | |
522 | 522 | ||
523 | 523 | ||
524 | 524 | ||
525 | 525 | @Callable(bu) | |
526 | - | func internalCreateOrder (S,R,P,aS,aX,aQ,aR,aU,aV,cv,cw) = if (if (if (if (if (if (if (if (if (!(Y())) | |
527 | - | then true | |
528 | - | else !(X(R))) | |
529 | - | then true | |
530 | - | else (0 >= aS)) | |
531 | - | then true | |
532 | - | else (0 > aX)) | |
533 | - | then true | |
534 | - | else (0 >= aQ)) | |
535 | - | then true | |
536 | - | else (0 > aR)) | |
537 | - | then true | |
538 | - | else !(if ((aU == t)) | |
526 | + | func internalCreateOrder (S,R,P,aS,aX,aQ,aR,aU,aV,cv,cw) = { | |
527 | + | let cx = toString(!(Y())) | |
528 | + | let cy = toString(!(X(R))) | |
529 | + | let cz = toString((0 >= aS)) | |
530 | + | let cA = toString((0 > aX)) | |
531 | + | let cB = toString((0 >= aQ)) | |
532 | + | let cC = toString((0 > aR)) | |
533 | + | let cD = toString(!(if ((aU == t)) | |
539 | 534 | then true | |
540 | 535 | else (aU == u))) | |
541 | - | then true | |
542 | - | else !(if (if ((P == q)) | |
536 | + | let cE = toString(!(if (if ((P == q)) | |
543 | 537 | then true | |
544 | 538 | else (P == r)) | |
545 | 539 | then true | |
546 | 540 | else (P == s))) | |
547 | - | then true | |
548 | - | else !((bu.caller == this))) | |
549 | - | then throw("Invalid internalCreateOrder parameters") | |
550 | - | else { | |
551 | - | let aj = (aa() + 1) | |
552 | - | let cx = aE(aU, P) | |
553 | - | let cu = (ab(R, S) + 1) | |
554 | - | let cm = aH(R, S, cx) | |
555 | - | let aI = if (if (if ((cm == 0)) | |
541 | + | let cF = toString(!((bu.caller == this))) | |
542 | + | let cG = makeString([cx, cy, cz, cA, cB, cC, cD, cE, cF], ",") | |
543 | + | if (if (if (if (if (if (if (if (if (!(Y())) | |
544 | + | then true | |
545 | + | else !(X(R))) | |
546 | + | then true | |
547 | + | else (0 >= aS)) | |
548 | + | then true | |
549 | + | else (0 > aX)) | |
550 | + | then true | |
551 | + | else (0 >= aQ)) | |
552 | + | then true | |
553 | + | else (0 > aR)) | |
554 | + | then true | |
555 | + | else !(if ((aU == t)) | |
556 | 556 | then true | |
557 | - | else if ((cm > 0)) | |
558 | - | then (aU == t) | |
557 | + | else (aU == u))) | |
558 | + | then true | |
559 | + | else !(if (if ((P == q)) | |
560 | + | then true | |
561 | + | else (P == r)) | |
562 | + | then true | |
563 | + | else (P == s))) | |
564 | + | then true | |
565 | + | else !((bu.caller == this))) | |
566 | + | then throw(("Invalid internalCreateOrder parameters " + cG)) | |
567 | + | else { | |
568 | + | let aj = (aa() + 1) | |
569 | + | let cH = aE(aU, P) | |
570 | + | let cu = (ab(R, S) + 1) | |
571 | + | let cm = aH(R, S, cH) | |
572 | + | let aI = if (if (if ((cm == 0)) | |
573 | + | then true | |
574 | + | else if ((cm > 0)) | |
575 | + | then (aU == t) | |
576 | + | else false) | |
577 | + | then true | |
578 | + | else if ((0 > cm)) | |
579 | + | then (aU == u) | |
580 | + | else false) | |
581 | + | then v | |
582 | + | else w | |
583 | + | if (if ((cm == 0)) | |
584 | + | then if ((P == q)) | |
585 | + | then true | |
586 | + | else (P == r) | |
559 | 587 | else false) | |
560 | - | then true | |
561 | - | else if ((0 > cm)) | |
562 | - | then (aU == u) | |
563 | - | else false) | |
564 | - | then v | |
565 | - | else w | |
566 | - | if (if ((cm == 0)) | |
567 | - | then if ((P == q)) | |
568 | - | then true | |
569 | - | else (P == r) | |
570 | - | else false) | |
571 | - | then throw("Can not create STOP/TAKE order: no position") | |
572 | - | else { | |
573 | - | let cy = if ((aI == v)) | |
574 | - | then if (if ((cv != toBase58String(V()))) | |
575 | - | then true | |
576 | - | else (cw != aQ)) | |
577 | - | then throw("Invalid createLimitOrder parameters: invalid payment") | |
578 | - | else { | |
579 | - | let cz = invoke(W(), "deposit", nil, [AttachedPayment(V(), cw)]) | |
580 | - | if ((cz == cz)) | |
581 | - | then cw | |
582 | - | else throw("Strict value is not equal to itself.") | |
588 | + | then throw("Can not create STOP/TAKE order: no position") | |
589 | + | else { | |
590 | + | let cI = if ((aI == v)) | |
591 | + | then if (if ((cv != toBase58String(V()))) | |
592 | + | then true | |
593 | + | else (cw != aQ)) | |
594 | + | then throw("Invalid createLimitOrder parameters: invalid payment") | |
595 | + | else { | |
596 | + | let cJ = invoke(W(), "deposit", nil, [AttachedPayment(V(), cw)]) | |
597 | + | if ((cJ == cJ)) | |
598 | + | then cw | |
599 | + | else throw("Strict value is not equal to itself.") | |
600 | + | } | |
601 | + | else 0 | |
602 | + | if ((cI == cI)) | |
603 | + | then { | |
604 | + | let ax = if ((cm != 0)) | |
605 | + | then aL(R, S, cH) | |
606 | + | else 0 | |
607 | + | if (if (if ((P == q)) | |
608 | + | then true | |
609 | + | else (P == r)) | |
610 | + | then (ax == 0) | |
611 | + | else false) | |
612 | + | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
613 | + | else if ((cu > x)) | |
614 | + | then throw("Invalid createLimitOrder parameters: order count") | |
615 | + | else { | |
616 | + | let cK = (((aP(aj, R, S, aQ, aR, P, aS, cI, aU, aV, ax, aX) ++ bg(aj, R, S, true)) ++ bj(R, S, cu)) ++ bl(aj)) | |
617 | + | $Tuple2(cK, aj) | |
618 | + | } | |
583 | 619 | } | |
584 | - | else 0 | |
585 | - | if ((cy == cy)) | |
586 | - | then { | |
587 | - | let ax = if ((cm != 0)) | |
588 | - | then aL(R, S, cx) | |
589 | - | else 0 | |
590 | - | if (if (if ((P == q)) | |
591 | - | then true | |
592 | - | else (P == r)) | |
593 | - | then (ax == 0) | |
594 | - | else false) | |
595 | - | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
596 | - | else if ((cu > x)) | |
597 | - | then throw("Invalid createLimitOrder parameters: order count") | |
598 | - | else { | |
599 | - | let cA = (((aP(aj, R, S, aQ, aR, P, aS, cy, aU, aV, ax, aX) ++ bg(aj, R, S, true)) ++ bj(R, S, cu)) ++ bl(aj)) | |
600 | - | $Tuple2(cA, aj) | |
601 | - | } | |
602 | - | } | |
603 | - | else throw("Strict value is not equal to itself.") | |
604 | - | } | |
605 | - | } | |
620 | + | else throw("Strict value is not equal to itself.") | |
621 | + | } | |
622 | + | } | |
623 | + | } | |
606 | 624 | ||
607 | 625 | ||
608 | 626 | ||
609 | 627 | @Callable(bu) | |
610 | 628 | func cancelOrder (L) = { | |
611 | - | let | |
612 | - | let R = | |
613 | - | let S = | |
614 | - | let aQ = | |
615 | - | let aR = | |
616 | - | let P = | |
617 | - | let aS = | |
618 | - | let | |
619 | - | let aU = | |
620 | - | let aV = | |
621 | - | let aW = | |
622 | - | let aX = | |
629 | + | let cL = ap(L) | |
630 | + | let R = cL._1 | |
631 | + | let S = cL._2 | |
632 | + | let aQ = cL._3 | |
633 | + | let aR = cL._4 | |
634 | + | let P = cL._5 | |
635 | + | let aS = cL._6 | |
636 | + | let cM = cL._7 | |
637 | + | let aU = cL._8 | |
638 | + | let aV = cL._9 | |
639 | + | let aW = cL._10 | |
640 | + | let aX = cL._11 | |
623 | 641 | if (if (if (!(Y())) | |
624 | 642 | then true | |
625 | 643 | else !(Z(L))) | |
626 | 644 | then true | |
627 | 645 | else !((toString(bu.caller) == S))) | |
628 | 646 | then throw("Invalid cancelOrder parameters") | |
629 | 647 | else { | |
630 | 648 | let cc = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
631 | 649 | if ((cc == cc)) | |
632 | 650 | then { | |
633 | 651 | let cu = (ab(R, S) - 1) | |
634 | - | let | |
652 | + | let cN = if ((cM > 0)) | |
635 | 653 | then { | |
636 | - | let | |
637 | - | if (( | |
654 | + | let cO = invoke(W(), "withdraw", [toBase58String(V()), cM], nil) | |
655 | + | if ((cO == cO)) | |
638 | 656 | then nil | |
639 | 657 | else throw("Strict value is not equal to itself.") | |
640 | 658 | } | |
641 | 659 | else nil | |
642 | - | if (( | |
643 | - | then (((bo(L) ++ bg(L, R, S, false)) ++ bj(R, S, cu)) ++ (if (( | |
644 | - | then [ScriptTransfer(bu.caller, | |
660 | + | if ((cN == cN)) | |
661 | + | then (((bo(L) ++ bg(L, R, S, false)) ++ bj(R, S, cu)) ++ (if ((cM > 0)) | |
662 | + | then [ScriptTransfer(bu.caller, cM, V())] | |
645 | 663 | else nil)) | |
646 | 664 | else throw("Strict value is not equal to itself.") | |
647 | 665 | } | |
648 | 666 | else throw("Strict value is not equal to itself.") | |
649 | 667 | } | |
650 | 668 | } | |
651 | 669 | ||
652 | 670 | ||
653 | 671 | ||
654 | 672 | @Callable(bu) | |
655 | 673 | func executeOrder (L) = { | |
656 | - | let | |
657 | - | let R = | |
658 | - | let S = | |
659 | - | let aQ = | |
660 | - | let aR = | |
661 | - | let P = | |
662 | - | let aS = | |
663 | - | let | |
664 | - | let aU = | |
665 | - | let aV = | |
666 | - | let aW = | |
667 | - | let aX = | |
674 | + | let cP = ap(L) | |
675 | + | let R = cP._1 | |
676 | + | let S = cP._2 | |
677 | + | let aQ = cP._3 | |
678 | + | let aR = cP._4 | |
679 | + | let P = cP._5 | |
680 | + | let aS = cP._6 | |
681 | + | let cM = cP._7 | |
682 | + | let aU = cP._8 | |
683 | + | let aV = cP._9 | |
684 | + | let aW = cP._10 | |
685 | + | let aX = cP._11 | |
668 | 686 | let cc = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
669 | 687 | if ((cc == cc)) | |
670 | 688 | then { | |
671 | - | let | |
689 | + | let cH = aE(aU, P) | |
672 | 690 | if (if (!(Y())) | |
673 | 691 | then true | |
674 | 692 | else !(Z(L))) | |
675 | 693 | then throw("Invalid executeOrder parameters") | |
676 | 694 | else { | |
677 | - | let cm = aH(R, S, | |
695 | + | let cm = aH(R, S, cH) | |
678 | 696 | if ((cm == cm)) | |
679 | 697 | then { | |
680 | - | let | |
681 | - | then aL(R, S, | |
698 | + | let cQ = if ((cm != 0)) | |
699 | + | then aL(R, S, cH) | |
682 | 700 | else 0 | |
683 | - | let | |
701 | + | let cR = if ((P == q)) | |
684 | 702 | then { | |
685 | - | let | |
703 | + | let cS = if ((cm > 0)) | |
686 | 704 | then t | |
687 | 705 | else if ((0 > cm)) | |
688 | 706 | then u | |
689 | 707 | else throw("Can not execute STOP order: no open position") | |
690 | - | let | |
691 | - | let | |
708 | + | let cT = ay(R) | |
709 | + | let cU = if ((aU == cS)) | |
692 | 710 | then throw("Can not execute STOP order: reduce only") | |
693 | - | else if (( | |
711 | + | else if ((cQ != aW)) | |
694 | 712 | then throw("Can not execute STOP order: position closed") | |
695 | - | else if (( | |
696 | - | then (aS >= | |
697 | - | else ( | |
698 | - | if ( | |
699 | - | then $Tuple3("closePosition", [G(aQ, B(cm)), | |
713 | + | else if ((cS == t)) | |
714 | + | then (aS >= cT) | |
715 | + | else (cT >= aS) | |
716 | + | if (cU) | |
717 | + | then $Tuple3("closePosition", [G(aQ, B(cm)), cH, F(aX, B(cm)), false], nil) | |
700 | 718 | else throw("Can not execute STOP order: triggerPrice mismatch") | |
701 | 719 | } | |
702 | 720 | else if ((P == r)) | |
703 | 721 | then { | |
704 | - | let | |
722 | + | let cS = if ((cm > 0)) | |
705 | 723 | then t | |
706 | 724 | else if ((0 > cm)) | |
707 | 725 | then u | |
708 | 726 | else throw("Can not execute STOP order: no open position") | |
709 | - | let | |
710 | - | let | |
727 | + | let cT = ay(R) | |
728 | + | let cU = if ((aU == cS)) | |
711 | 729 | then throw("Can not execute TAKE order: reduce only") | |
712 | - | else if (( | |
713 | - | then throw(((("Can not execute TAKE order: position closed " + toString( | |
714 | - | else if (( | |
715 | - | then ( | |
716 | - | else (aS >= | |
717 | - | if ( | |
718 | - | then $Tuple3("closePosition", [G(aQ, B(cm)), | |
730 | + | else if ((cQ != aW)) | |
731 | + | then throw(((("Can not execute TAKE order: position closed " + toString(cQ)) + "!=") + toString(aW))) | |
732 | + | else if ((cS == t)) | |
733 | + | then (cT >= aS) | |
734 | + | else (aS >= cT) | |
735 | + | if (cU) | |
736 | + | then $Tuple3("closePosition", [G(aQ, B(cm)), cH, F(aX, B(cm)), false], nil) | |
719 | 737 | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
720 | 738 | } | |
721 | 739 | else if ((P == s)) | |
722 | 740 | then { | |
723 | - | let | |
724 | - | let | |
741 | + | let cT = ay(R) | |
742 | + | let cV = if ((aX == 0)) | |
725 | 743 | then aN(aS) | |
726 | 744 | else B((aS - aX)) | |
727 | - | let | |
728 | - | then ((aS + | |
745 | + | let cU = if ((cT >= (aS - cV))) | |
746 | + | then ((aS + cV) >= cT) | |
729 | 747 | else false | |
730 | - | if ( | |
748 | + | if (cU) | |
731 | 749 | then { | |
732 | - | let | |
750 | + | let cW = (cM - F(cM, aD(R, S))) | |
733 | 751 | $Tuple3("increasePosition", [aU, aR, if ((aX == 0)) | |
734 | 752 | then 0 | |
735 | - | else D( | |
753 | + | else D(cW, aX), aV], [AttachedPayment(V(), cM)]) | |
736 | 754 | } | |
737 | 755 | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
738 | 756 | } | |
739 | 757 | else throw(("Invalid order type: " + toString(P))) | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | let | |
758 | + | let cX = cR._1 | |
759 | + | let cY = cR._2 | |
760 | + | let cZ = cR._3 | |
761 | + | let cN = if ((size(cZ) == 1)) | |
744 | 762 | then { | |
745 | - | let | |
746 | - | if (( | |
763 | + | let cO = invoke(W(), "withdraw", [toBase58String(V()), cZ[0].amount], nil) | |
764 | + | if ((cO == cO)) | |
747 | 765 | then nil | |
748 | 766 | else throw("Strict value is not equal to itself.") | |
749 | 767 | } | |
750 | 768 | else nil | |
751 | - | if (( | |
769 | + | if ((cN == cN)) | |
752 | 770 | then { | |
753 | 771 | let cn = invoke(this, "setContext", [S], nil) | |
754 | 772 | if ((cn == cn)) | |
755 | 773 | then { | |
756 | - | let co = invoke(addressFromStringValue(R), | |
774 | + | let co = invoke(addressFromStringValue(R), cX, cY, cZ) | |
757 | 775 | if ((co == co)) | |
758 | 776 | then { | |
759 | 777 | let cp = invoke(this, "resetContext", nil, nil) | |
760 | 778 | if ((cp == cp)) | |
761 | 779 | then { | |
762 | - | let | |
780 | + | let da = if ((P == s)) | |
763 | 781 | then { | |
764 | - | let | |
765 | - | if (( | |
782 | + | let db = aH(R, S, cH) | |
783 | + | if ((db == db)) | |
766 | 784 | then { | |
767 | - | let | |
768 | - | if (( | |
785 | + | let dc = aL(R, S, cH) | |
786 | + | if ((dc == dc)) | |
769 | 787 | then { | |
770 | - | let | |
771 | - | let | |
788 | + | let dd = (db - cm) | |
789 | + | let de = if ((db > 0)) | |
772 | 790 | then u | |
773 | 791 | else t | |
774 | - | let | |
792 | + | let df = if (af(L, r)) | |
775 | 793 | then { | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | let | |
780 | - | let | |
781 | - | let | |
782 | - | let | |
783 | - | let cg = invoke(this, "internalCreateOrder", [ | |
794 | + | let dg = ag(L, r) | |
795 | + | let dh = dg._1 | |
796 | + | let di = dg._2 | |
797 | + | let dj = dg._3 | |
798 | + | let dk = dg._4 | |
799 | + | let dl = dg._5 | |
800 | + | let dm = dg._6 | |
801 | + | let cg = invoke(this, "internalCreateOrder", [dj, di, dk, dl, dm, dd, 0, de, "", "", 0], nil) | |
784 | 802 | if ((cg == cg)) | |
785 | 803 | then nil | |
786 | 804 | else throw("Strict value is not equal to itself.") | |
787 | 805 | } | |
788 | 806 | else nil | |
789 | - | if (( | |
807 | + | if ((df == df)) | |
790 | 808 | then { | |
791 | - | let | |
809 | + | let dn = if (af(L, q)) | |
792 | 810 | then { | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let cg = invoke(this, "internalCreateOrder", [ | |
811 | + | let do = ag(L, q) | |
812 | + | let dh = do._1 | |
813 | + | let di = do._2 | |
814 | + | let dj = do._3 | |
815 | + | let dk = do._4 | |
816 | + | let dl = do._5 | |
817 | + | let dm = do._6 | |
818 | + | let cg = invoke(this, "internalCreateOrder", [dj, di, dk, dl, dm, dd, 0, de, "", "", 0], nil) | |
801 | 819 | if ((cg == cg)) | |
802 | 820 | then nil | |
803 | 821 | else throw("Strict value is not equal to itself.") | |
804 | 822 | } | |
805 | 823 | else nil | |
806 | - | if (( | |
807 | - | then ( | |
824 | + | if ((dn == dn)) | |
825 | + | then (df ++ dn) | |
808 | 826 | else throw("Strict value is not equal to itself.") | |
809 | 827 | } | |
810 | 828 | else throw("Strict value is not equal to itself.") | |
811 | 829 | } | |
812 | 830 | else throw("Strict value is not equal to itself.") | |
813 | 831 | } | |
814 | 832 | else throw("Strict value is not equal to itself.") | |
815 | 833 | } | |
816 | 834 | else nil | |
817 | - | if (( | |
835 | + | if ((da == da)) | |
818 | 836 | then { | |
819 | - | let | |
820 | - | if (( | |
837 | + | let dp = invoke(this, "internalMarkOrderExecuted", [R, S, L], nil) | |
838 | + | if ((dp == dp)) | |
821 | 839 | then nil | |
822 | 840 | else throw("Strict value is not equal to itself.") | |
823 | 841 | } | |
824 | 842 | else throw("Strict value is not equal to itself.") | |
825 | 843 | } | |
826 | 844 | else throw("Strict value is not equal to itself.") | |
827 | 845 | } | |
828 | 846 | else throw("Strict value is not equal to itself.") | |
829 | 847 | } | |
830 | 848 | else throw("Strict value is not equal to itself.") | |
831 | 849 | } | |
832 | 850 | else throw("Strict value is not equal to itself.") | |
833 | 851 | } | |
834 | 852 | else throw("Strict value is not equal to itself.") | |
835 | 853 | } | |
836 | 854 | } | |
837 | 855 | else throw("Strict value is not equal to itself.") | |
838 | 856 | } | |
839 | 857 | ||
840 | 858 | ||
841 | 859 | ||
842 | 860 | @Callable(bu) | |
843 | 861 | func view_canExecuteOrder (L) = { | |
844 | 862 | let az = invoke(this, "executeOrder", [L], nil) | |
845 | 863 | if ((az == az)) | |
846 | 864 | then throw("Success") | |
847 | 865 | else throw("Strict value is not equal to itself.") | |
848 | 866 | } | |
849 | 867 | ||
850 | 868 | ||
851 | - | @Verifier( | |
852 | - | func | |
853 | - | let | |
854 | - | if (isDefined( | |
869 | + | @Verifier(dq) | |
870 | + | func dr () = { | |
871 | + | let ds = getString(this, a) | |
872 | + | if (isDefined(ds)) | |
855 | 873 | then { | |
856 | - | let | |
857 | - | if (isDefined( | |
858 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
874 | + | let dt = getString(addressFromStringValue(value(ds)), b) | |
875 | + | if (isDefined(dt)) | |
876 | + | then valueOrElse(getBoolean(addressFromStringValue(value(dt)), ((("status_" + toString(this)) + "_") + toBase58String(dq.id))), false) | |
859 | 877 | else throw("unable to verify: admin not set in coordinator") | |
860 | 878 | } | |
861 | - | else sigVerify( | |
879 | + | else sigVerify(dq.bodyBytes, dq.proofs[0], dq.senderPublicKey) | |
862 | 880 | } | |
863 | 881 |
github/deemru/w8io/169f3d6 227.19 ms ◑