tx · Es1Nv9BoaMMHN6CUCckcLuH2RJURXEG3EET5mCvjs46b 3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj: -0.05100000 Waves 2022.07.15 09:26 [2140493] smart account 3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj > SELF 0.00000000 Waves
{ "type": 13, "id": "Es1Nv9BoaMMHN6CUCckcLuH2RJURXEG3EET5mCvjs46b", "fee": 5100000, "feeAssetId": null, "timestamp": 1657866430880, "version": 2, "chainId": 84, "sender": "3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj", "senderPublicKey": "AJNTN7EtP9dsAmPzcKRp9bRMvzZL4uwkmVxQuFuar3Qr", "proofs": [ "2eHY3XANhXomaHCwZABmD6FRUwxv7z5aNc8HMPHtTkWomEq8vz4y3MjQiUANi1u6oNskwgEf7DGhvtzquTrkW8Ad" ], "script": "base64:AAIFAAAAAAAAAEkIAhIAEgASCQoHAQEBAQEBARIOCgwBAQEBAQEBCAgIAQESBQoDAQEBEgUKAwEBARIAEgMKAQESABIDCgEIEgASAwoBCBIDCgEIAAAAdgAAAAAJa19vcmFfa2V5AgAAAAlrX29yYV9rZXkAAAAAD2tfb3JhX2Jsb2NrX2tleQIAAAAPa19vcmFfYmxvY2tfa2V5AAAAAAVrX29yYQIAAAAFa19vcmEAAAAACWtfYmFsYW5jZQIAAAAJa19iYWxhbmNlAAAAAA5rX3Bvc2l0aW9uU2l6ZQIAAAAOa19wb3NpdGlvblNpemUAAAAAEGtfcG9zaXRpb25NYXJnaW4CAAAAEGtfcG9zaXRpb25NYXJnaW4AAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwAAAAALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CAAAAEmtfcG9zaXRpb25GcmFjdGlvbgAAAAANa19pbml0aWFsaXplZAIAAAANa19pbml0aWFsaXplZAAAA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Z1BheW1lbnQJAQAAAAFzAAAAAQkBAAAADmdldE1hcmdpblJhdGlvAAAAAQUAAAAHX3RyYWRlcgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQEAAAAOYWRtaW5QdWJsaWNLZXkAAAAA7dwFyw==", "height": 2140493, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D9cjd63FWQLDogszsMaRrYC1c14PdYWRW1mZeNUjfwT3 Next: GUtmTSVCPF7UyQUsXZQbE2iZX8kH3jxZ2XA297S4yJxm Diff:
Old | New | Differences | |
---|---|---|---|
419 | 419 | let x3 = $t01626916376._4 | |
420 | 420 | outPositionNotional | |
421 | 421 | } | |
422 | - | else (positionSizeAbs | |
422 | + | else muld(positionSizeAbs, getOracleTwapPrice()) | |
423 | 423 | let unrealizedPnl = if (isShort) | |
424 | 424 | then (positionOpenNotional - positionNotional) | |
425 | 425 | else (positionNotional - positionOpenNotional) | |
432 | 432 | ||
433 | 433 | ||
434 | 434 | func getMarginRatioByOption (_trader,_option) = { | |
435 | - | let $ | |
436 | - | let positionSize = $ | |
437 | - | let positionMargin = $ | |
438 | - | let pon = $ | |
439 | - | let positionLstUpdCPF = $ | |
440 | - | let $ | |
441 | - | let positionNotional = $ | |
442 | - | let unrealizedPnl = $ | |
443 | - | let $ | |
444 | - | let remainMargin = $ | |
445 | - | let badDebt = $ | |
435 | + | let $t01704617157 = getPosition(_trader) | |
436 | + | let positionSize = $t01704617157._1 | |
437 | + | let positionMargin = $t01704617157._2 | |
438 | + | let pon = $t01704617157._3 | |
439 | + | let positionLstUpdCPF = $t01704617157._4 | |
440 | + | let $t01716317256 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
441 | + | let positionNotional = $t01716317256._1 | |
442 | + | let unrealizedPnl = $t01716317256._2 | |
443 | + | let $t01726117427 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
444 | + | let remainMargin = $t01726117427._1 | |
445 | + | let badDebt = $t01726117427._2 | |
446 | 446 | calcMarginRatio(remainMargin, badDebt, positionNotional) | |
447 | 447 | } | |
448 | 448 | ||
451 | 451 | ||
452 | 452 | ||
453 | 453 | func internalClosePosition (_trader) = { | |
454 | - | let $ | |
455 | - | let positionSize = $ | |
456 | - | let positionMargin = $ | |
457 | - | let positionOpenNotional = $ | |
458 | - | let positionLstUpdCPF = $ | |
459 | - | let $ | |
460 | - | let x1 = $ | |
461 | - | let unrealizedPnl = $ | |
462 | - | let $ | |
463 | - | let remainMargin = $ | |
464 | - | let badDebt = $ | |
454 | + | let $t01774317871 = getPosition(_trader) | |
455 | + | let positionSize = $t01774317871._1 | |
456 | + | let positionMargin = $t01774317871._2 | |
457 | + | let positionOpenNotional = $t01774317871._3 | |
458 | + | let positionLstUpdCPF = $t01774317871._4 | |
459 | + | let $t01787717964 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
460 | + | let x1 = $t01787717964._1 | |
461 | + | let unrealizedPnl = $t01787717964._2 | |
462 | + | let $t01796918137 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
463 | + | let remainMargin = $t01796918137._1 | |
464 | + | let badDebt = $t01796918137._2 | |
465 | 465 | let exchangedPositionSize = -(positionSize) | |
466 | 466 | let realizedPnl = unrealizedPnl | |
467 | 467 | let marginToVault = -(remainMargin) | |
468 | - | let $ | |
469 | - | let exchangedQuoteAssetAmount = $ | |
470 | - | let quoteAssetReserveAfter = $ | |
471 | - | let baseAssetReserveAfter = $ | |
472 | - | let totalPositionSizeAfter = $ | |
473 | - | let cumulativeNotionalAfter = $ | |
474 | - | let totalLongAfter = $ | |
475 | - | let totalShortAfter = $ | |
468 | + | let $t01826418545 = swapOutput((positionSize > 0), abs(positionSize)) | |
469 | + | let exchangedQuoteAssetAmount = $t01826418545._1 | |
470 | + | let quoteAssetReserveAfter = $t01826418545._2 | |
471 | + | let baseAssetReserveAfter = $t01826418545._3 | |
472 | + | let totalPositionSizeAfter = $t01826418545._4 | |
473 | + | let cumulativeNotionalAfter = $t01826418545._5 | |
474 | + | let totalLongAfter = $t01826418545._6 | |
475 | + | let totalShortAfter = $t01826418545._7 | |
476 | 476 | let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional) | |
477 | 477 | $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter) | |
478 | 478 | } | |
638 | 638 | else paused()) | |
639 | 639 | then throw("Invalid decreasePosition parameters") | |
640 | 640 | else { | |
641 | - | let $ | |
642 | - | let oldPositionSize = $ | |
643 | - | let oldPositionMargin = $ | |
644 | - | let oldPositionOpenNotional = $ | |
645 | - | let oldPositionLstUpdCPF = $ | |
641 | + | let $t02838628538 = getPosition(toString(i.caller)) | |
642 | + | let oldPositionSize = $t02838628538._1 | |
643 | + | let oldPositionMargin = $t02838628538._2 | |
644 | + | let oldPositionOpenNotional = $t02838628538._3 | |
645 | + | let oldPositionLstUpdCPF = $t02838628538._4 | |
646 | 646 | let _direction = if ((oldPositionSize > 0)) | |
647 | 647 | then DIR_SHORT | |
648 | 648 | else DIR_LONG | |
649 | 649 | let isAdd = (_direction == DIR_LONG) | |
650 | 650 | let openNotional = muld(_amount, _leverage) | |
651 | - | let $ | |
652 | - | let oldPositionNotional = $ | |
653 | - | let unrealizedPnl = $ | |
654 | - | let $ | |
651 | + | let $t02871128827 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
652 | + | let oldPositionNotional = $t02871128827._1 | |
653 | + | let unrealizedPnl = $t02871128827._2 | |
654 | + | let $t02883331382 = if ((oldPositionNotional > openNotional)) | |
655 | 655 | then { | |
656 | - | let $ | |
657 | - | let exchangedPositionSize = $ | |
658 | - | let quoteAssetReserveAfter = $ | |
659 | - | let baseAssetReserveAfter = $ | |
660 | - | let totalPositionSizeAfter = $ | |
661 | - | let cumulativeNotionalAfter = $ | |
656 | + | let $t02921029429 = swapInput(isAdd, openNotional) | |
657 | + | let exchangedPositionSize = $t02921029429._1 | |
658 | + | let quoteAssetReserveAfter = $t02921029429._2 | |
659 | + | let baseAssetReserveAfter = $t02921029429._3 | |
660 | + | let totalPositionSizeAfter = $t02921029429._4 | |
661 | + | let cumulativeNotionalAfter = $t02921029429._5 | |
662 | 662 | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
663 | 663 | if (if ((_minBaseAssetAmount != 0)) | |
664 | 664 | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
666 | 666 | then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
667 | 667 | else { | |
668 | 668 | let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize)) | |
669 | - | let $ | |
670 | - | let remainMargin = $ | |
671 | - | let badDebt = $ | |
672 | - | let fundingPayment = $ | |
669 | + | let $t02986630111 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
670 | + | let remainMargin = $t02986630111._1 | |
671 | + | let badDebt = $t02986630111._2 | |
672 | + | let fundingPayment = $t02986630111._3 | |
673 | 673 | let exchangedQuoteAssetAmount = openNotional | |
674 | 674 | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
675 | 675 | let remainOpenNotional = if ((oldPositionSize > 0)) | |
684 | 684 | } | |
685 | 685 | } | |
686 | 686 | else throw("Close position first") | |
687 | - | let newPositionSize = $ | |
688 | - | let newPositionRemainMargin = $ | |
689 | - | let newPositionOpenNotional = $ | |
690 | - | let newPositionLatestCPF = $ | |
691 | - | let baseAssetReserveAfter = $ | |
692 | - | let quoteAssetReserveAfter = $ | |
693 | - | let totalPositionSizeAfter = $ | |
694 | - | let cumulativeNotionalAfter = $ | |
695 | - | let openInterestNotionalAfter = $ | |
696 | - | let totalLongAfter = $ | |
697 | - | let totalShortAfter = $ | |
687 | + | let newPositionSize = $t02883331382._1 | |
688 | + | let newPositionRemainMargin = $t02883331382._2 | |
689 | + | let newPositionOpenNotional = $t02883331382._3 | |
690 | + | let newPositionLatestCPF = $t02883331382._4 | |
691 | + | let baseAssetReserveAfter = $t02883331382._5 | |
692 | + | let quoteAssetReserveAfter = $t02883331382._6 | |
693 | + | let totalPositionSizeAfter = $t02883331382._7 | |
694 | + | let cumulativeNotionalAfter = $t02883331382._8 | |
695 | + | let openInterestNotionalAfter = $t02883331382._9 | |
696 | + | let totalLongAfter = $t02883331382._10 | |
697 | + | let totalShortAfter = $t02883331382._11 | |
698 | 698 | (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) | |
699 | 699 | } | |
700 | 700 | ||
724 | 724 | else { | |
725 | 725 | let feeAmount = muld(_rawAmount, fee()) | |
726 | 726 | let _amount = (_rawAmount - feeAmount) | |
727 | - | let $ | |
728 | - | let oldPositionSize = $ | |
729 | - | let oldPositionMargin = $ | |
730 | - | let oldPositionOpenNotional = $ | |
731 | - | let oldPositionLstUpdCPF = $ | |
727 | + | let $t03241832570 = getPosition(toString(i.caller)) | |
728 | + | let oldPositionSize = $t03241832570._1 | |
729 | + | let oldPositionMargin = $t03241832570._2 | |
730 | + | let oldPositionOpenNotional = $t03241832570._3 | |
731 | + | let oldPositionLstUpdCPF = $t03241832570._4 | |
732 | 732 | let isNewPosition = (oldPositionSize == 0) | |
733 | 733 | let isSameDirection = if ((oldPositionSize > 0)) | |
734 | 734 | then (_direction == DIR_LONG) | |
737 | 737 | then isSameDirection | |
738 | 738 | else false | |
739 | 739 | let isAdd = (_direction == DIR_LONG) | |
740 | - | let $ | |
740 | + | let $t03285935248 = if (if (isNewPosition) | |
741 | 741 | then true | |
742 | 742 | else expandExisting) | |
743 | 743 | then { | |
744 | 744 | let openNotional = muld(_amount, _leverage) | |
745 | - | let $ | |
746 | - | let amountBaseAssetBought = $ | |
747 | - | let quoteAssetReserveAfter = $ | |
748 | - | let baseAssetReserveAfter = $ | |
749 | - | let totalPositionSizeAfter = $ | |
750 | - | let cumulativeNotionalAfter = $ | |
745 | + | let $t03328333489 = swapInput(isAdd, openNotional) | |
746 | + | let amountBaseAssetBought = $t03328333489._1 | |
747 | + | let quoteAssetReserveAfter = $t03328333489._2 | |
748 | + | let baseAssetReserveAfter = $t03328333489._3 | |
749 | + | let totalPositionSizeAfter = $t03328333489._4 | |
750 | + | let cumulativeNotionalAfter = $t03328333489._5 | |
751 | 751 | if (if ((_minBaseAssetAmount != 0)) | |
752 | 752 | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
753 | 753 | else false) | |
755 | 755 | else { | |
756 | 756 | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
757 | 757 | let increaseMarginRequirement = divd(openNotional, _leverage) | |
758 | - | let $ | |
759 | - | let remainMargin = $ | |
760 | - | let x1 = $ | |
761 | - | let x2 = $ | |
758 | + | let $t03387034109 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
759 | + | let remainMargin = $t03387034109._1 | |
760 | + | let x1 = $t03387034109._2 | |
761 | + | let x2 = $t03387034109._3 | |
762 | 762 | $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0)) | |
763 | 763 | then abs(amountBaseAssetBought) | |
764 | 764 | else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize)) | |
768 | 768 | } | |
769 | 769 | else { | |
770 | 770 | let openNotional = muld(_amount, _leverage) | |
771 | - | let $ | |
772 | - | let oldPositionNotional = $ | |
773 | - | let unrealizedPnl = $ | |
771 | + | let $t03494135057 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
772 | + | let oldPositionNotional = $t03494135057._1 | |
773 | + | let unrealizedPnl = $t03494135057._2 | |
774 | 774 | if ((oldPositionNotional > openNotional)) | |
775 | 775 | then throw("Use decreasePosition to decrease position size") | |
776 | 776 | else throw("Close position first") | |
777 | 777 | } | |
778 | - | let newPositionSize = $ | |
779 | - | let newPositionRemainMargin = $ | |
780 | - | let newPositionOpenNotional = $ | |
781 | - | let newPositionLatestCPF = $ | |
782 | - | let baseAssetReserveAfter = $ | |
783 | - | let quoteAssetReserveAfter = $ | |
784 | - | let totalPositionSizeAfter = $ | |
785 | - | let cumulativeNotionalAfter = $ | |
786 | - | let openInterestNotionalAfter = $ | |
787 | - | let totalLongAfter = $ | |
788 | - | let totalShortAfter = $ | |
778 | + | let newPositionSize = $t03285935248._1 | |
779 | + | let newPositionRemainMargin = $t03285935248._2 | |
780 | + | let newPositionOpenNotional = $t03285935248._3 | |
781 | + | let newPositionLatestCPF = $t03285935248._4 | |
782 | + | let baseAssetReserveAfter = $t03285935248._5 | |
783 | + | let quoteAssetReserveAfter = $t03285935248._6 | |
784 | + | let totalPositionSizeAfter = $t03285935248._7 | |
785 | + | let cumulativeNotionalAfter = $t03285935248._8 | |
786 | + | let openInterestNotionalAfter = $t03285935248._9 | |
787 | + | let totalLongAfter = $t03285935248._10 | |
788 | + | let totalShortAfter = $t03285935248._11 | |
789 | 789 | let feeToStakers = (feeAmount / 2) | |
790 | 790 | let feeToInsurance = (feeAmount - feeToStakers) | |
791 | 791 | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
816 | 816 | else { | |
817 | 817 | let feeAmount = muld(_rawAmount, fee()) | |
818 | 818 | let _amount = (_rawAmount - feeAmount) | |
819 | - | let $ | |
820 | - | let oldPositionSize = $ | |
821 | - | let oldPositionMargin = $ | |
822 | - | let oldPositionOpenNotional = $ | |
823 | - | let oldPositionLstUpdCPF = $ | |
819 | + | let $t03652436676 = getPosition(toString(i.caller)) | |
820 | + | let oldPositionSize = $t03652436676._1 | |
821 | + | let oldPositionMargin = $t03652436676._2 | |
822 | + | let oldPositionOpenNotional = $t03652436676._3 | |
823 | + | let oldPositionLstUpdCPF = $t03652436676._4 | |
824 | 824 | let feeToStakers = (feeAmount / 2) | |
825 | 825 | let feeToInsurance = (feeAmount - feeToStakers) | |
826 | 826 | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
847 | 847 | else paused()) | |
848 | 848 | then throw("Invalid removeMargin parameters") | |
849 | 849 | else { | |
850 | - | let $ | |
851 | - | let oldPositionSize = $ | |
852 | - | let oldPositionMargin = $ | |
853 | - | let oldPositionOpenNotional = $ | |
854 | - | let oldPositionLstUpdCPF = $ | |
850 | + | let $t03759637748 = getPosition(toString(i.caller)) | |
851 | + | let oldPositionSize = $t03759637748._1 | |
852 | + | let oldPositionMargin = $t03759637748._2 | |
853 | + | let oldPositionOpenNotional = $t03759637748._3 | |
854 | + | let oldPositionLstUpdCPF = $t03759637748._4 | |
855 | 855 | let marginDelta = -(_amount) | |
856 | - | let $ | |
857 | - | let remainMargin = $ | |
858 | - | let badDebt = $ | |
856 | + | let $t03778537964 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
857 | + | let remainMargin = $t03778537964._1 | |
858 | + | let badDebt = $t03778537964._2 | |
859 | 859 | if ((badDebt != 0)) | |
860 | 860 | then throw("Invalid removed margin amount") | |
861 | 861 | else { | |
881 | 881 | else paused()) | |
882 | 882 | then throw("Invalid closePosition parameters") | |
883 | 883 | else { | |
884 | - | let $ | |
885 | - | let x1 = $ | |
886 | - | let positionBadDebt = $ | |
887 | - | let realizedPnl = $ | |
888 | - | let marginToVault = $ | |
889 | - | let quoteAssetReserveAfter = $ | |
890 | - | let baseAssetReserveAfter = $ | |
891 | - | let totalPositionSizeAfter = $ | |
892 | - | let cumulativeNotionalAfter = $ | |
893 | - | let openInterestNotionalAfter = $ | |
894 | - | let x2 = $ | |
895 | - | let totalLongAfter = $ | |
896 | - | let totalShortAfter = $ | |
884 | + | let $t03906039444 = internalClosePosition(toString(i.caller)) | |
885 | + | let x1 = $t03906039444._1 | |
886 | + | let positionBadDebt = $t03906039444._2 | |
887 | + | let realizedPnl = $t03906039444._3 | |
888 | + | let marginToVault = $t03906039444._4 | |
889 | + | let quoteAssetReserveAfter = $t03906039444._5 | |
890 | + | let baseAssetReserveAfter = $t03906039444._6 | |
891 | + | let totalPositionSizeAfter = $t03906039444._7 | |
892 | + | let cumulativeNotionalAfter = $t03906039444._8 | |
893 | + | let openInterestNotionalAfter = $t03906039444._9 | |
894 | + | let x2 = $t03906039444._10 | |
895 | + | let totalLongAfter = $t03906039444._11 | |
896 | + | let totalShortAfter = $t03906039444._12 | |
897 | 897 | if ((positionBadDebt > 0)) | |
898 | 898 | then throw("Unable to close position with bad debt") | |
899 | 899 | else { | |
900 | 900 | let withdrawAmount = abs(marginToVault) | |
901 | 901 | let ammBalance = (cbalance() - withdrawAmount) | |
902 | - | let $ | |
902 | + | let $t03965339795 = if ((0 > ammBalance)) | |
903 | 903 | then $Tuple2(0, abs(ammBalance)) | |
904 | 904 | else $Tuple2(ammBalance, 0) | |
905 | - | let ammNewBalance = $ | |
906 | - | let getFromInsurance = $ | |
905 | + | let ammNewBalance = $t03965339795._1 | |
906 | + | let getFromInsurance = $t03965339795._2 | |
907 | 907 | let x = if ((getFromInsurance > 0)) | |
908 | 908 | then { | |
909 | 909 | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil) | |
943 | 943 | else paused()) | |
944 | 944 | then throw("Unable to liquidate") | |
945 | 945 | else { | |
946 | - | let $ | |
947 | - | let x1 = $ | |
948 | - | let badDebt = $ | |
949 | - | let x2 = $ | |
950 | - | let x3 = $ | |
951 | - | let quoteAssetReserveAfter = $ | |
952 | - | let baseAssetReserveAfter = $ | |
953 | - | let totalPositionSizeAfter = $ | |
954 | - | let cumulativeNotionalAfter = $ | |
955 | - | let openInterestNotionalAfter = $ | |
956 | - | let exchangedQuoteAssetAmount = $ | |
957 | - | let totalLongAfter = $ | |
958 | - | let totalShortAfter = $ | |
946 | + | let $t04134341759 = internalClosePosition(_trader) | |
947 | + | let x1 = $t04134341759._1 | |
948 | + | let badDebt = $t04134341759._2 | |
949 | + | let x2 = $t04134341759._3 | |
950 | + | let x3 = $t04134341759._4 | |
951 | + | let quoteAssetReserveAfter = $t04134341759._5 | |
952 | + | let baseAssetReserveAfter = $t04134341759._6 | |
953 | + | let totalPositionSizeAfter = $t04134341759._7 | |
954 | + | let cumulativeNotionalAfter = $t04134341759._8 | |
955 | + | let openInterestNotionalAfter = $t04134341759._9 | |
956 | + | let exchangedQuoteAssetAmount = $t04134341759._10 | |
957 | + | let totalLongAfter = $t04134341759._11 | |
958 | + | let totalShortAfter = $t04134341759._12 | |
959 | 959 | let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) | |
960 | 960 | let feeToLiquidator = (liquidationPenalty / 2) | |
961 | 961 | let feeToInsurance = (liquidationPenalty - feeToLiquidator) | |
962 | 962 | let ammBalance = (cbalance() - liquidationPenalty) | |
963 | - | let $ | |
963 | + | let $t04215742292 = if ((0 > ammBalance)) | |
964 | 964 | then $Tuple2(0, abs(ammBalance)) | |
965 | 965 | else $Tuple2(ammBalance, 0) | |
966 | - | let newAmmBalance = $ | |
967 | - | let takeFromInsurance = $ | |
966 | + | let newAmmBalance = $t04215742292._1 | |
967 | + | let takeFromInsurance = $t04215742292._2 | |
968 | 968 | let x = if ((takeFromInsurance > 0)) | |
969 | 969 | then { | |
970 | 970 | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil) | |
1004 | 1004 | let underlyingPrice = getOracleTwapPrice() | |
1005 | 1005 | let spotTwapPrice = getTwapSpotPrice() | |
1006 | 1006 | let premium = (spotTwapPrice - underlyingPrice) | |
1007 | - | let $ | |
1007 | + | let $t04366845003 = if (if ((totalShortPositionSize() == 0)) | |
1008 | 1008 | then true | |
1009 | 1009 | else (totalLongPositionSize() == 0)) | |
1010 | 1010 | then $Tuple2(0, 0) | |
1019 | 1019 | let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize()) | |
1020 | 1020 | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
1021 | 1021 | } | |
1022 | - | let shortPremiumFraction = $ | |
1023 | - | let longPremiumFraction = $ | |
1022 | + | let shortPremiumFraction = $t04366845003._1 | |
1023 | + | let longPremiumFraction = $t04366845003._2 | |
1024 | 1024 | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
1025 | 1025 | } | |
1026 | 1026 | } | |
1029 | 1029 | ||
1030 | 1030 | @Callable(i) | |
1031 | 1031 | func v_get (_trader) = { | |
1032 | - | let $ | |
1033 | - | let x1 = $ | |
1034 | - | let x2 = $ | |
1035 | - | let x3 = $ | |
1036 | - | let x4 = $ | |
1032 | + | let $t04537845431 = internalClosePosition(_trader) | |
1033 | + | let x1 = $t04537845431._1 | |
1034 | + | let x2 = $t04537845431._2 | |
1035 | + | let x3 = $t04537845431._3 | |
1036 | + | let x4 = $t04537845431._4 | |
1037 | 1037 | throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader)))) | |
1038 | 1038 | } | |
1039 | 1039 | ||
1041 | 1041 | ||
1042 | 1042 | @Callable(i) | |
1043 | 1043 | func view_calcRemainMarginWithFundingPayment (_trader) = { | |
1044 | - | let $ | |
1045 | - | let positionSize = $ | |
1046 | - | let positionMargin = $ | |
1047 | - | let pon = $ | |
1048 | - | let positionLstUpdCPF = $ | |
1049 | - | let $ | |
1050 | - | let positionNotional = $ | |
1051 | - | let unrealizedPnl = $ | |
1052 | - | let $ | |
1053 | - | let remainMargin = $ | |
1054 | - | let badDebt = $ | |
1055 | - | let fundingPayment = $ | |
1044 | + | let $t04557845689 = getPosition(_trader) | |
1045 | + | let positionSize = $t04557845689._1 | |
1046 | + | let positionMargin = $t04557845689._2 | |
1047 | + | let pon = $t04557845689._3 | |
1048 | + | let positionLstUpdCPF = $t04557845689._4 | |
1049 | + | let $t04569445795 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1050 | + | let positionNotional = $t04569445795._1 | |
1051 | + | let unrealizedPnl = $t04569445795._2 | |
1052 | + | let $t04580045982 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
1053 | + | let remainMargin = $t04580045982._1 | |
1054 | + | let badDebt = $t04580045982._2 | |
1055 | + | let fundingPayment = $t04580045982._3 | |
1056 | 1056 | throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader)))) | |
1057 | 1057 | } | |
1058 | 1058 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let k_ora_key = "k_ora_key" | |
5 | 5 | ||
6 | 6 | let k_ora_block_key = "k_ora_block_key" | |
7 | 7 | ||
8 | 8 | let k_ora = "k_ora" | |
9 | 9 | ||
10 | 10 | let k_balance = "k_balance" | |
11 | 11 | ||
12 | 12 | let k_positionSize = "k_positionSize" | |
13 | 13 | ||
14 | 14 | let k_positionMargin = "k_positionMargin" | |
15 | 15 | ||
16 | 16 | let k_positionOpenNotional = "k_positionOpenNotional" | |
17 | 17 | ||
18 | 18 | let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction" | |
19 | 19 | ||
20 | 20 | let k_initialized = "k_initialized" | |
21 | 21 | ||
22 | 22 | let k_paused = "k_paused" | |
23 | 23 | ||
24 | 24 | let k_fee = "k_fee" | |
25 | 25 | ||
26 | 26 | let k_fundingPeriod = "k_fundingPeriod" | |
27 | 27 | ||
28 | 28 | let k_initMarginRatio = "k_initMarginRatio" | |
29 | 29 | ||
30 | 30 | let k_maintenanceMarginRatio = "k_mmr" | |
31 | 31 | ||
32 | 32 | let k_liquidationFeeRatio = "k_liquidationFeeRatio" | |
33 | 33 | ||
34 | 34 | let k_spreadLimit = "k_spreadLimit" | |
35 | 35 | ||
36 | 36 | let k_maxPriceImpact = "k_maxPriceImpact" | |
37 | 37 | ||
38 | 38 | let k_lastDataStr = "k_lastDataStr" | |
39 | 39 | ||
40 | 40 | let k_lastMinuteId = "k_lastMinuteId" | |
41 | 41 | ||
42 | 42 | let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice" | |
43 | 43 | ||
44 | 44 | let k_twapDataLastPrice = "k_twapDataLastPrice" | |
45 | 45 | ||
46 | 46 | let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId" | |
47 | 47 | ||
48 | 48 | let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction" | |
49 | 49 | ||
50 | 50 | let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction" | |
51 | 51 | ||
52 | 52 | let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp" | |
53 | 53 | ||
54 | 54 | let k_longFundingRate = "k_longFundingRate" | |
55 | 55 | ||
56 | 56 | let k_shortFundingRate = "k_shortFundingRate" | |
57 | 57 | ||
58 | 58 | let k_quoteAssetReserve = "k_qtAstR" | |
59 | 59 | ||
60 | 60 | let k_baseAssetReserve = "k_bsAstR" | |
61 | 61 | ||
62 | 62 | let k_totalPositionSize = "k_totalPositionSize" | |
63 | 63 | ||
64 | 64 | let k_totalLongPositionSize = "k_totalLongPositionSize" | |
65 | 65 | ||
66 | 66 | let k_totalShortPositionSize = "k_totalShortPositionSize" | |
67 | 67 | ||
68 | 68 | let k_cumulativeNotional = "k_cumulativeNotional" | |
69 | 69 | ||
70 | 70 | let k_openInterestNotional = "k_openInterestNotional" | |
71 | 71 | ||
72 | 72 | let k_coordinatorAddress = "k_coordinatorAddress" | |
73 | 73 | ||
74 | 74 | let k_insurance_address = "k_insurance_address" | |
75 | 75 | ||
76 | 76 | let k_admin_address = "k_admin_address" | |
77 | 77 | ||
78 | 78 | let k_admin_public_key = "k_admin_public_key" | |
79 | 79 | ||
80 | 80 | let k_quote_asset = "k_quote_asset" | |
81 | 81 | ||
82 | 82 | let k_quote_staking = "k_quote_staking" | |
83 | 83 | ||
84 | 84 | let k_staking_address = "k_staking_address" | |
85 | 85 | ||
86 | 86 | func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key)) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Insurance not set") | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let DIR_LONG = 1 | |
108 | 108 | ||
109 | 109 | let DIR_SHORT = 2 | |
110 | 110 | ||
111 | 111 | let FUNDING_BLOCK_INTERVAL = 60 | |
112 | 112 | ||
113 | 113 | let TWAP_INTERVAL = 15 | |
114 | 114 | ||
115 | 115 | let ORACLE_INTERVAL = 15 | |
116 | 116 | ||
117 | 117 | let SECONDS = 1000 | |
118 | 118 | ||
119 | 119 | let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
120 | 120 | ||
121 | 121 | let HUNDRED_PERCENT = (100 * DECIMAL_UNIT) | |
122 | 122 | ||
123 | 123 | let ONE_DAY = (86400 * DECIMAL_UNIT) | |
124 | 124 | ||
125 | 125 | let ALL_FEES = 100 | |
126 | 126 | ||
127 | 127 | let PNL_OPTION_SPOT = 1 | |
128 | 128 | ||
129 | 129 | let PNL_OPTION_ORACLE = 2 | |
130 | 130 | ||
131 | 131 | func s (_x) = (toString(_x) + ",") | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func abs (_x) = if ((_x > 0)) | |
141 | 141 | then _x | |
142 | 142 | else -(_x) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func vmax (_x,_y) = if ((_x >= _y)) | |
146 | 146 | then _x | |
147 | 147 | else _y | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func toCompositeKey (_key,_address) = ((_key + "_") + _address) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func listToStr (_list) = { | |
154 | 154 | func _join (accumulator,val) = ((accumulator + val) + ",") | |
155 | 155 | ||
156 | 156 | let newListStr = { | |
157 | 157 | let $l = _list | |
158 | 158 | let $s = size($l) | |
159 | 159 | let $acc0 = "" | |
160 | 160 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
161 | 161 | then $a | |
162 | 162 | else _join($a, $l[$i]) | |
163 | 163 | ||
164 | 164 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
165 | 165 | then $a | |
166 | 166 | else throw("List size exceeds 20") | |
167 | 167 | ||
168 | 168 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
169 | 169 | } | |
170 | 170 | let newListStrU = dropRight(newListStr, 1) | |
171 | 171 | let newListStrR = if ((take(newListStrU, 1) == ",")) | |
172 | 172 | then drop(newListStrU, 1) | |
173 | 173 | else newListStrU | |
174 | 174 | newListStrR | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func strToList (_str) = split(_str, ",") | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize)) | |
182 | 182 | then (removeByIndex(_list, 0) :+ _value) | |
183 | 183 | else (_list :+ _value) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k)) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func cbalance () = int(k_balance) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func fee () = int(k_fee) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func initMarginRatio () = int(k_initMarginRatio) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func qtAstR () = int(k_quoteAssetReserve) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func bsAstR () = int(k_baseAssetReserve) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func totalPositionSize () = int(k_totalPositionSize) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func cumulativeNotional () = int(k_cumulativeNotional) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func openInterestNotional () = int(k_openInterestNotional) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func nextFundingBlockTimestamp () = int(k_nextFundingBlock) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func fundingPeriodRaw () = int(k_fundingPeriod) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func maintenanceMarginRatio () = int(k_maintenanceMarginRatio) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func liquidationFeeRatio () = int(k_liquidationFeeRatio) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func spreadLimit () = int(k_spreadLimit) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func maxPriceImpact () = int(k_maxPriceImpact) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func totalShortPositionSize () = int(k_totalShortPositionSize) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func totalLongPositionSize () = int(k_totalLongPositionSize) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = { | |
250 | 250 | let remainingMarginRatio = (_marginRatio - _baseMarginRatio) | |
251 | 251 | if (if (_largerThanOrEqualTo) | |
252 | 252 | then (0 > remainingMarginRatio) | |
253 | 253 | else false) | |
254 | 254 | then throw("Invalid margin") | |
255 | 255 | else if (if (!(_largerThanOrEqualTo)) | |
256 | 256 | then (remainingMarginRatio >= 0) | |
257 | 257 | else false) | |
258 | 258 | then throw("Invalid margin") | |
259 | 259 | else true | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0)) | |
264 | 264 | then throw("Should not be called with _positionSize == 0") | |
265 | 265 | else if ((_positionSize > 0)) | |
266 | 266 | then latestLongCumulativePremiumFraction() | |
267 | 267 | else latestShortCumulativePremiumFraction() | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func getPosition (_trader) = { | |
271 | 271 | let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader)) | |
272 | 272 | match positionSizeOpt { | |
273 | 273 | case positionSize: Int => | |
274 | 274 | $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader))) | |
275 | 275 | case _ => | |
276 | 276 | $Tuple4(0, 0, 0, 0) | |
277 | 277 | } | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0)) | |
282 | 282 | then throw("No open position") | |
283 | 283 | else true | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func initialized () = valueOrElse(getBoolean(this, k_initialized), false) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func paused () = valueOrElse(getBoolean(this, k_paused), false) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd) | |
293 | 293 | then { | |
294 | 294 | let newBase = (bsAstR() - _baseAssetAmount) | |
295 | 295 | if ((0 >= newBase)) | |
296 | 296 | then throw("Tx lead to base asset reserve <= 0, revert") | |
297 | 297 | else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount)) | |
298 | 298 | } | |
299 | 299 | else { | |
300 | 300 | let newQuote = (qtAstR() - _quoteAssetAmount) | |
301 | 301 | if ((0 >= newQuote)) | |
302 | 302 | then throw("Tx lead to base quote reserve <= 0, revert") | |
303 | 303 | else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount)) | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func swapInput (_isAdd,_quoteAssetAmount) = { | |
308 | 308 | let _qtAstR = qtAstR() | |
309 | 309 | let _bsAstR = bsAstR() | |
310 | 310 | let priceBefore = divd(_qtAstR, _bsAstR) | |
311 | 311 | let amountBaseAssetBoughtWithoutPriceImpact = muld(_quoteAssetAmount, priceBefore) | |
312 | 312 | let k = muld(_qtAstR, _bsAstR) | |
313 | 313 | let quoteAssetReserveAfter = if (_isAdd) | |
314 | 314 | then (_qtAstR + _quoteAssetAmount) | |
315 | 315 | else (_qtAstR - _quoteAssetAmount) | |
316 | 316 | let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter) | |
317 | 317 | let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR)) | |
318 | 318 | let amountBaseAssetBought = if (_isAdd) | |
319 | 319 | then amountBaseAssetBoughtAbs | |
320 | 320 | else -(amountBaseAssetBoughtAbs) | |
321 | 321 | let priceImpact = ((amountBaseAssetBoughtWithoutPriceImpact - amountBaseAssetBoughtAbs) / amountBaseAssetBoughtWithoutPriceImpact) | |
322 | 322 | let maxPriceImpactValue = maxPriceImpact() | |
323 | 323 | if ((priceImpact > maxPriceImpactValue)) | |
324 | 324 | then throw(((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue))) | |
325 | 325 | else { | |
326 | 326 | let $t01215412357 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs) | |
327 | 327 | let quoteAssetReserveAfter1 = $t01215412357._1 | |
328 | 328 | let baseAssetReserveAfter1 = $t01215412357._2 | |
329 | 329 | let totalPositionSizeAfter1 = $t01215412357._3 | |
330 | 330 | let cumulativeNotionalAfter1 = $t01215412357._4 | |
331 | 331 | $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1) | |
332 | 332 | } | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = { | |
337 | 337 | let fundingPayment = if ((_oldPositionSize != 0)) | |
338 | 338 | then { | |
339 | 339 | let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize) | |
340 | 340 | muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize) | |
341 | 341 | } | |
342 | 342 | else 0 | |
343 | 343 | let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin) | |
344 | 344 | let $t01310413231 = if ((0 > signedMargin)) | |
345 | 345 | then $Tuple2(0, abs(signedMargin)) | |
346 | 346 | else $Tuple2(abs(signedMargin), 0) | |
347 | 347 | let remainMargin = $t01310413231._1 | |
348 | 348 | let badDebt = $t01310413231._2 | |
349 | 349 | $Tuple3(remainMargin, badDebt, fundingPayment) | |
350 | 350 | } | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func swapOutput (_isAdd,_baseAssetAmount) = { | |
354 | 354 | let _quoteAssetReserve = qtAstR() | |
355 | 355 | let _baseAssetReserve = bsAstR() | |
356 | 356 | if ((_baseAssetAmount == 0)) | |
357 | 357 | then throw("Invalid base asset amount") | |
358 | 358 | else { | |
359 | 359 | let k = muld(_quoteAssetReserve, _baseAssetReserve) | |
360 | 360 | let baseAssetPoolAmountAfter = if (_isAdd) | |
361 | 361 | then (_baseAssetReserve + _baseAssetAmount) | |
362 | 362 | else (_baseAssetReserve - _baseAssetAmount) | |
363 | 363 | let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter) | |
364 | 364 | let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve)) | |
365 | 365 | let $t01406914262 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount) | |
366 | 366 | let quoteAssetReserveAfter1 = $t01406914262._1 | |
367 | 367 | let baseAssetReserveAfter1 = $t01406914262._2 | |
368 | 368 | let totalPositionSizeAfter1 = $t01406914262._3 | |
369 | 369 | let cumulativeNotionalAfter1 = $t01406914262._4 | |
370 | 370 | $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd) | |
371 | 371 | then abs(_baseAssetAmount) | |
372 | 372 | else 0)), (totalShortPositionSize() - (if (!(_isAdd)) | |
373 | 373 | then abs(_baseAssetAmount) | |
374 | 374 | else 0))) | |
375 | 375 | } | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func getOracleTwapPrice () = { | |
380 | 380 | let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "") | |
381 | 381 | let priceKey = getStringValue(this, k_ora_key) | |
382 | 382 | let blockKey = getStringValue(this, k_ora_block_key) | |
383 | 383 | let lastValue = getIntegerValue(oracle, priceKey) | |
384 | 384 | lastValue | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | func getSpotPrice () = { | |
389 | 389 | let _quoteAssetReserve = qtAstR() | |
390 | 390 | let _baseAssetReserve = bsAstR() | |
391 | 391 | divd(_quoteAssetReserve, _baseAssetReserve) | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | func isOverFluctuationLimit () = { | |
396 | 396 | let oraclePrice = getOracleTwapPrice() | |
397 | 397 | let currentPrice = getSpotPrice() | |
398 | 398 | (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit()) | |
399 | 399 | } | |
400 | 400 | ||
401 | 401 | ||
402 | 402 | func getPositionNotionalAndUnrealizedPnl (_trader,_option) = { | |
403 | 403 | let $t01589416022 = getPosition(_trader) | |
404 | 404 | let positionSize = $t01589416022._1 | |
405 | 405 | let positionMargin = $t01589416022._2 | |
406 | 406 | let positionOpenNotional = $t01589416022._3 | |
407 | 407 | let positionLstUpdCPF = $t01589416022._4 | |
408 | 408 | let positionSizeAbs = abs(positionSize) | |
409 | 409 | if ((positionSizeAbs == 0)) | |
410 | 410 | then throw("Invalid position size") | |
411 | 411 | else { | |
412 | 412 | let isShort = (0 > positionSize) | |
413 | 413 | let positionNotional = if ((_option == PNL_OPTION_SPOT)) | |
414 | 414 | then { | |
415 | 415 | let $t01626916376 = swapOutput(!(isShort), positionSizeAbs) | |
416 | 416 | let outPositionNotional = $t01626916376._1 | |
417 | 417 | let x1 = $t01626916376._2 | |
418 | 418 | let x2 = $t01626916376._3 | |
419 | 419 | let x3 = $t01626916376._4 | |
420 | 420 | outPositionNotional | |
421 | 421 | } | |
422 | - | else (positionSizeAbs | |
422 | + | else muld(positionSizeAbs, getOracleTwapPrice()) | |
423 | 423 | let unrealizedPnl = if (isShort) | |
424 | 424 | then (positionOpenNotional - positionNotional) | |
425 | 425 | else (positionNotional - positionOpenNotional) | |
426 | 426 | $Tuple2(positionNotional, unrealizedPnl) | |
427 | 427 | } | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional) | |
432 | 432 | ||
433 | 433 | ||
434 | 434 | func getMarginRatioByOption (_trader,_option) = { | |
435 | - | let $ | |
436 | - | let positionSize = $ | |
437 | - | let positionMargin = $ | |
438 | - | let pon = $ | |
439 | - | let positionLstUpdCPF = $ | |
440 | - | let $ | |
441 | - | let positionNotional = $ | |
442 | - | let unrealizedPnl = $ | |
443 | - | let $ | |
444 | - | let remainMargin = $ | |
445 | - | let badDebt = $ | |
435 | + | let $t01704617157 = getPosition(_trader) | |
436 | + | let positionSize = $t01704617157._1 | |
437 | + | let positionMargin = $t01704617157._2 | |
438 | + | let pon = $t01704617157._3 | |
439 | + | let positionLstUpdCPF = $t01704617157._4 | |
440 | + | let $t01716317256 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
441 | + | let positionNotional = $t01716317256._1 | |
442 | + | let unrealizedPnl = $t01716317256._2 | |
443 | + | let $t01726117427 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
444 | + | let remainMargin = $t01726117427._1 | |
445 | + | let badDebt = $t01726117427._2 | |
446 | 446 | calcMarginRatio(remainMargin, badDebt, positionNotional) | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | func internalClosePosition (_trader) = { | |
454 | - | let $ | |
455 | - | let positionSize = $ | |
456 | - | let positionMargin = $ | |
457 | - | let positionOpenNotional = $ | |
458 | - | let positionLstUpdCPF = $ | |
459 | - | let $ | |
460 | - | let x1 = $ | |
461 | - | let unrealizedPnl = $ | |
462 | - | let $ | |
463 | - | let remainMargin = $ | |
464 | - | let badDebt = $ | |
454 | + | let $t01774317871 = getPosition(_trader) | |
455 | + | let positionSize = $t01774317871._1 | |
456 | + | let positionMargin = $t01774317871._2 | |
457 | + | let positionOpenNotional = $t01774317871._3 | |
458 | + | let positionLstUpdCPF = $t01774317871._4 | |
459 | + | let $t01787717964 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
460 | + | let x1 = $t01787717964._1 | |
461 | + | let unrealizedPnl = $t01787717964._2 | |
462 | + | let $t01796918137 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
463 | + | let remainMargin = $t01796918137._1 | |
464 | + | let badDebt = $t01796918137._2 | |
465 | 465 | let exchangedPositionSize = -(positionSize) | |
466 | 466 | let realizedPnl = unrealizedPnl | |
467 | 467 | let marginToVault = -(remainMargin) | |
468 | - | let $ | |
469 | - | let exchangedQuoteAssetAmount = $ | |
470 | - | let quoteAssetReserveAfter = $ | |
471 | - | let baseAssetReserveAfter = $ | |
472 | - | let totalPositionSizeAfter = $ | |
473 | - | let cumulativeNotionalAfter = $ | |
474 | - | let totalLongAfter = $ | |
475 | - | let totalShortAfter = $ | |
468 | + | let $t01826418545 = swapOutput((positionSize > 0), abs(positionSize)) | |
469 | + | let exchangedQuoteAssetAmount = $t01826418545._1 | |
470 | + | let quoteAssetReserveAfter = $t01826418545._2 | |
471 | + | let baseAssetReserveAfter = $t01826418545._3 | |
472 | + | let totalPositionSizeAfter = $t01826418545._4 | |
473 | + | let cumulativeNotionalAfter = $t01826418545._5 | |
474 | + | let totalLongAfter = $t01826418545._6 | |
475 | + | let totalShortAfter = $t01826418545._7 | |
476 | 476 | let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional) | |
477 | 477 | $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter) | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | func getTwapSpotPrice () = { | |
482 | 482 | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
483 | 483 | let startMinuteId = (minuteId - TWAP_INTERVAL) | |
484 | 484 | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
485 | 485 | let list = split(listStr, ",") | |
486 | 486 | func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next))) | |
487 | 487 | then (accumulator :+ parseIntValue(next)) | |
488 | 488 | else accumulator | |
489 | 489 | ||
490 | 490 | let listF = { | |
491 | 491 | let $l = list | |
492 | 492 | let $s = size($l) | |
493 | 493 | let $acc0 = nil | |
494 | 494 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
495 | 495 | then $a | |
496 | 496 | else filterFn($a, $l[$i]) | |
497 | 497 | ||
498 | 498 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
499 | 499 | then $a | |
500 | 500 | else throw("List size exceeds 20") | |
501 | 501 | ||
502 | 502 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
503 | 503 | } | |
504 | 504 | let maxIndex = if ((size(listF) > 0)) | |
505 | 505 | then max(listF) | |
506 | 506 | else parseIntValue(list[0]) | |
507 | 507 | let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
508 | 508 | let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0) | |
509 | 509 | let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0) | |
510 | 510 | let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice)) | |
511 | 511 | let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0) | |
512 | 512 | let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0) | |
513 | 513 | let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice)) | |
514 | 514 | ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL) | |
515 | 515 | } | |
516 | 516 | ||
517 | 517 | ||
518 | 518 | func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee), IntegerEntry(k_spreadLimit, _spreadLimit), IntegerEntry(k_maxPriceImpact, _maxPriceImpact)] | |
519 | 519 | ||
520 | 520 | ||
521 | 521 | func updateFunding (_nextFundingBlock,_latestLongCumulativePremiumFraction,_latestShortCumulativePremiumFraction,_longFundingRate,_shortFundingRate) = [IntegerEntry(k_nextFundingBlock, _nextFundingBlock), IntegerEntry(k_latestLongCumulativePremiumFraction, _latestLongCumulativePremiumFraction), IntegerEntry(k_latestShortCumulativePremiumFraction, _latestShortCumulativePremiumFraction), IntegerEntry(k_longFundingRate, _longFundingRate), IntegerEntry(k_shortFundingRate, _shortFundingRate)] | |
522 | 522 | ||
523 | 523 | ||
524 | 524 | func updatePosition (_address,_size,_margin,_openNotional,_latestCumulativePremiumFraction) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _latestCumulativePremiumFraction)] | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | func appendTwap (price) = { | |
528 | 528 | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
529 | 529 | let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
530 | 530 | if ((previousMinuteId > minuteId)) | |
531 | 531 | then throw("TWAP out-of-order") | |
532 | 532 | else { | |
533 | 533 | let lastMinuteId = if ((previousMinuteId == 0)) | |
534 | 534 | then minuteId | |
535 | 535 | else previousMinuteId | |
536 | 536 | if ((minuteId > previousMinuteId)) | |
537 | 537 | then { | |
538 | 538 | let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0) | |
539 | 539 | let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price) | |
540 | 540 | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice)) | |
541 | 541 | let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId)) | |
542 | 542 | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price), IntegerEntry(toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId)), previousMinuteId), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, listToStr(list))] | |
543 | 543 | } | |
544 | 544 | else { | |
545 | 545 | let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0) | |
546 | 546 | let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0) | |
547 | 547 | let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), price) | |
548 | 548 | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice)) | |
549 | 549 | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price)] | |
550 | 550 | } | |
551 | 551 | } | |
552 | 552 | } | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter)) | |
556 | 556 | then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter))) | |
557 | 557 | else ([IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR), IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize)] ++ appendTwap(divd(_qtAstR, _bsAstR))) | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))] | |
561 | 561 | ||
562 | 562 | ||
563 | 563 | func withdraw (_address,_amount) = { | |
564 | 564 | let balance = assetBalance(this, quoteAsset()) | |
565 | 565 | if ((_amount > balance)) | |
566 | 566 | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
567 | 567 | else [ScriptTransfer(_address, _amount, quoteAsset())] | |
568 | 568 | } | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | func updateBalance (i) = if ((0 > i)) | |
572 | 572 | then throw("Balance") | |
573 | 573 | else [IntegerEntry(k_balance, i)] | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())] | |
577 | 577 | ||
578 | 578 | ||
579 | 579 | @Callable(i) | |
580 | 580 | func pause () = if ((i.caller != adminAddress())) | |
581 | 581 | then throw("Invalid togglePause params") | |
582 | 582 | else [BooleanEntry(k_paused, true)] | |
583 | 583 | ||
584 | 584 | ||
585 | 585 | ||
586 | 586 | @Callable(i) | |
587 | 587 | func unpause () = if ((i.caller != adminAddress())) | |
588 | 588 | then throw("Invalid togglePause params") | |
589 | 589 | else [BooleanEntry(k_paused, false)] | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | ||
593 | 593 | @Callable(i) | |
594 | 594 | func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress())) | |
595 | 595 | then throw("Invalid changeSettings params") | |
596 | 596 | else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact) | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_coordinator,_spreadLimit,_maxPriceImpact) = if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR)) | |
602 | 602 | then true | |
603 | 603 | else (0 >= _bsAstR)) | |
604 | 604 | then true | |
605 | 605 | else (0 >= _fundingPeriod)) | |
606 | 606 | then true | |
607 | 607 | else (0 >= _initMarginRatio)) | |
608 | 608 | then true | |
609 | 609 | else (0 >= _mmr)) | |
610 | 610 | then true | |
611 | 611 | else (0 >= _liquidationFeeRatio)) | |
612 | 612 | then true | |
613 | 613 | else (0 >= _fee)) | |
614 | 614 | then true | |
615 | 615 | else (0 >= _spreadLimit)) | |
616 | 616 | then true | |
617 | 617 | else (0 >= _maxPriceImpact)) | |
618 | 618 | then true | |
619 | 619 | else initialized()) | |
620 | 620 | then throw("Invalid initialize parameters") | |
621 | 621 | else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)) ++ updateFunding((lastBlock.timestamp + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_ora, _oracle), StringEntry(k_ora_key, _oracleKey), StringEntry(k_coordinatorAddress, _coordinator)]) | |
622 | 622 | ||
623 | 623 | ||
624 | 624 | ||
625 | 625 | @Callable(i) | |
626 | 626 | func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if ((0 >= _amount)) | |
627 | 627 | then true | |
628 | 628 | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
629 | 629 | then true | |
630 | 630 | else (_leverage > (3 * DECIMAL_UNIT))) | |
631 | 631 | then true | |
632 | 632 | else !(initialized())) | |
633 | 633 | then true | |
634 | 634 | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
635 | 635 | then true | |
636 | 636 | else !(requireOpenPosition(toString(i.caller)))) | |
637 | 637 | then true | |
638 | 638 | else paused()) | |
639 | 639 | then throw("Invalid decreasePosition parameters") | |
640 | 640 | else { | |
641 | - | let $ | |
642 | - | let oldPositionSize = $ | |
643 | - | let oldPositionMargin = $ | |
644 | - | let oldPositionOpenNotional = $ | |
645 | - | let oldPositionLstUpdCPF = $ | |
641 | + | let $t02838628538 = getPosition(toString(i.caller)) | |
642 | + | let oldPositionSize = $t02838628538._1 | |
643 | + | let oldPositionMargin = $t02838628538._2 | |
644 | + | let oldPositionOpenNotional = $t02838628538._3 | |
645 | + | let oldPositionLstUpdCPF = $t02838628538._4 | |
646 | 646 | let _direction = if ((oldPositionSize > 0)) | |
647 | 647 | then DIR_SHORT | |
648 | 648 | else DIR_LONG | |
649 | 649 | let isAdd = (_direction == DIR_LONG) | |
650 | 650 | let openNotional = muld(_amount, _leverage) | |
651 | - | let $ | |
652 | - | let oldPositionNotional = $ | |
653 | - | let unrealizedPnl = $ | |
654 | - | let $ | |
651 | + | let $t02871128827 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
652 | + | let oldPositionNotional = $t02871128827._1 | |
653 | + | let unrealizedPnl = $t02871128827._2 | |
654 | + | let $t02883331382 = if ((oldPositionNotional > openNotional)) | |
655 | 655 | then { | |
656 | - | let $ | |
657 | - | let exchangedPositionSize = $ | |
658 | - | let quoteAssetReserveAfter = $ | |
659 | - | let baseAssetReserveAfter = $ | |
660 | - | let totalPositionSizeAfter = $ | |
661 | - | let cumulativeNotionalAfter = $ | |
656 | + | let $t02921029429 = swapInput(isAdd, openNotional) | |
657 | + | let exchangedPositionSize = $t02921029429._1 | |
658 | + | let quoteAssetReserveAfter = $t02921029429._2 | |
659 | + | let baseAssetReserveAfter = $t02921029429._3 | |
660 | + | let totalPositionSizeAfter = $t02921029429._4 | |
661 | + | let cumulativeNotionalAfter = $t02921029429._5 | |
662 | 662 | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
663 | 663 | if (if ((_minBaseAssetAmount != 0)) | |
664 | 664 | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
665 | 665 | else false) | |
666 | 666 | then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
667 | 667 | else { | |
668 | 668 | let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize)) | |
669 | - | let $ | |
670 | - | let remainMargin = $ | |
671 | - | let badDebt = $ | |
672 | - | let fundingPayment = $ | |
669 | + | let $t02986630111 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
670 | + | let remainMargin = $t02986630111._1 | |
671 | + | let badDebt = $t02986630111._2 | |
672 | + | let fundingPayment = $t02986630111._3 | |
673 | 673 | let exchangedQuoteAssetAmount = openNotional | |
674 | 674 | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
675 | 675 | let remainOpenNotional = if ((oldPositionSize > 0)) | |
676 | 676 | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
677 | 677 | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
678 | 678 | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
679 | 679 | $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
680 | 680 | then abs(exchangedPositionSize) | |
681 | 681 | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
682 | 682 | then abs(exchangedPositionSize) | |
683 | 683 | else 0))) | |
684 | 684 | } | |
685 | 685 | } | |
686 | 686 | else throw("Close position first") | |
687 | - | let newPositionSize = $ | |
688 | - | let newPositionRemainMargin = $ | |
689 | - | let newPositionOpenNotional = $ | |
690 | - | let newPositionLatestCPF = $ | |
691 | - | let baseAssetReserveAfter = $ | |
692 | - | let quoteAssetReserveAfter = $ | |
693 | - | let totalPositionSizeAfter = $ | |
694 | - | let cumulativeNotionalAfter = $ | |
695 | - | let openInterestNotionalAfter = $ | |
696 | - | let totalLongAfter = $ | |
697 | - | let totalShortAfter = $ | |
687 | + | let newPositionSize = $t02883331382._1 | |
688 | + | let newPositionRemainMargin = $t02883331382._2 | |
689 | + | let newPositionOpenNotional = $t02883331382._3 | |
690 | + | let newPositionLatestCPF = $t02883331382._4 | |
691 | + | let baseAssetReserveAfter = $t02883331382._5 | |
692 | + | let quoteAssetReserveAfter = $t02883331382._6 | |
693 | + | let totalPositionSizeAfter = $t02883331382._7 | |
694 | + | let cumulativeNotionalAfter = $t02883331382._8 | |
695 | + | let openInterestNotionalAfter = $t02883331382._9 | |
696 | + | let totalLongAfter = $t02883331382._10 | |
697 | + | let totalShortAfter = $t02883331382._11 | |
698 | 698 | (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) | |
699 | 699 | } | |
700 | 700 | ||
701 | 701 | ||
702 | 702 | ||
703 | 703 | @Callable(i) | |
704 | 704 | func increasePosition (_direction,_leverage,_minBaseAssetAmount) = { | |
705 | 705 | let _rawAmount = i.payments[0].amount | |
706 | 706 | if (if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
707 | 707 | then (_direction != DIR_SHORT) | |
708 | 708 | else false) | |
709 | 709 | then true | |
710 | 710 | else (0 >= _rawAmount)) | |
711 | 711 | then true | |
712 | 712 | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
713 | 713 | then true | |
714 | 714 | else (_leverage > (3 * DECIMAL_UNIT))) | |
715 | 715 | then true | |
716 | 716 | else !(initialized())) | |
717 | 717 | then true | |
718 | 718 | else (i.payments[0].assetId != quoteAsset())) | |
719 | 719 | then true | |
720 | 720 | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
721 | 721 | then true | |
722 | 722 | else paused()) | |
723 | 723 | then throw("Invalid increasePosition parameters") | |
724 | 724 | else { | |
725 | 725 | let feeAmount = muld(_rawAmount, fee()) | |
726 | 726 | let _amount = (_rawAmount - feeAmount) | |
727 | - | let $ | |
728 | - | let oldPositionSize = $ | |
729 | - | let oldPositionMargin = $ | |
730 | - | let oldPositionOpenNotional = $ | |
731 | - | let oldPositionLstUpdCPF = $ | |
727 | + | let $t03241832570 = getPosition(toString(i.caller)) | |
728 | + | let oldPositionSize = $t03241832570._1 | |
729 | + | let oldPositionMargin = $t03241832570._2 | |
730 | + | let oldPositionOpenNotional = $t03241832570._3 | |
731 | + | let oldPositionLstUpdCPF = $t03241832570._4 | |
732 | 732 | let isNewPosition = (oldPositionSize == 0) | |
733 | 733 | let isSameDirection = if ((oldPositionSize > 0)) | |
734 | 734 | then (_direction == DIR_LONG) | |
735 | 735 | else (_direction == DIR_SHORT) | |
736 | 736 | let expandExisting = if (!(isNewPosition)) | |
737 | 737 | then isSameDirection | |
738 | 738 | else false | |
739 | 739 | let isAdd = (_direction == DIR_LONG) | |
740 | - | let $ | |
740 | + | let $t03285935248 = if (if (isNewPosition) | |
741 | 741 | then true | |
742 | 742 | else expandExisting) | |
743 | 743 | then { | |
744 | 744 | let openNotional = muld(_amount, _leverage) | |
745 | - | let $ | |
746 | - | let amountBaseAssetBought = $ | |
747 | - | let quoteAssetReserveAfter = $ | |
748 | - | let baseAssetReserveAfter = $ | |
749 | - | let totalPositionSizeAfter = $ | |
750 | - | let cumulativeNotionalAfter = $ | |
745 | + | let $t03328333489 = swapInput(isAdd, openNotional) | |
746 | + | let amountBaseAssetBought = $t03328333489._1 | |
747 | + | let quoteAssetReserveAfter = $t03328333489._2 | |
748 | + | let baseAssetReserveAfter = $t03328333489._3 | |
749 | + | let totalPositionSizeAfter = $t03328333489._4 | |
750 | + | let cumulativeNotionalAfter = $t03328333489._5 | |
751 | 751 | if (if ((_minBaseAssetAmount != 0)) | |
752 | 752 | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
753 | 753 | else false) | |
754 | 754 | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
755 | 755 | else { | |
756 | 756 | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
757 | 757 | let increaseMarginRequirement = divd(openNotional, _leverage) | |
758 | - | let $ | |
759 | - | let remainMargin = $ | |
760 | - | let x1 = $ | |
761 | - | let x2 = $ | |
758 | + | let $t03387034109 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
759 | + | let remainMargin = $t03387034109._1 | |
760 | + | let x1 = $t03387034109._2 | |
761 | + | let x2 = $t03387034109._3 | |
762 | 762 | $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0)) | |
763 | 763 | then abs(amountBaseAssetBought) | |
764 | 764 | else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize)) | |
765 | 765 | then abs(amountBaseAssetBought) | |
766 | 766 | else 0))) | |
767 | 767 | } | |
768 | 768 | } | |
769 | 769 | else { | |
770 | 770 | let openNotional = muld(_amount, _leverage) | |
771 | - | let $ | |
772 | - | let oldPositionNotional = $ | |
773 | - | let unrealizedPnl = $ | |
771 | + | let $t03494135057 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
772 | + | let oldPositionNotional = $t03494135057._1 | |
773 | + | let unrealizedPnl = $t03494135057._2 | |
774 | 774 | if ((oldPositionNotional > openNotional)) | |
775 | 775 | then throw("Use decreasePosition to decrease position size") | |
776 | 776 | else throw("Close position first") | |
777 | 777 | } | |
778 | - | let newPositionSize = $ | |
779 | - | let newPositionRemainMargin = $ | |
780 | - | let newPositionOpenNotional = $ | |
781 | - | let newPositionLatestCPF = $ | |
782 | - | let baseAssetReserveAfter = $ | |
783 | - | let quoteAssetReserveAfter = $ | |
784 | - | let totalPositionSizeAfter = $ | |
785 | - | let cumulativeNotionalAfter = $ | |
786 | - | let openInterestNotionalAfter = $ | |
787 | - | let totalLongAfter = $ | |
788 | - | let totalShortAfter = $ | |
778 | + | let newPositionSize = $t03285935248._1 | |
779 | + | let newPositionRemainMargin = $t03285935248._2 | |
780 | + | let newPositionOpenNotional = $t03285935248._3 | |
781 | + | let newPositionLatestCPF = $t03285935248._4 | |
782 | + | let baseAssetReserveAfter = $t03285935248._5 | |
783 | + | let quoteAssetReserveAfter = $t03285935248._6 | |
784 | + | let totalPositionSizeAfter = $t03285935248._7 | |
785 | + | let cumulativeNotionalAfter = $t03285935248._8 | |
786 | + | let openInterestNotionalAfter = $t03285935248._9 | |
787 | + | let totalLongAfter = $t03285935248._10 | |
788 | + | let totalShortAfter = $t03285935248._11 | |
789 | 789 | let feeToStakers = (feeAmount / 2) | |
790 | 790 | let feeToInsurance = (feeAmount - feeToStakers) | |
791 | 791 | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
792 | 792 | if ((stake == stake)) | |
793 | 793 | then { | |
794 | 794 | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
795 | 795 | if ((depositInsurance == depositInsurance)) | |
796 | 796 | then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
797 | 797 | else throw("Strict value is not equal to itself.") | |
798 | 798 | } | |
799 | 799 | else throw("Strict value is not equal to itself.") | |
800 | 800 | } | |
801 | 801 | } | |
802 | 802 | ||
803 | 803 | ||
804 | 804 | ||
805 | 805 | @Callable(i) | |
806 | 806 | func addMargin () = { | |
807 | 807 | let _rawAmount = i.payments[0].amount | |
808 | 808 | if (if (if (if ((i.payments[0].assetId != quoteAsset())) | |
809 | 809 | then true | |
810 | 810 | else !(requireOpenPosition(toString(i.caller)))) | |
811 | 811 | then true | |
812 | 812 | else !(initialized())) | |
813 | 813 | then true | |
814 | 814 | else paused()) | |
815 | 815 | then throw("Invalid addMargin parameters") | |
816 | 816 | else { | |
817 | 817 | let feeAmount = muld(_rawAmount, fee()) | |
818 | 818 | let _amount = (_rawAmount - feeAmount) | |
819 | - | let $ | |
820 | - | let oldPositionSize = $ | |
821 | - | let oldPositionMargin = $ | |
822 | - | let oldPositionOpenNotional = $ | |
823 | - | let oldPositionLstUpdCPF = $ | |
819 | + | let $t03652436676 = getPosition(toString(i.caller)) | |
820 | + | let oldPositionSize = $t03652436676._1 | |
821 | + | let oldPositionMargin = $t03652436676._2 | |
822 | + | let oldPositionOpenNotional = $t03652436676._3 | |
823 | + | let oldPositionLstUpdCPF = $t03652436676._4 | |
824 | 824 | let feeToStakers = (feeAmount / 2) | |
825 | 825 | let feeToInsurance = (feeAmount - feeToStakers) | |
826 | 826 | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
827 | 827 | if ((stake == stake)) | |
828 | 828 | then { | |
829 | 829 | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
830 | 830 | if ((depositInsurance == depositInsurance)) | |
831 | 831 | then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
832 | 832 | else throw("Strict value is not equal to itself.") | |
833 | 833 | } | |
834 | 834 | else throw("Strict value is not equal to itself.") | |
835 | 835 | } | |
836 | 836 | } | |
837 | 837 | ||
838 | 838 | ||
839 | 839 | ||
840 | 840 | @Callable(i) | |
841 | 841 | func removeMargin (_amount) = if (if (if (if ((0 >= _amount)) | |
842 | 842 | then true | |
843 | 843 | else !(requireOpenPosition(toString(i.caller)))) | |
844 | 844 | then true | |
845 | 845 | else !(initialized())) | |
846 | 846 | then true | |
847 | 847 | else paused()) | |
848 | 848 | then throw("Invalid removeMargin parameters") | |
849 | 849 | else { | |
850 | - | let $ | |
851 | - | let oldPositionSize = $ | |
852 | - | let oldPositionMargin = $ | |
853 | - | let oldPositionOpenNotional = $ | |
854 | - | let oldPositionLstUpdCPF = $ | |
850 | + | let $t03759637748 = getPosition(toString(i.caller)) | |
851 | + | let oldPositionSize = $t03759637748._1 | |
852 | + | let oldPositionMargin = $t03759637748._2 | |
853 | + | let oldPositionOpenNotional = $t03759637748._3 | |
854 | + | let oldPositionLstUpdCPF = $t03759637748._4 | |
855 | 855 | let marginDelta = -(_amount) | |
856 | - | let $ | |
857 | - | let remainMargin = $ | |
858 | - | let badDebt = $ | |
856 | + | let $t03778537964 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
857 | + | let remainMargin = $t03778537964._1 | |
858 | + | let badDebt = $t03778537964._2 | |
859 | 859 | if ((badDebt != 0)) | |
860 | 860 | then throw("Invalid removed margin amount") | |
861 | 861 | else { | |
862 | 862 | let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional) | |
863 | 863 | if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true))) | |
864 | 864 | then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio()))) | |
865 | 865 | else { | |
866 | 866 | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil) | |
867 | 867 | if ((unstake == unstake)) | |
868 | 868 | then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount))) | |
869 | 869 | else throw("Strict value is not equal to itself.") | |
870 | 870 | } | |
871 | 871 | } | |
872 | 872 | } | |
873 | 873 | ||
874 | 874 | ||
875 | 875 | ||
876 | 876 | @Callable(i) | |
877 | 877 | func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller)))) | |
878 | 878 | then true | |
879 | 879 | else !(initialized())) | |
880 | 880 | then true | |
881 | 881 | else paused()) | |
882 | 882 | then throw("Invalid closePosition parameters") | |
883 | 883 | else { | |
884 | - | let $ | |
885 | - | let x1 = $ | |
886 | - | let positionBadDebt = $ | |
887 | - | let realizedPnl = $ | |
888 | - | let marginToVault = $ | |
889 | - | let quoteAssetReserveAfter = $ | |
890 | - | let baseAssetReserveAfter = $ | |
891 | - | let totalPositionSizeAfter = $ | |
892 | - | let cumulativeNotionalAfter = $ | |
893 | - | let openInterestNotionalAfter = $ | |
894 | - | let x2 = $ | |
895 | - | let totalLongAfter = $ | |
896 | - | let totalShortAfter = $ | |
884 | + | let $t03906039444 = internalClosePosition(toString(i.caller)) | |
885 | + | let x1 = $t03906039444._1 | |
886 | + | let positionBadDebt = $t03906039444._2 | |
887 | + | let realizedPnl = $t03906039444._3 | |
888 | + | let marginToVault = $t03906039444._4 | |
889 | + | let quoteAssetReserveAfter = $t03906039444._5 | |
890 | + | let baseAssetReserveAfter = $t03906039444._6 | |
891 | + | let totalPositionSizeAfter = $t03906039444._7 | |
892 | + | let cumulativeNotionalAfter = $t03906039444._8 | |
893 | + | let openInterestNotionalAfter = $t03906039444._9 | |
894 | + | let x2 = $t03906039444._10 | |
895 | + | let totalLongAfter = $t03906039444._11 | |
896 | + | let totalShortAfter = $t03906039444._12 | |
897 | 897 | if ((positionBadDebt > 0)) | |
898 | 898 | then throw("Unable to close position with bad debt") | |
899 | 899 | else { | |
900 | 900 | let withdrawAmount = abs(marginToVault) | |
901 | 901 | let ammBalance = (cbalance() - withdrawAmount) | |
902 | - | let $ | |
902 | + | let $t03965339795 = if ((0 > ammBalance)) | |
903 | 903 | then $Tuple2(0, abs(ammBalance)) | |
904 | 904 | else $Tuple2(ammBalance, 0) | |
905 | - | let ammNewBalance = $ | |
906 | - | let getFromInsurance = $ | |
905 | + | let ammNewBalance = $t03965339795._1 | |
906 | + | let getFromInsurance = $t03965339795._2 | |
907 | 907 | let x = if ((getFromInsurance > 0)) | |
908 | 908 | then { | |
909 | 909 | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil) | |
910 | 910 | if ((withdrawInsurance == withdrawInsurance)) | |
911 | 911 | then nil | |
912 | 912 | else throw("Strict value is not equal to itself.") | |
913 | 913 | } | |
914 | 914 | else nil | |
915 | 915 | if ((x == x)) | |
916 | 916 | then { | |
917 | 917 | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil) | |
918 | 918 | if ((unstake == unstake)) | |
919 | 919 | then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(ammNewBalance)) | |
920 | 920 | else throw("Strict value is not equal to itself.") | |
921 | 921 | } | |
922 | 922 | else throw("Strict value is not equal to itself.") | |
923 | 923 | } | |
924 | 924 | } | |
925 | 925 | ||
926 | 926 | ||
927 | 927 | ||
928 | 928 | @Callable(i) | |
929 | 929 | func liquidate (_trader) = { | |
930 | 930 | let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
931 | 931 | let marginRatio = if (isOverFluctuationLimit()) | |
932 | 932 | then { | |
933 | 933 | let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE) | |
934 | 934 | vmax(spotMarginRatio, oracleMarginRatio) | |
935 | 935 | } | |
936 | 936 | else spotMarginRatio | |
937 | 937 | if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false))) | |
938 | 938 | then true | |
939 | 939 | else !(requireOpenPosition(_trader))) | |
940 | 940 | then true | |
941 | 941 | else !(initialized())) | |
942 | 942 | then true | |
943 | 943 | else paused()) | |
944 | 944 | then throw("Unable to liquidate") | |
945 | 945 | else { | |
946 | - | let $ | |
947 | - | let x1 = $ | |
948 | - | let badDebt = $ | |
949 | - | let x2 = $ | |
950 | - | let x3 = $ | |
951 | - | let quoteAssetReserveAfter = $ | |
952 | - | let baseAssetReserveAfter = $ | |
953 | - | let totalPositionSizeAfter = $ | |
954 | - | let cumulativeNotionalAfter = $ | |
955 | - | let openInterestNotionalAfter = $ | |
956 | - | let exchangedQuoteAssetAmount = $ | |
957 | - | let totalLongAfter = $ | |
958 | - | let totalShortAfter = $ | |
946 | + | let $t04134341759 = internalClosePosition(_trader) | |
947 | + | let x1 = $t04134341759._1 | |
948 | + | let badDebt = $t04134341759._2 | |
949 | + | let x2 = $t04134341759._3 | |
950 | + | let x3 = $t04134341759._4 | |
951 | + | let quoteAssetReserveAfter = $t04134341759._5 | |
952 | + | let baseAssetReserveAfter = $t04134341759._6 | |
953 | + | let totalPositionSizeAfter = $t04134341759._7 | |
954 | + | let cumulativeNotionalAfter = $t04134341759._8 | |
955 | + | let openInterestNotionalAfter = $t04134341759._9 | |
956 | + | let exchangedQuoteAssetAmount = $t04134341759._10 | |
957 | + | let totalLongAfter = $t04134341759._11 | |
958 | + | let totalShortAfter = $t04134341759._12 | |
959 | 959 | let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) | |
960 | 960 | let feeToLiquidator = (liquidationPenalty / 2) | |
961 | 961 | let feeToInsurance = (liquidationPenalty - feeToLiquidator) | |
962 | 962 | let ammBalance = (cbalance() - liquidationPenalty) | |
963 | - | let $ | |
963 | + | let $t04215742292 = if ((0 > ammBalance)) | |
964 | 964 | then $Tuple2(0, abs(ammBalance)) | |
965 | 965 | else $Tuple2(ammBalance, 0) | |
966 | - | let newAmmBalance = $ | |
967 | - | let takeFromInsurance = $ | |
966 | + | let newAmmBalance = $t04215742292._1 | |
967 | + | let takeFromInsurance = $t04215742292._2 | |
968 | 968 | let x = if ((takeFromInsurance > 0)) | |
969 | 969 | then { | |
970 | 970 | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil) | |
971 | 971 | if ((withdrawInsurance == withdrawInsurance)) | |
972 | 972 | then nil | |
973 | 973 | else throw("Strict value is not equal to itself.") | |
974 | 974 | } | |
975 | 975 | else nil | |
976 | 976 | if ((x == x)) | |
977 | 977 | then { | |
978 | 978 | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(liquidationPenalty - takeFromInsurance), toBase58String(quoteAsset())], nil) | |
979 | 979 | if ((unstake == unstake)) | |
980 | 980 | then { | |
981 | 981 | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
982 | 982 | if ((depositInsurance == depositInsurance)) | |
983 | 983 | then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance)) | |
984 | 984 | else throw("Strict value is not equal to itself.") | |
985 | 985 | } | |
986 | 986 | else throw("Strict value is not equal to itself.") | |
987 | 987 | } | |
988 | 988 | else throw("Strict value is not equal to itself.") | |
989 | 989 | } | |
990 | 990 | } | |
991 | 991 | ||
992 | 992 | ||
993 | 993 | ||
994 | 994 | @Callable(i) | |
995 | 995 | func payFunding () = { | |
996 | 996 | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
997 | 997 | if (if (if ((fundingBlockTimestamp > lastBlock.timestamp)) | |
998 | 998 | then true | |
999 | 999 | else !(initialized())) | |
1000 | 1000 | then true | |
1001 | 1001 | else paused()) | |
1002 | 1002 | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp))) | |
1003 | 1003 | else { | |
1004 | 1004 | let underlyingPrice = getOracleTwapPrice() | |
1005 | 1005 | let spotTwapPrice = getTwapSpotPrice() | |
1006 | 1006 | let premium = (spotTwapPrice - underlyingPrice) | |
1007 | - | let $ | |
1007 | + | let $t04366845003 = if (if ((totalShortPositionSize() == 0)) | |
1008 | 1008 | then true | |
1009 | 1009 | else (totalLongPositionSize() == 0)) | |
1010 | 1010 | then $Tuple2(0, 0) | |
1011 | 1011 | else if ((0 > premium)) | |
1012 | 1012 | then { | |
1013 | 1013 | let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
1014 | 1014 | let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize()) | |
1015 | 1015 | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
1016 | 1016 | } | |
1017 | 1017 | else { | |
1018 | 1018 | let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
1019 | 1019 | let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize()) | |
1020 | 1020 | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
1021 | 1021 | } | |
1022 | - | let shortPremiumFraction = $ | |
1023 | - | let longPremiumFraction = $ | |
1022 | + | let shortPremiumFraction = $t04366845003._1 | |
1023 | + | let longPremiumFraction = $t04366845003._2 | |
1024 | 1024 | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
1025 | 1025 | } | |
1026 | 1026 | } | |
1027 | 1027 | ||
1028 | 1028 | ||
1029 | 1029 | ||
1030 | 1030 | @Callable(i) | |
1031 | 1031 | func v_get (_trader) = { | |
1032 | - | let $ | |
1033 | - | let x1 = $ | |
1034 | - | let x2 = $ | |
1035 | - | let x3 = $ | |
1036 | - | let x4 = $ | |
1032 | + | let $t04537845431 = internalClosePosition(_trader) | |
1033 | + | let x1 = $t04537845431._1 | |
1034 | + | let x2 = $t04537845431._2 | |
1035 | + | let x3 = $t04537845431._3 | |
1036 | + | let x4 = $t04537845431._4 | |
1037 | 1037 | throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader)))) | |
1038 | 1038 | } | |
1039 | 1039 | ||
1040 | 1040 | ||
1041 | 1041 | ||
1042 | 1042 | @Callable(i) | |
1043 | 1043 | func view_calcRemainMarginWithFundingPayment (_trader) = { | |
1044 | - | let $ | |
1045 | - | let positionSize = $ | |
1046 | - | let positionMargin = $ | |
1047 | - | let pon = $ | |
1048 | - | let positionLstUpdCPF = $ | |
1049 | - | let $ | |
1050 | - | let positionNotional = $ | |
1051 | - | let unrealizedPnl = $ | |
1052 | - | let $ | |
1053 | - | let remainMargin = $ | |
1054 | - | let badDebt = $ | |
1055 | - | let fundingPayment = $ | |
1044 | + | let $t04557845689 = getPosition(_trader) | |
1045 | + | let positionSize = $t04557845689._1 | |
1046 | + | let positionMargin = $t04557845689._2 | |
1047 | + | let pon = $t04557845689._3 | |
1048 | + | let positionLstUpdCPF = $t04557845689._4 | |
1049 | + | let $t04569445795 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1050 | + | let positionNotional = $t04569445795._1 | |
1051 | + | let unrealizedPnl = $t04569445795._2 | |
1052 | + | let $t04580045982 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
1053 | + | let remainMargin = $t04580045982._1 | |
1054 | + | let badDebt = $t04580045982._2 | |
1055 | + | let fundingPayment = $t04580045982._3 | |
1056 | 1056 | throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader)))) | |
1057 | 1057 | } | |
1058 | 1058 | ||
1059 | 1059 | ||
1060 | 1060 | @Verifier(tx) | |
1061 | 1061 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey()) | |
1062 | 1062 |
github/deemru/w8io/026f985 151.39 ms ◑