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