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