tx · n8BZ2RUtVcqUYQx2xtChh4SyyjMWq4LnzVyVA8t8rq6 3N41jx367r3HSFV68JfLUia22bvgwfPiU8J: -0.44000000 Waves 2023.06.24 10:50 [2636410] smart account 3N41jx367r3HSFV68JfLUia22bvgwfPiU8J > SELF 0.00000000 Waves
{ "type": 13, "id": "n8BZ2RUtVcqUYQx2xtChh4SyyjMWq4LnzVyVA8t8rq6", "fee": 44000000, "feeAssetId": null, "timestamp": 1687593111514, "version": 2, "chainId": 84, "sender": "3N41jx367r3HSFV68JfLUia22bvgwfPiU8J", "senderPublicKey": "51cTRWaywGzzBXaFt4MRPswto8Rz3Wwa1uTbaSaXqXTk", "proofs": [ "2yfmUwXceKnjK9yzEtDmGksGMpGfe9hH69rHxxNcBrRpaRoJvmzPKYerUNFHoBjG8J9ijyMAJXJEuAGRdrfESjgG", "4cswuxPNjqQDGvSKUCNXMqAxsSmX8fRTrQ3CPEXhbUCHHT5VWnsW8GZ5rmsKUr8KEoJvk7Kq7xdCPZmkZH18gUjj" ], "script": "base64:BgJiCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJTAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U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2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc27JClA=", "height": 2636410, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G8PV5taoHm1WXyzqJatnTPxLBfkYKqpqoNDsBxeXRChG Next: 5Znap2GQwrJc64tMUKeB3KA9Ky9fEpDraGWj99f1pU5a Diff:
Old | New | Differences | |
---|---|---|---|
452 | 452 | let lpSupply = $t01545715549._5 | |
453 | 453 | let pmtA = parseIntValue(args[0]) | |
454 | 454 | let pmtB = parseIntValue(args[1]) | |
455 | - | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
456 | - | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
457 | - | let virtGetMinAmount = parseIntValue(args[2]) | |
458 | - | let $t01579115858 = getFeeParams(i.caller, i.originCaller) | |
459 | - | let fee = $t01579115858._1 | |
460 | - | let govFee = $t01579115858._2 | |
461 | - | let teamFee = $t01579115858._3 | |
462 | - | let $t01586316012 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtAssetIdA, pmtAssetIdB, balA, balB, lpSupply) | |
463 | - | let lp = $t01586316012._1 | |
464 | - | let change = $t01586316012._2 | |
465 | - | let changeAssetId = $t01586316012._3 | |
466 | - | let pmtAmountA = $t01586316012._4 | |
467 | - | let pmtAmountB = $t01586316012._5 | |
455 | + | let $t01563215775 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply) | |
456 | + | let lp = $t01563215775._1 | |
457 | + | let change = $t01563215775._2 | |
458 | + | let changeAssetId = $t01563215775._3 | |
459 | + | let pmtAmountA = $t01563215775._4 | |
460 | + | let pmtAmountB = $t01563215775._5 | |
468 | 461 | $Tuple2(nil, $Tuple2(nil, [lp, change, changeAssetId, pmtAmountA, pmtAmountB])) | |
469 | 462 | } | |
470 | 463 | ||
472 | 465 | ||
473 | 466 | @Callable(i) | |
474 | 467 | func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
475 | - | let $ | |
476 | - | let strAssetIdA = $ | |
477 | - | let strAssetIdB = $ | |
478 | - | let assetIdA = $ | |
479 | - | let assetIdB = $ | |
480 | - | let shareAssetId = $ | |
481 | - | let $ | |
482 | - | let balanceA = $ | |
483 | - | let balanceB = $ | |
484 | - | let accountBalanceA = $ | |
485 | - | let accountBalanceB = $ | |
486 | - | let shareAssetSupply = $ | |
468 | + | let $t01598616076 = getPoolAssets(i.caller) | |
469 | + | let strAssetIdA = $t01598616076._1 | |
470 | + | let strAssetIdB = $t01598616076._2 | |
471 | + | let assetIdA = $t01598616076._3 | |
472 | + | let assetIdB = $t01598616076._4 | |
473 | + | let shareAssetId = $t01598616076._5 | |
474 | + | let $t01608116205 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
475 | + | let balanceA = $t01608116205._1 | |
476 | + | let balanceB = $t01608116205._2 | |
477 | + | let accountBalanceA = $t01608116205._3 | |
478 | + | let accountBalanceB = $t01608116205._4 | |
479 | + | let shareAssetSupply = $t01608116205._5 | |
487 | 480 | let withdrawAmount = parseIntValue(args[0]) | |
488 | - | let $ | |
481 | + | let $t01625916421 = if ((size(args) == 3)) | |
489 | 482 | then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2])) | |
490 | 483 | else $Tuple2(balanceA, balanceB) | |
491 | - | let balA = $ | |
492 | - | let balB = $ | |
484 | + | let balA = $t01625916421._1 | |
485 | + | let balB = $t01625916421._2 | |
493 | 486 | let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply) | |
494 | 487 | let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply) | |
495 | 488 | $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB])) | |
500 | 493 | @Callable(i) | |
501 | 494 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
502 | 495 | let caller = Address(callerBytes) | |
503 | - | let $ | |
504 | - | let pmtAmountA = $ | |
505 | - | let pmtAssetIdA = $ | |
506 | - | let $ | |
507 | - | let pmtAmountB = $ | |
508 | - | let pmtAssetIdB = $ | |
496 | + | let $t01677616854 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
497 | + | let pmtAmountA = $t01677616854._1 | |
498 | + | let pmtAssetIdA = $t01677616854._2 | |
499 | + | let $t01685916937 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
500 | + | let pmtAmountB = $t01685916937._1 | |
501 | + | let pmtAssetIdB = $t01685916937._2 | |
509 | 502 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
510 | 503 | then throw("Only admin can call this function") | |
511 | 504 | else if ((size(args) != 1)) | |
515 | 508 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
516 | 509 | then throw("Assets must be different") | |
517 | 510 | else { | |
518 | - | let $ | |
519 | - | let pmtStrAssetIdA = $ | |
520 | - | let pmtAssetNameA = $ | |
521 | - | let pmtDecimalsA = $ | |
522 | - | let $ | |
523 | - | let pmtStrAssetIdB = $ | |
524 | - | let pmtAssetNameB = $ | |
525 | - | let pmtDecimalsB = $ | |
511 | + | let $t01737217449 = getAssetInfo(pmtAssetIdA) | |
512 | + | let pmtStrAssetIdA = $t01737217449._1 | |
513 | + | let pmtAssetNameA = $t01737217449._2 | |
514 | + | let pmtDecimalsA = $t01737217449._3 | |
515 | + | let $t01745817535 = getAssetInfo(pmtAssetIdB) | |
516 | + | let pmtStrAssetIdB = $t01745817535._1 | |
517 | + | let pmtAssetNameB = $t01745817535._2 | |
518 | + | let pmtDecimalsB = $t01745817535._3 | |
526 | 519 | let firstHarvest = (args[0] == "true") | |
527 | 520 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
528 | 521 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
559 | 552 | @Callable(i) | |
560 | 553 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
561 | 554 | let caller = Address(callerBytes) | |
562 | - | let $ | |
563 | - | let amtAssetA = $ | |
564 | - | let amtAssetB = $ | |
565 | - | let assetIdAStr = $ | |
566 | - | let assetIdBStr = $ | |
567 | - | let firstHarvest = $ | |
555 | + | let $t01975619956 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
556 | + | let amtAssetA = $t01975619956._1 | |
557 | + | let amtAssetB = $t01975619956._2 | |
558 | + | let assetIdAStr = $t01975619956._3 | |
559 | + | let assetIdBStr = $t01975619956._4 | |
560 | + | let firstHarvest = $t01975619956._5 | |
568 | 561 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
569 | 562 | then throw("Only admin can call this function") | |
570 | 563 | else if ((size(args) != 5)) | |
574 | 567 | else if ((assetIdAStr == assetIdBStr)) | |
575 | 568 | then throw("Assets must be different") | |
576 | 569 | else { | |
577 | - | let $ | |
578 | - | let pmtStrAssetIdA = $ | |
579 | - | let pmtAssetNameA = $ | |
580 | - | let pmtDecimalsA = $ | |
581 | - | let $ | |
582 | - | let pmtStrAssetIdB = $ | |
583 | - | let pmtAssetNameB = $ | |
584 | - | let pmtDecimalsB = $ | |
570 | + | let $t02039120468 = getAssetInfo(assetIdAStr) | |
571 | + | let pmtStrAssetIdA = $t02039120468._1 | |
572 | + | let pmtAssetNameA = $t02039120468._2 | |
573 | + | let pmtDecimalsA = $t02039120468._3 | |
574 | + | let $t02047720554 = getAssetInfo(assetIdBStr) | |
575 | + | let pmtStrAssetIdB = $t02047720554._1 | |
576 | + | let pmtAssetNameB = $t02047720554._2 | |
577 | + | let pmtDecimalsB = $t02047720554._3 | |
585 | 578 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
586 | 579 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
587 | 580 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
612 | 605 | @Callable(i) | |
613 | 606 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
614 | 607 | let caller = Address(callerBytes) | |
615 | - | let $ | |
616 | - | let pmtAmount = $ | |
617 | - | let pmtAssetId = $ | |
608 | + | let $t02298023056 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
609 | + | let pmtAmount = $t02298023056._1 | |
610 | + | let pmtAssetId = $t02298023056._2 | |
618 | 611 | let minAmountToReceive = parseIntValue(args[0]) | |
619 | - | let $ | |
620 | - | let strAssetIdA = $ | |
621 | - | let strAssetIdB = $ | |
622 | - | let assetIdA = $ | |
623 | - | let assetIdB = $ | |
624 | - | let $ | |
625 | - | let balanceA = $ | |
626 | - | let balanceB = $ | |
627 | - | let accountBalanceA = $ | |
628 | - | let accountBalanceB = $ | |
612 | + | let $t02312123197 = getPoolAssets(i.caller) | |
613 | + | let strAssetIdA = $t02312123197._1 | |
614 | + | let strAssetIdB = $t02312123197._2 | |
615 | + | let assetIdA = $t02312123197._3 | |
616 | + | let assetIdB = $t02312123197._4 | |
617 | + | let $t02320623312 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
618 | + | let balanceA = $t02320623312._1 | |
619 | + | let balanceB = $t02320623312._2 | |
620 | + | let accountBalanceA = $t02320623312._3 | |
621 | + | let accountBalanceB = $t02320623312._4 | |
629 | 622 | if ((size(args) != 1)) | |
630 | 623 | then throw("Wrong args size") | |
631 | 624 | else if (if ((balanceA == 0)) | |
643 | 636 | else (balanceB > accountBalanceB)) | |
644 | 637 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
645 | 638 | else { | |
646 | - | let $ | |
647 | - | let fee = $ | |
648 | - | let govFee = $ | |
649 | - | let teamFee = $ | |
650 | - | let $ | |
639 | + | let $t02421224279 = getFeeParams(i.caller, i.originCaller) | |
640 | + | let fee = $t02421224279._1 | |
641 | + | let govFee = $t02421224279._2 | |
642 | + | let teamFee = $t02421224279._3 | |
643 | + | let $t02429224643 = if ((pmtAssetId == assetIdA)) | |
651 | 644 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee) | |
652 | 645 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee) | |
653 | - | let amountWithoutFee = $ | |
654 | - | let amountWithFee = $ | |
655 | - | let governanceReward = $ | |
656 | - | let teamReward = $ | |
657 | - | let $ | |
646 | + | let amountWithoutFee = $t02429224643._1 | |
647 | + | let amountWithFee = $t02429224643._2 | |
648 | + | let governanceReward = $t02429224643._3 | |
649 | + | let teamReward = $t02429224643._4 | |
650 | + | let $t02465724992 = if ((pmtAssetId == assetIdA)) | |
658 | 651 | then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB) | |
659 | 652 | else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA) | |
660 | - | let newBalanceA = $ | |
661 | - | let newBalanceB = $ | |
662 | - | let assetIdSend = $ | |
663 | - | let $ | |
653 | + | let newBalanceA = $t02465724992._1 | |
654 | + | let newBalanceB = $t02465724992._2 | |
655 | + | let assetIdSend = $t02465724992._3 | |
656 | + | let $t02500625266 = if ((pmtAssetId == assetIdA)) | |
664 | 657 | then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward)) | |
665 | 658 | else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount) | |
666 | - | let stakeAmountA = $ | |
667 | - | let stakeAmountB = $ | |
659 | + | let stakeAmountA = $t02500625266._1 | |
660 | + | let stakeAmountB = $t02500625266._2 | |
668 | 661 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
669 | 662 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
670 | 663 | else 0 | |
690 | 683 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
691 | 684 | let stakeFarming = (args[0] == "true") | |
692 | 685 | let lockType = parseIntValue(args[1]) | |
693 | - | let $ | |
694 | - | let strAssetIdA = $ | |
695 | - | let strAssetIdB = $ | |
696 | - | let assetIdA = $ | |
697 | - | let assetIdB = $ | |
698 | - | let shareAssetId = $ | |
699 | - | let $ | |
700 | - | let balanceA = $ | |
701 | - | let balanceB = $ | |
702 | - | let accountBalanceA = $ | |
703 | - | let accountBalanceB = $ | |
704 | - | let shareAssetSupply = $ | |
686 | + | let $t02658126671 = getPoolAssets(i.caller) | |
687 | + | let strAssetIdA = $t02658126671._1 | |
688 | + | let strAssetIdB = $t02658126671._2 | |
689 | + | let assetIdA = $t02658126671._3 | |
690 | + | let assetIdB = $t02658126671._4 | |
691 | + | let shareAssetId = $t02658126671._5 | |
692 | + | let $t02668026804 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
693 | + | let balanceA = $t02668026804._1 | |
694 | + | let balanceB = $t02668026804._2 | |
695 | + | let accountBalanceA = $t02668026804._3 | |
696 | + | let accountBalanceB = $t02668026804._4 | |
697 | + | let shareAssetSupply = $t02668026804._5 | |
705 | 698 | if ((size(args) != 2)) | |
706 | 699 | then throw("Wrong args size") | |
707 | 700 | else if (if ((size(pAmounts) != 2)) | |
721 | 714 | else pAssetIds[2], pAmounts[2])] | |
722 | 715 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
723 | 716 | else { | |
724 | - | let $ | |
725 | - | let shareTokenToPayAmount = $ | |
726 | - | let change = $ | |
727 | - | let changeAssetId = $ | |
728 | - | let pmtAmountA = $ | |
729 | - | let pmtAmountB = $ | |
717 | + | let $t02774127939 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply) | |
718 | + | let shareTokenToPayAmount = $t02774127939._1 | |
719 | + | let change = $t02774127939._2 | |
720 | + | let changeAssetId = $t02774127939._3 | |
721 | + | let pmtAmountA = $t02774127939._4 | |
722 | + | let pmtAmountB = $t02774127939._5 | |
730 | 723 | if ((shareTokenToPayAmount == 0)) | |
731 | 724 | then throw("Too small amount to replenish") | |
732 | 725 | else if ((0 > change)) | |
779 | 772 | let virtGetMinAmount = parseIntValue(args[0]) | |
780 | 773 | let stakeFarming = (args[1] == "true") | |
781 | 774 | let lockType = parseIntValue(args[2]) | |
782 | - | let $ | |
783 | - | let strAssetIdA = $ | |
784 | - | let strAssetIdB = $ | |
785 | - | let assetIdA = $ | |
786 | - | let assetIdB = $ | |
787 | - | let shareAssetId = $ | |
788 | - | let $ | |
789 | - | let balanceA = $ | |
790 | - | let balanceB = $ | |
791 | - | let accountBalanceA = $ | |
792 | - | let accountBalanceB = $ | |
793 | - | let shareAssetSupply = $ | |
775 | + | let $t03019830288 = getPoolAssets(i.caller) | |
776 | + | let strAssetIdA = $t03019830288._1 | |
777 | + | let strAssetIdB = $t03019830288._2 | |
778 | + | let assetIdA = $t03019830288._3 | |
779 | + | let assetIdB = $t03019830288._4 | |
780 | + | let shareAssetId = $t03019830288._5 | |
781 | + | let $t03029330417 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
782 | + | let balanceA = $t03029330417._1 | |
783 | + | let balanceB = $t03029330417._2 | |
784 | + | let accountBalanceA = $t03029330417._3 | |
785 | + | let accountBalanceB = $t03029330417._4 | |
786 | + | let shareAssetSupply = $t03029330417._5 | |
794 | 787 | let initial = ((balanceA + balanceB) == 0) | |
795 | 788 | if ((size(args) != 3)) | |
796 | 789 | then throw("Wrong args size") | |
813 | 806 | else pAssetIds[2], pAmounts[2])] | |
814 | 807 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
815 | 808 | else { | |
816 | - | let $ | |
817 | - | let fee = $ | |
818 | - | let govFee = $ | |
819 | - | let teamFee = $ | |
820 | - | let $ | |
821 | - | let pmtAssetIdStr = $ | |
822 | - | let pmtAssetIdName = $ | |
823 | - | let $ | |
824 | - | let shareTokenToPayAmount = $ | |
825 | - | let newBalanceA = $ | |
826 | - | let newBalanceB = $ | |
827 | - | let govReward = $ | |
828 | - | let teamReward = $ | |
829 | - | let govRewardAsset = $ | |
809 | + | let $t03132931396 = getFeeParams(i.caller, i.originCaller) | |
810 | + | let fee = $t03132931396._1 | |
811 | + | let govFee = $t03132931396._2 | |
812 | + | let teamFee = $t03132931396._3 | |
813 | + | let $t03140531467 = getAssetInfo(pmtAssetId) | |
814 | + | let pmtAssetIdStr = $t03140531467._1 | |
815 | + | let pmtAssetIdName = $t03140531467._2 | |
816 | + | let $t03148531731 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount) | |
817 | + | let shareTokenToPayAmount = $t03148531731._1 | |
818 | + | let newBalanceA = $t03148531731._2 | |
819 | + | let newBalanceB = $t03148531731._3 | |
820 | + | let govReward = $t03148531731._4 | |
821 | + | let teamReward = $t03148531731._5 | |
822 | + | let govRewardAsset = $t03148531731._6 | |
830 | 823 | let govRewardAssetStr = if ((govRewardAsset == assetIdA)) | |
831 | 824 | then strAssetIdA | |
832 | 825 | else strAssetIdB | |
875 | 868 | @Callable(i) | |
876 | 869 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
877 | 870 | let caller = Address(callerBytes) | |
878 | - | let $ | |
879 | - | let strAssetIdA = $ | |
880 | - | let strAssetIdB = $ | |
881 | - | let assetIdA = $ | |
882 | - | let assetIdB = $ | |
883 | - | let shareAssetId = $ | |
884 | - | let $ | |
885 | - | let balanceA = $ | |
886 | - | let balanceB = $ | |
887 | - | let accountBalanceA = $ | |
888 | - | let accountBalanceB = $ | |
889 | - | let shareAssetSupply = $ | |
890 | - | let $ | |
871 | + | let $t03379933889 = getPoolAssets(i.caller) | |
872 | + | let strAssetIdA = $t03379933889._1 | |
873 | + | let strAssetIdB = $t03379933889._2 | |
874 | + | let assetIdA = $t03379933889._3 | |
875 | + | let assetIdB = $t03379933889._4 | |
876 | + | let shareAssetId = $t03379933889._5 | |
877 | + | let $t03389834022 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
878 | + | let balanceA = $t03389834022._1 | |
879 | + | let balanceB = $t03389834022._2 | |
880 | + | let accountBalanceA = $t03389834022._3 | |
881 | + | let accountBalanceB = $t03389834022._4 | |
882 | + | let shareAssetSupply = $t03389834022._5 | |
883 | + | let $t03403134411 = if ((size(pAmounts) == 1)) | |
891 | 884 | then { | |
892 | 885 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
893 | 886 | if ((pAsset != shareAssetId)) | |
895 | 888 | else $Tuple2(pAmounts[0], pAsset) | |
896 | 889 | } | |
897 | 890 | else $Tuple2(0, shareAssetId) | |
898 | - | let pmtAmount = $ | |
899 | - | let pmtAssetId = $ | |
891 | + | let pmtAmount = $t03403134411._1 | |
892 | + | let pmtAssetId = $t03403134411._2 | |
900 | 893 | if ((size(args) != 1)) | |
901 | 894 | then throw("Wrong args size") | |
902 | 895 | else if ((size(pAmounts) > 1)) | |
941 | 934 | let withdrawAsset = if ((args[0] == "")) | |
942 | 935 | then unit | |
943 | 936 | else fromBase58String(args[0]) | |
944 | - | let $ | |
945 | - | let strAssetIdA = $ | |
946 | - | let strAssetIdB = $ | |
947 | - | let assetIdA = $ | |
948 | - | let assetIdB = $ | |
949 | - | let shareAssetId = $ | |
950 | - | let $ | |
951 | - | let balanceA = $ | |
952 | - | let balanceB = $ | |
953 | - | let accountBalanceA = $ | |
954 | - | let accountBalanceB = $ | |
955 | - | let shareAssetSupply = $ | |
956 | - | let $ | |
937 | + | let $t03662936719 = getPoolAssets(i.caller) | |
938 | + | let strAssetIdA = $t03662936719._1 | |
939 | + | let strAssetIdB = $t03662936719._2 | |
940 | + | let assetIdA = $t03662936719._3 | |
941 | + | let assetIdB = $t03662936719._4 | |
942 | + | let shareAssetId = $t03662936719._5 | |
943 | + | let $t03672836852 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
944 | + | let balanceA = $t03672836852._1 | |
945 | + | let balanceB = $t03672836852._2 | |
946 | + | let accountBalanceA = $t03672836852._3 | |
947 | + | let accountBalanceB = $t03672836852._4 | |
948 | + | let shareAssetSupply = $t03672836852._5 | |
949 | + | let $t03686137213 = if ((size(pAmounts) == 1)) | |
957 | 950 | then { | |
958 | 951 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
959 | 952 | if ((pAsset != shareAssetId)) | |
961 | 954 | else $Tuple2(pAmounts[0], pAsset) | |
962 | 955 | } | |
963 | 956 | else $Tuple2(0, shareAssetId) | |
964 | - | let pmtAmount = $ | |
965 | - | let pmtAssetId = $ | |
957 | + | let pmtAmount = $t03686137213._1 | |
958 | + | let pmtAssetId = $t03686137213._2 | |
966 | 959 | let virtMinToRecive = parseIntValue(args[1]) | |
967 | 960 | if ((size(args) != 3)) | |
968 | 961 | then throw("Wrong args size") | |
986 | 979 | let withdrawAmount = (pmtAmount + unlockAmount) | |
987 | 980 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
988 | 981 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
989 | - | let $ | |
990 | - | let fee = $ | |
991 | - | let govFee = $ | |
992 | - | let teamFee = $ | |
993 | - | let $ | |
982 | + | let $t03848038547 = getFeeParams(i.caller, i.originCaller) | |
983 | + | let fee = $t03848038547._1 | |
984 | + | let govFee = $t03848038547._2 | |
985 | + | let teamFee = $t03848038547._3 | |
986 | + | let $t03856038974 = if ((withdrawAsset == assetIdA)) | |
994 | 987 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee) | |
995 | 988 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee) | |
996 | - | let amountWithoutFee = $ | |
997 | - | let amountWithFee = $ | |
998 | - | let governanceReward = $ | |
999 | - | let teamReward = $ | |
1000 | - | let $ | |
989 | + | let amountWithoutFee = $t03856038974._1 | |
990 | + | let amountWithFee = $t03856038974._2 | |
991 | + | let governanceReward = $t03856038974._3 | |
992 | + | let teamReward = $t03856038974._4 | |
993 | + | let $t03898740297 = if ((withdrawAsset == assetIdA)) | |
1001 | 994 | then { | |
1002 | 995 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
1003 | 996 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil) | |
1014 | 1007 | then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
1015 | 1008 | else throw("Strict value is not equal to itself.") | |
1016 | 1009 | } | |
1017 | - | let newBalanceA = $ | |
1018 | - | let newBalanceB = $ | |
1019 | - | let govRewardAssetId = $ | |
1020 | - | let userTransfer = $ | |
1010 | + | let newBalanceA = $t03898740297._1 | |
1011 | + | let newBalanceB = $t03898740297._2 | |
1012 | + | let govRewardAssetId = $t03898740297._3 | |
1013 | + | let userTransfer = $t03898740297._4 | |
1021 | 1014 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil)) | |
1022 | 1015 | } | |
1023 | 1016 | else throw("Strict value is not equal to itself.") | |
1028 | 1021 | ||
1029 | 1022 | @Callable(i) | |
1030 | 1023 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
1031 | - | let $ | |
1032 | - | let strAssetIdA = $ | |
1033 | - | let strAssetIdB = $ | |
1034 | - | let assetIdA = $ | |
1035 | - | let assetIdB = $ | |
1024 | + | let $t04105741133 = getPoolAssets(i.caller) | |
1025 | + | let strAssetIdA = $t04105741133._1 | |
1026 | + | let strAssetIdB = $t04105741133._2 | |
1027 | + | let assetIdA = $t04105741133._3 | |
1028 | + | let assetIdB = $t04105741133._4 | |
1036 | 1029 | let claim = if (if ((assetIdA == USDN)) | |
1037 | 1030 | then true | |
1038 | 1031 | else (assetIdB == USDN)) | |
1040 | 1033 | else 0 | |
1041 | 1034 | if ((claim == claim)) | |
1042 | 1035 | then { | |
1043 | - | let $ | |
1044 | - | let balanceA = $ | |
1045 | - | let balanceB = $ | |
1046 | - | let accountBalanceA = $ | |
1047 | - | let accountBalanceB = $ | |
1036 | + | let $t04129341399 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
1037 | + | let balanceA = $t04129341399._1 | |
1038 | + | let balanceB = $t04129341399._2 | |
1039 | + | let accountBalanceA = $t04129341399._3 | |
1040 | + | let accountBalanceB = $t04129341399._4 | |
1048 | 1041 | let amountEnrollA = (accountBalanceA - balanceA) | |
1049 | 1042 | let amountEnrollB = (accountBalanceB - balanceB) | |
1050 | 1043 | if ((size(args) != 0)) |
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 kDeprecated = "deprecated_" | |
11 | 11 | ||
12 | 12 | let kAssetIdA = "A_asset_id" | |
13 | 13 | ||
14 | 14 | let kAssetIdB = "B_asset_id" | |
15 | 15 | ||
16 | 16 | let kBalanceA = "A_asset_balance" | |
17 | 17 | ||
18 | 18 | let kBalanceB = "B_asset_balance" | |
19 | 19 | ||
20 | 20 | let kBalanceInitA = "A_asset_init" | |
21 | 21 | ||
22 | 22 | let kBalanceInitB = "B_asset_init" | |
23 | 23 | ||
24 | 24 | let kShareAssetId = "share_asset_id" | |
25 | 25 | ||
26 | 26 | let kShareAssetSupply = "share_asset_supply" | |
27 | 27 | ||
28 | 28 | let kFee = "commission" | |
29 | 29 | ||
30 | 30 | let kCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let kFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let kFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let kShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let kBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let kPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let kStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let kUSDNAddress = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | 46 | let kEURNAddress = "staking_eurn_address" | |
47 | 47 | ||
48 | 48 | let kLeasingAmount = "leasing_amount" | |
49 | 49 | ||
50 | 50 | let kUSDNAssetId = "usdn_asset_id" | |
51 | 51 | ||
52 | 52 | let kEURNAssetId = "eurn_asset_id" | |
53 | 53 | ||
54 | 54 | let kStakingAssets = "staking_assets" | |
55 | 55 | ||
56 | 56 | let kOracleActive = "active_all_contracts" | |
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 kTeamBoxAddress = "team_box_address" | |
79 | 79 | ||
80 | 80 | let kVotingAddress = "voting_address" | |
81 | 81 | ||
82 | 82 | let kGovAddress = "governance_address" | |
83 | 83 | ||
84 | 84 | let kFarmingAddress = "farming_address" | |
85 | 85 | ||
86 | 86 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
87 | 87 | ||
88 | 88 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
89 | 89 | case string: String => | |
90 | 90 | fromBase58String(string) | |
91 | 91 | case nothing => | |
92 | 92 | throw((key + "is empty")) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
97 | 97 | ||
98 | 98 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
99 | 99 | ||
100 | 100 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
101 | 101 | ||
102 | 102 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
103 | 103 | ||
104 | 104 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
105 | 105 | ||
106 | 106 | let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress)) | |
107 | 107 | ||
108 | 108 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
109 | 109 | ||
110 | 110 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
111 | 111 | ||
112 | 112 | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
113 | 113 | ||
114 | 114 | let USDN = getBase58FromOracle(kUSDNAssetId) | |
115 | 115 | ||
116 | 116 | let EURN = getBase58FromOracle(kEURNAssetId) | |
117 | 117 | ||
118 | 118 | let stakingAssets = getStringValue(oracle, kStakingAssets) | |
119 | 119 | ||
120 | 120 | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
121 | 121 | ||
122 | 122 | let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress)) | |
123 | 123 | ||
124 | 124 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
125 | 125 | ||
126 | 126 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
127 | 127 | ||
128 | 128 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
129 | 129 | ||
130 | 130 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
131 | 131 | ||
132 | 132 | let active = getBooleanValue(oracle, kOracleActive) | |
133 | 133 | ||
134 | 134 | let feeScale6 = 1000000 | |
135 | 135 | ||
136 | 136 | let scale8 = 100000000 | |
137 | 137 | ||
138 | 138 | let scale16 = toBigInt(10000000000000000) | |
139 | 139 | ||
140 | 140 | func accountBalance (assetId,pool) = match assetId { | |
141 | 141 | case id: ByteVector => | |
142 | 142 | assetBalance(pool, id) | |
143 | 143 | case waves: Unit => | |
144 | 144 | wavesBalance(pool).available | |
145 | 145 | case _ => | |
146 | 146 | throw("Match error") | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func stakedAmount (assetId,pool) = { | |
151 | 151 | let stakedAmountCalculated = match assetId { | |
152 | 152 | case aId: ByteVector => | |
153 | 153 | if ((aId == USDN)) | |
154 | 154 | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool))) | |
155 | 155 | else if ((aId == EURN)) | |
156 | 156 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool))) | |
157 | 157 | else 0 | |
158 | 158 | case _: Unit => | |
159 | 159 | valueOrElse(getInteger(pool, kLeasingAmount), 0) | |
160 | 160 | case _ => | |
161 | 161 | throw("Match error") | |
162 | 162 | } | |
163 | 163 | match stakedAmountCalculated { | |
164 | 164 | case i: Int => | |
165 | 165 | i | |
166 | 166 | case _ => | |
167 | 167 | 0 | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getAssetInfo (assetId) = match assetId { | |
173 | 173 | case id: String|ByteVector => | |
174 | 174 | let $t040794251 = match id { | |
175 | 175 | case aId: ByteVector => | |
176 | 176 | $Tuple2(toBase58String(aId), aId) | |
177 | 177 | case aId: String => | |
178 | 178 | $Tuple2(aId, fromBase58String(aId)) | |
179 | 179 | case _ => | |
180 | 180 | throw("Match error") | |
181 | 181 | } | |
182 | 182 | let stringId = $t040794251._1 | |
183 | 183 | let bytesId = $t040794251._2 | |
184 | 184 | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
185 | 185 | $Tuple3(stringId, info.name, info.decimals) | |
186 | 186 | case waves: Unit => | |
187 | 187 | $Tuple3("WAVES", "WAVES", 8) | |
188 | 188 | case _ => | |
189 | 189 | throw("Match error") | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func calculateFeeDiscount (userAddr) = { | |
197 | 197 | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
198 | 198 | let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount) | |
199 | 199 | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
200 | 200 | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
201 | 201 | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
202 | 202 | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
203 | 203 | else false) | |
204 | 204 | then (feeScale6 - parseIntValue(discounts[0])) | |
205 | 205 | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
206 | 206 | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
207 | 207 | else false) | |
208 | 208 | then (feeScale6 - parseIntValue(discounts[1])) | |
209 | 209 | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
210 | 210 | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
211 | 211 | else false) | |
212 | 212 | then (feeScale6 - parseIntValue(discounts[2])) | |
213 | 213 | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
214 | 214 | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
215 | 215 | else false) | |
216 | 216 | then (feeScale6 - parseIntValue(discounts[3])) | |
217 | 217 | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
218 | 218 | then (feeScale6 - parseIntValue(discounts[4])) | |
219 | 219 | else feeScale6 | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = { | |
224 | 224 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
225 | 225 | let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6) | |
226 | 226 | let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6) | |
227 | 227 | let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6) | |
228 | 228 | if ((minAmountToReceive > amountWithFee)) | |
229 | 229 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
230 | 230 | else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward) | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func calculateVirtPay (pmtAmount,balance,fee) = { | |
235 | 235 | let F = (feeScale6 - fee) | |
236 | 236 | let k = fraction(fee, 55, 100) | |
237 | 237 | let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6))) | |
238 | 238 | let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6))) | |
239 | 239 | let c = (-(toBigInt(balance)) * toBigInt(pmtAmount)) | |
240 | 240 | let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8))) | |
241 | 241 | toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a)))) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func parsePaymentAsset (assetId) = if ((assetId == base58'')) | |
246 | 246 | then unit | |
247 | 247 | else assetId | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | 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)) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func isActive () = if (active) | |
254 | 254 | then unit | |
255 | 255 | else throw("DApp is inactive at this moment") | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
259 | 259 | then unit | |
260 | 260 | else throw("DApp is not registered pool") | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false))) | |
264 | 264 | then unit | |
265 | 265 | else throw("Pool is deprecated. Only withdraw action allowed.") | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func getPoolBalances (pool,assetIdA,assetIdB) = { | |
269 | 269 | let balanceA = getIntegerValue(pool, kBalanceA) | |
270 | 270 | let balanceB = getIntegerValue(pool, kBalanceB) | |
271 | 271 | let stakedAmountA = stakedAmount(assetIdA, pool) | |
272 | 272 | let stakedAmountB = stakedAmount(assetIdB, pool) | |
273 | 273 | let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA) | |
274 | 274 | let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB) | |
275 | 275 | let shareSupply = getIntegerValue(pool, kShareAssetSupply) | |
276 | 276 | $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply) | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func getPoolAssets (pool) = { | |
281 | 281 | let strAssetIdA = getStringValue(pool, kAssetIdA) | |
282 | 282 | let strAssetIdB = getStringValue(pool, kAssetIdB) | |
283 | 283 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
284 | 284 | then unit | |
285 | 285 | else fromBase58String(strAssetIdA) | |
286 | 286 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
287 | 287 | then unit | |
288 | 288 | else fromBase58String(strAssetIdB) | |
289 | 289 | let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId)) | |
290 | 290 | $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func getFeeParams (pool,caller) = { | |
295 | 295 | let feeDiscount = calculateFeeDiscount(caller) | |
296 | 296 | let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING) | |
297 | 297 | let govFee = fraction(fee, 35, 100) | |
298 | 298 | let teamFee = fraction(fee, 10, 100) | |
299 | 299 | $Tuple3(fee, govFee, teamFee) | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = { | |
304 | 304 | let $t095629634 = getAssetInfo(pmtIdA) | |
305 | 305 | let pmtStrAssetIdA = $t095629634._1 | |
306 | 306 | let pmtAssetNameA = $t095629634._2 | |
307 | 307 | let pmtDecimalsA = $t095629634._3 | |
308 | 308 | let $t096399711 = getAssetInfo(pmtIdB) | |
309 | 309 | let pmtStrAssetIdB = $t096399711._1 | |
310 | 310 | let pmtAssetNameB = $t096399711._2 | |
311 | 311 | let pmtDecimalsB = $t096399711._3 | |
312 | 312 | let initial = ((balA + balB) == 0) | |
313 | 313 | let $t0975410413 = if (initial) | |
314 | 314 | then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1)) | |
315 | 315 | else { | |
316 | 316 | let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA)) | |
317 | 317 | let ratioShareTokensInB = fraction(scale16, toBigInt(pmtB), toBigInt(balB)) | |
318 | 318 | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
319 | 319 | then { | |
320 | 320 | let pmt = fraction(pmtA, balB, balA) | |
321 | 321 | $Tuple5(pmtA, pmt, (pmtB - pmt), pmtIdB, ratioShareTokensInA) | |
322 | 322 | } | |
323 | 323 | else { | |
324 | 324 | let pmt = fraction(pmtB, balA, balB) | |
325 | 325 | $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB) | |
326 | 326 | } | |
327 | 327 | } | |
328 | 328 | let pmtAmountA = $t0975410413._1 | |
329 | 329 | let pmtAmountB = $t0975410413._2 | |
330 | 330 | let change = $t0975410413._3 | |
331 | 331 | let changeAssetId = $t0975410413._4 | |
332 | 332 | let shareTokenRatio = $t0975410413._5 | |
333 | 333 | let shareTokenToPayAmount = if (initial) | |
334 | 334 | then { | |
335 | 335 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
336 | 336 | fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
337 | 337 | } | |
338 | 338 | else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16)) | |
339 | 339 | $Tuple5(shareTokenToPayAmount, change, changeAssetId, pmtAmountA, pmtAmountB) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func calcLPAmountReplansishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId)) | |
344 | 344 | then { | |
345 | 345 | let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee) | |
346 | 346 | let $t01127811425 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee) | |
347 | 347 | let amountWithoutFee = $t01127811425._1 | |
348 | 348 | let amountWithFee = $t01127811425._2 | |
349 | 349 | let governanceReward = $t01127811425._3 | |
350 | 350 | let tReward = $t01127811425._4 | |
351 | 351 | let balanceAVirt = (balA + virtPayAmount) | |
352 | 352 | let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward) | |
353 | 353 | let newBalanceA = (balA + pmtAmount) | |
354 | 354 | let newBalanceB = ((balB - governanceReward) - tReward) | |
355 | 355 | let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt)) | |
356 | 356 | let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt)) | |
357 | 357 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
358 | 358 | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16)) | |
359 | 359 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
360 | 360 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss) | |
361 | 361 | } | |
362 | 362 | else { | |
363 | 363 | let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee) | |
364 | 364 | let $t01246912616 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee) | |
365 | 365 | let amountWithoutFee = $t01246912616._1 | |
366 | 366 | let amountWithFee = $t01246912616._2 | |
367 | 367 | let governanceReward = $t01246912616._3 | |
368 | 368 | let tReward = $t01246912616._4 | |
369 | 369 | let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward) | |
370 | 370 | let balanceBVirt = (balB + virtPayAmount) | |
371 | 371 | let newBalanceA = ((balA - governanceReward) - tReward) | |
372 | 372 | let newBalanceB = (balB + pmtAmount) | |
373 | 373 | let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt)) | |
374 | 374 | let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt)) | |
375 | 375 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
376 | 376 | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16)) | |
377 | 377 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
378 | 378 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss) | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = { | |
383 | 383 | let $t01378313931 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply) | |
384 | 384 | let lpTwoAmount = $t01378313931._1 | |
385 | 385 | let change = $t01378313931._2 | |
386 | 386 | let changeAssetId = $t01378313931._3 | |
387 | 387 | let pmtAmountA = $t01378313931._4 | |
388 | 388 | let pmtAmountB = $t01378313931._5 | |
389 | 389 | if ((change > 0)) | |
390 | 390 | then { | |
391 | 391 | let $t01396314198 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
392 | 392 | let lpOne = $t01396314198._1 | |
393 | 393 | let newBalanceA = $t01396314198._2 | |
394 | 394 | let newBalanceB = $t01396314198._3 | |
395 | 395 | let governanceReward = $t01396314198._4 | |
396 | 396 | let tReward = $t01396314198._5 | |
397 | 397 | let gId = $t01396314198._6 | |
398 | 398 | let loss = $t01396314198._7 | |
399 | 399 | $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId) | |
400 | 400 | } | |
401 | 401 | else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit) | |
402 | 402 | } | |
403 | 403 | ||
404 | 404 | ||
405 | 405 | @Callable(i) | |
406 | 406 | func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
407 | 407 | let $t01453414624 = getPoolAssets(i.caller) | |
408 | 408 | let strAssetIdA = $t01453414624._1 | |
409 | 409 | let strAssetIdB = $t01453414624._2 | |
410 | 410 | let assetIdA = $t01453414624._3 | |
411 | 411 | let assetIdB = $t01453414624._4 | |
412 | 412 | let shareAssetId = $t01453414624._5 | |
413 | 413 | let $t01462914721 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
414 | 414 | let balA = $t01462914721._1 | |
415 | 415 | let balB = $t01462914721._2 | |
416 | 416 | let accBalA = $t01462914721._3 | |
417 | 417 | let accBalB = $t01462914721._4 | |
418 | 418 | let lpSupply = $t01462914721._5 | |
419 | 419 | let pmtA = parseIntValue(args[0]) | |
420 | 420 | let pmtB = parseIntValue(args[1]) | |
421 | 421 | let virtGetMinAmount = parseIntValue(args[2]) | |
422 | 422 | let $t01485514922 = getFeeParams(i.caller, i.originCaller) | |
423 | 423 | let fee = $t01485514922._1 | |
424 | 424 | let govFee = $t01485514922._2 | |
425 | 425 | let teamFee = $t01485514922._3 | |
426 | 426 | let $t01492715119 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
427 | 427 | let lp = $t01492715119._1 | |
428 | 428 | let loss = $t01492715119._2 | |
429 | 429 | let newBalanceA = $t01492715119._3 | |
430 | 430 | let newBalanceB = $t01492715119._4 | |
431 | 431 | let governanceReward = $t01492715119._5 | |
432 | 432 | let tReward = $t01492715119._6 | |
433 | 433 | let aId = $t01492715119._7 | |
434 | 434 | $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId])) | |
435 | 435 | } | |
436 | 436 | ||
437 | 437 | ||
438 | 438 | ||
439 | 439 | @Callable(i) | |
440 | 440 | func calcLPReplenishTwoTokensREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
441 | 441 | let $t01536215452 = getPoolAssets(i.caller) | |
442 | 442 | let strAssetIdA = $t01536215452._1 | |
443 | 443 | let strAssetIdB = $t01536215452._2 | |
444 | 444 | let assetIdA = $t01536215452._3 | |
445 | 445 | let assetIdB = $t01536215452._4 | |
446 | 446 | let shareAssetId = $t01536215452._5 | |
447 | 447 | let $t01545715549 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
448 | 448 | let balA = $t01545715549._1 | |
449 | 449 | let balB = $t01545715549._2 | |
450 | 450 | let accBalA = $t01545715549._3 | |
451 | 451 | let accBalB = $t01545715549._4 | |
452 | 452 | let lpSupply = $t01545715549._5 | |
453 | 453 | let pmtA = parseIntValue(args[0]) | |
454 | 454 | let pmtB = parseIntValue(args[1]) | |
455 | - | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
456 | - | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
457 | - | let virtGetMinAmount = parseIntValue(args[2]) | |
458 | - | let $t01579115858 = getFeeParams(i.caller, i.originCaller) | |
459 | - | let fee = $t01579115858._1 | |
460 | - | let govFee = $t01579115858._2 | |
461 | - | let teamFee = $t01579115858._3 | |
462 | - | let $t01586316012 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtAssetIdA, pmtAssetIdB, balA, balB, lpSupply) | |
463 | - | let lp = $t01586316012._1 | |
464 | - | let change = $t01586316012._2 | |
465 | - | let changeAssetId = $t01586316012._3 | |
466 | - | let pmtAmountA = $t01586316012._4 | |
467 | - | let pmtAmountB = $t01586316012._5 | |
455 | + | let $t01563215775 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply) | |
456 | + | let lp = $t01563215775._1 | |
457 | + | let change = $t01563215775._2 | |
458 | + | let changeAssetId = $t01563215775._3 | |
459 | + | let pmtAmountA = $t01563215775._4 | |
460 | + | let pmtAmountB = $t01563215775._5 | |
468 | 461 | $Tuple2(nil, $Tuple2(nil, [lp, change, changeAssetId, pmtAmountA, pmtAmountB])) | |
469 | 462 | } | |
470 | 463 | ||
471 | 464 | ||
472 | 465 | ||
473 | 466 | @Callable(i) | |
474 | 467 | func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
475 | - | let $ | |
476 | - | let strAssetIdA = $ | |
477 | - | let strAssetIdB = $ | |
478 | - | let assetIdA = $ | |
479 | - | let assetIdB = $ | |
480 | - | let shareAssetId = $ | |
481 | - | let $ | |
482 | - | let balanceA = $ | |
483 | - | let balanceB = $ | |
484 | - | let accountBalanceA = $ | |
485 | - | let accountBalanceB = $ | |
486 | - | let shareAssetSupply = $ | |
468 | + | let $t01598616076 = getPoolAssets(i.caller) | |
469 | + | let strAssetIdA = $t01598616076._1 | |
470 | + | let strAssetIdB = $t01598616076._2 | |
471 | + | let assetIdA = $t01598616076._3 | |
472 | + | let assetIdB = $t01598616076._4 | |
473 | + | let shareAssetId = $t01598616076._5 | |
474 | + | let $t01608116205 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
475 | + | let balanceA = $t01608116205._1 | |
476 | + | let balanceB = $t01608116205._2 | |
477 | + | let accountBalanceA = $t01608116205._3 | |
478 | + | let accountBalanceB = $t01608116205._4 | |
479 | + | let shareAssetSupply = $t01608116205._5 | |
487 | 480 | let withdrawAmount = parseIntValue(args[0]) | |
488 | - | let $ | |
481 | + | let $t01625916421 = if ((size(args) == 3)) | |
489 | 482 | then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2])) | |
490 | 483 | else $Tuple2(balanceA, balanceB) | |
491 | - | let balA = $ | |
492 | - | let balB = $ | |
484 | + | let balA = $t01625916421._1 | |
485 | + | let balB = $t01625916421._2 | |
493 | 486 | let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply) | |
494 | 487 | let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply) | |
495 | 488 | $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB])) | |
496 | 489 | } | |
497 | 490 | ||
498 | 491 | ||
499 | 492 | ||
500 | 493 | @Callable(i) | |
501 | 494 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
502 | 495 | let caller = Address(callerBytes) | |
503 | - | let $ | |
504 | - | let pmtAmountA = $ | |
505 | - | let pmtAssetIdA = $ | |
506 | - | let $ | |
507 | - | let pmtAmountB = $ | |
508 | - | let pmtAssetIdB = $ | |
496 | + | let $t01677616854 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
497 | + | let pmtAmountA = $t01677616854._1 | |
498 | + | let pmtAssetIdA = $t01677616854._2 | |
499 | + | let $t01685916937 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
500 | + | let pmtAmountB = $t01685916937._1 | |
501 | + | let pmtAssetIdB = $t01685916937._2 | |
509 | 502 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
510 | 503 | then throw("Only admin can call this function") | |
511 | 504 | else if ((size(args) != 1)) | |
512 | 505 | then throw("Wrong args size") | |
513 | 506 | else if (isDefined(getBoolean(caller, kActive))) | |
514 | 507 | then throw("DApp is already active") | |
515 | 508 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
516 | 509 | then throw("Assets must be different") | |
517 | 510 | else { | |
518 | - | let $ | |
519 | - | let pmtStrAssetIdA = $ | |
520 | - | let pmtAssetNameA = $ | |
521 | - | let pmtDecimalsA = $ | |
522 | - | let $ | |
523 | - | let pmtStrAssetIdB = $ | |
524 | - | let pmtAssetNameB = $ | |
525 | - | let pmtDecimalsB = $ | |
511 | + | let $t01737217449 = getAssetInfo(pmtAssetIdA) | |
512 | + | let pmtStrAssetIdA = $t01737217449._1 | |
513 | + | let pmtAssetNameA = $t01737217449._2 | |
514 | + | let pmtDecimalsA = $t01737217449._3 | |
515 | + | let $t01745817535 = getAssetInfo(pmtAssetIdB) | |
516 | + | let pmtStrAssetIdB = $t01745817535._1 | |
517 | + | let pmtAssetNameB = $t01745817535._2 | |
518 | + | let pmtDecimalsB = $t01745817535._3 | |
526 | 519 | let firstHarvest = (args[0] == "true") | |
527 | 520 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
528 | 521 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
529 | 522 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
530 | 523 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
531 | 524 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
532 | 525 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
533 | 526 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
534 | 527 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
535 | 528 | let shareIssueId = calculateAssetId(shareIssue) | |
536 | 529 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
537 | 530 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
538 | 531 | else 0 | |
539 | 532 | if ((stake1 == stake1)) | |
540 | 533 | then { | |
541 | 534 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
542 | 535 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
543 | 536 | else 0 | |
544 | 537 | if ((stake2 == stake2)) | |
545 | 538 | then { | |
546 | 539 | 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)] | |
547 | 540 | if (firstHarvest) | |
548 | 541 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
549 | 542 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
550 | 543 | } | |
551 | 544 | else throw("Strict value is not equal to itself.") | |
552 | 545 | } | |
553 | 546 | else throw("Strict value is not equal to itself.") | |
554 | 547 | } | |
555 | 548 | } | |
556 | 549 | ||
557 | 550 | ||
558 | 551 | ||
559 | 552 | @Callable(i) | |
560 | 553 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
561 | 554 | let caller = Address(callerBytes) | |
562 | - | let $ | |
563 | - | let amtAssetA = $ | |
564 | - | let amtAssetB = $ | |
565 | - | let assetIdAStr = $ | |
566 | - | let assetIdBStr = $ | |
567 | - | let firstHarvest = $ | |
555 | + | let $t01975619956 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
556 | + | let amtAssetA = $t01975619956._1 | |
557 | + | let amtAssetB = $t01975619956._2 | |
558 | + | let assetIdAStr = $t01975619956._3 | |
559 | + | let assetIdBStr = $t01975619956._4 | |
560 | + | let firstHarvest = $t01975619956._5 | |
568 | 561 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
569 | 562 | then throw("Only admin can call this function") | |
570 | 563 | else if ((size(args) != 5)) | |
571 | 564 | then throw("Wrong args size") | |
572 | 565 | else if (isDefined(getBoolean(caller, kActive))) | |
573 | 566 | then throw("DApp is already active") | |
574 | 567 | else if ((assetIdAStr == assetIdBStr)) | |
575 | 568 | then throw("Assets must be different") | |
576 | 569 | else { | |
577 | - | let $ | |
578 | - | let pmtStrAssetIdA = $ | |
579 | - | let pmtAssetNameA = $ | |
580 | - | let pmtDecimalsA = $ | |
581 | - | let $ | |
582 | - | let pmtStrAssetIdB = $ | |
583 | - | let pmtAssetNameB = $ | |
584 | - | let pmtDecimalsB = $ | |
570 | + | let $t02039120468 = getAssetInfo(assetIdAStr) | |
571 | + | let pmtStrAssetIdA = $t02039120468._1 | |
572 | + | let pmtAssetNameA = $t02039120468._2 | |
573 | + | let pmtDecimalsA = $t02039120468._3 | |
574 | + | let $t02047720554 = getAssetInfo(assetIdBStr) | |
575 | + | let pmtStrAssetIdB = $t02047720554._1 | |
576 | + | let pmtAssetNameB = $t02047720554._2 | |
577 | + | let pmtDecimalsB = $t02047720554._3 | |
585 | 578 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
586 | 579 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
587 | 580 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
588 | 581 | let shareInitialSupply = 0 | |
589 | 582 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
590 | 583 | let shareIssueId = calculateAssetId(shareIssue) | |
591 | 584 | 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)] | |
592 | 585 | if (firstHarvest) | |
593 | 586 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
594 | 587 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
595 | 588 | } | |
596 | 589 | } | |
597 | 590 | ||
598 | 591 | ||
599 | 592 | ||
600 | 593 | @Callable(i) | |
601 | 594 | func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
602 | 595 | then throw("Only admin can call this function") | |
603 | 596 | else if ((size(args) != 1)) | |
604 | 597 | then throw("Wrong args size") | |
605 | 598 | else { | |
606 | 599 | let shareLimit = parseIntValue(args[0]) | |
607 | 600 | $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil)) | |
608 | 601 | })) | |
609 | 602 | ||
610 | 603 | ||
611 | 604 | ||
612 | 605 | @Callable(i) | |
613 | 606 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
614 | 607 | let caller = Address(callerBytes) | |
615 | - | let $ | |
616 | - | let pmtAmount = $ | |
617 | - | let pmtAssetId = $ | |
608 | + | let $t02298023056 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
609 | + | let pmtAmount = $t02298023056._1 | |
610 | + | let pmtAssetId = $t02298023056._2 | |
618 | 611 | let minAmountToReceive = parseIntValue(args[0]) | |
619 | - | let $ | |
620 | - | let strAssetIdA = $ | |
621 | - | let strAssetIdB = $ | |
622 | - | let assetIdA = $ | |
623 | - | let assetIdB = $ | |
624 | - | let $ | |
625 | - | let balanceA = $ | |
626 | - | let balanceB = $ | |
627 | - | let accountBalanceA = $ | |
628 | - | let accountBalanceB = $ | |
612 | + | let $t02312123197 = getPoolAssets(i.caller) | |
613 | + | let strAssetIdA = $t02312123197._1 | |
614 | + | let strAssetIdB = $t02312123197._2 | |
615 | + | let assetIdA = $t02312123197._3 | |
616 | + | let assetIdB = $t02312123197._4 | |
617 | + | let $t02320623312 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
618 | + | let balanceA = $t02320623312._1 | |
619 | + | let balanceB = $t02320623312._2 | |
620 | + | let accountBalanceA = $t02320623312._3 | |
621 | + | let accountBalanceB = $t02320623312._4 | |
629 | 622 | if ((size(args) != 1)) | |
630 | 623 | then throw("Wrong args size") | |
631 | 624 | else if (if ((balanceA == 0)) | |
632 | 625 | then true | |
633 | 626 | else (balanceB == 0)) | |
634 | 627 | then throw("Can't exchange with zero balance") | |
635 | 628 | else if ((0 >= minAmountToReceive)) | |
636 | 629 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
637 | 630 | else if ((size(pAmounts) != 1)) | |
638 | 631 | then throw("One attached payment expected") | |
639 | 632 | else if (!(containsElement([assetIdA, assetIdB], pmtAssetId))) | |
640 | 633 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
641 | 634 | else if (if ((balanceA > accountBalanceA)) | |
642 | 635 | then true | |
643 | 636 | else (balanceB > accountBalanceB)) | |
644 | 637 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
645 | 638 | else { | |
646 | - | let $ | |
647 | - | let fee = $ | |
648 | - | let govFee = $ | |
649 | - | let teamFee = $ | |
650 | - | let $ | |
639 | + | let $t02421224279 = getFeeParams(i.caller, i.originCaller) | |
640 | + | let fee = $t02421224279._1 | |
641 | + | let govFee = $t02421224279._2 | |
642 | + | let teamFee = $t02421224279._3 | |
643 | + | let $t02429224643 = if ((pmtAssetId == assetIdA)) | |
651 | 644 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee) | |
652 | 645 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee) | |
653 | - | let amountWithoutFee = $ | |
654 | - | let amountWithFee = $ | |
655 | - | let governanceReward = $ | |
656 | - | let teamReward = $ | |
657 | - | let $ | |
646 | + | let amountWithoutFee = $t02429224643._1 | |
647 | + | let amountWithFee = $t02429224643._2 | |
648 | + | let governanceReward = $t02429224643._3 | |
649 | + | let teamReward = $t02429224643._4 | |
650 | + | let $t02465724992 = if ((pmtAssetId == assetIdA)) | |
658 | 651 | then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB) | |
659 | 652 | else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA) | |
660 | - | let newBalanceA = $ | |
661 | - | let newBalanceB = $ | |
662 | - | let assetIdSend = $ | |
663 | - | let $ | |
653 | + | let newBalanceA = $t02465724992._1 | |
654 | + | let newBalanceB = $t02465724992._2 | |
655 | + | let assetIdSend = $t02465724992._3 | |
656 | + | let $t02500625266 = if ((pmtAssetId == assetIdA)) | |
664 | 657 | then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward)) | |
665 | 658 | else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount) | |
666 | - | let stakeAmountA = $ | |
667 | - | let stakeAmountB = $ | |
659 | + | let stakeAmountA = $t02500625266._1 | |
660 | + | let stakeAmountB = $t02500625266._2 | |
668 | 661 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
669 | 662 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
670 | 663 | else 0 | |
671 | 664 | if ((stake1 == stake1)) | |
672 | 665 | then { | |
673 | 666 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
674 | 667 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil) | |
675 | 668 | else 0 | |
676 | 669 | if ((stake2 == stake2)) | |
677 | 670 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend])) | |
678 | 671 | else throw("Strict value is not equal to itself.") | |
679 | 672 | } | |
680 | 673 | else throw("Strict value is not equal to itself.") | |
681 | 674 | } | |
682 | 675 | }))) | |
683 | 676 | ||
684 | 677 | ||
685 | 678 | ||
686 | 679 | @Callable(i) | |
687 | 680 | func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
688 | 681 | let caller = Address(callerBytes) | |
689 | 682 | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
690 | 683 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
691 | 684 | let stakeFarming = (args[0] == "true") | |
692 | 685 | let lockType = parseIntValue(args[1]) | |
693 | - | let $ | |
694 | - | let strAssetIdA = $ | |
695 | - | let strAssetIdB = $ | |
696 | - | let assetIdA = $ | |
697 | - | let assetIdB = $ | |
698 | - | let shareAssetId = $ | |
699 | - | let $ | |
700 | - | let balanceA = $ | |
701 | - | let balanceB = $ | |
702 | - | let accountBalanceA = $ | |
703 | - | let accountBalanceB = $ | |
704 | - | let shareAssetSupply = $ | |
686 | + | let $t02658126671 = getPoolAssets(i.caller) | |
687 | + | let strAssetIdA = $t02658126671._1 | |
688 | + | let strAssetIdB = $t02658126671._2 | |
689 | + | let assetIdA = $t02658126671._3 | |
690 | + | let assetIdB = $t02658126671._4 | |
691 | + | let shareAssetId = $t02658126671._5 | |
692 | + | let $t02668026804 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
693 | + | let balanceA = $t02668026804._1 | |
694 | + | let balanceB = $t02668026804._2 | |
695 | + | let accountBalanceA = $t02668026804._3 | |
696 | + | let accountBalanceB = $t02668026804._4 | |
697 | + | let shareAssetSupply = $t02668026804._5 | |
705 | 698 | if ((size(args) != 2)) | |
706 | 699 | then throw("Wrong args size") | |
707 | 700 | else if (if ((size(pAmounts) != 2)) | |
708 | 701 | then (size(pAmounts) != 3) | |
709 | 702 | else false) | |
710 | 703 | then throw("Two or three payments expected") | |
711 | 704 | else if (if ((pmtAssetIdA != assetIdA)) | |
712 | 705 | then true | |
713 | 706 | else (pmtAssetIdB != assetIdB)) | |
714 | 707 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
715 | 708 | else if (if ((balanceA > accountBalanceA)) | |
716 | 709 | then true | |
717 | 710 | else (balanceB > accountBalanceB)) | |
718 | 711 | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3)) | |
719 | 712 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
720 | 713 | then unit | |
721 | 714 | else pAssetIds[2], pAmounts[2])] | |
722 | 715 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
723 | 716 | else { | |
724 | - | let $ | |
725 | - | let shareTokenToPayAmount = $ | |
726 | - | let change = $ | |
727 | - | let changeAssetId = $ | |
728 | - | let pmtAmountA = $ | |
729 | - | let pmtAmountB = $ | |
717 | + | let $t02774127939 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply) | |
718 | + | let shareTokenToPayAmount = $t02774127939._1 | |
719 | + | let change = $t02774127939._2 | |
720 | + | let changeAssetId = $t02774127939._3 | |
721 | + | let pmtAmountA = $t02774127939._4 | |
722 | + | let pmtAmountB = $t02774127939._5 | |
730 | 723 | if ((shareTokenToPayAmount == 0)) | |
731 | 724 | then throw("Too small amount to replenish") | |
732 | 725 | else if ((0 > change)) | |
733 | 726 | then throw("Change < 0") | |
734 | 727 | else { | |
735 | 728 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
736 | 729 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil) | |
737 | 730 | else 0 | |
738 | 731 | if ((stake1 == stake1)) | |
739 | 732 | then { | |
740 | 733 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
741 | 734 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil) | |
742 | 735 | else 0 | |
743 | 736 | if ((stake2 == stake2)) | |
744 | 737 | then { | |
745 | 738 | let shareTokenST = if (stakeFarming) | |
746 | 739 | then { | |
747 | 740 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3)) | |
748 | 741 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
749 | 742 | then unit | |
750 | 743 | else pAssetIds[2], pAmounts[2])] | |
751 | 744 | else nil)) | |
752 | 745 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
753 | 746 | if ((reissue == reissue)) | |
754 | 747 | then { | |
755 | 748 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
756 | 749 | if ((stake3 == stake3)) | |
757 | 750 | then nil | |
758 | 751 | else throw("Strict value is not equal to itself.") | |
759 | 752 | } | |
760 | 753 | else throw("Strict value is not equal to itself.") | |
761 | 754 | } | |
762 | 755 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
763 | 756 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil)) | |
764 | 757 | } | |
765 | 758 | else throw("Strict value is not equal to itself.") | |
766 | 759 | } | |
767 | 760 | else throw("Strict value is not equal to itself.") | |
768 | 761 | } | |
769 | 762 | } | |
770 | 763 | }))) | |
771 | 764 | ||
772 | 765 | ||
773 | 766 | ||
774 | 767 | @Callable(i) | |
775 | 768 | func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
776 | 769 | let caller = Address(callerBytes) | |
777 | 770 | let pmtAssetId = parsePaymentAsset(pAssetIds[0]) | |
778 | 771 | let pmtAmount = pAmounts[0] | |
779 | 772 | let virtGetMinAmount = parseIntValue(args[0]) | |
780 | 773 | let stakeFarming = (args[1] == "true") | |
781 | 774 | let lockType = parseIntValue(args[2]) | |
782 | - | let $ | |
783 | - | let strAssetIdA = $ | |
784 | - | let strAssetIdB = $ | |
785 | - | let assetIdA = $ | |
786 | - | let assetIdB = $ | |
787 | - | let shareAssetId = $ | |
788 | - | let $ | |
789 | - | let balanceA = $ | |
790 | - | let balanceB = $ | |
791 | - | let accountBalanceA = $ | |
792 | - | let accountBalanceB = $ | |
793 | - | let shareAssetSupply = $ | |
775 | + | let $t03019830288 = getPoolAssets(i.caller) | |
776 | + | let strAssetIdA = $t03019830288._1 | |
777 | + | let strAssetIdB = $t03019830288._2 | |
778 | + | let assetIdA = $t03019830288._3 | |
779 | + | let assetIdB = $t03019830288._4 | |
780 | + | let shareAssetId = $t03019830288._5 | |
781 | + | let $t03029330417 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
782 | + | let balanceA = $t03029330417._1 | |
783 | + | let balanceB = $t03029330417._2 | |
784 | + | let accountBalanceA = $t03029330417._3 | |
785 | + | let accountBalanceB = $t03029330417._4 | |
786 | + | let shareAssetSupply = $t03029330417._5 | |
794 | 787 | let initial = ((balanceA + balanceB) == 0) | |
795 | 788 | if ((size(args) != 3)) | |
796 | 789 | then throw("Wrong args size") | |
797 | 790 | else if (if ((size(pAmounts) != 1)) | |
798 | 791 | then (size(pAmounts) != 2) | |
799 | 792 | else false) | |
800 | 793 | then throw("Two or one attached assets expected") | |
801 | 794 | else if (if ((pmtAssetId != assetIdA)) | |
802 | 795 | then (pmtAssetId != assetIdB) | |
803 | 796 | else false) | |
804 | 797 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
805 | 798 | else if (initial) | |
806 | 799 | then throw("For initial exchanger you need to use two tokens") | |
807 | 800 | else if (if ((balanceA > accountBalanceA)) | |
808 | 801 | then true | |
809 | 802 | else (balanceB > accountBalanceB)) | |
810 | 803 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2)) | |
811 | 804 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
812 | 805 | then unit | |
813 | 806 | else pAssetIds[2], pAmounts[2])] | |
814 | 807 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
815 | 808 | else { | |
816 | - | let $ | |
817 | - | let fee = $ | |
818 | - | let govFee = $ | |
819 | - | let teamFee = $ | |
820 | - | let $ | |
821 | - | let pmtAssetIdStr = $ | |
822 | - | let pmtAssetIdName = $ | |
823 | - | let $ | |
824 | - | let shareTokenToPayAmount = $ | |
825 | - | let newBalanceA = $ | |
826 | - | let newBalanceB = $ | |
827 | - | let govReward = $ | |
828 | - | let teamReward = $ | |
829 | - | let govRewardAsset = $ | |
809 | + | let $t03132931396 = getFeeParams(i.caller, i.originCaller) | |
810 | + | let fee = $t03132931396._1 | |
811 | + | let govFee = $t03132931396._2 | |
812 | + | let teamFee = $t03132931396._3 | |
813 | + | let $t03140531467 = getAssetInfo(pmtAssetId) | |
814 | + | let pmtAssetIdStr = $t03140531467._1 | |
815 | + | let pmtAssetIdName = $t03140531467._2 | |
816 | + | let $t03148531731 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount) | |
817 | + | let shareTokenToPayAmount = $t03148531731._1 | |
818 | + | let newBalanceA = $t03148531731._2 | |
819 | + | let newBalanceB = $t03148531731._3 | |
820 | + | let govReward = $t03148531731._4 | |
821 | + | let teamReward = $t03148531731._5 | |
822 | + | let govRewardAsset = $t03148531731._6 | |
830 | 823 | let govRewardAssetStr = if ((govRewardAsset == assetIdA)) | |
831 | 824 | then strAssetIdA | |
832 | 825 | else strAssetIdB | |
833 | 826 | if ((shareTokenToPayAmount == 0)) | |
834 | 827 | then throw("Too small amount to replenish") | |
835 | 828 | else { | |
836 | 829 | let stake1 = if (contains(stakingAssets, pmtAssetIdStr)) | |
837 | 830 | then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil) | |
838 | 831 | else 0 | |
839 | 832 | if ((stake1 == stake1)) | |
840 | 833 | then { | |
841 | 834 | let stake2 = if (contains(stakingAssets, govRewardAssetStr)) | |
842 | 835 | then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil) | |
843 | 836 | else 0 | |
844 | 837 | if ((stake2 == stake2)) | |
845 | 838 | then { | |
846 | 839 | let shareTokenST = if (stakeFarming) | |
847 | 840 | then { | |
848 | 841 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2)) | |
849 | 842 | then [AttachedPayment(if ((pAssetIds[1] == base58'')) | |
850 | 843 | then unit | |
851 | 844 | else pAssetIds[1], pAmounts[1])] | |
852 | 845 | else nil)) | |
853 | 846 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
854 | 847 | if ((reissue == reissue)) | |
855 | 848 | then { | |
856 | 849 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
857 | 850 | if ((stake3 == stake3)) | |
858 | 851 | then nil | |
859 | 852 | else throw("Strict value is not equal to itself.") | |
860 | 853 | } | |
861 | 854 | else throw("Strict value is not equal to itself.") | |
862 | 855 | } | |
863 | 856 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
864 | 857 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil)) | |
865 | 858 | } | |
866 | 859 | else throw("Strict value is not equal to itself.") | |
867 | 860 | } | |
868 | 861 | else throw("Strict value is not equal to itself.") | |
869 | 862 | } | |
870 | 863 | } | |
871 | 864 | }))) | |
872 | 865 | ||
873 | 866 | ||
874 | 867 | ||
875 | 868 | @Callable(i) | |
876 | 869 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
877 | 870 | let caller = Address(callerBytes) | |
878 | - | let $ | |
879 | - | let strAssetIdA = $ | |
880 | - | let strAssetIdB = $ | |
881 | - | let assetIdA = $ | |
882 | - | let assetIdB = $ | |
883 | - | let shareAssetId = $ | |
884 | - | let $ | |
885 | - | let balanceA = $ | |
886 | - | let balanceB = $ | |
887 | - | let accountBalanceA = $ | |
888 | - | let accountBalanceB = $ | |
889 | - | let shareAssetSupply = $ | |
890 | - | let $ | |
871 | + | let $t03379933889 = getPoolAssets(i.caller) | |
872 | + | let strAssetIdA = $t03379933889._1 | |
873 | + | let strAssetIdB = $t03379933889._2 | |
874 | + | let assetIdA = $t03379933889._3 | |
875 | + | let assetIdB = $t03379933889._4 | |
876 | + | let shareAssetId = $t03379933889._5 | |
877 | + | let $t03389834022 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
878 | + | let balanceA = $t03389834022._1 | |
879 | + | let balanceB = $t03389834022._2 | |
880 | + | let accountBalanceA = $t03389834022._3 | |
881 | + | let accountBalanceB = $t03389834022._4 | |
882 | + | let shareAssetSupply = $t03389834022._5 | |
883 | + | let $t03403134411 = if ((size(pAmounts) == 1)) | |
891 | 884 | then { | |
892 | 885 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
893 | 886 | if ((pAsset != shareAssetId)) | |
894 | 887 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
895 | 888 | else $Tuple2(pAmounts[0], pAsset) | |
896 | 889 | } | |
897 | 890 | else $Tuple2(0, shareAssetId) | |
898 | - | let pmtAmount = $ | |
899 | - | let pmtAssetId = $ | |
891 | + | let pmtAmount = $t03403134411._1 | |
892 | + | let pmtAssetId = $t03403134411._2 | |
900 | 893 | if ((size(args) != 1)) | |
901 | 894 | then throw("Wrong args size") | |
902 | 895 | else if ((size(pAmounts) > 1)) | |
903 | 896 | then throw("One attached payment expected") | |
904 | 897 | else if (if ((balanceA > accountBalanceA)) | |
905 | 898 | then true | |
906 | 899 | else (balanceB > accountBalanceB)) | |
907 | 900 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
908 | 901 | else { | |
909 | 902 | let unlockAmount = parseIntValue(valueOrElse(args[0], "0")) | |
910 | 903 | let unlock = if ((unlockAmount > 0)) | |
911 | 904 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
912 | 905 | else 0 | |
913 | 906 | if ((unlock == unlock)) | |
914 | 907 | then { | |
915 | 908 | let withdrawAmount = (pmtAmount + unlockAmount) | |
916 | 909 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
917 | 910 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
918 | 911 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
919 | 912 | then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
920 | 913 | else 0 | |
921 | 914 | if ((stake1 == stake1)) | |
922 | 915 | then { | |
923 | 916 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
924 | 917 | then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
925 | 918 | else 0 | |
926 | 919 | if ((stake2 == stake2)) | |
927 | 920 | 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)) | |
928 | 921 | else throw("Strict value is not equal to itself.") | |
929 | 922 | } | |
930 | 923 | else throw("Strict value is not equal to itself.") | |
931 | 924 | } | |
932 | 925 | else throw("Strict value is not equal to itself.") | |
933 | 926 | } | |
934 | 927 | })) | |
935 | 928 | ||
936 | 929 | ||
937 | 930 | ||
938 | 931 | @Callable(i) | |
939 | 932 | func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
940 | 933 | let caller = Address(callerBytes) | |
941 | 934 | let withdrawAsset = if ((args[0] == "")) | |
942 | 935 | then unit | |
943 | 936 | else fromBase58String(args[0]) | |
944 | - | let $ | |
945 | - | let strAssetIdA = $ | |
946 | - | let strAssetIdB = $ | |
947 | - | let assetIdA = $ | |
948 | - | let assetIdB = $ | |
949 | - | let shareAssetId = $ | |
950 | - | let $ | |
951 | - | let balanceA = $ | |
952 | - | let balanceB = $ | |
953 | - | let accountBalanceA = $ | |
954 | - | let accountBalanceB = $ | |
955 | - | let shareAssetSupply = $ | |
956 | - | let $ | |
937 | + | let $t03662936719 = getPoolAssets(i.caller) | |
938 | + | let strAssetIdA = $t03662936719._1 | |
939 | + | let strAssetIdB = $t03662936719._2 | |
940 | + | let assetIdA = $t03662936719._3 | |
941 | + | let assetIdB = $t03662936719._4 | |
942 | + | let shareAssetId = $t03662936719._5 | |
943 | + | let $t03672836852 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
944 | + | let balanceA = $t03672836852._1 | |
945 | + | let balanceB = $t03672836852._2 | |
946 | + | let accountBalanceA = $t03672836852._3 | |
947 | + | let accountBalanceB = $t03672836852._4 | |
948 | + | let shareAssetSupply = $t03672836852._5 | |
949 | + | let $t03686137213 = if ((size(pAmounts) == 1)) | |
957 | 950 | then { | |
958 | 951 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
959 | 952 | if ((pAsset != shareAssetId)) | |
960 | 953 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
961 | 954 | else $Tuple2(pAmounts[0], pAsset) | |
962 | 955 | } | |
963 | 956 | else $Tuple2(0, shareAssetId) | |
964 | - | let pmtAmount = $ | |
965 | - | let pmtAssetId = $ | |
957 | + | let pmtAmount = $t03686137213._1 | |
958 | + | let pmtAssetId = $t03686137213._2 | |
966 | 959 | let virtMinToRecive = parseIntValue(args[1]) | |
967 | 960 | if ((size(args) != 3)) | |
968 | 961 | then throw("Wrong args size") | |
969 | 962 | else if ((size(pAmounts) > 1)) | |
970 | 963 | then throw("One attached payment expected") | |
971 | 964 | else if ((pmtAssetId != shareAssetId)) | |
972 | 965 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
973 | 966 | else if (!(containsElement([assetIdA, assetIdB], withdrawAsset))) | |
974 | 967 | then throw("Incorrect withdraw asset.") | |
975 | 968 | else if (if ((balanceA > accountBalanceA)) | |
976 | 969 | then true | |
977 | 970 | else (balanceB > accountBalanceB)) | |
978 | 971 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
979 | 972 | else { | |
980 | 973 | let unlockAmount = parseIntValue(valueOrElse(args[2], "0")) | |
981 | 974 | let unlock = if ((unlockAmount > 0)) | |
982 | 975 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
983 | 976 | else 0 | |
984 | 977 | if ((unlock == unlock)) | |
985 | 978 | then { | |
986 | 979 | let withdrawAmount = (pmtAmount + unlockAmount) | |
987 | 980 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
988 | 981 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
989 | - | let $ | |
990 | - | let fee = $ | |
991 | - | let govFee = $ | |
992 | - | let teamFee = $ | |
993 | - | let $ | |
982 | + | let $t03848038547 = getFeeParams(i.caller, i.originCaller) | |
983 | + | let fee = $t03848038547._1 | |
984 | + | let govFee = $t03848038547._2 | |
985 | + | let teamFee = $t03848038547._3 | |
986 | + | let $t03856038974 = if ((withdrawAsset == assetIdA)) | |
994 | 987 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee) | |
995 | 988 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee) | |
996 | - | let amountWithoutFee = $ | |
997 | - | let amountWithFee = $ | |
998 | - | let governanceReward = $ | |
999 | - | let teamReward = $ | |
1000 | - | let $ | |
989 | + | let amountWithoutFee = $t03856038974._1 | |
990 | + | let amountWithFee = $t03856038974._2 | |
991 | + | let governanceReward = $t03856038974._3 | |
992 | + | let teamReward = $t03856038974._4 | |
993 | + | let $t03898740297 = if ((withdrawAsset == assetIdA)) | |
1001 | 994 | then { | |
1002 | 995 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
1003 | 996 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil) | |
1004 | 997 | else 0 | |
1005 | 998 | if ((unstake == unstake)) | |
1006 | 999 | then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)]) | |
1007 | 1000 | else throw("Strict value is not equal to itself.") | |
1008 | 1001 | } | |
1009 | 1002 | else { | |
1010 | 1003 | let unstake = if (contains(stakingAssets, strAssetIdB)) | |
1011 | 1004 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil) | |
1012 | 1005 | else 0 | |
1013 | 1006 | if ((unstake == unstake)) | |
1014 | 1007 | then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
1015 | 1008 | else throw("Strict value is not equal to itself.") | |
1016 | 1009 | } | |
1017 | - | let newBalanceA = $ | |
1018 | - | let newBalanceB = $ | |
1019 | - | let govRewardAssetId = $ | |
1020 | - | let userTransfer = $ | |
1010 | + | let newBalanceA = $t03898740297._1 | |
1011 | + | let newBalanceB = $t03898740297._2 | |
1012 | + | let govRewardAssetId = $t03898740297._3 | |
1013 | + | let userTransfer = $t03898740297._4 | |
1021 | 1014 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil)) | |
1022 | 1015 | } | |
1023 | 1016 | else throw("Strict value is not equal to itself.") | |
1024 | 1017 | } | |
1025 | 1018 | }))) | |
1026 | 1019 | ||
1027 | 1020 | ||
1028 | 1021 | ||
1029 | 1022 | @Callable(i) | |
1030 | 1023 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
1031 | - | let $ | |
1032 | - | let strAssetIdA = $ | |
1033 | - | let strAssetIdB = $ | |
1034 | - | let assetIdA = $ | |
1035 | - | let assetIdB = $ | |
1024 | + | let $t04105741133 = getPoolAssets(i.caller) | |
1025 | + | let strAssetIdA = $t04105741133._1 | |
1026 | + | let strAssetIdB = $t04105741133._2 | |
1027 | + | let assetIdA = $t04105741133._3 | |
1028 | + | let assetIdB = $t04105741133._4 | |
1036 | 1029 | let claim = if (if ((assetIdA == USDN)) | |
1037 | 1030 | then true | |
1038 | 1031 | else (assetIdB == USDN)) | |
1039 | 1032 | then invoke(i.caller, "claimNetrinoRewards", nil, nil) | |
1040 | 1033 | else 0 | |
1041 | 1034 | if ((claim == claim)) | |
1042 | 1035 | then { | |
1043 | - | let $ | |
1044 | - | let balanceA = $ | |
1045 | - | let balanceB = $ | |
1046 | - | let accountBalanceA = $ | |
1047 | - | let accountBalanceB = $ | |
1036 | + | let $t04129341399 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
1037 | + | let balanceA = $t04129341399._1 | |
1038 | + | let balanceB = $t04129341399._2 | |
1039 | + | let accountBalanceA = $t04129341399._3 | |
1040 | + | let accountBalanceB = $t04129341399._4 | |
1048 | 1041 | let amountEnrollA = (accountBalanceA - balanceA) | |
1049 | 1042 | let amountEnrollB = (accountBalanceB - balanceB) | |
1050 | 1043 | if ((size(args) != 0)) | |
1051 | 1044 | then throw("Wrong args size") | |
1052 | 1045 | else if ((moneyBoxAddress != i.originCaller)) | |
1053 | 1046 | then throw("Only the wallet can call this function") | |
1054 | 1047 | else if (if ((0 > amountEnrollA)) | |
1055 | 1048 | then true | |
1056 | 1049 | else (0 > amountEnrollB)) | |
1057 | 1050 | then suspend("Enroll amount negative") | |
1058 | 1051 | else if (if ((amountEnrollA == 0)) | |
1059 | 1052 | then (amountEnrollB == 0) | |
1060 | 1053 | else false) | |
1061 | 1054 | then throw("No money to take") | |
1062 | 1055 | else { | |
1063 | 1056 | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
1064 | 1057 | then (amountEnrollA > 0) | |
1065 | 1058 | else false) | |
1066 | 1059 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil) | |
1067 | 1060 | else 0 | |
1068 | 1061 | if ((stake1 == stake1)) | |
1069 | 1062 | then { | |
1070 | 1063 | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
1071 | 1064 | then (amountEnrollB > 0) | |
1072 | 1065 | else false) | |
1073 | 1066 | then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil) | |
1074 | 1067 | else 0 | |
1075 | 1068 | if ((stake2 == stake2)) | |
1076 | 1069 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil)) | |
1077 | 1070 | else throw("Strict value is not equal to itself.") | |
1078 | 1071 | } | |
1079 | 1072 | else throw("Strict value is not equal to itself.") | |
1080 | 1073 | } | |
1081 | 1074 | } | |
1082 | 1075 | else throw("Strict value is not equal to itself.") | |
1083 | 1076 | })) | |
1084 | 1077 | ||
1085 | 1078 | ||
1086 | 1079 | @Verifier(tx) | |
1087 | 1080 | func verify () = { | |
1088 | 1081 | let multiSignedByAdmins = { | |
1089 | 1082 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1090 | 1083 | then 1 | |
1091 | 1084 | else 0 | |
1092 | 1085 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
1093 | 1086 | then 1 | |
1094 | 1087 | else 0 | |
1095 | 1088 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
1096 | 1089 | then 1 | |
1097 | 1090 | else 0 | |
1098 | 1091 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
1099 | 1092 | } | |
1100 | 1093 | multiSignedByAdmins | |
1101 | 1094 | } | |
1102 | 1095 |
github/deemru/w8io/026f985 192.07 ms ◑