tx · 3ci8vhJ7Ka25hGXxocPCTygMu4fhUtmvUvP9kJH5ixqs 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz: -0.02300000 Waves 2023.01.13 11:16 [2402918] smart account 3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz > SELF 0.00000000 Waves
{ "type": 13, "id": "3ci8vhJ7Ka25hGXxocPCTygMu4fhUtmvUvP9kJH5ixqs", "fee": 2300000, "feeAssetId": null, "timestamp": 1673597930684, "version": 1, "sender": "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz", "senderPublicKey": "D28XoueZWsMfm8Y5pa6C5ZFuYoWgre2Wm8tzJANJgMnq", "proofs": [ "24kZukWY5U1qRDmFuKcQBTN1FC3cVgeXGNRuevUeRFX3yhaZWA6tRm1ifXSwhy6H2qFj3vQXJjnduHN6p9mZYPqy" ], "script": "base64:BgL5HwgCEgMKAQgSAwoBCBIDCgEIEgASABIECgIIARIGCgQCAQICEgMKAQgSAwoBCBIFCgMICAQSBgoEARgIGBIECgIYCBIECgIICBIECgIICBIDCgEIEgQKAggIIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiCW9uZUJpZ0ludCIHd3JhcEVyciIDbXNnIgh0aHJvd0VyciIJYXNBbnlMaXN0IgN2YWwiByRtYXRjaDAiCnZhbEFueUx5c3QiBWFzSW50IgZ2YWxJbnQiCGFzU3RyaW5nIgZ2YWxTdHIiDGFzQnl0ZVZlY3RvciIGdmFsQmluIg9nZXRTdHJpbmdPckZhaWwiB2FkZHJlc3MiA2tleSIYZ2V0U3RyaW5nQnlBZGRyZXNzT3JGYWlsIgxnZXRJbnRPclplcm8iD2dldEludE9yRGVmYXVsdCIKZGVmYXVsdFZhbCIMZ2V0SW50T3JGYWlsIhlnZXRCaWdJbnRGcm9tU3RyaW5nT3JaZXJvIhxnZXRCaWdJbnRGcm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IG5vdCBlcXVhbCB0byBpdHNlbGYuAmNsAQ5vbk1vZGlmeVdlaWdodAICYXQCYngDCQECIT0CCAUCY2wGY2FsbGVyBQJhWAkAAgECEnBlcm1pc3Npb25zIGRlbmllZAQCZHkJAQJidwMFAmF0BQJieAAABAJidQgFAmR5Al8xBAJiVwgFAmR5Al8yBAJiWAgFAmR5Al8zBQJiVwECZHoBAmRBAAQCZEIEAW4JAQJjaAADCQABAgUBbgIKQnl0ZVZlY3RvcgQCY24FAW4FAmNuAwkAAQIFAW4CBFVuaXQIBQJkeg9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZHoJYm9keUJ5dGVzCQCRAwIIBQJkegZwcm9vZnMAAAUCZELLf93Z", "chainId": 84, "height": 2402918, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8hoCQUTLyWkkbudVjwmPDjZyHLxz3vVSPGNnJ3yDz1zn Next: 6v1FCkzPnZA5bNR5vN2tLTX7g879PyaZtgbtgmzbFqHh Diff:
Old | New | Differences | |
---|---|---|---|
462 | 462 | let ct = D(this, av(at, as)) | |
463 | 463 | let ce = bU(at, as, bx, 0)._1 | |
464 | 464 | let cu = (ce - ct) | |
465 | - | let cv = if ((cu > g)) | |
466 | - | then invoke(this, "claimWxINTERNAL", [at, as], nil) | |
465 | + | let cv = true | |
466 | + | let cw = if ((cu > g)) | |
467 | + | then invoke(this, "claimWxINTERNAL", [at, as, cv], nil) | |
467 | 468 | else unit | |
468 | - | if (( | |
469 | + | if ((cw == cw)) | |
469 | 470 | then if ((aT > bs)) | |
470 | 471 | then throw(((((((("passed amount=" + toString(aT)) + " is greater than available=") + toString(bs)) + ". lpAssetId=") + at) + ". stakedByUserKEY=") + bY)) | |
471 | 472 | else (([IntegerEntry(bY, (bs - aT)), IntegerEntry(bz, (bA - aT)), ScriptTransfer(cq, aT, aB), aU("unstake", as, at, aT, cl.transactionId)] ++ cr) ++ cs) | |
474 | 475 | ||
475 | 476 | ||
476 | 477 | @Callable(cl) | |
477 | - | func constructor ( | |
478 | - | let | |
479 | - | if (( | |
480 | - | then [StringEntry(L(), | |
478 | + | func constructor (cx) = { | |
479 | + | let cy = cm(cl) | |
480 | + | if ((cy == cy)) | |
481 | + | then [StringEntry(L(), cx)] | |
481 | 482 | else throw("Strict value is not equal to itself.") | |
482 | 483 | } | |
483 | 484 | ||
484 | 485 | ||
485 | 486 | ||
486 | 487 | @Callable(cl) | |
487 | - | func constructorV2 ( | |
488 | - | let | |
488 | + | func constructorV2 (cz) = { | |
489 | + | let cA = [cm(cl), if ((addressFromString(cz) != unit)) | |
489 | 490 | then true | |
490 | 491 | else "invalid voting emission contract address"] | |
491 | - | if (( | |
492 | - | then [StringEntry(M(), | |
492 | + | if ((cA == cA)) | |
493 | + | then [StringEntry(M(), cz)] | |
493 | 494 | else throw("Strict value is not equal to itself.") | |
494 | 495 | } | |
495 | 496 | ||
496 | 497 | ||
497 | 498 | ||
498 | 499 | @Callable(cl) | |
499 | - | func setManager ( | |
500 | - | let | |
501 | - | if (( | |
500 | + | func setManager (cB) = { | |
501 | + | let cy = cm(cl) | |
502 | + | if ((cy == cy)) | |
502 | 503 | then { | |
503 | - | let | |
504 | - | if (( | |
505 | - | then [StringEntry(W(), | |
504 | + | let cC = fromBase58String(cB) | |
505 | + | if ((cC == cC)) | |
506 | + | then [StringEntry(W(), cB)] | |
506 | 507 | else throw("Strict value is not equal to itself.") | |
507 | 508 | } | |
508 | 509 | else throw("Strict value is not equal to itself.") | |
512 | 513 | ||
513 | 514 | @Callable(cl) | |
514 | 515 | func confirmManager () = { | |
515 | - | let | |
516 | - | let | |
516 | + | let cD = ci() | |
517 | + | let cE = if (isDefined(cD)) | |
517 | 518 | then true | |
518 | 519 | else throw("No pending manager") | |
519 | - | if (( | |
520 | + | if ((cE == cE)) | |
520 | 521 | then { | |
521 | - | let | |
522 | + | let cF = if ((cl.callerPublicKey == value(cD))) | |
522 | 523 | then true | |
523 | 524 | else throw("You are not pending manager") | |
524 | - | if (( | |
525 | - | then [StringEntry(V(), toBase58String(value( | |
525 | + | if ((cF == cF)) | |
526 | + | then [StringEntry(V(), toBase58String(value(cD))), DeleteEntry(W())] | |
526 | 527 | else throw("Strict value is not equal to itself.") | |
527 | 528 | } | |
528 | 529 | else throw("Strict value is not equal to itself.") | |
534 | 535 | func stake () = if ((size(cl.payments) != 1)) | |
535 | 536 | then throw("invalid payment - exact one payment must be attached") | |
536 | 537 | else { | |
537 | - | let | |
538 | - | let aB = value( | |
538 | + | let cG = cl.payments[0] | |
539 | + | let aB = value(cG.assetId) | |
539 | 540 | let at = toBase58String(aB) | |
540 | - | let aT = | |
541 | + | let aT = cG.amount | |
541 | 542 | let bx = valueOrErrorMessage(getString(aX, Z(at)), ("unsupported lp asset " + at)) | |
542 | - | let | |
543 | - | let as = if (( | |
543 | + | let cH = toString(cl.caller) | |
544 | + | let as = if ((cH == bx)) | |
544 | 545 | then toString(cl.originCaller) | |
545 | - | else | |
546 | + | else cH | |
546 | 547 | let bY = ar(as, at) | |
547 | 548 | let bz = au(at) | |
548 | 549 | let bs = az(bY) | |
549 | 550 | let bA = az(bz) | |
550 | - | let | |
551 | - | let ce = | |
552 | - | let cr = | |
553 | - | let bT = | |
551 | + | let cI = bU(at, as, bx, aT) | |
552 | + | let ce = cI._1 | |
553 | + | let cr = cI._2 | |
554 | + | let bT = cI._3 | |
554 | 555 | let be = bc(at) | |
555 | 556 | let cs = if (bj(be, as)) | |
556 | 557 | then nil | |
565 | 566 | let aB = fromBase58String(at) | |
566 | 567 | let bx = valueOrErrorMessage(getString(aX, Z(at)), ("unsupported lp asset " + at)) | |
567 | 568 | let cp = addressFromStringValue(bx) | |
568 | - | let | |
569 | - | let | |
570 | - | let aD = if (if (( | |
569 | + | let cJ = valueOrElse(getString(cp, Y()), bx) | |
570 | + | let cH = toString(cl.caller) | |
571 | + | let aD = if (if ((cH == bx)) | |
571 | 572 | then true | |
572 | - | else ( | |
573 | + | else (cH == cJ)) | |
573 | 574 | then cl.originCaller | |
574 | 575 | else cl.caller | |
575 | 576 | let cq = cl.caller | |
582 | 583 | func unstakeINTERNAL (aB,aT,aD,cq) = { | |
583 | 584 | let at = toBase58String(aB) | |
584 | 585 | let cp = addressFromStringValue(valueOrErrorMessage(getString(aX, Z(at)), ("unsupported lp asset " + at))) | |
585 | - | let | |
586 | + | let cy = if ((cl.caller == cp)) | |
586 | 587 | then true | |
587 | 588 | else cj | |
588 | - | if (( | |
589 | + | if ((cy == cy)) | |
589 | 590 | then co(cl, aB, cp, Address(aD), Address(cq), aT) | |
590 | 591 | else throw("Strict value is not equal to itself.") | |
591 | 592 | } | |
595 | 596 | @Callable(cl) | |
596 | 597 | func claimWx (at) = { | |
597 | 598 | let as = toString(cl.caller) | |
598 | - | let cJ = invoke(this, "claimWxINTERNAL", [at, as], nil) | |
599 | - | $Tuple2(nil, cJ) | |
599 | + | let cv = true | |
600 | + | let cK = invoke(this, "claimWxINTERNAL", [at, as, cv], nil) | |
601 | + | $Tuple2(nil, cK) | |
600 | 602 | } | |
601 | 603 | ||
602 | 604 | ||
603 | 605 | ||
604 | 606 | @Callable(cl) | |
605 | - | func claimWxINTERNAL (at,as) = { | |
606 | - | let cx = ck(cl) | |
607 | - | if ((cx == cx)) | |
607 | + | func claimWxDoNotThrow (at) = { | |
608 | + | let as = toString(cl.caller) | |
609 | + | let cv = false | |
610 | + | let cK = invoke(this, "claimWxINTERNAL", [at, as, cv], nil) | |
611 | + | $Tuple2(nil, cK) | |
612 | + | } | |
613 | + | ||
614 | + | ||
615 | + | ||
616 | + | @Callable(cl) | |
617 | + | func claimWxINTERNAL (at,as,cv) = { | |
618 | + | let cy = ck(cl) | |
619 | + | if ((cy == cy)) | |
608 | 620 | then { | |
609 | 621 | let aD = valueOrErrorMessage(addressFromString(as), "claimWxINTERNAL: invalid user address") | |
610 | 622 | let bx = y(aX, ac(at)) | |
611 | - | let cK = av(at, as) | |
612 | - | let cL = ay(at) | |
613 | - | let cM = aw(at, as) | |
614 | - | let cN = ax(at, as) | |
615 | - | let ct = D(this, cK) | |
616 | - | let cO = D(this, cM) | |
623 | + | let cL = av(at, as) | |
624 | + | let cM = ay(at) | |
625 | + | let cN = aw(at, as) | |
626 | + | let cO = ax(at, as) | |
627 | + | let ct = D(this, cL) | |
617 | 628 | let cP = D(this, cN) | |
618 | - | let cQ = D(this, cL) | |
619 | - | let cR = bU(at, as, bx, 0) | |
620 | - | let ce = cR._1 | |
621 | - | let cr = cR._2 | |
622 | - | let bT = cR._3 | |
629 | + | let cQ = D(this, cO) | |
630 | + | let cR = D(this, cM) | |
631 | + | let cS = bU(at, as, bx, 0) | |
632 | + | let ce = cS._1 | |
633 | + | let cr = cS._2 | |
634 | + | let bT = cS._3 | |
623 | 635 | let cu = max([(ce - ct), g]) | |
624 | 636 | if ((g >= cu)) | |
625 | - | then throw("nothing to claim") | |
637 | + | then if (cv) | |
638 | + | then throw("nothing to claim") | |
639 | + | else $Tuple2(nil, 0) | |
626 | 640 | else { | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | if (( | |
641 | + | let cT = max([p(l(invoke(aZ, "claimWxBoost", [at, as], nil))[0]), 0]) | |
642 | + | let cU = cu | |
643 | + | let cV = min([(cU * toBigInt(2)), toBigInt(cT)]) | |
644 | + | let cW = (cU + cV) | |
645 | + | let cX = t(l(invoke(aY, "emit", [toInt(cU)], nil))[0]) | |
646 | + | let cY = l(invoke(aY, "emit", [toInt(cV)], nil)) | |
647 | + | if ((cY == cY)) | |
634 | 648 | then { | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | $Tuple2([StringEntry( | |
649 | + | let cZ = (ct + cu) | |
650 | + | let da = (cP + cU) | |
651 | + | let db = (cP + cU) | |
652 | + | let dc = (cP + cU) | |
653 | + | $Tuple2([StringEntry(cL, toString(cZ)), StringEntry(cN, toString(da)), StringEntry(cO, toString(db)), StringEntry(cM, toString(dc)), ScriptTransfer(aD, toInt(cU), cX), ScriptTransfer(aD, toInt(cV), cX), aU("claim", as, at, toInt(cu), cl.transactionId)], toInt(cW)) | |
640 | 654 | } | |
641 | 655 | else throw("Strict value is not equal to itself.") | |
642 | 656 | } | |
647 | 661 | ||
648 | 662 | ||
649 | 663 | @Callable(cl) | |
650 | - | func claimWxBulkInternalREADONLY ( | |
651 | - | then $Tuple2(nil, | |
664 | + | func claimWxBulkInternalREADONLY (dd,de,as,df) = if ((dd == size(de))) | |
665 | + | then $Tuple2(nil, df) | |
652 | 666 | else { | |
653 | - | let aB = dd | |
654 | - | let | |
655 | - | let | |
656 | - | if ($isInstanceOf( | |
657 | - | then | |
658 | - | else throw(($getType( | |
667 | + | let aB = de[dd] | |
668 | + | let dg = split({ | |
669 | + | let dh = invoke(this, "claimWxREADONLY", [aB, as], nil) | |
670 | + | if ($isInstanceOf(dh, "String")) | |
671 | + | then dh | |
672 | + | else throw(($getType(dh) + " couldn't be cast to String")) | |
659 | 673 | }, e) | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | if ($isInstanceOf( | |
666 | - | then | |
667 | - | else throw(($getType( | |
674 | + | let di = dg[3] | |
675 | + | let dj = dg[4] | |
676 | + | let dk = (df :+ makeString(["%d%d", di, dj], e)) | |
677 | + | let dl = { | |
678 | + | let dh = invoke(this, "claimWxBulkInternalREADONLY", [(dd + 1), de, as, dk], nil) | |
679 | + | if ($isInstanceOf(dh, "List[Any]")) | |
680 | + | then dh | |
681 | + | else throw(($getType(dh) + " couldn't be cast to List[Any]")) | |
668 | 682 | } | |
669 | - | if (( | |
670 | - | then $Tuple2(nil, | |
683 | + | if ((dl == dl)) | |
684 | + | then $Tuple2(nil, dl) | |
671 | 685 | else throw("Strict value is not equal to itself.") | |
672 | 686 | } | |
673 | 687 | ||
674 | 688 | ||
675 | 689 | ||
676 | 690 | @Callable(cl) | |
677 | - | func claimWxBulkREADONLY ( | |
678 | - | let | |
679 | - | $Tuple2(nil, | |
691 | + | func claimWxBulkREADONLY (de,as) = { | |
692 | + | let dk = invoke(this, "claimWxBulkInternalREADONLY", [0, de, as, nil], nil) | |
693 | + | $Tuple2(nil, dk) | |
680 | 694 | } | |
681 | 695 | ||
682 | 696 | ||
685 | 699 | func claimWxREADONLY (at,as) = { | |
686 | 700 | let bY = ar(as, at) | |
687 | 701 | let bz = au(at) | |
688 | - | let | |
702 | + | let cL = av(at, as) | |
689 | 703 | let bs = az(bY) | |
690 | 704 | let bA = az(bz) | |
691 | - | let ct = D(this, | |
705 | + | let ct = D(this, cL) | |
692 | 706 | let bx = y(aX, ac(at)) | |
693 | 707 | let bC = getIntegerValue(aX, ad(bx)) | |
694 | - | let | |
708 | + | let dm = C(aY, am()) | |
695 | 709 | let bD = C(aY, ao()) | |
696 | - | let | |
710 | + | let dn = if ((bD > height)) | |
697 | 711 | then 0 | |
698 | 712 | else (height - bD) | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let ce = | |
703 | - | let cr = | |
704 | - | let bT = | |
713 | + | let do = fraction((dm * dn), bC, f) | |
714 | + | let dp = fraction(do, bs, bA) | |
715 | + | let dq = bU(at, as, bx, 0) | |
716 | + | let ce = dq._1 | |
717 | + | let cr = dq._2 | |
718 | + | let bT = dq._3 | |
705 | 719 | let cu = max([(ce - ct), g]) | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", at, as, toString( | |
720 | + | let dr = l(invoke(aZ, "claimWxBoostREADONLY", [at, as], nil)) | |
721 | + | let cT = max([p(dr[0]), 0]) | |
722 | + | let ds = r(dr[1]) | |
723 | + | let cU = cu | |
724 | + | let cV = min([(cU * toBigInt(2)), toBigInt(cT)]) | |
725 | + | let cW = (cU + cV) | |
726 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", at, as, toString(cW), toString(ct), toString(cU), toString(cV), "soon"], e)) | |
713 | 727 | } | |
714 | 728 | ||
715 | 729 | ||
724 | 738 | ||
725 | 739 | @Callable(cl) | |
726 | 740 | func usersListTraversal (aB) = { | |
727 | - | let | |
741 | + | let cy = if ((toBase58String(cl.caller.bytes) == valueOrElse(getString(this, M()), ""))) | |
728 | 742 | then true | |
729 | 743 | else cm(cl) | |
730 | - | if (( | |
744 | + | if ((cy == cy)) | |
731 | 745 | then { | |
732 | 746 | let be = bc(aB) | |
733 | - | let | |
747 | + | let dt = getString(bb(aB)) | |
734 | 748 | let bk = getString(bd(be)) | |
735 | - | let n = | |
749 | + | let n = dt | |
736 | 750 | if ($isInstanceOf(n, "Unit")) | |
737 | 751 | then { | |
738 | - | let | |
739 | - | if ($isInstanceOf( | |
752 | + | let du = bk | |
753 | + | if ($isInstanceOf(du, "Unit")) | |
740 | 754 | then $Tuple2(nil, false) | |
741 | - | else if ($isInstanceOf( | |
755 | + | else if ($isInstanceOf(du, "String")) | |
742 | 756 | then { | |
743 | - | let | |
744 | - | $Tuple2([StringEntry(bb(aB), | |
757 | + | let dv = du | |
758 | + | $Tuple2([StringEntry(bb(aB), dv)], true) | |
745 | 759 | } | |
746 | 760 | else throw("Match error") | |
747 | 761 | } | |
752 | 766 | let cp = y(aX, ac(aB)) | |
753 | 767 | let ce = bU(aB, aD, cp, 0)._1 | |
754 | 768 | let cu = (ce - ct) | |
755 | - | let cv = if ((cu > g)) | |
756 | - | then invoke(this, "claimWxINTERNAL", [aB, aD], nil) | |
769 | + | let cv = true | |
770 | + | let cw = if ((cu > g)) | |
771 | + | then invoke(this, "claimWxINTERNAL", [aB, aD, cv], nil) | |
757 | 772 | else unit | |
758 | - | if (( | |
773 | + | if ((cw == cw)) | |
759 | 774 | then { | |
760 | - | let | |
761 | - | let | |
762 | - | if ($isInstanceOf( | |
775 | + | let dw = getString(bi(be, aD)) | |
776 | + | let du = dw | |
777 | + | if ($isInstanceOf(du, "Unit")) | |
763 | 778 | then $Tuple2([DeleteEntry(bb(aB))], false) | |
764 | - | else if ($isInstanceOf( | |
779 | + | else if ($isInstanceOf(du, "String")) | |
765 | 780 | then { | |
766 | - | let | |
767 | - | $Tuple2([StringEntry(bb(aB), | |
781 | + | let dx = du | |
782 | + | $Tuple2([StringEntry(bb(aB), dx)], true) | |
768 | 783 | } | |
769 | 784 | else throw("Match error") | |
770 | 785 | } | |
781 | 796 | func onModifyWeight (at,bx) = if ((cl.caller != aX)) | |
782 | 797 | then throw("permissions denied") | |
783 | 798 | else { | |
784 | - | let | |
785 | - | let bu = | |
786 | - | let bW = | |
787 | - | let bX = | |
799 | + | let dy = bw(at, bx, 0) | |
800 | + | let bu = dy._1 | |
801 | + | let bW = dy._2 | |
802 | + | let bX = dy._3 | |
788 | 803 | bW | |
789 | 804 | } | |
790 | 805 | ||
791 | 806 | ||
792 | - | @Verifier( | |
793 | - | func | |
794 | - | let | |
807 | + | @Verifier(dz) | |
808 | + | func dA () = { | |
809 | + | let dB = { | |
795 | 810 | let n = ch() | |
796 | 811 | if ($isInstanceOf(n, "ByteVector")) | |
797 | 812 | then { | |
799 | 814 | cn | |
800 | 815 | } | |
801 | 816 | else if ($isInstanceOf(n, "Unit")) | |
802 | - | then | |
817 | + | then dz.senderPublicKey | |
803 | 818 | else throw("Match error") | |
804 | 819 | } | |
805 | - | sigVerify( | |
820 | + | sigVerify(dz.bodyBytes, dz.proofs[0], dB) | |
806 | 821 | } | |
807 | 822 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(1) | |
19 | 19 | ||
20 | 20 | func i (j) = makeString(["staking.ride:", toString(this), j], " ") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func k (j) = throw(i(j)) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = m | |
28 | 28 | if ($isInstanceOf(n, "List[Any]")) | |
29 | 29 | then { | |
30 | 30 | let o = n | |
31 | 31 | o | |
32 | 32 | } | |
33 | 33 | else throw("fail to cast into List[Any]") | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func p (m) = { | |
38 | 38 | let n = m | |
39 | 39 | if ($isInstanceOf(n, "Int")) | |
40 | 40 | then { | |
41 | 41 | let q = n | |
42 | 42 | q | |
43 | 43 | } | |
44 | 44 | else throw("fail to cast into Int") | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func r (m) = { | |
49 | 49 | let n = m | |
50 | 50 | if ($isInstanceOf(n, "String")) | |
51 | 51 | then { | |
52 | 52 | let s = n | |
53 | 53 | s | |
54 | 54 | } | |
55 | 55 | else throw("fail to cast into Int") | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func t (m) = { | |
60 | 60 | let n = m | |
61 | 61 | if ($isInstanceOf(n, "ByteVector")) | |
62 | 62 | then { | |
63 | 63 | let u = n | |
64 | 64 | u | |
65 | 65 | } | |
66 | 66 | else throw("fail to cast into Int") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func v (w,x) = valueOrErrorMessage(getString(w, x), (("mandatory this." + x) + " is not defined")) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func y (w,x) = valueOrErrorMessage(getString(w, x), (((("mandatory " + toString(w)) + ".") + x) + " is not defined")) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func z (w,x) = valueOrElse(getInteger(w, x), 0) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func A (w,x,B) = valueOrElse(getInteger(w, x), B) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func C (w,x) = valueOrErrorMessage(getInteger(w, x), (("mandatory this." + x) + " is not defined")) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func D (w,x) = value(parseBigInt(valueOrElse(getString(w, x), "0"))) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func E (w,x,B) = { | |
89 | 89 | let n = getString(w, x) | |
90 | 90 | if ($isInstanceOf(n, "String")) | |
91 | 91 | then { | |
92 | 92 | let F = n | |
93 | 93 | value(parseBigInt(F)) | |
94 | 94 | } | |
95 | 95 | else if ($isInstanceOf(n, "Unit")) | |
96 | 96 | then B | |
97 | 97 | else throw("Match error") | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func G (H,I) = fraction(toBigInt(H), d, toBigInt(I)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func J (m,K) = toInt(fraction(m, toBigInt(K), d)) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func L () = "%s%s__config__factoryAddress" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func M () = "%s__votingEmissionContract" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | let N = 1 | |
114 | 114 | ||
115 | 115 | let O = 2 | |
116 | 116 | ||
117 | 117 | let P = 3 | |
118 | 118 | ||
119 | 119 | let Q = 4 | |
120 | 120 | ||
121 | 121 | let R = 5 | |
122 | 122 | ||
123 | 123 | let S = 6 | |
124 | 124 | ||
125 | 125 | let T = 7 | |
126 | 126 | ||
127 | 127 | func U () = "%s__factoryConfig" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func V () = "%s__managerPublicKey" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func W () = "%s__pendingManagerPublicKey" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func X () = "%s__stablePoolAddonAddr" | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func Y () = "%s__addonAddr" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func Z (aa) = makeString(["%s%s%s", aa, "mappings__lpAsset2PoolContract"], e) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func ab () = "%s__lpTokensList" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func ac (aa) = makeString(["%s%s%s", aa, "mappings__lpAsset2PoolContract"], e) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func ad (ae) = makeString(["%s%s", "poolWeight", ae], e) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func af (ag) = split(valueOrElse(getString(ag, ab()), ""), e) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ah (ag) = split(y(ag, U()), e) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ai (aj) = addressFromStringValue(aj[O]) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ak (aj) = addressFromStringValue(aj[R]) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func al (aj) = addressFromStringValue(aj[N]) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func am () = "%s%s__ratePerBlock__current" | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func an () = "%s%s__ratePerBlockMax__current" | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ao () = "%s%s__emission__startBlock" | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func ap () = "%s%s__emission__duration" | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func aq () = "%s%s__emission__endBlock" | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func ar (as,at) = makeString(["%s%s%s__staked", as, at], e) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func au (at) = ("%s%s%s__staked__total__" + at) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func av (at,as) = makeString(["%s%s%s__claimed", as, at], e) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func aw (at,as) = makeString(["%s%s%s__claimedMinReward", as, at], e) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func ax (at,as) = makeString(["%s%s%s__claimedBoostReward", as, at], e) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func ay (at) = makeString(["%s%s%s__claimed__total", at], e) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func az (x) = valueOrElse(getInteger(this, x), 0) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aA (aB) = makeString(["%s%s%s", aB, "total", "bal"], e) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aC (aB,aD) = makeString(["%s%s%s", aB, aD, "bal"], e) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aE (aB) = makeString(["%s%s%s", aB, "total", "balINT"], e) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aF (aB,aD) = makeString(["%s%s%s", aB, aD, "balINT"], e) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aG (aB) = makeString(["%s%s%s", aB, "total", "lastUpd"], e) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aH (aB,aD) = makeString(["%s%s%s", aB, aD, "lastUpd"], e) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aI (aB) = makeString(["%s%s%s%s", aB, "common", "lpInt"], e) | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aJ (aB) = makeString(["%s%s%s%s", aB, "common", "lpIntH"], e) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aK (aB,aD) = makeString(["%s%s%s%s", aB, aD, "lpInt"], e) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aL (aB,aD) = makeString(["%s%s%s%s", aB, aD, "lpIntH"], e) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aM (aB) = makeString(["%s", aB, "wxPerLp"], e) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func aN (aB) = makeString(["%s", aB, "wxPerLpX18"], e) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func aO (aB,aD) = makeString(["%s%s%s%s", aB, aD, "uIntL"], e) | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func aP (aQ,aD,aR) = makeString(["%s%s%s%s__history", aQ, aD, aR], e) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func aS (aD,aB,aQ,aT) = makeString(["%s%s%s%d%d%d", aD, aB, aQ, toString(height), toString(lastBlock.timestamp), toString(aT)], e) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func aU (aQ,aD,aB,aT,aV) = StringEntry(aP(aQ, aD, toBase58String(aV)), aS(aD, aB, aQ, aT)) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | let aW = v(this, L()) | |
254 | 254 | ||
255 | 255 | let aX = addressFromStringValue(aW) | |
256 | 256 | ||
257 | 257 | let aj = ah(aX) | |
258 | 258 | ||
259 | 259 | let aY = ak(aj) | |
260 | 260 | ||
261 | 261 | let aZ = ai(aj) | |
262 | 262 | ||
263 | 263 | let ba = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], e)), i("lp_staking_pools contract address is undefined"))), i("invalid lp_staking_pools contract address")) | |
264 | 264 | ||
265 | 265 | func bb (aB) = makeString(["%s%s", aB, "nextUser"], e) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bc (aB) = makeString(["users", aB], e) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func bd (be) = makeString(["%s%s%s", be, "head"], e) | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bf (be) = makeString(["%s%s%s", be, "size"], e) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func bg (be,bh) = makeString(["%s%s%s%s", be, bh, "prev"], e) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func bi (be,bh) = makeString(["%s%s%s%s", be, bh, "next"], e) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func bj (be,bh) = { | |
284 | 284 | let bk = getString(this, bd(be)) | |
285 | 285 | let bl = getString(this, bg(be, bh)) | |
286 | 286 | let bm = getString(this, bi(be, bh)) | |
287 | 287 | if (if ((bh == valueOrElse(bk, ""))) | |
288 | 288 | then true | |
289 | 289 | else (bl != unit)) | |
290 | 290 | then true | |
291 | 291 | else (bm != unit) | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func bn (be,bh) = { | |
296 | 296 | let bk = getString(this, bd(be)) | |
297 | 297 | let bo = valueOrElse(getInteger(this, bf(be)), 0) | |
298 | 298 | let bp = if (!(bj(be, bh))) | |
299 | 299 | then true | |
300 | 300 | else throw("Node exists") | |
301 | 301 | if ((bp == bp)) | |
302 | 302 | then (([IntegerEntry(bf(be), (bo + 1))] ++ (if ((bk != unit)) | |
303 | 303 | then [StringEntry(bi(be, bh), value(bk)), StringEntry(bg(be, value(bk)), bh)] | |
304 | 304 | else nil)) ++ [StringEntry(bd(be), bh)]) | |
305 | 305 | else throw("Strict value is not equal to itself.") | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func bq (be,bh) = { | |
310 | 310 | let bk = getString(this, bd(be)) | |
311 | 311 | let bo = valueOrElse(getInteger(this, bf(be)), 0) | |
312 | 312 | let bl = getString(this, bg(be, bh)) | |
313 | 313 | let bm = getString(this, bi(be, bh)) | |
314 | 314 | ([IntegerEntry(bf(be), (bo - 1))] ++ (if (if ((bl != unit)) | |
315 | 315 | then (bm != unit) | |
316 | 316 | else false) | |
317 | 317 | then [StringEntry(bi(be, value(bl)), value(bm)), StringEntry(bg(be, value(bm)), value(bl)), DeleteEntry(bg(be, bh)), DeleteEntry(bi(be, bh))] | |
318 | 318 | else if ((bm != unit)) | |
319 | 319 | then [StringEntry(bd(be), value(bm)), DeleteEntry(bi(be, bh)), DeleteEntry(bg(be, value(bm)))] | |
320 | 320 | else if ((bl != unit)) | |
321 | 321 | then [DeleteEntry(bg(be, bh)), DeleteEntry(bi(be, value(bl)))] | |
322 | 322 | else if ((bh == valueOrElse(bk, ""))) | |
323 | 323 | then [DeleteEntry(bd(be))] | |
324 | 324 | else throw(((("invalid node: " + be) + ".") + bh)))) | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func br (bs,bt,bu,bv) = if (if ((bt == g)) | |
329 | 329 | then (bs > g) | |
330 | 330 | else false) | |
331 | 331 | then g | |
332 | 332 | else if ((bs == g)) | |
333 | 333 | then bu | |
334 | 334 | else if (if ((bt > g)) | |
335 | 335 | then (bs > g) | |
336 | 336 | else false) | |
337 | 337 | then value(parseBigInt(v(this, bv))) | |
338 | 338 | else throw("calcWxPerLpIntegralUserLast: unexpected state") | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func bw (at,bx,by) = { | |
342 | 342 | let bz = au(at) | |
343 | 343 | let bA = toBigInt(az(bz)) | |
344 | 344 | let bB = if ((bA == g)) | |
345 | 345 | then h | |
346 | 346 | else bA | |
347 | 347 | let bC = getIntegerValue(aX, ad(bx)) | |
348 | 348 | let bD = C(aY, ao()) | |
349 | 349 | let bE = 1000 | |
350 | 350 | let bF = (C(aY, am()) * bE) | |
351 | 351 | let bG = fraction(bF, bC, (f * 3)) | |
352 | 352 | let bH = aI(at) | |
353 | 353 | let bI = aJ(at) | |
354 | 354 | let bJ = aM(at) | |
355 | 355 | let bK = A(this, bI, bD) | |
356 | 356 | let bL = D(this, bH) | |
357 | 357 | let bM = 0 | |
358 | 358 | let bN = max([(height - bK), 0]) | |
359 | 359 | let bO = if ((bM != 0)) | |
360 | 360 | then toBigInt(bM) | |
361 | 361 | else fraction(toBigInt(bG), toBigInt(b), bB) | |
362 | 362 | let bP = (bA + toBigInt(by)) | |
363 | 363 | let bQ = if ((bP == g)) | |
364 | 364 | then h | |
365 | 365 | else bP | |
366 | 366 | let bu = (bL + (bO * toBigInt(bN))) | |
367 | 367 | let bR = (toBigInt(bG) / bQ) | |
368 | 368 | let bS = height | |
369 | 369 | let bT = makeString([toString(bu), toString(bN), toString(bO), toString(bA), toString(bG), toString(bF), toString(bC)], "::") | |
370 | 370 | $Tuple3(bu, [StringEntry(bH, toString(bu)), IntegerEntry(bI, bS), StringEntry(bJ, toString(bR))], bT) | |
371 | 371 | } | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | func bU (at,as,bx,by) = { | |
375 | 375 | let bV = bw(at, bx, by) | |
376 | 376 | let bu = bV._1 | |
377 | 377 | let bW = bV._2 | |
378 | 378 | let bX = bV._3 | |
379 | 379 | let bE = 1000 | |
380 | 380 | let bY = ar(as, at) | |
381 | 381 | let bs = az(bY) | |
382 | 382 | let bZ = aK(at, as) | |
383 | 383 | let ca = aL(at, as) | |
384 | 384 | let bv = aO(at, as) | |
385 | 385 | let cb = D(this, bZ) | |
386 | 386 | let bt = z(this, ca) | |
387 | 387 | let cc = br(toBigInt(bs), toBigInt(bt), bu, bv) | |
388 | 388 | let cd = (b * bE) | |
389 | 389 | let ce = max([(cb + fraction((bu - cc), toBigInt(bs), toBigInt(cd))), g]) | |
390 | 390 | let cf = bu | |
391 | 391 | let cg = height | |
392 | 392 | let bT = makeString([toString(cb), toString(cc), toString(bs), bX, toString(height)], "::") | |
393 | 393 | $Tuple3(ce, (bW ++ [StringEntry(bZ, toString(ce)), IntegerEntry(ca, cg), StringEntry(bv, toString(cf))]), bT) | |
394 | 394 | } | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | func ch () = { | |
398 | 398 | let n = getString(V()) | |
399 | 399 | if ($isInstanceOf(n, "String")) | |
400 | 400 | then { | |
401 | 401 | let F = n | |
402 | 402 | fromBase58String(F) | |
403 | 403 | } | |
404 | 404 | else if ($isInstanceOf(n, "Unit")) | |
405 | 405 | then unit | |
406 | 406 | else throw("Match error") | |
407 | 407 | } | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | func ci () = { | |
411 | 411 | let n = getString(W()) | |
412 | 412 | if ($isInstanceOf(n, "String")) | |
413 | 413 | then { | |
414 | 414 | let F = n | |
415 | 415 | fromBase58String(F) | |
416 | 416 | } | |
417 | 417 | else if ($isInstanceOf(n, "Unit")) | |
418 | 418 | then unit | |
419 | 419 | else throw("Match error") | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | let cj = throw("Permission denied") | |
424 | 424 | ||
425 | 425 | func ck (cl) = if ((cl.caller == this)) | |
426 | 426 | then true | |
427 | 427 | else cj | |
428 | 428 | ||
429 | 429 | ||
430 | 430 | func cm (cl) = { | |
431 | 431 | let n = ch() | |
432 | 432 | if ($isInstanceOf(n, "ByteVector")) | |
433 | 433 | then { | |
434 | 434 | let cn = n | |
435 | 435 | if ((cl.callerPublicKey == cn)) | |
436 | 436 | then true | |
437 | 437 | else cj | |
438 | 438 | } | |
439 | 439 | else if ($isInstanceOf(n, "Unit")) | |
440 | 440 | then if ((cl.caller == this)) | |
441 | 441 | then true | |
442 | 442 | else cj | |
443 | 443 | else throw("Match error") | |
444 | 444 | } | |
445 | 445 | ||
446 | 446 | ||
447 | 447 | func co (cl,aB,cp,aD,cq,aT) = { | |
448 | 448 | let as = toString(aD) | |
449 | 449 | let at = toBase58String(aB) | |
450 | 450 | let bx = toString(cp) | |
451 | 451 | let bY = ar(as, at) | |
452 | 452 | let bz = au(at) | |
453 | 453 | let bs = az(bY) | |
454 | 454 | let bA = az(bz) | |
455 | 455 | let cr = bU(at, as, bx, -(aT))._2 | |
456 | 456 | let be = bc(at) | |
457 | 457 | let cs = if (if (bj(be, as)) | |
458 | 458 | then (aT == bs) | |
459 | 459 | else false) | |
460 | 460 | then bq(be, as) | |
461 | 461 | else nil | |
462 | 462 | let ct = D(this, av(at, as)) | |
463 | 463 | let ce = bU(at, as, bx, 0)._1 | |
464 | 464 | let cu = (ce - ct) | |
465 | - | let cv = if ((cu > g)) | |
466 | - | then invoke(this, "claimWxINTERNAL", [at, as], nil) | |
465 | + | let cv = true | |
466 | + | let cw = if ((cu > g)) | |
467 | + | then invoke(this, "claimWxINTERNAL", [at, as, cv], nil) | |
467 | 468 | else unit | |
468 | - | if (( | |
469 | + | if ((cw == cw)) | |
469 | 470 | then if ((aT > bs)) | |
470 | 471 | then throw(((((((("passed amount=" + toString(aT)) + " is greater than available=") + toString(bs)) + ". lpAssetId=") + at) + ". stakedByUserKEY=") + bY)) | |
471 | 472 | else (([IntegerEntry(bY, (bs - aT)), IntegerEntry(bz, (bA - aT)), ScriptTransfer(cq, aT, aB), aU("unstake", as, at, aT, cl.transactionId)] ++ cr) ++ cs) | |
472 | 473 | else throw("Strict value is not equal to itself.") | |
473 | 474 | } | |
474 | 475 | ||
475 | 476 | ||
476 | 477 | @Callable(cl) | |
477 | - | func constructor ( | |
478 | - | let | |
479 | - | if (( | |
480 | - | then [StringEntry(L(), | |
478 | + | func constructor (cx) = { | |
479 | + | let cy = cm(cl) | |
480 | + | if ((cy == cy)) | |
481 | + | then [StringEntry(L(), cx)] | |
481 | 482 | else throw("Strict value is not equal to itself.") | |
482 | 483 | } | |
483 | 484 | ||
484 | 485 | ||
485 | 486 | ||
486 | 487 | @Callable(cl) | |
487 | - | func constructorV2 ( | |
488 | - | let | |
488 | + | func constructorV2 (cz) = { | |
489 | + | let cA = [cm(cl), if ((addressFromString(cz) != unit)) | |
489 | 490 | then true | |
490 | 491 | else "invalid voting emission contract address"] | |
491 | - | if (( | |
492 | - | then [StringEntry(M(), | |
492 | + | if ((cA == cA)) | |
493 | + | then [StringEntry(M(), cz)] | |
493 | 494 | else throw("Strict value is not equal to itself.") | |
494 | 495 | } | |
495 | 496 | ||
496 | 497 | ||
497 | 498 | ||
498 | 499 | @Callable(cl) | |
499 | - | func setManager ( | |
500 | - | let | |
501 | - | if (( | |
500 | + | func setManager (cB) = { | |
501 | + | let cy = cm(cl) | |
502 | + | if ((cy == cy)) | |
502 | 503 | then { | |
503 | - | let | |
504 | - | if (( | |
505 | - | then [StringEntry(W(), | |
504 | + | let cC = fromBase58String(cB) | |
505 | + | if ((cC == cC)) | |
506 | + | then [StringEntry(W(), cB)] | |
506 | 507 | else throw("Strict value is not equal to itself.") | |
507 | 508 | } | |
508 | 509 | else throw("Strict value is not equal to itself.") | |
509 | 510 | } | |
510 | 511 | ||
511 | 512 | ||
512 | 513 | ||
513 | 514 | @Callable(cl) | |
514 | 515 | func confirmManager () = { | |
515 | - | let | |
516 | - | let | |
516 | + | let cD = ci() | |
517 | + | let cE = if (isDefined(cD)) | |
517 | 518 | then true | |
518 | 519 | else throw("No pending manager") | |
519 | - | if (( | |
520 | + | if ((cE == cE)) | |
520 | 521 | then { | |
521 | - | let | |
522 | + | let cF = if ((cl.callerPublicKey == value(cD))) | |
522 | 523 | then true | |
523 | 524 | else throw("You are not pending manager") | |
524 | - | if (( | |
525 | - | then [StringEntry(V(), toBase58String(value( | |
525 | + | if ((cF == cF)) | |
526 | + | then [StringEntry(V(), toBase58String(value(cD))), DeleteEntry(W())] | |
526 | 527 | else throw("Strict value is not equal to itself.") | |
527 | 528 | } | |
528 | 529 | else throw("Strict value is not equal to itself.") | |
529 | 530 | } | |
530 | 531 | ||
531 | 532 | ||
532 | 533 | ||
533 | 534 | @Callable(cl) | |
534 | 535 | func stake () = if ((size(cl.payments) != 1)) | |
535 | 536 | then throw("invalid payment - exact one payment must be attached") | |
536 | 537 | else { | |
537 | - | let | |
538 | - | let aB = value( | |
538 | + | let cG = cl.payments[0] | |
539 | + | let aB = value(cG.assetId) | |
539 | 540 | let at = toBase58String(aB) | |
540 | - | let aT = | |
541 | + | let aT = cG.amount | |
541 | 542 | let bx = valueOrErrorMessage(getString(aX, Z(at)), ("unsupported lp asset " + at)) | |
542 | - | let | |
543 | - | let as = if (( | |
543 | + | let cH = toString(cl.caller) | |
544 | + | let as = if ((cH == bx)) | |
544 | 545 | then toString(cl.originCaller) | |
545 | - | else | |
546 | + | else cH | |
546 | 547 | let bY = ar(as, at) | |
547 | 548 | let bz = au(at) | |
548 | 549 | let bs = az(bY) | |
549 | 550 | let bA = az(bz) | |
550 | - | let | |
551 | - | let ce = | |
552 | - | let cr = | |
553 | - | let bT = | |
551 | + | let cI = bU(at, as, bx, aT) | |
552 | + | let ce = cI._1 | |
553 | + | let cr = cI._2 | |
554 | + | let bT = cI._3 | |
554 | 555 | let be = bc(at) | |
555 | 556 | let cs = if (bj(be, as)) | |
556 | 557 | then nil | |
557 | 558 | else bn(be, as) | |
558 | 559 | (([IntegerEntry(bY, (bs + aT)), IntegerEntry(bz, (bA + aT)), aU("stake", as, at, aT, cl.transactionId)] ++ cr) ++ cs) | |
559 | 560 | } | |
560 | 561 | ||
561 | 562 | ||
562 | 563 | ||
563 | 564 | @Callable(cl) | |
564 | 565 | func unstake (at,aT) = { | |
565 | 566 | let aB = fromBase58String(at) | |
566 | 567 | let bx = valueOrErrorMessage(getString(aX, Z(at)), ("unsupported lp asset " + at)) | |
567 | 568 | let cp = addressFromStringValue(bx) | |
568 | - | let | |
569 | - | let | |
570 | - | let aD = if (if (( | |
569 | + | let cJ = valueOrElse(getString(cp, Y()), bx) | |
570 | + | let cH = toString(cl.caller) | |
571 | + | let aD = if (if ((cH == bx)) | |
571 | 572 | then true | |
572 | - | else ( | |
573 | + | else (cH == cJ)) | |
573 | 574 | then cl.originCaller | |
574 | 575 | else cl.caller | |
575 | 576 | let cq = cl.caller | |
576 | 577 | co(cl, aB, cp, aD, cq, aT) | |
577 | 578 | } | |
578 | 579 | ||
579 | 580 | ||
580 | 581 | ||
581 | 582 | @Callable(cl) | |
582 | 583 | func unstakeINTERNAL (aB,aT,aD,cq) = { | |
583 | 584 | let at = toBase58String(aB) | |
584 | 585 | let cp = addressFromStringValue(valueOrErrorMessage(getString(aX, Z(at)), ("unsupported lp asset " + at))) | |
585 | - | let | |
586 | + | let cy = if ((cl.caller == cp)) | |
586 | 587 | then true | |
587 | 588 | else cj | |
588 | - | if (( | |
589 | + | if ((cy == cy)) | |
589 | 590 | then co(cl, aB, cp, Address(aD), Address(cq), aT) | |
590 | 591 | else throw("Strict value is not equal to itself.") | |
591 | 592 | } | |
592 | 593 | ||
593 | 594 | ||
594 | 595 | ||
595 | 596 | @Callable(cl) | |
596 | 597 | func claimWx (at) = { | |
597 | 598 | let as = toString(cl.caller) | |
598 | - | let cJ = invoke(this, "claimWxINTERNAL", [at, as], nil) | |
599 | - | $Tuple2(nil, cJ) | |
599 | + | let cv = true | |
600 | + | let cK = invoke(this, "claimWxINTERNAL", [at, as, cv], nil) | |
601 | + | $Tuple2(nil, cK) | |
600 | 602 | } | |
601 | 603 | ||
602 | 604 | ||
603 | 605 | ||
604 | 606 | @Callable(cl) | |
605 | - | func claimWxINTERNAL (at,as) = { | |
606 | - | let cx = ck(cl) | |
607 | - | if ((cx == cx)) | |
607 | + | func claimWxDoNotThrow (at) = { | |
608 | + | let as = toString(cl.caller) | |
609 | + | let cv = false | |
610 | + | let cK = invoke(this, "claimWxINTERNAL", [at, as, cv], nil) | |
611 | + | $Tuple2(nil, cK) | |
612 | + | } | |
613 | + | ||
614 | + | ||
615 | + | ||
616 | + | @Callable(cl) | |
617 | + | func claimWxINTERNAL (at,as,cv) = { | |
618 | + | let cy = ck(cl) | |
619 | + | if ((cy == cy)) | |
608 | 620 | then { | |
609 | 621 | let aD = valueOrErrorMessage(addressFromString(as), "claimWxINTERNAL: invalid user address") | |
610 | 622 | let bx = y(aX, ac(at)) | |
611 | - | let cK = av(at, as) | |
612 | - | let cL = ay(at) | |
613 | - | let cM = aw(at, as) | |
614 | - | let cN = ax(at, as) | |
615 | - | let ct = D(this, cK) | |
616 | - | let cO = D(this, cM) | |
623 | + | let cL = av(at, as) | |
624 | + | let cM = ay(at) | |
625 | + | let cN = aw(at, as) | |
626 | + | let cO = ax(at, as) | |
627 | + | let ct = D(this, cL) | |
617 | 628 | let cP = D(this, cN) | |
618 | - | let cQ = D(this, cL) | |
619 | - | let cR = bU(at, as, bx, 0) | |
620 | - | let ce = cR._1 | |
621 | - | let cr = cR._2 | |
622 | - | let bT = cR._3 | |
629 | + | let cQ = D(this, cO) | |
630 | + | let cR = D(this, cM) | |
631 | + | let cS = bU(at, as, bx, 0) | |
632 | + | let ce = cS._1 | |
633 | + | let cr = cS._2 | |
634 | + | let bT = cS._3 | |
623 | 635 | let cu = max([(ce - ct), g]) | |
624 | 636 | if ((g >= cu)) | |
625 | - | then throw("nothing to claim") | |
637 | + | then if (cv) | |
638 | + | then throw("nothing to claim") | |
639 | + | else $Tuple2(nil, 0) | |
626 | 640 | else { | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | if (( | |
641 | + | let cT = max([p(l(invoke(aZ, "claimWxBoost", [at, as], nil))[0]), 0]) | |
642 | + | let cU = cu | |
643 | + | let cV = min([(cU * toBigInt(2)), toBigInt(cT)]) | |
644 | + | let cW = (cU + cV) | |
645 | + | let cX = t(l(invoke(aY, "emit", [toInt(cU)], nil))[0]) | |
646 | + | let cY = l(invoke(aY, "emit", [toInt(cV)], nil)) | |
647 | + | if ((cY == cY)) | |
634 | 648 | then { | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | $Tuple2([StringEntry( | |
649 | + | let cZ = (ct + cu) | |
650 | + | let da = (cP + cU) | |
651 | + | let db = (cP + cU) | |
652 | + | let dc = (cP + cU) | |
653 | + | $Tuple2([StringEntry(cL, toString(cZ)), StringEntry(cN, toString(da)), StringEntry(cO, toString(db)), StringEntry(cM, toString(dc)), ScriptTransfer(aD, toInt(cU), cX), ScriptTransfer(aD, toInt(cV), cX), aU("claim", as, at, toInt(cu), cl.transactionId)], toInt(cW)) | |
640 | 654 | } | |
641 | 655 | else throw("Strict value is not equal to itself.") | |
642 | 656 | } | |
643 | 657 | } | |
644 | 658 | else throw("Strict value is not equal to itself.") | |
645 | 659 | } | |
646 | 660 | ||
647 | 661 | ||
648 | 662 | ||
649 | 663 | @Callable(cl) | |
650 | - | func claimWxBulkInternalREADONLY ( | |
651 | - | then $Tuple2(nil, | |
664 | + | func claimWxBulkInternalREADONLY (dd,de,as,df) = if ((dd == size(de))) | |
665 | + | then $Tuple2(nil, df) | |
652 | 666 | else { | |
653 | - | let aB = dd | |
654 | - | let | |
655 | - | let | |
656 | - | if ($isInstanceOf( | |
657 | - | then | |
658 | - | else throw(($getType( | |
667 | + | let aB = de[dd] | |
668 | + | let dg = split({ | |
669 | + | let dh = invoke(this, "claimWxREADONLY", [aB, as], nil) | |
670 | + | if ($isInstanceOf(dh, "String")) | |
671 | + | then dh | |
672 | + | else throw(($getType(dh) + " couldn't be cast to String")) | |
659 | 673 | }, e) | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | if ($isInstanceOf( | |
666 | - | then | |
667 | - | else throw(($getType( | |
674 | + | let di = dg[3] | |
675 | + | let dj = dg[4] | |
676 | + | let dk = (df :+ makeString(["%d%d", di, dj], e)) | |
677 | + | let dl = { | |
678 | + | let dh = invoke(this, "claimWxBulkInternalREADONLY", [(dd + 1), de, as, dk], nil) | |
679 | + | if ($isInstanceOf(dh, "List[Any]")) | |
680 | + | then dh | |
681 | + | else throw(($getType(dh) + " couldn't be cast to List[Any]")) | |
668 | 682 | } | |
669 | - | if (( | |
670 | - | then $Tuple2(nil, | |
683 | + | if ((dl == dl)) | |
684 | + | then $Tuple2(nil, dl) | |
671 | 685 | else throw("Strict value is not equal to itself.") | |
672 | 686 | } | |
673 | 687 | ||
674 | 688 | ||
675 | 689 | ||
676 | 690 | @Callable(cl) | |
677 | - | func claimWxBulkREADONLY ( | |
678 | - | let | |
679 | - | $Tuple2(nil, | |
691 | + | func claimWxBulkREADONLY (de,as) = { | |
692 | + | let dk = invoke(this, "claimWxBulkInternalREADONLY", [0, de, as, nil], nil) | |
693 | + | $Tuple2(nil, dk) | |
680 | 694 | } | |
681 | 695 | ||
682 | 696 | ||
683 | 697 | ||
684 | 698 | @Callable(cl) | |
685 | 699 | func claimWxREADONLY (at,as) = { | |
686 | 700 | let bY = ar(as, at) | |
687 | 701 | let bz = au(at) | |
688 | - | let | |
702 | + | let cL = av(at, as) | |
689 | 703 | let bs = az(bY) | |
690 | 704 | let bA = az(bz) | |
691 | - | let ct = D(this, | |
705 | + | let ct = D(this, cL) | |
692 | 706 | let bx = y(aX, ac(at)) | |
693 | 707 | let bC = getIntegerValue(aX, ad(bx)) | |
694 | - | let | |
708 | + | let dm = C(aY, am()) | |
695 | 709 | let bD = C(aY, ao()) | |
696 | - | let | |
710 | + | let dn = if ((bD > height)) | |
697 | 711 | then 0 | |
698 | 712 | else (height - bD) | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let ce = | |
703 | - | let cr = | |
704 | - | let bT = | |
713 | + | let do = fraction((dm * dn), bC, f) | |
714 | + | let dp = fraction(do, bs, bA) | |
715 | + | let dq = bU(at, as, bx, 0) | |
716 | + | let ce = dq._1 | |
717 | + | let cr = dq._2 | |
718 | + | let bT = dq._3 | |
705 | 719 | let cu = max([(ce - ct), g]) | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", at, as, toString( | |
720 | + | let dr = l(invoke(aZ, "claimWxBoostREADONLY", [at, as], nil)) | |
721 | + | let cT = max([p(dr[0]), 0]) | |
722 | + | let ds = r(dr[1]) | |
723 | + | let cU = cu | |
724 | + | let cV = min([(cU * toBigInt(2)), toBigInt(cT)]) | |
725 | + | let cW = (cU + cV) | |
726 | + | $Tuple2(nil, makeString(["%s%s%d%d%d%d%s", at, as, toString(cW), toString(ct), toString(cU), toString(cV), "soon"], e)) | |
713 | 727 | } | |
714 | 728 | ||
715 | 729 | ||
716 | 730 | ||
717 | 731 | @Callable(cl) | |
718 | 732 | func stakedByUserREADONLY (at,as) = { | |
719 | 733 | let bs = valueOrElse(getInteger(ar(as, at)), 0) | |
720 | 734 | $Tuple2(nil, bs) | |
721 | 735 | } | |
722 | 736 | ||
723 | 737 | ||
724 | 738 | ||
725 | 739 | @Callable(cl) | |
726 | 740 | func usersListTraversal (aB) = { | |
727 | - | let | |
741 | + | let cy = if ((toBase58String(cl.caller.bytes) == valueOrElse(getString(this, M()), ""))) | |
728 | 742 | then true | |
729 | 743 | else cm(cl) | |
730 | - | if (( | |
744 | + | if ((cy == cy)) | |
731 | 745 | then { | |
732 | 746 | let be = bc(aB) | |
733 | - | let | |
747 | + | let dt = getString(bb(aB)) | |
734 | 748 | let bk = getString(bd(be)) | |
735 | - | let n = | |
749 | + | let n = dt | |
736 | 750 | if ($isInstanceOf(n, "Unit")) | |
737 | 751 | then { | |
738 | - | let | |
739 | - | if ($isInstanceOf( | |
752 | + | let du = bk | |
753 | + | if ($isInstanceOf(du, "Unit")) | |
740 | 754 | then $Tuple2(nil, false) | |
741 | - | else if ($isInstanceOf( | |
755 | + | else if ($isInstanceOf(du, "String")) | |
742 | 756 | then { | |
743 | - | let | |
744 | - | $Tuple2([StringEntry(bb(aB), | |
757 | + | let dv = du | |
758 | + | $Tuple2([StringEntry(bb(aB), dv)], true) | |
745 | 759 | } | |
746 | 760 | else throw("Match error") | |
747 | 761 | } | |
748 | 762 | else if ($isInstanceOf(n, "String")) | |
749 | 763 | then { | |
750 | 764 | let aD = n | |
751 | 765 | let ct = D(this, av(aB, aD)) | |
752 | 766 | let cp = y(aX, ac(aB)) | |
753 | 767 | let ce = bU(aB, aD, cp, 0)._1 | |
754 | 768 | let cu = (ce - ct) | |
755 | - | let cv = if ((cu > g)) | |
756 | - | then invoke(this, "claimWxINTERNAL", [aB, aD], nil) | |
769 | + | let cv = true | |
770 | + | let cw = if ((cu > g)) | |
771 | + | then invoke(this, "claimWxINTERNAL", [aB, aD, cv], nil) | |
757 | 772 | else unit | |
758 | - | if (( | |
773 | + | if ((cw == cw)) | |
759 | 774 | then { | |
760 | - | let | |
761 | - | let | |
762 | - | if ($isInstanceOf( | |
775 | + | let dw = getString(bi(be, aD)) | |
776 | + | let du = dw | |
777 | + | if ($isInstanceOf(du, "Unit")) | |
763 | 778 | then $Tuple2([DeleteEntry(bb(aB))], false) | |
764 | - | else if ($isInstanceOf( | |
779 | + | else if ($isInstanceOf(du, "String")) | |
765 | 780 | then { | |
766 | - | let | |
767 | - | $Tuple2([StringEntry(bb(aB), | |
781 | + | let dx = du | |
782 | + | $Tuple2([StringEntry(bb(aB), dx)], true) | |
768 | 783 | } | |
769 | 784 | else throw("Match error") | |
770 | 785 | } | |
771 | 786 | else throw("Strict value is not equal to itself.") | |
772 | 787 | } | |
773 | 788 | else throw("Match error") | |
774 | 789 | } | |
775 | 790 | else throw("Strict value is not equal to itself.") | |
776 | 791 | } | |
777 | 792 | ||
778 | 793 | ||
779 | 794 | ||
780 | 795 | @Callable(cl) | |
781 | 796 | func onModifyWeight (at,bx) = if ((cl.caller != aX)) | |
782 | 797 | then throw("permissions denied") | |
783 | 798 | else { | |
784 | - | let | |
785 | - | let bu = | |
786 | - | let bW = | |
787 | - | let bX = | |
799 | + | let dy = bw(at, bx, 0) | |
800 | + | let bu = dy._1 | |
801 | + | let bW = dy._2 | |
802 | + | let bX = dy._3 | |
788 | 803 | bW | |
789 | 804 | } | |
790 | 805 | ||
791 | 806 | ||
792 | - | @Verifier( | |
793 | - | func | |
794 | - | let | |
807 | + | @Verifier(dz) | |
808 | + | func dA () = { | |
809 | + | let dB = { | |
795 | 810 | let n = ch() | |
796 | 811 | if ($isInstanceOf(n, "ByteVector")) | |
797 | 812 | then { | |
798 | 813 | let cn = n | |
799 | 814 | cn | |
800 | 815 | } | |
801 | 816 | else if ($isInstanceOf(n, "Unit")) | |
802 | - | then | |
817 | + | then dz.senderPublicKey | |
803 | 818 | else throw("Match error") | |
804 | 819 | } | |
805 | - | sigVerify( | |
820 | + | sigVerify(dz.bodyBytes, dz.proofs[0], dB) | |
806 | 821 | } | |
807 | 822 |
github/deemru/w8io/026f985 125.02 ms ◑