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