tx · 2GpCpRmJvT7g7dQpFYsjs11bN2TjSNtoNSCDPddKmANr

3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj:  -0.05000000 Waves

2022.07.05 09:26 [2126017] smart account 3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj > SELF 0.00000000 Waves

{ "type": 13, "id": "2GpCpRmJvT7g7dQpFYsjs11bN2TjSNtoNSCDPddKmANr", "fee": 5000000, "feeAssetId": null, "timestamp": 1657002395798, "version": 2, "chainId": 84, "sender": "3MrRa3KaEgRyyjQdMLuU78m5GkJLvP5DZLj", "senderPublicKey": "AJNTN7EtP9dsAmPzcKRp9bRMvzZL4uwkmVxQuFuar3Qr", "proofs": [ "22jiCwmG6vwMtRwyoVbAnkUWMiqQeALsKJ4jfbcNp83k92CYA7wCHJKWw7pxfVkbqNkWsV3UVhmuSpnTLYKckYN3" ], "script": "base64:AAIFAAAAAAAAAEoIAhIAEgASCQoHAQEBAQEBARIOCgwBAQEBAQEBCAgIAQESBgoEAQEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgSAwoBCAAAAHAAAAAACWtfb3JhX2tleQIAAAAJa19vcmFfa2V5AAAAAA9rX29yYV9ibG9ja19rZXkCAAAAD2tfb3JhX2Jsb2NrX2tleQAAAAAFa19vcmECAAAABWtfb3JhAAAAAAlrX2JhbGFuY2UCAAAACWtfYmFsYW5jZQAAAAAOa19wb3NpdGlvblNpemUCAAAADmtfcG9zaXRpb25TaXplAAAAABBrX3Bvc2l0aW9uTWFyZ2luAgAAABBrX3Bvc2l0aW9uTWFyZ2luAAAAABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAgAAABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAAAAAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAgAAABJrX3Bvc2l0aW9uRnJhY3Rpb24AAAAADWtfaW5pdGlhbGl6ZWQCAAAADWtfaW5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AAAIAAAABCQABLAAAAAIJAAEsAAAAAgkBAAAAAXMAAAABBQAAAAxyZW1haW5NYXJnaW4JAQAAAAFzAAAAAQUAAAAOZnVuZGluZ1BheW1lbnQJAQAAAAFzAAAAAQkBAAAADmdldE1hcmdpblJhdGlvAAAAAQUAAAAHX3RyYWRlcgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQEAAAAOYWRtaW5QdWJsaWNLZXkAAAAAUEU76Q==", "height": 2126017, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2WAWN9TTEUyrpbfw2KLaVtveWQG6BV7aqWJZAikT7P1m Next: FaqpdL2EJLiGZYpGmk2P3pRY1RM622NT9Uzn8Mjp84sM Diff:
OldNewDifferences
618618 let oldPositionMargin = $t02680126953._2
619619 let oldPositionOpenNotional = $t02680126953._3
620620 let oldPositionLstUpdCPF = $t02680126953._4
621- let isNewPosition = (oldPositionSize == 0)
622- let isSameDirection = if ((oldPositionSize > 0))
621+ let expandExisting = if ((oldPositionSize > 0))
623622 then (_direction == DIR_LONG)
624623 else (_direction == DIR_SHORT)
625- let expandExisting = if (!(isNewPosition))
626- then isSameDirection
627- else false
628624 let isAdd = (_direction == DIR_LONG)
629- let $t02724230280 = if (if (isNewPosition)
630- then true
631- else expandExisting)
625+ let $t02713730158 = if (expandExisting)
632626 then throw("Use increasePosition to open new or increase position")
633627 else {
634628 let openNotional = muld(_amount, _leverage)
635- let $t02774827864 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
636- let oldPositionNotional = $t02774827864._1
637- let unrealizedPnl = $t02774827864._2
629+ let $t02762627742 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
630+ let oldPositionNotional = $t02762627742._1
631+ let unrealizedPnl = $t02762627742._2
638632 if ((oldPositionNotional > openNotional))
639633 then {
640- let $t02792628156 = swapInput(isAdd, openNotional)
641- let exchangedPositionSize = $t02792628156._1
642- let quoteAssetReserveAfter = $t02792628156._2
643- let baseAssetReserveAfter = $t02792628156._3
644- let totalPositionSizeAfter = $t02792628156._4
645- let cumulativeNotionalAfter = $t02792628156._5
634+ let $t02780428034 = swapInput(isAdd, openNotional)
635+ let exchangedPositionSize = $t02780428034._1
636+ let quoteAssetReserveAfter = $t02780428034._2
637+ let baseAssetReserveAfter = $t02780428034._3
638+ let totalPositionSizeAfter = $t02780428034._4
639+ let cumulativeNotionalAfter = $t02780428034._5
646640 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
647641 if (if ((_minBaseAssetAmount != 0))
648642 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
652646 let realizedPnl = if ((oldPositionSize != 0))
653647 then divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize)
654648 else 0
655- let $t02869628953 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
656- let remainMargin = $t02869628953._1
657- let badDebt = $t02869628953._2
658- let fundingPayment = $t02869628953._3
649+ let $t02857428831 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
650+ let remainMargin = $t02857428831._1
651+ let badDebt = $t02857428831._2
652+ let fundingPayment = $t02857428831._3
659653 let exchangedQuoteAssetAmount = openNotional
660654 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
661655 let remainOpenNotional = if ((oldPositionSize > 0))
671665 }
672666 else throw("Close position first")
673667 }
674- let newPositionSize = $t02724230280._1
675- let newPositionRemainMargin = $t02724230280._2
676- let newPositionOpenNotional = $t02724230280._3
677- let newPositionLatestCPF = $t02724230280._4
678- let baseAssetReserveAfter = $t02724230280._5
679- let quoteAssetReserveAfter = $t02724230280._6
680- let totalPositionSizeAfter = $t02724230280._7
681- let cumulativeNotionalAfter = $t02724230280._8
682- let openInterestNotionalAfter = $t02724230280._9
683- let totalLongAfter = $t02724230280._10
684- let totalShortAfter = $t02724230280._11
668+ let newPositionSize = $t02713730158._1
669+ let newPositionRemainMargin = $t02713730158._2
670+ let newPositionOpenNotional = $t02713730158._3
671+ let newPositionLatestCPF = $t02713730158._4
672+ let baseAssetReserveAfter = $t02713730158._5
673+ let quoteAssetReserveAfter = $t02713730158._6
674+ let totalPositionSizeAfter = $t02713730158._7
675+ let cumulativeNotionalAfter = $t02713730158._8
676+ let openInterestNotionalAfter = $t02713730158._9
677+ let totalLongAfter = $t02713730158._10
678+ let totalShortAfter = $t02713730158._11
685679 (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
686680 }
687681
711705 else {
712706 let feeAmount = muld(_rawAmount, fee())
713707 let _amount = (_rawAmount - feeAmount)
714- let $t03131631440 = getPosition(toString(i.caller))
715- let oldPositionSize = $t03131631440._1
716- let oldPositionMargin = $t03131631440._2
717- let oldPositionOpenNotional = $t03131631440._3
708+ let $t03119431318 = getPosition(toString(i.caller))
709+ let oldPositionSize = $t03119431318._1
710+ let oldPositionMargin = $t03119431318._2
711+ let oldPositionOpenNotional = $t03119431318._3
718712 let isNewPosition = (oldPositionSize == 0)
719713 let isSameDirection = if ((oldPositionSize > 0))
720714 then (_direction == DIR_LONG)
723717 then isSameDirection
724718 else false
725719 let isAdd = (_direction == DIR_LONG)
726- let $t03172934196 = if (if (isNewPosition)
720+ let $t03160734160 = if (if (isNewPosition)
727721 then true
728722 else expandExisting)
729723 then {
730724 let openNotional = muld(_amount, _leverage)
731- let $t03215332359 = swapInput(isAdd, openNotional)
732- let amountBaseAssetBought = $t03215332359._1
733- let quoteAssetReserveAfter = $t03215332359._2
734- let baseAssetReserveAfter = $t03215332359._3
735- let totalPositionSizeAfter = $t03215332359._4
736- let cumulativeNotionalAfter = $t03215332359._5
725+ let $t03203132237 = swapInput(isAdd, openNotional)
726+ let amountBaseAssetBought = $t03203132237._1
727+ let quoteAssetReserveAfter = $t03203132237._2
728+ let baseAssetReserveAfter = $t03203132237._3
729+ let totalPositionSizeAfter = $t03203132237._4
730+ let cumulativeNotionalAfter = $t03203132237._5
737731 if (if ((_minBaseAssetAmount != 0))
738732 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
739733 else false)
740734 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
741735 else {
742736 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
743- let positionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
737+ let positionLstUpdCPF = if (isNewPosition)
738+ then latestCumulativePremiumFraction(newPositionSize)
739+ else getPosition(toString(i.caller))._4
744740 let increaseMarginRequirement = divd(openNotional, _leverage)
745- let $t03282133057 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, positionLstUpdCPF, increaseMarginRequirement)
746- let remainMargin = $t03282133057._1
747- let x1 = $t03282133057._2
748- let x2 = $t03282133057._3
741+ let $t03278533021 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, positionLstUpdCPF, increaseMarginRequirement)
742+ let remainMargin = $t03278533021._1
743+ let x1 = $t03278533021._2
744+ let x2 = $t03278533021._3
749745 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
750746 then abs(amountBaseAssetBought)
751747 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
755751 }
756752 else {
757753 let openNotional = muld(_amount, _leverage)
758- let $t03388934005 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
759- let oldPositionNotional = $t03388934005._1
760- let unrealizedPnl = $t03388934005._2
754+ let $t03385333969 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
755+ let oldPositionNotional = $t03385333969._1
756+ let unrealizedPnl = $t03385333969._2
761757 if ((oldPositionNotional > openNotional))
762758 then throw("Use decreasePosition to decrease position size")
763759 else throw("Close position first")
764760 }
765- let newPositionSize = $t03172934196._1
766- let newPositionRemainMargin = $t03172934196._2
767- let newPositionOpenNotional = $t03172934196._3
768- let newPositionLatestCPF = $t03172934196._4
769- let baseAssetReserveAfter = $t03172934196._5
770- let quoteAssetReserveAfter = $t03172934196._6
771- let totalPositionSizeAfter = $t03172934196._7
772- let cumulativeNotionalAfter = $t03172934196._8
773- let openInterestNotionalAfter = $t03172934196._9
774- let totalLongAfter = $t03172934196._10
775- let totalShortAfter = $t03172934196._11
761+ let newPositionSize = $t03160734160._1
762+ let newPositionRemainMargin = $t03160734160._2
763+ let newPositionOpenNotional = $t03160734160._3
764+ let newPositionLatestCPF = $t03160734160._4
765+ let baseAssetReserveAfter = $t03160734160._5
766+ let quoteAssetReserveAfter = $t03160734160._6
767+ let totalPositionSizeAfter = $t03160734160._7
768+ let cumulativeNotionalAfter = $t03160734160._8
769+ let openInterestNotionalAfter = $t03160734160._9
770+ let totalLongAfter = $t03160734160._10
771+ let totalShortAfter = $t03160734160._11
776772 let feeToStakers = (feeAmount / 2)
777773 let feeToInsurance = (feeAmount - feeToStakers)
778774 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
803799 else {
804800 let feeAmount = muld(_rawAmount, fee())
805801 let _amount = (_rawAmount - feeAmount)
806- let $t03547235624 = getPosition(toString(i.caller))
807- let oldPositionSize = $t03547235624._1
808- let oldPositionMargin = $t03547235624._2
809- let oldPositionOpenNotional = $t03547235624._3
810- let oldPositionLstUpdCPF = $t03547235624._4
802+ let $t03543635588 = getPosition(toString(i.caller))
803+ let oldPositionSize = $t03543635588._1
804+ let oldPositionMargin = $t03543635588._2
805+ let oldPositionOpenNotional = $t03543635588._3
806+ let oldPositionLstUpdCPF = $t03543635588._4
811807 let feeToStakers = (feeAmount / 2)
812808 let feeToInsurance = (feeAmount - feeToStakers)
813809 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
834830 else paused())
835831 then throw("Invalid removeMargin parameters")
836832 else {
837- let $t03654436696 = getPosition(toString(i.caller))
838- let oldPositionSize = $t03654436696._1
839- let oldPositionMargin = $t03654436696._2
840- let oldPositionOpenNotional = $t03654436696._3
841- let oldPositionLstUpdCPF = $t03654436696._4
833+ let $t03650836660 = getPosition(toString(i.caller))
834+ let oldPositionSize = $t03650836660._1
835+ let oldPositionMargin = $t03650836660._2
836+ let oldPositionOpenNotional = $t03650836660._3
837+ let oldPositionLstUpdCPF = $t03650836660._4
842838 let marginDelta = -(_amount)
843- let $t03673336912 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
844- let remainMargin = $t03673336912._1
845- let badDebt = $t03673336912._2
839+ let $t03669736876 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
840+ let remainMargin = $t03669736876._1
841+ let badDebt = $t03669736876._2
846842 if ((badDebt != 0))
847843 then throw("Invalid added margin amount")
848844 else {
863859 else paused())
864860 then throw("Invalid closePosition parameters")
865861 else {
866- let $t03767238056 = internalClosePosition(toString(i.caller))
867- let x1 = $t03767238056._1
868- let positionBadDebt = $t03767238056._2
869- let realizedPnl = $t03767238056._3
870- let marginToVault = $t03767238056._4
871- let quoteAssetReserveAfter = $t03767238056._5
872- let baseAssetReserveAfter = $t03767238056._6
873- let totalPositionSizeAfter = $t03767238056._7
874- let cumulativeNotionalAfter = $t03767238056._8
875- let openInterestNotionalAfter = $t03767238056._9
876- let x2 = $t03767238056._10
877- let totalLongAfter = $t03767238056._11
878- let totalShortAfter = $t03767238056._12
862+ let $t03763638020 = internalClosePosition(toString(i.caller))
863+ let x1 = $t03763638020._1
864+ let positionBadDebt = $t03763638020._2
865+ let realizedPnl = $t03763638020._3
866+ let marginToVault = $t03763638020._4
867+ let quoteAssetReserveAfter = $t03763638020._5
868+ let baseAssetReserveAfter = $t03763638020._6
869+ let totalPositionSizeAfter = $t03763638020._7
870+ let cumulativeNotionalAfter = $t03763638020._8
871+ let openInterestNotionalAfter = $t03763638020._9
872+ let x2 = $t03763638020._10
873+ let totalLongAfter = $t03763638020._11
874+ let totalShortAfter = $t03763638020._12
879875 if ((positionBadDebt > 0))
880876 then throw("Unable to close position with bad debt")
881877 else {
882878 let withdrawAmount = abs(marginToVault)
883879 let ammBalance = (cbalance() - withdrawAmount)
884- let $t03826538407 = if ((0 > ammBalance))
880+ let $t03822938371 = if ((0 > ammBalance))
885881 then $Tuple2(0, abs(ammBalance))
886882 else $Tuple2(ammBalance, 0)
887- let ammNewBalance = $t03826538407._1
888- let getFromInsurance = $t03826538407._2
883+ let ammNewBalance = $t03822938371._1
884+ let getFromInsurance = $t03822938371._2
889885 let x = if ((getFromInsurance > 0))
890886 then {
891887 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
921917 else paused())
922918 then throw("Unable to liquidate")
923919 else {
924- let $t03984640273 = internalClosePosition(_trader)
925- let x1 = $t03984640273._1
926- let badDebt = $t03984640273._2
927- let x2 = $t03984640273._3
928- let marginToVault = $t03984640273._4
929- let quoteAssetReserveAfter = $t03984640273._5
930- let baseAssetReserveAfter = $t03984640273._6
931- let totalPositionSizeAfter = $t03984640273._7
932- let cumulativeNotionalAfter = $t03984640273._8
933- let openInterestNotionalAfter = $t03984640273._9
934- let exchangedQuoteAssetAmount = $t03984640273._10
935- let totalLongAfter = $t03984640273._11
936- let totalShortAfter = $t03984640273._12
920+ let $t03981040237 = internalClosePosition(_trader)
921+ let x1 = $t03981040237._1
922+ let badDebt = $t03981040237._2
923+ let x2 = $t03981040237._3
924+ let marginToVault = $t03981040237._4
925+ let quoteAssetReserveAfter = $t03981040237._5
926+ let baseAssetReserveAfter = $t03981040237._6
927+ let totalPositionSizeAfter = $t03981040237._7
928+ let cumulativeNotionalAfter = $t03981040237._8
929+ let openInterestNotionalAfter = $t03981040237._9
930+ let exchangedQuoteAssetAmount = $t03981040237._10
931+ let totalLongAfter = $t03981040237._11
932+ let totalShortAfter = $t03981040237._12
937933 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
938934 let feeToLiquidator = (liquidationPenalty / 2)
939935 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
940936 let ammBadDebt = (cbalance() - liquidationPenalty)
941- let $t04067140806 = if ((0 > ammBadDebt))
937+ let $t04063540770 = if ((0 > ammBadDebt))
942938 then $Tuple2(0, abs(ammBadDebt))
943939 else $Tuple2(ammBadDebt, 0)
944- let newAmmBalance = $t04067140806._1
945- let takeFromInsurance = $t04067140806._2
940+ let newAmmBalance = $t04063540770._1
941+ let takeFromInsurance = $t04063540770._2
946942 let x = if ((takeFromInsurance > 0))
947943 then {
948944 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
982978 let underlyingPrice = getOracleTwapPrice()
983979 let spotTwapPrice = getTwapSpotPrice()
984980 let premium = (spotTwapPrice - underlyingPrice)
985- let $t04217643511 = if (if ((totalShortPositionSize() == 0))
981+ let $t04214043475 = if (if ((totalShortPositionSize() == 0))
986982 then true
987983 else (totalLongPositionSize() == 0))
988984 then $Tuple2(0, 0)
997993 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
998994 $Tuple2(shortPremiumFraction, longPremiumFraction)
999995 }
1000- let shortPremiumFraction = $t04217643511._1
1001- let longPremiumFraction = $t04217643511._2
996+ let shortPremiumFraction = $t04214043475._1
997+ let longPremiumFraction = $t04214043475._2
1002998 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
1003999 }
10041000 }
10071003
10081004 @Callable(i)
10091005 func v_get (_trader) = {
1010- let $t04388643939 = internalClosePosition(_trader)
1011- let x1 = $t04388643939._1
1012- let x2 = $t04388643939._2
1013- let x3 = $t04388643939._3
1014- let x4 = $t04388643939._4
1006+ let $t04385043903 = internalClosePosition(_trader)
1007+ let x1 = $t04385043903._1
1008+ let x2 = $t04385043903._2
1009+ let x3 = $t04385043903._3
1010+ let x4 = $t04385043903._4
10151011 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
10161012 }
10171013
10191015
10201016 @Callable(i)
10211017 func view_calcRemainMarginWithFundingPayment (_trader) = {
1022- let $t04408644197 = getPosition(_trader)
1023- let positionSize = $t04408644197._1
1024- let positionMargin = $t04408644197._2
1025- let pon = $t04408644197._3
1026- let positionLstUpdCPF = $t04408644197._4
1027- let $t04420244303 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1028- let positionNotional = $t04420244303._1
1029- let unrealizedPnl = $t04420244303._2
1030- let $t04430844490 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1031- let remainMargin = $t04430844490._1
1032- let badDebt = $t04430844490._2
1033- let fundingPayment = $t04430844490._3
1018+ let $t04405044161 = getPosition(_trader)
1019+ let positionSize = $t04405044161._1
1020+ let positionMargin = $t04405044161._2
1021+ let pon = $t04405044161._3
1022+ let positionLstUpdCPF = $t04405044161._4
1023+ let $t04416644267 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1024+ let positionNotional = $t04416644267._1
1025+ let unrealizedPnl = $t04416644267._2
1026+ let $t04427244454 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1027+ let remainMargin = $t04427244454._1
1028+ let badDebt = $t04427244454._2
1029+ let fundingPayment = $t04427244454._3
10341030 throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))))
10351031 }
10361032
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
4747
4848 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
4949
5050 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
5151
5252 let k_longFundingRate = "k_longFundingRate"
5353
5454 let k_shortFundingRate = "k_shortFundingRate"
5555
5656 let k_quoteAssetReserve = "k_qtAstR"
5757
5858 let k_baseAssetReserve = "k_bsAstR"
5959
6060 let k_totalPositionSize = "k_totalPositionSize"
6161
6262 let k_totalLongPositionSize = "k_totalLongPositionSize"
6363
6464 let k_totalShortPositionSize = "k_totalShortPositionSize"
6565
6666 let k_cumulativeNotional = "k_cumulativeNotional"
6767
6868 let k_openInterestNotional = "k_openInterestNotional"
6969
7070 let k_coordinatorAddress = "k_coordinatorAddress"
7171
7272 let k_insurance_address = "k_insurance_address"
7373
7474 let k_admin_address = "k_admin_address"
7575
7676 let k_admin_public_key = "k_admin_public_key"
7777
7878 let k_quote_asset = "k_quote_asset"
7979
8080 let k_quote_staking = "k_quote_staking"
8181
8282 let k_staking_address = "k_staking_address"
8383
8484 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
8585
8686
8787 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
8888
8989
9090 func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key))
9191
9292
9393 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
9494
9595
9696 func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set")
9797
9898
9999 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Insurance not set")
100100
101101
102102 func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set")
103103
104104
105105 let DIR_LONG = 1
106106
107107 let DIR_SHORT = 2
108108
109109 let FUNDING_BLOCK_INTERVAL = 60
110110
111111 let TWAP_INTERVAL = 15
112112
113113 let ORACLE_INTERVAL = 15
114114
115115 let SECONDS = 1000
116116
117117 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
118118
119119 let HUNDRED_PERCENT = (100 * DECIMAL_UNIT)
120120
121121 let ONE_DAY = (86400 * DECIMAL_UNIT)
122122
123123 let ALL_FEES = 100
124124
125125 let PNL_OPTION_SPOT = 1
126126
127127 let PNL_OPTION_ORACLE = 2
128128
129129 func s (_x) = (toString(_x) + ",")
130130
131131
132132 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
133133
134134
135135 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
136136
137137
138138 func abs (_x) = if ((_x > 0))
139139 then _x
140140 else -(_x)
141141
142142
143143 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
144144
145145
146146 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
147147
148148
149149 func cbalance () = int(k_balance)
150150
151151
152152 func fee () = int(k_fee)
153153
154154
155155 func initMarginRatio () = int(k_initMarginRatio)
156156
157157
158158 func qtAstR () = int(k_quoteAssetReserve)
159159
160160
161161 func bsAstR () = int(k_baseAssetReserve)
162162
163163
164164 func totalPositionSize () = int(k_totalPositionSize)
165165
166166
167167 func cumulativeNotional () = int(k_cumulativeNotional)
168168
169169
170170 func openInterestNotional () = int(k_openInterestNotional)
171171
172172
173173 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
174174
175175
176176 func fundingPeriodRaw () = int(k_fundingPeriod)
177177
178178
179179 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
180180
181181
182182 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
183183
184184
185185 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
186186
187187
188188 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
189189
190190
191191 func spreadLimit () = int(k_spreadLimit)
192192
193193
194194 func maxPriceImpact () = int(k_maxPriceImpact)
195195
196196
197197 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
198198
199199
200200 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
201201
202202
203203 func totalShortPositionSize () = int(k_totalShortPositionSize)
204204
205205
206206 func totalLongPositionSize () = int(k_totalLongPositionSize)
207207
208208
209209 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
210210 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
211211 if (if (_largerThanOrEqualTo)
212212 then (0 > remainingMarginRatio)
213213 else false)
214214 then throw("Invalid margin")
215215 else if (if (!(_largerThanOrEqualTo))
216216 then (remainingMarginRatio >= 0)
217217 else false)
218218 then throw("Invalid margin")
219219 else true
220220 }
221221
222222
223223 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
224224 then throw("Should not be called with _positionSize == 0")
225225 else if ((_positionSize > 0))
226226 then latestLongCumulativePremiumFraction()
227227 else latestShortCumulativePremiumFraction()
228228
229229
230230 func getPosition (_trader) = {
231231 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
232232 match positionSizeOpt {
233233 case positionSize: Int =>
234234 $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)))
235235 case _ =>
236236 $Tuple4(0, 0, 0, 0)
237237 }
238238 }
239239
240240
241241 func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0))
242242 then throw("No open position")
243243 else true
244244
245245
246246 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
247247
248248
249249 func paused () = valueOrElse(getBoolean(this, k_paused), false)
250250
251251
252252 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
253253 then {
254254 let newBase = (bsAstR() - _baseAssetAmount)
255255 if ((0 >= newBase))
256256 then throw("Tx lead to base asset reserve <= 0, revert")
257257 else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount))
258258 }
259259 else {
260260 let newQuote = (qtAstR() - _quoteAssetAmount)
261261 if ((0 >= newQuote))
262262 then throw("Tx lead to base quote reserve <= 0, revert")
263263 else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount))
264264 }
265265
266266
267267 func swapInput (_isAdd,_quoteAssetAmount) = {
268268 let _qtAstR = qtAstR()
269269 let _bsAstR = bsAstR()
270270 let priceBefore = divd(_qtAstR, _bsAstR)
271271 let amountBaseAssetBoughtWithoutPriceImpact = muld(_quoteAssetAmount, priceBefore)
272272 let k = muld(_qtAstR, _bsAstR)
273273 let quoteAssetReserveAfter = if (_isAdd)
274274 then (_qtAstR + _quoteAssetAmount)
275275 else (_qtAstR - _quoteAssetAmount)
276276 let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter)
277277 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
278278 let amountBaseAssetBought = if (_isAdd)
279279 then amountBaseAssetBoughtAbs
280280 else -(amountBaseAssetBoughtAbs)
281281 let priceImpact = ((amountBaseAssetBoughtWithoutPriceImpact - amountBaseAssetBoughtAbs) / amountBaseAssetBoughtWithoutPriceImpact)
282282 let maxPriceImpactValue = maxPriceImpact()
283283 if ((priceImpact > maxPriceImpactValue))
284284 then throw(((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)))
285285 else {
286286 let $t01143211635 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs)
287287 let quoteAssetReserveAfter1 = $t01143211635._1
288288 let baseAssetReserveAfter1 = $t01143211635._2
289289 let totalPositionSizeAfter1 = $t01143211635._3
290290 let cumulativeNotionalAfter1 = $t01143211635._4
291291 $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
292292 }
293293 }
294294
295295
296296 func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = {
297297 let fundingPayment = if ((_oldPositionSize != 0))
298298 then {
299299 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
300300 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
301301 }
302302 else 0
303303 let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
304304 let $t01238212509 = if ((0 > signedMargin))
305305 then $Tuple2(0, abs(signedMargin))
306306 else $Tuple2(abs(signedMargin), 0)
307307 let remainMargin = $t01238212509._1
308308 let badDebt = $t01238212509._2
309309 $Tuple3(remainMargin, badDebt, fundingPayment)
310310 }
311311
312312
313313 func swapOutput (_isAdd,_baseAssetAmount) = {
314314 let _quoteAssetReserve = qtAstR()
315315 let _baseAssetReserve = bsAstR()
316316 if ((_baseAssetAmount == 0))
317317 then throw("Invalid base asset amount")
318318 else {
319319 let k = muld(_quoteAssetReserve, _baseAssetReserve)
320320 let baseAssetPoolAmountAfter = if (_isAdd)
321321 then (_baseAssetReserve + _baseAssetAmount)
322322 else (_baseAssetReserve - _baseAssetAmount)
323323 let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter)
324324 let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve))
325325 let $t01334713540 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount)
326326 let quoteAssetReserveAfter1 = $t01334713540._1
327327 let baseAssetReserveAfter1 = $t01334713540._2
328328 let totalPositionSizeAfter1 = $t01334713540._3
329329 let cumulativeNotionalAfter1 = $t01334713540._4
330330 $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd)
331331 then abs(_baseAssetAmount)
332332 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
333333 then abs(_baseAssetAmount)
334334 else 0)))
335335 }
336336 }
337337
338338
339339 func getOracleTwapPrice () = {
340340 let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "")
341341 let priceKey = getStringValue(this, k_ora_key)
342342 let blockKey = getStringValue(this, k_ora_block_key)
343343 let lastValue = getIntegerValue(oracle, priceKey)
344344 lastValue
345345 }
346346
347347
348348 func getSpotPrice () = {
349349 let _quoteAssetReserve = qtAstR()
350350 let _baseAssetReserve = bsAstR()
351351 divd(_quoteAssetReserve, _baseAssetReserve)
352352 }
353353
354354
355355 func isOverFluctuationLimit () = {
356356 let oraclePrice = getOracleTwapPrice()
357357 let currentPrice = getSpotPrice()
358358 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
359359 }
360360
361361
362362 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
363363 let $t01517215300 = getPosition(_trader)
364364 let positionSize = $t01517215300._1
365365 let positionMargin = $t01517215300._2
366366 let positionOpenNotional = $t01517215300._3
367367 let positionLstUpdCPF = $t01517215300._4
368368 let positionSizeAbs = abs(positionSize)
369369 if ((positionSizeAbs == 0))
370370 then throw("Invalid position size")
371371 else {
372372 let isShort = (0 > positionSize)
373373 let positionNotional = if ((_option == PNL_OPTION_SPOT))
374374 then {
375375 let $t01554715654 = swapOutput(!(isShort), positionSizeAbs)
376376 let outPositionNotional = $t01554715654._1
377377 let x1 = $t01554715654._2
378378 let x2 = $t01554715654._3
379379 let x3 = $t01554715654._4
380380 outPositionNotional
381381 }
382382 else (positionSizeAbs * getOracleTwapPrice())
383383 let unrealizedPnl = if (isShort)
384384 then (positionOpenNotional - positionNotional)
385385 else (positionNotional - positionOpenNotional)
386386 $Tuple2(positionNotional, unrealizedPnl)
387387 }
388388 }
389389
390390
391391 func getMarginRatioByOption (_trader,_option) = {
392392 let $t01614916260 = getPosition(_trader)
393393 let positionSize = $t01614916260._1
394394 let positionMargin = $t01614916260._2
395395 let pon = $t01614916260._3
396396 let positionLstUpdCPF = $t01614916260._4
397397 let $t01626616359 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
398398 let positionNotional = $t01626616359._1
399399 let unrealizedPnl = $t01626616359._2
400400 let $t01636416530 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
401401 let remainMargin = $t01636416530._1
402402 let badDebt = $t01636416530._2
403403 divd((remainMargin - badDebt), positionNotional)
404404 }
405405
406406
407407 func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
408408
409409
410410 func internalClosePosition (_trader) = {
411411 let $t01683616947 = getPosition(_trader)
412412 let positionSize = $t01683616947._1
413413 let positionMargin = $t01683616947._2
414414 let pon = $t01683616947._3
415415 let positionLstUpdCPF = $t01683616947._4
416416 let $t01695317040 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
417417 let x1 = $t01695317040._1
418418 let unrealizedPnl = $t01695317040._2
419419 let $t01704517213 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
420420 let remainMargin = $t01704517213._1
421421 let badDebt = $t01704517213._2
422422 let exchangedPositionSize = -(positionSize)
423423 let realizedPnl = unrealizedPnl
424424 let marginToVault = -(remainMargin)
425425 let $t01734017621 = swapOutput((positionSize > 0), abs(positionSize))
426426 let exchangedQuoteAssetAmount = $t01734017621._1
427427 let quoteAssetReserveAfter = $t01734017621._2
428428 let baseAssetReserveAfter = $t01734017621._3
429429 let totalPositionSizeAfter = $t01734017621._4
430430 let cumulativeNotionalAfter = $t01734017621._5
431431 let totalLongAfter = $t01734017621._6
432432 let totalShortAfter = $t01734017621._7
433433 let openInterestNotionalAfter = (openInterestNotional() - pon)
434434 $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter)
435435 }
436436
437437
438438 func getTwapSpotPrice () = {
439439 let minuteId = ((lastBlock.timestamp / 1000) / 60)
440440 let startMinuteId = (minuteId - TWAP_INTERVAL)
441441 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
442442 let list = split(listStr, ",")
443443 func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next)))
444444 then (accumulator :+ parseIntValue(next))
445445 else accumulator
446446
447447 let listF = {
448448 let $l = list
449449 let $s = size($l)
450450 let $acc0 = nil
451451 func $f0_1 ($a,$i) = if (($i >= $s))
452452 then $a
453453 else filterFn($a, $l[$i])
454454
455455 func $f0_2 ($a,$i) = if (($i >= $s))
456456 then $a
457457 else throw("List size exceeds 20")
458458
459459 $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)
460460 }
461461 let maxIndex = if ((size(listF) > 0))
462462 then max(listF)
463463 else parseIntValue(list[0])
464464 let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
465465 let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0)
466466 let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0)
467467 let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice))
468468 let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0)
469469 let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0)
470470 let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice))
471471 ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL)
472472 }
473473
474474
475475 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)]
476476
477477
478478 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)]
479479
480480
481481 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)]
482482
483483
484484 func appendTwap (price) = {
485485 let minuteId = ((lastBlock.timestamp / 1000) / 60)
486486 let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
487487 if ((previousMinuteId > minuteId))
488488 then throw("TWAP out-of-order")
489489 else {
490490 let lastMinuteId = if ((previousMinuteId == 0))
491491 then minuteId
492492 else previousMinuteId
493493 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
494494 let oldList = split(listStr, ",")
495495 let list = if ((size(oldList) > TWAP_INTERVAL))
496496 then (removeByIndex(oldList, 0) :+ toString(minuteId))
497497 else (oldList :+ toString(minuteId))
498498 let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0)
499499 let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price)
500500 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice))
501501 func join (accumulator,val) = ((accumulator + val) + ",")
502502
503503 let newListStr = {
504504 let $l = list
505505 let $s = size($l)
506506 let $acc0 = ""
507507 func $f0_1 ($a,$i) = if (($i >= $s))
508508 then $a
509509 else join($a, $l[$i])
510510
511511 func $f0_2 ($a,$i) = if (($i >= $s))
512512 then $a
513513 else throw("List size exceeds 20")
514514
515515 $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)
516516 }
517517 let newListStrU = dropRight(newListStr, 1)
518518 let newListStrR = if ((take(newListStrU, 1) == ","))
519519 then drop(newListStrU, 1)
520520 else newListStrU
521521 [IntegerEntry(((k_twapDataLastCumulativePrice + "_") + toString(minuteId)), lastCumulativePrice), IntegerEntry(((k_twapDataLastPrice + "_") + toString(minuteId)), price), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, newListStrR)]
522522 }
523523 }
524524
525525
526526 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
527527 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
528528 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)))
529529
530530
531531 func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))]
532532
533533
534534 func withdraw (_address,_amount) = {
535535 let balance = assetBalance(this, quoteAsset())
536536 if ((_amount > balance))
537537 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
538538 else [ScriptTransfer(_address, _amount, quoteAsset())]
539539 }
540540
541541
542542 func updateBalance (i) = if ((0 > i))
543543 then throw("Balance")
544544 else [IntegerEntry(k_balance, i)]
545545
546546
547547 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
548548
549549
550550 @Callable(i)
551551 func pause () = if ((i.caller != adminAddress()))
552552 then throw("Invalid togglePause params")
553553 else [BooleanEntry(k_paused, true)]
554554
555555
556556
557557 @Callable(i)
558558 func unpause () = if ((i.caller != adminAddress()))
559559 then throw("Invalid togglePause params")
560560 else [BooleanEntry(k_paused, false)]
561561
562562
563563
564564 @Callable(i)
565565 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress()))
566566 then throw("Invalid changeSettings params")
567567 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)
568568
569569
570570
571571 @Callable(i)
572572 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))
573573 then true
574574 else (0 >= _bsAstR))
575575 then true
576576 else (0 >= _fundingPeriod))
577577 then true
578578 else (0 >= _initMarginRatio))
579579 then true
580580 else (0 >= _mmr))
581581 then true
582582 else (0 >= _liquidationFeeRatio))
583583 then true
584584 else (0 >= _fee))
585585 then true
586586 else (0 >= _spreadLimit))
587587 then true
588588 else (0 >= _maxPriceImpact))
589589 then true
590590 else initialized())
591591 then throw("Invalid initialize parameters")
592592 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)])
593593
594594
595595
596596 @Callable(i)
597597 func decreasePosition (_direction,_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
598598 then (_direction != DIR_SHORT)
599599 else false)
600600 then true
601601 else (0 >= _amount))
602602 then true
603603 else if (((1 * DECIMAL_UNIT) > _leverage))
604604 then true
605605 else (_leverage > (3 * DECIMAL_UNIT)))
606606 then true
607607 else !(initialized()))
608608 then true
609609 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
610610 then true
611611 else !(requireOpenPosition(toString(i.caller))))
612612 then true
613613 else paused())
614614 then throw("Invalid decreasePosition parameters")
615615 else {
616616 let $t02680126953 = getPosition(toString(i.caller))
617617 let oldPositionSize = $t02680126953._1
618618 let oldPositionMargin = $t02680126953._2
619619 let oldPositionOpenNotional = $t02680126953._3
620620 let oldPositionLstUpdCPF = $t02680126953._4
621- let isNewPosition = (oldPositionSize == 0)
622- let isSameDirection = if ((oldPositionSize > 0))
621+ let expandExisting = if ((oldPositionSize > 0))
623622 then (_direction == DIR_LONG)
624623 else (_direction == DIR_SHORT)
625- let expandExisting = if (!(isNewPosition))
626- then isSameDirection
627- else false
628624 let isAdd = (_direction == DIR_LONG)
629- let $t02724230280 = if (if (isNewPosition)
630- then true
631- else expandExisting)
625+ let $t02713730158 = if (expandExisting)
632626 then throw("Use increasePosition to open new or increase position")
633627 else {
634628 let openNotional = muld(_amount, _leverage)
635- let $t02774827864 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
636- let oldPositionNotional = $t02774827864._1
637- let unrealizedPnl = $t02774827864._2
629+ let $t02762627742 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
630+ let oldPositionNotional = $t02762627742._1
631+ let unrealizedPnl = $t02762627742._2
638632 if ((oldPositionNotional > openNotional))
639633 then {
640- let $t02792628156 = swapInput(isAdd, openNotional)
641- let exchangedPositionSize = $t02792628156._1
642- let quoteAssetReserveAfter = $t02792628156._2
643- let baseAssetReserveAfter = $t02792628156._3
644- let totalPositionSizeAfter = $t02792628156._4
645- let cumulativeNotionalAfter = $t02792628156._5
634+ let $t02780428034 = swapInput(isAdd, openNotional)
635+ let exchangedPositionSize = $t02780428034._1
636+ let quoteAssetReserveAfter = $t02780428034._2
637+ let baseAssetReserveAfter = $t02780428034._3
638+ let totalPositionSizeAfter = $t02780428034._4
639+ let cumulativeNotionalAfter = $t02780428034._5
646640 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
647641 if (if ((_minBaseAssetAmount != 0))
648642 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
649643 else false)
650644 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
651645 else {
652646 let realizedPnl = if ((oldPositionSize != 0))
653647 then divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize)
654648 else 0
655- let $t02869628953 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
656- let remainMargin = $t02869628953._1
657- let badDebt = $t02869628953._2
658- let fundingPayment = $t02869628953._3
649+ let $t02857428831 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
650+ let remainMargin = $t02857428831._1
651+ let badDebt = $t02857428831._2
652+ let fundingPayment = $t02857428831._3
659653 let exchangedQuoteAssetAmount = openNotional
660654 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
661655 let remainOpenNotional = if ((oldPositionSize > 0))
662656 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
663657 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
664658 let newPositionSize = (oldPositionSize + exchangedPositionSize)
665659 $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0))
666660 then abs(exchangedPositionSize)
667661 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
668662 then abs(exchangedPositionSize)
669663 else 0)))
670664 }
671665 }
672666 else throw("Close position first")
673667 }
674- let newPositionSize = $t02724230280._1
675- let newPositionRemainMargin = $t02724230280._2
676- let newPositionOpenNotional = $t02724230280._3
677- let newPositionLatestCPF = $t02724230280._4
678- let baseAssetReserveAfter = $t02724230280._5
679- let quoteAssetReserveAfter = $t02724230280._6
680- let totalPositionSizeAfter = $t02724230280._7
681- let cumulativeNotionalAfter = $t02724230280._8
682- let openInterestNotionalAfter = $t02724230280._9
683- let totalLongAfter = $t02724230280._10
684- let totalShortAfter = $t02724230280._11
668+ let newPositionSize = $t02713730158._1
669+ let newPositionRemainMargin = $t02713730158._2
670+ let newPositionOpenNotional = $t02713730158._3
671+ let newPositionLatestCPF = $t02713730158._4
672+ let baseAssetReserveAfter = $t02713730158._5
673+ let quoteAssetReserveAfter = $t02713730158._6
674+ let totalPositionSizeAfter = $t02713730158._7
675+ let cumulativeNotionalAfter = $t02713730158._8
676+ let openInterestNotionalAfter = $t02713730158._9
677+ let totalLongAfter = $t02713730158._10
678+ let totalShortAfter = $t02713730158._11
685679 (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
686680 }
687681
688682
689683
690684 @Callable(i)
691685 func increasePosition (_direction,_leverage,_minBaseAssetAmount) = {
692686 let _rawAmount = i.payments[0].amount
693687 if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
694688 then (_direction != DIR_SHORT)
695689 else false)
696690 then true
697691 else (0 >= _rawAmount))
698692 then true
699693 else if (((1 * DECIMAL_UNIT) > _leverage))
700694 then true
701695 else (_leverage > (3 * DECIMAL_UNIT)))
702696 then true
703697 else !(initialized()))
704698 then true
705699 else (i.payments[0].assetId != quoteAsset()))
706700 then true
707701 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
708702 then true
709703 else paused())
710704 then throw("Invalid increasePosition parameters")
711705 else {
712706 let feeAmount = muld(_rawAmount, fee())
713707 let _amount = (_rawAmount - feeAmount)
714- let $t03131631440 = getPosition(toString(i.caller))
715- let oldPositionSize = $t03131631440._1
716- let oldPositionMargin = $t03131631440._2
717- let oldPositionOpenNotional = $t03131631440._3
708+ let $t03119431318 = getPosition(toString(i.caller))
709+ let oldPositionSize = $t03119431318._1
710+ let oldPositionMargin = $t03119431318._2
711+ let oldPositionOpenNotional = $t03119431318._3
718712 let isNewPosition = (oldPositionSize == 0)
719713 let isSameDirection = if ((oldPositionSize > 0))
720714 then (_direction == DIR_LONG)
721715 else (_direction == DIR_SHORT)
722716 let expandExisting = if (!(isNewPosition))
723717 then isSameDirection
724718 else false
725719 let isAdd = (_direction == DIR_LONG)
726- let $t03172934196 = if (if (isNewPosition)
720+ let $t03160734160 = if (if (isNewPosition)
727721 then true
728722 else expandExisting)
729723 then {
730724 let openNotional = muld(_amount, _leverage)
731- let $t03215332359 = swapInput(isAdd, openNotional)
732- let amountBaseAssetBought = $t03215332359._1
733- let quoteAssetReserveAfter = $t03215332359._2
734- let baseAssetReserveAfter = $t03215332359._3
735- let totalPositionSizeAfter = $t03215332359._4
736- let cumulativeNotionalAfter = $t03215332359._5
725+ let $t03203132237 = swapInput(isAdd, openNotional)
726+ let amountBaseAssetBought = $t03203132237._1
727+ let quoteAssetReserveAfter = $t03203132237._2
728+ let baseAssetReserveAfter = $t03203132237._3
729+ let totalPositionSizeAfter = $t03203132237._4
730+ let cumulativeNotionalAfter = $t03203132237._5
737731 if (if ((_minBaseAssetAmount != 0))
738732 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
739733 else false)
740734 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
741735 else {
742736 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
743- let positionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
737+ let positionLstUpdCPF = if (isNewPosition)
738+ then latestCumulativePremiumFraction(newPositionSize)
739+ else getPosition(toString(i.caller))._4
744740 let increaseMarginRequirement = divd(openNotional, _leverage)
745- let $t03282133057 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, positionLstUpdCPF, increaseMarginRequirement)
746- let remainMargin = $t03282133057._1
747- let x1 = $t03282133057._2
748- let x2 = $t03282133057._3
741+ let $t03278533021 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, positionLstUpdCPF, increaseMarginRequirement)
742+ let remainMargin = $t03278533021._1
743+ let x1 = $t03278533021._2
744+ let x2 = $t03278533021._3
749745 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
750746 then abs(amountBaseAssetBought)
751747 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
752748 then abs(amountBaseAssetBought)
753749 else 0)))
754750 }
755751 }
756752 else {
757753 let openNotional = muld(_amount, _leverage)
758- let $t03388934005 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
759- let oldPositionNotional = $t03388934005._1
760- let unrealizedPnl = $t03388934005._2
754+ let $t03385333969 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
755+ let oldPositionNotional = $t03385333969._1
756+ let unrealizedPnl = $t03385333969._2
761757 if ((oldPositionNotional > openNotional))
762758 then throw("Use decreasePosition to decrease position size")
763759 else throw("Close position first")
764760 }
765- let newPositionSize = $t03172934196._1
766- let newPositionRemainMargin = $t03172934196._2
767- let newPositionOpenNotional = $t03172934196._3
768- let newPositionLatestCPF = $t03172934196._4
769- let baseAssetReserveAfter = $t03172934196._5
770- let quoteAssetReserveAfter = $t03172934196._6
771- let totalPositionSizeAfter = $t03172934196._7
772- let cumulativeNotionalAfter = $t03172934196._8
773- let openInterestNotionalAfter = $t03172934196._9
774- let totalLongAfter = $t03172934196._10
775- let totalShortAfter = $t03172934196._11
761+ let newPositionSize = $t03160734160._1
762+ let newPositionRemainMargin = $t03160734160._2
763+ let newPositionOpenNotional = $t03160734160._3
764+ let newPositionLatestCPF = $t03160734160._4
765+ let baseAssetReserveAfter = $t03160734160._5
766+ let quoteAssetReserveAfter = $t03160734160._6
767+ let totalPositionSizeAfter = $t03160734160._7
768+ let cumulativeNotionalAfter = $t03160734160._8
769+ let openInterestNotionalAfter = $t03160734160._9
770+ let totalLongAfter = $t03160734160._10
771+ let totalShortAfter = $t03160734160._11
776772 let feeToStakers = (feeAmount / 2)
777773 let feeToInsurance = (feeAmount - feeToStakers)
778774 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
779775 if ((stake == stake))
780776 then {
781777 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
782778 if ((depositInsurance == depositInsurance))
783779 then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
784780 else throw("Strict value is not equal to itself.")
785781 }
786782 else throw("Strict value is not equal to itself.")
787783 }
788784 }
789785
790786
791787
792788 @Callable(i)
793789 func addMargin () = {
794790 let _rawAmount = i.payments[0].amount
795791 if (if (if (if ((i.payments[0].assetId != quoteAsset()))
796792 then true
797793 else !(requireOpenPosition(toString(i.caller))))
798794 then true
799795 else !(initialized()))
800796 then true
801797 else paused())
802798 then throw("Invalid addMargin parameters")
803799 else {
804800 let feeAmount = muld(_rawAmount, fee())
805801 let _amount = (_rawAmount - feeAmount)
806- let $t03547235624 = getPosition(toString(i.caller))
807- let oldPositionSize = $t03547235624._1
808- let oldPositionMargin = $t03547235624._2
809- let oldPositionOpenNotional = $t03547235624._3
810- let oldPositionLstUpdCPF = $t03547235624._4
802+ let $t03543635588 = getPosition(toString(i.caller))
803+ let oldPositionSize = $t03543635588._1
804+ let oldPositionMargin = $t03543635588._2
805+ let oldPositionOpenNotional = $t03543635588._3
806+ let oldPositionLstUpdCPF = $t03543635588._4
811807 let feeToStakers = (feeAmount / 2)
812808 let feeToInsurance = (feeAmount - feeToStakers)
813809 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
814810 if ((stake == stake))
815811 then {
816812 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
817813 if ((depositInsurance == depositInsurance))
818814 then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
819815 else throw("Strict value is not equal to itself.")
820816 }
821817 else throw("Strict value is not equal to itself.")
822818 }
823819 }
824820
825821
826822
827823 @Callable(i)
828824 func removeMargin (_amount) = if (if (if (if ((0 >= _amount))
829825 then true
830826 else !(requireOpenPosition(toString(i.caller))))
831827 then true
832828 else !(initialized()))
833829 then true
834830 else paused())
835831 then throw("Invalid removeMargin parameters")
836832 else {
837- let $t03654436696 = getPosition(toString(i.caller))
838- let oldPositionSize = $t03654436696._1
839- let oldPositionMargin = $t03654436696._2
840- let oldPositionOpenNotional = $t03654436696._3
841- let oldPositionLstUpdCPF = $t03654436696._4
833+ let $t03650836660 = getPosition(toString(i.caller))
834+ let oldPositionSize = $t03650836660._1
835+ let oldPositionMargin = $t03650836660._2
836+ let oldPositionOpenNotional = $t03650836660._3
837+ let oldPositionLstUpdCPF = $t03650836660._4
842838 let marginDelta = -(_amount)
843- let $t03673336912 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
844- let remainMargin = $t03673336912._1
845- let badDebt = $t03673336912._2
839+ let $t03669736876 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
840+ let remainMargin = $t03669736876._1
841+ let badDebt = $t03669736876._2
846842 if ((badDebt != 0))
847843 then throw("Invalid added margin amount")
848844 else {
849845 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
850846 if ((unstake == unstake))
851847 then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount)))
852848 else throw("Strict value is not equal to itself.")
853849 }
854850 }
855851
856852
857853
858854 @Callable(i)
859855 func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller))))
860856 then true
861857 else !(initialized()))
862858 then true
863859 else paused())
864860 then throw("Invalid closePosition parameters")
865861 else {
866- let $t03767238056 = internalClosePosition(toString(i.caller))
867- let x1 = $t03767238056._1
868- let positionBadDebt = $t03767238056._2
869- let realizedPnl = $t03767238056._3
870- let marginToVault = $t03767238056._4
871- let quoteAssetReserveAfter = $t03767238056._5
872- let baseAssetReserveAfter = $t03767238056._6
873- let totalPositionSizeAfter = $t03767238056._7
874- let cumulativeNotionalAfter = $t03767238056._8
875- let openInterestNotionalAfter = $t03767238056._9
876- let x2 = $t03767238056._10
877- let totalLongAfter = $t03767238056._11
878- let totalShortAfter = $t03767238056._12
862+ let $t03763638020 = internalClosePosition(toString(i.caller))
863+ let x1 = $t03763638020._1
864+ let positionBadDebt = $t03763638020._2
865+ let realizedPnl = $t03763638020._3
866+ let marginToVault = $t03763638020._4
867+ let quoteAssetReserveAfter = $t03763638020._5
868+ let baseAssetReserveAfter = $t03763638020._6
869+ let totalPositionSizeAfter = $t03763638020._7
870+ let cumulativeNotionalAfter = $t03763638020._8
871+ let openInterestNotionalAfter = $t03763638020._9
872+ let x2 = $t03763638020._10
873+ let totalLongAfter = $t03763638020._11
874+ let totalShortAfter = $t03763638020._12
879875 if ((positionBadDebt > 0))
880876 then throw("Unable to close position with bad debt")
881877 else {
882878 let withdrawAmount = abs(marginToVault)
883879 let ammBalance = (cbalance() - withdrawAmount)
884- let $t03826538407 = if ((0 > ammBalance))
880+ let $t03822938371 = if ((0 > ammBalance))
885881 then $Tuple2(0, abs(ammBalance))
886882 else $Tuple2(ammBalance, 0)
887- let ammNewBalance = $t03826538407._1
888- let getFromInsurance = $t03826538407._2
883+ let ammNewBalance = $t03822938371._1
884+ let getFromInsurance = $t03822938371._2
889885 let x = if ((getFromInsurance > 0))
890886 then {
891887 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
892888 if ((withdrawInsurance == withdrawInsurance))
893889 then nil
894890 else throw("Strict value is not equal to itself.")
895891 }
896892 else nil
897893 if ((x == x))
898894 then {
899895 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil)
900896 if ((unstake == unstake))
901897 then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(ammNewBalance))
902898 else throw("Strict value is not equal to itself.")
903899 }
904900 else throw("Strict value is not equal to itself.")
905901 }
906902 }
907903
908904
909905
910906 @Callable(i)
911907 func liquidate (_trader) = {
912908 let marginRatio = if (isOverFluctuationLimit())
913909 then getMarginRatioByOption(_trader, PNL_OPTION_ORACLE)
914910 else getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
915911 if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false)))
916912 then true
917913 else !(requireOpenPosition(_trader)))
918914 then true
919915 else !(initialized()))
920916 then true
921917 else paused())
922918 then throw("Unable to liquidate")
923919 else {
924- let $t03984640273 = internalClosePosition(_trader)
925- let x1 = $t03984640273._1
926- let badDebt = $t03984640273._2
927- let x2 = $t03984640273._3
928- let marginToVault = $t03984640273._4
929- let quoteAssetReserveAfter = $t03984640273._5
930- let baseAssetReserveAfter = $t03984640273._6
931- let totalPositionSizeAfter = $t03984640273._7
932- let cumulativeNotionalAfter = $t03984640273._8
933- let openInterestNotionalAfter = $t03984640273._9
934- let exchangedQuoteAssetAmount = $t03984640273._10
935- let totalLongAfter = $t03984640273._11
936- let totalShortAfter = $t03984640273._12
920+ let $t03981040237 = internalClosePosition(_trader)
921+ let x1 = $t03981040237._1
922+ let badDebt = $t03981040237._2
923+ let x2 = $t03981040237._3
924+ let marginToVault = $t03981040237._4
925+ let quoteAssetReserveAfter = $t03981040237._5
926+ let baseAssetReserveAfter = $t03981040237._6
927+ let totalPositionSizeAfter = $t03981040237._7
928+ let cumulativeNotionalAfter = $t03981040237._8
929+ let openInterestNotionalAfter = $t03981040237._9
930+ let exchangedQuoteAssetAmount = $t03981040237._10
931+ let totalLongAfter = $t03981040237._11
932+ let totalShortAfter = $t03981040237._12
937933 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
938934 let feeToLiquidator = (liquidationPenalty / 2)
939935 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
940936 let ammBadDebt = (cbalance() - liquidationPenalty)
941- let $t04067140806 = if ((0 > ammBadDebt))
937+ let $t04063540770 = if ((0 > ammBadDebt))
942938 then $Tuple2(0, abs(ammBadDebt))
943939 else $Tuple2(ammBadDebt, 0)
944- let newAmmBalance = $t04067140806._1
945- let takeFromInsurance = $t04067140806._2
940+ let newAmmBalance = $t04063540770._1
941+ let takeFromInsurance = $t04063540770._2
946942 let x = if ((takeFromInsurance > 0))
947943 then {
948944 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
949945 if ((withdrawInsurance == withdrawInsurance))
950946 then nil
951947 else throw("Strict value is not equal to itself.")
952948 }
953949 else nil
954950 if ((x == x))
955951 then {
956952 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
957953 if ((depositInsurance == depositInsurance))
958954 then {
959955 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(feeToLiquidator - takeFromInsurance), toBase58String(quoteAsset())], nil)
960956 if ((unstake == unstake))
961957 then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(ammBadDebt))
962958 else throw("Strict value is not equal to itself.")
963959 }
964960 else throw("Strict value is not equal to itself.")
965961 }
966962 else throw("Strict value is not equal to itself.")
967963 }
968964 }
969965
970966
971967
972968 @Callable(i)
973969 func payFunding () = {
974970 let fundingBlockTimestamp = nextFundingBlockTimestamp()
975971 if (if (if ((fundingBlockTimestamp > lastBlock.timestamp))
976972 then true
977973 else !(initialized()))
978974 then true
979975 else paused())
980976 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
981977 else {
982978 let underlyingPrice = getOracleTwapPrice()
983979 let spotTwapPrice = getTwapSpotPrice()
984980 let premium = (spotTwapPrice - underlyingPrice)
985- let $t04217643511 = if (if ((totalShortPositionSize() == 0))
981+ let $t04214043475 = if (if ((totalShortPositionSize() == 0))
986982 then true
987983 else (totalLongPositionSize() == 0))
988984 then $Tuple2(0, 0)
989985 else if ((0 > premium))
990986 then {
991987 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
992988 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
993989 $Tuple2(shortPremiumFraction, longPremiumFraction)
994990 }
995991 else {
996992 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
997993 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
998994 $Tuple2(shortPremiumFraction, longPremiumFraction)
999995 }
1000- let shortPremiumFraction = $t04217643511._1
1001- let longPremiumFraction = $t04217643511._2
996+ let shortPremiumFraction = $t04214043475._1
997+ let longPremiumFraction = $t04214043475._2
1002998 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
1003999 }
10041000 }
10051001
10061002
10071003
10081004 @Callable(i)
10091005 func v_get (_trader) = {
1010- let $t04388643939 = internalClosePosition(_trader)
1011- let x1 = $t04388643939._1
1012- let x2 = $t04388643939._2
1013- let x3 = $t04388643939._3
1014- let x4 = $t04388643939._4
1006+ let $t04385043903 = internalClosePosition(_trader)
1007+ let x1 = $t04385043903._1
1008+ let x2 = $t04385043903._2
1009+ let x3 = $t04385043903._3
1010+ let x4 = $t04385043903._4
10151011 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
10161012 }
10171013
10181014
10191015
10201016 @Callable(i)
10211017 func view_calcRemainMarginWithFundingPayment (_trader) = {
1022- let $t04408644197 = getPosition(_trader)
1023- let positionSize = $t04408644197._1
1024- let positionMargin = $t04408644197._2
1025- let pon = $t04408644197._3
1026- let positionLstUpdCPF = $t04408644197._4
1027- let $t04420244303 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1028- let positionNotional = $t04420244303._1
1029- let unrealizedPnl = $t04420244303._2
1030- let $t04430844490 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1031- let remainMargin = $t04430844490._1
1032- let badDebt = $t04430844490._2
1033- let fundingPayment = $t04430844490._3
1018+ let $t04405044161 = getPosition(_trader)
1019+ let positionSize = $t04405044161._1
1020+ let positionMargin = $t04405044161._2
1021+ let pon = $t04405044161._3
1022+ let positionLstUpdCPF = $t04405044161._4
1023+ let $t04416644267 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1024+ let positionNotional = $t04416644267._1
1025+ let unrealizedPnl = $t04416644267._2
1026+ let $t04427244454 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1027+ let remainMargin = $t04427244454._1
1028+ let badDebt = $t04427244454._2
1029+ let fundingPayment = $t04427244454._3
10341030 throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))))
10351031 }
10361032
10371033
10381034 @Verifier(tx)
10391035 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
10401036

github/deemru/w8io/169f3d6 
139.36 ms