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