tx · 588WvquvH1LQ43szyAqYmVoD63zMPVSwWxdsLt8LSKQt

3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH:  -0.05100000 Waves

2022.07.06 10:17 [2127514] smart account 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH > SELF 0.00000000 Waves

{ "type": 13, "id": "588WvquvH1LQ43szyAqYmVoD63zMPVSwWxdsLt8LSKQt", "fee": 5100000, "feeAssetId": null, "timestamp": 1657091847224, "version": 2, "chainId": 84, "sender": "3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH", "senderPublicKey": "Hj6oyH6As5UWo8fZ1K4hPsEY7nxH3MvhBqDD6axiwjXs", "proofs": [ "SZ7n4EuaptXf4629Q7qN3LPqLarTVPYUJtWW6mfn4cbwxQTfpUGah5HVUg1SnX9grahHQYnraeRPvfzAzrxKmpP" ], "script": "base64:AAIFAAAAAAAAAEkIAhIAEgASCQoHAQEBAQEBARIOCgwBAQEBAQEBCAgIAQESBQoDAQEBEgUKAwEBARIAEgMKAQESABIDCgEIEgASAwoBCBIDCgEIAAAAdAAAAAAJa19vcmFfa2V5AgAAAAlrX29yYV9rZXkAAAAAD2tfb3JhX2Jsb2NrX2tleQIAAAAPa19vcmFfYmxvY2tfa2V5AAAAAAVrX29yYQIAAAAFa19vcmEAAAAACWtfYmFsYW5jZQIAAAAJa19iYWxhbmNlAAAAAA5rX3Bvc2l0aW9uU2l6ZQIAAAAOa19wb3NpdGlvblNpemUAAAAAEGtfcG9zaXRpb25NYXJnaW4CAAAAEGtfcG9zaXRpb25NYXJnaW4AAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwAAAAALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CAAAAEmtfcG9zaXRpb25GcmFjdGlvbgAAAAANa19pbml0aWFsaXplZAIAAAANa19pbml0aWFsaXplZAAAA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AAAAQkAASwAAAACCQABLAAAAAIJAQAAAAFzAAAAAQUAAAAMcmVtYWluTWFyZ2luCQEAAAABcwAAAAEFAAAADmZ1bmRpbmdQYXltZW50CQEAAAABcwAAAAEJAQAAAA5nZXRNYXJnaW5SYXRpbwAAAAEFAAAAB190cmFkZXIAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkBAAAADmFkbWluUHVibGljS2V5AAAAAKUffZY=", "height": 2127514, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 48ix1BtdDrrCKhQc2XfhKKxJpRfecRoSiGgXb6mUae6m Next: 5vzBY847AT3L9tLZRGrCBpfJhLLaZ1tfeCHTfGFT1JQG Diff:
OldNewDifferences
643643 let $t02843228548 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
644644 let oldPositionNotional = $t02843228548._1
645645 let unrealizedPnl = $t02843228548._2
646- let $t02855431098 = if ((oldPositionNotional > openNotional))
646+ let $t02855431103 = if ((oldPositionNotional > openNotional))
647647 then {
648648 let $t02893129150 = swapInput(isAdd, openNotional)
649649 let exchangedPositionSize = $t02893129150._1
657657 else false)
658658 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
659659 else {
660- let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize)
661- let $t02958229827 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
662- let remainMargin = $t02958229827._1
663- let badDebt = $t02958229827._2
664- let fundingPayment = $t02958229827._3
660+ let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
661+ let $t02958729832 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
662+ let remainMargin = $t02958729832._1
663+ let badDebt = $t02958729832._2
664+ let fundingPayment = $t02958729832._3
665665 let exchangedQuoteAssetAmount = openNotional
666666 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
667667 let remainOpenNotional = if ((oldPositionSize > 0))
676676 }
677677 }
678678 else throw("Close position first")
679- let newPositionSize = $t02855431098._1
680- let newPositionRemainMargin = $t02855431098._2
681- let newPositionOpenNotional = $t02855431098._3
682- let newPositionLatestCPF = $t02855431098._4
683- let baseAssetReserveAfter = $t02855431098._5
684- let quoteAssetReserveAfter = $t02855431098._6
685- let totalPositionSizeAfter = $t02855431098._7
686- let cumulativeNotionalAfter = $t02855431098._8
687- let openInterestNotionalAfter = $t02855431098._9
688- let totalLongAfter = $t02855431098._10
689- let totalShortAfter = $t02855431098._11
679+ let newPositionSize = $t02855431103._1
680+ let newPositionRemainMargin = $t02855431103._2
681+ let newPositionOpenNotional = $t02855431103._3
682+ let newPositionLatestCPF = $t02855431103._4
683+ let baseAssetReserveAfter = $t02855431103._5
684+ let quoteAssetReserveAfter = $t02855431103._6
685+ let totalPositionSizeAfter = $t02855431103._7
686+ let cumulativeNotionalAfter = $t02855431103._8
687+ let openInterestNotionalAfter = $t02855431103._9
688+ let totalLongAfter = $t02855431103._10
689+ let totalShortAfter = $t02855431103._11
690690 (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
691691 }
692692
716716 else {
717717 let feeAmount = muld(_rawAmount, fee())
718718 let _amount = (_rawAmount - feeAmount)
719- let $t03213432286 = getPosition(toString(i.caller))
720- let oldPositionSize = $t03213432286._1
721- let oldPositionMargin = $t03213432286._2
722- let oldPositionOpenNotional = $t03213432286._3
723- let oldPositionLstUpdCPF = $t03213432286._4
719+ let $t03213932291 = getPosition(toString(i.caller))
720+ let oldPositionSize = $t03213932291._1
721+ let oldPositionMargin = $t03213932291._2
722+ let oldPositionOpenNotional = $t03213932291._3
723+ let oldPositionLstUpdCPF = $t03213932291._4
724724 let isNewPosition = (oldPositionSize == 0)
725725 let isSameDirection = if ((oldPositionSize > 0))
726726 then (_direction == DIR_LONG)
729729 then isSameDirection
730730 else false
731731 let isAdd = (_direction == DIR_LONG)
732- let $t03257534964 = if (if (isNewPosition)
732+ let $t03258034969 = if (if (isNewPosition)
733733 then true
734734 else expandExisting)
735735 then {
736736 let openNotional = muld(_amount, _leverage)
737- let $t03299933205 = swapInput(isAdd, openNotional)
738- let amountBaseAssetBought = $t03299933205._1
739- let quoteAssetReserveAfter = $t03299933205._2
740- let baseAssetReserveAfter = $t03299933205._3
741- let totalPositionSizeAfter = $t03299933205._4
742- let cumulativeNotionalAfter = $t03299933205._5
737+ let $t03300433210 = swapInput(isAdd, openNotional)
738+ let amountBaseAssetBought = $t03300433210._1
739+ let quoteAssetReserveAfter = $t03300433210._2
740+ let baseAssetReserveAfter = $t03300433210._3
741+ let totalPositionSizeAfter = $t03300433210._4
742+ let cumulativeNotionalAfter = $t03300433210._5
743743 if (if ((_minBaseAssetAmount != 0))
744744 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
745745 else false)
747747 else {
748748 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
749749 let increaseMarginRequirement = divd(openNotional, _leverage)
750- let $t03358633825 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
751- let remainMargin = $t03358633825._1
752- let x1 = $t03358633825._2
753- let x2 = $t03358633825._3
750+ let $t03359133830 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
751+ let remainMargin = $t03359133830._1
752+ let x1 = $t03359133830._2
753+ let x2 = $t03359133830._3
754754 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
755755 then abs(amountBaseAssetBought)
756756 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
760760 }
761761 else {
762762 let openNotional = muld(_amount, _leverage)
763- let $t03465734773 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
764- let oldPositionNotional = $t03465734773._1
765- let unrealizedPnl = $t03465734773._2
763+ let $t03466234778 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
764+ let oldPositionNotional = $t03466234778._1
765+ let unrealizedPnl = $t03466234778._2
766766 if ((oldPositionNotional > openNotional))
767767 then throw("Use decreasePosition to decrease position size")
768768 else throw("Close position first")
769769 }
770- let newPositionSize = $t03257534964._1
771- let newPositionRemainMargin = $t03257534964._2
772- let newPositionOpenNotional = $t03257534964._3
773- let newPositionLatestCPF = $t03257534964._4
774- let baseAssetReserveAfter = $t03257534964._5
775- let quoteAssetReserveAfter = $t03257534964._6
776- let totalPositionSizeAfter = $t03257534964._7
777- let cumulativeNotionalAfter = $t03257534964._8
778- let openInterestNotionalAfter = $t03257534964._9
779- let totalLongAfter = $t03257534964._10
780- let totalShortAfter = $t03257534964._11
770+ let newPositionSize = $t03258034969._1
771+ let newPositionRemainMargin = $t03258034969._2
772+ let newPositionOpenNotional = $t03258034969._3
773+ let newPositionLatestCPF = $t03258034969._4
774+ let baseAssetReserveAfter = $t03258034969._5
775+ let quoteAssetReserveAfter = $t03258034969._6
776+ let totalPositionSizeAfter = $t03258034969._7
777+ let cumulativeNotionalAfter = $t03258034969._8
778+ let openInterestNotionalAfter = $t03258034969._9
779+ let totalLongAfter = $t03258034969._10
780+ let totalShortAfter = $t03258034969._11
781781 let feeToStakers = (feeAmount / 2)
782782 let feeToInsurance = (feeAmount - feeToStakers)
783783 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
808808 else {
809809 let feeAmount = muld(_rawAmount, fee())
810810 let _amount = (_rawAmount - feeAmount)
811- let $t03624036392 = getPosition(toString(i.caller))
812- let oldPositionSize = $t03624036392._1
813- let oldPositionMargin = $t03624036392._2
814- let oldPositionOpenNotional = $t03624036392._3
815- let oldPositionLstUpdCPF = $t03624036392._4
811+ let $t03624536397 = getPosition(toString(i.caller))
812+ let oldPositionSize = $t03624536397._1
813+ let oldPositionMargin = $t03624536397._2
814+ let oldPositionOpenNotional = $t03624536397._3
815+ let oldPositionLstUpdCPF = $t03624536397._4
816816 let feeToStakers = (feeAmount / 2)
817817 let feeToInsurance = (feeAmount - feeToStakers)
818818 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
839839 else paused())
840840 then throw("Invalid removeMargin parameters")
841841 else {
842- let $t03731237464 = getPosition(toString(i.caller))
843- let oldPositionSize = $t03731237464._1
844- let oldPositionMargin = $t03731237464._2
845- let oldPositionOpenNotional = $t03731237464._3
846- let oldPositionLstUpdCPF = $t03731237464._4
842+ let $t03731737469 = getPosition(toString(i.caller))
843+ let oldPositionSize = $t03731737469._1
844+ let oldPositionMargin = $t03731737469._2
845+ let oldPositionOpenNotional = $t03731737469._3
846+ let oldPositionLstUpdCPF = $t03731737469._4
847847 let marginDelta = -(_amount)
848- let $t03750137680 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
849- let remainMargin = $t03750137680._1
850- let badDebt = $t03750137680._2
848+ let $t03750637685 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
849+ let remainMargin = $t03750637685._1
850+ let badDebt = $t03750637685._2
851851 if ((badDebt != 0))
852852 then throw("Invalid added margin amount")
853853 else {
868868 else paused())
869869 then throw("Invalid closePosition parameters")
870870 else {
871- let $t03844038824 = internalClosePosition(toString(i.caller))
872- let x1 = $t03844038824._1
873- let positionBadDebt = $t03844038824._2
874- let realizedPnl = $t03844038824._3
875- let marginToVault = $t03844038824._4
876- let quoteAssetReserveAfter = $t03844038824._5
877- let baseAssetReserveAfter = $t03844038824._6
878- let totalPositionSizeAfter = $t03844038824._7
879- let cumulativeNotionalAfter = $t03844038824._8
880- let openInterestNotionalAfter = $t03844038824._9
881- let x2 = $t03844038824._10
882- let totalLongAfter = $t03844038824._11
883- let totalShortAfter = $t03844038824._12
871+ let $t03844538829 = internalClosePosition(toString(i.caller))
872+ let x1 = $t03844538829._1
873+ let positionBadDebt = $t03844538829._2
874+ let realizedPnl = $t03844538829._3
875+ let marginToVault = $t03844538829._4
876+ let quoteAssetReserveAfter = $t03844538829._5
877+ let baseAssetReserveAfter = $t03844538829._6
878+ let totalPositionSizeAfter = $t03844538829._7
879+ let cumulativeNotionalAfter = $t03844538829._8
880+ let openInterestNotionalAfter = $t03844538829._9
881+ let x2 = $t03844538829._10
882+ let totalLongAfter = $t03844538829._11
883+ let totalShortAfter = $t03844538829._12
884884 if ((positionBadDebt > 0))
885885 then throw("Unable to close position with bad debt")
886886 else {
887887 let withdrawAmount = abs(marginToVault)
888888 let ammBalance = (cbalance() - withdrawAmount)
889- let $t03903339175 = if ((0 > ammBalance))
889+ let $t03903839180 = if ((0 > ammBalance))
890890 then $Tuple2(0, abs(ammBalance))
891891 else $Tuple2(ammBalance, 0)
892- let ammNewBalance = $t03903339175._1
893- let getFromInsurance = $t03903339175._2
892+ let ammNewBalance = $t03903839180._1
893+ let getFromInsurance = $t03903839180._2
894894 let x = if ((getFromInsurance > 0))
895895 then {
896896 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
926926 else paused())
927927 then throw("Unable to liquidate")
928928 else {
929- let $t04061441041 = internalClosePosition(_trader)
930- let x1 = $t04061441041._1
931- let badDebt = $t04061441041._2
932- let x2 = $t04061441041._3
933- let marginToVault = $t04061441041._4
934- let quoteAssetReserveAfter = $t04061441041._5
935- let baseAssetReserveAfter = $t04061441041._6
936- let totalPositionSizeAfter = $t04061441041._7
937- let cumulativeNotionalAfter = $t04061441041._8
938- let openInterestNotionalAfter = $t04061441041._9
939- let exchangedQuoteAssetAmount = $t04061441041._10
940- let totalLongAfter = $t04061441041._11
941- let totalShortAfter = $t04061441041._12
929+ let $t04061941046 = internalClosePosition(_trader)
930+ let x1 = $t04061941046._1
931+ let badDebt = $t04061941046._2
932+ let x2 = $t04061941046._3
933+ let marginToVault = $t04061941046._4
934+ let quoteAssetReserveAfter = $t04061941046._5
935+ let baseAssetReserveAfter = $t04061941046._6
936+ let totalPositionSizeAfter = $t04061941046._7
937+ let cumulativeNotionalAfter = $t04061941046._8
938+ let openInterestNotionalAfter = $t04061941046._9
939+ let exchangedQuoteAssetAmount = $t04061941046._10
940+ let totalLongAfter = $t04061941046._11
941+ let totalShortAfter = $t04061941046._12
942942 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
943943 let feeToLiquidator = (liquidationPenalty / 2)
944944 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
945945 let ammBalance = (cbalance() - liquidationPenalty)
946- let $t04143941574 = if ((0 > ammBalance))
946+ let $t04144441579 = if ((0 > ammBalance))
947947 then $Tuple2(0, abs(ammBalance))
948948 else $Tuple2(ammBalance, 0)
949- let newAmmBalance = $t04143941574._1
950- let takeFromInsurance = $t04143941574._2
949+ let newAmmBalance = $t04144441579._1
950+ let takeFromInsurance = $t04144441579._2
951951 let x = if ((takeFromInsurance > 0))
952952 then {
953953 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
987987 let underlyingPrice = getOracleTwapPrice()
988988 let spotTwapPrice = getTwapSpotPrice()
989989 let premium = (spotTwapPrice - underlyingPrice)
990- let $t04295044285 = if (if ((totalShortPositionSize() == 0))
990+ let $t04295544290 = if (if ((totalShortPositionSize() == 0))
991991 then true
992992 else (totalLongPositionSize() == 0))
993993 then $Tuple2(0, 0)
10021002 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
10031003 $Tuple2(shortPremiumFraction, longPremiumFraction)
10041004 }
1005- let shortPremiumFraction = $t04295044285._1
1006- let longPremiumFraction = $t04295044285._2
1005+ let shortPremiumFraction = $t04295544290._1
1006+ let longPremiumFraction = $t04295544290._2
10071007 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
10081008 }
10091009 }
10121012
10131013 @Callable(i)
10141014 func v_get (_trader) = {
1015- let $t04466044713 = internalClosePosition(_trader)
1016- let x1 = $t04466044713._1
1017- let x2 = $t04466044713._2
1018- let x3 = $t04466044713._3
1019- let x4 = $t04466044713._4
1015+ let $t04466544718 = internalClosePosition(_trader)
1016+ let x1 = $t04466544718._1
1017+ let x2 = $t04466544718._2
1018+ let x3 = $t04466544718._3
1019+ let x4 = $t04466544718._4
10201020 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
10211021 }
10221022
10241024
10251025 @Callable(i)
10261026 func view_calcRemainMarginWithFundingPayment (_trader) = {
1027- let $t04486044971 = getPosition(_trader)
1028- let positionSize = $t04486044971._1
1029- let positionMargin = $t04486044971._2
1030- let pon = $t04486044971._3
1031- let positionLstUpdCPF = $t04486044971._4
1032- let $t04497645077 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1033- let positionNotional = $t04497645077._1
1034- let unrealizedPnl = $t04497645077._2
1035- let $t04508245264 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1036- let remainMargin = $t04508245264._1
1037- let badDebt = $t04508245264._2
1038- let fundingPayment = $t04508245264._3
1027+ let $t04486544976 = getPosition(_trader)
1028+ let positionSize = $t04486544976._1
1029+ let positionMargin = $t04486544976._2
1030+ let pon = $t04486544976._3
1031+ let positionLstUpdCPF = $t04486544976._4
1032+ let $t04498145082 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1033+ let positionNotional = $t04498145082._1
1034+ let unrealizedPnl = $t04498145082._2
1035+ let $t04508745269 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1036+ let remainMargin = $t04508745269._1
1037+ let badDebt = $t04508745269._2
1038+ let fundingPayment = $t04508745269._3
10391039 throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))))
10401040 }
10411041
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let k_ora_key = "k_ora_key"
55
66 let k_ora_block_key = "k_ora_block_key"
77
88 let k_ora = "k_ora"
99
1010 let k_balance = "k_balance"
1111
1212 let k_positionSize = "k_positionSize"
1313
1414 let k_positionMargin = "k_positionMargin"
1515
1616 let k_positionOpenNotional = "k_positionOpenNotional"
1717
1818 let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction"
1919
2020 let k_initialized = "k_initialized"
2121
2222 let k_paused = "k_paused"
2323
2424 let k_fee = "k_fee"
2525
2626 let k_fundingPeriod = "k_fundingPeriod"
2727
2828 let k_initMarginRatio = "k_initMarginRatio"
2929
3030 let k_maintenanceMarginRatio = "k_mmr"
3131
3232 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
3333
3434 let k_spreadLimit = "k_spreadLimit"
3535
3636 let k_maxPriceImpact = "k_maxPriceImpact"
3737
3838 let k_lastDataStr = "k_lastDataStr"
3939
4040 let k_lastMinuteId = "k_lastMinuteId"
4141
4242 let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice"
4343
4444 let k_twapDataLastPrice = "k_twapDataLastPrice"
4545
4646 let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId"
4747
4848 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
4949
5050 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
5151
5252 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
5353
5454 let k_longFundingRate = "k_longFundingRate"
5555
5656 let k_shortFundingRate = "k_shortFundingRate"
5757
5858 let k_quoteAssetReserve = "k_qtAstR"
5959
6060 let k_baseAssetReserve = "k_bsAstR"
6161
6262 let k_totalPositionSize = "k_totalPositionSize"
6363
6464 let k_totalLongPositionSize = "k_totalLongPositionSize"
6565
6666 let k_totalShortPositionSize = "k_totalShortPositionSize"
6767
6868 let k_cumulativeNotional = "k_cumulativeNotional"
6969
7070 let k_openInterestNotional = "k_openInterestNotional"
7171
7272 let k_coordinatorAddress = "k_coordinatorAddress"
7373
7474 let k_insurance_address = "k_insurance_address"
7575
7676 let k_admin_address = "k_admin_address"
7777
7878 let k_admin_public_key = "k_admin_public_key"
7979
8080 let k_quote_asset = "k_quote_asset"
8181
8282 let k_quote_staking = "k_quote_staking"
8383
8484 let k_staking_address = "k_staking_address"
8585
8686 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
8787
8888
8989 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
9090
9191
9292 func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key))
9393
9494
9595 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
9696
9797
9898 func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set")
9999
100100
101101 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Insurance not set")
102102
103103
104104 func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set")
105105
106106
107107 let DIR_LONG = 1
108108
109109 let DIR_SHORT = 2
110110
111111 let FUNDING_BLOCK_INTERVAL = 60
112112
113113 let TWAP_INTERVAL = 15
114114
115115 let ORACLE_INTERVAL = 15
116116
117117 let SECONDS = 1000
118118
119119 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
120120
121121 let HUNDRED_PERCENT = (100 * DECIMAL_UNIT)
122122
123123 let ONE_DAY = (86400 * DECIMAL_UNIT)
124124
125125 let ALL_FEES = 100
126126
127127 let PNL_OPTION_SPOT = 1
128128
129129 let PNL_OPTION_ORACLE = 2
130130
131131 func s (_x) = (toString(_x) + ",")
132132
133133
134134 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
135135
136136
137137 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
138138
139139
140140 func abs (_x) = if ((_x > 0))
141141 then _x
142142 else -(_x)
143143
144144
145145 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
146146
147147
148148 func listToStr (_list) = {
149149 func _join (accumulator,val) = ((accumulator + val) + ",")
150150
151151 let newListStr = {
152152 let $l = _list
153153 let $s = size($l)
154154 let $acc0 = ""
155155 func $f0_1 ($a,$i) = if (($i >= $s))
156156 then $a
157157 else _join($a, $l[$i])
158158
159159 func $f0_2 ($a,$i) = if (($i >= $s))
160160 then $a
161161 else throw("List size exceeds 20")
162162
163163 $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)
164164 }
165165 let newListStrU = dropRight(newListStr, 1)
166166 let newListStrR = if ((take(newListStrU, 1) == ","))
167167 then drop(newListStrU, 1)
168168 else newListStrU
169169 newListStrR
170170 }
171171
172172
173173 func strToList (_str) = split(_str, ",")
174174
175175
176176 func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize))
177177 then (removeByIndex(_list, 0) :+ _value)
178178 else (_list :+ _value)
179179
180180
181181 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
182182
183183
184184 func cbalance () = int(k_balance)
185185
186186
187187 func fee () = int(k_fee)
188188
189189
190190 func initMarginRatio () = int(k_initMarginRatio)
191191
192192
193193 func qtAstR () = int(k_quoteAssetReserve)
194194
195195
196196 func bsAstR () = int(k_baseAssetReserve)
197197
198198
199199 func totalPositionSize () = int(k_totalPositionSize)
200200
201201
202202 func cumulativeNotional () = int(k_cumulativeNotional)
203203
204204
205205 func openInterestNotional () = int(k_openInterestNotional)
206206
207207
208208 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
209209
210210
211211 func fundingPeriodRaw () = int(k_fundingPeriod)
212212
213213
214214 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
215215
216216
217217 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
218218
219219
220220 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
221221
222222
223223 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
224224
225225
226226 func spreadLimit () = int(k_spreadLimit)
227227
228228
229229 func maxPriceImpact () = int(k_maxPriceImpact)
230230
231231
232232 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
233233
234234
235235 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
236236
237237
238238 func totalShortPositionSize () = int(k_totalShortPositionSize)
239239
240240
241241 func totalLongPositionSize () = int(k_totalLongPositionSize)
242242
243243
244244 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
245245 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
246246 if (if (_largerThanOrEqualTo)
247247 then (0 > remainingMarginRatio)
248248 else false)
249249 then throw("Invalid margin")
250250 else if (if (!(_largerThanOrEqualTo))
251251 then (remainingMarginRatio >= 0)
252252 else false)
253253 then throw("Invalid margin")
254254 else true
255255 }
256256
257257
258258 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
259259 then throw("Should not be called with _positionSize == 0")
260260 else if ((_positionSize > 0))
261261 then latestLongCumulativePremiumFraction()
262262 else latestShortCumulativePremiumFraction()
263263
264264
265265 func getPosition (_trader) = {
266266 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
267267 match positionSizeOpt {
268268 case positionSize: Int =>
269269 $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)))
270270 case _ =>
271271 $Tuple4(0, 0, 0, 0)
272272 }
273273 }
274274
275275
276276 func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0))
277277 then throw("No open position")
278278 else true
279279
280280
281281 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
282282
283283
284284 func paused () = valueOrElse(getBoolean(this, k_paused), false)
285285
286286
287287 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
288288 then {
289289 let newBase = (bsAstR() - _baseAssetAmount)
290290 if ((0 >= newBase))
291291 then throw("Tx lead to base asset reserve <= 0, revert")
292292 else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount))
293293 }
294294 else {
295295 let newQuote = (qtAstR() - _quoteAssetAmount)
296296 if ((0 >= newQuote))
297297 then throw("Tx lead to base quote reserve <= 0, revert")
298298 else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount))
299299 }
300300
301301
302302 func swapInput (_isAdd,_quoteAssetAmount) = {
303303 let _qtAstR = qtAstR()
304304 let _bsAstR = bsAstR()
305305 let priceBefore = divd(_qtAstR, _bsAstR)
306306 let amountBaseAssetBoughtWithoutPriceImpact = muld(_quoteAssetAmount, priceBefore)
307307 let k = muld(_qtAstR, _bsAstR)
308308 let quoteAssetReserveAfter = if (_isAdd)
309309 then (_qtAstR + _quoteAssetAmount)
310310 else (_qtAstR - _quoteAssetAmount)
311311 let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter)
312312 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
313313 let amountBaseAssetBought = if (_isAdd)
314314 then amountBaseAssetBoughtAbs
315315 else -(amountBaseAssetBoughtAbs)
316316 let priceImpact = ((amountBaseAssetBoughtWithoutPriceImpact - amountBaseAssetBoughtAbs) / amountBaseAssetBoughtWithoutPriceImpact)
317317 let maxPriceImpactValue = maxPriceImpact()
318318 if ((priceImpact > maxPriceImpactValue))
319319 then throw(((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)))
320320 else {
321321 let $t01209412297 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs)
322322 let quoteAssetReserveAfter1 = $t01209412297._1
323323 let baseAssetReserveAfter1 = $t01209412297._2
324324 let totalPositionSizeAfter1 = $t01209412297._3
325325 let cumulativeNotionalAfter1 = $t01209412297._4
326326 $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
327327 }
328328 }
329329
330330
331331 func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = {
332332 let fundingPayment = if ((_oldPositionSize != 0))
333333 then {
334334 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
335335 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
336336 }
337337 else 0
338338 let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
339339 let $t01304413171 = if ((0 > signedMargin))
340340 then $Tuple2(0, abs(signedMargin))
341341 else $Tuple2(abs(signedMargin), 0)
342342 let remainMargin = $t01304413171._1
343343 let badDebt = $t01304413171._2
344344 $Tuple3(remainMargin, badDebt, fundingPayment)
345345 }
346346
347347
348348 func swapOutput (_isAdd,_baseAssetAmount) = {
349349 let _quoteAssetReserve = qtAstR()
350350 let _baseAssetReserve = bsAstR()
351351 if ((_baseAssetAmount == 0))
352352 then throw("Invalid base asset amount")
353353 else {
354354 let k = muld(_quoteAssetReserve, _baseAssetReserve)
355355 let baseAssetPoolAmountAfter = if (_isAdd)
356356 then (_baseAssetReserve + _baseAssetAmount)
357357 else (_baseAssetReserve - _baseAssetAmount)
358358 let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter)
359359 let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve))
360360 let $t01400914202 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount)
361361 let quoteAssetReserveAfter1 = $t01400914202._1
362362 let baseAssetReserveAfter1 = $t01400914202._2
363363 let totalPositionSizeAfter1 = $t01400914202._3
364364 let cumulativeNotionalAfter1 = $t01400914202._4
365365 $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd)
366366 then abs(_baseAssetAmount)
367367 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
368368 then abs(_baseAssetAmount)
369369 else 0)))
370370 }
371371 }
372372
373373
374374 func getOracleTwapPrice () = {
375375 let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "")
376376 let priceKey = getStringValue(this, k_ora_key)
377377 let blockKey = getStringValue(this, k_ora_block_key)
378378 let lastValue = getIntegerValue(oracle, priceKey)
379379 lastValue
380380 }
381381
382382
383383 func getSpotPrice () = {
384384 let _quoteAssetReserve = qtAstR()
385385 let _baseAssetReserve = bsAstR()
386386 divd(_quoteAssetReserve, _baseAssetReserve)
387387 }
388388
389389
390390 func isOverFluctuationLimit () = {
391391 let oraclePrice = getOracleTwapPrice()
392392 let currentPrice = getSpotPrice()
393393 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
394394 }
395395
396396
397397 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
398398 let $t01583415962 = getPosition(_trader)
399399 let positionSize = $t01583415962._1
400400 let positionMargin = $t01583415962._2
401401 let positionOpenNotional = $t01583415962._3
402402 let positionLstUpdCPF = $t01583415962._4
403403 let positionSizeAbs = abs(positionSize)
404404 if ((positionSizeAbs == 0))
405405 then throw("Invalid position size")
406406 else {
407407 let isShort = (0 > positionSize)
408408 let positionNotional = if ((_option == PNL_OPTION_SPOT))
409409 then {
410410 let $t01620916316 = swapOutput(!(isShort), positionSizeAbs)
411411 let outPositionNotional = $t01620916316._1
412412 let x1 = $t01620916316._2
413413 let x2 = $t01620916316._3
414414 let x3 = $t01620916316._4
415415 outPositionNotional
416416 }
417417 else (positionSizeAbs * getOracleTwapPrice())
418418 let unrealizedPnl = if (isShort)
419419 then (positionOpenNotional - positionNotional)
420420 else (positionNotional - positionOpenNotional)
421421 $Tuple2(positionNotional, unrealizedPnl)
422422 }
423423 }
424424
425425
426426 func getMarginRatioByOption (_trader,_option) = {
427427 let $t01681116922 = getPosition(_trader)
428428 let positionSize = $t01681116922._1
429429 let positionMargin = $t01681116922._2
430430 let pon = $t01681116922._3
431431 let positionLstUpdCPF = $t01681116922._4
432432 let $t01692817021 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
433433 let positionNotional = $t01692817021._1
434434 let unrealizedPnl = $t01692817021._2
435435 let $t01702617192 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
436436 let remainMargin = $t01702617192._1
437437 let badDebt = $t01702617192._2
438438 divd((remainMargin - badDebt), positionNotional)
439439 }
440440
441441
442442 func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
443443
444444
445445 func internalClosePosition (_trader) = {
446446 let $t01749817609 = getPosition(_trader)
447447 let positionSize = $t01749817609._1
448448 let positionMargin = $t01749817609._2
449449 let pon = $t01749817609._3
450450 let positionLstUpdCPF = $t01749817609._4
451451 let $t01761517702 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
452452 let x1 = $t01761517702._1
453453 let unrealizedPnl = $t01761517702._2
454454 let $t01770717875 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
455455 let remainMargin = $t01770717875._1
456456 let badDebt = $t01770717875._2
457457 let exchangedPositionSize = -(positionSize)
458458 let realizedPnl = unrealizedPnl
459459 let marginToVault = -(remainMargin)
460460 let $t01800218283 = swapOutput((positionSize > 0), abs(positionSize))
461461 let exchangedQuoteAssetAmount = $t01800218283._1
462462 let quoteAssetReserveAfter = $t01800218283._2
463463 let baseAssetReserveAfter = $t01800218283._3
464464 let totalPositionSizeAfter = $t01800218283._4
465465 let cumulativeNotionalAfter = $t01800218283._5
466466 let totalLongAfter = $t01800218283._6
467467 let totalShortAfter = $t01800218283._7
468468 let openInterestNotionalAfter = (openInterestNotional() - pon)
469469 $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter)
470470 }
471471
472472
473473 func getTwapSpotPrice () = {
474474 let minuteId = ((lastBlock.timestamp / 1000) / 60)
475475 let startMinuteId = (minuteId - TWAP_INTERVAL)
476476 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
477477 let list = split(listStr, ",")
478478 func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next)))
479479 then (accumulator :+ parseIntValue(next))
480480 else accumulator
481481
482482 let listF = {
483483 let $l = list
484484 let $s = size($l)
485485 let $acc0 = nil
486486 func $f0_1 ($a,$i) = if (($i >= $s))
487487 then $a
488488 else filterFn($a, $l[$i])
489489
490490 func $f0_2 ($a,$i) = if (($i >= $s))
491491 then $a
492492 else throw("List size exceeds 20")
493493
494494 $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)
495495 }
496496 let maxIndex = if ((size(listF) > 0))
497497 then max(listF)
498498 else parseIntValue(list[0])
499499 let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
500500 let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0)
501501 let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0)
502502 let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice))
503503 let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0)
504504 let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0)
505505 let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice))
506506 ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL)
507507 }
508508
509509
510510 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee), IntegerEntry(k_spreadLimit, _spreadLimit), IntegerEntry(k_maxPriceImpact, _maxPriceImpact)]
511511
512512
513513 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)]
514514
515515
516516 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)]
517517
518518
519519 func appendTwap (price) = {
520520 let minuteId = ((lastBlock.timestamp / 1000) / 60)
521521 let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
522522 if ((previousMinuteId > minuteId))
523523 then throw("TWAP out-of-order")
524524 else {
525525 let lastMinuteId = if ((previousMinuteId == 0))
526526 then minuteId
527527 else previousMinuteId
528528 if ((minuteId > previousMinuteId))
529529 then {
530530 let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0)
531531 let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price)
532532 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice))
533533 let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId))
534534 [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))]
535535 }
536536 else {
537537 let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0)
538538 let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0)
539539 let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), price)
540540 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice))
541541 [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price)]
542542 }
543543 }
544544 }
545545
546546
547547 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
548548 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
549549 else ([IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR), IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize)] ++ appendTwap(divd(_qtAstR, _bsAstR)))
550550
551551
552552 func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))]
553553
554554
555555 func withdraw (_address,_amount) = {
556556 let balance = assetBalance(this, quoteAsset())
557557 if ((_amount > balance))
558558 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
559559 else [ScriptTransfer(_address, _amount, quoteAsset())]
560560 }
561561
562562
563563 func updateBalance (i) = if ((0 > i))
564564 then throw("Balance")
565565 else [IntegerEntry(k_balance, i)]
566566
567567
568568 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
569569
570570
571571 @Callable(i)
572572 func pause () = if ((i.caller != adminAddress()))
573573 then throw("Invalid togglePause params")
574574 else [BooleanEntry(k_paused, true)]
575575
576576
577577
578578 @Callable(i)
579579 func unpause () = if ((i.caller != adminAddress()))
580580 then throw("Invalid togglePause params")
581581 else [BooleanEntry(k_paused, false)]
582582
583583
584584
585585 @Callable(i)
586586 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress()))
587587 then throw("Invalid changeSettings params")
588588 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)
589589
590590
591591
592592 @Callable(i)
593593 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_coordinator,_spreadLimit,_maxPriceImpact) = if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
594594 then true
595595 else (0 >= _bsAstR))
596596 then true
597597 else (0 >= _fundingPeriod))
598598 then true
599599 else (0 >= _initMarginRatio))
600600 then true
601601 else (0 >= _mmr))
602602 then true
603603 else (0 >= _liquidationFeeRatio))
604604 then true
605605 else (0 >= _fee))
606606 then true
607607 else (0 >= _spreadLimit))
608608 then true
609609 else (0 >= _maxPriceImpact))
610610 then true
611611 else initialized())
612612 then throw("Invalid initialize parameters")
613613 else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)) ++ updateFunding((lastBlock.timestamp + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_ora, _oracle), StringEntry(k_ora_key, _oracleKey), StringEntry(k_coordinatorAddress, _coordinator)])
614614
615615
616616
617617 @Callable(i)
618618 func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if ((0 >= _amount))
619619 then true
620620 else if (((1 * DECIMAL_UNIT) > _leverage))
621621 then true
622622 else (_leverage > (3 * DECIMAL_UNIT)))
623623 then true
624624 else !(initialized()))
625625 then true
626626 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
627627 then true
628628 else !(requireOpenPosition(toString(i.caller))))
629629 then true
630630 else paused())
631631 then throw("Invalid decreasePosition parameters")
632632 else {
633633 let $t02810728259 = getPosition(toString(i.caller))
634634 let oldPositionSize = $t02810728259._1
635635 let oldPositionMargin = $t02810728259._2
636636 let oldPositionOpenNotional = $t02810728259._3
637637 let oldPositionLstUpdCPF = $t02810728259._4
638638 let _direction = if ((oldPositionSize > 0))
639639 then DIR_SHORT
640640 else DIR_LONG
641641 let isAdd = (_direction == DIR_LONG)
642642 let openNotional = muld(_amount, _leverage)
643643 let $t02843228548 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
644644 let oldPositionNotional = $t02843228548._1
645645 let unrealizedPnl = $t02843228548._2
646- let $t02855431098 = if ((oldPositionNotional > openNotional))
646+ let $t02855431103 = if ((oldPositionNotional > openNotional))
647647 then {
648648 let $t02893129150 = swapInput(isAdd, openNotional)
649649 let exchangedPositionSize = $t02893129150._1
650650 let quoteAssetReserveAfter = $t02893129150._2
651651 let baseAssetReserveAfter = $t02893129150._3
652652 let totalPositionSizeAfter = $t02893129150._4
653653 let cumulativeNotionalAfter = $t02893129150._5
654654 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
655655 if (if ((_minBaseAssetAmount != 0))
656656 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
657657 else false)
658658 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
659659 else {
660- let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize)
661- let $t02958229827 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
662- let remainMargin = $t02958229827._1
663- let badDebt = $t02958229827._2
664- let fundingPayment = $t02958229827._3
660+ let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
661+ let $t02958729832 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
662+ let remainMargin = $t02958729832._1
663+ let badDebt = $t02958729832._2
664+ let fundingPayment = $t02958729832._3
665665 let exchangedQuoteAssetAmount = openNotional
666666 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
667667 let remainOpenNotional = if ((oldPositionSize > 0))
668668 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
669669 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
670670 let newPositionSize = (oldPositionSize + exchangedPositionSize)
671671 $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0))
672672 then abs(exchangedPositionSize)
673673 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
674674 then abs(exchangedPositionSize)
675675 else 0)))
676676 }
677677 }
678678 else throw("Close position first")
679- let newPositionSize = $t02855431098._1
680- let newPositionRemainMargin = $t02855431098._2
681- let newPositionOpenNotional = $t02855431098._3
682- let newPositionLatestCPF = $t02855431098._4
683- let baseAssetReserveAfter = $t02855431098._5
684- let quoteAssetReserveAfter = $t02855431098._6
685- let totalPositionSizeAfter = $t02855431098._7
686- let cumulativeNotionalAfter = $t02855431098._8
687- let openInterestNotionalAfter = $t02855431098._9
688- let totalLongAfter = $t02855431098._10
689- let totalShortAfter = $t02855431098._11
679+ let newPositionSize = $t02855431103._1
680+ let newPositionRemainMargin = $t02855431103._2
681+ let newPositionOpenNotional = $t02855431103._3
682+ let newPositionLatestCPF = $t02855431103._4
683+ let baseAssetReserveAfter = $t02855431103._5
684+ let quoteAssetReserveAfter = $t02855431103._6
685+ let totalPositionSizeAfter = $t02855431103._7
686+ let cumulativeNotionalAfter = $t02855431103._8
687+ let openInterestNotionalAfter = $t02855431103._9
688+ let totalLongAfter = $t02855431103._10
689+ let totalShortAfter = $t02855431103._11
690690 (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
691691 }
692692
693693
694694
695695 @Callable(i)
696696 func increasePosition (_direction,_leverage,_minBaseAssetAmount) = {
697697 let _rawAmount = i.payments[0].amount
698698 if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
699699 then (_direction != DIR_SHORT)
700700 else false)
701701 then true
702702 else (0 >= _rawAmount))
703703 then true
704704 else if (((1 * DECIMAL_UNIT) > _leverage))
705705 then true
706706 else (_leverage > (3 * DECIMAL_UNIT)))
707707 then true
708708 else !(initialized()))
709709 then true
710710 else (i.payments[0].assetId != quoteAsset()))
711711 then true
712712 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
713713 then true
714714 else paused())
715715 then throw("Invalid increasePosition parameters")
716716 else {
717717 let feeAmount = muld(_rawAmount, fee())
718718 let _amount = (_rawAmount - feeAmount)
719- let $t03213432286 = getPosition(toString(i.caller))
720- let oldPositionSize = $t03213432286._1
721- let oldPositionMargin = $t03213432286._2
722- let oldPositionOpenNotional = $t03213432286._3
723- let oldPositionLstUpdCPF = $t03213432286._4
719+ let $t03213932291 = getPosition(toString(i.caller))
720+ let oldPositionSize = $t03213932291._1
721+ let oldPositionMargin = $t03213932291._2
722+ let oldPositionOpenNotional = $t03213932291._3
723+ let oldPositionLstUpdCPF = $t03213932291._4
724724 let isNewPosition = (oldPositionSize == 0)
725725 let isSameDirection = if ((oldPositionSize > 0))
726726 then (_direction == DIR_LONG)
727727 else (_direction == DIR_SHORT)
728728 let expandExisting = if (!(isNewPosition))
729729 then isSameDirection
730730 else false
731731 let isAdd = (_direction == DIR_LONG)
732- let $t03257534964 = if (if (isNewPosition)
732+ let $t03258034969 = if (if (isNewPosition)
733733 then true
734734 else expandExisting)
735735 then {
736736 let openNotional = muld(_amount, _leverage)
737- let $t03299933205 = swapInput(isAdd, openNotional)
738- let amountBaseAssetBought = $t03299933205._1
739- let quoteAssetReserveAfter = $t03299933205._2
740- let baseAssetReserveAfter = $t03299933205._3
741- let totalPositionSizeAfter = $t03299933205._4
742- let cumulativeNotionalAfter = $t03299933205._5
737+ let $t03300433210 = swapInput(isAdd, openNotional)
738+ let amountBaseAssetBought = $t03300433210._1
739+ let quoteAssetReserveAfter = $t03300433210._2
740+ let baseAssetReserveAfter = $t03300433210._3
741+ let totalPositionSizeAfter = $t03300433210._4
742+ let cumulativeNotionalAfter = $t03300433210._5
743743 if (if ((_minBaseAssetAmount != 0))
744744 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
745745 else false)
746746 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
747747 else {
748748 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
749749 let increaseMarginRequirement = divd(openNotional, _leverage)
750- let $t03358633825 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
751- let remainMargin = $t03358633825._1
752- let x1 = $t03358633825._2
753- let x2 = $t03358633825._3
750+ let $t03359133830 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
751+ let remainMargin = $t03359133830._1
752+ let x1 = $t03359133830._2
753+ let x2 = $t03359133830._3
754754 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
755755 then abs(amountBaseAssetBought)
756756 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
757757 then abs(amountBaseAssetBought)
758758 else 0)))
759759 }
760760 }
761761 else {
762762 let openNotional = muld(_amount, _leverage)
763- let $t03465734773 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
764- let oldPositionNotional = $t03465734773._1
765- let unrealizedPnl = $t03465734773._2
763+ let $t03466234778 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
764+ let oldPositionNotional = $t03466234778._1
765+ let unrealizedPnl = $t03466234778._2
766766 if ((oldPositionNotional > openNotional))
767767 then throw("Use decreasePosition to decrease position size")
768768 else throw("Close position first")
769769 }
770- let newPositionSize = $t03257534964._1
771- let newPositionRemainMargin = $t03257534964._2
772- let newPositionOpenNotional = $t03257534964._3
773- let newPositionLatestCPF = $t03257534964._4
774- let baseAssetReserveAfter = $t03257534964._5
775- let quoteAssetReserveAfter = $t03257534964._6
776- let totalPositionSizeAfter = $t03257534964._7
777- let cumulativeNotionalAfter = $t03257534964._8
778- let openInterestNotionalAfter = $t03257534964._9
779- let totalLongAfter = $t03257534964._10
780- let totalShortAfter = $t03257534964._11
770+ let newPositionSize = $t03258034969._1
771+ let newPositionRemainMargin = $t03258034969._2
772+ let newPositionOpenNotional = $t03258034969._3
773+ let newPositionLatestCPF = $t03258034969._4
774+ let baseAssetReserveAfter = $t03258034969._5
775+ let quoteAssetReserveAfter = $t03258034969._6
776+ let totalPositionSizeAfter = $t03258034969._7
777+ let cumulativeNotionalAfter = $t03258034969._8
778+ let openInterestNotionalAfter = $t03258034969._9
779+ let totalLongAfter = $t03258034969._10
780+ let totalShortAfter = $t03258034969._11
781781 let feeToStakers = (feeAmount / 2)
782782 let feeToInsurance = (feeAmount - feeToStakers)
783783 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
784784 if ((stake == stake))
785785 then {
786786 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
787787 if ((depositInsurance == depositInsurance))
788788 then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
789789 else throw("Strict value is not equal to itself.")
790790 }
791791 else throw("Strict value is not equal to itself.")
792792 }
793793 }
794794
795795
796796
797797 @Callable(i)
798798 func addMargin () = {
799799 let _rawAmount = i.payments[0].amount
800800 if (if (if (if ((i.payments[0].assetId != quoteAsset()))
801801 then true
802802 else !(requireOpenPosition(toString(i.caller))))
803803 then true
804804 else !(initialized()))
805805 then true
806806 else paused())
807807 then throw("Invalid addMargin parameters")
808808 else {
809809 let feeAmount = muld(_rawAmount, fee())
810810 let _amount = (_rawAmount - feeAmount)
811- let $t03624036392 = getPosition(toString(i.caller))
812- let oldPositionSize = $t03624036392._1
813- let oldPositionMargin = $t03624036392._2
814- let oldPositionOpenNotional = $t03624036392._3
815- let oldPositionLstUpdCPF = $t03624036392._4
811+ let $t03624536397 = getPosition(toString(i.caller))
812+ let oldPositionSize = $t03624536397._1
813+ let oldPositionMargin = $t03624536397._2
814+ let oldPositionOpenNotional = $t03624536397._3
815+ let oldPositionLstUpdCPF = $t03624536397._4
816816 let feeToStakers = (feeAmount / 2)
817817 let feeToInsurance = (feeAmount - feeToStakers)
818818 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
819819 if ((stake == stake))
820820 then {
821821 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
822822 if ((depositInsurance == depositInsurance))
823823 then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
824824 else throw("Strict value is not equal to itself.")
825825 }
826826 else throw("Strict value is not equal to itself.")
827827 }
828828 }
829829
830830
831831
832832 @Callable(i)
833833 func removeMargin (_amount) = if (if (if (if ((0 >= _amount))
834834 then true
835835 else !(requireOpenPosition(toString(i.caller))))
836836 then true
837837 else !(initialized()))
838838 then true
839839 else paused())
840840 then throw("Invalid removeMargin parameters")
841841 else {
842- let $t03731237464 = getPosition(toString(i.caller))
843- let oldPositionSize = $t03731237464._1
844- let oldPositionMargin = $t03731237464._2
845- let oldPositionOpenNotional = $t03731237464._3
846- let oldPositionLstUpdCPF = $t03731237464._4
842+ let $t03731737469 = getPosition(toString(i.caller))
843+ let oldPositionSize = $t03731737469._1
844+ let oldPositionMargin = $t03731737469._2
845+ let oldPositionOpenNotional = $t03731737469._3
846+ let oldPositionLstUpdCPF = $t03731737469._4
847847 let marginDelta = -(_amount)
848- let $t03750137680 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
849- let remainMargin = $t03750137680._1
850- let badDebt = $t03750137680._2
848+ let $t03750637685 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
849+ let remainMargin = $t03750637685._1
850+ let badDebt = $t03750637685._2
851851 if ((badDebt != 0))
852852 then throw("Invalid added margin amount")
853853 else {
854854 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
855855 if ((unstake == unstake))
856856 then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount)))
857857 else throw("Strict value is not equal to itself.")
858858 }
859859 }
860860
861861
862862
863863 @Callable(i)
864864 func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller))))
865865 then true
866866 else !(initialized()))
867867 then true
868868 else paused())
869869 then throw("Invalid closePosition parameters")
870870 else {
871- let $t03844038824 = internalClosePosition(toString(i.caller))
872- let x1 = $t03844038824._1
873- let positionBadDebt = $t03844038824._2
874- let realizedPnl = $t03844038824._3
875- let marginToVault = $t03844038824._4
876- let quoteAssetReserveAfter = $t03844038824._5
877- let baseAssetReserveAfter = $t03844038824._6
878- let totalPositionSizeAfter = $t03844038824._7
879- let cumulativeNotionalAfter = $t03844038824._8
880- let openInterestNotionalAfter = $t03844038824._9
881- let x2 = $t03844038824._10
882- let totalLongAfter = $t03844038824._11
883- let totalShortAfter = $t03844038824._12
871+ let $t03844538829 = internalClosePosition(toString(i.caller))
872+ let x1 = $t03844538829._1
873+ let positionBadDebt = $t03844538829._2
874+ let realizedPnl = $t03844538829._3
875+ let marginToVault = $t03844538829._4
876+ let quoteAssetReserveAfter = $t03844538829._5
877+ let baseAssetReserveAfter = $t03844538829._6
878+ let totalPositionSizeAfter = $t03844538829._7
879+ let cumulativeNotionalAfter = $t03844538829._8
880+ let openInterestNotionalAfter = $t03844538829._9
881+ let x2 = $t03844538829._10
882+ let totalLongAfter = $t03844538829._11
883+ let totalShortAfter = $t03844538829._12
884884 if ((positionBadDebt > 0))
885885 then throw("Unable to close position with bad debt")
886886 else {
887887 let withdrawAmount = abs(marginToVault)
888888 let ammBalance = (cbalance() - withdrawAmount)
889- let $t03903339175 = if ((0 > ammBalance))
889+ let $t03903839180 = if ((0 > ammBalance))
890890 then $Tuple2(0, abs(ammBalance))
891891 else $Tuple2(ammBalance, 0)
892- let ammNewBalance = $t03903339175._1
893- let getFromInsurance = $t03903339175._2
892+ let ammNewBalance = $t03903839180._1
893+ let getFromInsurance = $t03903839180._2
894894 let x = if ((getFromInsurance > 0))
895895 then {
896896 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
897897 if ((withdrawInsurance == withdrawInsurance))
898898 then nil
899899 else throw("Strict value is not equal to itself.")
900900 }
901901 else nil
902902 if ((x == x))
903903 then {
904904 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil)
905905 if ((unstake == unstake))
906906 then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(ammNewBalance))
907907 else throw("Strict value is not equal to itself.")
908908 }
909909 else throw("Strict value is not equal to itself.")
910910 }
911911 }
912912
913913
914914
915915 @Callable(i)
916916 func liquidate (_trader) = {
917917 let marginRatio = if (isOverFluctuationLimit())
918918 then getMarginRatioByOption(_trader, PNL_OPTION_ORACLE)
919919 else getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
920920 if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false)))
921921 then true
922922 else !(requireOpenPosition(_trader)))
923923 then true
924924 else !(initialized()))
925925 then true
926926 else paused())
927927 then throw("Unable to liquidate")
928928 else {
929- let $t04061441041 = internalClosePosition(_trader)
930- let x1 = $t04061441041._1
931- let badDebt = $t04061441041._2
932- let x2 = $t04061441041._3
933- let marginToVault = $t04061441041._4
934- let quoteAssetReserveAfter = $t04061441041._5
935- let baseAssetReserveAfter = $t04061441041._6
936- let totalPositionSizeAfter = $t04061441041._7
937- let cumulativeNotionalAfter = $t04061441041._8
938- let openInterestNotionalAfter = $t04061441041._9
939- let exchangedQuoteAssetAmount = $t04061441041._10
940- let totalLongAfter = $t04061441041._11
941- let totalShortAfter = $t04061441041._12
929+ let $t04061941046 = internalClosePosition(_trader)
930+ let x1 = $t04061941046._1
931+ let badDebt = $t04061941046._2
932+ let x2 = $t04061941046._3
933+ let marginToVault = $t04061941046._4
934+ let quoteAssetReserveAfter = $t04061941046._5
935+ let baseAssetReserveAfter = $t04061941046._6
936+ let totalPositionSizeAfter = $t04061941046._7
937+ let cumulativeNotionalAfter = $t04061941046._8
938+ let openInterestNotionalAfter = $t04061941046._9
939+ let exchangedQuoteAssetAmount = $t04061941046._10
940+ let totalLongAfter = $t04061941046._11
941+ let totalShortAfter = $t04061941046._12
942942 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
943943 let feeToLiquidator = (liquidationPenalty / 2)
944944 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
945945 let ammBalance = (cbalance() - liquidationPenalty)
946- let $t04143941574 = if ((0 > ammBalance))
946+ let $t04144441579 = if ((0 > ammBalance))
947947 then $Tuple2(0, abs(ammBalance))
948948 else $Tuple2(ammBalance, 0)
949- let newAmmBalance = $t04143941574._1
950- let takeFromInsurance = $t04143941574._2
949+ let newAmmBalance = $t04144441579._1
950+ let takeFromInsurance = $t04144441579._2
951951 let x = if ((takeFromInsurance > 0))
952952 then {
953953 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
954954 if ((withdrawInsurance == withdrawInsurance))
955955 then nil
956956 else throw("Strict value is not equal to itself.")
957957 }
958958 else nil
959959 if ((x == x))
960960 then {
961961 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(liquidationPenalty - takeFromInsurance), toBase58String(quoteAsset())], nil)
962962 if ((unstake == unstake))
963963 then {
964964 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
965965 if ((depositInsurance == depositInsurance))
966966 then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
967967 else throw("Strict value is not equal to itself.")
968968 }
969969 else throw("Strict value is not equal to itself.")
970970 }
971971 else throw("Strict value is not equal to itself.")
972972 }
973973 }
974974
975975
976976
977977 @Callable(i)
978978 func payFunding () = {
979979 let fundingBlockTimestamp = nextFundingBlockTimestamp()
980980 if (if (if ((fundingBlockTimestamp > lastBlock.timestamp))
981981 then true
982982 else !(initialized()))
983983 then true
984984 else paused())
985985 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
986986 else {
987987 let underlyingPrice = getOracleTwapPrice()
988988 let spotTwapPrice = getTwapSpotPrice()
989989 let premium = (spotTwapPrice - underlyingPrice)
990- let $t04295044285 = if (if ((totalShortPositionSize() == 0))
990+ let $t04295544290 = if (if ((totalShortPositionSize() == 0))
991991 then true
992992 else (totalLongPositionSize() == 0))
993993 then $Tuple2(0, 0)
994994 else if ((0 > premium))
995995 then {
996996 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
997997 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
998998 $Tuple2(shortPremiumFraction, longPremiumFraction)
999999 }
10001000 else {
10011001 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
10021002 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
10031003 $Tuple2(shortPremiumFraction, longPremiumFraction)
10041004 }
1005- let shortPremiumFraction = $t04295044285._1
1006- let longPremiumFraction = $t04295044285._2
1005+ let shortPremiumFraction = $t04295544290._1
1006+ let longPremiumFraction = $t04295544290._2
10071007 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
10081008 }
10091009 }
10101010
10111011
10121012
10131013 @Callable(i)
10141014 func v_get (_trader) = {
1015- let $t04466044713 = internalClosePosition(_trader)
1016- let x1 = $t04466044713._1
1017- let x2 = $t04466044713._2
1018- let x3 = $t04466044713._3
1019- let x4 = $t04466044713._4
1015+ let $t04466544718 = internalClosePosition(_trader)
1016+ let x1 = $t04466544718._1
1017+ let x2 = $t04466544718._2
1018+ let x3 = $t04466544718._3
1019+ let x4 = $t04466544718._4
10201020 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
10211021 }
10221022
10231023
10241024
10251025 @Callable(i)
10261026 func view_calcRemainMarginWithFundingPayment (_trader) = {
1027- let $t04486044971 = getPosition(_trader)
1028- let positionSize = $t04486044971._1
1029- let positionMargin = $t04486044971._2
1030- let pon = $t04486044971._3
1031- let positionLstUpdCPF = $t04486044971._4
1032- let $t04497645077 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1033- let positionNotional = $t04497645077._1
1034- let unrealizedPnl = $t04497645077._2
1035- let $t04508245264 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1036- let remainMargin = $t04508245264._1
1037- let badDebt = $t04508245264._2
1038- let fundingPayment = $t04508245264._3
1027+ let $t04486544976 = getPosition(_trader)
1028+ let positionSize = $t04486544976._1
1029+ let positionMargin = $t04486544976._2
1030+ let pon = $t04486544976._3
1031+ let positionLstUpdCPF = $t04486544976._4
1032+ let $t04498145082 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1033+ let positionNotional = $t04498145082._1
1034+ let unrealizedPnl = $t04498145082._2
1035+ let $t04508745269 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1036+ let remainMargin = $t04508745269._1
1037+ let badDebt = $t04508745269._2
1038+ let fundingPayment = $t04508745269._3
10391039 throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))))
10401040 }
10411041
10421042
10431043 @Verifier(tx)
10441044 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
10451045

github/deemru/w8io/026f985 
152.59 ms