tx · 6Ch1twG1dcQbDQGG7KUzv381N6NJFGBYT71XXfd1YobJ 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5: -0.14000000 Waves 2022.10.24 16:06 [2286532] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves
{ "type": 13, "id": "6Ch1twG1dcQbDQGG7KUzv381N6NJFGBYT71XXfd1YobJ", "fee": 14000000, "feeAssetId": null, "timestamp": 1666616791246, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "29SARVVrCf2uwrA4D52DwrdddsC9E1gAiB9U5ZVP1fpoYdjreSYgn2qfRMReiho4kLRadtrkbEZehjg27oVAqsii", "5vdTFRVU8nkBEcyTY7rQRZnyxTZMLNhpKkSB5TCQ7yc5gQF8Sazpmtp5Xb7a9LkjvSav3rzeDWKFRx1meHz7C9y5" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJMAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQISc2hhcmVfYXNzZXRfc3VwcGx5AARrRmVlAgpjb21taXNzaW9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dWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABBNtdWx0aVNpZ25lZEJ5QWRtaW5zBBJhZG1pblB1YktleTFTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTEAAQAABBJhZG1pblB1YktleTJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIFE211bHRpU2lnbmVkQnlBZG1pbnPNrmZr", "height": 2286532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 42cfU4A69AEbP6BDmYmVnkm3ZCn7oG4RCKzYNZCCyHWW Next: 8PTiB77Uppm7wMEjwmh4aYggY3PSChJZNzWw2wPBNpeP Diff:
Old | New | Differences | |
---|---|---|---|
482 | 482 | let accountBalanceA = $t01861118735._3 | |
483 | 483 | let accountBalanceB = $t01861118735._4 | |
484 | 484 | let shareAssetSupply = $t01861118735._5 | |
485 | - | if ((size(pAmounts) != 2)) | |
486 | - | then throw("Two attached assets expected") | |
485 | + | if (if ((size(pAmounts) != 2)) | |
486 | + | then (size(pAmounts) != 3) | |
487 | + | else false) | |
488 | + | then throw("Two or three payments expected") | |
487 | 489 | else if (if ((pmtAssetIdA != assetIdA)) | |
488 | 490 | then true | |
489 | 491 | else (pmtAssetIdB != assetIdB)) | |
493 | 495 | else (balanceB > accountBalanceB)) | |
494 | 496 | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
495 | 497 | else { | |
496 | - | let $ | |
497 | - | let pmtStrAssetIdA = $ | |
498 | - | let pmtAssetNameA = $ | |
499 | - | let pmtDecimalsA = $ | |
500 | - | let $ | |
501 | - | let pmtStrAssetIdB = $ | |
502 | - | let pmtAssetNameB = $ | |
503 | - | let pmtDecimalsB = $ | |
498 | + | let $t01943319510 = getAssetInfo(pmtAssetIdA) | |
499 | + | let pmtStrAssetIdA = $t01943319510._1 | |
500 | + | let pmtAssetNameA = $t01943319510._2 | |
501 | + | let pmtDecimalsA = $t01943319510._3 | |
502 | + | let $t01952719604 = getAssetInfo(pmtAssetIdB) | |
503 | + | let pmtStrAssetIdB = $t01952719604._1 | |
504 | + | let pmtAssetNameB = $t01952719604._2 | |
505 | + | let pmtDecimalsB = $t01952719604._3 | |
504 | 506 | let initial = ((balanceA + balanceB) == 0) | |
505 | - | let $ | |
507 | + | let $t01967920522 = if (initial) | |
506 | 508 | then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, 1) | |
507 | 509 | else { | |
508 | 510 | let ratioShareTokensInA = fraction(scale8, pAmounts[0], balanceA) | |
517 | 519 | $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB) | |
518 | 520 | } | |
519 | 521 | } | |
520 | - | let pmtAmountA = $ | |
521 | - | let pmtAmountB = $ | |
522 | - | let change = $ | |
523 | - | let changeAssetId = $ | |
524 | - | let shareTokenRatio = $ | |
522 | + | let pmtAmountA = $t01967920522._1 | |
523 | + | let pmtAmountB = $t01967920522._2 | |
524 | + | let change = $t01967920522._3 | |
525 | + | let changeAssetId = $t01967920522._4 | |
526 | + | let shareTokenRatio = $t01967920522._5 | |
525 | 527 | let shareTokenToPayAmount = if (initial) | |
526 | 528 | then { | |
527 | 529 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
545 | 547 | then { | |
546 | 548 | let shareTokenST = if (stakeFarming) | |
547 | 549 | then { | |
550 | + | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3)) | |
551 | + | then [AttachedPayment(pAssetIds[2], pAmounts[2])] | |
552 | + | else nil)) | |
548 | 553 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
549 | 554 | if ((reissue == reissue)) | |
550 | 555 | then { | |
551 | - | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], | |
556 | + | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], stPayments) | |
552 | 557 | if ((stake3 == stake3)) | |
553 | 558 | then nil | |
554 | 559 | else throw("Strict value is not equal to itself.") | |
575 | 580 | let virtGetMinAmount = parseIntValue(args[0]) | |
576 | 581 | let stakeFarming = (args[1] == "true") | |
577 | 582 | let lockType = parseIntValue(args[1]) | |
578 | - | let $ | |
579 | - | let strAssetIdA = $ | |
580 | - | let strAssetIdB = $ | |
581 | - | let assetIdA = $ | |
582 | - | let assetIdB = $ | |
583 | - | let shareAssetId = $ | |
584 | - | let $ | |
585 | - | let balanceA = $ | |
586 | - | let balanceB = $ | |
587 | - | let accountBalanceA = $ | |
588 | - | let accountBalanceB = $ | |
589 | - | let shareAssetSupply = $ | |
583 | + | let $t02336323453 = getPoolAssets(i.caller) | |
584 | + | let strAssetIdA = $t02336323453._1 | |
585 | + | let strAssetIdB = $t02336323453._2 | |
586 | + | let assetIdA = $t02336323453._3 | |
587 | + | let assetIdB = $t02336323453._4 | |
588 | + | let shareAssetId = $t02336323453._5 | |
589 | + | let $t02346623590 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
590 | + | let balanceA = $t02346623590._1 | |
591 | + | let balanceB = $t02346623590._2 | |
592 | + | let accountBalanceA = $t02346623590._3 | |
593 | + | let accountBalanceB = $t02346623590._4 | |
594 | + | let shareAssetSupply = $t02346623590._5 | |
590 | 595 | let initial = ((balanceA + balanceB) == 0) | |
591 | - | if ((size(pAmounts) != 1)) | |
592 | - | then throw("One attached assets expected") | |
596 | + | if (if ((size(pAmounts) != 1)) | |
597 | + | then (size(pAmounts) != 2) | |
598 | + | else false) | |
599 | + | then throw("Two or one attached assets expected") | |
593 | 600 | else if (if ((pmtAssetId != assetIdA)) | |
594 | 601 | then (pmtAssetId != assetIdB) | |
595 | 602 | else false) | |
601 | 608 | else (balanceB > accountBalanceB)) | |
602 | 609 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
603 | 610 | else { | |
604 | - | let $ | |
605 | - | let fee = $ | |
606 | - | let govFee = $ | |
607 | - | let $ | |
611 | + | let $t02437524433 = getFeeParams(i.caller, i.originCaller) | |
612 | + | let fee = $t02437524433._1 | |
613 | + | let govFee = $t02437524433._2 | |
614 | + | let $t02445026336 = if ((pmtAssetId == assetIdA)) | |
608 | 615 | then { | |
609 | 616 | let virtPayAmount = calculateVirtGet(pmtAmount, balanceA, fee) | |
610 | - | let $ | |
611 | - | let amountWithoutFee = $ | |
612 | - | let amountWithFee = $ | |
613 | - | let governanceReward = $ | |
617 | + | let $t02472924866 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee) | |
618 | + | let amountWithoutFee = $t02472924866._1 | |
619 | + | let amountWithFee = $t02472924866._2 | |
620 | + | let governanceReward = $t02472924866._3 | |
614 | 621 | let newBalanceA = (balanceA + pmtAmount) | |
615 | 622 | let newBalanceB = (balanceB - governanceReward) | |
616 | 623 | let ratioShareTokensInA = fraction((pmtAmount - virtPayAmount), scale8, newBalanceA) | |
620 | 627 | } | |
621 | 628 | else { | |
622 | 629 | let virtPayAmount = calculateVirtGet(pmtAmount, balanceB, fee) | |
623 | - | let $ | |
624 | - | let amountWithoutFee = $ | |
625 | - | let amountWithFee = $ | |
626 | - | let governanceReward = $ | |
630 | + | let $t02560125738 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee) | |
631 | + | let amountWithoutFee = $t02560125738._1 | |
632 | + | let amountWithFee = $t02560125738._2 | |
633 | + | let governanceReward = $t02560125738._3 | |
627 | 634 | let newBalanceA = (balanceA - governanceReward) | |
628 | 635 | let newBalanceB = (balanceB + pmtAmount) | |
629 | 636 | let ratioShareTokensInA = fraction(amountWithFee, scale8, newBalanceA) | |
631 | 638 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
632 | 639 | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB) | |
633 | 640 | } | |
634 | - | let newBalanceA = $ | |
635 | - | let newBalanceB = $ | |
636 | - | let shareTokenToPayAmount = $ | |
637 | - | let govReward = $ | |
638 | - | let govRewardAsset = $ | |
639 | - | let govRewardAssetStr = $ | |
640 | - | let pmtAssetIdStr = $ | |
641 | + | let newBalanceA = $t02445026336._1 | |
642 | + | let newBalanceB = $t02445026336._2 | |
643 | + | let shareTokenToPayAmount = $t02445026336._3 | |
644 | + | let govReward = $t02445026336._4 | |
645 | + | let govRewardAsset = $t02445026336._5 | |
646 | + | let govRewardAssetStr = $t02445026336._6 | |
647 | + | let pmtAssetIdStr = $t02445026336._7 | |
641 | 648 | if ((shareTokenToPayAmount == 0)) | |
642 | 649 | then throw("Too small amount to replenish") | |
643 | 650 | else { | |
653 | 660 | then { | |
654 | 661 | let shareTokenST = if (stakeFarming) | |
655 | 662 | then { | |
663 | + | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2)) | |
664 | + | then [AttachedPayment(pAssetIds[1], pAmounts[1])] | |
665 | + | else nil)) | |
656 | 666 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
657 | 667 | if ((reissue == reissue)) | |
658 | 668 | then { | |
659 | - | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], | |
669 | + | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], stPayments) | |
660 | 670 | if ((stake3 == stake3)) | |
661 | 671 | then nil | |
662 | 672 | else throw("Strict value is not equal to itself.") | |
678 | 688 | @Callable(i) | |
679 | 689 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
680 | 690 | let caller = Address(callerBytes) | |
681 | - | let $ | |
682 | - | let strAssetIdA = $ | |
683 | - | let strAssetIdB = $ | |
684 | - | let assetIdA = $ | |
685 | - | let assetIdB = $ | |
686 | - | let shareAssetId = $ | |
687 | - | let $ | |
688 | - | let balanceA = $ | |
689 | - | let balanceB = $ | |
690 | - | let accountBalanceA = $ | |
691 | - | let accountBalanceB = $ | |
692 | - | let shareAssetSupply = $ | |
693 | - | let $ | |
691 | + | let $t02838328473 = getPoolAssets(i.caller) | |
692 | + | let strAssetIdA = $t02838328473._1 | |
693 | + | let strAssetIdB = $t02838328473._2 | |
694 | + | let assetIdA = $t02838328473._3 | |
695 | + | let assetIdB = $t02838328473._4 | |
696 | + | let shareAssetId = $t02838328473._5 | |
697 | + | let $t02848628610 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
698 | + | let balanceA = $t02848628610._1 | |
699 | + | let balanceB = $t02848628610._2 | |
700 | + | let accountBalanceA = $t02848628610._3 | |
701 | + | let accountBalanceB = $t02848628610._4 | |
702 | + | let shareAssetSupply = $t02848628610._5 | |
703 | + | let $t02862329031 = if ((size(pAmounts) == 1)) | |
694 | 704 | then { | |
695 | 705 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
696 | 706 | if ((pAsset != shareAssetId)) | |
698 | 708 | else $Tuple2(pAmounts[0], pAsset) | |
699 | 709 | } | |
700 | 710 | else $Tuple2(0, shareAssetId) | |
701 | - | let pmtAmount = $ | |
702 | - | let pmtAssetId = $ | |
711 | + | let pmtAmount = $t02862329031._1 | |
712 | + | let pmtAssetId = $t02862329031._2 | |
703 | 713 | if ((size(pAmounts) > 1)) | |
704 | 714 | then throw("One attached payment expected") | |
705 | 715 | else if (if ((balanceA > accountBalanceA)) | |
742 | 752 | let withdrawAsset = if ((args[0] == "")) | |
743 | 753 | then unit | |
744 | 754 | else fromBase58String(args[0]) | |
745 | - | let $ | |
746 | - | let strAssetIdA = $ | |
747 | - | let strAssetIdB = $ | |
748 | - | let assetIdA = $ | |
749 | - | let assetIdB = $ | |
750 | - | let shareAssetId = $ | |
751 | - | let $ | |
752 | - | let balanceA = $ | |
753 | - | let balanceB = $ | |
754 | - | let accountBalanceA = $ | |
755 | - | let accountBalanceB = $ | |
756 | - | let shareAssetSupply = $ | |
757 | - | let $ | |
755 | + | let $t03123931329 = getPoolAssets(i.caller) | |
756 | + | let strAssetIdA = $t03123931329._1 | |
757 | + | let strAssetIdB = $t03123931329._2 | |
758 | + | let assetIdA = $t03123931329._3 | |
759 | + | let assetIdB = $t03123931329._4 | |
760 | + | let shareAssetId = $t03123931329._5 | |
761 | + | let $t03134231466 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
762 | + | let balanceA = $t03134231466._1 | |
763 | + | let balanceB = $t03134231466._2 | |
764 | + | let accountBalanceA = $t03134231466._3 | |
765 | + | let accountBalanceB = $t03134231466._4 | |
766 | + | let shareAssetSupply = $t03134231466._5 | |
767 | + | let $t03147931859 = if ((size(pAmounts) == 1)) | |
758 | 768 | then { | |
759 | 769 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
760 | 770 | if ((pAsset != shareAssetId)) | |
762 | 772 | else $Tuple2(pAmounts[0], pAsset) | |
763 | 773 | } | |
764 | 774 | else $Tuple2(0, shareAssetId) | |
765 | - | let pmtAmount = $ | |
766 | - | let pmtAssetId = $ | |
775 | + | let pmtAmount = $t03147931859._1 | |
776 | + | let pmtAssetId = $t03147931859._2 | |
767 | 777 | let virtMinToRecive = parseIntValue(args[1]) | |
768 | 778 | if ((size(pAmounts) != 1)) | |
769 | 779 | then throw("One attached payment expected") | |
785 | 795 | let withdrawAmount = (pmtAmount + unlockAmount) | |
786 | 796 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
787 | 797 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
788 | - | let $ | |
789 | - | let fee = $ | |
790 | - | let govFee = $ | |
791 | - | let $ | |
798 | + | let $t03310433162 = getFeeParams(i.caller, i.originCaller) | |
799 | + | let fee = $t03310433162._1 | |
800 | + | let govFee = $t03310433162._2 | |
801 | + | let $t03317933519 = if ((withdrawAsset == assetIdA)) | |
792 | 802 | then calculateFees(amountToPayB, virtMinToRecive, balanceB, balanceA, fee, govFee) | |
793 | 803 | else calculateFees(amountToPayA, virtMinToRecive, balanceA, balanceB, fee, govFee) | |
794 | - | let amountWithoutFee = $ | |
795 | - | let amountWithFee = $ | |
796 | - | let governanceReward = $ | |
797 | - | let $ | |
804 | + | let amountWithoutFee = $t03317933519._1 | |
805 | + | let amountWithFee = $t03317933519._2 | |
806 | + | let governanceReward = $t03317933519._3 | |
807 | + | let $t03353634882 = if ((withdrawAsset == assetIdA)) | |
798 | 808 | then { | |
799 | 809 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
800 | 810 | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil) | |
811 | 821 | then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
812 | 822 | else throw("Strict value is not equal to itself.") | |
813 | 823 | } | |
814 | - | let newBalanceA = $ | |
815 | - | let newBalanceB = $ | |
816 | - | let govRewardAssetId = $ | |
817 | - | let userTransfer = $ | |
824 | + | let newBalanceA = $t03353634882._1 | |
825 | + | let newBalanceB = $t03353634882._2 | |
826 | + | let govRewardAssetId = $t03353634882._3 | |
827 | + | let userTransfer = $t03353634882._4 | |
818 | 828 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil)) | |
819 | 829 | } | |
820 | 830 | else throw("Strict value is not equal to itself.") | |
825 | 835 | ||
826 | 836 | @Callable(i) | |
827 | 837 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
828 | - | let $ | |
829 | - | let strAssetIdA = $ | |
830 | - | let strAssetIdB = $ | |
831 | - | let assetIdA = $ | |
832 | - | let assetIdB = $ | |
833 | - | let $ | |
834 | - | let balanceA = $ | |
835 | - | let balanceB = $ | |
836 | - | let accountBalanceA = $ | |
837 | - | let accountBalanceB = $ | |
838 | + | let $t03560735683 = getPoolAssets(i.caller) | |
839 | + | let strAssetIdA = $t03560735683._1 | |
840 | + | let strAssetIdB = $t03560735683._2 | |
841 | + | let assetIdA = $t03560735683._3 | |
842 | + | let assetIdB = $t03560735683._4 | |
843 | + | let $t03569635802 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
844 | + | let balanceA = $t03569635802._1 | |
845 | + | let balanceB = $t03569635802._2 | |
846 | + | let accountBalanceA = $t03569635802._3 | |
847 | + | let accountBalanceB = $t03569635802._4 | |
838 | 848 | let amountEnrollA = (accountBalanceA - balanceA) | |
839 | 849 | let amountEnrollB = (accountBalanceB - balanceB) | |
840 | 850 | if ((moneyBoxAddress != i.originCaller)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let kVersion = "version" | |
7 | 7 | ||
8 | 8 | let kActive = "active" | |
9 | 9 | ||
10 | 10 | let kAssetIdA = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let kAssetIdB = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let kBalanceA = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let kBalanceB = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let kBalanceInitA = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let kBalanceInitB = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let kShareAssetId = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let kShareAssetSupply = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let kFee = "commission" | |
27 | 27 | ||
28 | 28 | let kCause = "shutdown_cause" | |
29 | 29 | ||
30 | 30 | let kFirstHarvest = "first_harvest" | |
31 | 31 | ||
32 | 32 | let kFirstHarvestHeight = "first_harvest_height" | |
33 | 33 | ||
34 | 34 | let kShareLimit = "share_limit_on_first_harvest" | |
35 | 35 | ||
36 | 36 | let kBasePeriod = "base_period" | |
37 | 37 | ||
38 | 38 | let kPeriodLength = "period_length" | |
39 | 39 | ||
40 | 40 | let kStartHeight = "start_height" | |
41 | 41 | ||
42 | 42 | let kUSDNAddress = "staking_usdnnsbt_address" | |
43 | 43 | ||
44 | 44 | let kEURNAddress = "staking_eurn_address" | |
45 | 45 | ||
46 | 46 | let kLeasingAmount = "leasing_amount" | |
47 | 47 | ||
48 | 48 | let kUSDNAssetId = "usdn_asset_id" | |
49 | 49 | ||
50 | 50 | let kEURNAssetId = "eurn_asset_id" | |
51 | 51 | ||
52 | 52 | let kStakingAssets = "staking_assets" | |
53 | 53 | ||
54 | 54 | let kOracleActive = "active_all_contracts" | |
55 | 55 | ||
56 | 56 | let kOracleActiveExchangers = "active_global_exchangers" | |
57 | 57 | ||
58 | 58 | let kDiscounts = "discounts" | |
59 | 59 | ||
60 | 60 | let kDiscountValues = "discount_values" | |
61 | 61 | ||
62 | 62 | let kUserGSwopInGov = "_GSwop_amount" | |
63 | 63 | ||
64 | 64 | let kUserSwopInGov = "_SWOP_amount" | |
65 | 65 | ||
66 | 66 | let kOraclePool = "pool_" | |
67 | 67 | ||
68 | 68 | let kAdminPubKey1 = "admin_pub_1" | |
69 | 69 | ||
70 | 70 | let kAdminPubKey2 = "admin_pub_2" | |
71 | 71 | ||
72 | 72 | let kAdminPubKey3 = "admin_pub_3" | |
73 | 73 | ||
74 | 74 | let kAdminInvokePubKey = "admin_invoke_pub" | |
75 | 75 | ||
76 | 76 | let kMoneyBoxAddress = "money_box_address" | |
77 | 77 | ||
78 | 78 | let kVotingAddress = "voting_address" | |
79 | 79 | ||
80 | 80 | let kGovAddress = "governance_address" | |
81 | 81 | ||
82 | 82 | let kFarmingAddress = "farming_address" | |
83 | 83 | ||
84 | 84 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
85 | 85 | ||
86 | 86 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
87 | 87 | case string: String => | |
88 | 88 | fromBase58String(string) | |
89 | 89 | case nothing => | |
90 | 90 | throw((key + "is empty")) | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
95 | 95 | ||
96 | 96 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
97 | 97 | ||
98 | 98 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
99 | 99 | ||
100 | 100 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
101 | 101 | ||
102 | 102 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
103 | 103 | ||
104 | 104 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
105 | 105 | ||
106 | 106 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
107 | 107 | ||
108 | 108 | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
109 | 109 | ||
110 | 110 | let USDN = getBase58FromOracle(kUSDNAssetId) | |
111 | 111 | ||
112 | 112 | let EURN = getBase58FromOracle(kEURNAssetId) | |
113 | 113 | ||
114 | 114 | let stakingAssets = getStringValue(oracle, kStakingAssets) | |
115 | 115 | ||
116 | 116 | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
117 | 117 | ||
118 | 118 | let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress)) | |
119 | 119 | ||
120 | 120 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
121 | 121 | ||
122 | 122 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
123 | 123 | ||
124 | 124 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
125 | 125 | ||
126 | 126 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
127 | 127 | ||
128 | 128 | let active = if (getBooleanValue(oracle, kOracleActive)) | |
129 | 129 | then getBooleanValue(oracle, kOracleActiveExchangers) | |
130 | 130 | else false | |
131 | 131 | ||
132 | 132 | let feeScale6 = 1000000 | |
133 | 133 | ||
134 | 134 | let scale8 = 100000000 | |
135 | 135 | ||
136 | 136 | func accountBalance (assetId,pool) = match assetId { | |
137 | 137 | case id: ByteVector => | |
138 | 138 | assetBalance(pool, id) | |
139 | 139 | case waves: Unit => | |
140 | 140 | wavesBalance(pool).available | |
141 | 141 | case _ => | |
142 | 142 | throw("Match error") | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func stakedAmount (assetId,pool) = { | |
147 | 147 | let stakedAmountCalculated = match assetId { | |
148 | 148 | case aId: ByteVector => | |
149 | 149 | if ((aId == USDN)) | |
150 | 150 | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool))) | |
151 | 151 | else if ((aId == EURN)) | |
152 | 152 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool))) | |
153 | 153 | else 0 | |
154 | 154 | case _: Unit => | |
155 | 155 | valueOrElse(getInteger(pool, kLeasingAmount), 0) | |
156 | 156 | case _ => | |
157 | 157 | throw("Match error") | |
158 | 158 | } | |
159 | 159 | match stakedAmountCalculated { | |
160 | 160 | case i: Int => | |
161 | 161 | i | |
162 | 162 | case _ => | |
163 | 163 | 0 | |
164 | 164 | } | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func getAssetInfo (assetId) = match assetId { | |
169 | 169 | case id: String|ByteVector => | |
170 | 170 | let $t040054177 = match id { | |
171 | 171 | case aId: ByteVector => | |
172 | 172 | $Tuple2(toBase58String(aId), aId) | |
173 | 173 | case aId: String => | |
174 | 174 | $Tuple2(aId, fromBase58String(aId)) | |
175 | 175 | case _ => | |
176 | 176 | throw("Match error") | |
177 | 177 | } | |
178 | 178 | let stringId = $t040054177._1 | |
179 | 179 | let bytesId = $t040054177._2 | |
180 | 180 | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
181 | 181 | $Tuple3(stringId, info.name, info.decimals) | |
182 | 182 | case waves: Unit => | |
183 | 183 | $Tuple3("WAVES", "WAVES", 8) | |
184 | 184 | case _ => | |
185 | 185 | throw("Match error") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func calculateFeeDiscount (userAddr) = { | |
193 | 193 | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
194 | 194 | let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), 0) | |
195 | 195 | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
196 | 196 | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
197 | 197 | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
198 | 198 | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
199 | 199 | else false) | |
200 | 200 | then (feeScale6 - parseIntValue(discounts[0])) | |
201 | 201 | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
202 | 202 | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
203 | 203 | else false) | |
204 | 204 | then (feeScale6 - parseIntValue(discounts[1])) | |
205 | 205 | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
206 | 206 | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
207 | 207 | else false) | |
208 | 208 | then (feeScale6 - parseIntValue(discounts[2])) | |
209 | 209 | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
210 | 210 | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
211 | 211 | else false) | |
212 | 212 | then (feeScale6 - parseIntValue(discounts[3])) | |
213 | 213 | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
214 | 214 | then (feeScale6 - parseIntValue(discounts[4])) | |
215 | 215 | else feeScale6 | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGovernance) = { | |
220 | 220 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
221 | 221 | let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6) | |
222 | 222 | let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6) | |
223 | 223 | if ((minAmountToReceive > amountWithFee)) | |
224 | 224 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
225 | 225 | else $Tuple3(amountWithoutFee, amountWithFee, governanceReward) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func calculateVirtGet (pmtAmount,balance,fee) = { | |
230 | 230 | let a = 1 | |
231 | 231 | let b = (((balance + fraction(balance, (feeScale6 - fee), feeScale6)) + fraction(pmtAmount, (feeScale6 - fee), feeScale6)) - pmtAmount) | |
232 | 232 | let c = (-(toBigInt(balance)) * toBigInt(pmtAmount)) | |
233 | 233 | let D = ((toBigInt(b) * toBigInt(b)) - ((toBigInt(4) * toBigInt(a)) * c)) | |
234 | 234 | (toInt(((-(toBigInt(b)) + pow(D, 0, toBigInt(5), 1, 0, DOWN)) / toBigInt(2))) * a) | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func parsePaymentAsset (assetId) = if ((assetId == base58'')) | |
239 | 239 | then unit | |
240 | 240 | else assetId | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func suspendSuspicious (accountBalanceA,accountBalanceB,balanceA,balanceB,assetIdA,assetIdB) = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceA)) + " ") + assetIdA) + ", ") + toString(accountBalanceB)) + " ") + assetIdB) + ". State: ") + toString(balanceA)) + " ") + assetIdA) + ", ") + toString(balanceB)) + " ") + assetIdB)) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func isActive () = if (active) | |
247 | 247 | then unit | |
248 | 248 | else throw("DApp is inactive at this moment") | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
252 | 252 | then unit | |
253 | 253 | else throw("DApp is not registered pool") | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func getPoolBalances (pool,assetIdA,assetIdB) = { | |
257 | 257 | let balanceA = getIntegerValue(pool, kBalanceA) | |
258 | 258 | let balanceB = getIntegerValue(pool, kBalanceB) | |
259 | 259 | let stakedAmountA = stakedAmount(assetIdA, pool) | |
260 | 260 | let stakedAmountB = stakedAmount(assetIdB, pool) | |
261 | 261 | let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA) | |
262 | 262 | let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB) | |
263 | 263 | let shareSupply = getIntegerValue(pool, kShareAssetSupply) | |
264 | 264 | $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func getPoolAssets (pool) = { | |
269 | 269 | let strAssetIdA = getStringValue(pool, kAssetIdA) | |
270 | 270 | let strAssetIdB = getStringValue(pool, kAssetIdB) | |
271 | 271 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
272 | 272 | then unit | |
273 | 273 | else fromBase58String(strAssetIdA) | |
274 | 274 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
275 | 275 | then unit | |
276 | 276 | else fromBase58String(strAssetIdB) | |
277 | 277 | let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId)) | |
278 | 278 | $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func getFeeParams (pool,caller) = { | |
283 | 283 | let feeDiscount = calculateFeeDiscount(caller) | |
284 | 284 | let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING) | |
285 | 285 | let govFee = fraction(fraction(fee, 40, 100), feeDiscount, feeScale6, CEILING) | |
286 | 286 | $Tuple2(fee, govFee) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | @Callable(i) | |
291 | 291 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
292 | 292 | let caller = Address(callerBytes) | |
293 | 293 | let $t089969074 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
294 | 294 | let pmtAmountA = $t089969074._1 | |
295 | 295 | let pmtAssetIdA = $t089969074._2 | |
296 | 296 | let $t090799157 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
297 | 297 | let pmtAmountB = $t090799157._1 | |
298 | 298 | let pmtAssetIdB = $t090799157._2 | |
299 | 299 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
300 | 300 | then throw("Only admin can call this function") | |
301 | 301 | else if (isDefined(getBoolean(caller, kActive))) | |
302 | 302 | then throw("DApp is already active") | |
303 | 303 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
304 | 304 | then throw("Assets must be different") | |
305 | 305 | else { | |
306 | 306 | let $t095279604 = getAssetInfo(pmtAssetIdA) | |
307 | 307 | let pmtStrAssetIdA = $t095279604._1 | |
308 | 308 | let pmtAssetNameA = $t095279604._2 | |
309 | 309 | let pmtDecimalsA = $t095279604._3 | |
310 | 310 | let $t096139690 = getAssetInfo(pmtAssetIdB) | |
311 | 311 | let pmtStrAssetIdB = $t096139690._1 | |
312 | 312 | let pmtAssetNameB = $t096139690._2 | |
313 | 313 | let pmtDecimalsB = $t096139690._3 | |
314 | 314 | let firstHarvest = (args[0] == "true") | |
315 | 315 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
316 | 316 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
317 | 317 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
318 | 318 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
319 | 319 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
320 | 320 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
321 | 321 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
322 | 322 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
323 | 323 | let shareIssueId = calculateAssetId(shareIssue) | |
324 | 324 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
325 | 325 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
326 | 326 | else 0 | |
327 | 327 | if ((stake1 == stake1)) | |
328 | 328 | then { | |
329 | 329 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
330 | 330 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
331 | 331 | else 0 | |
332 | 332 | if ((stake2 == stake2)) | |
333 | 333 | then { | |
334 | 334 | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(caller, shareInitialSupply, shareIssueId)] | |
335 | 335 | if (firstHarvest) | |
336 | 336 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
337 | 337 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
338 | 338 | } | |
339 | 339 | else throw("Strict value is not equal to itself.") | |
340 | 340 | } | |
341 | 341 | else throw("Strict value is not equal to itself.") | |
342 | 342 | } | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | ||
347 | 347 | @Callable(i) | |
348 | 348 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
349 | 349 | let caller = Address(callerBytes) | |
350 | 350 | let $t01193512135 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
351 | 351 | let amtAssetA = $t01193512135._1 | |
352 | 352 | let amtAssetB = $t01193512135._2 | |
353 | 353 | let assetIdAStr = $t01193512135._3 | |
354 | 354 | let assetIdBStr = $t01193512135._4 | |
355 | 355 | let firstHarvest = $t01193512135._5 | |
356 | 356 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
357 | 357 | then throw("Only admin can call this function") | |
358 | 358 | else if (isDefined(getBoolean(caller, kActive))) | |
359 | 359 | then throw("DApp is already active") | |
360 | 360 | else if ((assetIdAStr == assetIdBStr)) | |
361 | 361 | then throw("Assets must be different") | |
362 | 362 | else { | |
363 | 363 | let $t01250512582 = getAssetInfo(assetIdAStr) | |
364 | 364 | let pmtStrAssetIdA = $t01250512582._1 | |
365 | 365 | let pmtAssetNameA = $t01250512582._2 | |
366 | 366 | let pmtDecimalsA = $t01250512582._3 | |
367 | 367 | let $t01259112668 = getAssetInfo(assetIdBStr) | |
368 | 368 | let pmtStrAssetIdB = $t01259112668._1 | |
369 | 369 | let pmtAssetNameB = $t01259112668._2 | |
370 | 370 | let pmtDecimalsB = $t01259112668._3 | |
371 | 371 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
372 | 372 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
373 | 373 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
374 | 374 | let shareInitialSupply = 0 | |
375 | 375 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
376 | 376 | let shareIssueId = calculateAssetId(shareIssue) | |
377 | 377 | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceInitA, amtAssetA), IntegerEntry(kBalanceInitB, amtAssetB), IntegerEntry(kBalanceA, 0), IntegerEntry(kBalanceB, 0), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply)] | |
378 | 378 | if (firstHarvest) | |
379 | 379 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
380 | 380 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
381 | 381 | } | |
382 | 382 | } | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | ||
386 | 386 | @Callable(i) | |
387 | 387 | func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
388 | 388 | then throw("Only admin can call this function") | |
389 | 389 | else { | |
390 | 390 | let shareLimit = parseIntValue(args[0]) | |
391 | 391 | $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil)) | |
392 | 392 | })) | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | ||
396 | 396 | @Callable(i) | |
397 | 397 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
398 | 398 | let caller = Address(callerBytes) | |
399 | 399 | let $t01499315069 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
400 | 400 | let pmtAmount = $t01499315069._1 | |
401 | 401 | let pmtAssetId = $t01499315069._2 | |
402 | 402 | let minAmountToReceive = parseIntValue(args[0]) | |
403 | 403 | let $t01514215218 = getPoolAssets(i.caller) | |
404 | 404 | let strAssetIdA = $t01514215218._1 | |
405 | 405 | let strAssetIdB = $t01514215218._2 | |
406 | 406 | let assetIdA = $t01514215218._3 | |
407 | 407 | let assetIdB = $t01514215218._4 | |
408 | 408 | let $t01523115337 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
409 | 409 | let balanceA = $t01523115337._1 | |
410 | 410 | let balanceB = $t01523115337._2 | |
411 | 411 | let accountBalanceA = $t01523115337._3 | |
412 | 412 | let accountBalanceB = $t01523115337._4 | |
413 | 413 | if (if ((balanceA == 0)) | |
414 | 414 | then true | |
415 | 415 | else (balanceB == 0)) | |
416 | 416 | then throw("Can't exchange with zero balance") | |
417 | 417 | else if ((0 >= minAmountToReceive)) | |
418 | 418 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
419 | 419 | else if ((size(pAmounts) != 1)) | |
420 | 420 | then throw("One attached payment expected") | |
421 | 421 | else if (!(containsElement([assetIdA, assetIdB], pmtAssetId))) | |
422 | 422 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
423 | 423 | else if (if ((balanceA > accountBalanceA)) | |
424 | 424 | then true | |
425 | 425 | else (balanceB > accountBalanceB)) | |
426 | 426 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
427 | 427 | else { | |
428 | 428 | let $t01622216280 = getFeeParams(i.caller, i.originCaller) | |
429 | 429 | let fee = $t01622216280._1 | |
430 | 430 | let govFee = $t01622216280._2 | |
431 | 431 | let $t01629716634 = if ((pmtAssetId == assetIdA)) | |
432 | 432 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee) | |
433 | 433 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee) | |
434 | 434 | let amountWithoutFee = $t01629716634._1 | |
435 | 435 | let amountWithFee = $t01629716634._2 | |
436 | 436 | let governanceReward = $t01629716634._3 | |
437 | 437 | let $t01665216977 = if ((pmtAssetId == assetIdA)) | |
438 | 438 | then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB) | |
439 | 439 | else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA) | |
440 | 440 | let newBalanceA = $t01665216977._1 | |
441 | 441 | let newBalanceB = $t01665216977._2 | |
442 | 442 | let assetIdSend = $t01665216977._3 | |
443 | 443 | let $t01699517245 = if ((pmtAssetId == assetIdA)) | |
444 | 444 | then $Tuple2(pmtAmount, (amountWithFee + governanceReward)) | |
445 | 445 | else $Tuple2((amountWithFee + governanceReward), pmtAmount) | |
446 | 446 | let stakeAmountA = $t01699517245._1 | |
447 | 447 | let stakeAmountB = $t01699517245._2 | |
448 | 448 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
449 | 449 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
450 | 450 | else 0 | |
451 | 451 | if ((stake1 == stake1)) | |
452 | 452 | then { | |
453 | 453 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
454 | 454 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil) | |
455 | 455 | else 0 | |
456 | 456 | if ((stake2 == stake2)) | |
457 | 457 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend)], [amountWithFee, assetIdSend])) | |
458 | 458 | else throw("Strict value is not equal to itself.") | |
459 | 459 | } | |
460 | 460 | else throw("Strict value is not equal to itself.") | |
461 | 461 | } | |
462 | 462 | })) | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | ||
466 | 466 | @Callable(i) | |
467 | 467 | func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
468 | 468 | let caller = Address(callerBytes) | |
469 | 469 | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
470 | 470 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
471 | 471 | let stakeFarming = (args[0] == "true") | |
472 | 472 | let lockType = parseIntValue(args[1]) | |
473 | 473 | let $t01850818598 = getPoolAssets(i.caller) | |
474 | 474 | let strAssetIdA = $t01850818598._1 | |
475 | 475 | let strAssetIdB = $t01850818598._2 | |
476 | 476 | let assetIdA = $t01850818598._3 | |
477 | 477 | let assetIdB = $t01850818598._4 | |
478 | 478 | let shareAssetId = $t01850818598._5 | |
479 | 479 | let $t01861118735 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
480 | 480 | let balanceA = $t01861118735._1 | |
481 | 481 | let balanceB = $t01861118735._2 | |
482 | 482 | let accountBalanceA = $t01861118735._3 | |
483 | 483 | let accountBalanceB = $t01861118735._4 | |
484 | 484 | let shareAssetSupply = $t01861118735._5 | |
485 | - | if ((size(pAmounts) != 2)) | |
486 | - | then throw("Two attached assets expected") | |
485 | + | if (if ((size(pAmounts) != 2)) | |
486 | + | then (size(pAmounts) != 3) | |
487 | + | else false) | |
488 | + | then throw("Two or three payments expected") | |
487 | 489 | else if (if ((pmtAssetIdA != assetIdA)) | |
488 | 490 | then true | |
489 | 491 | else (pmtAssetIdB != assetIdB)) | |
490 | 492 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
491 | 493 | else if (if ((balanceA > accountBalanceA)) | |
492 | 494 | then true | |
493 | 495 | else (balanceB > accountBalanceB)) | |
494 | 496 | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
495 | 497 | else { | |
496 | - | let $ | |
497 | - | let pmtStrAssetIdA = $ | |
498 | - | let pmtAssetNameA = $ | |
499 | - | let pmtDecimalsA = $ | |
500 | - | let $ | |
501 | - | let pmtStrAssetIdB = $ | |
502 | - | let pmtAssetNameB = $ | |
503 | - | let pmtDecimalsB = $ | |
498 | + | let $t01943319510 = getAssetInfo(pmtAssetIdA) | |
499 | + | let pmtStrAssetIdA = $t01943319510._1 | |
500 | + | let pmtAssetNameA = $t01943319510._2 | |
501 | + | let pmtDecimalsA = $t01943319510._3 | |
502 | + | let $t01952719604 = getAssetInfo(pmtAssetIdB) | |
503 | + | let pmtStrAssetIdB = $t01952719604._1 | |
504 | + | let pmtAssetNameB = $t01952719604._2 | |
505 | + | let pmtDecimalsB = $t01952719604._3 | |
504 | 506 | let initial = ((balanceA + balanceB) == 0) | |
505 | - | let $ | |
507 | + | let $t01967920522 = if (initial) | |
506 | 508 | then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, 1) | |
507 | 509 | else { | |
508 | 510 | let ratioShareTokensInA = fraction(scale8, pAmounts[0], balanceA) | |
509 | 511 | let ratioShareTokensInB = fraction(scale8, pAmounts[1], balanceB) | |
510 | 512 | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
511 | 513 | then { | |
512 | 514 | let pmt = fraction(pAmounts[0], balanceB, balanceA) | |
513 | 515 | $Tuple5(pAmounts[0], pmt, (pAmounts[1] - pmt), pmtAssetIdB, ratioShareTokensInA) | |
514 | 516 | } | |
515 | 517 | else { | |
516 | 518 | let pmt = fraction(pAmounts[1], balanceA, balanceB) | |
517 | 519 | $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB) | |
518 | 520 | } | |
519 | 521 | } | |
520 | - | let pmtAmountA = $ | |
521 | - | let pmtAmountB = $ | |
522 | - | let change = $ | |
523 | - | let changeAssetId = $ | |
524 | - | let shareTokenRatio = $ | |
522 | + | let pmtAmountA = $t01967920522._1 | |
523 | + | let pmtAmountB = $t01967920522._2 | |
524 | + | let change = $t01967920522._3 | |
525 | + | let changeAssetId = $t01967920522._4 | |
526 | + | let shareTokenRatio = $t01967920522._5 | |
525 | 527 | let shareTokenToPayAmount = if (initial) | |
526 | 528 | then { | |
527 | 529 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
528 | 530 | fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
529 | 531 | } | |
530 | 532 | else fraction(shareTokenRatio, shareAssetSupply, scale8) | |
531 | 533 | if ((shareTokenToPayAmount == 0)) | |
532 | 534 | then throw("Too small amount to replenish") | |
533 | 535 | else if ((0 > change)) | |
534 | 536 | then throw("Change < 0") | |
535 | 537 | else { | |
536 | 538 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
537 | 539 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
538 | 540 | else 0 | |
539 | 541 | if ((stake1 == stake1)) | |
540 | 542 | then { | |
541 | 543 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
542 | 544 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
543 | 545 | else 0 | |
544 | 546 | if ((stake2 == stake2)) | |
545 | 547 | then { | |
546 | 548 | let shareTokenST = if (stakeFarming) | |
547 | 549 | then { | |
550 | + | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3)) | |
551 | + | then [AttachedPayment(pAssetIds[2], pAmounts[2])] | |
552 | + | else nil)) | |
548 | 553 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
549 | 554 | if ((reissue == reissue)) | |
550 | 555 | then { | |
551 | - | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], | |
556 | + | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], stPayments) | |
552 | 557 | if ((stake3 == stake3)) | |
553 | 558 | then nil | |
554 | 559 | else throw("Strict value is not equal to itself.") | |
555 | 560 | } | |
556 | 561 | else throw("Strict value is not equal to itself.") | |
557 | 562 | } | |
558 | 563 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
559 | 564 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil)) | |
560 | 565 | } | |
561 | 566 | else throw("Strict value is not equal to itself.") | |
562 | 567 | } | |
563 | 568 | else throw("Strict value is not equal to itself.") | |
564 | 569 | } | |
565 | 570 | } | |
566 | 571 | })) | |
567 | 572 | ||
568 | 573 | ||
569 | 574 | ||
570 | 575 | @Callable(i) | |
571 | 576 | func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
572 | 577 | let caller = Address(callerBytes) | |
573 | 578 | let pmtAssetId = parsePaymentAsset(pAssetIds[0]) | |
574 | 579 | let pmtAmount = pAmounts[0] | |
575 | 580 | let virtGetMinAmount = parseIntValue(args[0]) | |
576 | 581 | let stakeFarming = (args[1] == "true") | |
577 | 582 | let lockType = parseIntValue(args[1]) | |
578 | - | let $ | |
579 | - | let strAssetIdA = $ | |
580 | - | let strAssetIdB = $ | |
581 | - | let assetIdA = $ | |
582 | - | let assetIdB = $ | |
583 | - | let shareAssetId = $ | |
584 | - | let $ | |
585 | - | let balanceA = $ | |
586 | - | let balanceB = $ | |
587 | - | let accountBalanceA = $ | |
588 | - | let accountBalanceB = $ | |
589 | - | let shareAssetSupply = $ | |
583 | + | let $t02336323453 = getPoolAssets(i.caller) | |
584 | + | let strAssetIdA = $t02336323453._1 | |
585 | + | let strAssetIdB = $t02336323453._2 | |
586 | + | let assetIdA = $t02336323453._3 | |
587 | + | let assetIdB = $t02336323453._4 | |
588 | + | let shareAssetId = $t02336323453._5 | |
589 | + | let $t02346623590 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
590 | + | let balanceA = $t02346623590._1 | |
591 | + | let balanceB = $t02346623590._2 | |
592 | + | let accountBalanceA = $t02346623590._3 | |
593 | + | let accountBalanceB = $t02346623590._4 | |
594 | + | let shareAssetSupply = $t02346623590._5 | |
590 | 595 | let initial = ((balanceA + balanceB) == 0) | |
591 | - | if ((size(pAmounts) != 1)) | |
592 | - | then throw("One attached assets expected") | |
596 | + | if (if ((size(pAmounts) != 1)) | |
597 | + | then (size(pAmounts) != 2) | |
598 | + | else false) | |
599 | + | then throw("Two or one attached assets expected") | |
593 | 600 | else if (if ((pmtAssetId != assetIdA)) | |
594 | 601 | then (pmtAssetId != assetIdB) | |
595 | 602 | else false) | |
596 | 603 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
597 | 604 | else if (initial) | |
598 | 605 | then throw("For initial exchanger you need to use two tokens") | |
599 | 606 | else if (if ((balanceA > accountBalanceA)) | |
600 | 607 | then true | |
601 | 608 | else (balanceB > accountBalanceB)) | |
602 | 609 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
603 | 610 | else { | |
604 | - | let $ | |
605 | - | let fee = $ | |
606 | - | let govFee = $ | |
607 | - | let $ | |
611 | + | let $t02437524433 = getFeeParams(i.caller, i.originCaller) | |
612 | + | let fee = $t02437524433._1 | |
613 | + | let govFee = $t02437524433._2 | |
614 | + | let $t02445026336 = if ((pmtAssetId == assetIdA)) | |
608 | 615 | then { | |
609 | 616 | let virtPayAmount = calculateVirtGet(pmtAmount, balanceA, fee) | |
610 | - | let $ | |
611 | - | let amountWithoutFee = $ | |
612 | - | let amountWithFee = $ | |
613 | - | let governanceReward = $ | |
617 | + | let $t02472924866 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee) | |
618 | + | let amountWithoutFee = $t02472924866._1 | |
619 | + | let amountWithFee = $t02472924866._2 | |
620 | + | let governanceReward = $t02472924866._3 | |
614 | 621 | let newBalanceA = (balanceA + pmtAmount) | |
615 | 622 | let newBalanceB = (balanceB - governanceReward) | |
616 | 623 | let ratioShareTokensInA = fraction((pmtAmount - virtPayAmount), scale8, newBalanceA) | |
617 | 624 | let ratioShareTokensInB = fraction(amountWithFee, scale8, newBalanceB) | |
618 | 625 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
619 | 626 | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdB, strAssetIdB, strAssetIdA) | |
620 | 627 | } | |
621 | 628 | else { | |
622 | 629 | let virtPayAmount = calculateVirtGet(pmtAmount, balanceB, fee) | |
623 | - | let $ | |
624 | - | let amountWithoutFee = $ | |
625 | - | let amountWithFee = $ | |
626 | - | let governanceReward = $ | |
630 | + | let $t02560125738 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee) | |
631 | + | let amountWithoutFee = $t02560125738._1 | |
632 | + | let amountWithFee = $t02560125738._2 | |
633 | + | let governanceReward = $t02560125738._3 | |
627 | 634 | let newBalanceA = (balanceA - governanceReward) | |
628 | 635 | let newBalanceB = (balanceB + pmtAmount) | |
629 | 636 | let ratioShareTokensInA = fraction(amountWithFee, scale8, newBalanceA) | |
630 | 637 | let ratioShareTokensInB = fraction((pmtAmount - virtPayAmount), scale8, newBalanceB) | |
631 | 638 | let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8) | |
632 | 639 | $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB) | |
633 | 640 | } | |
634 | - | let newBalanceA = $ | |
635 | - | let newBalanceB = $ | |
636 | - | let shareTokenToPayAmount = $ | |
637 | - | let govReward = $ | |
638 | - | let govRewardAsset = $ | |
639 | - | let govRewardAssetStr = $ | |
640 | - | let pmtAssetIdStr = $ | |
641 | + | let newBalanceA = $t02445026336._1 | |
642 | + | let newBalanceB = $t02445026336._2 | |
643 | + | let shareTokenToPayAmount = $t02445026336._3 | |
644 | + | let govReward = $t02445026336._4 | |
645 | + | let govRewardAsset = $t02445026336._5 | |
646 | + | let govRewardAssetStr = $t02445026336._6 | |
647 | + | let pmtAssetIdStr = $t02445026336._7 | |
641 | 648 | if ((shareTokenToPayAmount == 0)) | |
642 | 649 | then throw("Too small amount to replenish") | |
643 | 650 | else { | |
644 | 651 | let stake1 = if (contains(stakingAssets, pmtAssetIdStr)) | |
645 | 652 | then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil) | |
646 | 653 | else 0 | |
647 | 654 | if ((stake1 == stake1)) | |
648 | 655 | then { | |
649 | 656 | let stake2 = if (contains(stakingAssets, govRewardAssetStr)) | |
650 | 657 | then invoke(i.caller, "stakeUnstake", [false, govReward, govRewardAssetStr], nil) | |
651 | 658 | else 0 | |
652 | 659 | if ((stake2 == stake2)) | |
653 | 660 | then { | |
654 | 661 | let shareTokenST = if (stakeFarming) | |
655 | 662 | then { | |
663 | + | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2)) | |
664 | + | then [AttachedPayment(pAssetIds[1], pAmounts[1])] | |
665 | + | else nil)) | |
656 | 666 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
657 | 667 | if ((reissue == reissue)) | |
658 | 668 | then { | |
659 | - | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], | |
669 | + | let stake3 = invoke(farmingAddress, "lockShareTokens", [toString(i.caller), lockType], stPayments) | |
660 | 670 | if ((stake3 == stake3)) | |
661 | 671 | then nil | |
662 | 672 | else throw("Strict value is not equal to itself.") | |
663 | 673 | } | |
664 | 674 | else throw("Strict value is not equal to itself.") | |
665 | 675 | } | |
666 | 676 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
667 | 677 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset)] ++ shareTokenST), nil)) | |
668 | 678 | } | |
669 | 679 | else throw("Strict value is not equal to itself.") | |
670 | 680 | } | |
671 | 681 | else throw("Strict value is not equal to itself.") | |
672 | 682 | } | |
673 | 683 | } | |
674 | 684 | })) | |
675 | 685 | ||
676 | 686 | ||
677 | 687 | ||
678 | 688 | @Callable(i) | |
679 | 689 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
680 | 690 | let caller = Address(callerBytes) | |
681 | - | let $ | |
682 | - | let strAssetIdA = $ | |
683 | - | let strAssetIdB = $ | |
684 | - | let assetIdA = $ | |
685 | - | let assetIdB = $ | |
686 | - | let shareAssetId = $ | |
687 | - | let $ | |
688 | - | let balanceA = $ | |
689 | - | let balanceB = $ | |
690 | - | let accountBalanceA = $ | |
691 | - | let accountBalanceB = $ | |
692 | - | let shareAssetSupply = $ | |
693 | - | let $ | |
691 | + | let $t02838328473 = getPoolAssets(i.caller) | |
692 | + | let strAssetIdA = $t02838328473._1 | |
693 | + | let strAssetIdB = $t02838328473._2 | |
694 | + | let assetIdA = $t02838328473._3 | |
695 | + | let assetIdB = $t02838328473._4 | |
696 | + | let shareAssetId = $t02838328473._5 | |
697 | + | let $t02848628610 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
698 | + | let balanceA = $t02848628610._1 | |
699 | + | let balanceB = $t02848628610._2 | |
700 | + | let accountBalanceA = $t02848628610._3 | |
701 | + | let accountBalanceB = $t02848628610._4 | |
702 | + | let shareAssetSupply = $t02848628610._5 | |
703 | + | let $t02862329031 = if ((size(pAmounts) == 1)) | |
694 | 704 | then { | |
695 | 705 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
696 | 706 | if ((pAsset != shareAssetId)) | |
697 | 707 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
698 | 708 | else $Tuple2(pAmounts[0], pAsset) | |
699 | 709 | } | |
700 | 710 | else $Tuple2(0, shareAssetId) | |
701 | - | let pmtAmount = $ | |
702 | - | let pmtAssetId = $ | |
711 | + | let pmtAmount = $t02862329031._1 | |
712 | + | let pmtAssetId = $t02862329031._2 | |
703 | 713 | if ((size(pAmounts) > 1)) | |
704 | 714 | then throw("One attached payment expected") | |
705 | 715 | else if (if ((balanceA > accountBalanceA)) | |
706 | 716 | then true | |
707 | 717 | else (balanceB > accountBalanceB)) | |
708 | 718 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
709 | 719 | else { | |
710 | 720 | let unlockAmount = parseIntValue(valueOrElse(args[0], "0")) | |
711 | 721 | let unlock = if ((unlockAmount > 0)) | |
712 | 722 | then invoke(farmingAddress, "withdrawShareTokens", [toString(i.caller), unlockAmount], nil) | |
713 | 723 | else 0 | |
714 | 724 | if ((unlock == unlock)) | |
715 | 725 | then { | |
716 | 726 | let withdrawAmount = (pmtAmount + unlockAmount) | |
717 | 727 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
718 | 728 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
719 | 729 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
720 | 730 | then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
721 | 731 | else 0 | |
722 | 732 | if ((stake1 == stake1)) | |
723 | 733 | then { | |
724 | 734 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
725 | 735 | then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
726 | 736 | else 0 | |
727 | 737 | if ((stake2 == stake2)) | |
728 | 738 | then $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2([IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(caller, amountToPayA, assetIdA), ScriptTransfer(caller, amountToPayB, assetIdB)], nil)) | |
729 | 739 | else throw("Strict value is not equal to itself.") | |
730 | 740 | } | |
731 | 741 | else throw("Strict value is not equal to itself.") | |
732 | 742 | } | |
733 | 743 | else throw("Strict value is not equal to itself.") | |
734 | 744 | } | |
735 | 745 | })) | |
736 | 746 | ||
737 | 747 | ||
738 | 748 | ||
739 | 749 | @Callable(i) | |
740 | 750 | func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
741 | 751 | let caller = Address(callerBytes) | |
742 | 752 | let withdrawAsset = if ((args[0] == "")) | |
743 | 753 | then unit | |
744 | 754 | else fromBase58String(args[0]) | |
745 | - | let $ | |
746 | - | let strAssetIdA = $ | |
747 | - | let strAssetIdB = $ | |
748 | - | let assetIdA = $ | |
749 | - | let assetIdB = $ | |
750 | - | let shareAssetId = $ | |
751 | - | let $ | |
752 | - | let balanceA = $ | |
753 | - | let balanceB = $ | |
754 | - | let accountBalanceA = $ | |
755 | - | let accountBalanceB = $ | |
756 | - | let shareAssetSupply = $ | |
757 | - | let $ | |
755 | + | let $t03123931329 = getPoolAssets(i.caller) | |
756 | + | let strAssetIdA = $t03123931329._1 | |
757 | + | let strAssetIdB = $t03123931329._2 | |
758 | + | let assetIdA = $t03123931329._3 | |
759 | + | let assetIdB = $t03123931329._4 | |
760 | + | let shareAssetId = $t03123931329._5 | |
761 | + | let $t03134231466 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
762 | + | let balanceA = $t03134231466._1 | |
763 | + | let balanceB = $t03134231466._2 | |
764 | + | let accountBalanceA = $t03134231466._3 | |
765 | + | let accountBalanceB = $t03134231466._4 | |
766 | + | let shareAssetSupply = $t03134231466._5 | |
767 | + | let $t03147931859 = if ((size(pAmounts) == 1)) | |
758 | 768 | then { | |
759 | 769 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
760 | 770 | if ((pAsset != shareAssetId)) | |
761 | 771 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
762 | 772 | else $Tuple2(pAmounts[0], pAsset) | |
763 | 773 | } | |
764 | 774 | else $Tuple2(0, shareAssetId) | |
765 | - | let pmtAmount = $ | |
766 | - | let pmtAssetId = $ | |
775 | + | let pmtAmount = $t03147931859._1 | |
776 | + | let pmtAssetId = $t03147931859._2 | |
767 | 777 | let virtMinToRecive = parseIntValue(args[1]) | |
768 | 778 | if ((size(pAmounts) != 1)) | |
769 | 779 | then throw("One attached payment expected") | |
770 | 780 | else if ((pmtAssetId != shareAssetId)) | |
771 | 781 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
772 | 782 | else if (!(containsElement([assetIdA, assetIdB], withdrawAsset))) | |
773 | 783 | then throw("Incorrect withdraw asset.") | |
774 | 784 | else if (if ((balanceA > accountBalanceA)) | |
775 | 785 | then true | |
776 | 786 | else (balanceB > accountBalanceB)) | |
777 | 787 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
778 | 788 | else { | |
779 | 789 | let unlockAmount = parseIntValue(valueOrElse(args[2], "0")) | |
780 | 790 | let unlock = if ((unlockAmount > 0)) | |
781 | 791 | then invoke(farmingAddress, "withdrawShareTokens", [toString(i.caller), unlockAmount], nil) | |
782 | 792 | else 0 | |
783 | 793 | if ((unlock == unlock)) | |
784 | 794 | then { | |
785 | 795 | let withdrawAmount = (pmtAmount + unlockAmount) | |
786 | 796 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
787 | 797 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
788 | - | let $ | |
789 | - | let fee = $ | |
790 | - | let govFee = $ | |
791 | - | let $ | |
798 | + | let $t03310433162 = getFeeParams(i.caller, i.originCaller) | |
799 | + | let fee = $t03310433162._1 | |
800 | + | let govFee = $t03310433162._2 | |
801 | + | let $t03317933519 = if ((withdrawAsset == assetIdA)) | |
792 | 802 | then calculateFees(amountToPayB, virtMinToRecive, balanceB, balanceA, fee, govFee) | |
793 | 803 | else calculateFees(amountToPayA, virtMinToRecive, balanceA, balanceB, fee, govFee) | |
794 | - | let amountWithoutFee = $ | |
795 | - | let amountWithFee = $ | |
796 | - | let governanceReward = $ | |
797 | - | let $ | |
804 | + | let amountWithoutFee = $t03317933519._1 | |
805 | + | let amountWithFee = $t03317933519._2 | |
806 | + | let governanceReward = $t03317933519._3 | |
807 | + | let $t03353634882 = if ((withdrawAsset == assetIdA)) | |
798 | 808 | then { | |
799 | 809 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
800 | 810 | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil) | |
801 | 811 | else 0 | |
802 | 812 | if ((unstake == unstake)) | |
803 | 813 | then $Tuple4((((balanceA - amountToPayA) - amountWithFee) - governanceReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)]) | |
804 | 814 | else throw("Strict value is not equal to itself.") | |
805 | 815 | } | |
806 | 816 | else { | |
807 | 817 | let unstake = if (contains(stakingAssets, strAssetIdB)) | |
808 | 818 | then invoke(i.caller, "stakeUnstake", [false, ((amountToPayB + amountWithFee) + governanceReward), strAssetIdB], nil) | |
809 | 819 | else 0 | |
810 | 820 | if ((unstake == unstake)) | |
811 | 821 | then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
812 | 822 | else throw("Strict value is not equal to itself.") | |
813 | 823 | } | |
814 | - | let newBalanceA = $ | |
815 | - | let newBalanceB = $ | |
816 | - | let govRewardAssetId = $ | |
817 | - | let userTransfer = $ | |
824 | + | let newBalanceA = $t03353634882._1 | |
825 | + | let newBalanceB = $t03353634882._2 | |
826 | + | let govRewardAssetId = $t03353634882._3 | |
827 | + | let userTransfer = $t03353634882._4 | |
818 | 828 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil)) | |
819 | 829 | } | |
820 | 830 | else throw("Strict value is not equal to itself.") | |
821 | 831 | } | |
822 | 832 | })) | |
823 | 833 | ||
824 | 834 | ||
825 | 835 | ||
826 | 836 | @Callable(i) | |
827 | 837 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
828 | - | let $ | |
829 | - | let strAssetIdA = $ | |
830 | - | let strAssetIdB = $ | |
831 | - | let assetIdA = $ | |
832 | - | let assetIdB = $ | |
833 | - | let $ | |
834 | - | let balanceA = $ | |
835 | - | let balanceB = $ | |
836 | - | let accountBalanceA = $ | |
837 | - | let accountBalanceB = $ | |
838 | + | let $t03560735683 = getPoolAssets(i.caller) | |
839 | + | let strAssetIdA = $t03560735683._1 | |
840 | + | let strAssetIdB = $t03560735683._2 | |
841 | + | let assetIdA = $t03560735683._3 | |
842 | + | let assetIdB = $t03560735683._4 | |
843 | + | let $t03569635802 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
844 | + | let balanceA = $t03569635802._1 | |
845 | + | let balanceB = $t03569635802._2 | |
846 | + | let accountBalanceA = $t03569635802._3 | |
847 | + | let accountBalanceB = $t03569635802._4 | |
838 | 848 | let amountEnrollA = (accountBalanceA - balanceA) | |
839 | 849 | let amountEnrollB = (accountBalanceB - balanceB) | |
840 | 850 | if ((moneyBoxAddress != i.originCaller)) | |
841 | 851 | then throw("Only the wallet can call this function") | |
842 | 852 | else if (if ((0 > amountEnrollA)) | |
843 | 853 | then true | |
844 | 854 | else (0 > amountEnrollB)) | |
845 | 855 | then suspend("Enroll amount negative") | |
846 | 856 | else if (if ((amountEnrollA == 0)) | |
847 | 857 | then (amountEnrollB == 0) | |
848 | 858 | else false) | |
849 | 859 | then throw("No money to take") | |
850 | 860 | else { | |
851 | 861 | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
852 | 862 | then (amountEnrollA > 0) | |
853 | 863 | else false) | |
854 | 864 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
855 | 865 | else 0 | |
856 | 866 | if ((stake1 == stake1)) | |
857 | 867 | then { | |
858 | 868 | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
859 | 869 | then (amountEnrollB > 0) | |
860 | 870 | else false) | |
861 | 871 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
862 | 872 | else 0 | |
863 | 873 | if ((stake2 == stake2)) | |
864 | 874 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil)) | |
865 | 875 | else throw("Strict value is not equal to itself.") | |
866 | 876 | } | |
867 | 877 | else throw("Strict value is not equal to itself.") | |
868 | 878 | } | |
869 | 879 | })) | |
870 | 880 | ||
871 | 881 | ||
872 | 882 | @Verifier(tx) | |
873 | 883 | func verify () = { | |
874 | 884 | let multiSignedByAdmins = { | |
875 | 885 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
876 | 886 | then 1 | |
877 | 887 | else 0 | |
878 | 888 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
879 | 889 | then 1 | |
880 | 890 | else 0 | |
881 | 891 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
882 | 892 | then 1 | |
883 | 893 | else 0 | |
884 | 894 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
885 | 895 | } | |
886 | 896 | multiSignedByAdmins | |
887 | 897 | } | |
888 | 898 |
github/deemru/w8io/026f985 132.99 ms ◑