tx · Ehsz59tFRahrbrmvuUU6tyHrXcS3kaT9CAFX8f4kfMsT

3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj:  -0.05100000 Waves

2022.08.24 17:42 [2198697] smart account 3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj > SELF 0.00000000 Waves

{ "type": 13, "id": "Ehsz59tFRahrbrmvuUU6tyHrXcS3kaT9CAFX8f4kfMsT", "fee": 5100000, "feeAssetId": null, "timestamp": 1661352204691, "version": 2, "chainId": 84, "sender": "3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj", "senderPublicKey": "AJNTN7EtP9dsAmPzcKRp9bRMvzZL4uwkmVxQuFuar3Qr", "proofs": [ "4dhdHV1mKsTTPG9skVEo9ET4fUAtbcpXWdygpJhsFXSWqZk3CRMibPgZtkVTvmmGPB6XXEP4pkXxVM3Vgo7D4GLi" ], "script": "base64:BgJjCAISABIAEgMKAQESAwoBARIJCgcBAQEBAQEBEg4KDAEBAQEBAQEICAgBARIDCgEBEgMKAQESBQoDAQEBEgUKAwEBARIAEgMKAQESABIDCgEIEgASAwoBCBIDCgEIEgQKAggBdwAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgANa19pbml0aWFsaXplZAINa19pbml0aWFsaXplZAAIa19wYXVzZWQCCGtfcGF1c2VkAAVrX2ZlZQIFa19mZWUAD2tfZnV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AAIFB3Vuc3Rha2UFB3Vuc3Rha2UJAM4IAgkBCHdpdGhkcmF3AgkBEUBleHRyTmF0aXZlKDEwNjIpAQUHX3RyYWRlcgUHX2Ftb3VudAkBDXVwZGF0ZUJhbGFuY2UBCQBlAgkBCGNiYWxhbmNlAAUHX2Ftb3VudAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJAQ5hZG1pblB1YmxpY0tleQD2Kwit", "height": 2198697, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6jA3yWbKPoHCx6LkM23kJrgaTaJtHUB2dD1erLLMTd3U Next: none Diff:
OldNewDifferences
669669
670670
671671 @Callable(i)
672+func setMaxPriceImpact (_maxPriceImpact) = if (if ((0 >= _maxPriceImpact))
673+ then true
674+ else !(initialized()))
675+ then throw("Invalid _maxPriceImpact parameters")
676+ else updateSettings(initMarginRatio(), maintenanceMarginRatio(), liquidationFeeRatio(), fundingPeriodRaw(), fee(), spreadLimit(), _maxPriceImpact)
677+
678+
679+
680+@Callable(i)
681+func setInitMarginRatio (_initMarginRatio) = if (if ((0 >= _initMarginRatio))
682+ then true
683+ else !(initialized()))
684+ then throw("Invalid setInitMarginRatio parameters")
685+ else updateSettings(_initMarginRatio, maintenanceMarginRatio(), liquidationFeeRatio(), fundingPeriodRaw(), fee(), spreadLimit(), maxPriceImpact())
686+
687+
688+
689+@Callable(i)
672690 func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if ((0 >= _amount))
673691 then true
674692 else !(initialized()))
680698 else paused())
681699 then throw("Invalid decreasePosition parameters")
682700 else {
683- let $t03093131083 = getPosition(toString(i.caller))
684- let oldPositionSize = $t03093131083._1
685- let oldPositionMargin = $t03093131083._2
686- let oldPositionOpenNotional = $t03093131083._3
687- let oldPositionLstUpdCPF = $t03093131083._4
701+ let $t03173131883 = getPosition(toString(i.caller))
702+ let oldPositionSize = $t03173131883._1
703+ let oldPositionMargin = $t03173131883._2
704+ let oldPositionOpenNotional = $t03173131883._3
705+ let oldPositionLstUpdCPF = $t03173131883._4
688706 let _direction = if ((oldPositionSize > 0))
689707 then DIR_SHORT
690708 else DIR_LONG
691709 let isAdd = (_direction == DIR_LONG)
692710 let openNotional = muld(_amount, _leverage)
693- let $t03125631372 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
694- let oldPositionNotional = $t03125631372._1
695- let unrealizedPnl = $t03125631372._2
696- let $t03137833927 = if ((oldPositionNotional > openNotional))
711+ let $t03205632172 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
712+ let oldPositionNotional = $t03205632172._1
713+ let unrealizedPnl = $t03205632172._2
714+ let $t03217834727 = if ((oldPositionNotional > openNotional))
697715 then {
698- let $t03175531974 = swapInput(isAdd, openNotional)
699- let exchangedPositionSize = $t03175531974._1
700- let quoteAssetReserveAfter = $t03175531974._2
701- let baseAssetReserveAfter = $t03175531974._3
702- let totalPositionSizeAfter = $t03175531974._4
703- let cumulativeNotionalAfter = $t03175531974._5
716+ let $t03255532774 = swapInput(isAdd, openNotional)
717+ let exchangedPositionSize = $t03255532774._1
718+ let quoteAssetReserveAfter = $t03255532774._2
719+ let baseAssetReserveAfter = $t03255532774._3
720+ let totalPositionSizeAfter = $t03255532774._4
721+ let cumulativeNotionalAfter = $t03255532774._5
704722 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
705723 if (if ((_minBaseAssetAmount != 0))
706724 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
708726 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
709727 else {
710728 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
711- let $t03241132656 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
712- let remainMargin = $t03241132656._1
713- let badDebt = $t03241132656._2
714- let fundingPayment = $t03241132656._3
729+ let $t03321133456 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
730+ let remainMargin = $t03321133456._1
731+ let badDebt = $t03321133456._2
732+ let fundingPayment = $t03321133456._3
715733 let exchangedQuoteAssetAmount = openNotional
716734 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
717735 let remainOpenNotional = if ((oldPositionSize > 0))
726744 }
727745 }
728746 else throw("Close position first")
729- let newPositionSize = $t03137833927._1
730- let newPositionRemainMargin = $t03137833927._2
731- let newPositionOpenNotional = $t03137833927._3
732- let newPositionLatestCPF = $t03137833927._4
733- let baseAssetReserveAfter = $t03137833927._5
734- let quoteAssetReserveAfter = $t03137833927._6
735- let totalPositionSizeAfter = $t03137833927._7
736- let cumulativeNotionalAfter = $t03137833927._8
737- let openInterestNotionalAfter = $t03137833927._9
738- let totalLongAfter = $t03137833927._10
739- let totalShortAfter = $t03137833927._11
747+ let newPositionSize = $t03217834727._1
748+ let newPositionRemainMargin = $t03217834727._2
749+ let newPositionOpenNotional = $t03217834727._3
750+ let newPositionLatestCPF = $t03217834727._4
751+ let baseAssetReserveAfter = $t03217834727._5
752+ let quoteAssetReserveAfter = $t03217834727._6
753+ let totalPositionSizeAfter = $t03217834727._7
754+ let cumulativeNotionalAfter = $t03217834727._8
755+ let openInterestNotionalAfter = $t03217834727._9
756+ let totalLongAfter = $t03217834727._10
757+ let totalShortAfter = $t03217834727._11
740758 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
741759 if ((notifyNotional == notifyNotional))
742760 then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
765783 else {
766784 let feeAmount = muld(_rawAmount, fee())
767785 let _amount = (_rawAmount - feeAmount)
768- let $t03504535197 = getPosition(toString(i.caller))
769- let oldPositionSize = $t03504535197._1
770- let oldPositionMargin = $t03504535197._2
771- let oldPositionOpenNotional = $t03504535197._3
772- let oldPositionLstUpdCPF = $t03504535197._4
786+ let $t03584535997 = getPosition(toString(i.caller))
787+ let oldPositionSize = $t03584535997._1
788+ let oldPositionMargin = $t03584535997._2
789+ let oldPositionOpenNotional = $t03584535997._3
790+ let oldPositionLstUpdCPF = $t03584535997._4
773791 let isNewPosition = (oldPositionSize == 0)
774792 let isSameDirection = if ((oldPositionSize > 0))
775793 then (_direction == DIR_LONG)
778796 then isSameDirection
779797 else false
780798 let isAdd = (_direction == DIR_LONG)
781- let $t03548637875 = if (if (isNewPosition)
799+ let $t03628638675 = if (if (isNewPosition)
782800 then true
783801 else expandExisting)
784802 then {
785803 let openNotional = muld(_amount, _leverage)
786- let $t03591036116 = swapInput(isAdd, openNotional)
787- let amountBaseAssetBought = $t03591036116._1
788- let quoteAssetReserveAfter = $t03591036116._2
789- let baseAssetReserveAfter = $t03591036116._3
790- let totalPositionSizeAfter = $t03591036116._4
791- let cumulativeNotionalAfter = $t03591036116._5
804+ let $t03671036916 = swapInput(isAdd, openNotional)
805+ let amountBaseAssetBought = $t03671036916._1
806+ let quoteAssetReserveAfter = $t03671036916._2
807+ let baseAssetReserveAfter = $t03671036916._3
808+ let totalPositionSizeAfter = $t03671036916._4
809+ let cumulativeNotionalAfter = $t03671036916._5
792810 if (if ((_minBaseAssetAmount != 0))
793811 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
794812 else false)
796814 else {
797815 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
798816 let increaseMarginRequirement = divd(openNotional, _leverage)
799- let $t03649736736 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
800- let remainMargin = $t03649736736._1
801- let x1 = $t03649736736._2
802- let x2 = $t03649736736._3
817+ let $t03729737536 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
818+ let remainMargin = $t03729737536._1
819+ let x1 = $t03729737536._2
820+ let x2 = $t03729737536._3
803821 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
804822 then abs(amountBaseAssetBought)
805823 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
809827 }
810828 else {
811829 let openNotional = muld(_amount, _leverage)
812- let $t03756837684 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
813- let oldPositionNotional = $t03756837684._1
814- let unrealizedPnl = $t03756837684._2
830+ let $t03836838484 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
831+ let oldPositionNotional = $t03836838484._1
832+ let unrealizedPnl = $t03836838484._2
815833 if ((oldPositionNotional > openNotional))
816834 then throw("Use decreasePosition to decrease position size")
817835 else throw("Close position first")
818836 }
819- let newPositionSize = $t03548637875._1
820- let newPositionRemainMargin = $t03548637875._2
821- let newPositionOpenNotional = $t03548637875._3
822- let newPositionLatestCPF = $t03548637875._4
823- let baseAssetReserveAfter = $t03548637875._5
824- let quoteAssetReserveAfter = $t03548637875._6
825- let totalPositionSizeAfter = $t03548637875._7
826- let cumulativeNotionalAfter = $t03548637875._8
827- let openInterestNotionalAfter = $t03548637875._9
828- let totalLongAfter = $t03548637875._10
829- let totalShortAfter = $t03548637875._11
837+ let newPositionSize = $t03628638675._1
838+ let newPositionRemainMargin = $t03628638675._2
839+ let newPositionOpenNotional = $t03628638675._3
840+ let newPositionLatestCPF = $t03628638675._4
841+ let baseAssetReserveAfter = $t03628638675._5
842+ let quoteAssetReserveAfter = $t03628638675._6
843+ let totalPositionSizeAfter = $t03628638675._7
844+ let cumulativeNotionalAfter = $t03628638675._8
845+ let openInterestNotionalAfter = $t03628638675._9
846+ let totalLongAfter = $t03628638675._10
847+ let totalShortAfter = $t03628638675._11
830848 let feeToStakers = (feeAmount / 2)
831849 let feeToInsurance = (feeAmount - feeToStakers)
832850 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
867885 else {
868886 let feeAmount = muld(_rawAmount, fee())
869887 let _amount = (_rawAmount - feeAmount)
870- let $t03943139583 = getPosition(toString(i.caller))
871- let oldPositionSize = $t03943139583._1
872- let oldPositionMargin = $t03943139583._2
873- let oldPositionOpenNotional = $t03943139583._3
874- let oldPositionLstUpdCPF = $t03943139583._4
888+ let $t04023140383 = getPosition(toString(i.caller))
889+ let oldPositionSize = $t04023140383._1
890+ let oldPositionMargin = $t04023140383._2
891+ let oldPositionOpenNotional = $t04023140383._3
892+ let oldPositionLstUpdCPF = $t04023140383._4
875893 let feeToStakers = (feeAmount / 2)
876894 let feeToInsurance = (feeAmount - feeToStakers)
877895 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
903921 else paused())
904922 then throw("Invalid removeMargin parameters")
905923 else {
906- let $t04063240784 = getPosition(toString(i.caller))
907- let oldPositionSize = $t04063240784._1
908- let oldPositionMargin = $t04063240784._2
909- let oldPositionOpenNotional = $t04063240784._3
910- let oldPositionLstUpdCPF = $t04063240784._4
924+ let $t04143241584 = getPosition(toString(i.caller))
925+ let oldPositionSize = $t04143241584._1
926+ let oldPositionMargin = $t04143241584._2
927+ let oldPositionOpenNotional = $t04143241584._3
928+ let oldPositionLstUpdCPF = $t04143241584._4
911929 let marginDelta = -(_amount)
912- let $t04082141000 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
913- let remainMargin = $t04082141000._1
914- let badDebt = $t04082141000._2
930+ let $t04162141800 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
931+ let remainMargin = $t04162141800._1
932+ let badDebt = $t04162141800._2
915933 if ((badDebt != 0))
916934 then throw("Invalid removed margin amount")
917935 else {
937955 else paused())
938956 then throw("Invalid closePosition parameters")
939957 else {
940- let $t04209642486 = internalClosePosition(toString(i.caller), true)
941- let x1 = $t04209642486._1
942- let positionBadDebt = $t04209642486._2
943- let realizedPnl = $t04209642486._3
944- let marginToVault = $t04209642486._4
945- let quoteAssetReserveAfter = $t04209642486._5
946- let baseAssetReserveAfter = $t04209642486._6
947- let totalPositionSizeAfter = $t04209642486._7
948- let cumulativeNotionalAfter = $t04209642486._8
949- let openInterestNotionalAfter = $t04209642486._9
950- let x2 = $t04209642486._10
951- let totalLongAfter = $t04209642486._11
952- let totalShortAfter = $t04209642486._12
958+ let $t04289643286 = internalClosePosition(toString(i.caller), true)
959+ let x1 = $t04289643286._1
960+ let positionBadDebt = $t04289643286._2
961+ let realizedPnl = $t04289643286._3
962+ let marginToVault = $t04289643286._4
963+ let quoteAssetReserveAfter = $t04289643286._5
964+ let baseAssetReserveAfter = $t04289643286._6
965+ let totalPositionSizeAfter = $t04289643286._7
966+ let cumulativeNotionalAfter = $t04289643286._8
967+ let openInterestNotionalAfter = $t04289643286._9
968+ let x2 = $t04289643286._10
969+ let totalLongAfter = $t04289643286._11
970+ let totalShortAfter = $t04289643286._12
953971 if ((positionBadDebt > 0))
954972 then throw("Unable to close position with bad debt")
955973 else {
956974 let withdrawAmount = abs(marginToVault)
957975 let ammBalance = (cbalance() - withdrawAmount)
958- let $t04269542837 = if ((0 > ammBalance))
976+ let $t04349543637 = if ((0 > ammBalance))
959977 then $Tuple2(0, abs(ammBalance))
960978 else $Tuple2(ammBalance, 0)
961- let ammNewBalance = $t04269542837._1
962- let getFromInsurance = $t04269542837._2
979+ let ammNewBalance = $t04349543637._1
980+ let getFromInsurance = $t04349543637._2
963981 let x = if ((getFromInsurance > 0))
964982 then {
965983 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
10041022 else paused())
10051023 then throw("Unable to liquidate")
10061024 else {
1007- let $t04452744950 = internalClosePosition(_trader, false)
1008- let x1 = $t04452744950._1
1009- let badDebt = $t04452744950._2
1010- let x2 = $t04452744950._3
1011- let x3 = $t04452744950._4
1012- let quoteAssetReserveAfter = $t04452744950._5
1013- let baseAssetReserveAfter = $t04452744950._6
1014- let totalPositionSizeAfter = $t04452744950._7
1015- let cumulativeNotionalAfter = $t04452744950._8
1016- let openInterestNotionalAfter = $t04452744950._9
1017- let exchangedQuoteAssetAmount = $t04452744950._10
1018- let totalLongAfter = $t04452744950._11
1019- let totalShortAfter = $t04452744950._12
1025+ let $t04532745750 = internalClosePosition(_trader, false)
1026+ let x1 = $t04532745750._1
1027+ let badDebt = $t04532745750._2
1028+ let x2 = $t04532745750._3
1029+ let x3 = $t04532745750._4
1030+ let quoteAssetReserveAfter = $t04532745750._5
1031+ let baseAssetReserveAfter = $t04532745750._6
1032+ let totalPositionSizeAfter = $t04532745750._7
1033+ let cumulativeNotionalAfter = $t04532745750._8
1034+ let openInterestNotionalAfter = $t04532745750._9
1035+ let exchangedQuoteAssetAmount = $t04532745750._10
1036+ let totalLongAfter = $t04532745750._11
1037+ let totalShortAfter = $t04532745750._12
10201038 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
10211039 let feeToLiquidator = (liquidationPenalty / 2)
10221040 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
10231041 let ammBalance = (cbalance() - liquidationPenalty)
1024- let $t04534845483 = if ((0 > ammBalance))
1042+ let $t04614846283 = if ((0 > ammBalance))
10251043 then $Tuple2(0, abs(ammBalance))
10261044 else $Tuple2(ammBalance, 0)
1027- let newAmmBalance = $t04534845483._1
1028- let takeFromInsurance = $t04534845483._2
1045+ let newAmmBalance = $t04614846283._1
1046+ let takeFromInsurance = $t04614846283._2
10291047 let x = if ((takeFromInsurance > 0))
10301048 then {
10311049 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
10701088 let underlyingPrice = getOracleTwapPrice()
10711089 let spotTwapPrice = getTwapSpotPrice()
10721090 let premium = (spotTwapPrice - underlyingPrice)
1073- let $t04697748312 = if (if ((totalShortPositionSize() == 0))
1091+ let $t04777749112 = if (if ((totalShortPositionSize() == 0))
10741092 then true
10751093 else (totalLongPositionSize() == 0))
10761094 then $Tuple2(0, 0)
10851103 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
10861104 $Tuple2(shortPremiumFraction, longPremiumFraction)
10871105 }
1088- let shortPremiumFraction = $t04697748312._1
1089- let longPremiumFraction = $t04697748312._2
1106+ let shortPremiumFraction = $t04777749112._1
1107+ let longPremiumFraction = $t04777749112._2
10901108 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
10911109 }
10921110 }
10951113
10961114 @Callable(i)
10971115 func v_get (_trader) = {
1098- let $t04868748747 = internalClosePosition(_trader, false)
1099- let x1 = $t04868748747._1
1100- let x2 = $t04868748747._2
1101- let x3 = $t04868748747._3
1102- let x4 = $t04868748747._4
1116+ let $t04948749547 = internalClosePosition(_trader, false)
1117+ let x1 = $t04948749547._1
1118+ let x2 = $t04948749547._2
1119+ let x3 = $t04948749547._3
1120+ let x4 = $t04948749547._4
11031121 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
11041122 }
11051123
11071125
11081126 @Callable(i)
11091127 func view_calcRemainMarginWithFundingPayment (_trader) = {
1110- let $t04889449005 = getPosition(_trader)
1111- let positionSize = $t04889449005._1
1112- let positionMargin = $t04889449005._2
1113- let pon = $t04889449005._3
1114- let positionLstUpdCPF = $t04889449005._4
1115- let $t04901049111 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1116- let positionNotional = $t04901049111._1
1117- let unrealizedPnl = $t04901049111._2
1118- let $t04911649298 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1119- let remainMargin = $t04911649298._1
1120- let badDebt = $t04911649298._2
1121- let fundingPayment = $t04911649298._3
1128+ let $t04969449805 = getPosition(_trader)
1129+ let positionSize = $t04969449805._1
1130+ let positionMargin = $t04969449805._2
1131+ let pon = $t04969449805._3
1132+ let positionLstUpdCPF = $t04969449805._4
1133+ let $t04981049911 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1134+ let positionNotional = $t04981049911._1
1135+ let unrealizedPnl = $t04981049911._2
1136+ let $t04991650098 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1137+ let remainMargin = $t04991650098._1
1138+ let badDebt = $t04991650098._2
1139+ let fundingPayment = $t04991650098._3
11221140 throw(((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)))
11231141 }
11241142
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let k_ora_key = "k_ora_key"
55
66 let k_ora_block_key = "k_ora_block_key"
77
88 let k_ora = "k_ora"
99
1010 let k_balance = "k_balance"
1111
1212 let k_positionSize = "k_positionSize"
1313
1414 let k_positionMargin = "k_positionMargin"
1515
1616 let k_positionOpenNotional = "k_positionOpenNotional"
1717
1818 let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction"
1919
2020 let k_initialized = "k_initialized"
2121
2222 let k_paused = "k_paused"
2323
2424 let k_fee = "k_fee"
2525
2626 let k_fundingPeriod = "k_fundingPeriod"
2727
2828 let k_initMarginRatio = "k_initMarginRatio"
2929
3030 let k_maintenanceMarginRatio = "k_mmr"
3131
3232 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
3333
3434 let k_spreadLimit = "k_spreadLimit"
3535
3636 let k_maxPriceImpact = "k_maxPriceImpact"
3737
3838 let k_lastDataStr = "k_lastDataStr"
3939
4040 let k_lastMinuteId = "k_lastMinuteId"
4141
4242 let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice"
4343
4444 let k_twapDataLastPrice = "k_twapDataLastPrice"
4545
4646 let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId"
4747
4848 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
4949
5050 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
5151
5252 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
5353
5454 let k_longFundingRate = "k_longFundingRate"
5555
5656 let k_shortFundingRate = "k_shortFundingRate"
5757
5858 let k_quoteAssetReserve = "k_qtAstR"
5959
6060 let k_baseAssetReserve = "k_bsAstR"
6161
6262 let k_totalPositionSize = "k_totalPositionSize"
6363
6464 let k_totalLongPositionSize = "k_totalLongPositionSize"
6565
6666 let k_totalShortPositionSize = "k_totalShortPositionSize"
6767
6868 let k_cumulativeNotional = "k_cumulativeNotional"
6969
7070 let k_openInterestNotional = "k_openInterestNotional"
7171
7272 let k_coordinatorAddress = "k_coordinatorAddress"
7373
7474 let k_insurance_address = "k_insurance_address"
7575
7676 let k_admin_address = "k_admin_address"
7777
7878 let k_admin_public_key = "k_admin_public_key"
7979
8080 let k_quote_asset = "k_quote_asset"
8181
8282 let k_quote_staking = "k_quote_staking"
8383
8484 let k_staking_address = "k_staking_address"
8585
8686 let k_miner_address = "k_miner_address"
8787
8888 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
8989
9090
9191 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
9292
9393
9494 func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key))
9595
9696
9797 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
9898
9999
100100 func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set")
101101
102102
103103 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Insurance not set")
104104
105105
106106 func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set")
107107
108108
109109 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Insurance not set")
110110
111111
112112 let DIR_LONG = 1
113113
114114 let DIR_SHORT = 2
115115
116116 let TWAP_INTERVAL = 15
117117
118118 let ORACLE_INTERVAL = 15
119119
120120 let SECONDS = 1000
121121
122122 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
123123
124124 let ONE_DAY = (86400 * DECIMAL_UNIT)
125125
126126 let ALL_FEES = 100
127127
128128 let PNL_OPTION_SPOT = 1
129129
130130 let PNL_OPTION_ORACLE = 2
131131
132132 func s (_x) = (toString(_x) + ",")
133133
134134
135135 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
136136
137137
138138 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
139139
140140
141141 func abs (_x) = if ((_x > 0))
142142 then _x
143143 else -(_x)
144144
145145
146146 func vmax (_x,_y) = if ((_x >= _y))
147147 then _x
148148 else _y
149149
150150
151151 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
152152
153153
154154 func listToStr (_list) = {
155155 func _join (accumulator,val) = ((accumulator + val) + ",")
156156
157157 let newListStr = {
158158 let $l = _list
159159 let $s = size($l)
160160 let $acc0 = ""
161161 func $f0_1 ($a,$i) = if (($i >= $s))
162162 then $a
163163 else _join($a, $l[$i])
164164
165165 func $f0_2 ($a,$i) = if (($i >= $s))
166166 then $a
167167 else throw("List size exceeds 20")
168168
169169 $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)
170170 }
171171 let newListStrU = dropRight(newListStr, 1)
172172 let newListStrR = if ((take(newListStrU, 1) == ","))
173173 then drop(newListStrU, 1)
174174 else newListStrU
175175 newListStrR
176176 }
177177
178178
179179 func strToList (_str) = split(_str, ",")
180180
181181
182182 func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize))
183183 then (removeByIndex(_list, 0) :+ _value)
184184 else (_list :+ _value)
185185
186186
187187 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
188188
189189
190190 func cbalance () = int(k_balance)
191191
192192
193193 func fee () = int(k_fee)
194194
195195
196196 func initMarginRatio () = int(k_initMarginRatio)
197197
198198
199199 func qtAstR () = int(k_quoteAssetReserve)
200200
201201
202202 func bsAstR () = int(k_baseAssetReserve)
203203
204204
205205 func totalPositionSize () = int(k_totalPositionSize)
206206
207207
208208 func cumulativeNotional () = int(k_cumulativeNotional)
209209
210210
211211 func openInterestNotional () = int(k_openInterestNotional)
212212
213213
214214 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
215215
216216
217217 func fundingPeriodRaw () = int(k_fundingPeriod)
218218
219219
220220 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
221221
222222
223223 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
224224
225225
226226 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
227227
228228
229229 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
230230
231231
232232 func spreadLimit () = int(k_spreadLimit)
233233
234234
235235 func maxPriceImpact () = int(k_maxPriceImpact)
236236
237237
238238 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
239239
240240
241241 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
242242
243243
244244 func totalShortPositionSize () = int(k_totalShortPositionSize)
245245
246246
247247 func totalLongPositionSize () = int(k_totalLongPositionSize)
248248
249249
250250 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
251251 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
252252 if (if (_largerThanOrEqualTo)
253253 then (0 > remainingMarginRatio)
254254 else false)
255255 then throw("Invalid margin")
256256 else if (if (!(_largerThanOrEqualTo))
257257 then (remainingMarginRatio >= 0)
258258 else false)
259259 then throw("Invalid margin")
260260 else true
261261 }
262262
263263
264264 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
265265 then throw("Should not be called with _positionSize == 0")
266266 else if ((_positionSize > 0))
267267 then latestLongCumulativePremiumFraction()
268268 else latestShortCumulativePremiumFraction()
269269
270270
271271 func getPosition (_trader) = {
272272 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
273273 match positionSizeOpt {
274274 case positionSize: Int =>
275275 $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)))
276276 case _ =>
277277 $Tuple4(0, 0, 0, 0)
278278 }
279279 }
280280
281281
282282 func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0))
283283 then throw("No open position")
284284 else true
285285
286286
287287 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
288288
289289
290290 func paused () = valueOrElse(getBoolean(this, k_paused), false)
291291
292292
293293 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
294294 then {
295295 let newBase = (bsAstR() - _baseAssetAmount)
296296 if ((0 >= newBase))
297297 then throw("Tx lead to base asset reserve <= 0, revert")
298298 else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount))
299299 }
300300 else {
301301 let newQuote = (qtAstR() - _quoteAssetAmount)
302302 if ((0 >= newQuote))
303303 then throw("Tx lead to base quote reserve <= 0, revert")
304304 else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount))
305305 }
306306
307307
308308 func swapInput (_isAdd,_quoteAssetAmount) = {
309309 let _qtAstR = qtAstR()
310310 let _bsAstR = bsAstR()
311311 let k = muld(_qtAstR, _bsAstR)
312312 let quoteAssetReserveAfter = if (_isAdd)
313313 then (_qtAstR + _quoteAssetAmount)
314314 else (_qtAstR - _quoteAssetAmount)
315315 let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter)
316316 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
317317 let amountBaseAssetBought = if (_isAdd)
318318 then amountBaseAssetBoughtAbs
319319 else -(amountBaseAssetBoughtAbs)
320320 let $t01183712030 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs)
321321 let quoteAssetReserveAfter1 = $t01183712030._1
322322 let baseAssetReserveAfter1 = $t01183712030._2
323323 let totalPositionSizeAfter1 = $t01183712030._3
324324 let cumulativeNotionalAfter1 = $t01183712030._4
325325 let priceBefore = divd(_qtAstR, _bsAstR)
326326 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
327327 let priceDiff = abs((priceBefore - marketPrice))
328328 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
329329 let maxPriceImpactValue = maxPriceImpact()
330330 if ((priceImpact > maxPriceImpactValue))
331331 then throw(((((((((((((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)) + " before quote asset: ") + toString(_qtAstR)) + " before base asset: ") + toString(_bsAstR)) + " quote asset amount to exchange: ") + toString(_quoteAssetAmount)) + " price before: ") + toString(priceBefore)) + " marketPrice: ") + toString(marketPrice)))
332332 else $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
333333 }
334334
335335
336336 func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = {
337337 let fundingPayment = if ((_oldPositionSize != 0))
338338 then {
339339 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
340340 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
341341 }
342342 else 0
343343 let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
344344 let $t01352113648 = if ((0 > signedMargin))
345345 then $Tuple2(0, abs(signedMargin))
346346 else $Tuple2(abs(signedMargin), 0)
347347 let remainMargin = $t01352113648._1
348348 let badDebt = $t01352113648._2
349349 $Tuple3(remainMargin, badDebt, fundingPayment)
350350 }
351351
352352
353353 func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = {
354354 let _quoteAssetReserve = qtAstR()
355355 let _baseAssetReserve = bsAstR()
356356 let priceBefore = divd(_quoteAssetReserve, _baseAssetReserve)
357357 if ((_baseAssetAmount == 0))
358358 then throw("Invalid base asset amount")
359359 else {
360360 let k = muld(_quoteAssetReserve, _baseAssetReserve)
361361 let baseAssetPoolAmountAfter = if (_isAdd)
362362 then (_baseAssetReserve + _baseAssetAmount)
363363 else (_baseAssetReserve - _baseAssetAmount)
364364 let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter)
365365 let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve))
366366 let maxPriceImpactValue = maxPriceImpact()
367367 let $t01463214825 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount)
368368 let quoteAssetReserveAfter1 = $t01463214825._1
369369 let baseAssetReserveAfter1 = $t01463214825._2
370370 let totalPositionSizeAfter1 = $t01463214825._3
371371 let cumulativeNotionalAfter1 = $t01463214825._4
372372 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
373373 let priceDiff = abs((priceBefore - marketPrice))
374374 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
375375 if (if ((priceImpact > maxPriceImpactValue))
376376 then _checkMaxPriceImpact
377377 else false)
378378 then throw(((((((((((((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)) + " before quote asset: ") + toString(_quoteAssetReserve)) + " before base asset: ") + toString(_baseAssetReserve)) + " base asset amount to exchange: ") + toString(_baseAssetAmount)) + " price before: ") + toString(priceBefore)) + " market price: ") + toString(marketPrice)))
379379 else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd)
380380 then abs(_baseAssetAmount)
381381 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
382382 then abs(_baseAssetAmount)
383383 else 0)))
384384 }
385385 }
386386
387387
388388 func getOracleTwapPrice () = {
389389 let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "")
390390 let priceKey = getStringValue(this, k_ora_key)
391391 let blockKey = getStringValue(this, k_ora_block_key)
392392 let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey))
393393 lastValue
394394 }
395395
396396
397397 func getSpotPrice () = {
398398 let _quoteAssetReserve = qtAstR()
399399 let _baseAssetReserve = bsAstR()
400400 divd(_quoteAssetReserve, _baseAssetReserve)
401401 }
402402
403403
404404 func isOverFluctuationLimit () = {
405405 let oraclePrice = getOracleTwapPrice()
406406 let currentPrice = getSpotPrice()
407407 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
408408 }
409409
410410
411411 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
412412 let $t01729317421 = getPosition(_trader)
413413 let positionSize = $t01729317421._1
414414 let positionMargin = $t01729317421._2
415415 let positionOpenNotional = $t01729317421._3
416416 let positionLstUpdCPF = $t01729317421._4
417417 let positionSizeAbs = abs(positionSize)
418418 if ((positionSizeAbs == 0))
419419 then throw("Invalid position size")
420420 else {
421421 let isShort = (0 > positionSize)
422422 let positionNotional = if ((_option == PNL_OPTION_SPOT))
423423 then {
424424 let $t01766817792 = swapOutput(!(isShort), positionSizeAbs, false)
425425 let outPositionNotional = $t01766817792._1
426426 let x1 = $t01766817792._2
427427 let x2 = $t01766817792._3
428428 let x3 = $t01766817792._4
429429 outPositionNotional
430430 }
431431 else muld(positionSizeAbs, getOracleTwapPrice())
432432 let unrealizedPnl = if (isShort)
433433 then (positionOpenNotional - positionNotional)
434434 else (positionNotional - positionOpenNotional)
435435 $Tuple2(positionNotional, unrealizedPnl)
436436 }
437437 }
438438
439439
440440 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
441441
442442
443443 func getMarginRatioByOption (_trader,_option) = {
444444 let $t01846218573 = getPosition(_trader)
445445 let positionSize = $t01846218573._1
446446 let positionMargin = $t01846218573._2
447447 let pon = $t01846218573._3
448448 let positionLstUpdCPF = $t01846218573._4
449449 let $t01857918672 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
450450 let positionNotional = $t01857918672._1
451451 let unrealizedPnl = $t01857918672._2
452452 let $t01867718843 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
453453 let remainMargin = $t01867718843._1
454454 let badDebt = $t01867718843._2
455455 calcMarginRatio(remainMargin, badDebt, positionNotional)
456456 }
457457
458458
459459 func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
460460
461461
462462 func internalClosePosition (_trader,_checkMaxPriceImpact) = {
463463 let $t01919019318 = getPosition(_trader)
464464 let positionSize = $t01919019318._1
465465 let positionMargin = $t01919019318._2
466466 let positionOpenNotional = $t01919019318._3
467467 let positionLstUpdCPF = $t01919019318._4
468468 let $t01932419411 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
469469 let x1 = $t01932419411._1
470470 let unrealizedPnl = $t01932419411._2
471471 let $t01941619584 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
472472 let remainMargin = $t01941619584._1
473473 let badDebt = $t01941619584._2
474474 let exchangedPositionSize = -(positionSize)
475475 let realizedPnl = unrealizedPnl
476476 let marginToVault = -(remainMargin)
477477 let $t01971120022 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact)
478478 let exchangedQuoteAssetAmount = $t01971120022._1
479479 let quoteAssetReserveAfter = $t01971120022._2
480480 let baseAssetReserveAfter = $t01971120022._3
481481 let totalPositionSizeAfter = $t01971120022._4
482482 let cumulativeNotionalAfter = $t01971120022._5
483483 let totalLongAfter = $t01971120022._6
484484 let totalShortAfter = $t01971120022._7
485485 let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional)
486486 $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter)
487487 }
488488
489489
490490 func getTwapSpotPrice () = {
491491 let minuteId = ((lastBlock.timestamp / 1000) / 60)
492492 let startMinuteId = (minuteId - TWAP_INTERVAL)
493493 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
494494 let list = split(listStr, ",")
495495 func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next)))
496496 then (accumulator :+ parseIntValue(next))
497497 else accumulator
498498
499499 let listF = {
500500 let $l = list
501501 let $s = size($l)
502502 let $acc0 = nil
503503 func $f0_1 ($a,$i) = if (($i >= $s))
504504 then $a
505505 else filterFn($a, $l[$i])
506506
507507 func $f0_2 ($a,$i) = if (($i >= $s))
508508 then $a
509509 else throw("List size exceeds 20")
510510
511511 $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)
512512 }
513513 let maxIndex = if ((size(listF) > 0))
514514 then max(listF)
515515 else parseIntValue(list[0])
516516 let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
517517 let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0)
518518 let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0)
519519 let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice))
520520 let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0)
521521 let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0)
522522 let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice))
523523 ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL)
524524 }
525525
526526
527527 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)]
528528
529529
530530 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)]
531531
532532
533533 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)]
534534
535535
536536 func appendTwap (price) = {
537537 let minuteId = ((lastBlock.timestamp / 1000) / 60)
538538 let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
539539 if ((previousMinuteId > minuteId))
540540 then throw("TWAP out-of-order")
541541 else {
542542 let lastMinuteId = if ((previousMinuteId == 0))
543543 then minuteId
544544 else previousMinuteId
545545 if ((minuteId > previousMinuteId))
546546 then {
547547 let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0)
548548 let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price)
549549 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice))
550550 let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId))
551551 [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))]
552552 }
553553 else {
554554 let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0)
555555 let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0)
556556 let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), price)
557557 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice))
558558 [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price)]
559559 }
560560 }
561561 }
562562
563563
564564 func updateAmmReserves (_qtAstR,_bsAstR) = [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)]
565565
566566
567567 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
568568 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
569569 else ((updateAmmReserves(_qtAstR, _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)))
570570
571571
572572 func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))]
573573
574574
575575 func withdraw (_address,_amount) = {
576576 let balance = assetBalance(this, quoteAsset())
577577 if ((_amount > balance))
578578 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
579579 else [ScriptTransfer(_address, _amount, quoteAsset())]
580580 }
581581
582582
583583 func updateBalance (i) = if ((0 > i))
584584 then throw("Balance")
585585 else [IntegerEntry(k_balance, i)]
586586
587587
588588 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
589589
590590
591591 @Callable(i)
592592 func pause () = if ((i.caller != adminAddress()))
593593 then throw("Invalid togglePause params")
594594 else [BooleanEntry(k_paused, true)]
595595
596596
597597
598598 @Callable(i)
599599 func unpause () = if ((i.caller != adminAddress()))
600600 then throw("Invalid togglePause params")
601601 else [BooleanEntry(k_paused, false)]
602602
603603
604604
605605 @Callable(i)
606606 func addLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
607607 then true
608608 else (0 >= _quoteAssetAmount))
609609 then throw("Invalid addLiquidity params")
610610 else {
611611 let _qtAstR = qtAstR()
612612 let _bsAstR = bsAstR()
613613 let price = divd(_qtAstR, _bsAstR)
614614 let baseAssetAmountToAdd = divd(_quoteAssetAmount, price)
615615 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
616616 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
617617 updateAmmReserves(qtAstRAfter, bsAstRAfter)
618618 }
619619
620620
621621
622622 @Callable(i)
623623 func removeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
624624 then true
625625 else (0 >= _quoteAssetAmount))
626626 then throw("Invalid removeLiquidity params")
627627 else {
628628 let _qtAstR = qtAstR()
629629 let _bsAstR = bsAstR()
630630 let price = divd(_qtAstR, _bsAstR)
631631 let baseAssetAmountToRemove = divd(_quoteAssetAmount, price)
632632 let qtAstRAfter = (_qtAstR - _quoteAssetAmount)
633633 let bsAstRAfter = (_bsAstR - baseAssetAmountToRemove)
634634 updateAmmReserves(qtAstRAfter, bsAstRAfter)
635635 }
636636
637637
638638
639639 @Callable(i)
640640 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress()))
641641 then throw("Invalid changeSettings params")
642642 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)
643643
644644
645645
646646 @Callable(i)
647647 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))
648648 then true
649649 else (0 >= _bsAstR))
650650 then true
651651 else (0 >= _fundingPeriod))
652652 then true
653653 else (0 >= _initMarginRatio))
654654 then true
655655 else (0 >= _mmr))
656656 then true
657657 else (0 >= _liquidationFeeRatio))
658658 then true
659659 else (0 >= _fee))
660660 then true
661661 else (0 >= _spreadLimit))
662662 then true
663663 else (0 >= _maxPriceImpact))
664664 then true
665665 else initialized())
666666 then throw("Invalid initialize parameters")
667667 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)])
668668
669669
670670
671671 @Callable(i)
672+func setMaxPriceImpact (_maxPriceImpact) = if (if ((0 >= _maxPriceImpact))
673+ then true
674+ else !(initialized()))
675+ then throw("Invalid _maxPriceImpact parameters")
676+ else updateSettings(initMarginRatio(), maintenanceMarginRatio(), liquidationFeeRatio(), fundingPeriodRaw(), fee(), spreadLimit(), _maxPriceImpact)
677+
678+
679+
680+@Callable(i)
681+func setInitMarginRatio (_initMarginRatio) = if (if ((0 >= _initMarginRatio))
682+ then true
683+ else !(initialized()))
684+ then throw("Invalid setInitMarginRatio parameters")
685+ else updateSettings(_initMarginRatio, maintenanceMarginRatio(), liquidationFeeRatio(), fundingPeriodRaw(), fee(), spreadLimit(), maxPriceImpact())
686+
687+
688+
689+@Callable(i)
672690 func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if ((0 >= _amount))
673691 then true
674692 else !(initialized()))
675693 then true
676694 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
677695 then true
678696 else !(requireOpenPosition(toString(i.caller))))
679697 then true
680698 else paused())
681699 then throw("Invalid decreasePosition parameters")
682700 else {
683- let $t03093131083 = getPosition(toString(i.caller))
684- let oldPositionSize = $t03093131083._1
685- let oldPositionMargin = $t03093131083._2
686- let oldPositionOpenNotional = $t03093131083._3
687- let oldPositionLstUpdCPF = $t03093131083._4
701+ let $t03173131883 = getPosition(toString(i.caller))
702+ let oldPositionSize = $t03173131883._1
703+ let oldPositionMargin = $t03173131883._2
704+ let oldPositionOpenNotional = $t03173131883._3
705+ let oldPositionLstUpdCPF = $t03173131883._4
688706 let _direction = if ((oldPositionSize > 0))
689707 then DIR_SHORT
690708 else DIR_LONG
691709 let isAdd = (_direction == DIR_LONG)
692710 let openNotional = muld(_amount, _leverage)
693- let $t03125631372 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
694- let oldPositionNotional = $t03125631372._1
695- let unrealizedPnl = $t03125631372._2
696- let $t03137833927 = if ((oldPositionNotional > openNotional))
711+ let $t03205632172 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
712+ let oldPositionNotional = $t03205632172._1
713+ let unrealizedPnl = $t03205632172._2
714+ let $t03217834727 = if ((oldPositionNotional > openNotional))
697715 then {
698- let $t03175531974 = swapInput(isAdd, openNotional)
699- let exchangedPositionSize = $t03175531974._1
700- let quoteAssetReserveAfter = $t03175531974._2
701- let baseAssetReserveAfter = $t03175531974._3
702- let totalPositionSizeAfter = $t03175531974._4
703- let cumulativeNotionalAfter = $t03175531974._5
716+ let $t03255532774 = swapInput(isAdd, openNotional)
717+ let exchangedPositionSize = $t03255532774._1
718+ let quoteAssetReserveAfter = $t03255532774._2
719+ let baseAssetReserveAfter = $t03255532774._3
720+ let totalPositionSizeAfter = $t03255532774._4
721+ let cumulativeNotionalAfter = $t03255532774._5
704722 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
705723 if (if ((_minBaseAssetAmount != 0))
706724 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
707725 else false)
708726 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
709727 else {
710728 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
711- let $t03241132656 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
712- let remainMargin = $t03241132656._1
713- let badDebt = $t03241132656._2
714- let fundingPayment = $t03241132656._3
729+ let $t03321133456 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
730+ let remainMargin = $t03321133456._1
731+ let badDebt = $t03321133456._2
732+ let fundingPayment = $t03321133456._3
715733 let exchangedQuoteAssetAmount = openNotional
716734 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
717735 let remainOpenNotional = if ((oldPositionSize > 0))
718736 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
719737 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
720738 let newPositionSize = (oldPositionSize + exchangedPositionSize)
721739 $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0))
722740 then abs(exchangedPositionSize)
723741 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
724742 then abs(exchangedPositionSize)
725743 else 0)))
726744 }
727745 }
728746 else throw("Close position first")
729- let newPositionSize = $t03137833927._1
730- let newPositionRemainMargin = $t03137833927._2
731- let newPositionOpenNotional = $t03137833927._3
732- let newPositionLatestCPF = $t03137833927._4
733- let baseAssetReserveAfter = $t03137833927._5
734- let quoteAssetReserveAfter = $t03137833927._6
735- let totalPositionSizeAfter = $t03137833927._7
736- let cumulativeNotionalAfter = $t03137833927._8
737- let openInterestNotionalAfter = $t03137833927._9
738- let totalLongAfter = $t03137833927._10
739- let totalShortAfter = $t03137833927._11
747+ let newPositionSize = $t03217834727._1
748+ let newPositionRemainMargin = $t03217834727._2
749+ let newPositionOpenNotional = $t03217834727._3
750+ let newPositionLatestCPF = $t03217834727._4
751+ let baseAssetReserveAfter = $t03217834727._5
752+ let quoteAssetReserveAfter = $t03217834727._6
753+ let totalPositionSizeAfter = $t03217834727._7
754+ let cumulativeNotionalAfter = $t03217834727._8
755+ let openInterestNotionalAfter = $t03217834727._9
756+ let totalLongAfter = $t03217834727._10
757+ let totalShortAfter = $t03217834727._11
740758 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
741759 if ((notifyNotional == notifyNotional))
742760 then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
743761 else throw("Strict value is not equal to itself.")
744762 }
745763
746764
747765
748766 @Callable(i)
749767 func increasePosition (_direction,_leverage,_minBaseAssetAmount) = {
750768 let _rawAmount = i.payments[0].amount
751769 if (if (if (if (if (if (if ((_direction != DIR_LONG))
752770 then (_direction != DIR_SHORT)
753771 else false)
754772 then true
755773 else (0 >= _rawAmount))
756774 then true
757775 else !(initialized()))
758776 then true
759777 else (i.payments[0].assetId != quoteAsset()))
760778 then true
761779 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
762780 then true
763781 else paused())
764782 then throw("Invalid increasePosition parameters")
765783 else {
766784 let feeAmount = muld(_rawAmount, fee())
767785 let _amount = (_rawAmount - feeAmount)
768- let $t03504535197 = getPosition(toString(i.caller))
769- let oldPositionSize = $t03504535197._1
770- let oldPositionMargin = $t03504535197._2
771- let oldPositionOpenNotional = $t03504535197._3
772- let oldPositionLstUpdCPF = $t03504535197._4
786+ let $t03584535997 = getPosition(toString(i.caller))
787+ let oldPositionSize = $t03584535997._1
788+ let oldPositionMargin = $t03584535997._2
789+ let oldPositionOpenNotional = $t03584535997._3
790+ let oldPositionLstUpdCPF = $t03584535997._4
773791 let isNewPosition = (oldPositionSize == 0)
774792 let isSameDirection = if ((oldPositionSize > 0))
775793 then (_direction == DIR_LONG)
776794 else (_direction == DIR_SHORT)
777795 let expandExisting = if (!(isNewPosition))
778796 then isSameDirection
779797 else false
780798 let isAdd = (_direction == DIR_LONG)
781- let $t03548637875 = if (if (isNewPosition)
799+ let $t03628638675 = if (if (isNewPosition)
782800 then true
783801 else expandExisting)
784802 then {
785803 let openNotional = muld(_amount, _leverage)
786- let $t03591036116 = swapInput(isAdd, openNotional)
787- let amountBaseAssetBought = $t03591036116._1
788- let quoteAssetReserveAfter = $t03591036116._2
789- let baseAssetReserveAfter = $t03591036116._3
790- let totalPositionSizeAfter = $t03591036116._4
791- let cumulativeNotionalAfter = $t03591036116._5
804+ let $t03671036916 = swapInput(isAdd, openNotional)
805+ let amountBaseAssetBought = $t03671036916._1
806+ let quoteAssetReserveAfter = $t03671036916._2
807+ let baseAssetReserveAfter = $t03671036916._3
808+ let totalPositionSizeAfter = $t03671036916._4
809+ let cumulativeNotionalAfter = $t03671036916._5
792810 if (if ((_minBaseAssetAmount != 0))
793811 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
794812 else false)
795813 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
796814 else {
797815 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
798816 let increaseMarginRequirement = divd(openNotional, _leverage)
799- let $t03649736736 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
800- let remainMargin = $t03649736736._1
801- let x1 = $t03649736736._2
802- let x2 = $t03649736736._3
817+ let $t03729737536 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
818+ let remainMargin = $t03729737536._1
819+ let x1 = $t03729737536._2
820+ let x2 = $t03729737536._3
803821 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
804822 then abs(amountBaseAssetBought)
805823 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
806824 then abs(amountBaseAssetBought)
807825 else 0)))
808826 }
809827 }
810828 else {
811829 let openNotional = muld(_amount, _leverage)
812- let $t03756837684 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
813- let oldPositionNotional = $t03756837684._1
814- let unrealizedPnl = $t03756837684._2
830+ let $t03836838484 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
831+ let oldPositionNotional = $t03836838484._1
832+ let unrealizedPnl = $t03836838484._2
815833 if ((oldPositionNotional > openNotional))
816834 then throw("Use decreasePosition to decrease position size")
817835 else throw("Close position first")
818836 }
819- let newPositionSize = $t03548637875._1
820- let newPositionRemainMargin = $t03548637875._2
821- let newPositionOpenNotional = $t03548637875._3
822- let newPositionLatestCPF = $t03548637875._4
823- let baseAssetReserveAfter = $t03548637875._5
824- let quoteAssetReserveAfter = $t03548637875._6
825- let totalPositionSizeAfter = $t03548637875._7
826- let cumulativeNotionalAfter = $t03548637875._8
827- let openInterestNotionalAfter = $t03548637875._9
828- let totalLongAfter = $t03548637875._10
829- let totalShortAfter = $t03548637875._11
837+ let newPositionSize = $t03628638675._1
838+ let newPositionRemainMargin = $t03628638675._2
839+ let newPositionOpenNotional = $t03628638675._3
840+ let newPositionLatestCPF = $t03628638675._4
841+ let baseAssetReserveAfter = $t03628638675._5
842+ let quoteAssetReserveAfter = $t03628638675._6
843+ let totalPositionSizeAfter = $t03628638675._7
844+ let cumulativeNotionalAfter = $t03628638675._8
845+ let openInterestNotionalAfter = $t03628638675._9
846+ let totalLongAfter = $t03628638675._10
847+ let totalShortAfter = $t03628638675._11
830848 let feeToStakers = (feeAmount / 2)
831849 let feeToInsurance = (feeAmount - feeToStakers)
832850 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
833851 if ((stake == stake))
834852 then {
835853 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
836854 if ((depositInsurance == depositInsurance))
837855 then {
838856 let notifyFee = invoke(minerAddress(), "notifyFees", [toString(i.caller), feeAmount], nil)
839857 if ((notifyFee == notifyFee))
840858 then {
841859 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
842860 if ((notifyNotional == notifyNotional))
843861 then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
844862 else throw("Strict value is not equal to itself.")
845863 }
846864 else throw("Strict value is not equal to itself.")
847865 }
848866 else throw("Strict value is not equal to itself.")
849867 }
850868 else throw("Strict value is not equal to itself.")
851869 }
852870 }
853871
854872
855873
856874 @Callable(i)
857875 func addMargin () = {
858876 let _rawAmount = i.payments[0].amount
859877 if (if (if (if ((i.payments[0].assetId != quoteAsset()))
860878 then true
861879 else !(requireOpenPosition(toString(i.caller))))
862880 then true
863881 else !(initialized()))
864882 then true
865883 else paused())
866884 then throw("Invalid addMargin parameters")
867885 else {
868886 let feeAmount = muld(_rawAmount, fee())
869887 let _amount = (_rawAmount - feeAmount)
870- let $t03943139583 = getPosition(toString(i.caller))
871- let oldPositionSize = $t03943139583._1
872- let oldPositionMargin = $t03943139583._2
873- let oldPositionOpenNotional = $t03943139583._3
874- let oldPositionLstUpdCPF = $t03943139583._4
888+ let $t04023140383 = getPosition(toString(i.caller))
889+ let oldPositionSize = $t04023140383._1
890+ let oldPositionMargin = $t04023140383._2
891+ let oldPositionOpenNotional = $t04023140383._3
892+ let oldPositionLstUpdCPF = $t04023140383._4
875893 let feeToStakers = (feeAmount / 2)
876894 let feeToInsurance = (feeAmount - feeToStakers)
877895 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
878896 if ((stake == stake))
879897 then {
880898 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
881899 if ((depositInsurance == depositInsurance))
882900 then {
883901 let notifyFee = invoke(minerAddress(), "notifyFees", [toString(i.caller), feeAmount], nil)
884902 if ((notifyFee == notifyFee))
885903 then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
886904 else throw("Strict value is not equal to itself.")
887905 }
888906 else throw("Strict value is not equal to itself.")
889907 }
890908 else throw("Strict value is not equal to itself.")
891909 }
892910 }
893911
894912
895913
896914 @Callable(i)
897915 func removeMargin (_amount) = if (if (if (if ((0 >= _amount))
898916 then true
899917 else !(requireOpenPosition(toString(i.caller))))
900918 then true
901919 else !(initialized()))
902920 then true
903921 else paused())
904922 then throw("Invalid removeMargin parameters")
905923 else {
906- let $t04063240784 = getPosition(toString(i.caller))
907- let oldPositionSize = $t04063240784._1
908- let oldPositionMargin = $t04063240784._2
909- let oldPositionOpenNotional = $t04063240784._3
910- let oldPositionLstUpdCPF = $t04063240784._4
924+ let $t04143241584 = getPosition(toString(i.caller))
925+ let oldPositionSize = $t04143241584._1
926+ let oldPositionMargin = $t04143241584._2
927+ let oldPositionOpenNotional = $t04143241584._3
928+ let oldPositionLstUpdCPF = $t04143241584._4
911929 let marginDelta = -(_amount)
912- let $t04082141000 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
913- let remainMargin = $t04082141000._1
914- let badDebt = $t04082141000._2
930+ let $t04162141800 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
931+ let remainMargin = $t04162141800._1
932+ let badDebt = $t04162141800._2
915933 if ((badDebt != 0))
916934 then throw("Invalid removed margin amount")
917935 else {
918936 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
919937 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
920938 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
921939 else {
922940 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
923941 if ((unstake == unstake))
924942 then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount)))
925943 else throw("Strict value is not equal to itself.")
926944 }
927945 }
928946 }
929947
930948
931949
932950 @Callable(i)
933951 func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller))))
934952 then true
935953 else !(initialized()))
936954 then true
937955 else paused())
938956 then throw("Invalid closePosition parameters")
939957 else {
940- let $t04209642486 = internalClosePosition(toString(i.caller), true)
941- let x1 = $t04209642486._1
942- let positionBadDebt = $t04209642486._2
943- let realizedPnl = $t04209642486._3
944- let marginToVault = $t04209642486._4
945- let quoteAssetReserveAfter = $t04209642486._5
946- let baseAssetReserveAfter = $t04209642486._6
947- let totalPositionSizeAfter = $t04209642486._7
948- let cumulativeNotionalAfter = $t04209642486._8
949- let openInterestNotionalAfter = $t04209642486._9
950- let x2 = $t04209642486._10
951- let totalLongAfter = $t04209642486._11
952- let totalShortAfter = $t04209642486._12
958+ let $t04289643286 = internalClosePosition(toString(i.caller), true)
959+ let x1 = $t04289643286._1
960+ let positionBadDebt = $t04289643286._2
961+ let realizedPnl = $t04289643286._3
962+ let marginToVault = $t04289643286._4
963+ let quoteAssetReserveAfter = $t04289643286._5
964+ let baseAssetReserveAfter = $t04289643286._6
965+ let totalPositionSizeAfter = $t04289643286._7
966+ let cumulativeNotionalAfter = $t04289643286._8
967+ let openInterestNotionalAfter = $t04289643286._9
968+ let x2 = $t04289643286._10
969+ let totalLongAfter = $t04289643286._11
970+ let totalShortAfter = $t04289643286._12
953971 if ((positionBadDebt > 0))
954972 then throw("Unable to close position with bad debt")
955973 else {
956974 let withdrawAmount = abs(marginToVault)
957975 let ammBalance = (cbalance() - withdrawAmount)
958- let $t04269542837 = if ((0 > ammBalance))
976+ let $t04349543637 = if ((0 > ammBalance))
959977 then $Tuple2(0, abs(ammBalance))
960978 else $Tuple2(ammBalance, 0)
961- let ammNewBalance = $t04269542837._1
962- let getFromInsurance = $t04269542837._2
979+ let ammNewBalance = $t04349543637._1
980+ let getFromInsurance = $t04349543637._2
963981 let x = if ((getFromInsurance > 0))
964982 then {
965983 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
966984 if ((withdrawInsurance == withdrawInsurance))
967985 then nil
968986 else throw("Strict value is not equal to itself.")
969987 }
970988 else nil
971989 if ((x == x))
972990 then {
973991 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil)
974992 if ((unstake == unstake))
975993 then {
976994 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), 0], nil)
977995 if ((notifyNotional == notifyNotional))
978996 then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(ammNewBalance))
979997 else throw("Strict value is not equal to itself.")
980998 }
981999 else throw("Strict value is not equal to itself.")
9821000 }
9831001 else throw("Strict value is not equal to itself.")
9841002 }
9851003 }
9861004
9871005
9881006
9891007 @Callable(i)
9901008 func liquidate (_trader) = {
9911009 let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
9921010 let marginRatio = if (isOverFluctuationLimit())
9931011 then {
9941012 let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE)
9951013 vmax(spotMarginRatio, oracleMarginRatio)
9961014 }
9971015 else spotMarginRatio
9981016 if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false)))
9991017 then true
10001018 else !(requireOpenPosition(_trader)))
10011019 then true
10021020 else !(initialized()))
10031021 then true
10041022 else paused())
10051023 then throw("Unable to liquidate")
10061024 else {
1007- let $t04452744950 = internalClosePosition(_trader, false)
1008- let x1 = $t04452744950._1
1009- let badDebt = $t04452744950._2
1010- let x2 = $t04452744950._3
1011- let x3 = $t04452744950._4
1012- let quoteAssetReserveAfter = $t04452744950._5
1013- let baseAssetReserveAfter = $t04452744950._6
1014- let totalPositionSizeAfter = $t04452744950._7
1015- let cumulativeNotionalAfter = $t04452744950._8
1016- let openInterestNotionalAfter = $t04452744950._9
1017- let exchangedQuoteAssetAmount = $t04452744950._10
1018- let totalLongAfter = $t04452744950._11
1019- let totalShortAfter = $t04452744950._12
1025+ let $t04532745750 = internalClosePosition(_trader, false)
1026+ let x1 = $t04532745750._1
1027+ let badDebt = $t04532745750._2
1028+ let x2 = $t04532745750._3
1029+ let x3 = $t04532745750._4
1030+ let quoteAssetReserveAfter = $t04532745750._5
1031+ let baseAssetReserveAfter = $t04532745750._6
1032+ let totalPositionSizeAfter = $t04532745750._7
1033+ let cumulativeNotionalAfter = $t04532745750._8
1034+ let openInterestNotionalAfter = $t04532745750._9
1035+ let exchangedQuoteAssetAmount = $t04532745750._10
1036+ let totalLongAfter = $t04532745750._11
1037+ let totalShortAfter = $t04532745750._12
10201038 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
10211039 let feeToLiquidator = (liquidationPenalty / 2)
10221040 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
10231041 let ammBalance = (cbalance() - liquidationPenalty)
1024- let $t04534845483 = if ((0 > ammBalance))
1042+ let $t04614846283 = if ((0 > ammBalance))
10251043 then $Tuple2(0, abs(ammBalance))
10261044 else $Tuple2(ammBalance, 0)
1027- let newAmmBalance = $t04534845483._1
1028- let takeFromInsurance = $t04534845483._2
1045+ let newAmmBalance = $t04614846283._1
1046+ let takeFromInsurance = $t04614846283._2
10291047 let x = if ((takeFromInsurance > 0))
10301048 then {
10311049 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
10321050 if ((withdrawInsurance == withdrawInsurance))
10331051 then nil
10341052 else throw("Strict value is not equal to itself.")
10351053 }
10361054 else nil
10371055 if ((x == x))
10381056 then {
10391057 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(liquidationPenalty - takeFromInsurance), toBase58String(quoteAsset())], nil)
10401058 if ((unstake == unstake))
10411059 then {
10421060 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
10431061 if ((depositInsurance == depositInsurance))
10441062 then {
10451063 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil)
10461064 if ((notifyNotional == notifyNotional))
10471065 then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
10481066 else throw("Strict value is not equal to itself.")
10491067 }
10501068 else throw("Strict value is not equal to itself.")
10511069 }
10521070 else throw("Strict value is not equal to itself.")
10531071 }
10541072 else throw("Strict value is not equal to itself.")
10551073 }
10561074 }
10571075
10581076
10591077
10601078 @Callable(i)
10611079 func payFunding () = {
10621080 let fundingBlockTimestamp = nextFundingBlockTimestamp()
10631081 if (if (if ((fundingBlockTimestamp > lastBlock.timestamp))
10641082 then true
10651083 else !(initialized()))
10661084 then true
10671085 else paused())
10681086 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
10691087 else {
10701088 let underlyingPrice = getOracleTwapPrice()
10711089 let spotTwapPrice = getTwapSpotPrice()
10721090 let premium = (spotTwapPrice - underlyingPrice)
1073- let $t04697748312 = if (if ((totalShortPositionSize() == 0))
1091+ let $t04777749112 = if (if ((totalShortPositionSize() == 0))
10741092 then true
10751093 else (totalLongPositionSize() == 0))
10761094 then $Tuple2(0, 0)
10771095 else if ((0 > premium))
10781096 then {
10791097 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
10801098 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
10811099 $Tuple2(shortPremiumFraction, longPremiumFraction)
10821100 }
10831101 else {
10841102 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
10851103 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
10861104 $Tuple2(shortPremiumFraction, longPremiumFraction)
10871105 }
1088- let shortPremiumFraction = $t04697748312._1
1089- let longPremiumFraction = $t04697748312._2
1106+ let shortPremiumFraction = $t04777749112._1
1107+ let longPremiumFraction = $t04777749112._2
10901108 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
10911109 }
10921110 }
10931111
10941112
10951113
10961114 @Callable(i)
10971115 func v_get (_trader) = {
1098- let $t04868748747 = internalClosePosition(_trader, false)
1099- let x1 = $t04868748747._1
1100- let x2 = $t04868748747._2
1101- let x3 = $t04868748747._3
1102- let x4 = $t04868748747._4
1116+ let $t04948749547 = internalClosePosition(_trader, false)
1117+ let x1 = $t04948749547._1
1118+ let x2 = $t04948749547._2
1119+ let x3 = $t04948749547._3
1120+ let x4 = $t04948749547._4
11031121 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
11041122 }
11051123
11061124
11071125
11081126 @Callable(i)
11091127 func view_calcRemainMarginWithFundingPayment (_trader) = {
1110- let $t04889449005 = getPosition(_trader)
1111- let positionSize = $t04889449005._1
1112- let positionMargin = $t04889449005._2
1113- let pon = $t04889449005._3
1114- let positionLstUpdCPF = $t04889449005._4
1115- let $t04901049111 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1116- let positionNotional = $t04901049111._1
1117- let unrealizedPnl = $t04901049111._2
1118- let $t04911649298 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1119- let remainMargin = $t04911649298._1
1120- let badDebt = $t04911649298._2
1121- let fundingPayment = $t04911649298._3
1128+ let $t04969449805 = getPosition(_trader)
1129+ let positionSize = $t04969449805._1
1130+ let positionMargin = $t04969449805._2
1131+ let pon = $t04969449805._3
1132+ let positionLstUpdCPF = $t04969449805._4
1133+ let $t04981049911 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1134+ let positionNotional = $t04981049911._1
1135+ let unrealizedPnl = $t04981049911._2
1136+ let $t04991650098 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1137+ let remainMargin = $t04991650098._1
1138+ let badDebt = $t04991650098._2
1139+ let fundingPayment = $t04991650098._3
11221140 throw(((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)))
11231141 }
11241142
11251143
11261144
11271145 @Callable(i)
11281146 func forceMoveAsset (_trader,_amount) = if (if ((addressFromPublicKey(adminPublicKey()) != i.caller))
11291147 then true
11301148 else (0 > _amount))
11311149 then throw("Invalid forceMoveAsset parameters")
11321150 else {
11331151 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
11341152 if ((unstake == unstake))
11351153 then (withdraw(addressFromStringValue(_trader), _amount) ++ updateBalance((cbalance() - _amount)))
11361154 else throw("Strict value is not equal to itself.")
11371155 }
11381156
11391157
11401158 @Verifier(tx)
11411159 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
11421160

github/deemru/w8io/169f3d6 
177.87 ms