tx · 89BvCeFYBQokQWxnR2LjsG8tV5deDHdfmQa3sRZzP1ds 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH: -0.02600000 Waves 2023.03.21 15:20 [2499767] smart account 3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH > SELF 0.00000000 Waves
{ "type": 13, "id": "89BvCeFYBQokQWxnR2LjsG8tV5deDHdfmQa3sRZzP1ds", "fee": 2600000, "feeAssetId": null, "timestamp": 1679401259159, "version": 2, "chainId": 84, "sender": "3MwukwUkp3PsyCrkjMgqiAnSfc1hBD5FQhH", "senderPublicKey": "5JqBVJpMCyD7dJLJttqYjL6CmJc4zahBHSFjFb7qQTga", "proofs": [ "4Gw231FTBPH49rvhUzSFxs7duyS1kxtSCnueTyMuBgsqw9v5M4GTkdNsE3sLpezSjqdpjUvg8hAToy7DbkWWVEGx" ], "script": "base64:BgIhCAISBAoCAQESBgoECAgICBIDCgEYEgASAwoBCBIDCgEBRgADU0VQAgFfAA5fbWluTG9ja3BlcmlvZAABAA1fdW5pdERlY2ltYWxzAIDC1y8ADl9taW5Mb2NrQW1vdW50CQBoAgABBQ1fdW5pdERlY2ltYWxzAA5fbWF4TG9ja0Ftb3VudAkAaAIA6AcFDV91bml0RGVjaW1hbHMAA19EdACAuJkpAQRfUHB5AQpsb2NrUGVyaW9kCQBrAwUNX3VuaXREZWNpbWFscwDtAgUKbG9ja1BlcmlvZAANX2luY3JlbWVudFJlZgDAhD0ADl9wZXJjZW50YWdlRmVlCQBrAwUNX3VuaXREZWNpbWFscwAKAGQAGl9wZXJjZW50YWdlUmVkdWN0aW9uRmFjdG9yAilDdXJyZW50X1BlcmNlbnRhZ2VSZWR1Y3Rpb25fRmFjdG9yX0Zvcl9NcgADX01yAgxNaW50aW5nX1JhdGUADF9zdGF3QXNzZXRJZAIMU3Rhd19Bc3NldElkAAhfbWFuYWdlcgIHbWFuYWdlcgAEX0RmeAIDRGZ4ABVfY2lyY3VsYXRpb25JbmNySW5kZXgC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FEXVzZXJHZXRTdGF3QW1vdW50BQZzdGF3UEwFBmhlaWdodAUKbGVhc2VJZFN0cgUPdXNlclRvdGFsTG9ja2VkBQ51c2VySW5kZXhDb3VudAIGbGVhc2VkCQESX3VwZGF0ZUdsb2JhbEVudHJ5BAUNYW1vdW50SW5XYXZlcwgFDXRvdGFsU3Rhd01pbnQCXzEFBnN0YXdQTAUJbmV3X2luZGV4CAUNdG90YWxTdGF3TWludAJfMgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgBTxFot", "height": 2499767, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EpVdmF2w9bPsvaoq4LeXWzMaMTfKvoFBVThjYx6vF4N3 Next: meEohJXz5oMDLVnnc8nHWdTgY4moNt11HSq8KWSJaqT Diff:
Old | New | Differences | |
---|---|---|---|
484 | 484 | ||
485 | 485 | func bT (h,bU) = { | |
486 | 486 | let bV = fraction(h, 15, 10) | |
487 | - | let bW = ((fraction(c, ((bU / ((bV - h) * f)) / 2), 1) * f) * f) | |
488 | - | bW | |
487 | + | let bW = (fraction(f, bU, (bV - h)) / 2) | |
488 | + | let bX = (fraction(c, bW, 1) * f) | |
489 | + | bX | |
489 | 490 | } | |
490 | 491 | ||
491 | 492 | ||
492 | - | func | |
493 | - | let | |
494 | - | [ab(J, ( | |
493 | + | func bY (bZ) = { | |
494 | + | let ca = Z(M(J), "could not get the running StawLP") | |
495 | + | [ab(J, (ca + bZ))] | |
495 | 496 | } | |
496 | 497 | ||
497 | 498 | ||
498 | - | func | |
499 | - | let | |
500 | - | [ab(J, ( | |
499 | + | func cb (bZ) = { | |
500 | + | let ca = Z(M(J), "could not get the running StawLP") | |
501 | + | [ab(J, (ca - bZ))] | |
501 | 502 | } | |
502 | 503 | ||
503 | 504 | ||
504 | - | func | |
505 | - | let | |
506 | - | [ab(I, ( | |
505 | + | func cc (bZ) = { | |
506 | + | let cd = Z(M(I), "could not get total locked waves") | |
507 | + | [ab(I, (cd + bZ))] | |
507 | 508 | } | |
508 | 509 | ||
509 | 510 | ||
510 | - | func | |
511 | - | let | |
512 | - | [ab(I, ( | |
511 | + | func ce (bZ) = { | |
512 | + | let cd = Z(M(I), "could not get total locked waves") | |
513 | + | [ab(I, (cd - bZ))] | |
513 | 514 | } | |
514 | 515 | ||
515 | 516 | ||
516 | - | func | |
517 | - | let | |
518 | - | let V = blockInfoByHeight( | |
517 | + | func cf (cg) = { | |
518 | + | let ch = { | |
519 | + | let V = blockInfoByHeight(cg) | |
519 | 520 | if ($isInstanceOf(V, "BlockInfo")) | |
520 | 521 | then { | |
521 | - | let | |
522 | - | | |
522 | + | let ci = V | |
523 | + | ci.timestamp | |
523 | 524 | } | |
524 | 525 | else throw("counld get timestamp") | |
525 | 526 | } | |
526 | - | | |
527 | + | ch | |
527 | 528 | } | |
528 | 529 | ||
529 | 530 | ||
530 | - | func | |
531 | + | func cj (aF) = { | |
531 | 532 | let V = assetInfo(fromBase58String(aF)) | |
532 | 533 | if ($isInstanceOf(V, "Asset")) | |
533 | 534 | then { | |
540 | 541 | ||
541 | 542 | @Callable(au) | |
542 | 543 | func getEmission (h,bU) = { | |
543 | - | let | |
544 | - | if (( | |
544 | + | let ck = at(au) | |
545 | + | if ((ck == ck)) | |
545 | 546 | then $Tuple2(nil, bT(h, bU)) | |
546 | 547 | else throw("Strict value is not equal to itself.") | |
547 | 548 | } | |
549 | 550 | ||
550 | 551 | ||
551 | 552 | @Callable(au) | |
552 | - | func init (av, | |
553 | - | let | |
553 | + | func init (av,cl,aF,cm) = { | |
554 | + | let cn = if (isDefined(O(n))) | |
554 | 555 | then at(au) | |
555 | 556 | else true | |
556 | - | if (( | |
557 | + | if ((cn == cn)) | |
557 | 558 | then { | |
558 | - | let | |
559 | - | if (( | |
559 | + | let ck = ax(av, "invalid address") | |
560 | + | if ((ck == ck)) | |
560 | 561 | then { | |
561 | - | let | |
562 | - | if (( | |
562 | + | let co = ax(cl, "invalid address") | |
563 | + | if ((co == co)) | |
563 | 564 | then { | |
564 | - | let | |
565 | - | if (( | |
565 | + | let cp = ax(cm, "invalid address") | |
566 | + | if ((cp == cp)) | |
566 | 567 | then { | |
567 | - | let | |
568 | + | let cq = if (aE(aF, "invalid asset")) | |
568 | 569 | then true | |
569 | 570 | else throw("invalid asset Id") | |
570 | - | if (( | |
571 | + | if ((cq == cq)) | |
571 | 572 | then { | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | [ag(n, av), ag(o, | |
573 | + | let cr = T(p, 0) | |
574 | + | let cs = T(k, 0) | |
575 | + | let ct = T(l, c) | |
576 | + | let cu = T(H, 0) | |
577 | + | let cv = T(J, 0) | |
578 | + | let cw = T(K, 0) | |
579 | + | let cx = T(I, 0) | |
580 | + | [ag(n, av), ag(o, cl), ag(m, aF), ag(q, cm), ag(p, cr), ag(l, ct), ag(k, cs), ag(I, cx), ag(J, cv), ag(H, cu), ag(K, cw)] | |
580 | 581 | } | |
581 | 582 | else throw("Strict value is not equal to itself.") | |
582 | 583 | } | |
593 | 594 | ||
594 | 595 | @Callable(au) | |
595 | 596 | func modifyGlobalParams (X) = { | |
596 | - | let | |
597 | - | if (( | |
597 | + | let ck = at(au) | |
598 | + | if ((ck == ck)) | |
598 | 599 | then { | |
599 | 600 | let az = makeString(["got", "list size of", toString(size(X)), "but expected [global_key, value] pair"], " ") | |
600 | - | let | |
601 | - | if (( | |
601 | + | let co = ae((size(X) != 2), az) | |
602 | + | if ((co == co)) | |
602 | 603 | then { | |
603 | 604 | let N = X[0] | |
604 | - | let | |
605 | - | let V = | |
605 | + | let cy = parseInt(X[1]) | |
606 | + | let V = cy | |
606 | 607 | if ($isInstanceOf(V, "Int")) | |
607 | 608 | then { | |
608 | 609 | let al = V | |
609 | - | let | |
610 | - | if (( | |
610 | + | let cz = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
611 | + | if ((cz == cz)) | |
611 | 612 | then { | |
612 | - | let | |
613 | + | let cA = { | |
613 | 614 | let aB = aj(N) | |
614 | 615 | if ($isInstanceOf(aB, "Int")) | |
615 | 616 | then { | |
618 | 619 | } | |
619 | 620 | else throw("invalid key-value pair") | |
620 | 621 | } | |
621 | - | if (( | |
622 | + | if ((cA == cA)) | |
622 | 623 | then [ag(N, al)] | |
623 | 624 | else throw("Strict value is not equal to itself.") | |
624 | 625 | } | |
627 | 628 | else if ($isInstanceOf(V, "Unit")) | |
628 | 629 | then { | |
629 | 630 | let al = V | |
630 | - | let | |
631 | - | if (( | |
631 | + | let cz = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
632 | + | if ((cz == cz)) | |
632 | 633 | then { | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let aB = | |
634 | + | let cB = X[1] | |
635 | + | let cC = aj(n) | |
636 | + | let cq = { | |
637 | + | let aB = cC | |
637 | 638 | if ($isInstanceOf(aB, "String")) | |
638 | 639 | then { | |
639 | - | let | |
640 | - | if ((size( | |
641 | - | then ax( | |
642 | - | else aE( | |
640 | + | let cD = aB | |
641 | + | if ((size(cD) == size(cB))) | |
642 | + | then ax(cB, "string type for value not supported") | |
643 | + | else aE(cB, "string type for value not supported") | |
643 | 644 | } | |
644 | 645 | else false | |
645 | 646 | } | |
646 | - | if (( | |
647 | - | then [ag(N, | |
647 | + | if ((cq == cq)) | |
648 | + | then [ag(N, cB)] | |
648 | 649 | else throw("Strict value is not equal to itself.") | |
649 | 650 | } | |
650 | 651 | else throw("Strict value is not equal to itself.") | |
660 | 661 | ||
661 | 662 | @Callable(au) | |
662 | 663 | func revokeLock () = { | |
663 | - | let | |
664 | - | if (( | |
664 | + | let ck = at(au) | |
665 | + | if ((ck == ck)) | |
665 | 666 | then nil | |
666 | 667 | else throw("Strict value is not equal to itself.") | |
667 | 668 | } | |
670 | 671 | ||
671 | 672 | @Callable(au) | |
672 | 673 | func claim (be) = { | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
674 | + | let cE = toBase58String(au.caller.bytes) | |
675 | + | let cF = makeString([cE, be, z], a) | |
676 | + | let cG = makeString([cE, be, w], a) | |
677 | + | let cH = makeString([cE, be, y], a) | |
678 | + | let cI = makeString([cE, be, E], a) | |
679 | + | let cJ = makeString([cE, be, F], a) | |
680 | + | let cK = makeString([cE, be, B], a) | |
681 | + | let cL = makeString([cE, be, z], a) | |
682 | + | let cM = makeString([cE, v], a) | |
683 | + | let cN = makeString([cE, be, G], a) | |
684 | + | let cO = makeString([cE, be, G], a) | |
685 | + | let cP = makeString([cE, be, L], a) | |
686 | + | let cQ = { | |
686 | 687 | let V = aj(I) | |
687 | 688 | if ($isInstanceOf(V, "Int")) | |
688 | 689 | then { | |
691 | 692 | } | |
692 | 693 | else throw("failed to get global total waves") | |
693 | 694 | } | |
694 | - | if (( | |
695 | + | if ((cQ == cQ)) | |
695 | 696 | then { | |
696 | - | let | |
697 | + | let cR = { | |
697 | 698 | let V = aj(J) | |
698 | 699 | if ($isInstanceOf(V, "Int")) | |
699 | 700 | then { | |
702 | 703 | } | |
703 | 704 | else throw("failed to get global total waves") | |
704 | 705 | } | |
705 | - | if (( | |
706 | + | if ((cR == cR)) | |
706 | 707 | then { | |
707 | 708 | let bl = { | |
708 | - | let V = aj( | |
709 | + | let V = aj(cH) | |
709 | 710 | if ($isInstanceOf(V, "ByteVector")) | |
710 | 711 | then { | |
711 | 712 | let aJ = V | |
715 | 716 | } | |
716 | 717 | if ((bl == bl)) | |
717 | 718 | then { | |
718 | - | let | |
719 | - | let V = aj( | |
719 | + | let cS = { | |
720 | + | let V = aj(cM) | |
720 | 721 | if ($isInstanceOf(V, "Int")) | |
721 | 722 | then { | |
722 | 723 | let aJ = V | |
724 | 725 | } | |
725 | 726 | else throw("failed to get total waves locked by this address") | |
726 | 727 | } | |
727 | - | if (( | |
728 | + | if ((cS == cS)) | |
728 | 729 | then { | |
729 | 730 | let aV = { | |
730 | - | let V = aj( | |
731 | + | let V = aj(cL) | |
731 | 732 | if ($isInstanceOf(V, "Int")) | |
732 | 733 | then { | |
733 | 734 | let aJ = V | |
737 | 738 | } | |
738 | 739 | if ((aV == aV)) | |
739 | 740 | then { | |
740 | - | let | |
741 | - | let V = aj( | |
741 | + | let cT = { | |
742 | + | let V = aj(cJ) | |
742 | 743 | if ($isInstanceOf(V, "Int")) | |
743 | 744 | then { | |
744 | 745 | let aJ = V | |
746 | 747 | } | |
747 | 748 | else throw("failed to get total waves claimed") | |
748 | 749 | } | |
749 | - | if (( | |
750 | + | if ((cT == cT)) | |
750 | 751 | then { | |
751 | 752 | let bj = { | |
752 | - | let V = aj( | |
753 | + | let V = aj(cK) | |
753 | 754 | if ($isInstanceOf(V, "Int")) | |
754 | 755 | then { | |
755 | 756 | let aJ = V | |
759 | 760 | } | |
760 | 761 | if ((bj == bj)) | |
761 | 762 | then { | |
762 | - | let | |
763 | - | let V = aj( | |
763 | + | let cU = { | |
764 | + | let V = aj(cI) | |
764 | 765 | if ($isInstanceOf(V, "Int")) | |
765 | 766 | then { | |
766 | 767 | let aJ = V | |
768 | 769 | } | |
769 | 770 | else throw("failed to get lock period timespam") | |
770 | 771 | } | |
771 | - | if (( | |
772 | + | if ((cU == cU)) | |
772 | 773 | then { | |
773 | - | let | |
774 | - | let V = | |
774 | + | let cV = { | |
775 | + | let V = cf(height) | |
775 | 776 | if ($isInstanceOf(V, "Int")) | |
776 | 777 | then { | |
777 | 778 | let aJ = V | |
779 | 780 | } | |
780 | 781 | else throw("failed to get current timestamp") | |
781 | 782 | } | |
782 | - | if (( | |
783 | + | if ((cV == cV)) | |
783 | 784 | then { | |
784 | 785 | let bU = { | |
785 | - | let V = aj( | |
786 | + | let V = aj(cF) | |
786 | 787 | if ($isInstanceOf(V, "Int")) | |
787 | 788 | then { | |
788 | 789 | let aJ = V | |
793 | 794 | if ((bU == bU)) | |
794 | 795 | then { | |
795 | 796 | let h = { | |
796 | - | let V = aj( | |
797 | + | let V = aj(cG) | |
797 | 798 | if ($isInstanceOf(V, "Int")) | |
798 | 799 | then { | |
799 | 800 | let aJ = V | |
803 | 804 | } | |
804 | 805 | if ((h == h)) | |
805 | 806 | then { | |
806 | - | let | |
807 | - | let V = aj( | |
807 | + | let cW = { | |
808 | + | let V = aj(cN) | |
808 | 809 | if ($isInstanceOf(V, "String")) | |
809 | 810 | then { | |
810 | 811 | let aJ = V | |
812 | 813 | } | |
813 | 814 | else throw("failed to get lease state") | |
814 | 815 | } | |
815 | - | if (( | |
816 | + | if ((cW == cW)) | |
816 | 817 | then { | |
817 | 818 | let bo = { | |
818 | - | let V = aj( | |
819 | + | let V = aj(cO) | |
819 | 820 | if ($isInstanceOf(V, "String")) | |
820 | 821 | then { | |
821 | 822 | let aJ = V | |
825 | 826 | } | |
826 | 827 | if ((bo == bo)) | |
827 | 828 | then { | |
828 | - | let | |
829 | - | let V = O( | |
829 | + | let cX = { | |
830 | + | let V = O(cP) | |
830 | 831 | if ($isInstanceOf(V, "String")) | |
831 | 832 | then { | |
832 | 833 | let aJ = V | |
833 | - | let aB = aj( | |
834 | + | let aB = aj(cP) | |
834 | 835 | if ($isInstanceOf(aB, "Int")) | |
835 | 836 | then { | |
836 | - | let | |
837 | - | | |
837 | + | let cY = aB | |
838 | + | cY | |
838 | 839 | } | |
839 | 840 | else 0 | |
840 | 841 | } | |
841 | 842 | else 0 | |
842 | 843 | } | |
843 | - | if (( | |
844 | + | if ((cX == cX)) | |
844 | 845 | then { | |
845 | - | let | |
846 | - | if (( | |
846 | + | let ck = ae((cU > cV), "lock period for this entry has not elapsed") | |
847 | + | if ((ck == ck)) | |
847 | 848 | then { | |
848 | - | let | |
849 | - | then $Tuple2(LeaseCancel(bl), ad( | |
850 | - | else $Tuple2(ad( | |
851 | - | let | |
849 | + | let cZ = if ((cW == "leased")) | |
850 | + | then $Tuple2(LeaseCancel(bl), ad(cN, "cancelled")) | |
851 | + | else $Tuple2(ad(cN, "cancelled"), ad(cN, "cancelled")) | |
852 | + | let co = ae(if ((0 == aV)) | |
852 | 853 | then true | |
853 | 854 | else (0 == bj), "all claims exhausted for this trx") | |
854 | - | if (( | |
855 | + | if ((co == co)) | |
855 | 856 | then { | |
856 | - | let | |
857 | - | let | |
858 | - | let | |
859 | - | let | |
860 | - | if (( | |
857 | + | let da = bT(h, bU) | |
858 | + | let db = { | |
859 | + | let dc = (cV - cU) | |
860 | + | let dd = (dc / f) | |
861 | + | if ((dd == 0)) | |
861 | 862 | then throw("less than 24hrs before first claim") | |
862 | - | else if (( | |
863 | + | else if ((cX >= dd)) | |
863 | 864 | then throw("24hrs or less before next claim") | |
864 | 865 | else { | |
865 | - | let | |
866 | - | let | |
867 | - | if (( | |
866 | + | let de = (cX * da) | |
867 | + | let df = ae((de == cT), "can only claim once in 24hrs") | |
868 | + | if ((df == df)) | |
868 | 869 | then { | |
869 | - | let | |
870 | - | if (( | |
870 | + | let dg = ae(((de + cT) > aV), "all claims exhausted") | |
871 | + | if ((dg == dg)) | |
871 | 872 | then { | |
872 | - | let dg = if ((cW == 1)) | |
873 | - | then dd | |
874 | - | else (dd - cS) | |
875 | - | let dh = dd | |
876 | - | let di = if ((cW == 1)) | |
877 | - | then (aV - dd) | |
878 | - | else (aV - (dd - cS)) | |
879 | - | let dj = if ((cW == 1)) | |
880 | - | then (bj - dd) | |
881 | - | else (bj - (dd - cS)) | |
882 | - | let dk = (cP - di) | |
873 | + | let dh = if ((cX == 1)) | |
874 | + | then de | |
875 | + | else (de - cT) | |
876 | + | let di = de | |
877 | + | let dj = if ((cX == 1)) | |
878 | + | then (aV - de) | |
879 | + | else (aV - (de - cT)) | |
880 | + | let dk = if ((cX == 1)) | |
881 | + | then (bj - de) | |
882 | + | else (bj - (de - cT)) | |
883 | 883 | let dl = (cQ - dj) | |
884 | - | let dm = (cR - dg) | |
885 | - | let bF = makeString(["%d", toString(di)], a) | |
886 | - | let bH = makeString(["%d", toString(dj)], a) | |
887 | - | let bN = makeString(["%d", toString(dh)], a) | |
888 | - | let dn = makeString(["%d", toString(dm)], a) | |
889 | - | let do = makeString(["%d", toString(dc)], a) | |
890 | - | [cY._1, cY._2, ad(cK, bF), ad(cJ, bH), ad(cI, bN), ad(cL, dn), ad(cO, do), ag(I, dk), ag(J, dl), ScriptTransfer(Address(au.caller.bytes), dg, unit)] | |
884 | + | let dm = (cR - dk) | |
885 | + | let dn = (cS - dh) | |
886 | + | let bF = makeString(["%d", toString(dj)], a) | |
887 | + | let bH = makeString(["%d", toString(dk)], a) | |
888 | + | let bN = makeString(["%d", toString(di)], a) | |
889 | + | let do = makeString(["%d", toString(dn)], a) | |
890 | + | let dp = makeString(["%d", toString(dd)], a) | |
891 | + | [cZ._1, cZ._2, ad(cL, bF), ad(cK, bH), ad(cJ, bN), ad(cM, do), ad(cP, dp), ag(I, dl), ag(J, dm), ScriptTransfer(Address(au.caller.bytes), dh, unit)] | |
891 | 892 | } | |
892 | 893 | else throw("Strict value is not equal to itself.") | |
893 | 894 | } | |
894 | 895 | else throw("Strict value is not equal to itself.") | |
895 | 896 | } | |
896 | 897 | } | |
897 | - | if (( | |
898 | - | then | |
898 | + | if ((db == db)) | |
899 | + | then db | |
899 | 900 | else throw("Strict value is not equal to itself.") | |
900 | 901 | } | |
901 | 902 | else throw("Strict value is not equal to itself.") | |
935 | 936 | ||
936 | 937 | @Callable(au) | |
937 | 938 | func mintStaw (h) = { | |
938 | - | let | |
939 | - | let | |
940 | - | let | |
941 | - | if (( | |
939 | + | let cE = toBase58String(au.caller.bytes) | |
940 | + | let dq = toBase58String(au.transactionId) | |
941 | + | let ck = ae((1 != size(au.payments)), "no payments attached") | |
942 | + | if ((ck == ck)) | |
942 | 943 | then { | |
943 | - | let | |
944 | + | let co = if (isDefined(au.payments[0].assetId)) | |
944 | 945 | then throw("only waves supported") | |
945 | 946 | else true | |
946 | - | if (( | |
947 | + | if ((co == co)) | |
947 | 948 | then { | |
948 | - | let | |
949 | - | let | |
949 | + | let dr = au.payments[0].amount | |
950 | + | let cp = if (if ((d > dr)) | |
950 | 951 | then true | |
951 | - | else ( | |
952 | + | else (dr > e)) | |
952 | 953 | then throw("lock amount out of range, minimum: 1 waves, maximum: 1000 waves") | |
953 | 954 | else true | |
954 | - | if (( | |
955 | + | if ((cp == cp)) | |
955 | 956 | then { | |
956 | - | let | |
957 | + | let cq = if ((b > h)) | |
957 | 958 | then throw("minimum of 14 days lock period") | |
958 | 959 | else true | |
959 | - | if (( | |
960 | + | if ((cq == cq)) | |
960 | 961 | then { | |
961 | - | let | |
962 | - | let aX = | |
963 | - | let | |
964 | - | let | |
965 | - | let | |
966 | - | if (( | |
962 | + | let ds = bP(h, dr) | |
963 | + | let aX = dr | |
964 | + | let dt = fraction(ds._1, 10, 100) | |
965 | + | let du = (ds._1 - dt) | |
966 | + | let dv = (cf(height) + ao(h)) | |
967 | + | if ((dv == dv)) | |
967 | 968 | then { | |
968 | - | let | |
969 | + | let dw = { | |
969 | 970 | let V = aj(K) | |
970 | 971 | if ($isInstanceOf(V, "Int")) | |
971 | 972 | then { | |
974 | 975 | } | |
975 | 976 | else throw("failed to get current global index count") | |
976 | 977 | } | |
977 | - | if (( | |
978 | + | if ((dw == dw)) | |
978 | 979 | then { | |
979 | - | let | |
980 | + | let dx = { | |
980 | 981 | let V = aj(o) | |
981 | 982 | if ($isInstanceOf(V, "String")) | |
982 | 983 | then { | |
985 | 986 | } | |
986 | 987 | else throw("failed to get dfx address") | |
987 | 988 | } | |
988 | - | if (( | |
989 | + | if ((dx == dx)) | |
989 | 990 | then { | |
990 | 991 | let aK = { | |
991 | 992 | let V = aj(m) | |
998 | 999 | } | |
999 | 1000 | if ((aK == aK)) | |
1000 | 1001 | then { | |
1001 | - | let | |
1002 | + | let dy = { | |
1002 | 1003 | let V = aj(q) | |
1003 | 1004 | if ($isInstanceOf(V, "String")) | |
1004 | 1005 | then { | |
1007 | 1008 | } | |
1008 | 1009 | else throw("failed to get lease node address") | |
1009 | 1010 | } | |
1010 | - | if (( | |
1011 | + | if ((dy == dy)) | |
1011 | 1012 | then { | |
1012 | - | let | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let V = O( | |
1013 | + | let dz = makeString([cE, u], a) | |
1014 | + | let dA = makeString([cE, v], a) | |
1015 | + | let dB = { | |
1016 | + | let V = O(dz) | |
1016 | 1017 | if ($isInstanceOf(V, "String")) | |
1017 | 1018 | then { | |
1018 | 1019 | let al = V | |
1019 | - | let aB = aj( | |
1020 | + | let aB = aj(dz) | |
1020 | 1021 | if ($isInstanceOf(aB, "Int")) | |
1021 | 1022 | then { | |
1022 | 1023 | let aJ = aB | |
1026 | 1027 | } | |
1027 | 1028 | else 1 | |
1028 | 1029 | } | |
1029 | - | if (( | |
1030 | + | if ((dB == dB)) | |
1030 | 1031 | then { | |
1031 | - | let | |
1032 | - | let V = O( | |
1032 | + | let dC = { | |
1033 | + | let V = O(dA) | |
1033 | 1034 | if ($isInstanceOf(V, "String")) | |
1034 | 1035 | then { | |
1035 | 1036 | let al = V | |
1036 | - | let aB = aj( | |
1037 | + | let aB = aj(dA) | |
1037 | 1038 | if ($isInstanceOf(aB, "Int")) | |
1038 | 1039 | then { | |
1039 | 1040 | let aJ = aB | |
1040 | - | (aJ + | |
1041 | + | (aJ + dr) | |
1041 | 1042 | } | |
1042 | - | else | |
1043 | + | else dr | |
1043 | 1044 | } | |
1044 | - | else | |
1045 | + | else dr | |
1045 | 1046 | } | |
1046 | - | if (( | |
1047 | + | if ((dC == dC)) | |
1047 | 1048 | then { | |
1048 | - | let | |
1049 | - | let | |
1050 | - | ((([ | |
1049 | + | let dD = Lease(dy, dr) | |
1050 | + | let dE = toBase58String(calculateLeaseId(dD)) | |
1051 | + | ((([dD, ScriptTransfer(dx, dt, aK), ScriptTransfer(Address(au.caller.bytes), du, aK)] ++ bd(dq, cE, h, dv, dw, dr, du, aX, height, dE, dC, dB, "leased")) ++ aU(dr, ds._1, aX, dw)) ++ ds._2) | |
1051 | 1052 | } | |
1052 | 1053 | else throw("Strict value is not equal to itself.") | |
1053 | 1054 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = (1 * c) | |
11 | 11 | ||
12 | 12 | let e = (1000 * c) | |
13 | 13 | ||
14 | 14 | let f = 86400000 | |
15 | 15 | ||
16 | 16 | func g (h) = fraction(c, 365, h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | let i = 1000000 | |
20 | 20 | ||
21 | 21 | let j = fraction(c, 10, 100) | |
22 | 22 | ||
23 | 23 | let k = "Current_PercentageReduction_Factor_For_Mr" | |
24 | 24 | ||
25 | 25 | let l = "Minting_Rate" | |
26 | 26 | ||
27 | 27 | let m = "Staw_AssetId" | |
28 | 28 | ||
29 | 29 | let n = "manager" | |
30 | 30 | ||
31 | 31 | let o = "Dfx" | |
32 | 32 | ||
33 | 33 | let p = "CirculationIncrementIndex" | |
34 | 34 | ||
35 | 35 | let q = "LeaseNode" | |
36 | 36 | ||
37 | 37 | let r = "EmissionAmountClaimed" | |
38 | 38 | ||
39 | 39 | let s = "CanClaimEmissionAmount" | |
40 | 40 | ||
41 | 41 | let t = "WalletAddress" | |
42 | 42 | ||
43 | 43 | let u = "TotalEntryIndexCount" | |
44 | 44 | ||
45 | 45 | let v = "TotalLocked" | |
46 | 46 | ||
47 | 47 | let w = "LockDuration" | |
48 | 48 | ||
49 | 49 | let x = "GlobalLockIndex" | |
50 | 50 | ||
51 | 51 | let y = "LockIdentifier" | |
52 | 52 | ||
53 | 53 | let z = "AmountInWaves" | |
54 | 54 | ||
55 | 55 | let A = "AmountInStaw" | |
56 | 56 | ||
57 | 57 | let B = "AmountInStawLP" | |
58 | 58 | ||
59 | 59 | let C = "TXID" | |
60 | 60 | ||
61 | 61 | let D = "LockAtHeight" | |
62 | 62 | ||
63 | 63 | let E = "LocKPeriodInMilliSec" | |
64 | 64 | ||
65 | 65 | let F = "TotalWavesClaimed" | |
66 | 66 | ||
67 | 67 | let G = "LeaseState" | |
68 | 68 | ||
69 | 69 | let H = "TotalStawMinted" | |
70 | 70 | ||
71 | 71 | let I = "TotalWavesLocked" | |
72 | 72 | ||
73 | 73 | let J = "TotalStawLP" | |
74 | 74 | ||
75 | 75 | let K = "IndexCount" | |
76 | 76 | ||
77 | 77 | let L = "DaysAfterLockPeriodElasped" | |
78 | 78 | ||
79 | 79 | func M (N) = getInteger(this, N) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func O (N) = getString(this, N) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func P (N) = getBoolean(this, N) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func Q (N) = value(getBoolean(this, N)) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func R (N) = value(getInteger(this, N)) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func S (N) = value(getString(this, N)) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func T (N,U) = { | |
98 | 98 | let V = U | |
99 | 99 | if ($isInstanceOf(V, "String")) | |
100 | 100 | then { | |
101 | 101 | let U = V | |
102 | 102 | if (isDefined(O(N))) | |
103 | 103 | then S(N) | |
104 | 104 | else U | |
105 | 105 | } | |
106 | 106 | else if ($isInstanceOf(V, "Int")) | |
107 | 107 | then { | |
108 | 108 | let U = V | |
109 | 109 | if (isDefined(M(N))) | |
110 | 110 | then R(N) | |
111 | 111 | else U | |
112 | 112 | } | |
113 | 113 | else if ($isInstanceOf(V, "Boolean")) | |
114 | 114 | then { | |
115 | 115 | let U = V | |
116 | 116 | if (isDefined(P(N))) | |
117 | 117 | then Q(N) | |
118 | 118 | else U | |
119 | 119 | } | |
120 | 120 | else throw(("value type not supported for " + N)) | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func W (X,Y) = { | |
125 | 125 | let V = X | |
126 | 126 | if ($isInstanceOf(V, "String")) | |
127 | 127 | then { | |
128 | 128 | let X = V | |
129 | 129 | X | |
130 | 130 | } | |
131 | 131 | else throw(Y) | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func Z (X,Y) = { | |
136 | 136 | let V = X | |
137 | 137 | if ($isInstanceOf(V, "Int")) | |
138 | 138 | then { | |
139 | 139 | let X = V | |
140 | 140 | X | |
141 | 141 | } | |
142 | 142 | else throw(Y) | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func aa (X,Y) = { | |
147 | 147 | let V = X | |
148 | 148 | if ($isInstanceOf(V, "Boolean")) | |
149 | 149 | then { | |
150 | 150 | let X = V | |
151 | 151 | X | |
152 | 152 | } | |
153 | 153 | else throw(Y) | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ab (N,ac) = if ((0 > ac)) | |
158 | 158 | then throw(((("writing negative value " + toString(ac)) + " for key ") + N)) | |
159 | 159 | else IntegerEntry(N, ac) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ad (N,ac) = if ((" " == ac)) | |
163 | 163 | then throw(("writing an empty string " + ac)) | |
164 | 164 | else StringEntry(N, ac) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ae (af,Y) = if (af) | |
168 | 168 | then throw(Y) | |
169 | 169 | else true | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ag (N,ah) = { | |
173 | 173 | let V = ah | |
174 | 174 | if ($isInstanceOf(V, "Int")) | |
175 | 175 | then { | |
176 | 176 | let ah = V | |
177 | 177 | let ai = makeString(["%d", toString(ah)], a) | |
178 | 178 | ad(N, ai) | |
179 | 179 | } | |
180 | 180 | else if ($isInstanceOf(V, "String")) | |
181 | 181 | then { | |
182 | 182 | let ah = V | |
183 | 183 | let ai = makeString(["%s", ah], a) | |
184 | 184 | ad(N, ai) | |
185 | 185 | } | |
186 | 186 | else if ($isInstanceOf(V, "Boolean")) | |
187 | 187 | then { | |
188 | 188 | let ah = V | |
189 | 189 | let ai = makeString(["%b", toString(ah)], a) | |
190 | 190 | ad(N, ai) | |
191 | 191 | } | |
192 | 192 | else throw("type not supported") | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func aj (N) = { | |
197 | 197 | let ak = W(O(N), ("entry not found for " + N)) | |
198 | 198 | if ((ak == ak)) | |
199 | 199 | then { | |
200 | 200 | let al = split(ak, a) | |
201 | 201 | let am = takeRight(al[0], 1) | |
202 | 202 | let an = al[(size(al) - 1)] | |
203 | 203 | let ah = if ((am == "s")) | |
204 | 204 | then an | |
205 | 205 | else if ((am == "d")) | |
206 | 206 | then parseIntValue(an) | |
207 | 207 | else if ((am == "b")) | |
208 | 208 | then fromBase58String(an) | |
209 | 209 | else throw(("could not parse registry value for " + N)) | |
210 | 210 | ah | |
211 | 211 | } | |
212 | 212 | else throw("Strict value is not equal to itself.") | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func ao (ap) = { | |
217 | 217 | let aq = ae((0 >= ap), "invalid locking days!") | |
218 | 218 | if ((aq == aq)) | |
219 | 219 | then (ap * f) | |
220 | 220 | else throw("Strict value is not equal to itself.") | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func ar (N,ac) = if (!(isDefined(O(N)))) | |
225 | 225 | then ad(N, ac) | |
226 | 226 | else throw(("entry already initialized: " + N)) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func as (N,ac) = if (!(isDefined(O(N)))) | |
230 | 230 | then ab(N, ac) | |
231 | 231 | else throw((" entry already initialized: " + N)) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func at (au) = { | |
235 | 235 | let av = { | |
236 | 236 | let V = aj(n) | |
237 | 237 | if ($isInstanceOf(V, "String")) | |
238 | 238 | then { | |
239 | 239 | let X = V | |
240 | 240 | X | |
241 | 241 | } | |
242 | 242 | else "failed to get manager" | |
243 | 243 | } | |
244 | 244 | if ((av == av)) | |
245 | 245 | then ae((toBase58String(au.caller.bytes) != av), "address not authorized") | |
246 | 246 | else throw("Strict value is not equal to itself.") | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func aw (X) = if ((0 > X)) | |
251 | 251 | then -(X) | |
252 | 252 | else X | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func ax (ay,az) = { | |
256 | 256 | let V = ay | |
257 | 257 | if ($isInstanceOf(V, "String")) | |
258 | 258 | then { | |
259 | 259 | let ay = V | |
260 | 260 | let aA = addressFromString(ay) | |
261 | 261 | let aB = aA | |
262 | 262 | if ($isInstanceOf(aB, "Address")) | |
263 | 263 | then { | |
264 | 264 | let aA = aB | |
265 | 265 | true | |
266 | 266 | } | |
267 | 267 | else { | |
268 | 268 | let aC = az | |
269 | 269 | if ($isInstanceOf(aC, "String")) | |
270 | 270 | then { | |
271 | 271 | let aD = aC | |
272 | 272 | throw(aD) | |
273 | 273 | } | |
274 | 274 | else false | |
275 | 275 | } | |
276 | 276 | } | |
277 | 277 | else if ($isInstanceOf(V, "ByteVector")) | |
278 | 278 | then { | |
279 | 279 | let ay = V | |
280 | 280 | let aA = addressFromPublicKey(ay) | |
281 | 281 | let aB = aA | |
282 | 282 | if ($isInstanceOf(aB, "Address")) | |
283 | 283 | then { | |
284 | 284 | let aA = aB | |
285 | 285 | true | |
286 | 286 | } | |
287 | 287 | else { | |
288 | 288 | let aC = az | |
289 | 289 | if ($isInstanceOf(aC, "String")) | |
290 | 290 | then { | |
291 | 291 | let aD = aC | |
292 | 292 | throw(aD) | |
293 | 293 | } | |
294 | 294 | else false | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | else throw("invalid input type") | |
298 | 298 | } | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func aE (aF,az) = { | |
302 | 302 | let V = assetInfo(fromBase58String(aF)) | |
303 | 303 | if ($isInstanceOf(V, "Asset")) | |
304 | 304 | then { | |
305 | 305 | let aG = V | |
306 | 306 | true | |
307 | 307 | } | |
308 | 308 | else { | |
309 | 309 | let aB = az | |
310 | 310 | if ($isInstanceOf(aB, "String")) | |
311 | 311 | then { | |
312 | 312 | let aD = aB | |
313 | 313 | throw(aD) | |
314 | 314 | } | |
315 | 315 | else false | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func aH () = { | |
321 | 321 | let aI = { | |
322 | 322 | let V = aj(p) | |
323 | 323 | if ($isInstanceOf(V, "Int")) | |
324 | 324 | then { | |
325 | 325 | let aJ = V | |
326 | 326 | aJ | |
327 | 327 | } | |
328 | 328 | else throw("circulation index not previously defined") | |
329 | 329 | } | |
330 | 330 | if ((aI == aI)) | |
331 | 331 | then { | |
332 | 332 | let aK = { | |
333 | 333 | let V = aj(m) | |
334 | 334 | if ($isInstanceOf(V, "String")) | |
335 | 335 | then { | |
336 | 336 | let aJ = V | |
337 | 337 | aJ | |
338 | 338 | } | |
339 | 339 | else throw("asset id not previously defined") | |
340 | 340 | } | |
341 | 341 | if ((aK == aK)) | |
342 | 342 | then { | |
343 | 343 | let aL = { | |
344 | 344 | let V = assetInfo(fromBase58String(aK)) | |
345 | 345 | if ($isInstanceOf(V, "Asset")) | |
346 | 346 | then { | |
347 | 347 | let aG = V | |
348 | 348 | (aG.quantity / c) | |
349 | 349 | } | |
350 | 350 | else throw(("asset not found for " + aK)) | |
351 | 351 | } | |
352 | 352 | let aM = (aw((aL - i)) / i) | |
353 | 353 | let aN = if ((aM > aI)) | |
354 | 354 | then (aM + aI) | |
355 | 355 | else aI | |
356 | 356 | let aO = { | |
357 | 357 | let V = aj(l) | |
358 | 358 | if ($isInstanceOf(V, "Int")) | |
359 | 359 | then { | |
360 | 360 | let aJ = V | |
361 | 361 | aJ | |
362 | 362 | } | |
363 | 363 | else throw("failed to get miniting rate") | |
364 | 364 | } | |
365 | 365 | if ((aN == aI)) | |
366 | 366 | then $Tuple2(aO, nil) | |
367 | 367 | else { | |
368 | 368 | let aP = { | |
369 | 369 | let V = aj(k) | |
370 | 370 | if ($isInstanceOf(V, "Int")) | |
371 | 371 | then { | |
372 | 372 | let aJ = V | |
373 | 373 | (aJ + 10) | |
374 | 374 | } | |
375 | 375 | else throw("failed to get percentage reduction factor") | |
376 | 376 | } | |
377 | 377 | let aQ = (aO - fraction(aO, aP, 100)) | |
378 | 378 | let aR = ag(l, aQ) | |
379 | 379 | let aS = ag(k, aP) | |
380 | 380 | let aT = ag(p, aN) | |
381 | 381 | $Tuple2(aQ, [aR, aS, aT]) | |
382 | 382 | } | |
383 | 383 | } | |
384 | 384 | else throw("Strict value is not equal to itself.") | |
385 | 385 | } | |
386 | 386 | else throw("Strict value is not equal to itself.") | |
387 | 387 | } | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | func aU (aV,aW,aX,aY) = { | |
391 | 391 | let aZ = { | |
392 | 392 | let V = aj(I) | |
393 | 393 | if ($isInstanceOf(V, "Int")) | |
394 | 394 | then { | |
395 | 395 | let aJ = V | |
396 | 396 | (aJ + aV) | |
397 | 397 | } | |
398 | 398 | else throw("failed to get global total waves") | |
399 | 399 | } | |
400 | 400 | if ((aZ == aZ)) | |
401 | 401 | then { | |
402 | 402 | let ba = { | |
403 | 403 | let V = aj(H) | |
404 | 404 | if ($isInstanceOf(V, "Int")) | |
405 | 405 | then { | |
406 | 406 | let aJ = V | |
407 | 407 | (aJ + aW) | |
408 | 408 | } | |
409 | 409 | else throw("failed to get global total staw minted") | |
410 | 410 | } | |
411 | 411 | if ((ba == ba)) | |
412 | 412 | then { | |
413 | 413 | let bb = { | |
414 | 414 | let V = aj(J) | |
415 | 415 | if ($isInstanceOf(V, "Int")) | |
416 | 416 | then { | |
417 | 417 | let aJ = V | |
418 | 418 | (aJ + aX) | |
419 | 419 | } | |
420 | 420 | else throw("failed to get global total stawpl") | |
421 | 421 | } | |
422 | 422 | if ((bb == bb)) | |
423 | 423 | then { | |
424 | 424 | let bc = { | |
425 | 425 | let V = aj(K) | |
426 | 426 | if ($isInstanceOf(V, "Int")) | |
427 | 427 | then { | |
428 | 428 | let aJ = V | |
429 | 429 | (aJ + aY) | |
430 | 430 | } | |
431 | 431 | else throw("failed to get global index count") | |
432 | 432 | } | |
433 | 433 | if ((bc == bc)) | |
434 | 434 | then [ag(I, aZ), ag(H, ba), ag(J, bb), ag(K, bc)] | |
435 | 435 | else throw("Strict value is not equal to itself.") | |
436 | 436 | } | |
437 | 437 | else throw("Strict value is not equal to itself.") | |
438 | 438 | } | |
439 | 439 | else throw("Strict value is not equal to itself.") | |
440 | 440 | } | |
441 | 441 | else throw("Strict value is not equal to itself.") | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | func bd (be,bf,bg,bh,bi,aV,aW,bj,bk,bl,bm,bn,bo) = { | |
446 | 446 | let bp = makeString([bf, be, C], a) | |
447 | 447 | let bq = makeString([bf, be, w], a) | |
448 | 448 | let br = makeString([bf, be, x], a) | |
449 | 449 | let bs = makeString([bf, be, z], a) | |
450 | 450 | let bt = makeString([bf, be, A], a) | |
451 | 451 | let bu = makeString([bf, be, B], a) | |
452 | 452 | let bv = makeString([bf, be, D], a) | |
453 | 453 | let bw = makeString([bf, be, y], a) | |
454 | 454 | let bx = makeString([bf, v], a) | |
455 | 455 | let by = makeString([bf, u], a) | |
456 | 456 | let bz = makeString([bf, be, E], a) | |
457 | 457 | let bA = makeString([bf, be, F], a) | |
458 | 458 | let bB = makeString([bf, be, G], a) | |
459 | 459 | let bC = makeString(["%s", be], a) | |
460 | 460 | let bD = makeString(["%d", toString(bg)], a) | |
461 | 461 | let bE = makeString(["%d", toString(bi)], a) | |
462 | 462 | let bF = makeString(["%d", toString(aV)], a) | |
463 | 463 | let bG = makeString(["%d", toString(aW)], a) | |
464 | 464 | let bH = makeString(["%d", toString(bj)], a) | |
465 | 465 | let bI = makeString(["%d", toString(bk)], a) | |
466 | 466 | let bJ = makeString(["%b", bl], a) | |
467 | 467 | let bK = makeString(["%d", toString(bm)], a) | |
468 | 468 | let bL = makeString(["%d", toString(bn)], a) | |
469 | 469 | let bM = makeString(["%d", toString(bh)], a) | |
470 | 470 | let bN = makeString(["%d", toString(0)], a) | |
471 | 471 | let bO = makeString(["%s", bo], a) | |
472 | 472 | [ar(bp, bC), ar(br, bE), ad(by, bL), ad(bx, bK), ar(bq, bD), ar(bz, bM), ar(bs, bF), ar(bt, bG), ad(bu, bH), ad(bA, bN), ar(bv, bI), ar(bw, bJ), ad(bB, bO)] | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | func bP (h,bQ) = { | |
477 | 477 | let bR = aH() | |
478 | 478 | let bS = (fraction(bQ, (f * bR._1), g(h)) / c) | |
479 | 479 | if ((size(bR._2) == 0)) | |
480 | 480 | then $Tuple2(bS, nil) | |
481 | 481 | else $Tuple2(bS, bR._2) | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | func bT (h,bU) = { | |
486 | 486 | let bV = fraction(h, 15, 10) | |
487 | - | let bW = ((fraction(c, ((bU / ((bV - h) * f)) / 2), 1) * f) * f) | |
488 | - | bW | |
487 | + | let bW = (fraction(f, bU, (bV - h)) / 2) | |
488 | + | let bX = (fraction(c, bW, 1) * f) | |
489 | + | bX | |
489 | 490 | } | |
490 | 491 | ||
491 | 492 | ||
492 | - | func | |
493 | - | let | |
494 | - | [ab(J, ( | |
493 | + | func bY (bZ) = { | |
494 | + | let ca = Z(M(J), "could not get the running StawLP") | |
495 | + | [ab(J, (ca + bZ))] | |
495 | 496 | } | |
496 | 497 | ||
497 | 498 | ||
498 | - | func | |
499 | - | let | |
500 | - | [ab(J, ( | |
499 | + | func cb (bZ) = { | |
500 | + | let ca = Z(M(J), "could not get the running StawLP") | |
501 | + | [ab(J, (ca - bZ))] | |
501 | 502 | } | |
502 | 503 | ||
503 | 504 | ||
504 | - | func | |
505 | - | let | |
506 | - | [ab(I, ( | |
505 | + | func cc (bZ) = { | |
506 | + | let cd = Z(M(I), "could not get total locked waves") | |
507 | + | [ab(I, (cd + bZ))] | |
507 | 508 | } | |
508 | 509 | ||
509 | 510 | ||
510 | - | func | |
511 | - | let | |
512 | - | [ab(I, ( | |
511 | + | func ce (bZ) = { | |
512 | + | let cd = Z(M(I), "could not get total locked waves") | |
513 | + | [ab(I, (cd - bZ))] | |
513 | 514 | } | |
514 | 515 | ||
515 | 516 | ||
516 | - | func | |
517 | - | let | |
518 | - | let V = blockInfoByHeight( | |
517 | + | func cf (cg) = { | |
518 | + | let ch = { | |
519 | + | let V = blockInfoByHeight(cg) | |
519 | 520 | if ($isInstanceOf(V, "BlockInfo")) | |
520 | 521 | then { | |
521 | - | let | |
522 | - | | |
522 | + | let ci = V | |
523 | + | ci.timestamp | |
523 | 524 | } | |
524 | 525 | else throw("counld get timestamp") | |
525 | 526 | } | |
526 | - | | |
527 | + | ch | |
527 | 528 | } | |
528 | 529 | ||
529 | 530 | ||
530 | - | func | |
531 | + | func cj (aF) = { | |
531 | 532 | let V = assetInfo(fromBase58String(aF)) | |
532 | 533 | if ($isInstanceOf(V, "Asset")) | |
533 | 534 | then { | |
534 | 535 | let aJ = V | |
535 | 536 | aJ.quantity | |
536 | 537 | } | |
537 | 538 | else throw("asset not found") | |
538 | 539 | } | |
539 | 540 | ||
540 | 541 | ||
541 | 542 | @Callable(au) | |
542 | 543 | func getEmission (h,bU) = { | |
543 | - | let | |
544 | - | if (( | |
544 | + | let ck = at(au) | |
545 | + | if ((ck == ck)) | |
545 | 546 | then $Tuple2(nil, bT(h, bU)) | |
546 | 547 | else throw("Strict value is not equal to itself.") | |
547 | 548 | } | |
548 | 549 | ||
549 | 550 | ||
550 | 551 | ||
551 | 552 | @Callable(au) | |
552 | - | func init (av, | |
553 | - | let | |
553 | + | func init (av,cl,aF,cm) = { | |
554 | + | let cn = if (isDefined(O(n))) | |
554 | 555 | then at(au) | |
555 | 556 | else true | |
556 | - | if (( | |
557 | + | if ((cn == cn)) | |
557 | 558 | then { | |
558 | - | let | |
559 | - | if (( | |
559 | + | let ck = ax(av, "invalid address") | |
560 | + | if ((ck == ck)) | |
560 | 561 | then { | |
561 | - | let | |
562 | - | if (( | |
562 | + | let co = ax(cl, "invalid address") | |
563 | + | if ((co == co)) | |
563 | 564 | then { | |
564 | - | let | |
565 | - | if (( | |
565 | + | let cp = ax(cm, "invalid address") | |
566 | + | if ((cp == cp)) | |
566 | 567 | then { | |
567 | - | let | |
568 | + | let cq = if (aE(aF, "invalid asset")) | |
568 | 569 | then true | |
569 | 570 | else throw("invalid asset Id") | |
570 | - | if (( | |
571 | + | if ((cq == cq)) | |
571 | 572 | then { | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | [ag(n, av), ag(o, | |
573 | + | let cr = T(p, 0) | |
574 | + | let cs = T(k, 0) | |
575 | + | let ct = T(l, c) | |
576 | + | let cu = T(H, 0) | |
577 | + | let cv = T(J, 0) | |
578 | + | let cw = T(K, 0) | |
579 | + | let cx = T(I, 0) | |
580 | + | [ag(n, av), ag(o, cl), ag(m, aF), ag(q, cm), ag(p, cr), ag(l, ct), ag(k, cs), ag(I, cx), ag(J, cv), ag(H, cu), ag(K, cw)] | |
580 | 581 | } | |
581 | 582 | else throw("Strict value is not equal to itself.") | |
582 | 583 | } | |
583 | 584 | else throw("Strict value is not equal to itself.") | |
584 | 585 | } | |
585 | 586 | else throw("Strict value is not equal to itself.") | |
586 | 587 | } | |
587 | 588 | else throw("Strict value is not equal to itself.") | |
588 | 589 | } | |
589 | 590 | else throw("Strict value is not equal to itself.") | |
590 | 591 | } | |
591 | 592 | ||
592 | 593 | ||
593 | 594 | ||
594 | 595 | @Callable(au) | |
595 | 596 | func modifyGlobalParams (X) = { | |
596 | - | let | |
597 | - | if (( | |
597 | + | let ck = at(au) | |
598 | + | if ((ck == ck)) | |
598 | 599 | then { | |
599 | 600 | let az = makeString(["got", "list size of", toString(size(X)), "but expected [global_key, value] pair"], " ") | |
600 | - | let | |
601 | - | if (( | |
601 | + | let co = ae((size(X) != 2), az) | |
602 | + | if ((co == co)) | |
602 | 603 | then { | |
603 | 604 | let N = X[0] | |
604 | - | let | |
605 | - | let V = | |
605 | + | let cy = parseInt(X[1]) | |
606 | + | let V = cy | |
606 | 607 | if ($isInstanceOf(V, "Int")) | |
607 | 608 | then { | |
608 | 609 | let al = V | |
609 | - | let | |
610 | - | if (( | |
610 | + | let cz = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
611 | + | if ((cz == cz)) | |
611 | 612 | then { | |
612 | - | let | |
613 | + | let cA = { | |
613 | 614 | let aB = aj(N) | |
614 | 615 | if ($isInstanceOf(aB, "Int")) | |
615 | 616 | then { | |
616 | 617 | let aJ = aB | |
617 | 618 | true | |
618 | 619 | } | |
619 | 620 | else throw("invalid key-value pair") | |
620 | 621 | } | |
621 | - | if (( | |
622 | + | if ((cA == cA)) | |
622 | 623 | then [ag(N, al)] | |
623 | 624 | else throw("Strict value is not equal to itself.") | |
624 | 625 | } | |
625 | 626 | else throw("Strict value is not equal to itself.") | |
626 | 627 | } | |
627 | 628 | else if ($isInstanceOf(V, "Unit")) | |
628 | 629 | then { | |
629 | 630 | let al = V | |
630 | - | let | |
631 | - | if (( | |
631 | + | let cz = ae((O(N) == unit), (("key " + N) + " not recognized")) | |
632 | + | if ((cz == cz)) | |
632 | 633 | then { | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let aB = | |
634 | + | let cB = X[1] | |
635 | + | let cC = aj(n) | |
636 | + | let cq = { | |
637 | + | let aB = cC | |
637 | 638 | if ($isInstanceOf(aB, "String")) | |
638 | 639 | then { | |
639 | - | let | |
640 | - | if ((size( | |
641 | - | then ax( | |
642 | - | else aE( | |
640 | + | let cD = aB | |
641 | + | if ((size(cD) == size(cB))) | |
642 | + | then ax(cB, "string type for value not supported") | |
643 | + | else aE(cB, "string type for value not supported") | |
643 | 644 | } | |
644 | 645 | else false | |
645 | 646 | } | |
646 | - | if (( | |
647 | - | then [ag(N, | |
647 | + | if ((cq == cq)) | |
648 | + | then [ag(N, cB)] | |
648 | 649 | else throw("Strict value is not equal to itself.") | |
649 | 650 | } | |
650 | 651 | else throw("Strict value is not equal to itself.") | |
651 | 652 | } | |
652 | 653 | else throw(("failed to modify " + X[0])) | |
653 | 654 | } | |
654 | 655 | else throw("Strict value is not equal to itself.") | |
655 | 656 | } | |
656 | 657 | else throw("Strict value is not equal to itself.") | |
657 | 658 | } | |
658 | 659 | ||
659 | 660 | ||
660 | 661 | ||
661 | 662 | @Callable(au) | |
662 | 663 | func revokeLock () = { | |
663 | - | let | |
664 | - | if (( | |
664 | + | let ck = at(au) | |
665 | + | if ((ck == ck)) | |
665 | 666 | then nil | |
666 | 667 | else throw("Strict value is not equal to itself.") | |
667 | 668 | } | |
668 | 669 | ||
669 | 670 | ||
670 | 671 | ||
671 | 672 | @Callable(au) | |
672 | 673 | func claim (be) = { | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | let | |
684 | - | let | |
685 | - | let | |
674 | + | let cE = toBase58String(au.caller.bytes) | |
675 | + | let cF = makeString([cE, be, z], a) | |
676 | + | let cG = makeString([cE, be, w], a) | |
677 | + | let cH = makeString([cE, be, y], a) | |
678 | + | let cI = makeString([cE, be, E], a) | |
679 | + | let cJ = makeString([cE, be, F], a) | |
680 | + | let cK = makeString([cE, be, B], a) | |
681 | + | let cL = makeString([cE, be, z], a) | |
682 | + | let cM = makeString([cE, v], a) | |
683 | + | let cN = makeString([cE, be, G], a) | |
684 | + | let cO = makeString([cE, be, G], a) | |
685 | + | let cP = makeString([cE, be, L], a) | |
686 | + | let cQ = { | |
686 | 687 | let V = aj(I) | |
687 | 688 | if ($isInstanceOf(V, "Int")) | |
688 | 689 | then { | |
689 | 690 | let aJ = V | |
690 | 691 | aJ | |
691 | 692 | } | |
692 | 693 | else throw("failed to get global total waves") | |
693 | 694 | } | |
694 | - | if (( | |
695 | + | if ((cQ == cQ)) | |
695 | 696 | then { | |
696 | - | let | |
697 | + | let cR = { | |
697 | 698 | let V = aj(J) | |
698 | 699 | if ($isInstanceOf(V, "Int")) | |
699 | 700 | then { | |
700 | 701 | let aJ = V | |
701 | 702 | aJ | |
702 | 703 | } | |
703 | 704 | else throw("failed to get global total waves") | |
704 | 705 | } | |
705 | - | if (( | |
706 | + | if ((cR == cR)) | |
706 | 707 | then { | |
707 | 708 | let bl = { | |
708 | - | let V = aj( | |
709 | + | let V = aj(cH) | |
709 | 710 | if ($isInstanceOf(V, "ByteVector")) | |
710 | 711 | then { | |
711 | 712 | let aJ = V | |
712 | 713 | aJ | |
713 | 714 | } | |
714 | 715 | else throw("failed to get lease id") | |
715 | 716 | } | |
716 | 717 | if ((bl == bl)) | |
717 | 718 | then { | |
718 | - | let | |
719 | - | let V = aj( | |
719 | + | let cS = { | |
720 | + | let V = aj(cM) | |
720 | 721 | if ($isInstanceOf(V, "Int")) | |
721 | 722 | then { | |
722 | 723 | let aJ = V | |
723 | 724 | aJ | |
724 | 725 | } | |
725 | 726 | else throw("failed to get total waves locked by this address") | |
726 | 727 | } | |
727 | - | if (( | |
728 | + | if ((cS == cS)) | |
728 | 729 | then { | |
729 | 730 | let aV = { | |
730 | - | let V = aj( | |
731 | + | let V = aj(cL) | |
731 | 732 | if ($isInstanceOf(V, "Int")) | |
732 | 733 | then { | |
733 | 734 | let aJ = V | |
734 | 735 | aJ | |
735 | 736 | } | |
736 | 737 | else throw("failed to get total waves locked") | |
737 | 738 | } | |
738 | 739 | if ((aV == aV)) | |
739 | 740 | then { | |
740 | - | let | |
741 | - | let V = aj( | |
741 | + | let cT = { | |
742 | + | let V = aj(cJ) | |
742 | 743 | if ($isInstanceOf(V, "Int")) | |
743 | 744 | then { | |
744 | 745 | let aJ = V | |
745 | 746 | aJ | |
746 | 747 | } | |
747 | 748 | else throw("failed to get total waves claimed") | |
748 | 749 | } | |
749 | - | if (( | |
750 | + | if ((cT == cT)) | |
750 | 751 | then { | |
751 | 752 | let bj = { | |
752 | - | let V = aj( | |
753 | + | let V = aj(cK) | |
753 | 754 | if ($isInstanceOf(V, "Int")) | |
754 | 755 | then { | |
755 | 756 | let aJ = V | |
756 | 757 | aJ | |
757 | 758 | } | |
758 | 759 | else throw("failed to get stawPL") | |
759 | 760 | } | |
760 | 761 | if ((bj == bj)) | |
761 | 762 | then { | |
762 | - | let | |
763 | - | let V = aj( | |
763 | + | let cU = { | |
764 | + | let V = aj(cI) | |
764 | 765 | if ($isInstanceOf(V, "Int")) | |
765 | 766 | then { | |
766 | 767 | let aJ = V | |
767 | 768 | aJ | |
768 | 769 | } | |
769 | 770 | else throw("failed to get lock period timespam") | |
770 | 771 | } | |
771 | - | if (( | |
772 | + | if ((cU == cU)) | |
772 | 773 | then { | |
773 | - | let | |
774 | - | let V = | |
774 | + | let cV = { | |
775 | + | let V = cf(height) | |
775 | 776 | if ($isInstanceOf(V, "Int")) | |
776 | 777 | then { | |
777 | 778 | let aJ = V | |
778 | 779 | aJ | |
779 | 780 | } | |
780 | 781 | else throw("failed to get current timestamp") | |
781 | 782 | } | |
782 | - | if (( | |
783 | + | if ((cV == cV)) | |
783 | 784 | then { | |
784 | 785 | let bU = { | |
785 | - | let V = aj( | |
786 | + | let V = aj(cF) | |
786 | 787 | if ($isInstanceOf(V, "Int")) | |
787 | 788 | then { | |
788 | 789 | let aJ = V | |
789 | 790 | aJ | |
790 | 791 | } | |
791 | 792 | else throw("failed to get collateral") | |
792 | 793 | } | |
793 | 794 | if ((bU == bU)) | |
794 | 795 | then { | |
795 | 796 | let h = { | |
796 | - | let V = aj( | |
797 | + | let V = aj(cG) | |
797 | 798 | if ($isInstanceOf(V, "Int")) | |
798 | 799 | then { | |
799 | 800 | let aJ = V | |
800 | 801 | aJ | |
801 | 802 | } | |
802 | 803 | else throw("failed to get lockPeriod") | |
803 | 804 | } | |
804 | 805 | if ((h == h)) | |
805 | 806 | then { | |
806 | - | let | |
807 | - | let V = aj( | |
807 | + | let cW = { | |
808 | + | let V = aj(cN) | |
808 | 809 | if ($isInstanceOf(V, "String")) | |
809 | 810 | then { | |
810 | 811 | let aJ = V | |
811 | 812 | aJ | |
812 | 813 | } | |
813 | 814 | else throw("failed to get lease state") | |
814 | 815 | } | |
815 | - | if (( | |
816 | + | if ((cW == cW)) | |
816 | 817 | then { | |
817 | 818 | let bo = { | |
818 | - | let V = aj( | |
819 | + | let V = aj(cO) | |
819 | 820 | if ($isInstanceOf(V, "String")) | |
820 | 821 | then { | |
821 | 822 | let aJ = V | |
822 | 823 | aJ | |
823 | 824 | } | |
824 | 825 | else throw("failed to get lease state for user") | |
825 | 826 | } | |
826 | 827 | if ((bo == bo)) | |
827 | 828 | then { | |
828 | - | let | |
829 | - | let V = O( | |
829 | + | let cX = { | |
830 | + | let V = O(cP) | |
830 | 831 | if ($isInstanceOf(V, "String")) | |
831 | 832 | then { | |
832 | 833 | let aJ = V | |
833 | - | let aB = aj( | |
834 | + | let aB = aj(cP) | |
834 | 835 | if ($isInstanceOf(aB, "Int")) | |
835 | 836 | then { | |
836 | - | let | |
837 | - | | |
837 | + | let cY = aB | |
838 | + | cY | |
838 | 839 | } | |
839 | 840 | else 0 | |
840 | 841 | } | |
841 | 842 | else 0 | |
842 | 843 | } | |
843 | - | if (( | |
844 | + | if ((cX == cX)) | |
844 | 845 | then { | |
845 | - | let | |
846 | - | if (( | |
846 | + | let ck = ae((cU > cV), "lock period for this entry has not elapsed") | |
847 | + | if ((ck == ck)) | |
847 | 848 | then { | |
848 | - | let | |
849 | - | then $Tuple2(LeaseCancel(bl), ad( | |
850 | - | else $Tuple2(ad( | |
851 | - | let | |
849 | + | let cZ = if ((cW == "leased")) | |
850 | + | then $Tuple2(LeaseCancel(bl), ad(cN, "cancelled")) | |
851 | + | else $Tuple2(ad(cN, "cancelled"), ad(cN, "cancelled")) | |
852 | + | let co = ae(if ((0 == aV)) | |
852 | 853 | then true | |
853 | 854 | else (0 == bj), "all claims exhausted for this trx") | |
854 | - | if (( | |
855 | + | if ((co == co)) | |
855 | 856 | then { | |
856 | - | let | |
857 | - | let | |
858 | - | let | |
859 | - | let | |
860 | - | if (( | |
857 | + | let da = bT(h, bU) | |
858 | + | let db = { | |
859 | + | let dc = (cV - cU) | |
860 | + | let dd = (dc / f) | |
861 | + | if ((dd == 0)) | |
861 | 862 | then throw("less than 24hrs before first claim") | |
862 | - | else if (( | |
863 | + | else if ((cX >= dd)) | |
863 | 864 | then throw("24hrs or less before next claim") | |
864 | 865 | else { | |
865 | - | let | |
866 | - | let | |
867 | - | if (( | |
866 | + | let de = (cX * da) | |
867 | + | let df = ae((de == cT), "can only claim once in 24hrs") | |
868 | + | if ((df == df)) | |
868 | 869 | then { | |
869 | - | let | |
870 | - | if (( | |
870 | + | let dg = ae(((de + cT) > aV), "all claims exhausted") | |
871 | + | if ((dg == dg)) | |
871 | 872 | then { | |
872 | - | let dg = if ((cW == 1)) | |
873 | - | then dd | |
874 | - | else (dd - cS) | |
875 | - | let dh = dd | |
876 | - | let di = if ((cW == 1)) | |
877 | - | then (aV - dd) | |
878 | - | else (aV - (dd - cS)) | |
879 | - | let dj = if ((cW == 1)) | |
880 | - | then (bj - dd) | |
881 | - | else (bj - (dd - cS)) | |
882 | - | let dk = (cP - di) | |
873 | + | let dh = if ((cX == 1)) | |
874 | + | then de | |
875 | + | else (de - cT) | |
876 | + | let di = de | |
877 | + | let dj = if ((cX == 1)) | |
878 | + | then (aV - de) | |
879 | + | else (aV - (de - cT)) | |
880 | + | let dk = if ((cX == 1)) | |
881 | + | then (bj - de) | |
882 | + | else (bj - (de - cT)) | |
883 | 883 | let dl = (cQ - dj) | |
884 | - | let dm = (cR - dg) | |
885 | - | let bF = makeString(["%d", toString(di)], a) | |
886 | - | let bH = makeString(["%d", toString(dj)], a) | |
887 | - | let bN = makeString(["%d", toString(dh)], a) | |
888 | - | let dn = makeString(["%d", toString(dm)], a) | |
889 | - | let do = makeString(["%d", toString(dc)], a) | |
890 | - | [cY._1, cY._2, ad(cK, bF), ad(cJ, bH), ad(cI, bN), ad(cL, dn), ad(cO, do), ag(I, dk), ag(J, dl), ScriptTransfer(Address(au.caller.bytes), dg, unit)] | |
884 | + | let dm = (cR - dk) | |
885 | + | let dn = (cS - dh) | |
886 | + | let bF = makeString(["%d", toString(dj)], a) | |
887 | + | let bH = makeString(["%d", toString(dk)], a) | |
888 | + | let bN = makeString(["%d", toString(di)], a) | |
889 | + | let do = makeString(["%d", toString(dn)], a) | |
890 | + | let dp = makeString(["%d", toString(dd)], a) | |
891 | + | [cZ._1, cZ._2, ad(cL, bF), ad(cK, bH), ad(cJ, bN), ad(cM, do), ad(cP, dp), ag(I, dl), ag(J, dm), ScriptTransfer(Address(au.caller.bytes), dh, unit)] | |
891 | 892 | } | |
892 | 893 | else throw("Strict value is not equal to itself.") | |
893 | 894 | } | |
894 | 895 | else throw("Strict value is not equal to itself.") | |
895 | 896 | } | |
896 | 897 | } | |
897 | - | if (( | |
898 | - | then | |
898 | + | if ((db == db)) | |
899 | + | then db | |
899 | 900 | else throw("Strict value is not equal to itself.") | |
900 | 901 | } | |
901 | 902 | else throw("Strict value is not equal to itself.") | |
902 | 903 | } | |
903 | 904 | else throw("Strict value is not equal to itself.") | |
904 | 905 | } | |
905 | 906 | else throw("Strict value is not equal to itself.") | |
906 | 907 | } | |
907 | 908 | else throw("Strict value is not equal to itself.") | |
908 | 909 | } | |
909 | 910 | else throw("Strict value is not equal to itself.") | |
910 | 911 | } | |
911 | 912 | else throw("Strict value is not equal to itself.") | |
912 | 913 | } | |
913 | 914 | else throw("Strict value is not equal to itself.") | |
914 | 915 | } | |
915 | 916 | else throw("Strict value is not equal to itself.") | |
916 | 917 | } | |
917 | 918 | else throw("Strict value is not equal to itself.") | |
918 | 919 | } | |
919 | 920 | else throw("Strict value is not equal to itself.") | |
920 | 921 | } | |
921 | 922 | else throw("Strict value is not equal to itself.") | |
922 | 923 | } | |
923 | 924 | else throw("Strict value is not equal to itself.") | |
924 | 925 | } | |
925 | 926 | else throw("Strict value is not equal to itself.") | |
926 | 927 | } | |
927 | 928 | else throw("Strict value is not equal to itself.") | |
928 | 929 | } | |
929 | 930 | else throw("Strict value is not equal to itself.") | |
930 | 931 | } | |
931 | 932 | else throw("Strict value is not equal to itself.") | |
932 | 933 | } | |
933 | 934 | ||
934 | 935 | ||
935 | 936 | ||
936 | 937 | @Callable(au) | |
937 | 938 | func mintStaw (h) = { | |
938 | - | let | |
939 | - | let | |
940 | - | let | |
941 | - | if (( | |
939 | + | let cE = toBase58String(au.caller.bytes) | |
940 | + | let dq = toBase58String(au.transactionId) | |
941 | + | let ck = ae((1 != size(au.payments)), "no payments attached") | |
942 | + | if ((ck == ck)) | |
942 | 943 | then { | |
943 | - | let | |
944 | + | let co = if (isDefined(au.payments[0].assetId)) | |
944 | 945 | then throw("only waves supported") | |
945 | 946 | else true | |
946 | - | if (( | |
947 | + | if ((co == co)) | |
947 | 948 | then { | |
948 | - | let | |
949 | - | let | |
949 | + | let dr = au.payments[0].amount | |
950 | + | let cp = if (if ((d > dr)) | |
950 | 951 | then true | |
951 | - | else ( | |
952 | + | else (dr > e)) | |
952 | 953 | then throw("lock amount out of range, minimum: 1 waves, maximum: 1000 waves") | |
953 | 954 | else true | |
954 | - | if (( | |
955 | + | if ((cp == cp)) | |
955 | 956 | then { | |
956 | - | let | |
957 | + | let cq = if ((b > h)) | |
957 | 958 | then throw("minimum of 14 days lock period") | |
958 | 959 | else true | |
959 | - | if (( | |
960 | + | if ((cq == cq)) | |
960 | 961 | then { | |
961 | - | let | |
962 | - | let aX = | |
963 | - | let | |
964 | - | let | |
965 | - | let | |
966 | - | if (( | |
962 | + | let ds = bP(h, dr) | |
963 | + | let aX = dr | |
964 | + | let dt = fraction(ds._1, 10, 100) | |
965 | + | let du = (ds._1 - dt) | |
966 | + | let dv = (cf(height) + ao(h)) | |
967 | + | if ((dv == dv)) | |
967 | 968 | then { | |
968 | - | let | |
969 | + | let dw = { | |
969 | 970 | let V = aj(K) | |
970 | 971 | if ($isInstanceOf(V, "Int")) | |
971 | 972 | then { | |
972 | 973 | let aJ = V | |
973 | 974 | (aJ + 1) | |
974 | 975 | } | |
975 | 976 | else throw("failed to get current global index count") | |
976 | 977 | } | |
977 | - | if (( | |
978 | + | if ((dw == dw)) | |
978 | 979 | then { | |
979 | - | let | |
980 | + | let dx = { | |
980 | 981 | let V = aj(o) | |
981 | 982 | if ($isInstanceOf(V, "String")) | |
982 | 983 | then { | |
983 | 984 | let aJ = V | |
984 | 985 | Address(fromBase58String(aJ)) | |
985 | 986 | } | |
986 | 987 | else throw("failed to get dfx address") | |
987 | 988 | } | |
988 | - | if (( | |
989 | + | if ((dx == dx)) | |
989 | 990 | then { | |
990 | 991 | let aK = { | |
991 | 992 | let V = aj(m) | |
992 | 993 | if ($isInstanceOf(V, "String")) | |
993 | 994 | then { | |
994 | 995 | let aJ = V | |
995 | 996 | fromBase58String(aJ) | |
996 | 997 | } | |
997 | 998 | else throw("failed to get asset id") | |
998 | 999 | } | |
999 | 1000 | if ((aK == aK)) | |
1000 | 1001 | then { | |
1001 | - | let | |
1002 | + | let dy = { | |
1002 | 1003 | let V = aj(q) | |
1003 | 1004 | if ($isInstanceOf(V, "String")) | |
1004 | 1005 | then { | |
1005 | 1006 | let aJ = V | |
1006 | 1007 | Address(fromBase58String(aJ)) | |
1007 | 1008 | } | |
1008 | 1009 | else throw("failed to get lease node address") | |
1009 | 1010 | } | |
1010 | - | if (( | |
1011 | + | if ((dy == dy)) | |
1011 | 1012 | then { | |
1012 | - | let | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let V = O( | |
1013 | + | let dz = makeString([cE, u], a) | |
1014 | + | let dA = makeString([cE, v], a) | |
1015 | + | let dB = { | |
1016 | + | let V = O(dz) | |
1016 | 1017 | if ($isInstanceOf(V, "String")) | |
1017 | 1018 | then { | |
1018 | 1019 | let al = V | |
1019 | - | let aB = aj( | |
1020 | + | let aB = aj(dz) | |
1020 | 1021 | if ($isInstanceOf(aB, "Int")) | |
1021 | 1022 | then { | |
1022 | 1023 | let aJ = aB | |
1023 | 1024 | (aJ + 1) | |
1024 | 1025 | } | |
1025 | 1026 | else 1 | |
1026 | 1027 | } | |
1027 | 1028 | else 1 | |
1028 | 1029 | } | |
1029 | - | if (( | |
1030 | + | if ((dB == dB)) | |
1030 | 1031 | then { | |
1031 | - | let | |
1032 | - | let V = O( | |
1032 | + | let dC = { | |
1033 | + | let V = O(dA) | |
1033 | 1034 | if ($isInstanceOf(V, "String")) | |
1034 | 1035 | then { | |
1035 | 1036 | let al = V | |
1036 | - | let aB = aj( | |
1037 | + | let aB = aj(dA) | |
1037 | 1038 | if ($isInstanceOf(aB, "Int")) | |
1038 | 1039 | then { | |
1039 | 1040 | let aJ = aB | |
1040 | - | (aJ + | |
1041 | + | (aJ + dr) | |
1041 | 1042 | } | |
1042 | - | else | |
1043 | + | else dr | |
1043 | 1044 | } | |
1044 | - | else | |
1045 | + | else dr | |
1045 | 1046 | } | |
1046 | - | if (( | |
1047 | + | if ((dC == dC)) | |
1047 | 1048 | then { | |
1048 | - | let | |
1049 | - | let | |
1050 | - | ((([ | |
1049 | + | let dD = Lease(dy, dr) | |
1050 | + | let dE = toBase58String(calculateLeaseId(dD)) | |
1051 | + | ((([dD, ScriptTransfer(dx, dt, aK), ScriptTransfer(Address(au.caller.bytes), du, aK)] ++ bd(dq, cE, h, dv, dw, dr, du, aX, height, dE, dC, dB, "leased")) ++ aU(dr, ds._1, aX, dw)) ++ ds._2) | |
1051 | 1052 | } | |
1052 | 1053 | else throw("Strict value is not equal to itself.") | |
1053 | 1054 | } | |
1054 | 1055 | else throw("Strict value is not equal to itself.") | |
1055 | 1056 | } | |
1056 | 1057 | else throw("Strict value is not equal to itself.") | |
1057 | 1058 | } | |
1058 | 1059 | else throw("Strict value is not equal to itself.") | |
1059 | 1060 | } | |
1060 | 1061 | else throw("Strict value is not equal to itself.") | |
1061 | 1062 | } | |
1062 | 1063 | else throw("Strict value is not equal to itself.") | |
1063 | 1064 | } | |
1064 | 1065 | else throw("Strict value is not equal to itself.") | |
1065 | 1066 | } | |
1066 | 1067 | else throw("Strict value is not equal to itself.") | |
1067 | 1068 | } | |
1068 | 1069 | else throw("Strict value is not equal to itself.") | |
1069 | 1070 | } | |
1070 | 1071 | else throw("Strict value is not equal to itself.") | |
1071 | 1072 | } | |
1072 | 1073 | else throw("Strict value is not equal to itself.") | |
1073 | 1074 | } | |
1074 | 1075 | ||
1075 | 1076 |
github/deemru/w8io/169f3d6 468.62 ms ◑