tx · CJ3TF2ncnaGaD7kABpBAmsHxh74RyPsSus7TuSwpwcgP

3MuCofTkjmv397dEuRXE3pZxTb4zDWa96uo:  -0.06000000 Waves

2022.09.21 12:59 [2238744] smart account 3MuCofTkjmv397dEuRXE3pZxTb4zDWa96uo > SELF 0.00000000 Waves

{ "type": 13, "id": "CJ3TF2ncnaGaD7kABpBAmsHxh74RyPsSus7TuSwpwcgP", "fee": 6000000, "feeAssetId": null, "timestamp": 1663754394993, "version": 2, "chainId": 84, "sender": "3MuCofTkjmv397dEuRXE3pZxTb4zDWa96uo", "senderPublicKey": "HGKkqEdKKPVXHMq25FyB6nm1kyvrixu1a8Av6wc9t5CG", "proofs": [ "2kQzMTpQg8HjSX1kGwuecSFj9oYSSV1UST8wdFZ1FDTXssTUqpiUe6YVrd6jgys7aUwbvR8WmqYxd8tq5MetGjTP" ], "script": "base64:BgJvCAISABIAEgMKAQESAwoBARILCgkBAQEBAQEBAQESEAoOAQEBAQEBAQgICAEBAQESAwoBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESABIDCgEIEgASBAoCCAESAwoBARIDCgEIEgMKAQgSAwoBARIAiAEACWtfb3JhX2tleQIJa19vcmFfa2V5AA9rX29yYV9ibG9ja19rZXkCD2tfb3JhX2Jsb2NrX2tleQAFa19vcmECBWtfb3JhAAlrX2JhbGFuY2UCCWtfYmFsYW5jZQAOa19wb3NpdGlvblNpemUCDmtfcG9zaXRpb25TaXplABBrX3Bvc2l0aW9uTWFyZ2luAhBrX3Bvc2l0aW9uTWFyZ2luABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAhZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAhJrX3Bvc2l0aW9uRnJhY3Rpb24AFGtfcG9zaXRpb25DbG9zZWREYXRlAhRrX3Bvc2l0aW9uQ2xvc2VkRGF0ZQANa19pbml0aWFsaXplZA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ZkAgUUc2hvcnRQcmVtaXVtRnJhY3Rpb24FD3VuZGVybHlpbmdQcmljZQkAAgEJAKwCAgkBAXMBBQtsb25nRnVuZGluZwkBAXMBBQxzaG9ydEZ1bmRpbmcBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQEOYWRtaW5QdWJsaWNLZXkAOgg+lg==", "height": 2238744, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J68PxUYPz47WL64ij5ehnSXvWJfSUBa2YgGmV3WV9bud Next: 7rWVsYp68MHdRkwTSJofPtbk9x3zucckaQywP5rD5kTA Diff:
OldNewDifferences
596596 }
597597
598598
599+func getFunding () = {
600+ let underlyingPrice = getOracleTwapPrice()
601+ let spotTwapPrice = getTwapSpotPrice()
602+ let premium = (spotTwapPrice - underlyingPrice)
603+ if (if ((totalShortPositionSize() == 0))
604+ then true
605+ else (totalLongPositionSize() == 0))
606+ then $Tuple2(0, 0)
607+ else if ((0 > premium))
608+ then {
609+ let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
610+ let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
611+ $Tuple2(shortPremiumFraction, longPremiumFraction)
612+ }
613+ else {
614+ let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
615+ let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
616+ $Tuple2(shortPremiumFraction, longPremiumFraction)
617+ }
618+ }
619+
620+
599621 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = [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), IntegerEntry(k_partialLiquidationRatio, _partialLiquidationRatio), IntegerEntry(k_maxPriceSpread, _maxPriceSpread)]
600622
601623
765787 else paused())
766788 then throw("Invalid decreasePosition parameters")
767789 else {
768- let $t03607336225 = getPosition(toString(i.caller))
769- let oldPositionSize = $t03607336225._1
770- let oldPositionMargin = $t03607336225._2
771- let oldPositionOpenNotional = $t03607336225._3
772- let oldPositionLstUpdCPF = $t03607336225._4
790+ let $t03733137483 = getPosition(toString(i.caller))
791+ let oldPositionSize = $t03733137483._1
792+ let oldPositionMargin = $t03733137483._2
793+ let oldPositionOpenNotional = $t03733137483._3
794+ let oldPositionLstUpdCPF = $t03733137483._4
773795 let _direction = if ((oldPositionSize > 0))
774796 then DIR_SHORT
775797 else DIR_LONG
776798 let isAdd = (_direction == DIR_LONG)
777799 let openNotional = muld(_amount, _leverage)
778- let $t03639836514 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
779- let oldPositionNotional = $t03639836514._1
780- let unrealizedPnl = $t03639836514._2
781- let $t03652039069 = if ((oldPositionNotional > openNotional))
800+ let $t03765637772 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
801+ let oldPositionNotional = $t03765637772._1
802+ let unrealizedPnl = $t03765637772._2
803+ let $t03777840327 = if ((oldPositionNotional > openNotional))
782804 then {
783- let $t03689737116 = swapInput(isAdd, openNotional)
784- let exchangedPositionSize = $t03689737116._1
785- let quoteAssetReserveAfter = $t03689737116._2
786- let baseAssetReserveAfter = $t03689737116._3
787- let totalPositionSizeAfter = $t03689737116._4
788- let cumulativeNotionalAfter = $t03689737116._5
805+ let $t03815538374 = swapInput(isAdd, openNotional)
806+ let exchangedPositionSize = $t03815538374._1
807+ let quoteAssetReserveAfter = $t03815538374._2
808+ let baseAssetReserveAfter = $t03815538374._3
809+ let totalPositionSizeAfter = $t03815538374._4
810+ let cumulativeNotionalAfter = $t03815538374._5
789811 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
790812 if (if ((_minBaseAssetAmount != 0))
791813 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
793815 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
794816 else {
795817 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
796- let $t03755337798 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
797- let remainMargin = $t03755337798._1
798- let badDebt = $t03755337798._2
799- let fundingPayment = $t03755337798._3
818+ let $t03881139056 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
819+ let remainMargin = $t03881139056._1
820+ let badDebt = $t03881139056._2
821+ let fundingPayment = $t03881139056._3
800822 let exchangedQuoteAssetAmount = openNotional
801823 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
802824 let remainOpenNotional = if ((oldPositionSize > 0))
811833 }
812834 }
813835 else throw("Close position first")
814- let newPositionSize = $t03652039069._1
815- let newPositionRemainMargin = $t03652039069._2
816- let newPositionOpenNotional = $t03652039069._3
817- let newPositionLatestCPF = $t03652039069._4
818- let baseAssetReserveAfter = $t03652039069._5
819- let quoteAssetReserveAfter = $t03652039069._6
820- let totalPositionSizeAfter = $t03652039069._7
821- let cumulativeNotionalAfter = $t03652039069._8
822- let openInterestNotionalAfter = $t03652039069._9
823- let totalLongAfter = $t03652039069._10
824- let totalShortAfter = $t03652039069._11
836+ let newPositionSize = $t03777840327._1
837+ let newPositionRemainMargin = $t03777840327._2
838+ let newPositionOpenNotional = $t03777840327._3
839+ let newPositionLatestCPF = $t03777840327._4
840+ let baseAssetReserveAfter = $t03777840327._5
841+ let quoteAssetReserveAfter = $t03777840327._6
842+ let totalPositionSizeAfter = $t03777840327._7
843+ let cumulativeNotionalAfter = $t03777840327._8
844+ let openInterestNotionalAfter = $t03777840327._9
845+ let totalLongAfter = $t03777840327._10
846+ let totalShortAfter = $t03777840327._11
825847 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
826848 if ((notifyNotional == notifyNotional))
827849 then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
861883 }
862884 let _amount = (_rawAmount - rawFeeAmount)
863885 let feeAmount = (rawFeeAmount - referrerFee)
864- let $t04059840738 = getPosition(_trader)
865- let oldPositionSize = $t04059840738._1
866- let oldPositionMargin = $t04059840738._2
867- let oldPositionOpenNotional = $t04059840738._3
868- let oldPositionLstUpdCPF = $t04059840738._4
886+ let $t04185641996 = getPosition(_trader)
887+ let oldPositionSize = $t04185641996._1
888+ let oldPositionMargin = $t04185641996._2
889+ let oldPositionOpenNotional = $t04185641996._3
890+ let oldPositionLstUpdCPF = $t04185641996._4
869891 let isNewPosition = (oldPositionSize == 0)
870892 let isSameDirection = if ((oldPositionSize > 0))
871893 then (_direction == DIR_LONG)
874896 then isSameDirection
875897 else false
876898 let isAdd = (_direction == DIR_LONG)
877- let $t04102743595 = if (if (isNewPosition)
899+ let $t04228544853 = if (if (isNewPosition)
878900 then true
879901 else expandExisting)
880902 then {
881903 let openNotional = muld(_amount, _leverage)
882- let $t04145141657 = swapInput(isAdd, openNotional)
883- let amountBaseAssetBought = $t04145141657._1
884- let quoteAssetReserveAfter = $t04145141657._2
885- let baseAssetReserveAfter = $t04145141657._3
886- let totalPositionSizeAfter = $t04145141657._4
887- let cumulativeNotionalAfter = $t04145141657._5
904+ let $t04270942915 = swapInput(isAdd, openNotional)
905+ let amountBaseAssetBought = $t04270942915._1
906+ let quoteAssetReserveAfter = $t04270942915._2
907+ let baseAssetReserveAfter = $t04270942915._3
908+ let totalPositionSizeAfter = $t04270942915._4
909+ let cumulativeNotionalAfter = $t04270942915._5
888910 if (if ((_minBaseAssetAmount != 0))
889911 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
890912 else false)
892914 else {
893915 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
894916 let increaseMarginRequirement = divd(openNotional, _leverage)
895- let $t04203842277 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
896- let remainMargin = $t04203842277._1
897- let x1 = $t04203842277._2
898- let x2 = $t04203842277._3
917+ let $t04329643535 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
918+ let remainMargin = $t04329643535._1
919+ let x1 = $t04329643535._2
920+ let x2 = $t04329643535._3
899921 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
900922 then throw("Over max spread limit")
901923 else $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
907929 }
908930 else {
909931 let openNotional = muld(_amount, _leverage)
910- let $t04328843404 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
911- let oldPositionNotional = $t04328843404._1
912- let unrealizedPnl = $t04328843404._2
932+ let $t04454644662 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
933+ let oldPositionNotional = $t04454644662._1
934+ let unrealizedPnl = $t04454644662._2
913935 if ((oldPositionNotional > openNotional))
914936 then throw("Use decreasePosition to decrease position size")
915937 else throw("Close position first")
916938 }
917- let newPositionSize = $t04102743595._1
918- let newPositionRemainMargin = $t04102743595._2
919- let newPositionOpenNotional = $t04102743595._3
920- let newPositionLatestCPF = $t04102743595._4
921- let baseAssetReserveAfter = $t04102743595._5
922- let quoteAssetReserveAfter = $t04102743595._6
923- let totalPositionSizeAfter = $t04102743595._7
924- let cumulativeNotionalAfter = $t04102743595._8
925- let openInterestNotionalAfter = $t04102743595._9
926- let totalLongAfter = $t04102743595._10
927- let totalShortAfter = $t04102743595._11
939+ let newPositionSize = $t04228544853._1
940+ let newPositionRemainMargin = $t04228544853._2
941+ let newPositionOpenNotional = $t04228544853._3
942+ let newPositionLatestCPF = $t04228544853._4
943+ let baseAssetReserveAfter = $t04228544853._5
944+ let quoteAssetReserveAfter = $t04228544853._6
945+ let totalPositionSizeAfter = $t04228544853._7
946+ let cumulativeNotionalAfter = $t04228544853._8
947+ let openInterestNotionalAfter = $t04228544853._9
948+ let totalLongAfter = $t04228544853._10
949+ let totalShortAfter = $t04228544853._11
928950 let feeToStakers = (feeAmount / 2)
929951 let feeToInsurance = (feeAmount - feeToStakers)
930952 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
9781000 }
9791001 let feeAmount = (rawFeeAmount - referrerFee)
9801002 let _amount = (_rawAmount - rawFeeAmount)
981- let $t04548845628 = getPosition(_trader)
982- let oldPositionSize = $t04548845628._1
983- let oldPositionMargin = $t04548845628._2
984- let oldPositionOpenNotional = $t04548845628._3
985- let oldPositionLstUpdCPF = $t04548845628._4
1003+ let $t04674646886 = getPosition(_trader)
1004+ let oldPositionSize = $t04674646886._1
1005+ let oldPositionMargin = $t04674646886._2
1006+ let oldPositionOpenNotional = $t04674646886._3
1007+ let oldPositionLstUpdCPF = $t04674646886._4
9861008 let feeToStakers = (feeAmount / 2)
9871009 let feeToInsurance = (feeAmount - feeToStakers)
9881010 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
10161038 else paused())
10171039 then throw("Invalid removeMargin parameters")
10181040 else {
1019- let $t04665346805 = getPosition(toString(i.caller))
1020- let oldPositionSize = $t04665346805._1
1021- let oldPositionMargin = $t04665346805._2
1022- let oldPositionOpenNotional = $t04665346805._3
1023- let oldPositionLstUpdCPF = $t04665346805._4
1041+ let $t04791148063 = getPosition(toString(i.caller))
1042+ let oldPositionSize = $t04791148063._1
1043+ let oldPositionMargin = $t04791148063._2
1044+ let oldPositionOpenNotional = $t04791148063._3
1045+ let oldPositionLstUpdCPF = $t04791148063._4
10241046 let marginDelta = -(_amount)
1025- let $t04684247021 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1026- let remainMargin = $t04684247021._1
1027- let badDebt = $t04684247021._2
1047+ let $t04810048279 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1048+ let remainMargin = $t04810048279._1
1049+ let badDebt = $t04810048279._2
10281050 if ((badDebt != 0))
10291051 then throw("Invalid removed margin amount")
10301052 else {
10531075 else paused())
10541076 then throw("Invalid closePosition parameters")
10551077 else {
1056- let $t04822448601 = internalClosePosition(caller, true)
1057- let x1 = $t04822448601._1
1058- let positionBadDebt = $t04822448601._2
1059- let realizedPnl = $t04822448601._3
1060- let marginToVault = $t04822448601._4
1061- let quoteAssetReserveAfter = $t04822448601._5
1062- let baseAssetReserveAfter = $t04822448601._6
1063- let totalPositionSizeAfter = $t04822448601._7
1064- let cumulativeNotionalAfter = $t04822448601._8
1065- let openInterestNotionalAfter = $t04822448601._9
1066- let x2 = $t04822448601._10
1067- let totalLongAfter = $t04822448601._11
1068- let totalShortAfter = $t04822448601._12
1078+ let $t04948249859 = internalClosePosition(caller, true)
1079+ let x1 = $t04948249859._1
1080+ let positionBadDebt = $t04948249859._2
1081+ let realizedPnl = $t04948249859._3
1082+ let marginToVault = $t04948249859._4
1083+ let quoteAssetReserveAfter = $t04948249859._5
1084+ let baseAssetReserveAfter = $t04948249859._6
1085+ let totalPositionSizeAfter = $t04948249859._7
1086+ let cumulativeNotionalAfter = $t04948249859._8
1087+ let openInterestNotionalAfter = $t04948249859._9
1088+ let x2 = $t04948249859._10
1089+ let totalLongAfter = $t04948249859._11
1090+ let totalShortAfter = $t04948249859._12
10691091 if ((positionBadDebt > 0))
10701092 then throw("Unable to close position with bad debt")
10711093 else {
10721094 let withdrawAmount = abs(marginToVault)
10731095 let ammBalance = (cbalance() - withdrawAmount)
1074- let $t04881048952 = if ((0 > ammBalance))
1096+ let $t05006850210 = if ((0 > ammBalance))
10751097 then $Tuple2(0, abs(ammBalance))
10761098 else $Tuple2(ammBalance, 0)
1077- let ammNewBalance = $t04881048952._1
1078- let getFromInsurance = $t04881048952._2
1099+ let ammNewBalance = $t05006850210._1
1100+ let getFromInsurance = $t05006850210._2
10791101 let x = if ((getFromInsurance > 0))
10801102 then {
10811103 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
11261148 then (DECIMAL_UNIT > partialLiquidationRatio())
11271149 else false)
11281150 then {
1129- let $t05103251182 = getPosition(_trader)
1130- let oldPositionSize = $t05103251182._1
1131- let oldPositionMargin = $t05103251182._2
1132- let oldPositionOpenNotional = $t05103251182._3
1133- let oldPositionLstUpdCPF = $t05103251182._4
1151+ let $t05229052440 = getPosition(_trader)
1152+ let oldPositionSize = $t05229052440._1
1153+ let oldPositionMargin = $t05229052440._2
1154+ let oldPositionOpenNotional = $t05229052440._3
1155+ let oldPositionLstUpdCPF = $t05229052440._4
11341156 let _direction = if ((oldPositionSize > 0))
11351157 then DIR_SHORT
11361158 else DIR_LONG
11371159 let isAdd = (_direction == DIR_LONG)
11381160 let exchangedQuoteAssetAmount = getPartialLiquidationAmount(_trader, oldPositionSize)
1139- let $t05140751511 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1140- let oldPositionNotional = $t05140751511._1
1141- let unrealizedPnl = $t05140751511._2
1142- let $t05151951809 = swapInput(isAdd, exchangedQuoteAssetAmount)
1143- let exchangedPositionSize = $t05151951809._1
1144- let quoteAssetReserveAfter = $t05151951809._2
1145- let baseAssetReserveAfter = $t05151951809._3
1146- let totalPositionSizeAfter = $t05151951809._4
1147- let cumulativeNotionalAfter = $t05151951809._5
1161+ let $t05266552769 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1162+ let oldPositionNotional = $t05266552769._1
1163+ let unrealizedPnl = $t05266552769._2
1164+ let $t05277753067 = swapInput(isAdd, exchangedQuoteAssetAmount)
1165+ let exchangedPositionSize = $t05277753067._1
1166+ let quoteAssetReserveAfter = $t05277753067._2
1167+ let baseAssetReserveAfter = $t05277753067._3
1168+ let totalPositionSizeAfter = $t05277753067._4
1169+ let cumulativeNotionalAfter = $t05277753067._5
11481170 let realizedPnl = divd(muld(unrealizedPnl, abs(exchangedPositionSize)), abs(oldPositionSize))
1149- let $t05191652149 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1150- let remainMargin = $t05191652149._1
1151- let badDebt = $t05191652149._2
1152- let fundingPayment = $t05191652149._3
1171+ let $t05317453407 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1172+ let remainMargin = $t05317453407._1
1173+ let badDebt = $t05317453407._2
1174+ let fundingPayment = $t05317453407._3
11531175 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
11541176 let remainOpenNotional = if ((oldPositionSize > 0))
11551177 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
11631185 let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
11641186 let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount)
11651187 let ammBalance = (cbalance() - liquidationPenalty)
1166- let $t05332253465 = if ((0 > ammBalance))
1188+ let $t05458054723 = if ((0 > ammBalance))
11671189 then $Tuple2(0, abs(ammBalance))
11681190 else $Tuple2(ammBalance, 0)
1169- let newAmmBalance = $t05332253465._1
1170- let takeFromInsurance = $t05332253465._2
1191+ let newAmmBalance = $t05458054723._1
1192+ let takeFromInsurance = $t05458054723._2
11711193 let x = if ((takeFromInsurance > 0))
11721194 then {
11731195 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
12001222 else throw("Strict value is not equal to itself.")
12011223 }
12021224 else {
1203- let $t05492155376 = internalClosePosition(_trader, false)
1204- let x1 = $t05492155376._1
1205- let badDebt = $t05492155376._2
1206- let x2 = $t05492155376._3
1207- let x3 = $t05492155376._4
1208- let quoteAssetReserveAfter = $t05492155376._5
1209- let baseAssetReserveAfter = $t05492155376._6
1210- let totalPositionSizeAfter = $t05492155376._7
1211- let cumulativeNotionalAfter = $t05492155376._8
1212- let openInterestNotionalAfter = $t05492155376._9
1213- let exchangedQuoteAssetAmount = $t05492155376._10
1214- let totalLongAfter = $t05492155376._11
1215- let totalShortAfter = $t05492155376._12
1225+ let $t05617956634 = internalClosePosition(_trader, false)
1226+ let x1 = $t05617956634._1
1227+ let badDebt = $t05617956634._2
1228+ let x2 = $t05617956634._3
1229+ let x3 = $t05617956634._4
1230+ let quoteAssetReserveAfter = $t05617956634._5
1231+ let baseAssetReserveAfter = $t05617956634._6
1232+ let totalPositionSizeAfter = $t05617956634._7
1233+ let cumulativeNotionalAfter = $t05617956634._8
1234+ let openInterestNotionalAfter = $t05617956634._9
1235+ let exchangedQuoteAssetAmount = $t05617956634._10
1236+ let totalLongAfter = $t05617956634._11
1237+ let totalShortAfter = $t05617956634._12
12161238 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
12171239 let feeToLiquidator = (liquidationPenalty / 2)
12181240 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
12191241 let ammBalance = (cbalance() - liquidationPenalty)
1220- let $t05578855931 = if ((0 > ammBalance))
1242+ let $t05704657189 = if ((0 > ammBalance))
12211243 then $Tuple2(0, abs(ammBalance))
12221244 else $Tuple2(ammBalance, 0)
1223- let newAmmBalance = $t05578855931._1
1224- let takeFromInsurance = $t05578855931._2
1245+ let newAmmBalance = $t05704657189._1
1246+ let takeFromInsurance = $t05704657189._2
12251247 let x = if ((takeFromInsurance > 0))
12261248 then {
12271249 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
12641286 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
12651287 else {
12661288 let underlyingPrice = getOracleTwapPrice()
1267- let spotTwapPrice = getTwapSpotPrice()
1268- let premium = (spotTwapPrice - underlyingPrice)
1269- let $t05751958854 = if (if ((totalShortPositionSize() == 0))
1270- then true
1271- else (totalLongPositionSize() == 0))
1272- then $Tuple2(0, 0)
1273- else if ((0 > premium))
1274- then {
1275- let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
1276- let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
1277- $Tuple2(shortPremiumFraction, longPremiumFraction)
1278- }
1279- else {
1280- let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
1281- let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
1282- $Tuple2(shortPremiumFraction, longPremiumFraction)
1283- }
1284- let shortPremiumFraction = $t05751958854._1
1285- let longPremiumFraction = $t05751958854._2
1289+ let $t05868458746 = getFunding()
1290+ let shortPremiumFraction = $t05868458746._1
1291+ let longPremiumFraction = $t05868458746._2
12861292 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
12871293 }
12881294 }
13091315 else (0 > _price))
13101316 then throw("Invalid adjustPeg parameters")
13111317 else {
1312- let $t05985459940 = getPegAdjustCost(_price)
1313- let newQuoteAssetReserve = $t05985459940._1
1314- let pegChangeCost = $t05985459940._2
1318+ let $t05974659832 = getPegAdjustCost(_price)
1319+ let newQuoteAssetReserve = $t05974659832._1
1320+ let pegChangeCost = $t05974659832._2
13151321 if ((pegChangeCost == 0))
13161322 then throw("Nothing to adjust")
13171323 else if ((pegChangeCost > 0))
13431349
13441350 @Callable(i)
13451351 func v_get (_trader) = {
1346- let $t06116561225 = internalClosePosition(_trader, false)
1347- let x1 = $t06116561225._1
1348- let x2 = $t06116561225._2
1349- let x3 = $t06116561225._3
1350- let x4 = $t06116561225._4
1352+ let $t06105761117 = internalClosePosition(_trader, false)
1353+ let x1 = $t06105761117._1
1354+ let x2 = $t06105761117._2
1355+ let x3 = $t06105761117._3
1356+ let x4 = $t06105761117._4
13511357 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
13521358 }
13531359
13551361
13561362 @Callable(i)
13571363 func view_calcRemainMarginWithFundingPayment (_trader) = {
1358- let $t06137261483 = getPosition(_trader)
1359- let positionSize = $t06137261483._1
1360- let positionMargin = $t06137261483._2
1361- let pon = $t06137261483._3
1362- let positionLstUpdCPF = $t06137261483._4
1363- let $t06148861589 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1364- let positionNotional = $t06148861589._1
1365- let unrealizedPnl = $t06148861589._2
1366- let $t06159461776 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1367- let remainMargin = $t06159461776._1
1368- let badDebt = $t06159461776._2
1369- let fundingPayment = $t06159461776._3
1364+ let $t06126461375 = getPosition(_trader)
1365+ let positionSize = $t06126461375._1
1366+ let positionMargin = $t06126461375._2
1367+ let pon = $t06126461375._3
1368+ let positionLstUpdCPF = $t06126461375._4
1369+ let $t06138061481 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1370+ let positionNotional = $t06138061481._1
1371+ let unrealizedPnl = $t06138061481._2
1372+ let $t06148661668 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1373+ let remainMargin = $t06148661668._1
1374+ let badDebt = $t06148661668._2
1375+ let fundingPayment = $t06148661668._3
13701376 throw((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)))
13711377 }
13721378
13791385 }
13801386
13811387
1388+
1389+@Callable(i)
1390+func view_getFunding () = {
1391+ let underlyingPrice = getOracleTwapPrice()
1392+ let $t06205962121 = getFunding()
1393+ let shortPremiumFraction = $t06205962121._1
1394+ let longPremiumFraction = $t06205962121._2
1395+ let longFunding = divd(longPremiumFraction, underlyingPrice)
1396+ let shortFunding = divd(shortPremiumFraction, underlyingPrice)
1397+ throw((s(longFunding) + s(shortFunding)))
1398+ }
1399+
1400+
13821401 @Verifier(tx)
13831402 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
13841403
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_positionClosedDate = "k_positionClosedDate"
2121
2222 let k_initialized = "k_initialized"
2323
2424 let k_paused = "k_paused"
2525
2626 let k_fee = "k_fee"
2727
2828 let k_fundingPeriod = "k_fundingPeriod"
2929
3030 let k_initMarginRatio = "k_initMarginRatio"
3131
3232 let k_maintenanceMarginRatio = "k_mmr"
3333
3434 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
3535
3636 let k_partialLiquidationRatio = "k_partLiquidationRatio"
3737
3838 let k_spreadLimit = "k_spreadLimit"
3939
4040 let k_maxPriceImpact = "k_maxPriceImpact"
4141
4242 let k_maxPriceSpread = "k_maxPriceSpread"
4343
4444 let k_lastDataStr = "k_lastDataStr"
4545
4646 let k_lastMinuteId = "k_lastMinuteId"
4747
4848 let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice"
4949
5050 let k_twapDataLastPrice = "k_twapDataLastPrice"
5151
5252 let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId"
5353
5454 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
5555
5656 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
5757
5858 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
5959
6060 let k_longFundingRate = "k_longFundingRate"
6161
6262 let k_shortFundingRate = "k_shortFundingRate"
6363
6464 let k_quoteAssetReserve = "k_qtAstR"
6565
6666 let k_baseAssetReserve = "k_bsAstR"
6767
6868 let k_totalPositionSize = "k_totalPositionSize"
6969
7070 let k_totalLongPositionSize = "k_totalLongPositionSize"
7171
7272 let k_totalShortPositionSize = "k_totalShortPositionSize"
7373
7474 let k_cumulativeNotional = "k_cumulativeNotional"
7575
7676 let k_openInterestNotional = "k_openInterestNotional"
7777
7878 let k_coordinatorAddress = "k_coordinatorAddress"
7979
8080 let k_insurance_address = "k_insurance_address"
8181
8282 let k_admin_address = "k_admin_address"
8383
8484 let k_admin_public_key = "k_admin_public_key"
8585
8686 let k_quote_asset = "k_quote_asset"
8787
8888 let k_quote_staking = "k_quote_staking"
8989
9090 let k_staking_address = "k_staking_address"
9191
9292 let k_miner_address = "k_miner_address"
9393
9494 let k_orders_address = "k_orders_address"
9595
9696 let k_referral_address = "k_referral_address"
9797
9898 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
9999
100100
101101 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
102102
103103
104104 func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key))
105105
106106
107107 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
108108
109109
110110 func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set")
111111
112112
113113 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set")
114114
115115
116116 func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set")
117117
118118
119119 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set")
120120
121121
122122 func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set")
123123
124124
125125 func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set")
126126
127127
128128 let DIR_LONG = 1
129129
130130 let DIR_SHORT = 2
131131
132132 let TWAP_INTERVAL = 15
133133
134134 let ORACLE_INTERVAL = 15
135135
136136 let SECONDS = 1000
137137
138138 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
139139
140140 let ONE_DAY = (86400 * DECIMAL_UNIT)
141141
142142 let ALL_FEES = 100
143143
144144 let PNL_OPTION_SPOT = 1
145145
146146 let PNL_OPTION_ORACLE = 2
147147
148148 func s (_x) = (toString(_x) + ",")
149149
150150
151151 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
152152
153153
154154 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
155155
156156
157157 func abs (_x) = if ((_x > 0))
158158 then _x
159159 else -(_x)
160160
161161
162162 func vmax (_x,_y) = if ((_x >= _y))
163163 then _x
164164 else _y
165165
166166
167167 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
168168
169169
170170 func listToStr (_list) = {
171171 func _join (accumulator,val) = ((accumulator + val) + ",")
172172
173173 let newListStr = {
174174 let $l = _list
175175 let $s = size($l)
176176 let $acc0 = ""
177177 func $f0_1 ($a,$i) = if (($i >= $s))
178178 then $a
179179 else _join($a, $l[$i])
180180
181181 func $f0_2 ($a,$i) = if (($i >= $s))
182182 then $a
183183 else throw("List size exceeds 20")
184184
185185 $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)
186186 }
187187 let newListStrU = dropRight(newListStr, 1)
188188 let newListStrR = if ((take(newListStrU, 1) == ","))
189189 then drop(newListStrU, 1)
190190 else newListStrU
191191 newListStrR
192192 }
193193
194194
195195 func strToList (_str) = split(_str, ",")
196196
197197
198198 func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize))
199199 then (removeByIndex(_list, 0) :+ _value)
200200 else (_list :+ _value)
201201
202202
203203 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
204204
205205
206206 func cbalance () = int(k_balance)
207207
208208
209209 func fee () = int(k_fee)
210210
211211
212212 func initMarginRatio () = int(k_initMarginRatio)
213213
214214
215215 func qtAstR () = int(k_quoteAssetReserve)
216216
217217
218218 func bsAstR () = int(k_baseAssetReserve)
219219
220220
221221 func totalPositionSize () = int(k_totalPositionSize)
222222
223223
224224 func cumulativeNotional () = int(k_cumulativeNotional)
225225
226226
227227 func openInterestNotional () = int(k_openInterestNotional)
228228
229229
230230 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
231231
232232
233233 func fundingPeriodRaw () = int(k_fundingPeriod)
234234
235235
236236 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
237237
238238
239239 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
240240
241241
242242 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
243243
244244
245245 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
246246
247247
248248 func partialLiquidationRatio () = int(k_partialLiquidationRatio)
249249
250250
251251 func spreadLimit () = int(k_spreadLimit)
252252
253253
254254 func maxPriceImpact () = int(k_maxPriceImpact)
255255
256256
257257 func maxPriceSpread () = int(k_maxPriceSpread)
258258
259259
260260 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
261261
262262
263263 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
264264
265265
266266 func totalShortPositionSize () = int(k_totalShortPositionSize)
267267
268268
269269 func totalLongPositionSize () = int(k_totalLongPositionSize)
270270
271271
272272 func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller))
273273
274274
275275 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
276276 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
277277 if (if (_largerThanOrEqualTo)
278278 then (0 > remainingMarginRatio)
279279 else false)
280280 then throw("Invalid margin")
281281 else if (if (!(_largerThanOrEqualTo))
282282 then (remainingMarginRatio >= 0)
283283 else false)
284284 then throw("Invalid margin")
285285 else true
286286 }
287287
288288
289289 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
290290 then throw("Should not be called with _positionSize == 0")
291291 else if ((_positionSize > 0))
292292 then latestLongCumulativePremiumFraction()
293293 else latestShortCumulativePremiumFraction()
294294
295295
296296 func getPosition (_trader) = {
297297 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
298298 match positionSizeOpt {
299299 case positionSize: Int =>
300300 $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)))
301301 case _ =>
302302 $Tuple4(0, 0, 0, 0)
303303 }
304304 }
305305
306306
307307 func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0))
308308 then throw("No open position")
309309 else true
310310
311311
312312 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
313313
314314
315315 func paused () = valueOrElse(getBoolean(this, k_paused), false)
316316
317317
318318 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
319319 then {
320320 let newBase = (bsAstR() - _baseAssetAmount)
321321 if ((0 >= newBase))
322322 then throw("Tx lead to base asset reserve <= 0, revert")
323323 else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount))
324324 }
325325 else {
326326 let newQuote = (qtAstR() - _quoteAssetAmount)
327327 if ((0 >= newQuote))
328328 then throw("Tx lead to base quote reserve <= 0, revert")
329329 else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount))
330330 }
331331
332332
333333 func swapInput (_isAdd,_quoteAssetAmount) = {
334334 let _qtAstR = qtAstR()
335335 let _bsAstR = bsAstR()
336336 let k = muld(_qtAstR, _bsAstR)
337337 let quoteAssetReserveAfter = if (_isAdd)
338338 then (_qtAstR + _quoteAssetAmount)
339339 else (_qtAstR - _quoteAssetAmount)
340340 let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter)
341341 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
342342 let amountBaseAssetBought = if (_isAdd)
343343 then amountBaseAssetBoughtAbs
344344 else -(amountBaseAssetBoughtAbs)
345345 let $t01281613009 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs)
346346 let quoteAssetReserveAfter1 = $t01281613009._1
347347 let baseAssetReserveAfter1 = $t01281613009._2
348348 let totalPositionSizeAfter1 = $t01281613009._3
349349 let cumulativeNotionalAfter1 = $t01281613009._4
350350 let priceBefore = divd(_qtAstR, _bsAstR)
351351 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
352352 let priceDiff = abs((priceBefore - marketPrice))
353353 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
354354 let maxPriceImpactValue = maxPriceImpact()
355355 if ((priceImpact > maxPriceImpactValue))
356356 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)))
357357 else $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
358358 }
359359
360360
361361 func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = {
362362 let fundingPayment = if ((_oldPositionSize != 0))
363363 then {
364364 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
365365 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
366366 }
367367 else 0
368368 let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
369369 let $t01450014627 = if ((0 > signedMargin))
370370 then $Tuple2(0, abs(signedMargin))
371371 else $Tuple2(abs(signedMargin), 0)
372372 let remainMargin = $t01450014627._1
373373 let badDebt = $t01450014627._2
374374 $Tuple3(remainMargin, badDebt, fundingPayment)
375375 }
376376
377377
378378 func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_baseAssetReserve) = {
379379 let priceBefore = divd(_quoteAssetReserve, _baseAssetReserve)
380380 if ((_baseAssetAmount == 0))
381381 then throw("Invalid base asset amount")
382382 else {
383383 let k = muld(_quoteAssetReserve, _baseAssetReserve)
384384 let baseAssetPoolAmountAfter = if (_isAdd)
385385 then (_baseAssetReserve + _baseAssetAmount)
386386 else (_baseAssetReserve - _baseAssetAmount)
387387 let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter)
388388 let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve))
389389 let maxPriceImpactValue = maxPriceImpact()
390390 let $t01560415797 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount)
391391 let quoteAssetReserveAfter1 = $t01560415797._1
392392 let baseAssetReserveAfter1 = $t01560415797._2
393393 let totalPositionSizeAfter1 = $t01560415797._3
394394 let cumulativeNotionalAfter1 = $t01560415797._4
395395 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
396396 let priceDiff = abs((priceBefore - marketPrice))
397397 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
398398 if (if ((priceImpact > maxPriceImpactValue))
399399 then _checkMaxPriceImpact
400400 else false)
401401 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)))
402402 else $Tuple8(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd)
403403 then abs(_baseAssetAmount)
404404 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
405405 then abs(_baseAssetAmount)
406406 else 0)), priceImpact)
407407 }
408408 }
409409
410410
411411 func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), bsAstR())
412412
413413
414414 func getOracleTwapPrice () = {
415415 let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "")
416416 let priceKey = getStringValue(this, k_ora_key)
417417 let blockKey = getStringValue(this, k_ora_block_key)
418418 let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey))
419419 lastValue
420420 }
421421
422422
423423 func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = {
424424 let oraclePrice = getOracleTwapPrice()
425425 let priceAfter = divd(_quoteAssetReserve, _baseAssetReserve)
426426 let averagePrice = divd((oraclePrice + priceAfter), (2 * DECIMAL_UNIT))
427427 let absPriceDiff = divd(abs((oraclePrice - priceAfter)), averagePrice)
428428 if ((absPriceDiff > maxPriceSpread()))
429429 then throw(((("Price spread " + toString(absPriceDiff)) + " > max price spread ") + toString(maxPriceSpread())))
430430 else true
431431 }
432432
433433
434434 func getSpotPrice () = {
435435 let _quoteAssetReserve = qtAstR()
436436 let _baseAssetReserve = bsAstR()
437437 divd(_quoteAssetReserve, _baseAssetReserve)
438438 }
439439
440440
441441 func isOverFluctuationLimit () = {
442442 let oraclePrice = getOracleTwapPrice()
443443 let currentPrice = getSpotPrice()
444444 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
445445 }
446446
447447
448448 func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_baseAssetReserve) = {
449449 let positionSizeAbs = abs(_positionSize)
450450 let isShort = (0 > _positionSize)
451451 let positionNotional = if ((_option == PNL_OPTION_SPOT))
452452 then {
453453 let $t01901519186 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _baseAssetReserve)
454454 let outPositionNotional = $t01901519186._1
455455 let x1 = $t01901519186._2
456456 let x2 = $t01901519186._3
457457 let x3 = $t01901519186._4
458458 outPositionNotional
459459 }
460460 else muld(positionSizeAbs, getOracleTwapPrice())
461461 positionNotional
462462 }
463463
464464
465465 func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_baseAssetReserve,_option) = if ((_positionSize == 0))
466466 then throw("Invalid position size")
467467 else {
468468 let isShort = (0 > _positionSize)
469469 let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _baseAssetReserve)
470470 let unrealizedPnl = if (isShort)
471471 then (_positionOpenNotional - positionNotional)
472472 else (positionNotional - _positionOpenNotional)
473473 $Tuple2(positionNotional, unrealizedPnl)
474474 }
475475
476476
477477 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
478478 let $t02050320631 = getPosition(_trader)
479479 let positionSize = $t02050320631._1
480480 let positionMargin = $t02050320631._2
481481 let positionOpenNotional = $t02050320631._3
482482 let positionLstUpdCPF = $t02050320631._4
483483 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), bsAstR(), _option)
484484 }
485485
486486
487487 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
488488
489489
490490 func getMarginRatioByOption (_trader,_option) = {
491491 let $t02111221223 = getPosition(_trader)
492492 let positionSize = $t02111221223._1
493493 let positionMargin = $t02111221223._2
494494 let pon = $t02111221223._3
495495 let positionLstUpdCPF = $t02111221223._4
496496 let $t02122921322 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
497497 let positionNotional = $t02122921322._1
498498 let unrealizedPnl = $t02122921322._2
499499 let $t02132721493 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
500500 let remainMargin = $t02132721493._1
501501 let badDebt = $t02132721493._2
502502 calcMarginRatio(remainMargin, badDebt, positionNotional)
503503 }
504504
505505
506506 func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
507507
508508
509509 func getPartialLiquidationAmount (_trader,_positionSize) = {
510510 let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader), maintenanceMarginRatio())))
511511 let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio)
512512 let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false)
513513 let maxExchangedQuoteAssetAmount = swapResult._1
514514 let priceImpact = swapResult._8
515515 if ((maxPriceImpact() > priceImpact))
516516 then maxExchangedQuoteAssetAmount
517517 else {
518518 let exchangedPositionSize = muld(abs(_positionSize), partialLiquidationRatio())
519519 let exchangedQuoteAssetAmount = swapOutput((_positionSize > 0), exchangedPositionSize, false)._1
520520 exchangedQuoteAssetAmount
521521 }
522522 }
523523
524524
525525 func internalClosePosition (_trader,_checkMaxPriceImpact) = {
526526 let $t02272622854 = getPosition(_trader)
527527 let positionSize = $t02272622854._1
528528 let positionMargin = $t02272622854._2
529529 let positionOpenNotional = $t02272622854._3
530530 let positionLstUpdCPF = $t02272622854._4
531531 let unrealizedPnl = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)._2
532532 let $t02294923117 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
533533 let remainMargin = $t02294923117._1
534534 let badDebt = $t02294923117._2
535535 let exchangedPositionSize = -(positionSize)
536536 let realizedPnl = unrealizedPnl
537537 let marginToVault = -(remainMargin)
538538 let $t02324423555 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact)
539539 let exchangedQuoteAssetAmount = $t02324423555._1
540540 let quoteAssetReserveAfter = $t02324423555._2
541541 let baseAssetReserveAfter = $t02324423555._3
542542 let totalPositionSizeAfter = $t02324423555._4
543543 let cumulativeNotionalAfter = $t02324423555._5
544544 let totalLongAfter = $t02324423555._6
545545 let totalShortAfter = $t02324423555._7
546546 let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional)
547547 $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter)
548548 }
549549
550550
551551 func getTwapSpotPrice () = {
552552 let minuteId = ((lastBlock.timestamp / 1000) / 60)
553553 let startMinuteId = (minuteId - TWAP_INTERVAL)
554554 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
555555 let list = split(listStr, ",")
556556 func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next)))
557557 then (accumulator :+ parseIntValue(next))
558558 else accumulator
559559
560560 let listF = {
561561 let $l = list
562562 let $s = size($l)
563563 let $acc0 = nil
564564 func $f0_1 ($a,$i) = if (($i >= $s))
565565 then $a
566566 else filterFn($a, $l[$i])
567567
568568 func $f0_2 ($a,$i) = if (($i >= $s))
569569 then $a
570570 else throw("List size exceeds 20")
571571
572572 $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)
573573 }
574574 let maxIndex = if ((size(listF) > 0))
575575 then max(listF)
576576 else parseIntValue(list[0])
577577 let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
578578 let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0)
579579 let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0)
580580 let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice))
581581 let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0)
582582 let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0)
583583 let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice))
584584 ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL)
585585 }
586586
587587
588588 func getPegAdjustCost (_price) = {
589589 let _positionSize = totalPositionSize()
590590 let direction = (_positionSize > 0)
591591 let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1
592592 let baseAssetReserve = bsAstR()
593593 let newQuoteAssetReserve = muld(baseAssetReserve, _price)
594594 let cost = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, newQuoteAssetReserve, baseAssetReserve, PNL_OPTION_SPOT)._2
595595 $Tuple2(newQuoteAssetReserve, cost)
596596 }
597597
598598
599+func getFunding () = {
600+ let underlyingPrice = getOracleTwapPrice()
601+ let spotTwapPrice = getTwapSpotPrice()
602+ let premium = (spotTwapPrice - underlyingPrice)
603+ if (if ((totalShortPositionSize() == 0))
604+ then true
605+ else (totalLongPositionSize() == 0))
606+ then $Tuple2(0, 0)
607+ else if ((0 > premium))
608+ then {
609+ let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
610+ let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
611+ $Tuple2(shortPremiumFraction, longPremiumFraction)
612+ }
613+ else {
614+ let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
615+ let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
616+ $Tuple2(shortPremiumFraction, longPremiumFraction)
617+ }
618+ }
619+
620+
599621 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = [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), IntegerEntry(k_partialLiquidationRatio, _partialLiquidationRatio), IntegerEntry(k_maxPriceSpread, _maxPriceSpread)]
600622
601623
602624 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)]
603625
604626
605627 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)]
606628
607629
608630 func appendTwap (price) = {
609631 let minuteId = ((lastBlock.timestamp / 1000) / 60)
610632 let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
611633 if ((previousMinuteId > minuteId))
612634 then throw("TWAP out-of-order")
613635 else {
614636 let lastMinuteId = if ((previousMinuteId == 0))
615637 then minuteId
616638 else previousMinuteId
617639 if ((minuteId > previousMinuteId))
618640 then {
619641 let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0)
620642 let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price)
621643 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice))
622644 let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId))
623645 [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))]
624646 }
625647 else {
626648 let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0)
627649 let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0)
628650 let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), price)
629651 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice))
630652 [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price)]
631653 }
632654 }
633655 }
634656
635657
636658 func updateAmmReserves (_qtAstR,_bsAstR) = [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)]
637659
638660
639661 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
640662 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
641663 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)))
642664
643665
644666 func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address)), IntegerEntry(toCompositeKey(k_positionClosedDate, _address), lastBlock.timestamp)]
645667
646668
647669 func withdraw (_address,_amount) = {
648670 let balance = assetBalance(this, quoteAsset())
649671 if ((_amount > balance))
650672 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
651673 else [ScriptTransfer(_address, _amount, quoteAsset())]
652674 }
653675
654676
655677 func updateBalance (i) = if ((0 > i))
656678 then throw("Balance")
657679 else [IntegerEntry(k_balance, i)]
658680
659681
660682 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
661683
662684
663685 @Callable(i)
664686 func pause () = if ((i.caller != adminAddress()))
665687 then throw("Invalid togglePause params")
666688 else [BooleanEntry(k_paused, true)]
667689
668690
669691
670692 @Callable(i)
671693 func unpause () = if ((i.caller != adminAddress()))
672694 then throw("Invalid togglePause params")
673695 else [BooleanEntry(k_paused, false)]
674696
675697
676698
677699 @Callable(i)
678700 func addLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
679701 then true
680702 else (0 >= _quoteAssetAmount))
681703 then throw("Invalid addLiquidity params")
682704 else {
683705 let _qtAstR = qtAstR()
684706 let _bsAstR = bsAstR()
685707 let price = divd(_qtAstR, _bsAstR)
686708 let baseAssetAmountToAdd = divd(_quoteAssetAmount, price)
687709 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
688710 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
689711 updateAmmReserves(qtAstRAfter, bsAstRAfter)
690712 }
691713
692714
693715
694716 @Callable(i)
695717 func removeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
696718 then true
697719 else (0 >= _quoteAssetAmount))
698720 then throw("Invalid removeLiquidity params")
699721 else {
700722 let _qtAstR = qtAstR()
701723 let _bsAstR = bsAstR()
702724 let price = divd(_qtAstR, _bsAstR)
703725 let baseAssetAmountToRemove = divd(_quoteAssetAmount, price)
704726 let qtAstRAfter = (_qtAstR - _quoteAssetAmount)
705727 let bsAstRAfter = (_bsAstR - baseAssetAmountToRemove)
706728 updateAmmReserves(qtAstRAfter, bsAstRAfter)
707729 }
708730
709731
710732
711733 @Callable(i)
712734 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = if ((i.caller != adminAddress()))
713735 then throw("Invalid changeSettings params")
714736 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread)
715737
716738
717739
718740 @Callable(i)
719741 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
720742 then true
721743 else (0 >= _bsAstR))
722744 then true
723745 else (0 >= _fundingPeriod))
724746 then true
725747 else (0 >= _initMarginRatio))
726748 then true
727749 else (0 >= _mmr))
728750 then true
729751 else (0 >= _liquidationFeeRatio))
730752 then true
731753 else (0 >= _fee))
732754 then true
733755 else (0 >= _spreadLimit))
734756 then true
735757 else (0 >= _maxPriceImpact))
736758 then true
737759 else (0 >= _partialLiquidationRatio))
738760 then true
739761 else (0 >= _maxPriceSpread))
740762 then true
741763 else initialized())
742764 then throw("Invalid initialize parameters")
743765 else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread)) ++ 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)])
744766
745767
746768
747769 @Callable(i)
748770 func setInitMarginRatio (_initMarginRatio) = if (if ((0 >= _initMarginRatio))
749771 then true
750772 else !(initialized()))
751773 then throw("Invalid setInitMarginRatio parameters")
752774 else updateSettings(_initMarginRatio, maintenanceMarginRatio(), liquidationFeeRatio(), fundingPeriodRaw(), fee(), spreadLimit(), maxPriceImpact(), partialLiquidationRatio(), maxPriceSpread())
753775
754776
755777
756778 @Callable(i)
757779 func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if ((0 >= _amount))
758780 then true
759781 else !(initialized()))
760782 then true
761783 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
762784 then true
763785 else !(requireOpenPosition(toString(i.caller))))
764786 then true
765787 else paused())
766788 then throw("Invalid decreasePosition parameters")
767789 else {
768- let $t03607336225 = getPosition(toString(i.caller))
769- let oldPositionSize = $t03607336225._1
770- let oldPositionMargin = $t03607336225._2
771- let oldPositionOpenNotional = $t03607336225._3
772- let oldPositionLstUpdCPF = $t03607336225._4
790+ let $t03733137483 = getPosition(toString(i.caller))
791+ let oldPositionSize = $t03733137483._1
792+ let oldPositionMargin = $t03733137483._2
793+ let oldPositionOpenNotional = $t03733137483._3
794+ let oldPositionLstUpdCPF = $t03733137483._4
773795 let _direction = if ((oldPositionSize > 0))
774796 then DIR_SHORT
775797 else DIR_LONG
776798 let isAdd = (_direction == DIR_LONG)
777799 let openNotional = muld(_amount, _leverage)
778- let $t03639836514 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
779- let oldPositionNotional = $t03639836514._1
780- let unrealizedPnl = $t03639836514._2
781- let $t03652039069 = if ((oldPositionNotional > openNotional))
800+ let $t03765637772 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
801+ let oldPositionNotional = $t03765637772._1
802+ let unrealizedPnl = $t03765637772._2
803+ let $t03777840327 = if ((oldPositionNotional > openNotional))
782804 then {
783- let $t03689737116 = swapInput(isAdd, openNotional)
784- let exchangedPositionSize = $t03689737116._1
785- let quoteAssetReserveAfter = $t03689737116._2
786- let baseAssetReserveAfter = $t03689737116._3
787- let totalPositionSizeAfter = $t03689737116._4
788- let cumulativeNotionalAfter = $t03689737116._5
805+ let $t03815538374 = swapInput(isAdd, openNotional)
806+ let exchangedPositionSize = $t03815538374._1
807+ let quoteAssetReserveAfter = $t03815538374._2
808+ let baseAssetReserveAfter = $t03815538374._3
809+ let totalPositionSizeAfter = $t03815538374._4
810+ let cumulativeNotionalAfter = $t03815538374._5
789811 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
790812 if (if ((_minBaseAssetAmount != 0))
791813 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
792814 else false)
793815 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
794816 else {
795817 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
796- let $t03755337798 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
797- let remainMargin = $t03755337798._1
798- let badDebt = $t03755337798._2
799- let fundingPayment = $t03755337798._3
818+ let $t03881139056 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
819+ let remainMargin = $t03881139056._1
820+ let badDebt = $t03881139056._2
821+ let fundingPayment = $t03881139056._3
800822 let exchangedQuoteAssetAmount = openNotional
801823 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
802824 let remainOpenNotional = if ((oldPositionSize > 0))
803825 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
804826 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
805827 let newPositionSize = (oldPositionSize + exchangedPositionSize)
806828 $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0))
807829 then abs(exchangedPositionSize)
808830 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
809831 then abs(exchangedPositionSize)
810832 else 0)))
811833 }
812834 }
813835 else throw("Close position first")
814- let newPositionSize = $t03652039069._1
815- let newPositionRemainMargin = $t03652039069._2
816- let newPositionOpenNotional = $t03652039069._3
817- let newPositionLatestCPF = $t03652039069._4
818- let baseAssetReserveAfter = $t03652039069._5
819- let quoteAssetReserveAfter = $t03652039069._6
820- let totalPositionSizeAfter = $t03652039069._7
821- let cumulativeNotionalAfter = $t03652039069._8
822- let openInterestNotionalAfter = $t03652039069._9
823- let totalLongAfter = $t03652039069._10
824- let totalShortAfter = $t03652039069._11
836+ let newPositionSize = $t03777840327._1
837+ let newPositionRemainMargin = $t03777840327._2
838+ let newPositionOpenNotional = $t03777840327._3
839+ let newPositionLatestCPF = $t03777840327._4
840+ let baseAssetReserveAfter = $t03777840327._5
841+ let quoteAssetReserveAfter = $t03777840327._6
842+ let totalPositionSizeAfter = $t03777840327._7
843+ let cumulativeNotionalAfter = $t03777840327._8
844+ let openInterestNotionalAfter = $t03777840327._9
845+ let totalLongAfter = $t03777840327._10
846+ let totalShortAfter = $t03777840327._11
825847 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
826848 if ((notifyNotional == notifyNotional))
827849 then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
828850 else throw("Strict value is not equal to itself.")
829851 }
830852
831853
832854
833855 @Callable(i)
834856 func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink) = {
835857 let _rawAmount = i.payments[0].amount
836858 if (if (if (if (if (if (if ((_direction != DIR_LONG))
837859 then (_direction != DIR_SHORT)
838860 else false)
839861 then true
840862 else (0 >= _rawAmount))
841863 then true
842864 else !(initialized()))
843865 then true
844866 else (i.payments[0].assetId != quoteAsset()))
845867 then true
846868 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
847869 then true
848870 else paused())
849871 then throw("Invalid increasePosition parameters")
850872 else {
851873 let _trader = toString(i.caller)
852874 let rawFeeAmount = muld(_rawAmount, fee())
853875 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), rawFeeAmount)])
854876 if ((referrerFeeAny == referrerFeeAny))
855877 then {
856878 let referrerFee = match referrerFeeAny {
857879 case x: Int =>
858880 x
859881 case _ =>
860882 throw("Invalid referrerFee")
861883 }
862884 let _amount = (_rawAmount - rawFeeAmount)
863885 let feeAmount = (rawFeeAmount - referrerFee)
864- let $t04059840738 = getPosition(_trader)
865- let oldPositionSize = $t04059840738._1
866- let oldPositionMargin = $t04059840738._2
867- let oldPositionOpenNotional = $t04059840738._3
868- let oldPositionLstUpdCPF = $t04059840738._4
886+ let $t04185641996 = getPosition(_trader)
887+ let oldPositionSize = $t04185641996._1
888+ let oldPositionMargin = $t04185641996._2
889+ let oldPositionOpenNotional = $t04185641996._3
890+ let oldPositionLstUpdCPF = $t04185641996._4
869891 let isNewPosition = (oldPositionSize == 0)
870892 let isSameDirection = if ((oldPositionSize > 0))
871893 then (_direction == DIR_LONG)
872894 else (_direction == DIR_SHORT)
873895 let expandExisting = if (!(isNewPosition))
874896 then isSameDirection
875897 else false
876898 let isAdd = (_direction == DIR_LONG)
877- let $t04102743595 = if (if (isNewPosition)
899+ let $t04228544853 = if (if (isNewPosition)
878900 then true
879901 else expandExisting)
880902 then {
881903 let openNotional = muld(_amount, _leverage)
882- let $t04145141657 = swapInput(isAdd, openNotional)
883- let amountBaseAssetBought = $t04145141657._1
884- let quoteAssetReserveAfter = $t04145141657._2
885- let baseAssetReserveAfter = $t04145141657._3
886- let totalPositionSizeAfter = $t04145141657._4
887- let cumulativeNotionalAfter = $t04145141657._5
904+ let $t04270942915 = swapInput(isAdd, openNotional)
905+ let amountBaseAssetBought = $t04270942915._1
906+ let quoteAssetReserveAfter = $t04270942915._2
907+ let baseAssetReserveAfter = $t04270942915._3
908+ let totalPositionSizeAfter = $t04270942915._4
909+ let cumulativeNotionalAfter = $t04270942915._5
888910 if (if ((_minBaseAssetAmount != 0))
889911 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
890912 else false)
891913 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
892914 else {
893915 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
894916 let increaseMarginRequirement = divd(openNotional, _leverage)
895- let $t04203842277 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
896- let remainMargin = $t04203842277._1
897- let x1 = $t04203842277._2
898- let x2 = $t04203842277._3
917+ let $t04329643535 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
918+ let remainMargin = $t04329643535._1
919+ let x1 = $t04329643535._2
920+ let x2 = $t04329643535._3
899921 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
900922 then throw("Over max spread limit")
901923 else $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
902924 then abs(amountBaseAssetBought)
903925 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
904926 then abs(amountBaseAssetBought)
905927 else 0)))
906928 }
907929 }
908930 else {
909931 let openNotional = muld(_amount, _leverage)
910- let $t04328843404 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
911- let oldPositionNotional = $t04328843404._1
912- let unrealizedPnl = $t04328843404._2
932+ let $t04454644662 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
933+ let oldPositionNotional = $t04454644662._1
934+ let unrealizedPnl = $t04454644662._2
913935 if ((oldPositionNotional > openNotional))
914936 then throw("Use decreasePosition to decrease position size")
915937 else throw("Close position first")
916938 }
917- let newPositionSize = $t04102743595._1
918- let newPositionRemainMargin = $t04102743595._2
919- let newPositionOpenNotional = $t04102743595._3
920- let newPositionLatestCPF = $t04102743595._4
921- let baseAssetReserveAfter = $t04102743595._5
922- let quoteAssetReserveAfter = $t04102743595._6
923- let totalPositionSizeAfter = $t04102743595._7
924- let cumulativeNotionalAfter = $t04102743595._8
925- let openInterestNotionalAfter = $t04102743595._9
926- let totalLongAfter = $t04102743595._10
927- let totalShortAfter = $t04102743595._11
939+ let newPositionSize = $t04228544853._1
940+ let newPositionRemainMargin = $t04228544853._2
941+ let newPositionOpenNotional = $t04228544853._3
942+ let newPositionLatestCPF = $t04228544853._4
943+ let baseAssetReserveAfter = $t04228544853._5
944+ let quoteAssetReserveAfter = $t04228544853._6
945+ let totalPositionSizeAfter = $t04228544853._7
946+ let cumulativeNotionalAfter = $t04228544853._8
947+ let openInterestNotionalAfter = $t04228544853._9
948+ let totalLongAfter = $t04228544853._10
949+ let totalShortAfter = $t04228544853._11
928950 let feeToStakers = (feeAmount / 2)
929951 let feeToInsurance = (feeAmount - feeToStakers)
930952 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
931953 if ((stake == stake))
932954 then {
933955 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
934956 if ((depositInsurance == depositInsurance))
935957 then {
936958 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
937959 if ((notifyFee == notifyFee))
938960 then {
939961 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
940962 if ((notifyNotional == notifyNotional))
941963 then (((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
942964 else throw("Strict value is not equal to itself.")
943965 }
944966 else throw("Strict value is not equal to itself.")
945967 }
946968 else throw("Strict value is not equal to itself.")
947969 }
948970 else throw("Strict value is not equal to itself.")
949971 }
950972 else throw("Strict value is not equal to itself.")
951973 }
952974 }
953975
954976
955977
956978 @Callable(i)
957979 func addMargin () = {
958980 let _rawAmount = i.payments[0].amount
959981 if (if (if (if ((i.payments[0].assetId != quoteAsset()))
960982 then true
961983 else !(requireOpenPosition(toString(i.caller))))
962984 then true
963985 else !(initialized()))
964986 then true
965987 else paused())
966988 then throw("Invalid addMargin parameters")
967989 else {
968990 let _trader = toString(i.caller)
969991 let rawFeeAmount = muld(_rawAmount, fee())
970992 let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), rawFeeAmount)])
971993 if ((referrerFeeAny == referrerFeeAny))
972994 then {
973995 let referrerFee = match referrerFeeAny {
974996 case x: Int =>
975997 x
976998 case _ =>
977999 throw("Invalid referrerFee")
9781000 }
9791001 let feeAmount = (rawFeeAmount - referrerFee)
9801002 let _amount = (_rawAmount - rawFeeAmount)
981- let $t04548845628 = getPosition(_trader)
982- let oldPositionSize = $t04548845628._1
983- let oldPositionMargin = $t04548845628._2
984- let oldPositionOpenNotional = $t04548845628._3
985- let oldPositionLstUpdCPF = $t04548845628._4
1003+ let $t04674646886 = getPosition(_trader)
1004+ let oldPositionSize = $t04674646886._1
1005+ let oldPositionMargin = $t04674646886._2
1006+ let oldPositionOpenNotional = $t04674646886._3
1007+ let oldPositionLstUpdCPF = $t04674646886._4
9861008 let feeToStakers = (feeAmount / 2)
9871009 let feeToInsurance = (feeAmount - feeToStakers)
9881010 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
9891011 if ((stake == stake))
9901012 then {
9911013 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
9921014 if ((depositInsurance == depositInsurance))
9931015 then {
9941016 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
9951017 if ((notifyFee == notifyFee))
9961018 then ((updatePosition(_trader, oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
9971019 else throw("Strict value is not equal to itself.")
9981020 }
9991021 else throw("Strict value is not equal to itself.")
10001022 }
10011023 else throw("Strict value is not equal to itself.")
10021024 }
10031025 else throw("Strict value is not equal to itself.")
10041026 }
10051027 }
10061028
10071029
10081030
10091031 @Callable(i)
10101032 func removeMargin (_amount) = if (if (if (if ((0 >= _amount))
10111033 then true
10121034 else !(requireOpenPosition(toString(i.caller))))
10131035 then true
10141036 else !(initialized()))
10151037 then true
10161038 else paused())
10171039 then throw("Invalid removeMargin parameters")
10181040 else {
1019- let $t04665346805 = getPosition(toString(i.caller))
1020- let oldPositionSize = $t04665346805._1
1021- let oldPositionMargin = $t04665346805._2
1022- let oldPositionOpenNotional = $t04665346805._3
1023- let oldPositionLstUpdCPF = $t04665346805._4
1041+ let $t04791148063 = getPosition(toString(i.caller))
1042+ let oldPositionSize = $t04791148063._1
1043+ let oldPositionMargin = $t04791148063._2
1044+ let oldPositionOpenNotional = $t04791148063._3
1045+ let oldPositionLstUpdCPF = $t04791148063._4
10241046 let marginDelta = -(_amount)
1025- let $t04684247021 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1026- let remainMargin = $t04684247021._1
1027- let badDebt = $t04684247021._2
1047+ let $t04810048279 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1048+ let remainMargin = $t04810048279._1
1049+ let badDebt = $t04810048279._2
10281050 if ((badDebt != 0))
10291051 then throw("Invalid removed margin amount")
10301052 else {
10311053 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
10321054 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
10331055 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
10341056 else {
10351057 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
10361058 if ((unstake == unstake))
10371059 then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount)))
10381060 else throw("Strict value is not equal to itself.")
10391061 }
10401062 }
10411063 }
10421064
10431065
10441066
10451067 @Callable(i)
10461068 func closePosition () = {
10471069 let caller = getActualCaller(i)
10481070 let callerAddress = valueOrErrorMessage(addressFromString(caller), "Invalid caller")
10491071 if (if (if (!(requireOpenPosition(caller)))
10501072 then true
10511073 else !(initialized()))
10521074 then true
10531075 else paused())
10541076 then throw("Invalid closePosition parameters")
10551077 else {
1056- let $t04822448601 = internalClosePosition(caller, true)
1057- let x1 = $t04822448601._1
1058- let positionBadDebt = $t04822448601._2
1059- let realizedPnl = $t04822448601._3
1060- let marginToVault = $t04822448601._4
1061- let quoteAssetReserveAfter = $t04822448601._5
1062- let baseAssetReserveAfter = $t04822448601._6
1063- let totalPositionSizeAfter = $t04822448601._7
1064- let cumulativeNotionalAfter = $t04822448601._8
1065- let openInterestNotionalAfter = $t04822448601._9
1066- let x2 = $t04822448601._10
1067- let totalLongAfter = $t04822448601._11
1068- let totalShortAfter = $t04822448601._12
1078+ let $t04948249859 = internalClosePosition(caller, true)
1079+ let x1 = $t04948249859._1
1080+ let positionBadDebt = $t04948249859._2
1081+ let realizedPnl = $t04948249859._3
1082+ let marginToVault = $t04948249859._4
1083+ let quoteAssetReserveAfter = $t04948249859._5
1084+ let baseAssetReserveAfter = $t04948249859._6
1085+ let totalPositionSizeAfter = $t04948249859._7
1086+ let cumulativeNotionalAfter = $t04948249859._8
1087+ let openInterestNotionalAfter = $t04948249859._9
1088+ let x2 = $t04948249859._10
1089+ let totalLongAfter = $t04948249859._11
1090+ let totalShortAfter = $t04948249859._12
10691091 if ((positionBadDebt > 0))
10701092 then throw("Unable to close position with bad debt")
10711093 else {
10721094 let withdrawAmount = abs(marginToVault)
10731095 let ammBalance = (cbalance() - withdrawAmount)
1074- let $t04881048952 = if ((0 > ammBalance))
1096+ let $t05006850210 = if ((0 > ammBalance))
10751097 then $Tuple2(0, abs(ammBalance))
10761098 else $Tuple2(ammBalance, 0)
1077- let ammNewBalance = $t04881048952._1
1078- let getFromInsurance = $t04881048952._2
1099+ let ammNewBalance = $t05006850210._1
1100+ let getFromInsurance = $t05006850210._2
10791101 let x = if ((getFromInsurance > 0))
10801102 then {
10811103 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
10821104 if ((withdrawInsurance == withdrawInsurance))
10831105 then nil
10841106 else throw("Strict value is not equal to itself.")
10851107 }
10861108 else nil
10871109 if ((x == x))
10881110 then {
10891111 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil)
10901112 if ((unstake == unstake))
10911113 then {
10921114 let notifyNotional = invoke(minerAddress(), "notifyNotional", [caller, 0], nil)
10931115 if ((notifyNotional == notifyNotional))
10941116 then (((deletePosition(caller) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(callerAddress, withdrawAmount)) ++ updateBalance(ammNewBalance))
10951117 else throw("Strict value is not equal to itself.")
10961118 }
10971119 else throw("Strict value is not equal to itself.")
10981120 }
10991121 else throw("Strict value is not equal to itself.")
11001122 }
11011123 }
11021124 }
11031125
11041126
11051127
11061128 @Callable(i)
11071129 func liquidate (_trader) = {
11081130 let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
11091131 let marginRatio = if (isOverFluctuationLimit())
11101132 then {
11111133 let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE)
11121134 vmax(spotMarginRatio, oracleMarginRatio)
11131135 }
11141136 else spotMarginRatio
11151137 if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false)))
11161138 then true
11171139 else !(requireOpenPosition(_trader)))
11181140 then true
11191141 else !(initialized()))
11201142 then true
11211143 else paused())
11221144 then throw("Unable to liquidate")
11231145 else if (if (if ((spotMarginRatio > liquidationFeeRatio()))
11241146 then (partialLiquidationRatio() > 0)
11251147 else false)
11261148 then (DECIMAL_UNIT > partialLiquidationRatio())
11271149 else false)
11281150 then {
1129- let $t05103251182 = getPosition(_trader)
1130- let oldPositionSize = $t05103251182._1
1131- let oldPositionMargin = $t05103251182._2
1132- let oldPositionOpenNotional = $t05103251182._3
1133- let oldPositionLstUpdCPF = $t05103251182._4
1151+ let $t05229052440 = getPosition(_trader)
1152+ let oldPositionSize = $t05229052440._1
1153+ let oldPositionMargin = $t05229052440._2
1154+ let oldPositionOpenNotional = $t05229052440._3
1155+ let oldPositionLstUpdCPF = $t05229052440._4
11341156 let _direction = if ((oldPositionSize > 0))
11351157 then DIR_SHORT
11361158 else DIR_LONG
11371159 let isAdd = (_direction == DIR_LONG)
11381160 let exchangedQuoteAssetAmount = getPartialLiquidationAmount(_trader, oldPositionSize)
1139- let $t05140751511 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1140- let oldPositionNotional = $t05140751511._1
1141- let unrealizedPnl = $t05140751511._2
1142- let $t05151951809 = swapInput(isAdd, exchangedQuoteAssetAmount)
1143- let exchangedPositionSize = $t05151951809._1
1144- let quoteAssetReserveAfter = $t05151951809._2
1145- let baseAssetReserveAfter = $t05151951809._3
1146- let totalPositionSizeAfter = $t05151951809._4
1147- let cumulativeNotionalAfter = $t05151951809._5
1161+ let $t05266552769 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1162+ let oldPositionNotional = $t05266552769._1
1163+ let unrealizedPnl = $t05266552769._2
1164+ let $t05277753067 = swapInput(isAdd, exchangedQuoteAssetAmount)
1165+ let exchangedPositionSize = $t05277753067._1
1166+ let quoteAssetReserveAfter = $t05277753067._2
1167+ let baseAssetReserveAfter = $t05277753067._3
1168+ let totalPositionSizeAfter = $t05277753067._4
1169+ let cumulativeNotionalAfter = $t05277753067._5
11481170 let realizedPnl = divd(muld(unrealizedPnl, abs(exchangedPositionSize)), abs(oldPositionSize))
1149- let $t05191652149 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1150- let remainMargin = $t05191652149._1
1151- let badDebt = $t05191652149._2
1152- let fundingPayment = $t05191652149._3
1171+ let $t05317453407 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1172+ let remainMargin = $t05317453407._1
1173+ let badDebt = $t05317453407._2
1174+ let fundingPayment = $t05317453407._3
11531175 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
11541176 let remainOpenNotional = if ((oldPositionSize > 0))
11551177 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
11561178 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
11571179 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
11581180 let feeToLiquidator = (liquidationPenalty / 2)
11591181 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
11601182 let newPositionMargin = (remainMargin - liquidationPenalty)
11611183 let newPositionSize = (oldPositionSize + exchangedPositionSize)
11621184 let newPositionOpenNotional = abs(remainOpenNotional)
11631185 let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
11641186 let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount)
11651187 let ammBalance = (cbalance() - liquidationPenalty)
1166- let $t05332253465 = if ((0 > ammBalance))
1188+ let $t05458054723 = if ((0 > ammBalance))
11671189 then $Tuple2(0, abs(ammBalance))
11681190 else $Tuple2(ammBalance, 0)
1169- let newAmmBalance = $t05332253465._1
1170- let takeFromInsurance = $t05332253465._2
1191+ let newAmmBalance = $t05458054723._1
1192+ let takeFromInsurance = $t05458054723._2
11711193 let x = if ((takeFromInsurance > 0))
11721194 then {
11731195 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
11741196 if ((withdrawInsurance == withdrawInsurance))
11751197 then nil
11761198 else throw("Strict value is not equal to itself.")
11771199 }
11781200 else nil
11791201 if ((x == x))
11801202 then {
11811203 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(liquidationPenalty - takeFromInsurance), toBase58String(quoteAsset())], nil)
11821204 if ((unstake == unstake))
11831205 then {
11841206 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
11851207 if ((depositInsurance == depositInsurance))
11861208 then {
11871209 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
11881210 if ((notifyNotional == notifyNotional))
11891211 then (((updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, (totalLongPositionSize() - (if ((newPositionSize > 0))
11901212 then abs(exchangedPositionSize)
11911213 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
11921214 then abs(exchangedPositionSize)
11931215 else 0)))) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
11941216 else throw("Strict value is not equal to itself.")
11951217 }
11961218 else throw("Strict value is not equal to itself.")
11971219 }
11981220 else throw("Strict value is not equal to itself.")
11991221 }
12001222 else throw("Strict value is not equal to itself.")
12011223 }
12021224 else {
1203- let $t05492155376 = internalClosePosition(_trader, false)
1204- let x1 = $t05492155376._1
1205- let badDebt = $t05492155376._2
1206- let x2 = $t05492155376._3
1207- let x3 = $t05492155376._4
1208- let quoteAssetReserveAfter = $t05492155376._5
1209- let baseAssetReserveAfter = $t05492155376._6
1210- let totalPositionSizeAfter = $t05492155376._7
1211- let cumulativeNotionalAfter = $t05492155376._8
1212- let openInterestNotionalAfter = $t05492155376._9
1213- let exchangedQuoteAssetAmount = $t05492155376._10
1214- let totalLongAfter = $t05492155376._11
1215- let totalShortAfter = $t05492155376._12
1225+ let $t05617956634 = internalClosePosition(_trader, false)
1226+ let x1 = $t05617956634._1
1227+ let badDebt = $t05617956634._2
1228+ let x2 = $t05617956634._3
1229+ let x3 = $t05617956634._4
1230+ let quoteAssetReserveAfter = $t05617956634._5
1231+ let baseAssetReserveAfter = $t05617956634._6
1232+ let totalPositionSizeAfter = $t05617956634._7
1233+ let cumulativeNotionalAfter = $t05617956634._8
1234+ let openInterestNotionalAfter = $t05617956634._9
1235+ let exchangedQuoteAssetAmount = $t05617956634._10
1236+ let totalLongAfter = $t05617956634._11
1237+ let totalShortAfter = $t05617956634._12
12161238 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
12171239 let feeToLiquidator = (liquidationPenalty / 2)
12181240 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
12191241 let ammBalance = (cbalance() - liquidationPenalty)
1220- let $t05578855931 = if ((0 > ammBalance))
1242+ let $t05704657189 = if ((0 > ammBalance))
12211243 then $Tuple2(0, abs(ammBalance))
12221244 else $Tuple2(ammBalance, 0)
1223- let newAmmBalance = $t05578855931._1
1224- let takeFromInsurance = $t05578855931._2
1245+ let newAmmBalance = $t05704657189._1
1246+ let takeFromInsurance = $t05704657189._2
12251247 let x = if ((takeFromInsurance > 0))
12261248 then {
12271249 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
12281250 if ((withdrawInsurance == withdrawInsurance))
12291251 then nil
12301252 else throw("Strict value is not equal to itself.")
12311253 }
12321254 else nil
12331255 if ((x == x))
12341256 then {
12351257 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(liquidationPenalty - takeFromInsurance), toBase58String(quoteAsset())], nil)
12361258 if ((unstake == unstake))
12371259 then {
12381260 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
12391261 if ((depositInsurance == depositInsurance))
12401262 then {
12411263 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil)
12421264 if ((notifyNotional == notifyNotional))
12431265 then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
12441266 else throw("Strict value is not equal to itself.")
12451267 }
12461268 else throw("Strict value is not equal to itself.")
12471269 }
12481270 else throw("Strict value is not equal to itself.")
12491271 }
12501272 else throw("Strict value is not equal to itself.")
12511273 }
12521274 }
12531275
12541276
12551277
12561278 @Callable(i)
12571279 func payFunding () = {
12581280 let fundingBlockTimestamp = nextFundingBlockTimestamp()
12591281 if (if (if ((fundingBlockTimestamp > lastBlock.timestamp))
12601282 then true
12611283 else !(initialized()))
12621284 then true
12631285 else paused())
12641286 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
12651287 else {
12661288 let underlyingPrice = getOracleTwapPrice()
1267- let spotTwapPrice = getTwapSpotPrice()
1268- let premium = (spotTwapPrice - underlyingPrice)
1269- let $t05751958854 = if (if ((totalShortPositionSize() == 0))
1270- then true
1271- else (totalLongPositionSize() == 0))
1272- then $Tuple2(0, 0)
1273- else if ((0 > premium))
1274- then {
1275- let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
1276- let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
1277- $Tuple2(shortPremiumFraction, longPremiumFraction)
1278- }
1279- else {
1280- let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
1281- let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
1282- $Tuple2(shortPremiumFraction, longPremiumFraction)
1283- }
1284- let shortPremiumFraction = $t05751958854._1
1285- let longPremiumFraction = $t05751958854._2
1289+ let $t05868458746 = getFunding()
1290+ let shortPremiumFraction = $t05868458746._1
1291+ let longPremiumFraction = $t05868458746._2
12861292 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
12871293 }
12881294 }
12891295
12901296
12911297
12921298 @Callable(i)
12931299 func forceMoveAsset (_trader,_amount) = if (if ((addressFromPublicKey(adminPublicKey()) != i.caller))
12941300 then true
12951301 else (0 > _amount))
12961302 then throw("Invalid forceMoveAsset parameters")
12971303 else {
12981304 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
12991305 if ((unstake == unstake))
13001306 then (withdraw(addressFromStringValue(_trader), _amount) ++ updateBalance((cbalance() - _amount)))
13011307 else throw("Strict value is not equal to itself.")
13021308 }
13031309
13041310
13051311
13061312 @Callable(i)
13071313 func adjustPeg (_price) = if (if ((addressFromPublicKey(adminPublicKey()) != i.caller))
13081314 then true
13091315 else (0 > _price))
13101316 then throw("Invalid adjustPeg parameters")
13111317 else {
1312- let $t05985459940 = getPegAdjustCost(_price)
1313- let newQuoteAssetReserve = $t05985459940._1
1314- let pegChangeCost = $t05985459940._2
1318+ let $t05974659832 = getPegAdjustCost(_price)
1319+ let newQuoteAssetReserve = $t05974659832._1
1320+ let pegChangeCost = $t05974659832._2
13151321 if ((pegChangeCost == 0))
13161322 then throw("Nothing to adjust")
13171323 else if ((pegChangeCost > 0))
13181324 then {
13191325 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [pegChangeCost], nil)
13201326 if ((withdrawInsurance == withdrawInsurance))
13211327 then {
13221328 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), pegChangeCost)])
13231329 if ((stake == stake))
13241330 then (updateBalance((cbalance() + pegChangeCost)) ++ updateAmmReserves(newQuoteAssetReserve, bsAstR()))
13251331 else throw("Strict value is not equal to itself.")
13261332 }
13271333 else throw("Strict value is not equal to itself.")
13281334 }
13291335 else {
13301336 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [abs(pegChangeCost), toBase58String(quoteAsset())], nil)
13311337 if ((unstake == unstake))
13321338 then {
13331339 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), abs(pegChangeCost))])
13341340 if ((depositInsurance == depositInsurance))
13351341 then (updateBalance((cbalance() - abs(pegChangeCost))) ++ updateAmmReserves(newQuoteAssetReserve, bsAstR()))
13361342 else throw("Strict value is not equal to itself.")
13371343 }
13381344 else throw("Strict value is not equal to itself.")
13391345 }
13401346 }
13411347
13421348
13431349
13441350 @Callable(i)
13451351 func v_get (_trader) = {
1346- let $t06116561225 = internalClosePosition(_trader, false)
1347- let x1 = $t06116561225._1
1348- let x2 = $t06116561225._2
1349- let x3 = $t06116561225._3
1350- let x4 = $t06116561225._4
1352+ let $t06105761117 = internalClosePosition(_trader, false)
1353+ let x1 = $t06105761117._1
1354+ let x2 = $t06105761117._2
1355+ let x3 = $t06105761117._3
1356+ let x4 = $t06105761117._4
13511357 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
13521358 }
13531359
13541360
13551361
13561362 @Callable(i)
13571363 func view_calcRemainMarginWithFundingPayment (_trader) = {
1358- let $t06137261483 = getPosition(_trader)
1359- let positionSize = $t06137261483._1
1360- let positionMargin = $t06137261483._2
1361- let pon = $t06137261483._3
1362- let positionLstUpdCPF = $t06137261483._4
1363- let $t06148861589 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1364- let positionNotional = $t06148861589._1
1365- let unrealizedPnl = $t06148861589._2
1366- let $t06159461776 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1367- let remainMargin = $t06159461776._1
1368- let badDebt = $t06159461776._2
1369- let fundingPayment = $t06159461776._3
1364+ let $t06126461375 = getPosition(_trader)
1365+ let positionSize = $t06126461375._1
1366+ let positionMargin = $t06126461375._2
1367+ let pon = $t06126461375._3
1368+ let positionLstUpdCPF = $t06126461375._4
1369+ let $t06138061481 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1370+ let positionNotional = $t06138061481._1
1371+ let unrealizedPnl = $t06138061481._2
1372+ let $t06148661668 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1373+ let remainMargin = $t06148661668._1
1374+ let badDebt = $t06148661668._2
1375+ let fundingPayment = $t06148661668._3
13701376 throw((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)))
13711377 }
13721378
13731379
13741380
13751381 @Callable(i)
13761382 func view_getPegAdjustCost (_price) = {
13771383 let cost = getPegAdjustCost(_price)
13781384 throw(toString(cost._2))
13791385 }
13801386
13811387
1388+
1389+@Callable(i)
1390+func view_getFunding () = {
1391+ let underlyingPrice = getOracleTwapPrice()
1392+ let $t06205962121 = getFunding()
1393+ let shortPremiumFraction = $t06205962121._1
1394+ let longPremiumFraction = $t06205962121._2
1395+ let longFunding = divd(longPremiumFraction, underlyingPrice)
1396+ let shortFunding = divd(shortPremiumFraction, underlyingPrice)
1397+ throw((s(longFunding) + s(shortFunding)))
1398+ }
1399+
1400+
13821401 @Verifier(tx)
13831402 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
13841403

github/deemru/w8io/169f3d6 
241.56 ms