tx · zA6j6EDYvB3GAAWCpZvJFNXRXhhNnGpY6FZfzemuy8K 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02600000 Waves 2023.08.09 15:49 [2703083] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "zA6j6EDYvB3GAAWCpZvJFNXRXhhNnGpY6FZfzemuy8K", "fee": 2600000, "feeAssetId": null, "timestamp": 1691585415374, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "54ZmjtiZbNjFJUvH9CfL6J3V53qqHCDJCCzDpY1byCpJ5egRLW1tgRpQ2eghfi2rhDqawAkGr951iD83ewNAqHt6" ], "script": "base64:BgLXLQgCEggKBggIAQEBCBIFCgMBCAISAwoBARIECgIICBIECgIICBIECgIIARIDCgEIEgMKAQgSBAoCCAESAwoBCBIAEgASBQoDCAgEEgMKAQgSAwoBCBIECgIICBIECgIICCIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIQY29udHJhY3RGaWxlbmFtZSIHU0NBTEUxOCIGTVVMVDE4IghNVUxUMThCSSILYmxvY2tzSW5EYXkiDWJsb2Nrc0luTW9udGgiB3dyYXBFcnIiA21zZyIIdGhyb3dFcnIiD2dldFN0cmluZ09yRmFpbCIHYWRkcmVzcyIDa2V5IgxnZXRJbnRPclplcm8iD2dldEludE9yRGVmYXVsdCIKZGVmYXVsdFZhbCIMZ2V0SW50T3JGYWlsIgNhYnMiA3ZhbCIOZW5zdXJlUG9zaXRpdmUiAXYiAW0iG2tleVJlZmVycmFsc0NvbnRyYWN0QWRkcmVzcyIecmVmZXJyYWxzQ29udHJhY3RBZGRyZXNzT3JGYWlsIhZrZXlSZWZlcnJhbFByb2dyYW1OYW1lIhpyZWZlcnJhbFByb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qjrMK2nfYEqDVNKrjEf Diff:
Old | New | Differences | |
---|---|---|---|
714 | 714 | } | |
715 | 715 | ||
716 | 716 | ||
717 | + | func et (aW,eu) = { | |
718 | + | let ev = aZ(aW, eu) | |
719 | + | let ew = parseIntValue(ev[aP]) | |
720 | + | let ci = parseIntValue(ev[aQ]) | |
721 | + | let ex = parseIntValue(ev[aR]) | |
722 | + | let ey = (ci + ex) | |
723 | + | let bg = parseIntValue(ev[aU]) | |
724 | + | let bf = parseIntValue(ev[aT]) | |
725 | + | let ez = ((height - ci) / i) | |
726 | + | let eA = fraction(toBigInt(ez), (toBigInt((8 * i)) * h), toBigInt(ex)) | |
727 | + | let eB = if ((height > ey)) | |
728 | + | then (ew - bg) | |
729 | + | else toInt(fraction(toBigInt(ew), (h - pow(toBigInt(5), 1, eA, f, f, DOWN)), h)) | |
730 | + | eB | |
731 | + | } | |
732 | + | ||
733 | + | ||
717 | 734 | @Callable(aM) | |
718 | - | func constructor ( | |
719 | - | let | |
720 | - | if (( | |
721 | - | then ([IntegerEntry(bh(), 0), StringEntry(aw(), aF( | |
735 | + | func constructor (eC,eD,aA,eE,eF,aD) = { | |
736 | + | let eG = aL(aM) | |
737 | + | if ((eG == eG)) | |
738 | + | then ([IntegerEntry(bh(), 0), StringEntry(aw(), aF(eD, aA, eE, eF, aD)), StringEntry(E(), eC)] ++ cl(0, 0, 0, 0)) | |
722 | 739 | else throw("Strict value is not equal to itself.") | |
723 | 740 | } | |
724 | 741 | ||
725 | 742 | ||
726 | 743 | ||
727 | 744 | @Callable(aM) | |
728 | - | func lockRef (be, | |
729 | - | let | |
730 | - | let | |
731 | - | let eo = | |
732 | - | let | |
733 | - | let | |
745 | + | func lockRef (be,eH,eI) = { | |
746 | + | let eJ = ef(aM, be) | |
747 | + | let eK = eJ._1 | |
748 | + | let eo = eJ._2 | |
749 | + | let eL = toString(aM.caller) | |
750 | + | let eM = if (if ((eH == "")) | |
734 | 751 | then true | |
735 | - | else ( | |
752 | + | else (eI == base58'')) | |
736 | 753 | then unit | |
737 | - | else invoke(A, "createPair", [D, | |
738 | - | if (( | |
754 | + | else invoke(A, "createPair", [D, eH, eL, eI], nil) | |
755 | + | if ((eM == eM)) | |
739 | 756 | then { | |
740 | - | let | |
741 | - | if (( | |
742 | - | then $Tuple2( | |
757 | + | let eN = invoke(aD, "updateReferralActivity", [toString(aM.caller), eo], nil) | |
758 | + | if ((eN == eN)) | |
759 | + | then $Tuple2(eK, unit) | |
743 | 760 | else throw("Strict value is not equal to itself.") | |
744 | 761 | } | |
745 | 762 | else throw("Strict value is not equal to itself.") | |
749 | 766 | ||
750 | 767 | @Callable(aM) | |
751 | 768 | func lock (be) = { | |
752 | - | let | |
753 | - | let | |
754 | - | let eo = | |
755 | - | let | |
756 | - | if (( | |
757 | - | then $Tuple2( | |
769 | + | let eO = ef(aM, be) | |
770 | + | let eK = eO._1 | |
771 | + | let eo = eO._2 | |
772 | + | let eN = invoke(aD, "updateReferralActivity", [toString(aM.caller), eo], nil) | |
773 | + | if ((eN == eN)) | |
774 | + | then $Tuple2(eK, unit) | |
758 | 775 | else throw("Strict value is not equal to itself.") | |
759 | 776 | } | |
760 | 777 | ||
764 | 781 | func claimWxBoost (bE,bM) = if ((bP != aM.caller)) | |
765 | 782 | then m("permissions denied") | |
766 | 783 | else { | |
767 | - | let | |
768 | - | let | |
769 | - | let ed = | |
770 | - | let ee = | |
771 | - | $Tuple2(ed, [ | |
784 | + | let eP = dO(bE, bM, false) | |
785 | + | let eQ = eP._1 | |
786 | + | let ed = eP._2 | |
787 | + | let ee = eP._3 | |
788 | + | $Tuple2(ed, [eQ]) | |
772 | 789 | } | |
773 | 790 | ||
774 | 791 | ||
775 | 792 | ||
776 | 793 | @Callable(aM) | |
777 | 794 | func claimWxBoostREADONLY (bE,bM) = { | |
778 | - | let | |
779 | - | let | |
780 | - | let ed = | |
781 | - | let ee = | |
782 | - | $Tuple2(nil, [ | |
795 | + | let eR = dO(bE, bM, true) | |
796 | + | let eQ = eR._1 | |
797 | + | let ed = eR._2 | |
798 | + | let ee = eR._3 | |
799 | + | $Tuple2(nil, [eQ, ee]) | |
783 | 800 | } | |
784 | 801 | ||
785 | 802 | ||
786 | 803 | ||
787 | 804 | @Callable(aM) | |
788 | - | func unlock ( | |
805 | + | func unlock (eS,bc) = { | |
789 | 806 | let aW = aM.caller | |
790 | 807 | let bM = toString(aW) | |
791 | - | let aX = fromBase58String( | |
792 | - | let | |
808 | + | let aX = fromBase58String(eS) | |
809 | + | let ev = aZ(aW, if ((eS == "")) | |
793 | 810 | then unit | |
794 | 811 | else aX) | |
795 | - | let eL = parseIntValue(eK[aP]) | |
796 | - | let ci = parseIntValue(eK[aQ]) | |
797 | - | let eM = parseIntValue(eK[aR]) | |
798 | - | let eN = (ci + eM) | |
799 | - | let bg = parseIntValue(eK[aU]) | |
800 | - | let bf = parseIntValue(eK[aT]) | |
801 | - | let eO = ((height - ci) / i) | |
802 | - | let eP = fraction(toBigInt(eO), (toBigInt((8 * i)) * h), toBigInt(eM)) | |
803 | - | let eQ = if ((height > eN)) | |
804 | - | then (eL - bg) | |
805 | - | else toInt(fraction(toBigInt(eL), (h - pow(toBigInt(5), 1, eP, f, f, DOWN)), h)) | |
806 | - | if ((bc > eQ)) | |
807 | - | then m(("maximum amount to unlock: " + toString(eQ))) | |
812 | + | let ew = parseIntValue(ev[aP]) | |
813 | + | let ci = parseIntValue(ev[aQ]) | |
814 | + | let ex = parseIntValue(ev[aR]) | |
815 | + | let ey = (ci + ex) | |
816 | + | let bg = parseIntValue(ev[aU]) | |
817 | + | let bf = parseIntValue(ev[aT]) | |
818 | + | let ez = ((height - ci) / i) | |
819 | + | let eB = et(aW, if ((eS == "")) | |
820 | + | then unit | |
821 | + | else aX) | |
822 | + | if ((bc > eB)) | |
823 | + | then m(("maximum amount to unlock: " + toString(eB))) | |
808 | 824 | else { | |
809 | - | let | |
810 | - | let | |
811 | - | let | |
812 | - | if (( | |
813 | - | then m(("locked gwx amount: " + toString( | |
814 | - | else if ((0 >= | |
825 | + | let eT = max([bc, fraction((ez * i), ew, aC)]) | |
826 | + | let eU = w((bf - eT), "gwxRemaining") | |
827 | + | let eV = bZ(aW) | |
828 | + | if ((eV > eU)) | |
829 | + | then m(("locked gwx amount: " + toString(eV))) | |
830 | + | else if ((0 >= ew)) | |
815 | 831 | then m("nothing to unlock") | |
816 | 832 | else { | |
817 | 833 | let ep = bY() | |
818 | 834 | let eq = cC(aW) | |
819 | 835 | let er = reentrantInvoke(bQ, "refreshUserReward", [aW.bytes], nil) | |
820 | 836 | if ((er == er)) | |
821 | - | then ((((cy(aW, aX, | |
837 | + | then ((((cy(aW, aX, ew, ci, ex, eU, (bg + bc)) ++ cl(-(bc), 0, 0, 0)) :+ cf("unlock", bM, bc, ci, ex, eT, aM)) :+ ScriptTransfer(aW, bc, az)) ++ [IntegerEntry(bw(), w((ep - eT), "gwxTotal")), IntegerEntry(ba(aW), w((eq - eT), "userGwxAmountTotal"))]) | |
822 | 838 | else throw("Strict value is not equal to itself.") | |
823 | 839 | } | |
824 | 840 | } | |
841 | 857 | ||
842 | 858 | ||
843 | 859 | @Callable(aM) | |
844 | - | func getUserGwxAmountAtHeightREADONLY (bM, | |
860 | + | func getUserGwxAmountAtHeightREADONLY (bM,eW) = { | |
845 | 861 | let aW = valueOrErrorMessage(addressFromString(bM), k("invalid user address")) | |
846 | 862 | let bf = cC(aW) | |
847 | 863 | $Tuple2(nil, bf) | |
865 | 881 | ||
866 | 882 | @Callable(aM) | |
867 | 883 | func onBoostEmissionUpdate () = { | |
868 | - | let | |
884 | + | let eG = if ((aM.caller == bO)) | |
869 | 885 | then true | |
870 | 886 | else aL(aM) | |
871 | - | if (( | |
887 | + | if ((eG == eG)) | |
872 | 888 | then dD() | |
873 | 889 | else throw("Strict value is not equal to itself.") | |
874 | 890 | } | |
877 | 893 | ||
878 | 894 | @Callable(aM) | |
879 | 895 | func onStakedVoteUpdate (bE,bM,dp) = { | |
880 | - | let | |
896 | + | let eG = if ((aM.caller == bP)) | |
881 | 897 | then true | |
882 | 898 | else aL(aM) | |
883 | - | if (( | |
899 | + | if ((eG == eG)) | |
884 | 900 | then { | |
885 | 901 | let ds = do(bE, bM, dp) | |
886 | 902 | $Tuple2(ds, unit) | |
909 | 925 | func getUserVoteStakedIntegralREADONLY (bE,bM) = $Tuple2(nil, dh(bE, bM)) | |
910 | 926 | ||
911 | 927 | ||
912 | - | @Verifier( | |
913 | - | func | |
914 | - | let | |
928 | + | @Verifier(eX) | |
929 | + | func eY () = { | |
930 | + | let eZ = { | |
915 | 931 | let aH = aJ() | |
916 | 932 | if ($isInstanceOf(aH, "ByteVector")) | |
917 | 933 | then { | |
919 | 935 | aO | |
920 | 936 | } | |
921 | 937 | else if ($isInstanceOf(aH, "Unit")) | |
922 | - | then | |
938 | + | then eX.senderPublicKey | |
923 | 939 | else throw("Match error") | |
924 | 940 | } | |
925 | - | sigVerify( | |
941 | + | sigVerify(eX.bodyBytes, eX.proofs[0], eZ) | |
926 | 942 | } | |
927 | 943 |
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 = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | let e = "boosting.ride" | |
13 | 13 | ||
14 | 14 | let f = 18 | |
15 | 15 | ||
16 | 16 | let g = 1000000000000000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(g) | |
19 | 19 | ||
20 | 20 | let i = 1440 | |
21 | 21 | ||
22 | 22 | let j = 43800 | |
23 | 23 | ||
24 | 24 | func k (l) = makeString([e, ": ", l], "") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func m (l) = throw(k(l)) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func n (o,p) = valueOrErrorMessage(getString(o, p), k((("mandatory this." + p) + " is not defined"))) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func q (o,p) = valueOrElse(getInteger(o, p), 0) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func r (o,p,s) = valueOrElse(getInteger(o, p), s) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func t (o,p) = valueOrErrorMessage(getInteger(o, p), k((("mandatory this." + p) + " is not defined"))) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func u (v) = if ((0 > v)) | |
43 | 43 | then -(v) | |
44 | 44 | else v | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (x,y) = if ((x >= 0)) | |
48 | 48 | then x | |
49 | 49 | else m((valueOrElse(y, "value") + " should be positive")) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func z () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | let A = addressFromStringValue(n(this, z())) | |
56 | 56 | ||
57 | 57 | let B = makeString(["%s%s", "referral", "programName"], a) | |
58 | 58 | ||
59 | 59 | let C = "wxlock" | |
60 | 60 | ||
61 | 61 | let D = valueOrElse(getString(this, B), C) | |
62 | 62 | ||
63 | 63 | func E () = "%s%s__config__factoryAddress" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | let F = 1 | |
67 | 67 | ||
68 | 68 | let G = 2 | |
69 | 69 | ||
70 | 70 | let H = 3 | |
71 | 71 | ||
72 | 72 | let I = 4 | |
73 | 73 | ||
74 | 74 | let J = 5 | |
75 | 75 | ||
76 | 76 | let K = 6 | |
77 | 77 | ||
78 | 78 | let L = 7 | |
79 | 79 | ||
80 | 80 | let M = 8 | |
81 | 81 | ||
82 | 82 | let N = 9 | |
83 | 83 | ||
84 | 84 | let O = 10 | |
85 | 85 | ||
86 | 86 | let P = 11 | |
87 | 87 | ||
88 | 88 | func Q () = "%s__factoryConfig" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], a) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func T (U) = makeString(["%s%s", "poolWeight", U], a) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func V (W,X) = ((("%s%s__poolWeight__" + W) + "__") + toString(X)) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func Y () = addressFromStringValue(n(this, E())) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func Z (aa) = split(n(aa, Q()), a) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func ab (ac) = addressFromStringValue(ac[G]) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func ad (ac) = addressFromStringValue(ac[J]) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func ae (ac) = addressFromStringValue(ac[F]) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func af (ac) = addressFromStringValue(ac[O]) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func ag () = "%s__managerPublicKey" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func ah () = "%s__managerVaultAddress" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ai () = "%s%s__ratePerBlock__current" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func aj () = "%s%s__ratePerBlockMax__current" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ak () = "%s%s__emission__startBlock" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func al () = "%s%s__boostingV2__startBlock" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func am () = "%s%s__boostingV2__integral" | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func an () = "%s%s__emission__duration" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func ao () = "%s%s__emission__endBlock" | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ap () = "%s__nextPeriod" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func aq () = "%s%s__gwxRewardEmissionPart__startHeight" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | let ar = 1 | |
152 | 152 | ||
153 | 153 | let as = 2 | |
154 | 154 | ||
155 | 155 | let at = 3 | |
156 | 156 | ||
157 | 157 | let au = 4 | |
158 | 158 | ||
159 | 159 | let av = 5 | |
160 | 160 | ||
161 | 161 | func aw () = "%s__config" | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ax () = split(n(this, aw()), a) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | let ay = ax() | |
168 | 168 | ||
169 | 169 | let az = fromBase58String(ay[ar]) | |
170 | 170 | ||
171 | 171 | let aA = valueOrErrorMessage(parseInt(ay[as]), k("invalid min lock amount")) | |
172 | 172 | ||
173 | 173 | let aB = valueOrErrorMessage(parseInt(ay[at]), k("invalid min lock duration")) | |
174 | 174 | ||
175 | 175 | let aC = valueOrErrorMessage(parseInt(ay[au]), k("invalid max lock duration")) | |
176 | 176 | ||
177 | 177 | let aD = valueOrErrorMessage(addressFromString(ay[av]), k("invalid math contract address")) | |
178 | 178 | ||
179 | 179 | func aE (az,aA,aB,aC,aD) = makeString(["%s%d%d%d%s", az, aA, aB, aC, aD], a) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func aF (az,aA,aB,aC,aD) = aE(az, toString(aA), toString(aB), toString(aC), aD) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func aG () = { | |
186 | 186 | let aH = getString(ah()) | |
187 | 187 | if ($isInstanceOf(aH, "String")) | |
188 | 188 | then { | |
189 | 189 | let aI = aH | |
190 | 190 | addressFromStringValue(aI) | |
191 | 191 | } | |
192 | 192 | else this | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func aJ () = { | |
197 | 197 | let aK = aG() | |
198 | 198 | let aH = getString(aK, ag()) | |
199 | 199 | if ($isInstanceOf(aH, "String")) | |
200 | 200 | then { | |
201 | 201 | let aI = aH | |
202 | 202 | fromBase58String(aI) | |
203 | 203 | } | |
204 | 204 | else if ($isInstanceOf(aH, "Unit")) | |
205 | 205 | then unit | |
206 | 206 | else throw("Match error") | |
207 | 207 | } | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aL (aM) = { | |
211 | 211 | let aN = m("Permission denied") | |
212 | 212 | let aH = aJ() | |
213 | 213 | if ($isInstanceOf(aH, "ByteVector")) | |
214 | 214 | then { | |
215 | 215 | let aO = aH | |
216 | 216 | if ((aM.callerPublicKey == aO)) | |
217 | 217 | then true | |
218 | 218 | else aN | |
219 | 219 | } | |
220 | 220 | else if ($isInstanceOf(aH, "Unit")) | |
221 | 221 | then if ((aM.caller == this)) | |
222 | 222 | then true | |
223 | 223 | else aN | |
224 | 224 | else throw("Match error") | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | let aP = 1 | |
229 | 229 | ||
230 | 230 | let aQ = 2 | |
231 | 231 | ||
232 | 232 | let aR = 3 | |
233 | 233 | ||
234 | 234 | let aS = 4 | |
235 | 235 | ||
236 | 236 | let aT = 5 | |
237 | 237 | ||
238 | 238 | let aU = 6 | |
239 | 239 | ||
240 | 240 | func aV (aW,aX) = makeString(["%s%s%s__lock", toString(aW), { | |
241 | 241 | let aH = aX | |
242 | 242 | if ($isInstanceOf(aH, "ByteVector")) | |
243 | 243 | then { | |
244 | 244 | let aY = aH | |
245 | 245 | toBase58String(aY) | |
246 | 246 | } | |
247 | 247 | else if ($isInstanceOf(aH, "Unit")) | |
248 | 248 | then "legacy" | |
249 | 249 | else throw("Match error") | |
250 | 250 | }], a) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func aZ (aW,aX) = split(n(this, aV(aW, aX)), a) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func ba (aW) = makeString(["%s%s__gwxAmountTotal", toString(aW)], a) | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func bb (bc,bd,be,bf,bg) = makeString(["%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(lastBlock.timestamp), toString(bf), toString(bg)], a) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bh () = "%s__nextUserNum" | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bi (aW) = makeString(["%s%s%s__mapping__user2num", aW], a) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bj (X) = makeString(["%s%s%s__mapping__num2user", X], a) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func bk () = "%s%s__stats__activeTotalLocked" | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bl () = "%s%s__stats__locksDurationSumInBlocks" | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func bm () = "%s%s__stats__locksCount" | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func bn () = "%s%s__stats__activeUsersCount" | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func bo (bp) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bp)], a) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func bq (bp,br) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bp), br], a) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func bs (bp) = makeString(["%s%d__maxBoostInt", toString(bp)], a) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func bt () = "%s%s__maxBoostInt__total" | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func bu (bp) = makeString(["%s%d__userBoostAvaliableToClaimTotal", toString(bp)], a) | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func bv (bp) = makeString(["%s%d__userBoostClaimed", toString(bp)], a) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func bw () = "%s%s__gwx__total" | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func bx (by,bz,o,bA) = makeString(["%s%s%s%s%d", "vote", by, bz, toString(o), toString(bA)], a) | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func bB (bA) = makeString(["%s%d", "startHeight", toString(bA)], a) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func bC () = makeString(["%s", "currentEpochUi"], a) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func bD (bE,bA) = makeString(["%s%s%d", "votingResultStaked", bE, toString(bA)], a) | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func bF (bE,bA) = makeString(["%s%s%d", "votingResultStakedIntegral", bE, toString(bA)], a) | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | func bG (bE,bA) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bE, toString(bA)], a) | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func bH (bE,o,bA) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bE, toString(o), toString(bA)], a) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func bI (bE,o,bA) = makeString(["%s%s%s%d", "voteStakedIntegral", bE, toString(o), toString(bA)], a) | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func bJ (bE,o,bA) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bE, toString(o), toString(bA)], a) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func bK (bE,o,bA) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bE, toString(o), toString(bA)], a) | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | func bL (bM,bE) = makeString(["%s%s%s", "staked", bM, bE], a) | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | let bN = Y() | |
338 | 338 | ||
339 | 339 | let ac = Z(bN) | |
340 | 340 | ||
341 | 341 | let bO = ad(ac) | |
342 | 342 | ||
343 | 343 | let bP = ae(ac) | |
344 | 344 | ||
345 | 345 | let bQ = af(ac) | |
346 | 346 | ||
347 | 347 | let bR = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), k("lp_staking_pools contract address is undefined"))), k("invalid lp_staking_pools contract address")) | |
348 | 348 | ||
349 | 349 | let bS = makeString(["%s", "votingEmissionContract"], a) | |
350 | 350 | ||
351 | 351 | let bT = addressFromStringValue(getStringValue(bN, bS)) | |
352 | 352 | ||
353 | 353 | let bU = makeString(["%s", "votingEmissionRateContract"], a) | |
354 | 354 | ||
355 | 355 | let bV = { | |
356 | 356 | let bW = invoke(bO, "getBoostCoeffREADONLY", nil, nil) | |
357 | 357 | if ($isInstanceOf(bW, "Int")) | |
358 | 358 | then bW | |
359 | 359 | else throw(($getType(bW) + " couldn't be cast to Int")) | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | func bX (aW) = { | |
363 | 363 | let aH = getString(this, bi(toString(aW))) | |
364 | 364 | if ($isInstanceOf(aH, "String")) | |
365 | 365 | then { | |
366 | 366 | let aI = aH | |
367 | 367 | valueOrErrorMessage(parseInt(aI), k("invalid user number")) | |
368 | 368 | } | |
369 | 369 | else if ($isInstanceOf(aH, "Unit")) | |
370 | 370 | then m("invalid user") | |
371 | 371 | else throw("Match error") | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | func bY () = valueOrElse(getInteger(this, bw()), 0) | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | func bZ (aW) = { | |
379 | 379 | let ca = "getLockedGwxAmount" | |
380 | 380 | let cb = valueOrErrorMessage({ | |
381 | 381 | let aH = getString(bT, bU) | |
382 | 382 | if ($isInstanceOf(aH, "Unit")) | |
383 | 383 | then unit | |
384 | 384 | else if ($isInstanceOf(aH, "String")) | |
385 | 385 | then { | |
386 | 386 | let aI = aH | |
387 | 387 | addressFromString(aI) | |
388 | 388 | } | |
389 | 389 | else throw("Match error") | |
390 | 390 | }, k("invalid voting emission rate address")) | |
391 | 391 | let cc = { | |
392 | 392 | let bW = invoke(bT, ca, [toString(aW)], nil) | |
393 | 393 | if ($isInstanceOf(bW, "Int")) | |
394 | 394 | then bW | |
395 | 395 | else throw(($getType(bW) + " couldn't be cast to Int")) | |
396 | 396 | } | |
397 | 397 | let cd = { | |
398 | 398 | let bW = invoke(cb, ca, [toString(aW)], nil) | |
399 | 399 | if ($isInstanceOf(bW, "Int")) | |
400 | 400 | then bW | |
401 | 401 | else throw(($getType(bW) + " couldn't be cast to Int")) | |
402 | 402 | } | |
403 | 403 | let ce = max([cc, cd]) | |
404 | 404 | ce | |
405 | 405 | } | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | func cf (cg,ch,bc,ci,be,bf,aM) = { | |
409 | 409 | let cj = makeString(["%s%s%s%s__history", cg, ch, toBase58String(aM.transactionId)], a) | |
410 | 410 | let ck = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(bc), toString(ci), toString(be), toString(bf)], a) | |
411 | 411 | StringEntry(cj, ck) | |
412 | 412 | } | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | func cl (cm,cn,co,cp) = { | |
416 | 416 | let cq = bl() | |
417 | 417 | let cr = bm() | |
418 | 418 | let cs = bn() | |
419 | 419 | let ct = bk() | |
420 | 420 | let cu = q(this, cq) | |
421 | 421 | let cv = q(this, cr) | |
422 | 422 | let cw = q(this, cs) | |
423 | 423 | let cx = q(this, ct) | |
424 | 424 | [IntegerEntry(cq, (cu + cn)), IntegerEntry(cr, (cv + co)), IntegerEntry(cs, (cw + cp)), IntegerEntry(ct, (cx + cm))] | |
425 | 425 | } | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | func cy (aW,aX,bc,bd,be,bf,bg) = [StringEntry(aV(aW, aX), bb(bc, bd, be, bf, bg))] | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | func cz (aM,cA) = if ((size(aM.payments) > 1)) | |
432 | 432 | then m("only one payment is allowed") | |
433 | 433 | else if ((size(aM.payments) == 0)) | |
434 | 434 | then 0 | |
435 | 435 | else { | |
436 | 436 | let cB = aM.payments[0] | |
437 | 437 | if ((value(cB.assetId) != cA)) | |
438 | 438 | then m("invalid asset id in payment") | |
439 | 439 | else cB.amount | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | func cC (aW) = valueOrElse(getInteger(this, ba(aW)), 0) | |
444 | 444 | ||
445 | 445 | ||
446 | 446 | func cD () = { | |
447 | 447 | let cE = { | |
448 | 448 | let cF = value(getInteger(bT, bC())) | |
449 | 449 | let cG = (cF - 1) | |
450 | 450 | if ((0 > cG)) | |
451 | 451 | then m("invalid epoch") | |
452 | 452 | else $Tuple2(cF, cG) | |
453 | 453 | } | |
454 | 454 | let cF = cE._1 | |
455 | 455 | let cG = cE._2 | |
456 | 456 | let cH = value(getInteger(bT, bB(cF))) | |
457 | 457 | $Tuple2(cG, cH) | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | func cI (bE) = { | |
462 | 462 | let cJ = 4 | |
463 | 463 | let cK = 5 | |
464 | 464 | let cL = { | |
465 | 465 | let bW = invoke(bN, "getPoolConfigByLpAssetIdREADONLY", [bE], nil) | |
466 | 466 | if ($isInstanceOf(bW, "List[Any]")) | |
467 | 467 | then bW | |
468 | 468 | else throw(($getType(bW) + " couldn't be cast to List[Any]")) | |
469 | 469 | } | |
470 | 470 | let by = { | |
471 | 471 | let bW = cL[cJ] | |
472 | 472 | if ($isInstanceOf(bW, "String")) | |
473 | 473 | then bW | |
474 | 474 | else throw(($getType(bW) + " couldn't be cast to String")) | |
475 | 475 | } | |
476 | 476 | let bz = { | |
477 | 477 | let bW = cL[cK] | |
478 | 478 | if ($isInstanceOf(bW, "String")) | |
479 | 479 | then bW | |
480 | 480 | else throw(($getType(bW) + " couldn't be cast to String")) | |
481 | 481 | } | |
482 | 482 | $Tuple2(by, bz) | |
483 | 483 | } | |
484 | 484 | ||
485 | 485 | ||
486 | 486 | func cM (bE,bM) = { | |
487 | 487 | let aW = addressFromStringValue(bM) | |
488 | 488 | let cN = cD() | |
489 | 489 | let cG = cN._1 | |
490 | 490 | let cH = cN._2 | |
491 | 491 | let cO = cI(bE) | |
492 | 492 | let by = cO._1 | |
493 | 493 | let bz = cO._2 | |
494 | 494 | let cP = bx(by, bz, aW, cG) | |
495 | 495 | let cQ = valueOrElse(getInteger(bT, cP), 0) | |
496 | 496 | cQ | |
497 | 497 | } | |
498 | 498 | ||
499 | 499 | ||
500 | 500 | func cR (bE,bM) = { | |
501 | 501 | let cS = valueOrElse(getInteger(bP, bL(bM, bE)), 0) | |
502 | 502 | let cQ = cM(bE, bM) | |
503 | 503 | if ((cS == 0)) | |
504 | 504 | then 0 | |
505 | 505 | else cQ | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 | ||
509 | 509 | func cT (bE) = { | |
510 | 510 | let cU = cD() | |
511 | 511 | let cG = cU._1 | |
512 | 512 | let cH = cU._2 | |
513 | 513 | let cV = valueOrElse(getInteger(bT, bD(bE, cG)), 0) | |
514 | 514 | let cW = valueOrElse(getInteger(this, bD(bE, cG)), cV) | |
515 | 515 | cW | |
516 | 516 | } | |
517 | 517 | ||
518 | 518 | ||
519 | 519 | func cX (bE) = { | |
520 | 520 | let cY = cD() | |
521 | 521 | let cG = cY._1 | |
522 | 522 | let cH = cY._2 | |
523 | 523 | let cW = cT(bE) | |
524 | 524 | let cZ = valueOrElse(getInteger(this, bF(bE, cG)), 0) | |
525 | 525 | let da = valueOrElse(getInteger(this, bG(bE, cG)), cH) | |
526 | 526 | let db = (height - da) | |
527 | 527 | let dc = ((db * cW) + cZ) | |
528 | 528 | dc | |
529 | 529 | } | |
530 | 530 | ||
531 | 531 | ||
532 | 532 | func dd (bE,de) = { | |
533 | 533 | let df = cD() | |
534 | 534 | let cG = df._1 | |
535 | 535 | let cH = df._2 | |
536 | 536 | let cW = cT(bE) | |
537 | 537 | let dg = (cW + de) | |
538 | 538 | let dc = cX(bE) | |
539 | 539 | [IntegerEntry(bD(bE, cG), dg), IntegerEntry(bG(bE, cG), height), IntegerEntry(bF(bE, cG), dc)] | |
540 | 540 | } | |
541 | 541 | ||
542 | 542 | ||
543 | 543 | func dh (bE,bM) = { | |
544 | 544 | let di = cD() | |
545 | 545 | let cG = di._1 | |
546 | 546 | let cH = di._2 | |
547 | 547 | let aW = addressFromStringValue(bM) | |
548 | 548 | let dj = cR(bE, bM) | |
549 | 549 | let dk = valueOrElse(getInteger(this, bI(bE, aW, cG)), 0) | |
550 | 550 | let dl = valueOrElse(getInteger(this, bJ(bE, aW, cG)), cH) | |
551 | 551 | let dm = (height - dl) | |
552 | 552 | let dn = ((dm * dj) + dk) | |
553 | 553 | dn | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | func do (bE,bM,dp) = { | |
558 | 558 | let dq = cD() | |
559 | 559 | let cG = dq._1 | |
560 | 560 | let cH = dq._2 | |
561 | 561 | let aW = addressFromStringValue(bM) | |
562 | 562 | let dr = cM(bE, bM) | |
563 | 563 | let ds = if ((dr == 0)) | |
564 | 564 | then nil | |
565 | 565 | else { | |
566 | 566 | let de = if (dp) | |
567 | 567 | then dr | |
568 | 568 | else -(dr) | |
569 | 569 | let dt = dd(bE, de) | |
570 | 570 | let dn = dh(bE, bM) | |
571 | 571 | let du = [IntegerEntry(bJ(bE, aW, cG), height), IntegerEntry(bI(bE, aW, cG), dn)] | |
572 | 572 | (dt ++ du) | |
573 | 573 | } | |
574 | 574 | ds | |
575 | 575 | } | |
576 | 576 | ||
577 | 577 | ||
578 | 578 | func dv (bE,bM) = { | |
579 | 579 | let dw = cD() | |
580 | 580 | let cG = dw._1 | |
581 | 581 | let cH = dw._2 | |
582 | 582 | let aW = addressFromStringValue(bM) | |
583 | 583 | let dx = bK(bE, aW, cG) | |
584 | 584 | let dy = valueOrElse(getInteger(this, dx), 0) | |
585 | 585 | let dz = bH(bE, aW, cG) | |
586 | 586 | let dA = valueOrElse(getInteger(this, dz), 0) | |
587 | 587 | let dn = dh(bE, bM) | |
588 | 588 | let dc = cX(bE) | |
589 | 589 | let dB = (dn - dy) | |
590 | 590 | let dC = (dc - dA) | |
591 | 591 | $Tuple3([IntegerEntry(dx, dn), IntegerEntry(dz, dc)], dB, dC) | |
592 | 592 | } | |
593 | 593 | ||
594 | 594 | ||
595 | 595 | func dD () = { | |
596 | 596 | let dE = t(bO, ai()) | |
597 | 597 | let dF = getInteger(this, al()) | |
598 | 598 | let dG = getInteger(this, am()) | |
599 | 599 | let dH = t(bO, ao()) | |
600 | 600 | let dI = if ((height > dH)) | |
601 | 601 | then dH | |
602 | 602 | else height | |
603 | 603 | let dJ = { | |
604 | 604 | let aH = dF | |
605 | 605 | if ($isInstanceOf(aH, "Int")) | |
606 | 606 | then { | |
607 | 607 | let dK = aH | |
608 | 608 | max([(dI - dK), 0]) | |
609 | 609 | } | |
610 | 610 | else if ($isInstanceOf(aH, "Unit")) | |
611 | 611 | then 0 | |
612 | 612 | else throw("Match error") | |
613 | 613 | } | |
614 | 614 | let dL = ((dE * (bV - 1)) / bV) | |
615 | 615 | let dM = valueOrElse(dG, 0) | |
616 | 616 | let dN = ((dL * dJ) + dM) | |
617 | 617 | $Tuple2([IntegerEntry(am(), dN), IntegerEntry(al(), height)], dN) | |
618 | 618 | } | |
619 | 619 | ||
620 | 620 | ||
621 | 621 | func dO (bE,bM,dP) = { | |
622 | 622 | let aW = valueOrErrorMessage(addressFromString(bM), k("invalid user address")) | |
623 | 623 | let bp = bX(aW) | |
624 | 624 | if ((bp == bp)) | |
625 | 625 | then { | |
626 | 626 | let dQ = "empty" | |
627 | 627 | let dR = if ((bE != dQ)) | |
628 | 628 | then { | |
629 | 629 | let dS = valueOrErrorMessage(getString(bN, R(bE)), k(("unsupported lp asset " + bE))) | |
630 | 630 | getIntegerValue(bN, T(dS)) | |
631 | 631 | } | |
632 | 632 | else if (dP) | |
633 | 633 | then 0 | |
634 | 634 | else m(("not readonly mode: unsupported lp asset " + bE)) | |
635 | 635 | let dT = bq(bp, bE) | |
636 | 636 | let dU = bo(bp) | |
637 | 637 | let dV = valueOrElse(getInteger(this, dT), q(this, dU)) | |
638 | 638 | let dN = dD()._2 | |
639 | 639 | let dW = (dN - dV) | |
640 | 640 | if ((0 > dW)) | |
641 | 641 | then m("wrong calculations") | |
642 | 642 | else { | |
643 | 643 | let dX = dv(bE, bM) | |
644 | 644 | let dY = dX._1 | |
645 | 645 | let dZ = dX._2 | |
646 | 646 | let ea = dX._3 | |
647 | 647 | let eb = fraction(dW, dR, d) | |
648 | 648 | let ec = if ((ea == 0)) | |
649 | 649 | then 0 | |
650 | 650 | else fraction(eb, dZ, ea) | |
651 | 651 | let ed = ([IntegerEntry(dT, dN)] ++ dY) | |
652 | 652 | let ee = makeString([toString(dV), toString(dW), toString(dR), toString(dZ), toString(ea)], ":") | |
653 | 653 | $Tuple3(ec, ed, ee) | |
654 | 654 | } | |
655 | 655 | } | |
656 | 656 | else throw("Strict value is not equal to itself.") | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | ||
660 | 660 | func ef (aM,eg) = { | |
661 | 661 | let eh = [1, 3, 6, 12, 24, 48] | |
662 | 662 | if (!(containsElement(eh, eg))) | |
663 | 663 | then m("invalid duration") | |
664 | 664 | else { | |
665 | 665 | let be = (eg * j) | |
666 | 666 | let ei = toBase58String(az) | |
667 | 667 | if ((size(aM.payments) != 1)) | |
668 | 668 | then m("invalid payment - exact one payment must be attached") | |
669 | 669 | else { | |
670 | 670 | let cB = aM.payments[0] | |
671 | 671 | let ej = cB.amount | |
672 | 672 | if ((az != value(cB.assetId))) | |
673 | 673 | then m((("invalid asset is in payment - " + ei) + " is expected")) | |
674 | 674 | else { | |
675 | 675 | let ek = bh() | |
676 | 676 | let aW = aM.caller | |
677 | 677 | let bM = toString(aW) | |
678 | 678 | let el = isDefined(getString(bi(bM))) | |
679 | 679 | let em = if (el) | |
680 | 680 | then value(getString(bi(bM))) | |
681 | 681 | else toString(t(this, ek)) | |
682 | 682 | let bp = parseIntValue(em) | |
683 | 683 | let ci = height | |
684 | 684 | if (if ((aA > ej)) | |
685 | 685 | then (aW != bR) | |
686 | 686 | else false) | |
687 | 687 | then m(("amount is less then minLockAmount=" + toString(aA))) | |
688 | 688 | else if ((aB > be)) | |
689 | 689 | then m(("passed duration is less then minLockDuration=" + toString(aB))) | |
690 | 690 | else if ((be > aC)) | |
691 | 691 | then m(("passed duration is greater then maxLockDuration=" + toString(aC))) | |
692 | 692 | else { | |
693 | 693 | let en = fraction(be, c, aC) | |
694 | 694 | let eo = fraction(ej, en, c) | |
695 | 695 | let ep = bY() | |
696 | 696 | let dU = bo(bp) | |
697 | 697 | let dN = dD()._2 | |
698 | 698 | let eq = cC(aW) | |
699 | 699 | let er = reentrantInvoke(bQ, "refreshUserReward", [aW.bytes], nil) | |
700 | 700 | if ((er == er)) | |
701 | 701 | then { | |
702 | 702 | let es = if (el) | |
703 | 703 | then nil | |
704 | 704 | else [IntegerEntry(ek, (bp + 1)), StringEntry(bi(bM), em), StringEntry(bj(em), bM)] | |
705 | 705 | $Tuple2(((((es ++ cy(aW, aM.transactionId, ej, ci, be, eo, 0)) ++ cl(ej, be, 1, if (el) | |
706 | 706 | then 0 | |
707 | 707 | else 1)) :+ cf("lock", bM, ej, ci, be, eo, aM)) ++ [IntegerEntry(dU, dN), IntegerEntry(bw(), (ep + eo)), IntegerEntry(ba(aW), (eq + eo))]), eo) | |
708 | 708 | } | |
709 | 709 | else throw("Strict value is not equal to itself.") | |
710 | 710 | } | |
711 | 711 | } | |
712 | 712 | } | |
713 | 713 | } | |
714 | 714 | } | |
715 | 715 | ||
716 | 716 | ||
717 | + | func et (aW,eu) = { | |
718 | + | let ev = aZ(aW, eu) | |
719 | + | let ew = parseIntValue(ev[aP]) | |
720 | + | let ci = parseIntValue(ev[aQ]) | |
721 | + | let ex = parseIntValue(ev[aR]) | |
722 | + | let ey = (ci + ex) | |
723 | + | let bg = parseIntValue(ev[aU]) | |
724 | + | let bf = parseIntValue(ev[aT]) | |
725 | + | let ez = ((height - ci) / i) | |
726 | + | let eA = fraction(toBigInt(ez), (toBigInt((8 * i)) * h), toBigInt(ex)) | |
727 | + | let eB = if ((height > ey)) | |
728 | + | then (ew - bg) | |
729 | + | else toInt(fraction(toBigInt(ew), (h - pow(toBigInt(5), 1, eA, f, f, DOWN)), h)) | |
730 | + | eB | |
731 | + | } | |
732 | + | ||
733 | + | ||
717 | 734 | @Callable(aM) | |
718 | - | func constructor ( | |
719 | - | let | |
720 | - | if (( | |
721 | - | then ([IntegerEntry(bh(), 0), StringEntry(aw(), aF( | |
735 | + | func constructor (eC,eD,aA,eE,eF,aD) = { | |
736 | + | let eG = aL(aM) | |
737 | + | if ((eG == eG)) | |
738 | + | then ([IntegerEntry(bh(), 0), StringEntry(aw(), aF(eD, aA, eE, eF, aD)), StringEntry(E(), eC)] ++ cl(0, 0, 0, 0)) | |
722 | 739 | else throw("Strict value is not equal to itself.") | |
723 | 740 | } | |
724 | 741 | ||
725 | 742 | ||
726 | 743 | ||
727 | 744 | @Callable(aM) | |
728 | - | func lockRef (be, | |
729 | - | let | |
730 | - | let | |
731 | - | let eo = | |
732 | - | let | |
733 | - | let | |
745 | + | func lockRef (be,eH,eI) = { | |
746 | + | let eJ = ef(aM, be) | |
747 | + | let eK = eJ._1 | |
748 | + | let eo = eJ._2 | |
749 | + | let eL = toString(aM.caller) | |
750 | + | let eM = if (if ((eH == "")) | |
734 | 751 | then true | |
735 | - | else ( | |
752 | + | else (eI == base58'')) | |
736 | 753 | then unit | |
737 | - | else invoke(A, "createPair", [D, | |
738 | - | if (( | |
754 | + | else invoke(A, "createPair", [D, eH, eL, eI], nil) | |
755 | + | if ((eM == eM)) | |
739 | 756 | then { | |
740 | - | let | |
741 | - | if (( | |
742 | - | then $Tuple2( | |
757 | + | let eN = invoke(aD, "updateReferralActivity", [toString(aM.caller), eo], nil) | |
758 | + | if ((eN == eN)) | |
759 | + | then $Tuple2(eK, unit) | |
743 | 760 | else throw("Strict value is not equal to itself.") | |
744 | 761 | } | |
745 | 762 | else throw("Strict value is not equal to itself.") | |
746 | 763 | } | |
747 | 764 | ||
748 | 765 | ||
749 | 766 | ||
750 | 767 | @Callable(aM) | |
751 | 768 | func lock (be) = { | |
752 | - | let | |
753 | - | let | |
754 | - | let eo = | |
755 | - | let | |
756 | - | if (( | |
757 | - | then $Tuple2( | |
769 | + | let eO = ef(aM, be) | |
770 | + | let eK = eO._1 | |
771 | + | let eo = eO._2 | |
772 | + | let eN = invoke(aD, "updateReferralActivity", [toString(aM.caller), eo], nil) | |
773 | + | if ((eN == eN)) | |
774 | + | then $Tuple2(eK, unit) | |
758 | 775 | else throw("Strict value is not equal to itself.") | |
759 | 776 | } | |
760 | 777 | ||
761 | 778 | ||
762 | 779 | ||
763 | 780 | @Callable(aM) | |
764 | 781 | func claimWxBoost (bE,bM) = if ((bP != aM.caller)) | |
765 | 782 | then m("permissions denied") | |
766 | 783 | else { | |
767 | - | let | |
768 | - | let | |
769 | - | let ed = | |
770 | - | let ee = | |
771 | - | $Tuple2(ed, [ | |
784 | + | let eP = dO(bE, bM, false) | |
785 | + | let eQ = eP._1 | |
786 | + | let ed = eP._2 | |
787 | + | let ee = eP._3 | |
788 | + | $Tuple2(ed, [eQ]) | |
772 | 789 | } | |
773 | 790 | ||
774 | 791 | ||
775 | 792 | ||
776 | 793 | @Callable(aM) | |
777 | 794 | func claimWxBoostREADONLY (bE,bM) = { | |
778 | - | let | |
779 | - | let | |
780 | - | let ed = | |
781 | - | let ee = | |
782 | - | $Tuple2(nil, [ | |
795 | + | let eR = dO(bE, bM, true) | |
796 | + | let eQ = eR._1 | |
797 | + | let ed = eR._2 | |
798 | + | let ee = eR._3 | |
799 | + | $Tuple2(nil, [eQ, ee]) | |
783 | 800 | } | |
784 | 801 | ||
785 | 802 | ||
786 | 803 | ||
787 | 804 | @Callable(aM) | |
788 | - | func unlock ( | |
805 | + | func unlock (eS,bc) = { | |
789 | 806 | let aW = aM.caller | |
790 | 807 | let bM = toString(aW) | |
791 | - | let aX = fromBase58String( | |
792 | - | let | |
808 | + | let aX = fromBase58String(eS) | |
809 | + | let ev = aZ(aW, if ((eS == "")) | |
793 | 810 | then unit | |
794 | 811 | else aX) | |
795 | - | let eL = parseIntValue(eK[aP]) | |
796 | - | let ci = parseIntValue(eK[aQ]) | |
797 | - | let eM = parseIntValue(eK[aR]) | |
798 | - | let eN = (ci + eM) | |
799 | - | let bg = parseIntValue(eK[aU]) | |
800 | - | let bf = parseIntValue(eK[aT]) | |
801 | - | let eO = ((height - ci) / i) | |
802 | - | let eP = fraction(toBigInt(eO), (toBigInt((8 * i)) * h), toBigInt(eM)) | |
803 | - | let eQ = if ((height > eN)) | |
804 | - | then (eL - bg) | |
805 | - | else toInt(fraction(toBigInt(eL), (h - pow(toBigInt(5), 1, eP, f, f, DOWN)), h)) | |
806 | - | if ((bc > eQ)) | |
807 | - | then m(("maximum amount to unlock: " + toString(eQ))) | |
812 | + | let ew = parseIntValue(ev[aP]) | |
813 | + | let ci = parseIntValue(ev[aQ]) | |
814 | + | let ex = parseIntValue(ev[aR]) | |
815 | + | let ey = (ci + ex) | |
816 | + | let bg = parseIntValue(ev[aU]) | |
817 | + | let bf = parseIntValue(ev[aT]) | |
818 | + | let ez = ((height - ci) / i) | |
819 | + | let eB = et(aW, if ((eS == "")) | |
820 | + | then unit | |
821 | + | else aX) | |
822 | + | if ((bc > eB)) | |
823 | + | then m(("maximum amount to unlock: " + toString(eB))) | |
808 | 824 | else { | |
809 | - | let | |
810 | - | let | |
811 | - | let | |
812 | - | if (( | |
813 | - | then m(("locked gwx amount: " + toString( | |
814 | - | else if ((0 >= | |
825 | + | let eT = max([bc, fraction((ez * i), ew, aC)]) | |
826 | + | let eU = w((bf - eT), "gwxRemaining") | |
827 | + | let eV = bZ(aW) | |
828 | + | if ((eV > eU)) | |
829 | + | then m(("locked gwx amount: " + toString(eV))) | |
830 | + | else if ((0 >= ew)) | |
815 | 831 | then m("nothing to unlock") | |
816 | 832 | else { | |
817 | 833 | let ep = bY() | |
818 | 834 | let eq = cC(aW) | |
819 | 835 | let er = reentrantInvoke(bQ, "refreshUserReward", [aW.bytes], nil) | |
820 | 836 | if ((er == er)) | |
821 | - | then ((((cy(aW, aX, | |
837 | + | then ((((cy(aW, aX, ew, ci, ex, eU, (bg + bc)) ++ cl(-(bc), 0, 0, 0)) :+ cf("unlock", bM, bc, ci, ex, eT, aM)) :+ ScriptTransfer(aW, bc, az)) ++ [IntegerEntry(bw(), w((ep - eT), "gwxTotal")), IntegerEntry(ba(aW), w((eq - eT), "userGwxAmountTotal"))]) | |
822 | 838 | else throw("Strict value is not equal to itself.") | |
823 | 839 | } | |
824 | 840 | } | |
825 | 841 | } | |
826 | 842 | ||
827 | 843 | ||
828 | 844 | ||
829 | 845 | @Callable(aM) | |
830 | 846 | func gwxUserInfoREADONLY (bM) = { | |
831 | 847 | let aW = valueOrErrorMessage(addressFromString(bM), k("invalid user address")) | |
832 | 848 | let bf = cC(aW) | |
833 | 849 | $Tuple2(nil, [bf]) | |
834 | 850 | } | |
835 | 851 | ||
836 | 852 | ||
837 | 853 | ||
838 | 854 | @Callable(aM) | |
839 | 855 | func userMaxDurationREADONLY (bM) = $Tuple2(nil, $Tuple2("increaseLock", aC)) | |
840 | 856 | ||
841 | 857 | ||
842 | 858 | ||
843 | 859 | @Callable(aM) | |
844 | - | func getUserGwxAmountAtHeightREADONLY (bM, | |
860 | + | func getUserGwxAmountAtHeightREADONLY (bM,eW) = { | |
845 | 861 | let aW = valueOrErrorMessage(addressFromString(bM), k("invalid user address")) | |
846 | 862 | let bf = cC(aW) | |
847 | 863 | $Tuple2(nil, bf) | |
848 | 864 | } | |
849 | 865 | ||
850 | 866 | ||
851 | 867 | ||
852 | 868 | @Callable(aM) | |
853 | 869 | func getUserGwxAmount (bM) = { | |
854 | 870 | let aW = valueOrErrorMessage(addressFromString(bM), k("invalid user address")) | |
855 | 871 | let bf = cC(aW) | |
856 | 872 | $Tuple2(nil, bf) | |
857 | 873 | } | |
858 | 874 | ||
859 | 875 | ||
860 | 876 | ||
861 | 877 | @Callable(aM) | |
862 | 878 | func getGwxTotalREADONLY () = $Tuple2(nil, bY()) | |
863 | 879 | ||
864 | 880 | ||
865 | 881 | ||
866 | 882 | @Callable(aM) | |
867 | 883 | func onBoostEmissionUpdate () = { | |
868 | - | let | |
884 | + | let eG = if ((aM.caller == bO)) | |
869 | 885 | then true | |
870 | 886 | else aL(aM) | |
871 | - | if (( | |
887 | + | if ((eG == eG)) | |
872 | 888 | then dD() | |
873 | 889 | else throw("Strict value is not equal to itself.") | |
874 | 890 | } | |
875 | 891 | ||
876 | 892 | ||
877 | 893 | ||
878 | 894 | @Callable(aM) | |
879 | 895 | func onStakedVoteUpdate (bE,bM,dp) = { | |
880 | - | let | |
896 | + | let eG = if ((aM.caller == bP)) | |
881 | 897 | then true | |
882 | 898 | else aL(aM) | |
883 | - | if (( | |
899 | + | if ((eG == eG)) | |
884 | 900 | then { | |
885 | 901 | let ds = do(bE, bM, dp) | |
886 | 902 | $Tuple2(ds, unit) | |
887 | 903 | } | |
888 | 904 | else throw("Strict value is not equal to itself.") | |
889 | 905 | } | |
890 | 906 | ||
891 | 907 | ||
892 | 908 | ||
893 | 909 | @Callable(aM) | |
894 | 910 | func getVotingResultStakedREADONLY (bE) = $Tuple2(nil, cT(bE)) | |
895 | 911 | ||
896 | 912 | ||
897 | 913 | ||
898 | 914 | @Callable(aM) | |
899 | 915 | func getVotingResultStakedIntegralREADONLY (bE) = $Tuple2(nil, cX(bE)) | |
900 | 916 | ||
901 | 917 | ||
902 | 918 | ||
903 | 919 | @Callable(aM) | |
904 | 920 | func getUserVoteFinalizedREADONLY (bE,bM) = $Tuple2(nil, cM(bE, bM)) | |
905 | 921 | ||
906 | 922 | ||
907 | 923 | ||
908 | 924 | @Callable(aM) | |
909 | 925 | func getUserVoteStakedIntegralREADONLY (bE,bM) = $Tuple2(nil, dh(bE, bM)) | |
910 | 926 | ||
911 | 927 | ||
912 | - | @Verifier( | |
913 | - | func | |
914 | - | let | |
928 | + | @Verifier(eX) | |
929 | + | func eY () = { | |
930 | + | let eZ = { | |
915 | 931 | let aH = aJ() | |
916 | 932 | if ($isInstanceOf(aH, "ByteVector")) | |
917 | 933 | then { | |
918 | 934 | let aO = aH | |
919 | 935 | aO | |
920 | 936 | } | |
921 | 937 | else if ($isInstanceOf(aH, "Unit")) | |
922 | - | then | |
938 | + | then eX.senderPublicKey | |
923 | 939 | else throw("Match error") | |
924 | 940 | } | |
925 | - | sigVerify( | |
941 | + | sigVerify(eX.bodyBytes, eX.proofs[0], eZ) | |
926 | 942 | } | |
927 | 943 |
github/deemru/w8io/169f3d6 118.58 ms ◑