tx · Bze3DMW4jbCBvtCETarTU2v3HqQP24XJZFH7MBbZhX8R 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03100000 Waves 2024.12.05 07:23 [3400852] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "Bze3DMW4jbCBvtCETarTU2v3HqQP24XJZFH7MBbZhX8R", "fee": 3100000, "feeAssetId": null, "timestamp": 1733372701103, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "56iuj44m91mN69wExZgmrQbEfsP4acCuSkLvKEXitPEVYQtWVD2UYDh9oXJ6YgsSQnDjNEyhbYKk5HZYDchimLPv" ], "script": "base64:BgJMCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASAH0AA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQ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yOTk2NjMwMTE2Al8xBApuZnRBc3NldElkCAUNJHQwMjk5NjYzMDExNgJfMgkAlAoCCQDNCAIJAM0IAgkAzggCCQDOCAIFD2lzc3VlTmZ0QWN0aW9ucwUNcHJvbG9nQWN0aW9ucwUNY2hhbmdlQWN0aW9ucwkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQkBEUBleHRyTmF0aXZlKDEwNTMpAgULd2xnQ29udHJhY3QFC3RlYW1BZGRyS2V5BQdmb3JUZWFtBQp3bGdBc3NldElkCQELRGVsZXRlRW50cnkBBQlmaW5pc2hLZXkJAJQKAgUKbmZ0QXNzZXRJZAUJd2xnUmVtYWluAWkBD2NvbW1pdEZvclJhbmRvbQAEDXByb2xvZ0FjdGlvbnMJAQZwcm9sb2cBBQFpBARhZGRyCQClCAEIBQFpBmNhbGxlcgQJZmluaXNoS2V5CQEJa2V5Q29tbWl0AQUEYWRkcgMJAQlpc0RlZmluZWQBCQCfCAEFCWZpbmlzaEtleQkAAgECLllvdSBhbHJlYWR5IGNvbW1pdGVkIGZvciByYW5kb20sIHBsZWFzZSB1c2UgaXQEC2ZpbmlzaEJsb2NrCQBkAgUGaGVpZ2h0BQxSQU5ET01fREVMQVkJAJQKAgkAzggCCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQlmaW5pc2hLZXkFC2ZpbmlzaEJsb2NrBQNuaWwFDXByb2xvZ0FjdGlvbnMFC2ZpbmlzaEJsb2NrAMo4nFE=", "height": 3400852, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Cb9tPTgn3zqwmrGDuS1teXPWepXZbTV1b8Ux3TwwPQ2 Next: EUaom4pAhUkxBAZ8a2BZeqbuGM7FFTeDTXQwquExMote Diff:
Old | New | Differences | |
---|---|---|---|
696 | 696 | ||
697 | 697 | ||
698 | 698 | @Callable(bK) | |
699 | - | func convertOldStakes () = { | |
699 | + | func convertOldStakes (s) = { | |
700 | 700 | let dz = bJ(bK) | |
701 | 701 | if ((bh > lastBlock.timestamp)) | |
702 | 702 | then throw(("Disabled until " + toString((bh / 1000)))) | |
703 | 703 | else { | |
704 | - | let | |
704 | + | let dQ = addressFromStringValue(s) | |
705 | 705 | if ((size(bK.payments) != 0)) | |
706 | 706 | then throw("No payments required") | |
707 | 707 | else { | |
708 | 708 | let dH = addressFromStringValue(getStringValue(I)) | |
709 | 709 | let dy = valueOrElse(getInteger(dH, ax(s)), 0) | |
710 | - | let | |
710 | + | let dR = if ((dy > 0)) | |
711 | 711 | then ai(invoke(dH, "unstakeAcresCallback", [dy, s], nil)) | |
712 | 712 | else $Tuple2(0, 0) | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
713 | + | let dS = addressFromStringValue(q) | |
714 | + | let dT = getString(dS, U(s)) | |
715 | + | let dU = if (isDefined(dT)) | |
716 | 716 | then { | |
717 | - | let | |
718 | - | if ((size( | |
717 | + | let dV = split_51C(value(dT), "_") | |
718 | + | if ((size(dV) > bi)) | |
719 | 719 | then throw((("You have more than " + toString(bi)) + " lands staked, please contact support, we'll process your case manually")) | |
720 | 720 | else { | |
721 | - | func | |
721 | + | func dW (aS,dX) = if ((dX == "")) | |
722 | 722 | then throw("landAssetId is required") | |
723 | 723 | else { | |
724 | - | let | |
725 | - | if (( | |
726 | - | then $Tuple5((aS._1 + | |
724 | + | let dY = ad(invoke(dS, "unstakeLandCallback", [dX, s], nil)) | |
725 | + | if ((dY == dY)) | |
726 | + | then $Tuple5((aS._1 + dY._1), (aS._2 + dY._2), (aS._3 + dY._3), (aS._4 + dY._4), (aS._5 + dY._5)) | |
727 | 727 | else throw("Strict value is not equal to itself.") | |
728 | 728 | } | |
729 | 729 | ||
730 | - | let | |
731 | - | let aU = | |
730 | + | let dZ = { | |
731 | + | let aU = dV | |
732 | 732 | let aV = size(aU) | |
733 | 733 | let aW = $Tuple5(0, 0, 0, 0, 0) | |
734 | 734 | func aX (aY,aZ) = if ((aZ >= aV)) | |
735 | 735 | then aY | |
736 | - | else | |
736 | + | else dW(aY, aU[aZ]) | |
737 | 737 | ||
738 | 738 | func ba (aY,aZ) = if ((aZ >= aV)) | |
739 | 739 | then aY | |
741 | 741 | ||
742 | 742 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14) | |
743 | 743 | } | |
744 | - | let | |
745 | - | if (( | |
744 | + | let ea = invoke(dS, "unstakeLandsFinalizeCallback", [s], nil) | |
745 | + | if ((ea == ea)) | |
746 | 746 | then { | |
747 | - | let dI = invoke(dH, "requestAcresCallback", [((( | |
747 | + | let dI = invoke(dH, "requestAcresCallback", [(((dZ._1 + dZ._2) + dZ._3) + dZ._4)], nil) | |
748 | 748 | if ((dI == dI)) | |
749 | 749 | then { | |
750 | - | let | |
751 | - | let | |
752 | - | let cm = | |
753 | - | $Tuple6( | |
750 | + | let eb = cd(bu, by, bG, bE, 3, bn, bI, dQ) | |
751 | + | let ec = eb._1 | |
752 | + | let cm = eb._2 | |
753 | + | $Tuple6(dZ._1, dZ._2, dZ._3, dZ._4, dZ._5, ec) | |
754 | 754 | } | |
755 | 755 | else throw("Strict value is not equal to itself.") | |
756 | 756 | } | |
758 | 758 | } | |
759 | 759 | } | |
760 | 760 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
761 | - | let | |
762 | - | let | |
763 | - | then ah(invoke( | |
761 | + | let ed = valueOrElse(getString(dS, W(s)), "") | |
762 | + | let ee = if ((ed != "")) | |
763 | + | then ah(invoke(dS, "unstakeDuckCallback", [ed, s], nil)) | |
764 | 764 | else $Tuple3(0, 0, 0) | |
765 | - | let | |
766 | - | $Tuple2((( | |
765 | + | let ef = cr((((((((dR._1 + dU._1) + dU._2) + dU._3) + dU._4) + ee._1) + ee._2) + ee._3), s, 0) | |
766 | + | $Tuple2(((dU._6 ++ ef._1) ++ dz), $Tuple3(dR._2, dU._5, ef._2)) | |
767 | 767 | } | |
768 | 768 | } | |
769 | 769 | } | |
772 | 772 | ||
773 | 773 | @Callable(bK) | |
774 | 774 | func unstakeLandsREADONLY (s) = { | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
775 | + | let dS = addressFromStringValue(q) | |
776 | + | let dT = getString(dS, U(s)) | |
777 | + | let dU = if (isDefined(dT)) | |
778 | 778 | then { | |
779 | - | let | |
780 | - | func | |
779 | + | let dV = split_51C(value(dT), "_") | |
780 | + | func dW (aS,dX) = if ((dX == "")) | |
781 | 781 | then throw("landAssetId is required") | |
782 | 782 | else { | |
783 | - | let | |
784 | - | $Tuple4((aS._1 + | |
783 | + | let dY = ag(invoke(dS, "unstakeLandREADONLY", [dX, s], nil)) | |
784 | + | $Tuple4((aS._1 + dY._1), (aS._2 + dY._2), (aS._3 + dY._3), (aS._4 + dY._4)) | |
785 | 785 | } | |
786 | 786 | ||
787 | - | let aU = | |
787 | + | let aU = dV | |
788 | 788 | let aV = size(aU) | |
789 | 789 | let aW = $Tuple4(0, 0, 0, 0) | |
790 | 790 | func aX (aY,aZ) = if ((aZ >= aV)) | |
791 | 791 | then aY | |
792 | - | else | |
792 | + | else dW(aY, aU[aZ]) | |
793 | 793 | ||
794 | 794 | func ba (aY,aZ) = if ((aZ >= aV)) | |
795 | 795 | then aY | |
798 | 798 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
799 | 799 | } | |
800 | 800 | else $Tuple4(0, 0, 0, 0) | |
801 | - | $Tuple2(nil, | |
801 | + | $Tuple2(nil, dU) | |
802 | 802 | } | |
803 | 803 | ||
804 | 804 | ||
811 | 811 | ||
812 | 812 | ||
813 | 813 | @Callable(bK) | |
814 | - | func simulateStakeAcresREADONLY (s, | |
814 | + | func simulateStakeAcresREADONLY (s,eg) = { | |
815 | 815 | let cx = ax(s) | |
816 | - | let cz = (valueOrElse(getInteger(cx), 0) + | |
816 | + | let cz = (valueOrElse(getInteger(cx), 0) + eg) | |
817 | 817 | let cA = valueOrElse(getInteger(az), 0) | |
818 | 818 | let cB = ay(s) | |
819 | 819 | let cC = valueOrElse(getInteger(cB), 0) | |
820 | - | let | |
821 | - | let | |
822 | - | let cG = | |
823 | - | let cH = | |
820 | + | let eh = valueOrElse(getInteger(F, aM(s)), 0) | |
821 | + | let ei = bc(cz, eh) | |
822 | + | let cG = ei._1 | |
823 | + | let cH = ei._2 | |
824 | 824 | let cI = valueOrElse(getInteger(aA), 0) | |
825 | - | let | |
826 | - | $Tuple2(nil, [cC, cG, cI, | |
825 | + | let ej = ((cI + cG) - cC) | |
826 | + | $Tuple2(nil, [cC, cG, cI, ej]) | |
827 | 827 | } | |
828 | 828 | ||
829 | 829 | ||
830 | 830 | ||
831 | 831 | @Callable(bK) | |
832 | - | func issuePickC1 ( | |
832 | + | func issuePickC1 (ek) = if ((bK.caller != G)) | |
833 | 833 | then throw("Permission denied") | |
834 | - | else cd(bv, bx, bG, bA, 1, bo, bI, addressFromStringValue( | |
834 | + | else cd(bv, bx, bG, bA, 1, bo, bI, addressFromStringValue(ek)) | |
835 | 835 | ||
836 | 836 | ||
837 | 837 | ||
846 | 846 | then throw("NFT token should be attached as payment") | |
847 | 847 | else { | |
848 | 848 | let Y = value(dC.assetId) | |
849 | - | let | |
849 | + | let el = value(assetInfo(Y)) | |
850 | 850 | let dm = toBase58String(Y) | |
851 | 851 | let L = toString(bK.caller) | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | then split_4C(value( | |
852 | + | let em = Z(L) | |
853 | + | let en = getString(em) | |
854 | + | let eo = if (isDefined(en)) | |
855 | + | then split_4C(value(en), "_") | |
856 | 856 | else nil | |
857 | - | if (containsElement( | |
857 | + | if (containsElement(eo, dm)) | |
858 | 858 | then throw(("Your staked NFTs already contain " + dm)) | |
859 | - | else if ((size( | |
859 | + | else if ((size(eo) >= aE)) | |
860 | 860 | then throw((("Your already staked max (" + toString(aE)) + ") NFTs")) | |
861 | 861 | else { | |
862 | - | let | |
863 | - | if (( | |
862 | + | let ep = StringEntry(em, makeString_2C((eo :+ dm), "_")) | |
863 | + | if ((el.issuer == this)) | |
864 | 864 | then { | |
865 | - | let | |
866 | - | let ds = | |
867 | - | let dt = | |
868 | - | $Tuple2(((dz ++ ds) :+ | |
865 | + | let eq = dl(L, dm, (cn(value(el.description)) * 10000), aK(L), aH, aB) | |
866 | + | let ds = eq._1 | |
867 | + | let dt = eq._2 | |
868 | + | $Tuple2(((dz ++ ds) :+ ep), dt) | |
869 | 869 | } | |
870 | - | else if ((di( | |
870 | + | else if ((di(el) == "")) | |
871 | 871 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
872 | 872 | else { | |
873 | - | let | |
874 | - | let ds = | |
875 | - | let dt = | |
876 | - | $Tuple2(((dz ++ ds) :+ | |
873 | + | let er = dl(L, dm, aD, aL(L), aI, aC) | |
874 | + | let ds = er._1 | |
875 | + | let dt = er._2 | |
876 | + | $Tuple2(((dz ++ ds) :+ ep), dt) | |
877 | 877 | } | |
878 | 878 | } | |
879 | 879 | } | |
890 | 890 | else { | |
891 | 891 | let Y = fromBase58String(dm) | |
892 | 892 | let L = toString(bK.caller) | |
893 | - | let | |
893 | + | let el = value(assetInfo(Y)) | |
894 | 894 | let cw = X(dm, L) | |
895 | 895 | if (!(isDefined(getInteger(cw)))) | |
896 | - | then throw((("NFT " + | |
896 | + | then throw((("NFT " + el.name) + " is not staked by you")) | |
897 | 897 | else { | |
898 | - | let | |
899 | - | let | |
900 | - | let D = indexOf( | |
898 | + | let em = Z(L) | |
899 | + | let eo = split_4C(valueOrElse(getString(em), ""), "_") | |
900 | + | let D = indexOf(eo, dm) | |
901 | 901 | if (!(isDefined(D))) | |
902 | 902 | then throw(("Your staked NFTs don't contain " + dm)) | |
903 | 903 | else { | |
904 | - | let | |
905 | - | then StringEntry( | |
906 | - | else DeleteEntry( | |
907 | - | let | |
908 | - | if ( | |
904 | + | let ep = if ((size(eo) > 1)) | |
905 | + | then StringEntry(em, makeString_2C(removeByIndex(eo, value(D)), "_")) | |
906 | + | else DeleteEntry(em) | |
907 | + | let es = (el.issuer == this) | |
908 | + | if (es) | |
909 | 909 | then { | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | let ds = | |
914 | - | let dt = | |
915 | - | $Tuple2(((((((ds :+ | |
910 | + | let et = valueOrElse(getInteger(aK(L)), 0) | |
911 | + | let eu = (cn(value(el.description)) * 10000) | |
912 | + | let ev = cr(0, L, -(eu)) | |
913 | + | let ds = ev._1 | |
914 | + | let dt = ev._2 | |
915 | + | $Tuple2(((((((ds :+ ep) :+ IntegerEntry(aK(L), (et - 1))) :+ IntegerEntry(aH, max([0, (valueOrElse(getInteger(aH), 0) - 1)]))) :+ DeleteEntry(X(toBase58String(Y), L))) :+ ScriptTransfer(bK.caller, 1, Y)) ++ dz), dt) | |
916 | 916 | } | |
917 | 917 | else { | |
918 | - | let | |
919 | - | if (( | |
918 | + | let ew = di(el) | |
919 | + | if ((ew == "")) | |
920 | 920 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
921 | 921 | else { | |
922 | - | let | |
923 | - | let | |
924 | - | let ds = | |
925 | - | let dt = | |
926 | - | $Tuple2((((((ds :+ | |
922 | + | let ex = valueOrElse(getInteger(aL(L)), 0) | |
923 | + | let ey = cr(0, L, -(aD)) | |
924 | + | let ds = ey._1 | |
925 | + | let dt = ey._2 | |
926 | + | $Tuple2((((((ds :+ ep) :+ IntegerEntry(aL(L), (ex - 1))) :+ DeleteEntry(X(toBase58String(Y), L))) :+ ScriptTransfer(bK.caller, 1, Y)) ++ dz), dt) | |
927 | 927 | } | |
928 | 928 | } | |
929 | 929 | } | |
942 | 942 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
943 | 943 | else { | |
944 | 944 | let L = toString(bK.caller) | |
945 | - | func | |
945 | + | func ez (aS,dC) = { | |
946 | 946 | let Y = valueOrErrorMessage(dC.assetId, "WAVES payments not allowed") | |
947 | 947 | if ((Y == P)) | |
948 | 948 | then $Tuple4((aS._1 + dC.amount), aS._2, aS._3, aS._4) | |
949 | 949 | else { | |
950 | - | let | |
951 | - | if (( | |
950 | + | let el = value(assetInfo(Y)) | |
951 | + | if ((el.issuer != this)) | |
952 | 952 | then throw("Only WL-issued NFTs allowed") | |
953 | 953 | else { | |
954 | - | let | |
954 | + | let eA = cp(value(el.description)) | |
955 | 955 | if (if ((aS._4 > 0)) | |
956 | - | then ( | |
956 | + | then (eA != aS._4) | |
957 | 957 | else false) | |
958 | 958 | then throw("You can exchange only NFTs of the same rarity") | |
959 | 959 | else { | |
960 | - | let ci = cn(value( | |
961 | - | $Tuple4(aS._1, (aS._2 + ci), (aS._3 :+ Burn(Y, 1)), | |
960 | + | let ci = cn(value(el.description)) | |
961 | + | $Tuple4(aS._1, (aS._2 + ci), (aS._3 :+ Burn(Y, 1)), eA) | |
962 | 962 | } | |
963 | 963 | } | |
964 | 964 | } | |
965 | 965 | } | |
966 | 966 | ||
967 | - | let | |
967 | + | let eB = { | |
968 | 968 | let aU = bK.payments | |
969 | 969 | let aV = size(aU) | |
970 | 970 | let aW = $Tuple4(0, 0, nil, -1) | |
971 | 971 | func aX (aY,aZ) = if ((aZ >= aV)) | |
972 | 972 | then aY | |
973 | - | else | |
973 | + | else ez(aY, aU[aZ]) | |
974 | 974 | ||
975 | 975 | func ba (aY,aZ) = if ((aZ >= aV)) | |
976 | 976 | then aY | |
978 | 978 | ||
979 | 979 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
980 | 980 | } | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | let ch = | |
985 | - | let | |
986 | - | then if ((bp[bq] > | |
981 | + | let eC = eB._1 | |
982 | + | let eD = eB._2 | |
983 | + | let eE = eB._3 | |
984 | + | let ch = eB._4 | |
985 | + | let eF = if ((ch == bA)) | |
986 | + | then if ((bp[bq] > eD)) | |
987 | 987 | then bA | |
988 | - | else if ((bp[br] > | |
988 | + | else if ((bp[br] > eD)) | |
989 | 989 | then bB | |
990 | 990 | else throw((("You can advance only one level of rarity, max total bonus " + toString(bp[br])) + "%")) | |
991 | 991 | else if ((ch == bB)) | |
992 | - | then if ((bp[br] > | |
992 | + | then if ((bp[br] > eD)) | |
993 | 993 | then bB | |
994 | - | else if ((bp[bs] > | |
994 | + | else if ((bp[bs] > eD)) | |
995 | 995 | then bC | |
996 | 996 | else throw((("You can advance only one level of rarity, max total bonus " + toString(bp[bs])) + "%")) | |
997 | 997 | else if ((ch == bC)) | |
998 | - | then if ((bp[bs] > | |
998 | + | then if ((bp[bs] > eD)) | |
999 | 999 | then bC | |
1000 | 1000 | else bD | |
1001 | 1001 | else if ((ch == bD)) | |
1003 | 1003 | else if ((ch == bE)) | |
1004 | 1004 | then throw("You can't exchange NFTs of this rarity") | |
1005 | 1005 | else throw("Unknown rarity") | |
1006 | - | let | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let dJ = aa(invoke(G, "burnWlgold", [( | |
1010 | - | if ((0 > | |
1011 | - | then throw((("You need to attach " + aj( | |
1006 | + | let eG = fraction(eD, e, cL(0)) | |
1007 | + | let eH = (eC - eG) | |
1008 | + | let eI = (eG / 2) | |
1009 | + | let dJ = aa(invoke(G, "burnWlgold", [(eG - eI)], nil)) | |
1010 | + | if ((0 > eH)) | |
1011 | + | then throw((("You need to attach " + aj(eG, 8)) + " WLGOLD as fee")) | |
1012 | 1012 | else { | |
1013 | - | let | |
1014 | - | then [ScriptTransfer(bK.caller, | |
1013 | + | let eJ = if ((eH > 0)) | |
1014 | + | then [ScriptTransfer(bK.caller, eH, P)] | |
1015 | 1015 | else nil | |
1016 | - | let | |
1017 | - | let | |
1018 | - | let cm = | |
1019 | - | let | |
1020 | - | let | |
1016 | + | let eK = cd(bv, eF, bG, eF, eD, bo, bI, bK.caller) | |
1017 | + | let eL = eK._1 | |
1018 | + | let cm = eK._2 | |
1019 | + | let eM = size(eE) | |
1020 | + | let eN = if ((eM == 0)) | |
1021 | 1021 | then nil | |
1022 | - | else [IntegerEntry(aG, (valueOrElse(getInteger(aG), 0) + | |
1023 | - | $Tuple2(((((( | |
1022 | + | else [IntegerEntry(aG, (valueOrElse(getInteger(aG), 0) + eM))] | |
1023 | + | $Tuple2((((((eL ++ eE) ++ eN) ++ dz) ++ eJ) :+ ScriptTransfer(addressFromStringValue(getStringValue(G, bf)), eI, P)), $Tuple2(cm, dJ)) | |
1024 | 1024 | } | |
1025 | 1025 | } | |
1026 | 1026 | } | |
1040 | 1040 | else (value(dC.assetId) != P)) | |
1041 | 1041 | then throw("WLGOLD payments only!") | |
1042 | 1042 | else { | |
1043 | - | let | |
1044 | - | let | |
1045 | - | let | |
1046 | - | let dJ = aa(invoke(G, "burnWlgold", [( | |
1047 | - | if ((0 > | |
1048 | - | then throw((("You need to attach " + aj( | |
1043 | + | let eG = fraction(j, d, cL(0)) | |
1044 | + | let eH = (dG - eG) | |
1045 | + | let eI = (eG / 2) | |
1046 | + | let dJ = aa(invoke(G, "burnWlgold", [(eG - eI)], nil)) | |
1047 | + | if ((0 > eH)) | |
1048 | + | then throw((("You need to attach " + aj(eG, 8)) + " WLGOLD as fee")) | |
1049 | 1049 | else { | |
1050 | - | let | |
1051 | - | then [ScriptTransfer(bK.caller, | |
1050 | + | let eJ = if ((eH > 0)) | |
1051 | + | then [ScriptTransfer(bK.caller, eH, P)] | |
1052 | 1052 | else nil | |
1053 | 1053 | let L = toString(bK.caller) | |
1054 | - | let | |
1055 | - | let | |
1056 | - | if (( | |
1057 | - | then throw(("Random number is not ready yet, wait until height = " + toString( | |
1054 | + | let eO = N(L) | |
1055 | + | let eP = valueOrErrorMessage(getInteger(eO), "You have to commitForRandom() first!") | |
1056 | + | if ((eP > height)) | |
1057 | + | then throw(("Random number is not ready yet, wait until height = " + toString(eP))) | |
1058 | 1058 | else { | |
1059 | - | let ar = value(value(blockInfoByHeight( | |
1059 | + | let ar = value(value(blockInfoByHeight(eP)).vrf) | |
1060 | 1060 | let aq = fromBase58String(split(valueOrElse(getString(M(L)), "42_DEFAULT"), "_")[1]) | |
1061 | - | let | |
1062 | - | let | |
1061 | + | let eQ = ao(100, aq, ar) | |
1062 | + | let eR = if ((84 > eQ)) | |
1063 | 1063 | then $Tuple2(1, bA) | |
1064 | - | else if ((98 > | |
1064 | + | else if ((98 > eQ)) | |
1065 | 1065 | then $Tuple2(5, bB) | |
1066 | 1066 | else $Tuple2(10, bC) | |
1067 | - | let cb = | |
1068 | - | let ch = | |
1069 | - | let | |
1070 | - | let | |
1071 | - | let cm = | |
1072 | - | $Tuple2((((( | |
1067 | + | let cb = eR._1 | |
1068 | + | let ch = eR._2 | |
1069 | + | let eS = cd(bv, ch, bG, ch, cb, bo, bI, bK.caller) | |
1070 | + | let eL = eS._1 | |
1071 | + | let cm = eS._2 | |
1072 | + | $Tuple2(((((eL ++ dz) ++ eJ) :+ ScriptTransfer(addressFromStringValue(getStringValue(G, bf)), eI, P)) :+ DeleteEntry(eO)), $Tuple2(cm, dJ)) | |
1073 | 1073 | } | |
1074 | 1074 | } | |
1075 | 1075 | } | |
1082 | 1082 | func commitForRandom () = { | |
1083 | 1083 | let dz = bJ(bK) | |
1084 | 1084 | let L = toString(bK.caller) | |
1085 | - | let | |
1086 | - | if (isDefined(getInteger( | |
1085 | + | let eO = N(L) | |
1086 | + | if (isDefined(getInteger(eO))) | |
1087 | 1087 | then throw("You already commited for random, please use it") | |
1088 | 1088 | else { | |
1089 | - | let | |
1090 | - | $Tuple2(([IntegerEntry( | |
1089 | + | let eP = (height + i) | |
1090 | + | $Tuple2(([IntegerEntry(eO, eP)] ++ dz), eP) | |
1091 | 1091 | } | |
1092 | 1092 | } | |
1093 | 1093 |
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 = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10000000 | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = 100000000000000 | |
13 | 13 | ||
14 | 14 | let f = 86400000 | |
15 | 15 | ||
16 | 16 | let g = 10 | |
17 | 17 | ||
18 | 18 | let h = 100 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 5000000 | |
23 | 23 | ||
24 | 24 | let k = take(drop(this.bytes, 1), 1) | |
25 | 25 | ||
26 | 26 | let l = { | |
27 | 27 | let m = k | |
28 | 28 | if ((base58'2W' == m)) | |
29 | 29 | then 10080 | |
30 | 30 | else if ((base58'2T' == m)) | |
31 | 31 | then 180 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let n = { | |
36 | 36 | let m = k | |
37 | 37 | if ((base58'2W' == m)) | |
38 | 38 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
39 | 39 | else if ((base58'2T' == m)) | |
40 | 40 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let o = { | |
45 | 45 | let m = k | |
46 | 46 | if ((base58'2W' == m)) | |
47 | 47 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
48 | 48 | else if ((base58'2T' == m)) | |
49 | 49 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let p = { | |
54 | 54 | let m = k | |
55 | 55 | if ((base58'2W' == m)) | |
56 | 56 | then f | |
57 | 57 | else if ((base58'2T' == m)) | |
58 | 58 | then 60000 | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let q = { | |
63 | 63 | let m = k | |
64 | 64 | if ((base58'2W' == m)) | |
65 | 65 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
66 | 66 | else if ((base58'2T' == m)) | |
67 | 67 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | func r (s,t) = valueOrErrorMessage(getString(s, t), makeString(["mandatory ", toString(s), ".", t, " is not defined"], "")) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let u = 1 | |
75 | 75 | ||
76 | 76 | let v = 2 | |
77 | 77 | ||
78 | 78 | let w = 5 | |
79 | 79 | ||
80 | 80 | func x () = "%s__restConfig" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func y () = "%s__rest2Addr" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func z (A) = split_4C(r(A, x()), a) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func B (C,D) = valueOrErrorMessage(addressFromString(C[D]), ("Rest cfg doesn't contain address at index " + toString(D))) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let E = addressFromStringValue(valueOrElse(getString(this, y()), o)) | |
93 | 93 | ||
94 | 94 | let C = z(E) | |
95 | 95 | ||
96 | 96 | let F = B(C, u) | |
97 | 97 | ||
98 | 98 | let G = B(C, v) | |
99 | 99 | ||
100 | 100 | let H = B(C, w) | |
101 | 101 | ||
102 | 102 | let I = "oldAcresContract" | |
103 | 103 | ||
104 | 104 | func J () = "contractsBlocked" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func K (L) = ("lastWeekTxIdByUser_" + L) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func M (L) = ("curWeekTxIdByUser_" + L) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func N (s) = ("finishBlockFor_" + s) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | let O = "wlg_assetId" | |
117 | 117 | ||
118 | 118 | let P = valueOrErrorMessage(getBinary(G, O), "WLGOLD is not issued yet") | |
119 | 119 | ||
120 | 120 | let Q = "acresIssuedAmount" | |
121 | 121 | ||
122 | 122 | let R = "acresAssetId" | |
123 | 123 | ||
124 | 124 | let S = valueOrErrorMessage(getBinary(F, R), "ACRES is not issued yet") | |
125 | 125 | ||
126 | 126 | func T (L) = ("acresStakedTimeByUser_" + L) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func U (V) = ("stakedLandsByOwner_" + V) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func W (V) = ("stakedDuckByOwner_" + V) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func X (Y,L) = ((("st_" + Y) + "_") + L) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func Z (V) = ("stakedNFTsByOwner_" + V) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aa (ab) = { | |
142 | 142 | let m = ab | |
143 | 143 | if ($isInstanceOf(m, "Int")) | |
144 | 144 | then { | |
145 | 145 | let ac = m | |
146 | 146 | ac | |
147 | 147 | } | |
148 | 148 | else throw("fail to cast into Int") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func ad (ae) = { | |
153 | 153 | let m = ae | |
154 | 154 | if ($isInstanceOf(m, "(Int, Int, Int, Int, Int)")) | |
155 | 155 | then { | |
156 | 156 | let af = m | |
157 | 157 | af | |
158 | 158 | } | |
159 | 159 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ag (ae) = { | |
164 | 164 | let m = ae | |
165 | 165 | if ($isInstanceOf(m, "(Int, Int, Int, Int)")) | |
166 | 166 | then { | |
167 | 167 | let af = m | |
168 | 168 | af | |
169 | 169 | } | |
170 | 170 | else throw("fail to cast into (Int, Int, Int, Int)") | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ah (ae) = { | |
175 | 175 | let m = ae | |
176 | 176 | if ($isInstanceOf(m, "(Int, Int, Int)")) | |
177 | 177 | then { | |
178 | 178 | let af = m | |
179 | 179 | af | |
180 | 180 | } | |
181 | 181 | else throw("fail to cast into (Int, Int, Int)") | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func ai (ae) = { | |
186 | 186 | let m = ae | |
187 | 187 | if ($isInstanceOf(m, "(Int, Int)")) | |
188 | 188 | then { | |
189 | 189 | let af = m | |
190 | 190 | af | |
191 | 191 | } | |
192 | 192 | else throw("fail to cast into (Int, Int)") | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func aj (ae,ak) = { | |
197 | 197 | let al = pow(10, 0, ak, 0, 0, DOWN) | |
198 | 198 | let am = toString((ae % al)) | |
199 | 199 | let an = drop(toString(al), (1 + size(am))) | |
200 | 200 | (((toString((ae / al)) + ".") + an) + am) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func ao (ap,aq,ar) = if ((0 >= ap)) | |
205 | 205 | then throw("maxValue should be > 0") | |
206 | 206 | else { | |
207 | 207 | let as = sha256_16Kb((aq + ar)) | |
208 | 208 | (toInt(as) % ap) | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | let at = 1000000 | |
213 | 213 | ||
214 | 214 | let au = 100000000 | |
215 | 215 | ||
216 | 216 | let av = "wlg_issuedAmount" | |
217 | 217 | ||
218 | 218 | let aw = "zbill_issuedAmount" | |
219 | 219 | ||
220 | 220 | func ax (L) = ("acresStakedAmountByUser_" + L) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func ay (L) = ("farmingPowerByUser_" + L) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | let az = "acresStakedAmountTotal" | |
227 | 227 | ||
228 | 228 | let aA = "totalFarmingPower" | |
229 | 229 | ||
230 | 230 | let aB = 3 | |
231 | 231 | ||
232 | 232 | let aC = 1 | |
233 | 233 | ||
234 | 234 | let aD = 5000 | |
235 | 235 | ||
236 | 236 | let aE = 4 | |
237 | 237 | ||
238 | 238 | let aF = "nftTotalIssued" | |
239 | 239 | ||
240 | 240 | let aG = "nftTotalBurned" | |
241 | 241 | ||
242 | 242 | let aH = "WlNftTotalStaked" | |
243 | 243 | ||
244 | 244 | let aI = "ArkNftTotalStaked" | |
245 | 245 | ||
246 | 246 | func aJ (Y) = ("nftNumberByAssetId_" + Y) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func aK (L) = ("userWlNftNumber_" + L) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func aL (L) = ("userArkNftNumber_" + L) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func aM (L) = ("userFullBonus_" + L) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | let aN = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
259 | 259 | ||
260 | 260 | func aO (aP) = { | |
261 | 261 | let aQ = ((aP + 99999999) / au) | |
262 | 262 | func aR (aS,aT) = if ((aT >= aQ)) | |
263 | 263 | then aS | |
264 | 264 | else (aS + 1) | |
265 | 265 | ||
266 | 266 | let aU = aN | |
267 | 267 | let aV = size(aU) | |
268 | 268 | let aW = 0 | |
269 | 269 | func aX (aY,aZ) = if ((aZ >= aV)) | |
270 | 270 | then aY | |
271 | 271 | else aR(aY, aU[aZ]) | |
272 | 272 | ||
273 | 273 | func ba (aY,aZ) = if ((aZ >= aV)) | |
274 | 274 | then aY | |
275 | 275 | else throw("List size exceeds 10") | |
276 | 276 | ||
277 | 277 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bb (aP) = ((aP * 20) * (aO(aP) + 4)) | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bc (aP,bd) = { | |
285 | 285 | let be = bb(aP) | |
286 | 286 | $Tuple2(fraction(be, (at + bd), at), be) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | let bf = "teamAddr" | |
291 | 291 | ||
292 | 292 | func bg (L) = ("lastArbTimeUser_" + L) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | let bh = 1733346000000 | |
296 | 296 | ||
297 | 297 | let bi = 14 | |
298 | 298 | ||
299 | 299 | let bj = "lastAcresSellTime" | |
300 | 300 | ||
301 | 301 | let bk = "lastLimitLeft" | |
302 | 302 | ||
303 | 303 | let bl = ["Gold shovel", "Pickaxe"] | |
304 | 304 | ||
305 | 305 | let bm = ["Reward for early birds", "Increases FarmPower"] | |
306 | 306 | ||
307 | 307 | let bn = 0 | |
308 | 308 | ||
309 | 309 | let bo = 1 | |
310 | 310 | ||
311 | 311 | let bp = [5, 10, 20] | |
312 | 312 | ||
313 | 313 | let bq = 0 | |
314 | 314 | ||
315 | 315 | let br = 1 | |
316 | 316 | ||
317 | 317 | let bs = 2 | |
318 | 318 | ||
319 | 319 | let bt = ["SHOVEL", "PICKAXE"] | |
320 | 320 | ||
321 | 321 | let bu = 0 | |
322 | 322 | ||
323 | 323 | let bv = 1 | |
324 | 324 | ||
325 | 325 | let bw = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
326 | 326 | ||
327 | 327 | let bx = 0 | |
328 | 328 | ||
329 | 329 | let by = 4 | |
330 | 330 | ||
331 | 331 | let bz = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
332 | 332 | ||
333 | 333 | let bA = 0 | |
334 | 334 | ||
335 | 335 | let bB = 1 | |
336 | 336 | ||
337 | 337 | let bC = 2 | |
338 | 338 | ||
339 | 339 | let bD = 3 | |
340 | 340 | ||
341 | 341 | let bE = 4 | |
342 | 342 | ||
343 | 343 | let bF = ["Digging tools"] | |
344 | 344 | ||
345 | 345 | let bG = 0 | |
346 | 346 | ||
347 | 347 | let bH = ["FarmPower"] | |
348 | 348 | ||
349 | 349 | let bI = 0 | |
350 | 350 | ||
351 | 351 | func bJ (bK) = if (if ((bK.originCaller != E)) | |
352 | 352 | then valueOrElse(getBoolean(J()), false) | |
353 | 353 | else false) | |
354 | 354 | then throw("Contracts are under maintenance") | |
355 | 355 | else { | |
356 | 356 | let L = toString(bK.originCaller) | |
357 | 357 | let bL = (height / l) | |
358 | 358 | let bM = K(L) | |
359 | 359 | let bN = getString(bM) | |
360 | 360 | let bO = toBase58String(bK.transactionId) | |
361 | 361 | let bP = ((toString(bL) + "_") + bO) | |
362 | 362 | let bQ = M(L) | |
363 | 363 | if (isDefined(bN)) | |
364 | 364 | then { | |
365 | 365 | let bR = split(value(bN), "_") | |
366 | 366 | if ((bR[0] == toString(bL))) | |
367 | 367 | then [StringEntry(bM, bP), StringEntry(bQ, bP)] | |
368 | 368 | else if ((bR[0] == toString((bL - 1)))) | |
369 | 369 | then [StringEntry(bQ, bP)] | |
370 | 370 | else { | |
371 | 371 | let bS = getStringValue(bQ) | |
372 | 372 | let bT = split(bS, "_") | |
373 | 373 | if ((bT[0] == toString(bL))) | |
374 | 374 | then [StringEntry(bQ, bP)] | |
375 | 375 | else [StringEntry(bM, bS), StringEntry(bQ, bP)] | |
376 | 376 | } | |
377 | 377 | } | |
378 | 378 | else [StringEntry(bM, bP), StringEntry(bQ, bP)] | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func bU (bV,bW,bX,bY,bZ,ca,cb,cc) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bV) + "\", ") + "\"number\": ") + toString(bW)) + ", ") + "\"collection\": \"") + bX) + "\", ") + "\"name\": \"") + bY) + "\", ") + "\"description\": \"") + bZ) + "\", ") + "\"rare\": \"") + ca) + "\", ") + "\"bonus\": ") + toString(cb)) + ", ") + "\"bonusType\": \"") + cc) + "\"}") | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | func cd (ce,cf,cg,ch,ci,cj,ck,L) = { | |
386 | 386 | let bW = valueOrElse(getInteger(aF), 0) | |
387 | 387 | let ca = bz[ch] | |
388 | 388 | let bY = (((bt[ce] + "-") + take(ca, 1)) + toString(ci)) | |
389 | 389 | let cl = Issue(bY, bU(bw[cf], bW, bF[cg], bl[ce], bm[cj], bz[ch], ci, bH[ck]), 1, 0, false) | |
390 | 390 | let cm = calculateAssetId(cl) | |
391 | 391 | $Tuple2([cl, IntegerEntry(aF, (bW + 1)), IntegerEntry(aJ(toBase58String(cm)), bW), ScriptTransfer(L, 1, cm)], cm) | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | func cn (bZ) = if (!(contains(bZ, "\"bonusType\": \"FarmPower\""))) | |
396 | 396 | then throw(("NFT is not supported: " + bZ)) | |
397 | 397 | else { | |
398 | 398 | let co = split_4C(split_4C(bZ, "\"bonus\":")[1], ",")[0] | |
399 | 399 | parseIntValue(drop(co, (valueOrElse(lastIndexOf(co, " "), -1) + 1))) | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | func cp (bZ) = if (!(contains(bZ, "\"rare\""))) | |
404 | 404 | then throw(("NFT is not supported: " + bZ)) | |
405 | 405 | else { | |
406 | 406 | let cq = split_4C(split_4C(split_4C(bZ, "\"rare\"")[1], ",")[0], "\"")[1] | |
407 | 407 | value(indexOf(bz, cq)) | |
408 | 408 | } | |
409 | 409 | ||
410 | 410 | ||
411 | 411 | func cr (cs,s,ct) = if (if ((cs == 0)) | |
412 | 412 | then (ct == 0) | |
413 | 413 | else false) | |
414 | 414 | then throw("Nothing to do") | |
415 | 415 | else { | |
416 | 416 | let cu = invoke(G, "onStakeUnstakeLand", [s], nil) | |
417 | 417 | if ((cu == cu)) | |
418 | 418 | then { | |
419 | 419 | let cv = lastBlock.timestamp | |
420 | 420 | let cw = T(s) | |
421 | 421 | let cx = ax(s) | |
422 | 422 | let cy = valueOrElse(getInteger(cx), 0) | |
423 | 423 | if (if ((0 > cs)) | |
424 | 424 | then (0 > (cy + cs)) | |
425 | 425 | else false) | |
426 | 426 | then throw(((("You have only " + aj(cy, 8)) + " ACRES staked, tried to unstake ") + aj(-(cs), 8))) | |
427 | 427 | else { | |
428 | 428 | let cz = (cy + cs) | |
429 | 429 | let cA = valueOrElse(getInteger(az), 0) | |
430 | 430 | let cB = ay(s) | |
431 | 431 | let cC = valueOrElse(getInteger(cB), 0) | |
432 | 432 | let cD = aM(s) | |
433 | 433 | let cE = valueOrElse(getInteger(F, cD), 0) | |
434 | 434 | if (if ((0 > ct)) | |
435 | 435 | then (0 > (cE + ct)) | |
436 | 436 | else false) | |
437 | 437 | then throw((((("You have only " + aj(cE, 4)) + "% bonus, and tried to unstake ") + aj(-(ct), 4)) + "%")) | |
438 | 438 | else { | |
439 | 439 | let cF = bc(cz, (cE + ct)) | |
440 | 440 | let cG = cF._1 | |
441 | 441 | let cH = cF._2 | |
442 | 442 | let cI = valueOrElse(getInteger(aA), 0) | |
443 | 443 | let cJ = if ((cs == 0)) | |
444 | 444 | then nil | |
445 | 445 | else [IntegerEntry(cx, cz), IntegerEntry(az, (cA + cs))] | |
446 | 446 | let cK = if ((ct == 0)) | |
447 | 447 | then nil | |
448 | 448 | else [IntegerEntry(cD, (cE + ct))] | |
449 | 449 | $Tuple2(((((cJ ++ cK) :+ IntegerEntry(cw, lastBlock.timestamp)) :+ IntegerEntry(cB, cG)) :+ IntegerEntry(aA, ((cI + cG) - cC))), cu) | |
450 | 450 | } | |
451 | 451 | } | |
452 | 452 | } | |
453 | 453 | else throw("Strict value is not equal to itself.") | |
454 | 454 | } | |
455 | 455 | ||
456 | 456 | ||
457 | 457 | func cL (cM) = { | |
458 | 458 | let cN = valueOrErrorMessage(getInteger(G, av), "WLGOLD is not issued yet") | |
459 | 459 | let cO = assetBalance(G, n) | |
460 | 460 | let cP = (assetBalance(F, n) - cM) | |
461 | 461 | let cQ = (assetBalance(H, n) + valueOrElse(getInteger(H, aw), 0)) | |
462 | 462 | let cR = ((cP + cO) + cQ) | |
463 | 463 | fraction(cR, d, cN) | |
464 | 464 | } | |
465 | 465 | ||
466 | 466 | ||
467 | 467 | func cS () = { | |
468 | 468 | let cO = assetBalance(G, n) | |
469 | 469 | let cP = assetBalance(this, n) | |
470 | 470 | let cQ = (assetBalance(H, n) + valueOrElse(getInteger(H, aw), 0)) | |
471 | 471 | let cT = (((cP + cO) + cQ) / h) | |
472 | 472 | let cU = valueOrElse(getInteger(bk), cT) | |
473 | 473 | let cV = valueOrElse(getInteger(bj), 0) | |
474 | 474 | let cv = lastBlock.timestamp | |
475 | 475 | let cW = (cU + fraction(cT, (cv - cV), f)) | |
476 | 476 | let cX = min([cW, cT]) | |
477 | 477 | $Tuple2(IntegerEntry(bj, cv), cX) | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | let cY = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
482 | 482 | ||
483 | 483 | let cZ = valueOrElse(getString(cY, "static_incubatorAddress"), "") | |
484 | 484 | ||
485 | 485 | let da = valueOrElse(getString(cY, "static_breederAddress"), "") | |
486 | 486 | ||
487 | 487 | let db = valueOrElse(getString(cY, "static_turtleIncubatorAddress"), "") | |
488 | 488 | ||
489 | 489 | let dc = valueOrElse(getString(cY, "static_turtleBreederAddress"), "") | |
490 | 490 | ||
491 | 491 | let dd = valueOrElse(getString(cY, "static_canineIncubatorAddress"), "") | |
492 | 492 | ||
493 | 493 | let de = valueOrElse(getString(cY, "static_canineBreederAddress"), "") | |
494 | 494 | ||
495 | 495 | let df = valueOrElse(getString(cY, "static_felineIncubatorAddress"), "") | |
496 | 496 | ||
497 | 497 | let dg = valueOrElse(getString(cY, "static_felineBreederAddress"), "") | |
498 | 498 | ||
499 | 499 | let dh = valueOrElse(getString(cY, "static_mutantIncubatorAddress"), "") | |
500 | 500 | ||
501 | 501 | func di (dj) = { | |
502 | 502 | let dk = toString(dj.issuer) | |
503 | 503 | if (if (if (if (if (if (if (if (if (if ((k == base58'2T')) | |
504 | 504 | then (dk == q) | |
505 | 505 | else false) | |
506 | 506 | then true | |
507 | 507 | else (dk == cZ)) | |
508 | 508 | then true | |
509 | 509 | else (dk == da)) | |
510 | 510 | then true | |
511 | 511 | else (dk == db)) | |
512 | 512 | then true | |
513 | 513 | else (dk == dc)) | |
514 | 514 | then true | |
515 | 515 | else (dk == dd)) | |
516 | 516 | then true | |
517 | 517 | else (dk == de)) | |
518 | 518 | then true | |
519 | 519 | else (dk == df)) | |
520 | 520 | then true | |
521 | 521 | else (dk == dg)) | |
522 | 522 | then dj.name | |
523 | 523 | else if ((dk == dh)) | |
524 | 524 | then dj.description | |
525 | 525 | else "" | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | func dl (L,dm,bd,dn,do,dp) = { | |
530 | 530 | let dq = valueOrElse(getInteger(dn), 0) | |
531 | 531 | if ((dq >= dp)) | |
532 | 532 | then throw((("You can stake max " + toString(dp)) + " of such NFTs")) | |
533 | 533 | else { | |
534 | 534 | let dr = cr(0, L, bd) | |
535 | 535 | let ds = dr._1 | |
536 | 536 | let dt = dr._2 | |
537 | 537 | $Tuple2((((ds :+ IntegerEntry(dn, (dq + 1))) :+ IntegerEntry(do, (valueOrElse(getInteger(do), 0) + 1))) :+ IntegerEntry(X(dm, L), lastBlock.timestamp)), dt) | |
538 | 538 | } | |
539 | 539 | } | |
540 | 540 | ||
541 | 541 | ||
542 | 542 | @Callable(bK) | |
543 | 543 | func saveLastTx () = if (!(containsElement([G], bK.caller))) | |
544 | 544 | then throw("Access denied") | |
545 | 545 | else $Tuple2(bJ(bK), 42) | |
546 | 546 | ||
547 | 547 | ||
548 | 548 | ||
549 | 549 | @Callable(bK) | |
550 | 550 | func constructorV1 (du,dv) = if ((bK.caller != this)) | |
551 | 551 | then throw("Permission denied") | |
552 | 552 | else { | |
553 | 553 | let dw = addressFromStringValue(dv) | |
554 | 554 | [IntegerEntry(Q, getIntegerValue(dw, Q)), BinaryEntry(R, getBinaryValue(dw, R)), StringEntry(y(), du), StringEntry(I, dv)] | |
555 | 555 | } | |
556 | 556 | ||
557 | 557 | ||
558 | 558 | ||
559 | 559 | @Callable(bK) | |
560 | 560 | func setBlocked (dx) = if ((bK.caller != this)) | |
561 | 561 | then throw("permission denied") | |
562 | 562 | else [BooleanEntry(J(), dx)] | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | ||
566 | 566 | @Callable(bK) | |
567 | 567 | func unstakeAcres (dy) = { | |
568 | 568 | let dz = bJ(bK) | |
569 | 569 | if ((0 >= dy)) | |
570 | 570 | then throw("Amount should be positive") | |
571 | 571 | else { | |
572 | 572 | let s = toString(bK.caller) | |
573 | 573 | if ((size(bK.payments) != 0)) | |
574 | 574 | then throw("No payments required") | |
575 | 575 | else { | |
576 | 576 | let dA = (valueOrElse(getInteger(G, bg(s)), 0) + p) | |
577 | 577 | if ((dA > lastBlock.timestamp)) | |
578 | 578 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(dA))) | |
579 | 579 | else { | |
580 | 580 | let dB = cr(-(dy), s, 0) | |
581 | 581 | let ds = dB._1 | |
582 | 582 | let dt = dB._2 | |
583 | 583 | $Tuple2(((ds :+ ScriptTransfer(bK.caller, dy, S)) ++ dz), dt) | |
584 | 584 | } | |
585 | 585 | } | |
586 | 586 | } | |
587 | 587 | } | |
588 | 588 | ||
589 | 589 | ||
590 | 590 | ||
591 | 591 | @Callable(bK) | |
592 | 592 | func stakeAcres () = { | |
593 | 593 | let dz = bJ(bK) | |
594 | 594 | let s = toString(bK.caller) | |
595 | 595 | if ((size(bK.payments) != 1)) | |
596 | 596 | then throw("exactly 1 payment must be attached") | |
597 | 597 | else { | |
598 | 598 | let dC = bK.payments[0] | |
599 | 599 | let cs = dC.amount | |
600 | 600 | if (if (!(isDefined(dC.assetId))) | |
601 | 601 | then true | |
602 | 602 | else (value(dC.assetId) != S)) | |
603 | 603 | then throw("ACRES payments only!") | |
604 | 604 | else { | |
605 | 605 | let dD = cr(cs, s, 0) | |
606 | 606 | let ds = dD._1 | |
607 | 607 | let dt = dD._2 | |
608 | 608 | $Tuple2((ds ++ dz), dt) | |
609 | 609 | } | |
610 | 610 | } | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | ||
615 | 615 | @Callable(bK) | |
616 | 616 | func buyAcres () = { | |
617 | 617 | let dz = bJ(bK) | |
618 | 618 | if ((size(bK.payments) != 1)) | |
619 | 619 | then throw("exactly 1 payment must be attached") | |
620 | 620 | else { | |
621 | 621 | let dC = bK.payments[0] | |
622 | 622 | let dE = dC.amount | |
623 | 623 | if (if (!(isDefined(dC.assetId))) | |
624 | 624 | then true | |
625 | 625 | else (value(dC.assetId) != n)) | |
626 | 626 | then throw("USDT payments only!") | |
627 | 627 | else if ((b > dE)) | |
628 | 628 | then throw((("Min payment should be " + aj(b, 6)) + " USDT")) | |
629 | 629 | else { | |
630 | 630 | let dF = (dE * g) | |
631 | 631 | let dG = fraction(dE, d, cL(dE)) | |
632 | 632 | let dH = addressFromStringValue(getStringValue(I)) | |
633 | 633 | let dI = invoke(dH, "requestAcresCallback", [dF], nil) | |
634 | 634 | if ((dI == dI)) | |
635 | 635 | then { | |
636 | 636 | let dJ = aa(invoke(G, "burnWlgold", [dG], nil)) | |
637 | 637 | $Tuple2(([ScriptTransfer(bK.caller, dF, S)] ++ dz), dJ) | |
638 | 638 | } | |
639 | 639 | else throw("Strict value is not equal to itself.") | |
640 | 640 | } | |
641 | 641 | } | |
642 | 642 | } | |
643 | 643 | ||
644 | 644 | ||
645 | 645 | ||
646 | 646 | @Callable(bK) | |
647 | 647 | func buyAcresREADONLY (dE) = { | |
648 | 648 | let dF = (dE * g) | |
649 | 649 | let dK = fraction(dE, d, cL(dE)) | |
650 | 650 | $Tuple2(nil, [dF, b, dF, dK]) | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | ||
655 | 655 | @Callable(bK) | |
656 | 656 | func sellAcres () = { | |
657 | 657 | let dz = bJ(bK) | |
658 | 658 | if ((size(bK.payments) != 1)) | |
659 | 659 | then throw("exactly 1 payment must be attached") | |
660 | 660 | else { | |
661 | 661 | let dC = bK.payments[0] | |
662 | 662 | let dF = dC.amount | |
663 | 663 | if (if (!(isDefined(dC.assetId))) | |
664 | 664 | then true | |
665 | 665 | else (value(dC.assetId) != S)) | |
666 | 666 | then throw("ACRES payments only!") | |
667 | 667 | else if ((c > dF)) | |
668 | 668 | then throw((("Min payment should be " + aj(c, 8)) + " ACRES")) | |
669 | 669 | else { | |
670 | 670 | let L = toString(bK.caller) | |
671 | 671 | let dL = cS() | |
672 | 672 | let dM = dL._1 | |
673 | 673 | let dN = dL._2 | |
674 | 674 | let dO = (dN * g) | |
675 | 675 | if ((dF > dO)) | |
676 | 676 | then throw((("You can sell max " + aj(dO, 8)) + " ACRES")) | |
677 | 677 | else { | |
678 | 678 | let dE = ((dF / g) / 2) | |
679 | 679 | $Tuple2(([dM, IntegerEntry(bk, (dN - dE)), ScriptTransfer(bK.caller, dE, n)] ++ dz), dE) | |
680 | 680 | } | |
681 | 681 | } | |
682 | 682 | } | |
683 | 683 | } | |
684 | 684 | ||
685 | 685 | ||
686 | 686 | ||
687 | 687 | @Callable(bK) | |
688 | 688 | func sellAcresREADONLY (s,dF) = { | |
689 | 689 | let dP = cS() | |
690 | 690 | let dM = dP._1 | |
691 | 691 | let dN = dP._2 | |
692 | 692 | let dE = ((dF / g) / 2) | |
693 | 693 | $Tuple2(nil, [dE, c, (dN * g), 0]) | |
694 | 694 | } | |
695 | 695 | ||
696 | 696 | ||
697 | 697 | ||
698 | 698 | @Callable(bK) | |
699 | - | func convertOldStakes () = { | |
699 | + | func convertOldStakes (s) = { | |
700 | 700 | let dz = bJ(bK) | |
701 | 701 | if ((bh > lastBlock.timestamp)) | |
702 | 702 | then throw(("Disabled until " + toString((bh / 1000)))) | |
703 | 703 | else { | |
704 | - | let | |
704 | + | let dQ = addressFromStringValue(s) | |
705 | 705 | if ((size(bK.payments) != 0)) | |
706 | 706 | then throw("No payments required") | |
707 | 707 | else { | |
708 | 708 | let dH = addressFromStringValue(getStringValue(I)) | |
709 | 709 | let dy = valueOrElse(getInteger(dH, ax(s)), 0) | |
710 | - | let | |
710 | + | let dR = if ((dy > 0)) | |
711 | 711 | then ai(invoke(dH, "unstakeAcresCallback", [dy, s], nil)) | |
712 | 712 | else $Tuple2(0, 0) | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
713 | + | let dS = addressFromStringValue(q) | |
714 | + | let dT = getString(dS, U(s)) | |
715 | + | let dU = if (isDefined(dT)) | |
716 | 716 | then { | |
717 | - | let | |
718 | - | if ((size( | |
717 | + | let dV = split_51C(value(dT), "_") | |
718 | + | if ((size(dV) > bi)) | |
719 | 719 | then throw((("You have more than " + toString(bi)) + " lands staked, please contact support, we'll process your case manually")) | |
720 | 720 | else { | |
721 | - | func | |
721 | + | func dW (aS,dX) = if ((dX == "")) | |
722 | 722 | then throw("landAssetId is required") | |
723 | 723 | else { | |
724 | - | let | |
725 | - | if (( | |
726 | - | then $Tuple5((aS._1 + | |
724 | + | let dY = ad(invoke(dS, "unstakeLandCallback", [dX, s], nil)) | |
725 | + | if ((dY == dY)) | |
726 | + | then $Tuple5((aS._1 + dY._1), (aS._2 + dY._2), (aS._3 + dY._3), (aS._4 + dY._4), (aS._5 + dY._5)) | |
727 | 727 | else throw("Strict value is not equal to itself.") | |
728 | 728 | } | |
729 | 729 | ||
730 | - | let | |
731 | - | let aU = | |
730 | + | let dZ = { | |
731 | + | let aU = dV | |
732 | 732 | let aV = size(aU) | |
733 | 733 | let aW = $Tuple5(0, 0, 0, 0, 0) | |
734 | 734 | func aX (aY,aZ) = if ((aZ >= aV)) | |
735 | 735 | then aY | |
736 | - | else | |
736 | + | else dW(aY, aU[aZ]) | |
737 | 737 | ||
738 | 738 | func ba (aY,aZ) = if ((aZ >= aV)) | |
739 | 739 | then aY | |
740 | 740 | else throw("List size exceeds 14") | |
741 | 741 | ||
742 | 742 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14) | |
743 | 743 | } | |
744 | - | let | |
745 | - | if (( | |
744 | + | let ea = invoke(dS, "unstakeLandsFinalizeCallback", [s], nil) | |
745 | + | if ((ea == ea)) | |
746 | 746 | then { | |
747 | - | let dI = invoke(dH, "requestAcresCallback", [((( | |
747 | + | let dI = invoke(dH, "requestAcresCallback", [(((dZ._1 + dZ._2) + dZ._3) + dZ._4)], nil) | |
748 | 748 | if ((dI == dI)) | |
749 | 749 | then { | |
750 | - | let | |
751 | - | let | |
752 | - | let cm = | |
753 | - | $Tuple6( | |
750 | + | let eb = cd(bu, by, bG, bE, 3, bn, bI, dQ) | |
751 | + | let ec = eb._1 | |
752 | + | let cm = eb._2 | |
753 | + | $Tuple6(dZ._1, dZ._2, dZ._3, dZ._4, dZ._5, ec) | |
754 | 754 | } | |
755 | 755 | else throw("Strict value is not equal to itself.") | |
756 | 756 | } | |
757 | 757 | else throw("Strict value is not equal to itself.") | |
758 | 758 | } | |
759 | 759 | } | |
760 | 760 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
761 | - | let | |
762 | - | let | |
763 | - | then ah(invoke( | |
761 | + | let ed = valueOrElse(getString(dS, W(s)), "") | |
762 | + | let ee = if ((ed != "")) | |
763 | + | then ah(invoke(dS, "unstakeDuckCallback", [ed, s], nil)) | |
764 | 764 | else $Tuple3(0, 0, 0) | |
765 | - | let | |
766 | - | $Tuple2((( | |
765 | + | let ef = cr((((((((dR._1 + dU._1) + dU._2) + dU._3) + dU._4) + ee._1) + ee._2) + ee._3), s, 0) | |
766 | + | $Tuple2(((dU._6 ++ ef._1) ++ dz), $Tuple3(dR._2, dU._5, ef._2)) | |
767 | 767 | } | |
768 | 768 | } | |
769 | 769 | } | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | ||
773 | 773 | @Callable(bK) | |
774 | 774 | func unstakeLandsREADONLY (s) = { | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
775 | + | let dS = addressFromStringValue(q) | |
776 | + | let dT = getString(dS, U(s)) | |
777 | + | let dU = if (isDefined(dT)) | |
778 | 778 | then { | |
779 | - | let | |
780 | - | func | |
779 | + | let dV = split_51C(value(dT), "_") | |
780 | + | func dW (aS,dX) = if ((dX == "")) | |
781 | 781 | then throw("landAssetId is required") | |
782 | 782 | else { | |
783 | - | let | |
784 | - | $Tuple4((aS._1 + | |
783 | + | let dY = ag(invoke(dS, "unstakeLandREADONLY", [dX, s], nil)) | |
784 | + | $Tuple4((aS._1 + dY._1), (aS._2 + dY._2), (aS._3 + dY._3), (aS._4 + dY._4)) | |
785 | 785 | } | |
786 | 786 | ||
787 | - | let aU = | |
787 | + | let aU = dV | |
788 | 788 | let aV = size(aU) | |
789 | 789 | let aW = $Tuple4(0, 0, 0, 0) | |
790 | 790 | func aX (aY,aZ) = if ((aZ >= aV)) | |
791 | 791 | then aY | |
792 | - | else | |
792 | + | else dW(aY, aU[aZ]) | |
793 | 793 | ||
794 | 794 | func ba (aY,aZ) = if ((aZ >= aV)) | |
795 | 795 | then aY | |
796 | 796 | else throw("List size exceeds 100") | |
797 | 797 | ||
798 | 798 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
799 | 799 | } | |
800 | 800 | else $Tuple4(0, 0, 0, 0) | |
801 | - | $Tuple2(nil, | |
801 | + | $Tuple2(nil, dU) | |
802 | 802 | } | |
803 | 803 | ||
804 | 804 | ||
805 | 805 | ||
806 | 806 | @Callable(bK) | |
807 | 807 | func stakeAcresCallback (L) = if ((bK.caller != addressFromStringValue(q))) | |
808 | 808 | then throw("Permission denied") | |
809 | 809 | else cr(bK.payments[0].amount, L, 0) | |
810 | 810 | ||
811 | 811 | ||
812 | 812 | ||
813 | 813 | @Callable(bK) | |
814 | - | func simulateStakeAcresREADONLY (s, | |
814 | + | func simulateStakeAcresREADONLY (s,eg) = { | |
815 | 815 | let cx = ax(s) | |
816 | - | let cz = (valueOrElse(getInteger(cx), 0) + | |
816 | + | let cz = (valueOrElse(getInteger(cx), 0) + eg) | |
817 | 817 | let cA = valueOrElse(getInteger(az), 0) | |
818 | 818 | let cB = ay(s) | |
819 | 819 | let cC = valueOrElse(getInteger(cB), 0) | |
820 | - | let | |
821 | - | let | |
822 | - | let cG = | |
823 | - | let cH = | |
820 | + | let eh = valueOrElse(getInteger(F, aM(s)), 0) | |
821 | + | let ei = bc(cz, eh) | |
822 | + | let cG = ei._1 | |
823 | + | let cH = ei._2 | |
824 | 824 | let cI = valueOrElse(getInteger(aA), 0) | |
825 | - | let | |
826 | - | $Tuple2(nil, [cC, cG, cI, | |
825 | + | let ej = ((cI + cG) - cC) | |
826 | + | $Tuple2(nil, [cC, cG, cI, ej]) | |
827 | 827 | } | |
828 | 828 | ||
829 | 829 | ||
830 | 830 | ||
831 | 831 | @Callable(bK) | |
832 | - | func issuePickC1 ( | |
832 | + | func issuePickC1 (ek) = if ((bK.caller != G)) | |
833 | 833 | then throw("Permission denied") | |
834 | - | else cd(bv, bx, bG, bA, 1, bo, bI, addressFromStringValue( | |
834 | + | else cd(bv, bx, bG, bA, 1, bo, bI, addressFromStringValue(ek)) | |
835 | 835 | ||
836 | 836 | ||
837 | 837 | ||
838 | 838 | @Callable(bK) | |
839 | 839 | func stakeNFT () = { | |
840 | 840 | let dz = bJ(bK) | |
841 | 841 | if ((size(bK.payments) != 1)) | |
842 | 842 | then throw("Exactly one payment required") | |
843 | 843 | else { | |
844 | 844 | let dC = value(bK.payments[0]) | |
845 | 845 | if ((dC.amount != 1)) | |
846 | 846 | then throw("NFT token should be attached as payment") | |
847 | 847 | else { | |
848 | 848 | let Y = value(dC.assetId) | |
849 | - | let | |
849 | + | let el = value(assetInfo(Y)) | |
850 | 850 | let dm = toBase58String(Y) | |
851 | 851 | let L = toString(bK.caller) | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | then split_4C(value( | |
852 | + | let em = Z(L) | |
853 | + | let en = getString(em) | |
854 | + | let eo = if (isDefined(en)) | |
855 | + | then split_4C(value(en), "_") | |
856 | 856 | else nil | |
857 | - | if (containsElement( | |
857 | + | if (containsElement(eo, dm)) | |
858 | 858 | then throw(("Your staked NFTs already contain " + dm)) | |
859 | - | else if ((size( | |
859 | + | else if ((size(eo) >= aE)) | |
860 | 860 | then throw((("Your already staked max (" + toString(aE)) + ") NFTs")) | |
861 | 861 | else { | |
862 | - | let | |
863 | - | if (( | |
862 | + | let ep = StringEntry(em, makeString_2C((eo :+ dm), "_")) | |
863 | + | if ((el.issuer == this)) | |
864 | 864 | then { | |
865 | - | let | |
866 | - | let ds = | |
867 | - | let dt = | |
868 | - | $Tuple2(((dz ++ ds) :+ | |
865 | + | let eq = dl(L, dm, (cn(value(el.description)) * 10000), aK(L), aH, aB) | |
866 | + | let ds = eq._1 | |
867 | + | let dt = eq._2 | |
868 | + | $Tuple2(((dz ++ ds) :+ ep), dt) | |
869 | 869 | } | |
870 | - | else if ((di( | |
870 | + | else if ((di(el) == "")) | |
871 | 871 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
872 | 872 | else { | |
873 | - | let | |
874 | - | let ds = | |
875 | - | let dt = | |
876 | - | $Tuple2(((dz ++ ds) :+ | |
873 | + | let er = dl(L, dm, aD, aL(L), aI, aC) | |
874 | + | let ds = er._1 | |
875 | + | let dt = er._2 | |
876 | + | $Tuple2(((dz ++ ds) :+ ep), dt) | |
877 | 877 | } | |
878 | 878 | } | |
879 | 879 | } | |
880 | 880 | } | |
881 | 881 | } | |
882 | 882 | ||
883 | 883 | ||
884 | 884 | ||
885 | 885 | @Callable(bK) | |
886 | 886 | func unstakeNFT (dm) = { | |
887 | 887 | let dz = bJ(bK) | |
888 | 888 | if ((size(bK.payments) != 0)) | |
889 | 889 | then throw("No payments required") | |
890 | 890 | else { | |
891 | 891 | let Y = fromBase58String(dm) | |
892 | 892 | let L = toString(bK.caller) | |
893 | - | let | |
893 | + | let el = value(assetInfo(Y)) | |
894 | 894 | let cw = X(dm, L) | |
895 | 895 | if (!(isDefined(getInteger(cw)))) | |
896 | - | then throw((("NFT " + | |
896 | + | then throw((("NFT " + el.name) + " is not staked by you")) | |
897 | 897 | else { | |
898 | - | let | |
899 | - | let | |
900 | - | let D = indexOf( | |
898 | + | let em = Z(L) | |
899 | + | let eo = split_4C(valueOrElse(getString(em), ""), "_") | |
900 | + | let D = indexOf(eo, dm) | |
901 | 901 | if (!(isDefined(D))) | |
902 | 902 | then throw(("Your staked NFTs don't contain " + dm)) | |
903 | 903 | else { | |
904 | - | let | |
905 | - | then StringEntry( | |
906 | - | else DeleteEntry( | |
907 | - | let | |
908 | - | if ( | |
904 | + | let ep = if ((size(eo) > 1)) | |
905 | + | then StringEntry(em, makeString_2C(removeByIndex(eo, value(D)), "_")) | |
906 | + | else DeleteEntry(em) | |
907 | + | let es = (el.issuer == this) | |
908 | + | if (es) | |
909 | 909 | then { | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | let ds = | |
914 | - | let dt = | |
915 | - | $Tuple2(((((((ds :+ | |
910 | + | let et = valueOrElse(getInteger(aK(L)), 0) | |
911 | + | let eu = (cn(value(el.description)) * 10000) | |
912 | + | let ev = cr(0, L, -(eu)) | |
913 | + | let ds = ev._1 | |
914 | + | let dt = ev._2 | |
915 | + | $Tuple2(((((((ds :+ ep) :+ IntegerEntry(aK(L), (et - 1))) :+ IntegerEntry(aH, max([0, (valueOrElse(getInteger(aH), 0) - 1)]))) :+ DeleteEntry(X(toBase58String(Y), L))) :+ ScriptTransfer(bK.caller, 1, Y)) ++ dz), dt) | |
916 | 916 | } | |
917 | 917 | else { | |
918 | - | let | |
919 | - | if (( | |
918 | + | let ew = di(el) | |
919 | + | if ((ew == "")) | |
920 | 920 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
921 | 921 | else { | |
922 | - | let | |
923 | - | let | |
924 | - | let ds = | |
925 | - | let dt = | |
926 | - | $Tuple2((((((ds :+ | |
922 | + | let ex = valueOrElse(getInteger(aL(L)), 0) | |
923 | + | let ey = cr(0, L, -(aD)) | |
924 | + | let ds = ey._1 | |
925 | + | let dt = ey._2 | |
926 | + | $Tuple2((((((ds :+ ep) :+ IntegerEntry(aL(L), (ex - 1))) :+ DeleteEntry(X(toBase58String(Y), L))) :+ ScriptTransfer(bK.caller, 1, Y)) ++ dz), dt) | |
927 | 927 | } | |
928 | 928 | } | |
929 | 929 | } | |
930 | 930 | } | |
931 | 931 | } | |
932 | 932 | } | |
933 | 933 | ||
934 | 934 | ||
935 | 935 | ||
936 | 936 | @Callable(bK) | |
937 | 937 | func exchangeNFTs () = { | |
938 | 938 | let dz = bJ(bK) | |
939 | 939 | if ((3 > size(bK.payments))) | |
940 | 940 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
941 | 941 | else if ((size(bK.payments) > 10)) | |
942 | 942 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
943 | 943 | else { | |
944 | 944 | let L = toString(bK.caller) | |
945 | - | func | |
945 | + | func ez (aS,dC) = { | |
946 | 946 | let Y = valueOrErrorMessage(dC.assetId, "WAVES payments not allowed") | |
947 | 947 | if ((Y == P)) | |
948 | 948 | then $Tuple4((aS._1 + dC.amount), aS._2, aS._3, aS._4) | |
949 | 949 | else { | |
950 | - | let | |
951 | - | if (( | |
950 | + | let el = value(assetInfo(Y)) | |
951 | + | if ((el.issuer != this)) | |
952 | 952 | then throw("Only WL-issued NFTs allowed") | |
953 | 953 | else { | |
954 | - | let | |
954 | + | let eA = cp(value(el.description)) | |
955 | 955 | if (if ((aS._4 > 0)) | |
956 | - | then ( | |
956 | + | then (eA != aS._4) | |
957 | 957 | else false) | |
958 | 958 | then throw("You can exchange only NFTs of the same rarity") | |
959 | 959 | else { | |
960 | - | let ci = cn(value( | |
961 | - | $Tuple4(aS._1, (aS._2 + ci), (aS._3 :+ Burn(Y, 1)), | |
960 | + | let ci = cn(value(el.description)) | |
961 | + | $Tuple4(aS._1, (aS._2 + ci), (aS._3 :+ Burn(Y, 1)), eA) | |
962 | 962 | } | |
963 | 963 | } | |
964 | 964 | } | |
965 | 965 | } | |
966 | 966 | ||
967 | - | let | |
967 | + | let eB = { | |
968 | 968 | let aU = bK.payments | |
969 | 969 | let aV = size(aU) | |
970 | 970 | let aW = $Tuple4(0, 0, nil, -1) | |
971 | 971 | func aX (aY,aZ) = if ((aZ >= aV)) | |
972 | 972 | then aY | |
973 | - | else | |
973 | + | else ez(aY, aU[aZ]) | |
974 | 974 | ||
975 | 975 | func ba (aY,aZ) = if ((aZ >= aV)) | |
976 | 976 | then aY | |
977 | 977 | else throw("List size exceeds 10") | |
978 | 978 | ||
979 | 979 | ba(aX(aX(aX(aX(aX(aX(aX(aX(aX(aX(aW, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
980 | 980 | } | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | let ch = | |
985 | - | let | |
986 | - | then if ((bp[bq] > | |
981 | + | let eC = eB._1 | |
982 | + | let eD = eB._2 | |
983 | + | let eE = eB._3 | |
984 | + | let ch = eB._4 | |
985 | + | let eF = if ((ch == bA)) | |
986 | + | then if ((bp[bq] > eD)) | |
987 | 987 | then bA | |
988 | - | else if ((bp[br] > | |
988 | + | else if ((bp[br] > eD)) | |
989 | 989 | then bB | |
990 | 990 | else throw((("You can advance only one level of rarity, max total bonus " + toString(bp[br])) + "%")) | |
991 | 991 | else if ((ch == bB)) | |
992 | - | then if ((bp[br] > | |
992 | + | then if ((bp[br] > eD)) | |
993 | 993 | then bB | |
994 | - | else if ((bp[bs] > | |
994 | + | else if ((bp[bs] > eD)) | |
995 | 995 | then bC | |
996 | 996 | else throw((("You can advance only one level of rarity, max total bonus " + toString(bp[bs])) + "%")) | |
997 | 997 | else if ((ch == bC)) | |
998 | - | then if ((bp[bs] > | |
998 | + | then if ((bp[bs] > eD)) | |
999 | 999 | then bC | |
1000 | 1000 | else bD | |
1001 | 1001 | else if ((ch == bD)) | |
1002 | 1002 | then bD | |
1003 | 1003 | else if ((ch == bE)) | |
1004 | 1004 | then throw("You can't exchange NFTs of this rarity") | |
1005 | 1005 | else throw("Unknown rarity") | |
1006 | - | let | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let dJ = aa(invoke(G, "burnWlgold", [( | |
1010 | - | if ((0 > | |
1011 | - | then throw((("You need to attach " + aj( | |
1006 | + | let eG = fraction(eD, e, cL(0)) | |
1007 | + | let eH = (eC - eG) | |
1008 | + | let eI = (eG / 2) | |
1009 | + | let dJ = aa(invoke(G, "burnWlgold", [(eG - eI)], nil)) | |
1010 | + | if ((0 > eH)) | |
1011 | + | then throw((("You need to attach " + aj(eG, 8)) + " WLGOLD as fee")) | |
1012 | 1012 | else { | |
1013 | - | let | |
1014 | - | then [ScriptTransfer(bK.caller, | |
1013 | + | let eJ = if ((eH > 0)) | |
1014 | + | then [ScriptTransfer(bK.caller, eH, P)] | |
1015 | 1015 | else nil | |
1016 | - | let | |
1017 | - | let | |
1018 | - | let cm = | |
1019 | - | let | |
1020 | - | let | |
1016 | + | let eK = cd(bv, eF, bG, eF, eD, bo, bI, bK.caller) | |
1017 | + | let eL = eK._1 | |
1018 | + | let cm = eK._2 | |
1019 | + | let eM = size(eE) | |
1020 | + | let eN = if ((eM == 0)) | |
1021 | 1021 | then nil | |
1022 | - | else [IntegerEntry(aG, (valueOrElse(getInteger(aG), 0) + | |
1023 | - | $Tuple2(((((( | |
1022 | + | else [IntegerEntry(aG, (valueOrElse(getInteger(aG), 0) + eM))] | |
1023 | + | $Tuple2((((((eL ++ eE) ++ eN) ++ dz) ++ eJ) :+ ScriptTransfer(addressFromStringValue(getStringValue(G, bf)), eI, P)), $Tuple2(cm, dJ)) | |
1024 | 1024 | } | |
1025 | 1025 | } | |
1026 | 1026 | } | |
1027 | 1027 | ||
1028 | 1028 | ||
1029 | 1029 | ||
1030 | 1030 | @Callable(bK) | |
1031 | 1031 | func openNftChest () = { | |
1032 | 1032 | let dz = bJ(bK) | |
1033 | 1033 | if ((size(bK.payments) != 1)) | |
1034 | 1034 | then throw("exactly 1 payment must be attached") | |
1035 | 1035 | else { | |
1036 | 1036 | let dC = bK.payments[0] | |
1037 | 1037 | let dG = dC.amount | |
1038 | 1038 | if (if (!(isDefined(dC.assetId))) | |
1039 | 1039 | then true | |
1040 | 1040 | else (value(dC.assetId) != P)) | |
1041 | 1041 | then throw("WLGOLD payments only!") | |
1042 | 1042 | else { | |
1043 | - | let | |
1044 | - | let | |
1045 | - | let | |
1046 | - | let dJ = aa(invoke(G, "burnWlgold", [( | |
1047 | - | if ((0 > | |
1048 | - | then throw((("You need to attach " + aj( | |
1043 | + | let eG = fraction(j, d, cL(0)) | |
1044 | + | let eH = (dG - eG) | |
1045 | + | let eI = (eG / 2) | |
1046 | + | let dJ = aa(invoke(G, "burnWlgold", [(eG - eI)], nil)) | |
1047 | + | if ((0 > eH)) | |
1048 | + | then throw((("You need to attach " + aj(eG, 8)) + " WLGOLD as fee")) | |
1049 | 1049 | else { | |
1050 | - | let | |
1051 | - | then [ScriptTransfer(bK.caller, | |
1050 | + | let eJ = if ((eH > 0)) | |
1051 | + | then [ScriptTransfer(bK.caller, eH, P)] | |
1052 | 1052 | else nil | |
1053 | 1053 | let L = toString(bK.caller) | |
1054 | - | let | |
1055 | - | let | |
1056 | - | if (( | |
1057 | - | then throw(("Random number is not ready yet, wait until height = " + toString( | |
1054 | + | let eO = N(L) | |
1055 | + | let eP = valueOrErrorMessage(getInteger(eO), "You have to commitForRandom() first!") | |
1056 | + | if ((eP > height)) | |
1057 | + | then throw(("Random number is not ready yet, wait until height = " + toString(eP))) | |
1058 | 1058 | else { | |
1059 | - | let ar = value(value(blockInfoByHeight( | |
1059 | + | let ar = value(value(blockInfoByHeight(eP)).vrf) | |
1060 | 1060 | let aq = fromBase58String(split(valueOrElse(getString(M(L)), "42_DEFAULT"), "_")[1]) | |
1061 | - | let | |
1062 | - | let | |
1061 | + | let eQ = ao(100, aq, ar) | |
1062 | + | let eR = if ((84 > eQ)) | |
1063 | 1063 | then $Tuple2(1, bA) | |
1064 | - | else if ((98 > | |
1064 | + | else if ((98 > eQ)) | |
1065 | 1065 | then $Tuple2(5, bB) | |
1066 | 1066 | else $Tuple2(10, bC) | |
1067 | - | let cb = | |
1068 | - | let ch = | |
1069 | - | let | |
1070 | - | let | |
1071 | - | let cm = | |
1072 | - | $Tuple2((((( | |
1067 | + | let cb = eR._1 | |
1068 | + | let ch = eR._2 | |
1069 | + | let eS = cd(bv, ch, bG, ch, cb, bo, bI, bK.caller) | |
1070 | + | let eL = eS._1 | |
1071 | + | let cm = eS._2 | |
1072 | + | $Tuple2(((((eL ++ dz) ++ eJ) :+ ScriptTransfer(addressFromStringValue(getStringValue(G, bf)), eI, P)) :+ DeleteEntry(eO)), $Tuple2(cm, dJ)) | |
1073 | 1073 | } | |
1074 | 1074 | } | |
1075 | 1075 | } | |
1076 | 1076 | } | |
1077 | 1077 | } | |
1078 | 1078 | ||
1079 | 1079 | ||
1080 | 1080 | ||
1081 | 1081 | @Callable(bK) | |
1082 | 1082 | func commitForRandom () = { | |
1083 | 1083 | let dz = bJ(bK) | |
1084 | 1084 | let L = toString(bK.caller) | |
1085 | - | let | |
1086 | - | if (isDefined(getInteger( | |
1085 | + | let eO = N(L) | |
1086 | + | if (isDefined(getInteger(eO))) | |
1087 | 1087 | then throw("You already commited for random, please use it") | |
1088 | 1088 | else { | |
1089 | - | let | |
1090 | - | $Tuple2(([IntegerEntry( | |
1089 | + | let eP = (height + i) | |
1090 | + | $Tuple2(([IntegerEntry(eO, eP)] ++ dz), eP) | |
1091 | 1091 | } | |
1092 | 1092 | } | |
1093 | 1093 | ||
1094 | 1094 |
github/deemru/w8io/169f3d6 185.74 ms ◑