tx · GYdffmNVVoYBErKVNcB3yS4uoSchwfGouQ9cwuaPd5QD 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.22000000 Waves 2023.04.18 11:23 [2539748] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "GYdffmNVVoYBErKVNcB3yS4uoSchwfGouQ9cwuaPd5QD", "fee": 22000000, "feeAssetId": null, "timestamp": 1681806217590, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "2QzqamZPg3mRoXAtTrd5YX97ccqZ2JtyYQXhCMXGwBH9YAfVwQKxsbsFqrF1LxY6EL97EZRvSjibewmBFhkQEQ32" ], "script": "base64:BgJYCAISCAoGCAgBAQEIEgUKAwgBCBIDCgEIEgQKAggBEgMKAQgSDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBIHCgUICAEBAUEAB1NGX1BPT0wCAlNGAAdXWF9QT09MAgJXWAAHQ0FQX0ZFRQIDY2FwAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUACkZFRV9TQ0FMRTYAwIQ9ABRrU0ZQb29sQUFzc2V0QmFsYW5jZQIPQV9hc3NldF9iYWxhbmNlABRrU0ZQb29sQkFzc2V0QmFsYW5jZQIPQl9hc3NldF9iYWxhbmNlAA9rU0ZQb29sQUFzc2V0SWQCCkFfYXNzZXRfaWQAD2tTRlBvb2xCQXNzZXRJZAIKQl9hc3NldF9pZAAOa1NGUG9vbFNoYXJlSWQCDnNoYXJlX2Fzc2V0X2lkAAprU0ZQb29sRmVlAgpjb21taXNzaW9uAA1rVXNlclBvc2l0aW9uAg5fdXNlcl9wb3Npd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UOa1Bvb2xDYXBDaGFuZ2UAAAUDbmlsBQNuaWwJAM4IAgkBCmNhcGl0YWxpemUEBQRwb29sBQR0eXBlBQl0b2tlblRvSWQFD2V4Y2hhbmdlZEFtb3VudAULY2hhbmdlRW50cnkBaQELaW5pdE5ld1Bvb2wFBHR5cGUIcG9vbEFkZHILaW5GZWVOb0xvYW4JaW5GZWVMb2FuBmNhcEZlZQMDCQECIT0CBQR0eXBlBQdTRl9QT09MCQECIT0CBQR0eXBlBQdXWF9QT09MBwkAAgECCldyb25nIHR5cGUJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFFWtBeGx5SW5GZWVXaXRob3V0TG9hbgULaW5GZWVOb0xvYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFEmtBeGx5SW5GZWVXaXRoTG9hbgUJaW5GZWVMb2FuCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBQtrQXhseUNhcEZlZQUGY2FwRmVlCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBQ1rUG9vbEludGVyZXN0AAAJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQVrUG9vbAUIcG9vbEFkZHIFBHR5cGUFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlCrRZg", "height": 2539748, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E4JbTH1etik8Tm6bawmhHKCoR52xS4vkaSTGmzFBSynb Next: 3gvvR1SPMCwsiHAjAJHRRptgZCShuyjJ2gpgZaVf71Y5 Diff:
Old | New | Differences | |
---|---|---|---|
502 | 502 | ||
503 | 503 | ||
504 | 504 | @Callable(P) | |
505 | - | func | |
505 | + | func replenishREADONLY (af,ad,as,au,ch,ci) = if (if ((100 > ch)) | |
506 | 506 | then true | |
507 | 507 | else (ch > 300)) | |
508 | 508 | then throw("Leverage can't be <100 and >300") | |
514 | 514 | let aw = cj._3 | |
515 | 515 | let ax = cj._4 | |
516 | 516 | let ay = cj._5 | |
517 | - | let ck = if ((size(P.payments) == 2)) | |
517 | + | let ck = if ((ch > 100)) | |
518 | + | then { | |
519 | + | let cl = ( let Z = invoke(K, "getTWAP60", [bI, false], nil) | |
520 | + | if ($isInstanceOf(Z, "(Int, Int)")) | |
521 | + | then Z | |
522 | + | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
523 | + | let cm = ( let Z = invoke(K, "getTWAP60", [bJ, false], nil) | |
524 | + | if ($isInstanceOf(Z, "(Int, Int)")) | |
525 | + | then Z | |
526 | + | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
527 | + | let cn = (fraction(cl, as, pow(10, 0, ap(bI), 0, 0, DOWN)) + fraction(cm, au, pow(10, 0, ap(bJ), 0, 0, DOWN))) | |
528 | + | let co = fraction(cn, (ch - 100), 100) | |
529 | + | if ((ci == bI)) | |
530 | + | then $Tuple3((as + co), au, d) | |
531 | + | else $Tuple3(as, (au + co), d) | |
532 | + | } | |
533 | + | else $Tuple3(as, au, e) | |
534 | + | let cp = ck._1 | |
535 | + | let cq = ck._2 | |
536 | + | let bV = ck._3 | |
537 | + | let cr = if ((ab == a)) | |
538 | + | then ar(ad, bV, cp, bI, cq, bJ, aw, ax, ay) | |
539 | + | else aR(ad, bV, as, bI, au, bJ, ay) | |
540 | + | let cs = cr._1 | |
541 | + | let bM = cr._2 | |
542 | + | $Tuple2(nil, cs) | |
543 | + | } | |
544 | + | ||
545 | + | ||
546 | + | ||
547 | + | @Callable(P) | |
548 | + | func replenish (ad,ch,ci) = if (if ((100 > ch)) | |
549 | + | then true | |
550 | + | else (ch > 300)) | |
551 | + | then throw("Leverage can't be <100 and >300") | |
552 | + | else { | |
553 | + | let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
554 | + | let ct = aa(Address(fromBase58String(ad)), ab) | |
555 | + | let bI = ct._1 | |
556 | + | let bJ = ct._2 | |
557 | + | let aw = ct._3 | |
558 | + | let ax = ct._4 | |
559 | + | let ay = ct._5 | |
560 | + | let cu = if ((size(P.payments) == 2)) | |
518 | 561 | then if ((an(P.payments[0].assetId) != bI)) | |
519 | 562 | then throw("Wrong payment asset A") | |
520 | 563 | else if ((an(P.payments[1].assetId) != bJ)) | |
527 | 570 | then $Tuple4(0, bI, P.payments[0].amount, bJ) | |
528 | 571 | else throw("Wrong payment") | |
529 | 572 | else throw("One or two payments expected") | |
530 | - | let as = | |
531 | - | let at = | |
532 | - | let au = | |
533 | - | let av = | |
534 | - | let | |
573 | + | let as = cu._1 | |
574 | + | let at = cu._2 | |
575 | + | let au = cu._3 | |
576 | + | let av = cu._4 | |
577 | + | let cv = ae(ad, toString(P.caller)) | |
535 | 578 | if ((ch > 100)) | |
536 | 579 | then { | |
537 | - | let | |
580 | + | let cl = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
538 | 581 | if ($isInstanceOf(Z, "(Int, Int)")) | |
539 | 582 | then Z | |
540 | 583 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
541 | - | let | |
584 | + | let cm = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
542 | 585 | if ($isInstanceOf(Z, "(Int, Int)")) | |
543 | 586 | then Z | |
544 | 587 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let Z = invoke(this, "createNewRequest", [ | |
588 | + | let cn = (fraction(cl, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cm, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
589 | + | let co = fraction(cn, (ch - 100), 100) | |
590 | + | let cw = makeString([ab, toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, ci, toString(co), toString(cv)], ",") | |
591 | + | let cx = { | |
592 | + | let Z = invoke(this, "createNewRequest", [cw], nil) | |
550 | 593 | if ($isInstanceOf(Z, "Int")) | |
551 | 594 | then Z | |
552 | 595 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
553 | 596 | } | |
554 | - | if (( | |
597 | + | if ((cx == cx)) | |
555 | 598 | then { | |
556 | - | let | |
557 | - | let bg = reentrantInvoke(am(), "flashPosition", | |
599 | + | let cy = [((toString(P.caller) + "_") + toString(cv)), ay, ci, co, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cx, "Can't create new request"))] | |
600 | + | let bg = reentrantInvoke(am(), "flashPosition", cy, nil) | |
558 | 601 | if ((bg == bg)) | |
559 | 602 | then nil | |
560 | 603 | else throw("Strict value is not equal to itself.") | |
562 | 605 | else throw("Strict value is not equal to itself.") | |
563 | 606 | } | |
564 | 607 | else { | |
565 | - | let | |
608 | + | let cz = if ((ab == a)) | |
566 | 609 | then ar(ad, e, as, at, au, av, aw, ax, ay) | |
567 | 610 | else aR(ad, e, as, at, au, av, ay) | |
568 | - | let | |
569 | - | let bM = | |
570 | - | aZ(ad, toString(P.caller), | |
611 | + | let cs = cz._1 | |
612 | + | let bM = cz._2 | |
613 | + | aZ(ad, toString(P.caller), cs, bM, cv, ay, ab) | |
571 | 614 | } | |
572 | 615 | } | |
573 | 616 | ||
574 | 617 | ||
575 | 618 | ||
576 | 619 | @Callable(P) | |
577 | - | func replenishFromLand ( | |
578 | - | let | |
620 | + | func replenishFromLand (cA) = { | |
621 | + | let cw = split(valueOrErrorMessage(getString(this, (cA + y)), ("No request with id " + cA)), ",") | |
579 | 622 | if ((size(P.payments) != 1)) | |
580 | 623 | then throw("Wrong payment size") | |
581 | - | else if (if ((an(P.payments[0].assetId) != | |
624 | + | else if (if ((an(P.payments[0].assetId) != cw[10])) | |
582 | 625 | then true | |
583 | - | else (P.payments[0].amount != parseIntValue( | |
626 | + | else (P.payments[0].amount != parseIntValue(cw[11]))) | |
584 | 627 | then throw("Wrong payment") | |
585 | 628 | else { | |
586 | - | let as = if (( | |
587 | - | then (parseIntValue( | |
588 | - | else parseIntValue( | |
589 | - | let au = if (( | |
590 | - | then (parseIntValue( | |
591 | - | else parseIntValue( | |
592 | - | let ad = | |
593 | - | let af = | |
594 | - | let ay = | |
595 | - | let bb = parseIntValue( | |
596 | - | let | |
597 | - | then ar(ad, d, as, | |
598 | - | else if (( | |
599 | - | then aR(ad, d, as, | |
629 | + | let as = if ((cw[4] == an(P.payments[0].assetId))) | |
630 | + | then (parseIntValue(cw[3]) + P.payments[0].amount) | |
631 | + | else parseIntValue(cw[3]) | |
632 | + | let au = if ((cw[6] == an(P.payments[0].assetId))) | |
633 | + | then (parseIntValue(cw[5]) + P.payments[0].amount) | |
634 | + | else parseIntValue(cw[3]) | |
635 | + | let ad = cw[2] | |
636 | + | let af = cw[1] | |
637 | + | let ay = cw[9] | |
638 | + | let bb = parseIntValue(cw[12]) | |
639 | + | let cB = if ((cw[0] == a)) | |
640 | + | then ar(ad, d, as, cw[4], au, cw[6], parseIntValue(cw[7]), parseIntValue(cw[8]), ay) | |
641 | + | else if ((cw[0] == b)) | |
642 | + | then aR(ad, d, as, cw[4], au, cw[6], ay) | |
600 | 643 | else throw("Wrong request type") | |
601 | - | let | |
602 | - | let bM = | |
603 | - | let | |
604 | - | let | |
605 | - | $Tuple2((( | |
644 | + | let cs = cB._1 | |
645 | + | let bM = cB._2 | |
646 | + | let cC = [IntegerEntry((((((cw[2] + "_") + cw[1]) + "_") + cw[12]) + p), P.payments[0].amount), StringEntry((((((cw[2] + "_") + cw[1]) + "_") + cw[12]) + q), cw[10])] | |
647 | + | let cD = aZ(ad, af, cs, bM, bb, ay, cw[0]) | |
648 | + | $Tuple2(((cD ++ cC) :+ DeleteEntry((cA + y))), cs) | |
606 | 649 | } | |
607 | 650 | } | |
608 | 651 | ||
609 | 652 | ||
610 | 653 | ||
611 | 654 | @Callable(P) | |
612 | - | func withdraw (ad, | |
655 | + | func withdraw (ad,cE) = { | |
613 | 656 | let af = toString(P.caller) | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
657 | + | let cF = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
658 | + | let cG = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(cE)) + o)), "Unknown position") | |
659 | + | let cH = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cE)) + s)) | |
660 | + | let cI = getIntegerValue(this, (ad + u)) | |
661 | + | let cJ = ac(ad) | |
662 | + | let cK = (cG + fraction(cG, (cI - cH), g)) | |
620 | 663 | let W = Address(fromBase58String(ad)) | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let bQ = | |
626 | - | let bR = | |
627 | - | let aw = | |
628 | - | let ax = | |
629 | - | let ay = | |
630 | - | let | |
631 | - | if (( | |
664 | + | let cL = Address(fromBase58String(af)) | |
665 | + | let co = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cE)) + p)) | |
666 | + | let cM = getStringValue(this, (((((ad + "_") + af) + "_") + toString(cE)) + q)) | |
667 | + | let cN = aa(Address(fromBase58String(ad)), cF) | |
668 | + | let bQ = cN._1 | |
669 | + | let bR = cN._2 | |
670 | + | let aw = cN._3 | |
671 | + | let ax = cN._4 | |
672 | + | let ay = cN._5 | |
673 | + | let cO = Q(ao(bQ)) | |
674 | + | if ((cO == cO)) | |
632 | 675 | then { | |
633 | - | let | |
634 | - | if (( | |
676 | + | let cP = Q(ao(bR)) | |
677 | + | if ((cP == cP)) | |
635 | 678 | then { | |
636 | - | let bg = if (( | |
637 | - | then invoke(W, "callFunction", ["withdraw", [toString( | |
638 | - | else if (( | |
639 | - | then invoke(W, "unstakeAndGet", [ | |
679 | + | let bg = if ((cF == a)) | |
680 | + | then invoke(W, "callFunction", ["withdraw", [toString(cK)]], nil) | |
681 | + | else if ((cF == b)) | |
682 | + | then invoke(W, "unstakeAndGet", [cK], nil) | |
640 | 683 | else throw("Wrong position type") | |
641 | 684 | if ((bg == bg)) | |
642 | 685 | then { | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
686 | + | let cQ = Q(ao(bQ)) | |
687 | + | let cR = Q(ao(bR)) | |
688 | + | let cS = $Tuple2((cQ - cO), (cR - cP)) | |
689 | + | let cT = cS._1 | |
690 | + | let cU = cS._2 | |
691 | + | let cV = if ((co > 0)) | |
649 | 692 | then { | |
650 | - | let | |
651 | - | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString( | |
693 | + | let cW = { | |
694 | + | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(cE)), cM], nil) | |
652 | 695 | if ($isInstanceOf(Z, "Int")) | |
653 | 696 | then Z | |
654 | 697 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
655 | 698 | } | |
656 | - | let | |
657 | - | then ( | |
699 | + | let cX = if (if ((cM == bQ)) | |
700 | + | then (cW > cT) | |
658 | 701 | else false) | |
659 | - | then ( | |
660 | - | else if (if (( | |
661 | - | then ( | |
702 | + | then (cW - cT) | |
703 | + | else if (if ((cM == bR)) | |
704 | + | then (cW > cU) | |
662 | 705 | else false) | |
663 | - | then ( | |
706 | + | then (cW - cU) | |
664 | 707 | else 0 | |
665 | - | let | |
666 | - | then cg( | |
708 | + | let cY = if ((cX > 0)) | |
709 | + | then cg(cF, ad, bQ, bR, aw, ax, cX, cM) | |
667 | 710 | else 0 | |
668 | - | if (( | |
711 | + | if ((cY == cY)) | |
669 | 712 | then { | |
670 | - | let | |
671 | - | if (( | |
713 | + | let cZ = invoke(am(), "repayFor", [((af + "_") + toString(cE))], [AttachedPayment(ao(cM), cW)]) | |
714 | + | if ((cZ == cZ)) | |
672 | 715 | then { | |
673 | - | let | |
674 | - | let | |
675 | - | $Tuple2(( | |
716 | + | let da = Q(ao(bQ)) | |
717 | + | let db = Q(ao(bR)) | |
718 | + | $Tuple2((da - cO), (db - cP)) | |
676 | 719 | } | |
677 | 720 | else throw("Strict value is not equal to itself.") | |
678 | 721 | } | |
679 | 722 | else throw("Strict value is not equal to itself.") | |
680 | 723 | } | |
681 | - | else $Tuple2( | |
682 | - | let | |
683 | - | let | |
684 | - | [DeleteEntry((((((ad + "_") + af) + "_") + toString( | |
724 | + | else $Tuple2(cT, cU) | |
725 | + | let dc = cV._1 | |
726 | + | let dd = cV._2 | |
727 | + | [DeleteEntry((((((ad + "_") + af) + "_") + toString(cE)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(cE)) + s)), IntegerEntry((ad + t), (cJ - cK)), ScriptTransfer(cL, cT, ao(bQ)), ScriptTransfer(cL, cU, ao(bR))] | |
685 | 728 | } | |
686 | 729 | else throw("Strict value is not equal to itself.") | |
687 | 730 | } | |
693 | 736 | ||
694 | 737 | ||
695 | 738 | @Callable(P) | |
696 | - | func createNewRequest ( | |
697 | - | let | |
698 | - | $Tuple2([StringEntry((toString( | |
739 | + | func createNewRequest (de) = valueOrElse(O(P), { | |
740 | + | let cx = (valueOrElse(getInteger(this, z), 0) + 1) | |
741 | + | $Tuple2([StringEntry((toString(cx) + y), de), IntegerEntry(z, cx)], cx) | |
699 | 742 | }) | |
700 | 743 | ||
701 | 744 | ||
702 | 745 | ||
703 | 746 | @Callable(P) | |
704 | - | func capitalizeExKeeper (ad,ab, | |
705 | - | let | |
747 | + | func capitalizeExKeeper (ad,ab,df,dg,dh,bm,bn,bo,bp,bq,br,bs) = { | |
748 | + | let di = if (dh) | |
706 | 749 | then be(ab, ad) | |
707 | 750 | else { | |
708 | - | let | |
751 | + | let dj = if ((ab == a)) | |
709 | 752 | then M | |
710 | 753 | else N | |
711 | - | $Tuple2( | |
754 | + | $Tuple2(dg, dj) | |
712 | 755 | } | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let aG = ( | |
717 | - | let | |
756 | + | let dk = di._1 | |
757 | + | let dj = di._2 | |
758 | + | let dl = bi(df, dg, dj, bm, bn, bo, bp, bq, br, bs) | |
759 | + | let aG = (dk - dg) | |
760 | + | let dm = if ((aG > 0)) | |
718 | 761 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
719 | 762 | else nil | |
720 | - | (bE(ad, ab, | |
763 | + | (bE(ad, ab, df, dl) ++ dm) | |
721 | 764 | } | |
722 | 765 | ||
723 | 766 | ||
724 | 767 | ||
725 | 768 | @Callable(P) | |
726 | - | func capitalizeExPazzle (ad,ab, | |
727 | - | let | |
769 | + | func capitalizeExPazzle (ad,ab,df,dg,dh,bv,bw,bs) = { | |
770 | + | let dn = if (dh) | |
728 | 771 | then be(ab, ad) | |
729 | 772 | else { | |
730 | - | let | |
773 | + | let dj = if ((ab == a)) | |
731 | 774 | then M | |
732 | 775 | else N | |
733 | - | $Tuple2( | |
776 | + | $Tuple2(dg, dj) | |
734 | 777 | } | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let aG = ( | |
739 | - | let | |
778 | + | let dk = dn._1 | |
779 | + | let dj = dn._2 | |
780 | + | let dl = bu(df, dg, dj, bv, bw, bs) | |
781 | + | let aG = (dk - dg) | |
782 | + | let dm = if ((aG > 0)) | |
740 | 783 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
741 | 784 | else nil | |
742 | - | (bE(ad, ab, | |
785 | + | (bE(ad, ab, df, dl) ++ dm) | |
743 | 786 | } | |
744 | 787 | ||
745 | 788 | ||
746 | 789 | ||
747 | 790 | @Callable(P) | |
748 | - | func capitalizeExSwopFi (ad,ab, | |
749 | - | let | |
791 | + | func capitalizeExSwopFi (ad,ab,df,dg,dh,by,bz,bA,bB,bC,bD,bs) = { | |
792 | + | let do = if (dh) | |
750 | 793 | then be(ab, ad) | |
751 | 794 | else { | |
752 | - | let | |
795 | + | let dj = if ((ab == a)) | |
753 | 796 | then M | |
754 | 797 | else N | |
755 | - | $Tuple2( | |
798 | + | $Tuple2(dg, dj) | |
756 | 799 | } | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let aG = ( | |
761 | - | let | |
800 | + | let dk = do._1 | |
801 | + | let dj = do._2 | |
802 | + | let dl = bx(df, dg, dj, by, bz, bA, bB, bC, bD, bs) | |
803 | + | let aG = (dk - dg) | |
804 | + | let dm = if ((aG > 0)) | |
762 | 805 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
763 | 806 | else nil | |
764 | - | (bE(ad, ab, | |
807 | + | (bE(ad, ab, df, dl) ++ dm) | |
765 | 808 | } | |
766 | 809 | ||
767 | 810 | ||
768 | 811 | ||
769 | 812 | @Callable(P) | |
770 | - | func initNewPool (ab,W, | |
813 | + | func initNewPool (ab,W,dp,dq,dr) = if (if ((ab != a)) | |
771 | 814 | then (ab != b) | |
772 | 815 | else false) | |
773 | 816 | then throw("Wrong type") | |
774 | - | else [IntegerEntry((W + v), | |
817 | + | else [IntegerEntry((W + v), dp), IntegerEntry((W + w), dq), IntegerEntry((W + x), dr), IntegerEntry((W + u), 0), StringEntry((A + W), ab)] | |
775 | 818 | ||
776 | 819 | ||
777 | - | @Verifier( | |
778 | - | func | |
820 | + | @Verifier(ds) | |
821 | + | func dt () = sigVerify(ds.bodyBytes, ds.proofs[0], ds.senderPublicKey) | |
779 | 822 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "SF" | |
5 | 5 | ||
6 | 6 | let b = "WX" | |
7 | 7 | ||
8 | 8 | let c = "cap" | |
9 | 9 | ||
10 | 10 | let d = "loan" | |
11 | 11 | ||
12 | 12 | let e = "noLoan" | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = 10000000000 | |
17 | 17 | ||
18 | 18 | let h = 1000000 | |
19 | 19 | ||
20 | 20 | let i = "A_asset_balance" | |
21 | 21 | ||
22 | 22 | let j = "B_asset_balance" | |
23 | 23 | ||
24 | 24 | let k = "A_asset_id" | |
25 | 25 | ||
26 | 26 | let l = "B_asset_id" | |
27 | 27 | ||
28 | 28 | let m = "share_asset_id" | |
29 | 29 | ||
30 | 30 | let n = "commission" | |
31 | 31 | ||
32 | 32 | let o = "_user_position" | |
33 | 33 | ||
34 | 34 | let p = "_user_position_borrow_amount" | |
35 | 35 | ||
36 | 36 | let q = "_user_position_borrow_asset_id" | |
37 | 37 | ||
38 | 38 | let r = "_user_position_number" | |
39 | 39 | ||
40 | 40 | let s = "_user_position_interest" | |
41 | 41 | ||
42 | 42 | let t = "_pool_total" | |
43 | 43 | ||
44 | 44 | let u = "_pool_interest" | |
45 | 45 | ||
46 | 46 | let v = "_axly_fee_without_loan" | |
47 | 47 | ||
48 | 48 | let w = "_axly_fee_with_loan" | |
49 | 49 | ||
50 | 50 | let x = "_axly_fee_cap" | |
51 | 51 | ||
52 | 52 | let y = "_request_id" | |
53 | 53 | ||
54 | 54 | let z = "requests_iter" | |
55 | 55 | ||
56 | 56 | let A = "pool_" | |
57 | 57 | ||
58 | 58 | let B = "_pool_cap_change" | |
59 | 59 | ||
60 | 60 | let C = "axly_money_box" | |
61 | 61 | ||
62 | 62 | let D = "swopfi_farming_addr" | |
63 | 63 | ||
64 | 64 | let E = "lend_service_addr" | |
65 | 65 | ||
66 | 66 | let F = "price_oracle" | |
67 | 67 | ||
68 | 68 | let G = "exchange_contract" | |
69 | 69 | ||
70 | 70 | let H = "wx_swap_contract" | |
71 | 71 | ||
72 | 72 | let I = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address"))) | |
73 | 73 | ||
74 | 74 | let J = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address"))) | |
75 | 75 | ||
76 | 76 | let K = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address"))) | |
77 | 77 | ||
78 | 78 | let L = Address(fromBase58String(valueOrErrorMessage(getString(this, H), "No wx swap address"))) | |
79 | 79 | ||
80 | 80 | let M = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
81 | 81 | ||
82 | 82 | let N = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
83 | 83 | ||
84 | 84 | func O (P) = if ((P.caller == this)) | |
85 | 85 | then unit | |
86 | 86 | else throw("Only contract itself can call this function") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R) = { | |
90 | 90 | let S = R | |
91 | 91 | if ($isInstanceOf(S, "ByteVector")) | |
92 | 92 | then { | |
93 | 93 | let T = S | |
94 | 94 | assetBalance(this, T) | |
95 | 95 | } | |
96 | 96 | else if ($isInstanceOf(S, "Unit")) | |
97 | 97 | then { | |
98 | 98 | let U = S | |
99 | 99 | wavesBalance(this).available | |
100 | 100 | } | |
101 | 101 | else throw("Match error") | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func V (W) = $Tuple5(valueOrErrorMessage(getString(W, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(W, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(W, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(W, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(W, m), "Can't get share asset id")) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func X (W) = { | |
109 | 109 | let Y = { | |
110 | 110 | let Z = invoke(W, "getPoolConfigWrapperREADONLY", nil, nil) | |
111 | 111 | if ($isInstanceOf(Z, "List[Any]")) | |
112 | 112 | then Z | |
113 | 113 | else throw(($getType(Z) + " couldn't be cast to List[Any]")) | |
114 | 114 | } | |
115 | 115 | if ((Y == Y)) | |
116 | 116 | then $Tuple5(valueOrErrorMessage({ | |
117 | 117 | let Z = Y[4] | |
118 | 118 | if ($isInstanceOf(Z, "String")) | |
119 | 119 | then Z | |
120 | 120 | else unit | |
121 | 121 | }, "Can't get pool A asset id"), valueOrErrorMessage({ | |
122 | 122 | let Z = Y[5] | |
123 | 123 | if ($isInstanceOf(Z, "String")) | |
124 | 124 | then Z | |
125 | 125 | else unit | |
126 | 126 | }, "Can't get pool B asset id"), 0, 0, valueOrErrorMessage({ | |
127 | 127 | let Z = Y[3] | |
128 | 128 | if ($isInstanceOf(Z, "String")) | |
129 | 129 | then Z | |
130 | 130 | else unit | |
131 | 131 | }, "Can't get pool LP asset id")) | |
132 | 132 | else throw("Strict value is not equal to itself.") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aa (W,ab) = if ((ab == a)) | |
137 | 137 | then V(W) | |
138 | 138 | else if ((ab == b)) | |
139 | 139 | then X(W) | |
140 | 140 | else throw("Wrong pool type") | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ac (ad) = valueOrElse(getInteger(this, (ad + t)), 0) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ae (ad,af) = (valueOrElse(getInteger(this, (((ad + "_") + af) + r)), 0) + 1) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ag (ad,ah) = if ((ah == "cap")) | |
150 | 150 | then getIntegerValue(this, (ad + x)) | |
151 | 151 | else if ((ah == "loan")) | |
152 | 152 | then getIntegerValue(this, (ad + w)) | |
153 | 153 | else if ((ah == "noLoan")) | |
154 | 154 | then getIntegerValue(this, (ad + v)) | |
155 | 155 | else throw("Wrong fee type") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ai () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr"))) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func aj (W) = { | |
162 | 162 | let ak = Address(fromBase58String(valueOrErrorMessage(getString(W, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
163 | 163 | let al = split(valueOrErrorMessage(getString(ak, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
164 | 164 | Address(fromBase58String(al[1])) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func am () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr"))) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func an (R) = { | |
172 | 172 | let S = R | |
173 | 173 | if ($isInstanceOf(S, "ByteVector")) | |
174 | 174 | then { | |
175 | 175 | let T = S | |
176 | 176 | toBase58String(T) | |
177 | 177 | } | |
178 | 178 | else if ($isInstanceOf(S, "Unit")) | |
179 | 179 | then { | |
180 | 180 | let U = S | |
181 | 181 | "WAVES" | |
182 | 182 | } | |
183 | 183 | else throw("Match error") | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func ao (R) = if ((R == "WAVES")) | |
188 | 188 | then unit | |
189 | 189 | else fromBase58String(R) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func ap (R) = if ((R == "WAVES")) | |
193 | 193 | then 8 | |
194 | 194 | else { | |
195 | 195 | let S = assetInfo(fromBase58String(R)) | |
196 | 196 | if ($isInstanceOf(S, "Asset")) | |
197 | 197 | then { | |
198 | 198 | let aq = S | |
199 | 199 | aq.decimals | |
200 | 200 | } | |
201 | 201 | else throw("Can't find asset") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func ar (ad,ah,as,at,au,av,aw,ax,ay) = { | |
206 | 206 | let az = Q(fromBase58String(ay)) | |
207 | 207 | if ((az == az)) | |
208 | 208 | then { | |
209 | 209 | let W = Address(fromBase58String(ad)) | |
210 | 210 | let aA = fraction(f, as, aw) | |
211 | 211 | let aB = fraction(f, au, ax) | |
212 | 212 | let aC = if ((aB > aA)) | |
213 | 213 | then { | |
214 | 214 | let aD = fraction(ax, aA, f, CEILING) | |
215 | 215 | $Tuple4(as, aD, (au - aD), av) | |
216 | 216 | } | |
217 | 217 | else { | |
218 | 218 | let aD = fraction(aw, aB, f, CEILING) | |
219 | 219 | $Tuple4(aD, au, (as - aD), at) | |
220 | 220 | } | |
221 | 221 | let aE = aC._1 | |
222 | 222 | let aF = aC._2 | |
223 | 223 | let aG = aC._3 | |
224 | 224 | let aH = aC._4 | |
225 | 225 | let aI = if (if ((aE > 0)) | |
226 | 226 | then (aF > 0) | |
227 | 227 | else false) | |
228 | 228 | then { | |
229 | 229 | let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)] | |
230 | 230 | invoke(W, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aJ) | |
231 | 231 | } | |
232 | 232 | else 0 | |
233 | 233 | if ((aI == aI)) | |
234 | 234 | then { | |
235 | 235 | let aK = if ((aG > 0)) | |
236 | 236 | then { | |
237 | 237 | let aJ = [AttachedPayment(ao(aH), aG)] | |
238 | 238 | let aL = ["0", "false", "0"] | |
239 | 239 | invoke(W, "callFunction", ["replenishWithOneToken", aL], aJ) | |
240 | 240 | } | |
241 | 241 | else 0 | |
242 | 242 | if ((aK == aK)) | |
243 | 243 | then { | |
244 | 244 | let aM = Q(fromBase58String(ay)) | |
245 | 245 | let aN = (aM - az) | |
246 | 246 | let aO = fraction(aN, ag(ad, ah), h) | |
247 | 247 | let aP = (aN - aO) | |
248 | 248 | if ((0 >= aP)) | |
249 | 249 | then throw("amount of staked sharetokens must be > 0") | |
250 | 250 | else { | |
251 | 251 | let aQ = invoke(ai(), "lockShareTokens", [ad, 0], [AttachedPayment(fromBase58String(ay), aP)]) | |
252 | 252 | if ((aQ == aQ)) | |
253 | 253 | then $Tuple2(aP, aO) | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | else throw("Strict value is not equal to itself.") | |
260 | 260 | } | |
261 | 261 | else throw("Strict value is not equal to itself.") | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func aR (ad,ah,as,at,au,av,ay) = { | |
266 | 266 | let W = Address(fromBase58String(ad)) | |
267 | 267 | let aS = if (if ((as > 0)) | |
268 | 268 | then (au > 0) | |
269 | 269 | else false) | |
270 | 270 | then { | |
271 | 271 | let aT = split({ | |
272 | 272 | let Z = invoke(W, "evaluatePutByAmountAssetREADONLY", [as], nil) | |
273 | 273 | if ($isInstanceOf(Z, "String")) | |
274 | 274 | then Z | |
275 | 275 | else throw(($getType(Z) + " couldn't be cast to String")) | |
276 | 276 | }, "__") | |
277 | 277 | if ((aT == aT)) | |
278 | 278 | then { | |
279 | 279 | let aU = split({ | |
280 | 280 | let Z = invoke(W, "evaluatePutByPriceAssetREADONLY", [au], nil) | |
281 | 281 | if ($isInstanceOf(Z, "String")) | |
282 | 282 | then Z | |
283 | 283 | else throw(($getType(Z) + " couldn't be cast to String")) | |
284 | 284 | }, "__") | |
285 | 285 | if ((aU == aU)) | |
286 | 286 | then { | |
287 | 287 | let aV = parseIntValue(aT[1]) | |
288 | 288 | let aW = parseIntValue(aU[1]) | |
289 | 289 | if ((aW > aV)) | |
290 | 290 | then { | |
291 | 291 | let aX = parseIntValue(aT[8]) | |
292 | 292 | $Tuple4(as, aX, (au - aX), av) | |
293 | 293 | } | |
294 | 294 | else { | |
295 | 295 | let aY = parseIntValue(aU[7]) | |
296 | 296 | $Tuple4(aY, au, (as - aY), at) | |
297 | 297 | } | |
298 | 298 | } | |
299 | 299 | else throw("Strict value is not equal to itself.") | |
300 | 300 | } | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | else if ((as > 0)) | |
304 | 304 | then $Tuple4(as, au, as, at) | |
305 | 305 | else if ((au > 0)) | |
306 | 306 | then $Tuple4(as, au, au, av) | |
307 | 307 | else throw("pmts must be > 0") | |
308 | 308 | let aE = aS._1 | |
309 | 309 | let aF = aS._2 | |
310 | 310 | let aG = aS._3 | |
311 | 311 | let aH = aS._4 | |
312 | 312 | let az = Q(fromBase58String(ay)) | |
313 | 313 | if ((az == az)) | |
314 | 314 | then { | |
315 | 315 | let aI = if (if ((aE > 0)) | |
316 | 316 | then (aF > 0) | |
317 | 317 | else false) | |
318 | 318 | then { | |
319 | 319 | let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)] | |
320 | 320 | invoke(W, "put", [1000000, false], aJ) | |
321 | 321 | } | |
322 | 322 | else 0 | |
323 | 323 | if ((aI == aI)) | |
324 | 324 | then { | |
325 | 325 | let aK = if ((aG > 0)) | |
326 | 326 | then { | |
327 | 327 | let aJ = [AttachedPayment(ao(aH), aG)] | |
328 | 328 | invoke(W, "putOneTkn", [0, false], aJ) | |
329 | 329 | } | |
330 | 330 | else 0 | |
331 | 331 | if ((aK == aK)) | |
332 | 332 | then { | |
333 | 333 | let aM = Q(fromBase58String(ay)) | |
334 | 334 | let aN = (aM - az) | |
335 | 335 | let aO = fraction(aN, ag(ad, ah), h) | |
336 | 336 | let aP = (aN - aO) | |
337 | 337 | if ((0 >= aP)) | |
338 | 338 | then throw("amount of staked sharetokens must be > 0") | |
339 | 339 | else { | |
340 | 340 | let aQ = invoke(aj(W), "stake", nil, [AttachedPayment(fromBase58String(ay), aP)]) | |
341 | 341 | if ((aQ == aQ)) | |
342 | 342 | then $Tuple2(aP, aO) | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | func aZ (ad,af,ba,aO,bb,ay,ab) = { | |
355 | 355 | let bc = ac(ad) | |
356 | 356 | let bd = getIntegerValue(this, (ad + u)) | |
357 | 357 | [IntegerEntry((ad + t), (bc + ba)), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + o), ba), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + s), bd), IntegerEntry((((ad + "_") + af) + r), bb), ScriptTransfer(I, aO, fromBase58String(ay))] | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func be (ab,ad) = if ((ab == a)) | |
362 | 362 | then { | |
363 | 363 | let bf = Q(M) | |
364 | 364 | if ((bf == bf)) | |
365 | 365 | then { | |
366 | 366 | let bg = invoke(ai(), "claim", [ad], nil) | |
367 | 367 | if ((bg == bg)) | |
368 | 368 | then { | |
369 | 369 | let bh = Q(M) | |
370 | 370 | $Tuple2((bh - bf), M) | |
371 | 371 | } | |
372 | 372 | else throw("Strict value is not equal to itself.") | |
373 | 373 | } | |
374 | 374 | else throw("Strict value is not equal to itself.") | |
375 | 375 | } | |
376 | 376 | else if ((ab == b)) | |
377 | 377 | then { | |
378 | 378 | let bf = Q(N) | |
379 | 379 | if ((bf == bf)) | |
380 | 380 | then { | |
381 | 381 | let bg = invoke(aj(Address(fromBase58String(ad))), "claimWX", [ad], nil) | |
382 | 382 | if ((bg == bg)) | |
383 | 383 | then { | |
384 | 384 | let bh = Q(N) | |
385 | 385 | $Tuple2((bh - bf), N) | |
386 | 386 | } | |
387 | 387 | else throw("Strict value is not equal to itself.") | |
388 | 388 | } | |
389 | 389 | else throw("Strict value is not equal to itself.") | |
390 | 390 | } | |
391 | 391 | else throw("Wrong pool type") | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | func bi (bj,bk,bl,bm,bn,bo,bp,bq,br,bs) = { | |
395 | 395 | let bt = Q(ao(bj)) | |
396 | 396 | if ((bt == bt)) | |
397 | 397 | then { | |
398 | 398 | let bg = invoke(J, "swap", [bm, bn, bo, bp, bq, br, bs], [AttachedPayment(bl, bk)]) | |
399 | 399 | if ((bg == bg)) | |
400 | 400 | then (Q(ao(bj)) - bt) | |
401 | 401 | else throw("Strict value is not equal to itself.") | |
402 | 402 | } | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | func bu (bj,bk,bl,bv,bw,bs) = { | |
408 | 408 | let bt = Q(ao(bj)) | |
409 | 409 | if ((bt == bt)) | |
410 | 410 | then { | |
411 | 411 | let bg = invoke(J, "puzzleSwap", [bv, bw, bs], [AttachedPayment(bl, bk)]) | |
412 | 412 | if ((bg == bg)) | |
413 | 413 | then (Q(ao(bj)) - bt) | |
414 | 414 | else throw("Strict value is not equal to itself.") | |
415 | 415 | } | |
416 | 416 | else throw("Strict value is not equal to itself.") | |
417 | 417 | } | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | func bx (bj,bk,bl,by,bz,bA,bB,bC,bD,bs) = { | |
421 | 421 | let bt = Q(ao(bj)) | |
422 | 422 | if ((bt == bt)) | |
423 | 423 | then { | |
424 | 424 | let bg = invoke(J, "swopfiSwap", [by, bz, bA, bB, bC, bD, bs], [AttachedPayment(bl, bk)]) | |
425 | 425 | if ((bg == bg)) | |
426 | 426 | then (Q(ao(bj)) - bt) | |
427 | 427 | else throw("Strict value is not equal to itself.") | |
428 | 428 | } | |
429 | 429 | else throw("Strict value is not equal to itself.") | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | func bE (ad,ab,bF,bG) = { | |
434 | 434 | let W = Address(fromBase58String(ad)) | |
435 | 435 | let bH = aa(W, ab) | |
436 | 436 | let bI = bH._1 | |
437 | 437 | let bJ = bH._2 | |
438 | 438 | let aw = bH._3 | |
439 | 439 | let ax = bH._4 | |
440 | 440 | let ay = bH._5 | |
441 | 441 | let bK = if ((bF == bI)) | |
442 | 442 | then $Tuple2(bG, 0) | |
443 | 443 | else $Tuple2(0, bG) | |
444 | 444 | let as = bK._1 | |
445 | 445 | let au = bK._2 | |
446 | 446 | let bL = if ((ab == a)) | |
447 | 447 | then ar(ad, c, as, bI, au, bJ, aw, ax, ay) | |
448 | 448 | else aR(ad, c, as, bI, au, bJ, ay) | |
449 | 449 | let ba = bL._1 | |
450 | 450 | let bM = bL._2 | |
451 | 451 | let bd = valueOrElse(getInteger(this, (ad + u)), 0) | |
452 | 452 | let bN = ac(ad) | |
453 | 453 | let bO = (bd + fraction(ba, g, bN)) | |
454 | 454 | [IntegerEntry((ad + u), bO), ScriptTransfer(I, bM, fromBase58String(ay))] | |
455 | 455 | } | |
456 | 456 | ||
457 | 457 | ||
458 | 458 | func bP (ad,bQ,bR,aw,ax,bS,bT) = { | |
459 | 459 | let W = Address(fromBase58String(ad)) | |
460 | 460 | let bU = 1000000 | |
461 | 461 | let bV = getIntegerValue(W, n) | |
462 | 462 | let bW = fraction(bS, bU, (bU - bV)) | |
463 | 463 | let bX = if ((bT == bQ)) | |
464 | 464 | then { | |
465 | 465 | let bY = fraction(aw, bW, (ax - bW)) | |
466 | 466 | $Tuple2(bY, bR) | |
467 | 467 | } | |
468 | 468 | else { | |
469 | 469 | let bY = fraction(ax, bW, (aw - bW)) | |
470 | 470 | $Tuple2(bY, bQ) | |
471 | 471 | } | |
472 | 472 | let bY = bX._1 | |
473 | 473 | let bZ = bX._2 | |
474 | 474 | invoke(W, "callFunction", ["exchange", "1"], [AttachedPayment(ao(bZ), bY)]) | |
475 | 475 | } | |
476 | 476 | ||
477 | 477 | ||
478 | 478 | func ca (ad,bQ,bR,aw,ax,bS,bT) = { | |
479 | 479 | let W = Address(fromBase58String(ad)) | |
480 | 480 | let cb = getIntegerValue(L, "%s__protocolFee") | |
481 | 481 | let cc = getIntegerValue(L, "%s__poolFee") | |
482 | 482 | let cd = toBigInt(100000000) | |
483 | 483 | let ce = if ((bT == bQ)) | |
484 | 484 | then { | |
485 | 485 | let bY = fraction(aw, bS, (ax - bS)) | |
486 | 486 | $Tuple2(bY, bR) | |
487 | 487 | } | |
488 | 488 | else { | |
489 | 489 | let bY = fraction(ax, bS, (aw - bS)) | |
490 | 490 | $Tuple2(bY, bQ) | |
491 | 491 | } | |
492 | 492 | let bY = ce._1 | |
493 | 493 | let bZ = ce._2 | |
494 | 494 | let cf = toInt(fraction(toBigInt(bY), cd, (cd - toBigInt((cb + cc))))) | |
495 | 495 | invoke(L, "swap", [1, bT, toString(this)], [AttachedPayment(ao(bZ), cf)]) | |
496 | 496 | } | |
497 | 497 | ||
498 | 498 | ||
499 | 499 | func cg (ab,ad,bQ,bR,aw,ax,bS,bT) = if ((ab == a)) | |
500 | 500 | then bP(ad, bQ, bR, aw, ax, bS, bT) | |
501 | 501 | else ca(ad, bQ, bR, aw, ax, bS, bT) | |
502 | 502 | ||
503 | 503 | ||
504 | 504 | @Callable(P) | |
505 | - | func | |
505 | + | func replenishREADONLY (af,ad,as,au,ch,ci) = if (if ((100 > ch)) | |
506 | 506 | then true | |
507 | 507 | else (ch > 300)) | |
508 | 508 | then throw("Leverage can't be <100 and >300") | |
509 | 509 | else { | |
510 | 510 | let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
511 | 511 | let cj = aa(Address(fromBase58String(ad)), ab) | |
512 | 512 | let bI = cj._1 | |
513 | 513 | let bJ = cj._2 | |
514 | 514 | let aw = cj._3 | |
515 | 515 | let ax = cj._4 | |
516 | 516 | let ay = cj._5 | |
517 | - | let ck = if ((size(P.payments) == 2)) | |
517 | + | let ck = if ((ch > 100)) | |
518 | + | then { | |
519 | + | let cl = ( let Z = invoke(K, "getTWAP60", [bI, false], nil) | |
520 | + | if ($isInstanceOf(Z, "(Int, Int)")) | |
521 | + | then Z | |
522 | + | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
523 | + | let cm = ( let Z = invoke(K, "getTWAP60", [bJ, false], nil) | |
524 | + | if ($isInstanceOf(Z, "(Int, Int)")) | |
525 | + | then Z | |
526 | + | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
527 | + | let cn = (fraction(cl, as, pow(10, 0, ap(bI), 0, 0, DOWN)) + fraction(cm, au, pow(10, 0, ap(bJ), 0, 0, DOWN))) | |
528 | + | let co = fraction(cn, (ch - 100), 100) | |
529 | + | if ((ci == bI)) | |
530 | + | then $Tuple3((as + co), au, d) | |
531 | + | else $Tuple3(as, (au + co), d) | |
532 | + | } | |
533 | + | else $Tuple3(as, au, e) | |
534 | + | let cp = ck._1 | |
535 | + | let cq = ck._2 | |
536 | + | let bV = ck._3 | |
537 | + | let cr = if ((ab == a)) | |
538 | + | then ar(ad, bV, cp, bI, cq, bJ, aw, ax, ay) | |
539 | + | else aR(ad, bV, as, bI, au, bJ, ay) | |
540 | + | let cs = cr._1 | |
541 | + | let bM = cr._2 | |
542 | + | $Tuple2(nil, cs) | |
543 | + | } | |
544 | + | ||
545 | + | ||
546 | + | ||
547 | + | @Callable(P) | |
548 | + | func replenish (ad,ch,ci) = if (if ((100 > ch)) | |
549 | + | then true | |
550 | + | else (ch > 300)) | |
551 | + | then throw("Leverage can't be <100 and >300") | |
552 | + | else { | |
553 | + | let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
554 | + | let ct = aa(Address(fromBase58String(ad)), ab) | |
555 | + | let bI = ct._1 | |
556 | + | let bJ = ct._2 | |
557 | + | let aw = ct._3 | |
558 | + | let ax = ct._4 | |
559 | + | let ay = ct._5 | |
560 | + | let cu = if ((size(P.payments) == 2)) | |
518 | 561 | then if ((an(P.payments[0].assetId) != bI)) | |
519 | 562 | then throw("Wrong payment asset A") | |
520 | 563 | else if ((an(P.payments[1].assetId) != bJ)) | |
521 | 564 | then throw("Wrong payment asset B") | |
522 | 565 | else $Tuple4(P.payments[0].amount, bI, P.payments[1].amount, bJ) | |
523 | 566 | else if ((size(P.payments) == 1)) | |
524 | 567 | then if ((an(P.payments[0].assetId) == bI)) | |
525 | 568 | then $Tuple4(P.payments[0].amount, bI, 0, bJ) | |
526 | 569 | else if ((an(P.payments[0].assetId) == bJ)) | |
527 | 570 | then $Tuple4(0, bI, P.payments[0].amount, bJ) | |
528 | 571 | else throw("Wrong payment") | |
529 | 572 | else throw("One or two payments expected") | |
530 | - | let as = | |
531 | - | let at = | |
532 | - | let au = | |
533 | - | let av = | |
534 | - | let | |
573 | + | let as = cu._1 | |
574 | + | let at = cu._2 | |
575 | + | let au = cu._3 | |
576 | + | let av = cu._4 | |
577 | + | let cv = ae(ad, toString(P.caller)) | |
535 | 578 | if ((ch > 100)) | |
536 | 579 | then { | |
537 | - | let | |
580 | + | let cl = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
538 | 581 | if ($isInstanceOf(Z, "(Int, Int)")) | |
539 | 582 | then Z | |
540 | 583 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
541 | - | let | |
584 | + | let cm = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
542 | 585 | if ($isInstanceOf(Z, "(Int, Int)")) | |
543 | 586 | then Z | |
544 | 587 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let Z = invoke(this, "createNewRequest", [ | |
588 | + | let cn = (fraction(cl, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cm, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
589 | + | let co = fraction(cn, (ch - 100), 100) | |
590 | + | let cw = makeString([ab, toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, ci, toString(co), toString(cv)], ",") | |
591 | + | let cx = { | |
592 | + | let Z = invoke(this, "createNewRequest", [cw], nil) | |
550 | 593 | if ($isInstanceOf(Z, "Int")) | |
551 | 594 | then Z | |
552 | 595 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
553 | 596 | } | |
554 | - | if (( | |
597 | + | if ((cx == cx)) | |
555 | 598 | then { | |
556 | - | let | |
557 | - | let bg = reentrantInvoke(am(), "flashPosition", | |
599 | + | let cy = [((toString(P.caller) + "_") + toString(cv)), ay, ci, co, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cx, "Can't create new request"))] | |
600 | + | let bg = reentrantInvoke(am(), "flashPosition", cy, nil) | |
558 | 601 | if ((bg == bg)) | |
559 | 602 | then nil | |
560 | 603 | else throw("Strict value is not equal to itself.") | |
561 | 604 | } | |
562 | 605 | else throw("Strict value is not equal to itself.") | |
563 | 606 | } | |
564 | 607 | else { | |
565 | - | let | |
608 | + | let cz = if ((ab == a)) | |
566 | 609 | then ar(ad, e, as, at, au, av, aw, ax, ay) | |
567 | 610 | else aR(ad, e, as, at, au, av, ay) | |
568 | - | let | |
569 | - | let bM = | |
570 | - | aZ(ad, toString(P.caller), | |
611 | + | let cs = cz._1 | |
612 | + | let bM = cz._2 | |
613 | + | aZ(ad, toString(P.caller), cs, bM, cv, ay, ab) | |
571 | 614 | } | |
572 | 615 | } | |
573 | 616 | ||
574 | 617 | ||
575 | 618 | ||
576 | 619 | @Callable(P) | |
577 | - | func replenishFromLand ( | |
578 | - | let | |
620 | + | func replenishFromLand (cA) = { | |
621 | + | let cw = split(valueOrErrorMessage(getString(this, (cA + y)), ("No request with id " + cA)), ",") | |
579 | 622 | if ((size(P.payments) != 1)) | |
580 | 623 | then throw("Wrong payment size") | |
581 | - | else if (if ((an(P.payments[0].assetId) != | |
624 | + | else if (if ((an(P.payments[0].assetId) != cw[10])) | |
582 | 625 | then true | |
583 | - | else (P.payments[0].amount != parseIntValue( | |
626 | + | else (P.payments[0].amount != parseIntValue(cw[11]))) | |
584 | 627 | then throw("Wrong payment") | |
585 | 628 | else { | |
586 | - | let as = if (( | |
587 | - | then (parseIntValue( | |
588 | - | else parseIntValue( | |
589 | - | let au = if (( | |
590 | - | then (parseIntValue( | |
591 | - | else parseIntValue( | |
592 | - | let ad = | |
593 | - | let af = | |
594 | - | let ay = | |
595 | - | let bb = parseIntValue( | |
596 | - | let | |
597 | - | then ar(ad, d, as, | |
598 | - | else if (( | |
599 | - | then aR(ad, d, as, | |
629 | + | let as = if ((cw[4] == an(P.payments[0].assetId))) | |
630 | + | then (parseIntValue(cw[3]) + P.payments[0].amount) | |
631 | + | else parseIntValue(cw[3]) | |
632 | + | let au = if ((cw[6] == an(P.payments[0].assetId))) | |
633 | + | then (parseIntValue(cw[5]) + P.payments[0].amount) | |
634 | + | else parseIntValue(cw[3]) | |
635 | + | let ad = cw[2] | |
636 | + | let af = cw[1] | |
637 | + | let ay = cw[9] | |
638 | + | let bb = parseIntValue(cw[12]) | |
639 | + | let cB = if ((cw[0] == a)) | |
640 | + | then ar(ad, d, as, cw[4], au, cw[6], parseIntValue(cw[7]), parseIntValue(cw[8]), ay) | |
641 | + | else if ((cw[0] == b)) | |
642 | + | then aR(ad, d, as, cw[4], au, cw[6], ay) | |
600 | 643 | else throw("Wrong request type") | |
601 | - | let | |
602 | - | let bM = | |
603 | - | let | |
604 | - | let | |
605 | - | $Tuple2((( | |
644 | + | let cs = cB._1 | |
645 | + | let bM = cB._2 | |
646 | + | let cC = [IntegerEntry((((((cw[2] + "_") + cw[1]) + "_") + cw[12]) + p), P.payments[0].amount), StringEntry((((((cw[2] + "_") + cw[1]) + "_") + cw[12]) + q), cw[10])] | |
647 | + | let cD = aZ(ad, af, cs, bM, bb, ay, cw[0]) | |
648 | + | $Tuple2(((cD ++ cC) :+ DeleteEntry((cA + y))), cs) | |
606 | 649 | } | |
607 | 650 | } | |
608 | 651 | ||
609 | 652 | ||
610 | 653 | ||
611 | 654 | @Callable(P) | |
612 | - | func withdraw (ad, | |
655 | + | func withdraw (ad,cE) = { | |
613 | 656 | let af = toString(P.caller) | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
657 | + | let cF = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
658 | + | let cG = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(cE)) + o)), "Unknown position") | |
659 | + | let cH = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cE)) + s)) | |
660 | + | let cI = getIntegerValue(this, (ad + u)) | |
661 | + | let cJ = ac(ad) | |
662 | + | let cK = (cG + fraction(cG, (cI - cH), g)) | |
620 | 663 | let W = Address(fromBase58String(ad)) | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let bQ = | |
626 | - | let bR = | |
627 | - | let aw = | |
628 | - | let ax = | |
629 | - | let ay = | |
630 | - | let | |
631 | - | if (( | |
664 | + | let cL = Address(fromBase58String(af)) | |
665 | + | let co = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cE)) + p)) | |
666 | + | let cM = getStringValue(this, (((((ad + "_") + af) + "_") + toString(cE)) + q)) | |
667 | + | let cN = aa(Address(fromBase58String(ad)), cF) | |
668 | + | let bQ = cN._1 | |
669 | + | let bR = cN._2 | |
670 | + | let aw = cN._3 | |
671 | + | let ax = cN._4 | |
672 | + | let ay = cN._5 | |
673 | + | let cO = Q(ao(bQ)) | |
674 | + | if ((cO == cO)) | |
632 | 675 | then { | |
633 | - | let | |
634 | - | if (( | |
676 | + | let cP = Q(ao(bR)) | |
677 | + | if ((cP == cP)) | |
635 | 678 | then { | |
636 | - | let bg = if (( | |
637 | - | then invoke(W, "callFunction", ["withdraw", [toString( | |
638 | - | else if (( | |
639 | - | then invoke(W, "unstakeAndGet", [ | |
679 | + | let bg = if ((cF == a)) | |
680 | + | then invoke(W, "callFunction", ["withdraw", [toString(cK)]], nil) | |
681 | + | else if ((cF == b)) | |
682 | + | then invoke(W, "unstakeAndGet", [cK], nil) | |
640 | 683 | else throw("Wrong position type") | |
641 | 684 | if ((bg == bg)) | |
642 | 685 | then { | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
686 | + | let cQ = Q(ao(bQ)) | |
687 | + | let cR = Q(ao(bR)) | |
688 | + | let cS = $Tuple2((cQ - cO), (cR - cP)) | |
689 | + | let cT = cS._1 | |
690 | + | let cU = cS._2 | |
691 | + | let cV = if ((co > 0)) | |
649 | 692 | then { | |
650 | - | let | |
651 | - | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString( | |
693 | + | let cW = { | |
694 | + | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(cE)), cM], nil) | |
652 | 695 | if ($isInstanceOf(Z, "Int")) | |
653 | 696 | then Z | |
654 | 697 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
655 | 698 | } | |
656 | - | let | |
657 | - | then ( | |
699 | + | let cX = if (if ((cM == bQ)) | |
700 | + | then (cW > cT) | |
658 | 701 | else false) | |
659 | - | then ( | |
660 | - | else if (if (( | |
661 | - | then ( | |
702 | + | then (cW - cT) | |
703 | + | else if (if ((cM == bR)) | |
704 | + | then (cW > cU) | |
662 | 705 | else false) | |
663 | - | then ( | |
706 | + | then (cW - cU) | |
664 | 707 | else 0 | |
665 | - | let | |
666 | - | then cg( | |
708 | + | let cY = if ((cX > 0)) | |
709 | + | then cg(cF, ad, bQ, bR, aw, ax, cX, cM) | |
667 | 710 | else 0 | |
668 | - | if (( | |
711 | + | if ((cY == cY)) | |
669 | 712 | then { | |
670 | - | let | |
671 | - | if (( | |
713 | + | let cZ = invoke(am(), "repayFor", [((af + "_") + toString(cE))], [AttachedPayment(ao(cM), cW)]) | |
714 | + | if ((cZ == cZ)) | |
672 | 715 | then { | |
673 | - | let | |
674 | - | let | |
675 | - | $Tuple2(( | |
716 | + | let da = Q(ao(bQ)) | |
717 | + | let db = Q(ao(bR)) | |
718 | + | $Tuple2((da - cO), (db - cP)) | |
676 | 719 | } | |
677 | 720 | else throw("Strict value is not equal to itself.") | |
678 | 721 | } | |
679 | 722 | else throw("Strict value is not equal to itself.") | |
680 | 723 | } | |
681 | - | else $Tuple2( | |
682 | - | let | |
683 | - | let | |
684 | - | [DeleteEntry((((((ad + "_") + af) + "_") + toString( | |
724 | + | else $Tuple2(cT, cU) | |
725 | + | let dc = cV._1 | |
726 | + | let dd = cV._2 | |
727 | + | [DeleteEntry((((((ad + "_") + af) + "_") + toString(cE)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(cE)) + s)), IntegerEntry((ad + t), (cJ - cK)), ScriptTransfer(cL, cT, ao(bQ)), ScriptTransfer(cL, cU, ao(bR))] | |
685 | 728 | } | |
686 | 729 | else throw("Strict value is not equal to itself.") | |
687 | 730 | } | |
688 | 731 | else throw("Strict value is not equal to itself.") | |
689 | 732 | } | |
690 | 733 | else throw("Strict value is not equal to itself.") | |
691 | 734 | } | |
692 | 735 | ||
693 | 736 | ||
694 | 737 | ||
695 | 738 | @Callable(P) | |
696 | - | func createNewRequest ( | |
697 | - | let | |
698 | - | $Tuple2([StringEntry((toString( | |
739 | + | func createNewRequest (de) = valueOrElse(O(P), { | |
740 | + | let cx = (valueOrElse(getInteger(this, z), 0) + 1) | |
741 | + | $Tuple2([StringEntry((toString(cx) + y), de), IntegerEntry(z, cx)], cx) | |
699 | 742 | }) | |
700 | 743 | ||
701 | 744 | ||
702 | 745 | ||
703 | 746 | @Callable(P) | |
704 | - | func capitalizeExKeeper (ad,ab, | |
705 | - | let | |
747 | + | func capitalizeExKeeper (ad,ab,df,dg,dh,bm,bn,bo,bp,bq,br,bs) = { | |
748 | + | let di = if (dh) | |
706 | 749 | then be(ab, ad) | |
707 | 750 | else { | |
708 | - | let | |
751 | + | let dj = if ((ab == a)) | |
709 | 752 | then M | |
710 | 753 | else N | |
711 | - | $Tuple2( | |
754 | + | $Tuple2(dg, dj) | |
712 | 755 | } | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let aG = ( | |
717 | - | let | |
756 | + | let dk = di._1 | |
757 | + | let dj = di._2 | |
758 | + | let dl = bi(df, dg, dj, bm, bn, bo, bp, bq, br, bs) | |
759 | + | let aG = (dk - dg) | |
760 | + | let dm = if ((aG > 0)) | |
718 | 761 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
719 | 762 | else nil | |
720 | - | (bE(ad, ab, | |
763 | + | (bE(ad, ab, df, dl) ++ dm) | |
721 | 764 | } | |
722 | 765 | ||
723 | 766 | ||
724 | 767 | ||
725 | 768 | @Callable(P) | |
726 | - | func capitalizeExPazzle (ad,ab, | |
727 | - | let | |
769 | + | func capitalizeExPazzle (ad,ab,df,dg,dh,bv,bw,bs) = { | |
770 | + | let dn = if (dh) | |
728 | 771 | then be(ab, ad) | |
729 | 772 | else { | |
730 | - | let | |
773 | + | let dj = if ((ab == a)) | |
731 | 774 | then M | |
732 | 775 | else N | |
733 | - | $Tuple2( | |
776 | + | $Tuple2(dg, dj) | |
734 | 777 | } | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let aG = ( | |
739 | - | let | |
778 | + | let dk = dn._1 | |
779 | + | let dj = dn._2 | |
780 | + | let dl = bu(df, dg, dj, bv, bw, bs) | |
781 | + | let aG = (dk - dg) | |
782 | + | let dm = if ((aG > 0)) | |
740 | 783 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
741 | 784 | else nil | |
742 | - | (bE(ad, ab, | |
785 | + | (bE(ad, ab, df, dl) ++ dm) | |
743 | 786 | } | |
744 | 787 | ||
745 | 788 | ||
746 | 789 | ||
747 | 790 | @Callable(P) | |
748 | - | func capitalizeExSwopFi (ad,ab, | |
749 | - | let | |
791 | + | func capitalizeExSwopFi (ad,ab,df,dg,dh,by,bz,bA,bB,bC,bD,bs) = { | |
792 | + | let do = if (dh) | |
750 | 793 | then be(ab, ad) | |
751 | 794 | else { | |
752 | - | let | |
795 | + | let dj = if ((ab == a)) | |
753 | 796 | then M | |
754 | 797 | else N | |
755 | - | $Tuple2( | |
798 | + | $Tuple2(dg, dj) | |
756 | 799 | } | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | let aG = ( | |
761 | - | let | |
800 | + | let dk = do._1 | |
801 | + | let dj = do._2 | |
802 | + | let dl = bx(df, dg, dj, by, bz, bA, bB, bC, bD, bs) | |
803 | + | let aG = (dk - dg) | |
804 | + | let dm = if ((aG > 0)) | |
762 | 805 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
763 | 806 | else nil | |
764 | - | (bE(ad, ab, | |
807 | + | (bE(ad, ab, df, dl) ++ dm) | |
765 | 808 | } | |
766 | 809 | ||
767 | 810 | ||
768 | 811 | ||
769 | 812 | @Callable(P) | |
770 | - | func initNewPool (ab,W, | |
813 | + | func initNewPool (ab,W,dp,dq,dr) = if (if ((ab != a)) | |
771 | 814 | then (ab != b) | |
772 | 815 | else false) | |
773 | 816 | then throw("Wrong type") | |
774 | - | else [IntegerEntry((W + v), | |
817 | + | else [IntegerEntry((W + v), dp), IntegerEntry((W + w), dq), IntegerEntry((W + x), dr), IntegerEntry((W + u), 0), StringEntry((A + W), ab)] | |
775 | 818 | ||
776 | 819 | ||
777 | - | @Verifier( | |
778 | - | func | |
820 | + | @Verifier(ds) | |
821 | + | func dt () = sigVerify(ds.bodyBytes, ds.proofs[0], ds.senderPublicKey) | |
779 | 822 |
github/deemru/w8io/169f3d6 151.52 ms ◑