tx · EZNFSYbgohqpQ45C95hGygTi21AKPpukwGDFVVBYLwaU 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02200000 Waves 2022.11.01 13:52 [2297955] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "EZNFSYbgohqpQ45C95hGygTi21AKPpukwGDFVVBYLwaU", "fee": 2200000, "feeAssetId": null, "timestamp": 1667299974151, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "41wvSowg57LBvVj3XXwYXnNXQCynuLmD856MgkC4NBcibgnJxgfATGK2g2TUMYDoKttm9By8CrG6wsk75pbxbY9N" ], "script": "base64:BgKpIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgVhc0ludCIGdmFsSW50Ighhc1N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gZXF1YWwgdG8gaXRzZWxmLgECZFcBAmRYAAQCZFkEAXoJAQJidQADCQABAgUBegIKQnl0ZVZlY3RvcgQCYkEFAXoFAmJBAwkAAQIFAXoCBFVuaXQIBQJkVw9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZFcJYm9keUJ5dGVzCQCRAwIIBQJkVwZwcm9vZnMAAAUCZFmzI+dp", "chainId": 84, "height": 2297955, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BDVfxpT1Ek6KKL2ChQFgUsLnkoYP7fEpooxhKK9ZGniV Next: oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP Diff:
Old | New | Differences | |
---|---|---|---|
504 | 504 | let di = B(invoke(aU, "fromX18WrapperREADONLY", [df[2], b], nil)) | |
505 | 505 | let bg = getIntegerValue(aX, V(toString(aU))) | |
506 | 506 | let dj = aT(aU) | |
507 | - | let dk = { | |
508 | - | let bW = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
509 | - | if ($isInstanceOf(bW, "Boolean")) | |
510 | - | then bW | |
511 | - | else throw(($getType(bW) + " couldn't be cast to Boolean")) | |
512 | - | } | |
513 | - | let dl = !(dk) | |
514 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj), toString(dl)], e)) | |
507 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj)], e)) | |
515 | 508 | } | |
516 | 509 | ||
517 | 510 | ||
518 | 511 | ||
519 | 512 | @Callable(by) | |
520 | - | func poolEvaluatePutByAmountAssetREADONLY (cU, | |
513 | + | func poolEvaluatePutByAmountAssetREADONLY (cU,dk) = { | |
521 | 514 | let aU = addressFromStringValue(t(aX, U(cU))) | |
522 | 515 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
523 | 516 | let bd = fromBase58String(D(cV[j])) | |
524 | - | let dn = D(cV[k]) | |
517 | + | let dl = D(cV[k]) | |
518 | + | let dm = fromBase58String(dl) | |
519 | + | let dn = D(cV[l]) | |
525 | 520 | let do = fromBase58String(dn) | |
526 | - | let dp = D(cV[l]) | |
527 | - | let dq = fromBase58String(dp) | |
528 | 521 | let da = parseIntValue(D(cV[m])) | |
529 | 522 | let db = parseIntValue(D(cV[n])) | |
530 | - | let | |
523 | + | let dp = D(cV[i]) | |
531 | 524 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
532 | - | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
533 | - | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
525 | + | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dl], nil)) | |
526 | + | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
527 | + | let dq = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dd, da], nil))) | |
528 | + | let dr = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [de, db], nil))) | |
529 | + | let ds = if ((dc == 0)) | |
537 | 530 | then g | |
538 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
539 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, | |
544 | - | let | |
531 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dr), toString(dq)], nil))) | |
532 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(ds), b], nil)) | |
533 | + | let dt = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dk, da], nil))) | |
534 | + | let du = fraction(dt, ds, d) | |
535 | + | let dv = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), db], nil)) | |
536 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dk, dm, dv, do, "", true, false], nil) | |
537 | + | let dw = { | |
545 | 538 | let z = bX | |
546 | 539 | if (if (if ($isInstanceOf(z._1, "Int")) | |
547 | 540 | then if ($isInstanceOf(z._3, "Int")) | |
555 | 548 | then (size(z) == 13) | |
556 | 549 | else false) | |
557 | 550 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | $Tuple5(dz, dA, dB | |
551 | + | let dx = z._1 | |
552 | + | let dy = z._3 | |
553 | + | let dz = z._4 | |
554 | + | let dA = z._5 | |
555 | + | let dB = z._6 | |
556 | + | $Tuple5(dx, dy, dz, dA, dB) | |
564 | 557 | } | |
565 | 558 | else throw("Couldn't cast types") | |
566 | 559 | } | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
560 | + | let dx = dw._1 | |
561 | + | let dy = dw._2 | |
562 | + | let dz = dw._3 | |
563 | + | let dA = dw._4 | |
564 | + | let dB = dw._5 | |
565 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dx), toString(dg), toString(dz), toString(dA), toString(dB), dp, toString(dk), toString(dv)], e)) | |
573 | 566 | } | |
574 | 567 | ||
575 | 568 | ||
576 | 569 | ||
577 | 570 | @Callable(by) | |
578 | - | func poolEvaluatePutByPriceAssetREADONLY (cU, | |
571 | + | func poolEvaluatePutByPriceAssetREADONLY (cU,dv) = { | |
579 | 572 | let aU = addressFromStringValue(t(aX, U(cU))) | |
580 | 573 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
581 | 574 | let bd = fromBase58String(D(cV[j])) | |
582 | - | let dn = D(cV[k]) | |
575 | + | let dl = D(cV[k]) | |
576 | + | let dm = fromBase58String(dl) | |
577 | + | let dn = D(cV[l]) | |
583 | 578 | let do = fromBase58String(dn) | |
584 | - | let dp = D(cV[l]) | |
585 | - | let dq = fromBase58String(dp) | |
586 | 579 | let da = parseIntValue(D(cV[m])) | |
587 | 580 | let db = parseIntValue(D(cV[n])) | |
588 | - | let | |
581 | + | let dp = D(cV[i]) | |
589 | 582 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
583 | + | let dC = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dl], nil)) | |
584 | + | let dD = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
585 | + | let dE = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dC, da], nil))) | |
586 | + | let dF = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dD, db], nil))) | |
587 | + | let ds = if ((dc == 0)) | |
595 | 588 | then g | |
596 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
597 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, | |
602 | - | let | |
589 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dF), toString(dE)], nil))) | |
590 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(ds), b], nil)) | |
591 | + | let du = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dv, db], nil))) | |
592 | + | let dt = fraction(du, d, ds) | |
593 | + | let dk = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dt), da], nil)) | |
594 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dk, dm, dv, do, "", true, false], nil) | |
595 | + | let dG = { | |
603 | 596 | let z = bX | |
604 | 597 | if (if (if ($isInstanceOf(z._1, "Int")) | |
605 | 598 | then if ($isInstanceOf(z._3, "Int")) | |
613 | 606 | then (size(z) == 13) | |
614 | 607 | else false) | |
615 | 608 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | $Tuple5(dz, dA, dB | |
609 | + | let dx = z._1 | |
610 | + | let dy = z._3 | |
611 | + | let dz = z._4 | |
612 | + | let dA = z._5 | |
613 | + | let dB = z._6 | |
614 | + | $Tuple5(dx, dy, dz, dA, dB) | |
622 | 615 | } | |
623 | 616 | else throw("Couldn't cast types") | |
624 | 617 | } | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
618 | + | let dx = dG._1 | |
619 | + | let dy = dG._2 | |
620 | + | let dz = dG._3 | |
621 | + | let dA = dG._4 | |
622 | + | let dB = dG._5 | |
623 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dx), toString(dg), toString(dz), toString(dA), toString(dB), dp, toString(dk), toString(dv)], e)) | |
631 | 624 | } | |
632 | 625 | ||
633 | 626 | ||
634 | 627 | ||
635 | 628 | @Callable(by) | |
636 | - | func poolEvaluateGetREADONLY ( | |
637 | - | let aU = addressFromStringValue(t(aX, U( | |
638 | - | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", | |
639 | - | let | |
629 | + | func poolEvaluateGetREADONLY (dH,dI) = { | |
630 | + | let aU = addressFromStringValue(t(aX, U(dH))) | |
631 | + | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dH, dI, toString(aU)], nil) | |
632 | + | let dJ = { | |
640 | 633 | let z = bX | |
641 | 634 | if (if (if ($isInstanceOf(z._1, "Int")) | |
642 | 635 | then if ($isInstanceOf(z._2, "Int")) | |
654 | 647 | then (size(z) == 10) | |
655 | 648 | else false) | |
656 | 649 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
650 | + | let dK = z._1 | |
651 | + | let dL = z._2 | |
652 | + | let dz = z._5 | |
653 | + | let dA = z._6 | |
654 | + | let dB = z._7 | |
662 | 655 | let dg = z._8 | |
663 | - | let | |
664 | - | $Tuple7( | |
656 | + | let dp = z._9 | |
657 | + | $Tuple7(dK, dL, dz, dA, dB, dg, dp) | |
665 | 658 | } | |
666 | 659 | else throw("Couldn't cast types") | |
667 | 660 | } | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let dg = | |
674 | - | let | |
675 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
661 | + | let dK = dJ._1 | |
662 | + | let dL = dJ._2 | |
663 | + | let dz = dJ._3 | |
664 | + | let dA = dJ._4 | |
665 | + | let dB = dJ._5 | |
666 | + | let dg = dJ._6 | |
667 | + | let dp = dJ._7 | |
668 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dK), toString(dL), toString(dz), toString(dA), toString(dB), dg, dp], e)) | |
676 | 669 | } | |
677 | 670 | ||
678 | 671 | ||
679 | 672 | ||
680 | 673 | @Callable(by) | |
681 | 674 | func gwxUserInfoREADONLY (am) = { | |
682 | - | let | |
683 | - | let | |
684 | - | $Tuple2(nil, makeString(["%d", toString( | |
675 | + | let dM = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
676 | + | let dN = B(dM[0]) | |
677 | + | $Tuple2(nil, makeString(["%d", toString(dN)], e)) | |
685 | 678 | } | |
686 | 679 | ||
687 | 680 | ||
688 | 681 | ||
689 | 682 | @Callable(by) | |
690 | - | func setManager (dQ) = { | |
683 | + | func unstakeAndGetOneTknV2 (aU,dO,dP,dQ) = { | |
684 | + | let bY = invoke(addressFromStringValue(aU), "unstakeAndGetOneTknV2", [dO, dP, dQ], nil) | |
685 | + | if ((bY == bY)) | |
686 | + | then $Tuple2(nil, unit) | |
687 | + | else throw("Strict value is not equal to itself.") | |
688 | + | } | |
689 | + | ||
690 | + | ||
691 | + | ||
692 | + | @Callable(by) | |
693 | + | func setManager (dR) = { | |
691 | 694 | let bC = bx(by) | |
692 | 695 | if ((bC == bC)) | |
693 | 696 | then { | |
694 | - | let | |
695 | - | if (( | |
696 | - | then [StringEntry(H(), | |
697 | + | let dS = fromBase58String(dR) | |
698 | + | if ((dS == dS)) | |
699 | + | then [StringEntry(H(), dR)] | |
697 | 700 | else throw("Strict value is not equal to itself.") | |
698 | 701 | } | |
699 | 702 | else throw("Strict value is not equal to itself.") | |
703 | 706 | ||
704 | 707 | @Callable(by) | |
705 | 708 | func confirmManager () = { | |
706 | - | let | |
707 | - | let | |
709 | + | let dT = bw() | |
710 | + | let dU = if (isDefined(dT)) | |
708 | 711 | then true | |
709 | 712 | else throw("No pending manager") | |
710 | - | if (( | |
713 | + | if ((dU == dU)) | |
711 | 714 | then { | |
712 | - | let | |
715 | + | let dV = if ((by.callerPublicKey == value(dT))) | |
713 | 716 | then true | |
714 | 717 | else throw("You are not pending manager") | |
715 | - | if (( | |
716 | - | then [StringEntry(G(), toBase58String(value( | |
718 | + | if ((dV == dV)) | |
719 | + | then [StringEntry(G(), toBase58String(value(dT))), DeleteEntry(H())] | |
717 | 720 | else throw("Strict value is not equal to itself.") | |
718 | 721 | } | |
719 | 722 | else throw("Strict value is not equal to itself.") | |
720 | 723 | } | |
721 | 724 | ||
722 | 725 | ||
723 | - | @Verifier( | |
724 | - | func | |
725 | - | let | |
726 | + | @Verifier(dW) | |
727 | + | func dX () = { | |
728 | + | let dY = { | |
726 | 729 | let z = bu() | |
727 | 730 | if ($isInstanceOf(z, "ByteVector")) | |
728 | 731 | then { | |
730 | 733 | bA | |
731 | 734 | } | |
732 | 735 | else if ($isInstanceOf(z, "Unit")) | |
733 | - | then | |
736 | + | then dW.senderPublicKey | |
734 | 737 | else throw("Match error") | |
735 | 738 | } | |
736 | - | sigVerify( | |
739 | + | sigVerify(dW.bodyBytes, dW.proofs[0], dY) | |
737 | 740 | } | |
738 | 741 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 3 | |
23 | 23 | ||
24 | 24 | let k = 4 | |
25 | 25 | ||
26 | 26 | let l = 5 | |
27 | 27 | ||
28 | 28 | let m = 6 | |
29 | 29 | ||
30 | 30 | let n = 7 | |
31 | 31 | ||
32 | 32 | let o = 8 | |
33 | 33 | ||
34 | 34 | let p = 9 | |
35 | 35 | ||
36 | 36 | let q = 10 | |
37 | 37 | ||
38 | 38 | func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func v (u,s) = valueOrElse(getInteger(u, s), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (y) = { | |
51 | 51 | let z = y | |
52 | 52 | if ($isInstanceOf(z, "List[Any]")) | |
53 | 53 | then { | |
54 | 54 | let A = z | |
55 | 55 | A | |
56 | 56 | } | |
57 | 57 | else throw("fail to cast into List[Any]") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (y) = { | |
62 | 62 | let z = y | |
63 | 63 | if ($isInstanceOf(z, "Int")) | |
64 | 64 | then { | |
65 | 65 | let C = z | |
66 | 66 | C | |
67 | 67 | } | |
68 | 68 | else throw("fail to cast into Int") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func D (y) = { | |
73 | 73 | let z = y | |
74 | 74 | if ($isInstanceOf(z, "String")) | |
75 | 75 | then { | |
76 | 76 | let E = z | |
77 | 77 | E | |
78 | 78 | } | |
79 | 79 | else throw("fail to cast into String") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F () = "%s%s__config__factoryAddress" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G () = "%s__managerPublicKey" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H () = "%s__pendingManagerPublicKey" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let I = 1 | |
93 | 93 | ||
94 | 94 | let J = 2 | |
95 | 95 | ||
96 | 96 | let K = 3 | |
97 | 97 | ||
98 | 98 | let L = 4 | |
99 | 99 | ||
100 | 100 | let M = 5 | |
101 | 101 | ||
102 | 102 | let N = 6 | |
103 | 103 | ||
104 | 104 | let O = 7 | |
105 | 105 | ||
106 | 106 | let P = 8 | |
107 | 107 | ||
108 | 108 | func Q () = "%s__factoryConfig" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func T () = "%s__lpTokensList" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func X () = addressFromStringValue(r(F())) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func Y () = split(valueOrElse(getString(X(), T()), ""), e) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func Z (aa) = split(t(aa, Q()), e) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ab (ac) = addressFromStringValue(ac[J]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ad (ac) = addressFromStringValue(ac[M]) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ae (ac) = addressFromStringValue(ac[I]) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func af (ac) = addressFromStringValue(ac[P]) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ag () = "%s__config" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ah () = "%s%s__stats__activeTotalLocked" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ai () = "%s%s__stats__locksDurationSumInBlocks" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aj () = "%s%s__stats__locksCount" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ak () = "%s%s__stats__activeUsersCount" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func al (am) = makeString(["%s%s%s__mapping__user2num", am], e) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func az (aq) = makeString(["%s%d__maxBoostInt", aq], e) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aA () = "%s%s__maxBoostInt__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func aD () = "%s%s__gwxCached__total" | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aH (aG) = ("%s%s%s__staked__total__" + aG) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aL (aM,s) = valueOrElse(getInteger(aM, s), 0) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aN () = "%s%s__ratePerBlock__current" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aO () = "%s%s__ratePerBlockMax__current" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aP () = "%s%s__emission__startBlock" | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aQ () = "%s%s__emission__duration" | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func aR () = "%s%s__emission__endBlock" | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func aS () = "%s__addonAddr" | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aT (aU) = { | |
241 | 241 | let aV = fraction(5, b, 10000) | |
242 | 242 | let aW = "%s__fee" | |
243 | 243 | valueOrElse(getInteger(aU, aW), aV) | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | let aX = X() | |
248 | 248 | ||
249 | 249 | let aY = Z(aX) | |
250 | 250 | ||
251 | 251 | let aZ = ad(aY) | |
252 | 252 | ||
253 | 253 | let aM = ae(aY) | |
254 | 254 | ||
255 | 255 | let ba = af(aY) | |
256 | 256 | ||
257 | 257 | let bb = ab(aY) | |
258 | 258 | ||
259 | 259 | func bc (bd) = { | |
260 | 260 | let be = t(aX, U(bd)) | |
261 | 261 | let bf = b | |
262 | 262 | let bg = getIntegerValue(aX, V(be)) | |
263 | 263 | let bh = w(aZ, aN()) | |
264 | 264 | let bi = w(aZ, aO()) | |
265 | 265 | let bj = 3 | |
266 | 266 | let bk = (fraction(bh, bg, bf) / bj) | |
267 | 267 | let bl = fraction(bi, bg, bf) | |
268 | 268 | let bm = (bj * b) | |
269 | 269 | let bn = v(aM, aH(bd)) | |
270 | 270 | [bk, bm, bn] | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bo (bp,bq,br) = { | |
275 | 275 | let bs = fraction(bq, b, br) | |
276 | 276 | let bt = fraction(bp, bs, b) | |
277 | 277 | [bt] | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bu () = { | |
282 | 282 | let z = getString(G()) | |
283 | 283 | if ($isInstanceOf(z, "String")) | |
284 | 284 | then { | |
285 | 285 | let bv = z | |
286 | 286 | fromBase58String(bv) | |
287 | 287 | } | |
288 | 288 | else if ($isInstanceOf(z, "Unit")) | |
289 | 289 | then unit | |
290 | 290 | else throw("Match error") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func bw () = { | |
295 | 295 | let z = getString(H()) | |
296 | 296 | if ($isInstanceOf(z, "String")) | |
297 | 297 | then { | |
298 | 298 | let bv = z | |
299 | 299 | fromBase58String(bv) | |
300 | 300 | } | |
301 | 301 | else if ($isInstanceOf(z, "Unit")) | |
302 | 302 | then unit | |
303 | 303 | else throw("Match error") | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func bx (by) = { | |
308 | 308 | let bz = throw("Permission denied") | |
309 | 309 | let z = bu() | |
310 | 310 | if ($isInstanceOf(z, "ByteVector")) | |
311 | 311 | then { | |
312 | 312 | let bA = z | |
313 | 313 | if ((by.callerPublicKey == bA)) | |
314 | 314 | then true | |
315 | 315 | else bz | |
316 | 316 | } | |
317 | 317 | else if ($isInstanceOf(z, "Unit")) | |
318 | 318 | then if ((by.caller == this)) | |
319 | 319 | then true | |
320 | 320 | else bz | |
321 | 321 | else throw("Match error") | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Callable(by) | |
326 | 326 | func constructor (bB) = { | |
327 | 327 | let bC = bx(by) | |
328 | 328 | if ((bC == bC)) | |
329 | 329 | then [StringEntry(F(), bB)] | |
330 | 330 | else throw("Strict value is not equal to itself.") | |
331 | 331 | } | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | ||
335 | 335 | @Callable(by) | |
336 | 336 | func currentRewardRateREADONLY (bd) = { | |
337 | 337 | let bD = bc(bd) | |
338 | 338 | let bh = bD[0] | |
339 | 339 | let bm = bD[1] | |
340 | 340 | let bn = bD[2] | |
341 | 341 | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | ||
346 | 346 | @Callable(by) | |
347 | 347 | func currentUserRewardRateREADONLY (bd,am) = { | |
348 | 348 | let bD = bc(bd) | |
349 | 349 | let bh = bD[0] | |
350 | 350 | let bm = bD[1] | |
351 | 351 | let bn = bD[2] | |
352 | 352 | let bE = v(aM, aE(am, bd)) | |
353 | 353 | let bF = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
354 | 354 | let bG = valueOrErrorMessage(parseInt(bF[5]), "couldn't parse minRewardPart") | |
355 | 355 | let bH = valueOrErrorMessage(parseInt(bF[6]), "couldn't parse boostRewardPart") | |
356 | 356 | let bI = bF[7] | |
357 | 357 | let bJ = if ((bH == 0)) | |
358 | 358 | then (1 * b) | |
359 | 359 | else fraction((bG + bH), b, bG) | |
360 | 360 | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bE), toString(bJ), bI], e)) | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(by) | |
366 | 366 | func calcBoostBulkInternalREADONLY (bK,bL,bM,bN,bO,bP,bQ) = if ((bK == size(bL))) | |
367 | 367 | then $Tuple2(nil, bQ) | |
368 | 368 | else { | |
369 | 369 | let bR = bL[bK] | |
370 | 370 | let bS = bM[bK] | |
371 | 371 | let bT = bN[bK] | |
372 | 372 | let bU = bO[bK] | |
373 | 373 | let bV = { | |
374 | 374 | let bW = invoke(this, "calcBoostREADONLY", [bR, bS, bT, bU, bP], nil) | |
375 | 375 | if ($isInstanceOf(bW, "String")) | |
376 | 376 | then bW | |
377 | 377 | else throw(($getType(bW) + " couldn't be cast to String")) | |
378 | 378 | } | |
379 | 379 | let bX = (bQ :+ bV) | |
380 | 380 | let bY = { | |
381 | 381 | let bW = invoke(this, "calcBoostBulkInternalREADONLY", [(bK + 1), bL, bM, bN, bO, bP, bX], nil) | |
382 | 382 | if ($isInstanceOf(bW, "List[Any]")) | |
383 | 383 | then bW | |
384 | 384 | else throw(($getType(bW) + " couldn't be cast to List[Any]")) | |
385 | 385 | } | |
386 | 386 | if ((bY == bY)) | |
387 | 387 | then $Tuple2(nil, bY) | |
388 | 388 | else throw("Strict value is not equal to itself.") | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(by) | |
394 | 394 | func calcBoostBulkREADONLY (bR,bS,bT,bU,bP) = { | |
395 | 395 | let bX = invoke(this, "calcBoostBulkInternalREADONLY", [0, bR, bS, bT, bU, bP, nil], nil) | |
396 | 396 | $Tuple2(nil, bX) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(by) | |
402 | 402 | func calcBoostREADONLY (bR,bS,bT,bU,bP) = { | |
403 | 403 | let bZ = ba | |
404 | 404 | let ca = "empty" | |
405 | 405 | let cb = parseIntValue(split(t(bb, ag()), e)[4]) | |
406 | 406 | let aG = if ((bU == "")) | |
407 | 407 | then ca | |
408 | 408 | else bU | |
409 | 409 | let aF = if ((bP == "")) | |
410 | 410 | then ca | |
411 | 411 | else bP | |
412 | 412 | let cc = valueOrElse(getString(bb, al(bP)), ca) | |
413 | 413 | let cd = valueOrElse(getInteger(bb, ap(cc)), 0) | |
414 | 414 | let ce = valueOrElse(getInteger(bb, ar(cc)), height) | |
415 | 415 | let bq = valueOrElse(getInteger(bb, as(cc)), 0) | |
416 | 416 | let cf = (ce + bq) | |
417 | 417 | let cg = max([(cf - height), 0]) | |
418 | 418 | let ch = (cd + bR) | |
419 | 419 | let ci = min([(cg + bS), cb]) | |
420 | 420 | let cj = B(x(invoke(bb, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
421 | 421 | let ck = bo(ch, ci, cb)[0] | |
422 | 422 | let cl = x(invoke(bZ, "calcGwxParamsREADONLY", [ck, height, ci], nil)) | |
423 | 423 | let cm = (ck - cj) | |
424 | 424 | let cn = B(cl[0]) | |
425 | 425 | let co = B(cl[1]) | |
426 | 426 | let aw = toString(B(cl[2])) | |
427 | 427 | let cp = aA() | |
428 | 428 | let cq = aD() | |
429 | 429 | let cr = ((ck * ci) / 2) | |
430 | 430 | let cs = v(bb, cp) | |
431 | 431 | let ct = valueOrElse(getInteger(bb, cq), 0) | |
432 | 432 | let cu = 1000 | |
433 | 433 | let cv = (w(aZ, aN()) * cu) | |
434 | 434 | let cw = aE(aF, aG) | |
435 | 435 | let cx = aH(aG) | |
436 | 436 | let cy = aL(aM, cw) | |
437 | 437 | let cz = aL(aM, cx) | |
438 | 438 | let cA = (cy + bT) | |
439 | 439 | let cB = (cz + bT) | |
440 | 440 | let bg = if ((aG != ca)) | |
441 | 441 | then { | |
442 | 442 | let be = valueOrErrorMessage(getString(aX, R(aG)), ("unsupported lp asset " + aG)) | |
443 | 443 | getIntegerValue(aX, V(be)) | |
444 | 444 | } | |
445 | 445 | else 0 | |
446 | 446 | let cC = fraction(cv, bg, (f * 3)) | |
447 | 447 | let cD = if ((cB != 0)) | |
448 | 448 | then fraction(cC, b, cB) | |
449 | 449 | else 0 | |
450 | 450 | let cE = fraction(cD, cA, b) | |
451 | 451 | let cF = (cC * 2) | |
452 | 452 | let cG = fraction(ck, cF, (ct + cm)) | |
453 | 453 | let cH = min([cG, (cE * 2)]) | |
454 | 454 | let cI = if ((cE == 0)) | |
455 | 455 | then (1 * b) | |
456 | 456 | else fraction((cH + cE), b, cE) | |
457 | 457 | $Tuple2(nil, makeString(["%d%d%s", toString(ck), toString(cI), "d"], e)) | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | ||
462 | 462 | @Callable(by) | |
463 | 463 | func wxEmissionStatsREADONLY () = { | |
464 | 464 | let cJ = toString(b) | |
465 | 465 | let cK = "1" | |
466 | 466 | let bh = w(aZ, aN()) | |
467 | 467 | let cL = w(aZ, aP()) | |
468 | 468 | let cM = if ((cL > height)) | |
469 | 469 | then 0 | |
470 | 470 | else (height - cL) | |
471 | 471 | let cN = (1440 * 365) | |
472 | 472 | let cO = (201000000 * b) | |
473 | 473 | let cP = if ((cM > cN)) | |
474 | 474 | then cO | |
475 | 475 | else fraction(cO, cM, cN) | |
476 | 476 | let cQ = ((bh * cM) + cP) | |
477 | 477 | let cR = v(bb, ah()) | |
478 | 478 | let cS = v(bb, ai()) | |
479 | 479 | let cT = v(bb, aj()) | |
480 | 480 | $Tuple2(nil, makeString(["%d%d%d%d", toString(cQ), toString(cR), toString(cS), toString(cT)], e)) | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | 485 | @Callable(by) | |
486 | 486 | func poolStatsREADONLY (cU) = { | |
487 | 487 | let aU = addressFromStringValue(t(aX, U(cU))) | |
488 | 488 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
489 | 489 | let bd = fromBase58String(D(cV[j])) | |
490 | 490 | let cW = D(cV[k]) | |
491 | 491 | let cX = D(cV[l]) | |
492 | 492 | let cY = D(cV[o]) | |
493 | 493 | let cZ = D(cV[p]) | |
494 | 494 | let da = parseIntValue(D(cV[m])) | |
495 | 495 | let db = parseIntValue(D(cV[n])) | |
496 | 496 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
497 | 497 | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cW], nil)) | |
498 | 498 | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [cX], nil)) | |
499 | 499 | let df = if ((dc == 0)) | |
500 | 500 | then [toString(g), toString(g), toString(g)] | |
501 | 501 | else x(invoke(aU, "calcPricesWrapperREADONLY", [dd, de, dc], nil)) | |
502 | 502 | let dg = 0 | |
503 | 503 | let dh = B(invoke(aU, "fromX18WrapperREADONLY", [df[1], b], nil)) | |
504 | 504 | let di = B(invoke(aU, "fromX18WrapperREADONLY", [df[2], b], nil)) | |
505 | 505 | let bg = getIntegerValue(aX, V(toString(aU))) | |
506 | 506 | let dj = aT(aU) | |
507 | - | let dk = { | |
508 | - | let bW = invoke(aX, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aU)], nil) | |
509 | - | if ($isInstanceOf(bW, "Boolean")) | |
510 | - | then bW | |
511 | - | else throw(($getType(bW) + " couldn't be cast to Boolean")) | |
512 | - | } | |
513 | - | let dl = !(dk) | |
514 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj), toString(dl)], e)) | |
507 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dd), toString(de), toString(dc), toString(dg), toString(dh), toString(di), toString(bg), toString(dj)], e)) | |
515 | 508 | } | |
516 | 509 | ||
517 | 510 | ||
518 | 511 | ||
519 | 512 | @Callable(by) | |
520 | - | func poolEvaluatePutByAmountAssetREADONLY (cU, | |
513 | + | func poolEvaluatePutByAmountAssetREADONLY (cU,dk) = { | |
521 | 514 | let aU = addressFromStringValue(t(aX, U(cU))) | |
522 | 515 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
523 | 516 | let bd = fromBase58String(D(cV[j])) | |
524 | - | let dn = D(cV[k]) | |
517 | + | let dl = D(cV[k]) | |
518 | + | let dm = fromBase58String(dl) | |
519 | + | let dn = D(cV[l]) | |
525 | 520 | let do = fromBase58String(dn) | |
526 | - | let dp = D(cV[l]) | |
527 | - | let dq = fromBase58String(dp) | |
528 | 521 | let da = parseIntValue(D(cV[m])) | |
529 | 522 | let db = parseIntValue(D(cV[n])) | |
530 | - | let | |
523 | + | let dp = D(cV[i]) | |
531 | 524 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
532 | - | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
533 | - | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [ | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
525 | + | let dd = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dl], nil)) | |
526 | + | let de = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
527 | + | let dq = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dd, da], nil))) | |
528 | + | let dr = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [de, db], nil))) | |
529 | + | let ds = if ((dc == 0)) | |
537 | 530 | then g | |
538 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
539 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, | |
544 | - | let | |
531 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dr), toString(dq)], nil))) | |
532 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(ds), b], nil)) | |
533 | + | let dt = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dk, da], nil))) | |
534 | + | let du = fraction(dt, ds, d) | |
535 | + | let dv = B(invoke(aU, "fromX18WrapperREADONLY", [toString(du), db], nil)) | |
536 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dk, dm, dv, do, "", true, false], nil) | |
537 | + | let dw = { | |
545 | 538 | let z = bX | |
546 | 539 | if (if (if ($isInstanceOf(z._1, "Int")) | |
547 | 540 | then if ($isInstanceOf(z._3, "Int")) | |
548 | 541 | then if ($isInstanceOf(z._4, "Int")) | |
549 | 542 | then if ($isInstanceOf(z._5, "Int")) | |
550 | 543 | then $isInstanceOf(z._6, "Int") | |
551 | 544 | else false | |
552 | 545 | else false | |
553 | 546 | else false | |
554 | 547 | else false) | |
555 | 548 | then (size(z) == 13) | |
556 | 549 | else false) | |
557 | 550 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | $Tuple5(dz, dA, dB | |
551 | + | let dx = z._1 | |
552 | + | let dy = z._3 | |
553 | + | let dz = z._4 | |
554 | + | let dA = z._5 | |
555 | + | let dB = z._6 | |
556 | + | $Tuple5(dx, dy, dz, dA, dB) | |
564 | 557 | } | |
565 | 558 | else throw("Couldn't cast types") | |
566 | 559 | } | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
560 | + | let dx = dw._1 | |
561 | + | let dy = dw._2 | |
562 | + | let dz = dw._3 | |
563 | + | let dA = dw._4 | |
564 | + | let dB = dw._5 | |
565 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dx), toString(dg), toString(dz), toString(dA), toString(dB), dp, toString(dk), toString(dv)], e)) | |
573 | 566 | } | |
574 | 567 | ||
575 | 568 | ||
576 | 569 | ||
577 | 570 | @Callable(by) | |
578 | - | func poolEvaluatePutByPriceAssetREADONLY (cU, | |
571 | + | func poolEvaluatePutByPriceAssetREADONLY (cU,dv) = { | |
579 | 572 | let aU = addressFromStringValue(t(aX, U(cU))) | |
580 | 573 | let cV = x(invoke(aU, "getPoolConfigWrapperREADONLY", nil, nil)) | |
581 | 574 | let bd = fromBase58String(D(cV[j])) | |
582 | - | let dn = D(cV[k]) | |
575 | + | let dl = D(cV[k]) | |
576 | + | let dm = fromBase58String(dl) | |
577 | + | let dn = D(cV[l]) | |
583 | 578 | let do = fromBase58String(dn) | |
584 | - | let dp = D(cV[l]) | |
585 | - | let dq = fromBase58String(dp) | |
586 | 579 | let da = parseIntValue(D(cV[m])) | |
587 | 580 | let db = parseIntValue(D(cV[n])) | |
588 | - | let | |
581 | + | let dp = D(cV[i]) | |
589 | 582 | let dc = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
583 | + | let dC = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dl], nil)) | |
584 | + | let dD = B(invoke(aU, "getAccBalanceWrapperREADONLY", [dn], nil)) | |
585 | + | let dE = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dC, da], nil))) | |
586 | + | let dF = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dD, db], nil))) | |
587 | + | let ds = if ((dc == 0)) | |
595 | 588 | then g | |
596 | - | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString( | |
597 | - | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString( | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dm, | |
602 | - | let | |
589 | + | else parseBigIntValue(D(invoke(aU, "calcPriceBigIntWrapperREADONLY", [toString(dF), toString(dE)], nil))) | |
590 | + | let dg = B(invoke(aU, "fromX18WrapperREADONLY", [toString(ds), b], nil)) | |
591 | + | let du = parseBigIntValue(D(invoke(aU, "toX18WrapperREADONLY", [dv, db], nil))) | |
592 | + | let dt = fraction(du, d, ds) | |
593 | + | let dk = B(invoke(aU, "fromX18WrapperREADONLY", [toString(dt), da], nil)) | |
594 | + | let bX = invoke(aU, "estimatePutOperationWrapperREADONLY", ["", 500000, dk, dm, dv, do, "", true, false], nil) | |
595 | + | let dG = { | |
603 | 596 | let z = bX | |
604 | 597 | if (if (if ($isInstanceOf(z._1, "Int")) | |
605 | 598 | then if ($isInstanceOf(z._3, "Int")) | |
606 | 599 | then if ($isInstanceOf(z._4, "Int")) | |
607 | 600 | then if ($isInstanceOf(z._5, "Int")) | |
608 | 601 | then $isInstanceOf(z._6, "Int") | |
609 | 602 | else false | |
610 | 603 | else false | |
611 | 604 | else false | |
612 | 605 | else false) | |
613 | 606 | then (size(z) == 13) | |
614 | 607 | else false) | |
615 | 608 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | $Tuple5(dz, dA, dB | |
609 | + | let dx = z._1 | |
610 | + | let dy = z._3 | |
611 | + | let dz = z._4 | |
612 | + | let dA = z._5 | |
613 | + | let dB = z._6 | |
614 | + | $Tuple5(dx, dy, dz, dA, dB) | |
622 | 615 | } | |
623 | 616 | else throw("Couldn't cast types") | |
624 | 617 | } | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
618 | + | let dx = dG._1 | |
619 | + | let dy = dG._2 | |
620 | + | let dz = dG._3 | |
621 | + | let dA = dG._4 | |
622 | + | let dB = dG._5 | |
623 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dx), toString(dg), toString(dz), toString(dA), toString(dB), dp, toString(dk), toString(dv)], e)) | |
631 | 624 | } | |
632 | 625 | ||
633 | 626 | ||
634 | 627 | ||
635 | 628 | @Callable(by) | |
636 | - | func poolEvaluateGetREADONLY ( | |
637 | - | let aU = addressFromStringValue(t(aX, U( | |
638 | - | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", | |
639 | - | let | |
629 | + | func poolEvaluateGetREADONLY (dH,dI) = { | |
630 | + | let aU = addressFromStringValue(t(aX, U(dH))) | |
631 | + | let bX = invoke(aU, "estimateGetOperationWrapperREADONLY", ["", dH, dI, toString(aU)], nil) | |
632 | + | let dJ = { | |
640 | 633 | let z = bX | |
641 | 634 | if (if (if ($isInstanceOf(z._1, "Int")) | |
642 | 635 | then if ($isInstanceOf(z._2, "Int")) | |
643 | 636 | then if ($isInstanceOf(z._5, "Int")) | |
644 | 637 | then if ($isInstanceOf(z._6, "Int")) | |
645 | 638 | then if ($isInstanceOf(z._7, "Int")) | |
646 | 639 | then if ($isInstanceOf(z._8, "String")) | |
647 | 640 | then $isInstanceOf(z._9, "String") | |
648 | 641 | else false | |
649 | 642 | else false | |
650 | 643 | else false | |
651 | 644 | else false | |
652 | 645 | else false | |
653 | 646 | else false) | |
654 | 647 | then (size(z) == 10) | |
655 | 648 | else false) | |
656 | 649 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
650 | + | let dK = z._1 | |
651 | + | let dL = z._2 | |
652 | + | let dz = z._5 | |
653 | + | let dA = z._6 | |
654 | + | let dB = z._7 | |
662 | 655 | let dg = z._8 | |
663 | - | let | |
664 | - | $Tuple7( | |
656 | + | let dp = z._9 | |
657 | + | $Tuple7(dK, dL, dz, dA, dB, dg, dp) | |
665 | 658 | } | |
666 | 659 | else throw("Couldn't cast types") | |
667 | 660 | } | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let dg = | |
674 | - | let | |
675 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
661 | + | let dK = dJ._1 | |
662 | + | let dL = dJ._2 | |
663 | + | let dz = dJ._3 | |
664 | + | let dA = dJ._4 | |
665 | + | let dB = dJ._5 | |
666 | + | let dg = dJ._6 | |
667 | + | let dp = dJ._7 | |
668 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dK), toString(dL), toString(dz), toString(dA), toString(dB), dg, dp], e)) | |
676 | 669 | } | |
677 | 670 | ||
678 | 671 | ||
679 | 672 | ||
680 | 673 | @Callable(by) | |
681 | 674 | func gwxUserInfoREADONLY (am) = { | |
682 | - | let | |
683 | - | let | |
684 | - | $Tuple2(nil, makeString(["%d", toString( | |
675 | + | let dM = x(invoke(bb, "gwxUserInfoREADONLY", [am], nil)) | |
676 | + | let dN = B(dM[0]) | |
677 | + | $Tuple2(nil, makeString(["%d", toString(dN)], e)) | |
685 | 678 | } | |
686 | 679 | ||
687 | 680 | ||
688 | 681 | ||
689 | 682 | @Callable(by) | |
690 | - | func setManager (dQ) = { | |
683 | + | func unstakeAndGetOneTknV2 (aU,dO,dP,dQ) = { | |
684 | + | let bY = invoke(addressFromStringValue(aU), "unstakeAndGetOneTknV2", [dO, dP, dQ], nil) | |
685 | + | if ((bY == bY)) | |
686 | + | then $Tuple2(nil, unit) | |
687 | + | else throw("Strict value is not equal to itself.") | |
688 | + | } | |
689 | + | ||
690 | + | ||
691 | + | ||
692 | + | @Callable(by) | |
693 | + | func setManager (dR) = { | |
691 | 694 | let bC = bx(by) | |
692 | 695 | if ((bC == bC)) | |
693 | 696 | then { | |
694 | - | let | |
695 | - | if (( | |
696 | - | then [StringEntry(H(), | |
697 | + | let dS = fromBase58String(dR) | |
698 | + | if ((dS == dS)) | |
699 | + | then [StringEntry(H(), dR)] | |
697 | 700 | else throw("Strict value is not equal to itself.") | |
698 | 701 | } | |
699 | 702 | else throw("Strict value is not equal to itself.") | |
700 | 703 | } | |
701 | 704 | ||
702 | 705 | ||
703 | 706 | ||
704 | 707 | @Callable(by) | |
705 | 708 | func confirmManager () = { | |
706 | - | let | |
707 | - | let | |
709 | + | let dT = bw() | |
710 | + | let dU = if (isDefined(dT)) | |
708 | 711 | then true | |
709 | 712 | else throw("No pending manager") | |
710 | - | if (( | |
713 | + | if ((dU == dU)) | |
711 | 714 | then { | |
712 | - | let | |
715 | + | let dV = if ((by.callerPublicKey == value(dT))) | |
713 | 716 | then true | |
714 | 717 | else throw("You are not pending manager") | |
715 | - | if (( | |
716 | - | then [StringEntry(G(), toBase58String(value( | |
718 | + | if ((dV == dV)) | |
719 | + | then [StringEntry(G(), toBase58String(value(dT))), DeleteEntry(H())] | |
717 | 720 | else throw("Strict value is not equal to itself.") | |
718 | 721 | } | |
719 | 722 | else throw("Strict value is not equal to itself.") | |
720 | 723 | } | |
721 | 724 | ||
722 | 725 | ||
723 | - | @Verifier( | |
724 | - | func | |
725 | - | let | |
726 | + | @Verifier(dW) | |
727 | + | func dX () = { | |
728 | + | let dY = { | |
726 | 729 | let z = bu() | |
727 | 730 | if ($isInstanceOf(z, "ByteVector")) | |
728 | 731 | then { | |
729 | 732 | let bA = z | |
730 | 733 | bA | |
731 | 734 | } | |
732 | 735 | else if ($isInstanceOf(z, "Unit")) | |
733 | - | then | |
736 | + | then dW.senderPublicKey | |
734 | 737 | else throw("Match error") | |
735 | 738 | } | |
736 | - | sigVerify( | |
739 | + | sigVerify(dW.bodyBytes, dW.proofs[0], dY) | |
737 | 740 | } | |
738 | 741 |
github/deemru/w8io/169f3d6 131.92 ms ◑