tx · FHQoZaoHxp3J7LacGovr7q5jvitxMfoPJtxa474DygLn

3MuzRcW6fRnqCC76KgKznZP68qsWB1J6shn:  -0.07500000 Waves

2023.06.24 22:47 [2637141] smart account 3MuzRcW6fRnqCC76KgKznZP68qsWB1J6shn > SELF 0.00000000 Waves

{ "type": 13, "id": "FHQoZaoHxp3J7LacGovr7q5jvitxMfoPJtxa474DygLn", "fee": 7500000, "feeAssetId": null, "timestamp": 1687636133039, "version": 2, "chainId": 84, "sender": "3MuzRcW6fRnqCC76KgKznZP68qsWB1J6shn", "senderPublicKey": "EjNbd48ENcnJ4wjBkASdYJHavM8QHrAbFDbJ46ffyUcU", "proofs": [ "3aWo5uUoVQ3YYnGYPESM4HinjNWHsFLKNLZeigrdLCPBzWKPjVPceWmpU7CHcbUgUW9XtbBQUZVe2y9jRheewZhT" ], "script": "base64:BgKQAQgCEgASABIAEgASAwoBARITChEBAQEBAQEBAQEBAQEBAQEICBIWChQBAQEBAQEBCAgIAQEBAQEBAQEBARIHCgUBAQEICBIECgIBCBIFCgMBAQgSBwoFAQEBBAgSBQoDCAEIEgMKAQgSAwoBCBIAEgASAwoBCBIFCgMIAQgSAwoBARIAEgMKAQgSABIECgIICLYBAAxrX2Jhc2VPcmFjbGUCDGtfYmFzZU9yYWNsZQANa19xdW90ZU9yYWNsZQINa19xdW90ZU9yYWNsZQAJa19iYWxhbmNlAglrX2JhbGFuY2UACmtfc2VxdWVuY2UCCmtfc2VxdWVuY2UADmtfcG9zaXRpb25TaXplAg5rX3Bvc2l0aW9uU2l6ZQAQa19wb3NpdGlvbk1hcmdpbgIQa19wb3NpdGlvbk1hcmdpbgAWa19wb3NpdGlvbk9wZW5Ob3Rpb25hbAIWa19wb3NpdGlvbk9wZW5Ob3Rpb25hbAAua19wb3NpdGlvbkxhc3RVcGRhdGVkQ3VtdWxhdGl2ZVByZW1pdW1GcmFjdGlvbgISa19wb3NpdGlvbkZyYWN0aW9uABJrX3Bvc2l0aW9uU2VxdWVuY2UC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mlsAwkAAAIFBHN5bmMFBHN5bmMEBnJlc3VsdAkBDGdldFNwb3RQcmljZQAJAJQKAgUDbmlsBQZyZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEfY29tcHV0ZUZlZUZvclRyYWRlcldpdGhBcnRpZmFjdAIHX3RyYWRlcgtfYXJ0aWZhY3RJZAQGcmVzdWx0CQEYZ2V0Rm9yVHJhZGVyV2l0aEFydGlmYWN0AgUHX3RyYWRlcgULX2FydGlmYWN0SWQJAJQKAgUDbmlsBQZyZXN1bHQBAnR4AQZ2ZXJpZnkABA5jb29yZGluYXRvclN0cgkAnQgCBQR0aGlzBRRrX2Nvb3JkaW5hdG9yQWRkcmVzcwMJAQlpc0RlZmluZWQBBQ5jb29yZGluYXRvclN0cgQFYWRtaW4JAJ0IAgkBEUBleHRyTmF0aXZlKDEwNjIpAQkBBXZhbHVlAQUOY29vcmRpbmF0b3JTdHIFD2tfYWRtaW5fYWRkcmVzcwMJAQlpc0RlZmluZWQBBQVhZG1pbgkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBCQEFdmFsdWUBBQVhZG1pbgkArAICCQCsAgIJAKwCAgIHc3RhdHVzXwkApQgBBQR0aGlzAgFfCQDYBAEIBQJ0eAJpZAcJAAIBAi51bmFibGUgdG8gdmVyaWZ5OiBhZG1pbiBub3Qgc2V0IGluIGNvb3JkaW5hdG9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V58m1qYw==", "height": 2637141, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CExEEsLT4vMQpsQ8DmDYHtY92sDSjbASkEJ7PL8cCwan Next: 3e68ZazYvBhLT1m82g5eFs31KL4duNyWhoiXp1zdjtRQ Diff:
OldNewDifferences
443443 let amountBaseAssetBought = if (_isAdd)
444444 then amountBaseAssetBoughtAbs
445445 else -(amountBaseAssetBoughtAbs)
446- let $t01591816088 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
447- let quoteAssetReserveAfter1 = $t01591816088._1
448- let baseAssetReserveAfter1 = $t01591816088._2
449- let totalPositionSizeAfter1 = $t01591816088._3
446+ let $t01592616096 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
447+ let quoteAssetReserveAfter1 = $t01592616096._1
448+ let baseAssetReserveAfter1 = $t01592616096._2
449+ let totalPositionSizeAfter1 = $t01592616096._3
450450 let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
451451 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
452452 let priceDiff = abs((priceBefore - marketPrice))
474474 else 0
475475 let rolloverFee = calcRolloverFee(_oldPositionMargin, _oldPositionLastUpdatedTimestamp)
476476 let signedMargin = (((_marginDelta - rolloverFee) - fundingPayment) + _oldPositionMargin)
477- let $t01875518882 = if ((0 > signedMargin))
477+ let $t01876318890 = if ((0 > signedMargin))
478478 then $Tuple2(0, abs(signedMargin))
479479 else $Tuple2(abs(signedMargin), 0)
480- let remainMargin = $t01875518882._1
481- let badDebt = $t01875518882._2
480+ let remainMargin = $t01876318890._1
481+ let badDebt = $t01876318890._2
482482 $Tuple4(remainMargin, badDebt, fundingPayment, rolloverFee)
483483 }
484484
496496 let quoteAssetDelta = abs((quoteAssetAfter - _quoteAssetReserve))
497497 let quoteAssetSold = muld(quoteAssetDelta, _quoteAssetWeight)
498498 let maxPriceImpactValue = maxPriceImpact()
499- let $t02014420306 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
500- let quoteAssetReserveAfter1 = $t02014420306._1
501- let baseAssetReserveAfter1 = $t02014420306._2
502- let totalPositionSizeAfter1 = $t02014420306._3
499+ let $t02015220314 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
500+ let quoteAssetReserveAfter1 = $t02015220314._1
501+ let baseAssetReserveAfter1 = $t02015220314._2
502+ let totalPositionSizeAfter1 = $t02015220314._3
503503 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
504504 let priceDiff = abs((priceBefore - marketPrice))
505505 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
634634
635635
636636 func getPositionNotionalAndUnrealizedPnl (_trader,_direction,_option) = {
637- let $t02819128331 = getPosition(_trader, _direction)
638- let positionSize = $t02819128331._1
639- let positionMargin = $t02819128331._2
640- let positionOpenNotional = $t02819128331._3
641- let positionLstUpdCPF = $t02819128331._4
637+ let $t02819928339 = getPosition(_trader, _direction)
638+ let positionSize = $t02819928339._1
639+ let positionMargin = $t02819928339._2
640+ let positionOpenNotional = $t02819928339._3
641+ let positionLstUpdCPF = $t02819928339._4
642642 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
643643 }
644644
647647
648648
649649 func getMarginRatioByOption (_trader,_direction,_option) = {
650- let $t02886329016 = getPosition(_trader, _direction)
651- let positionSize = $t02886329016._1
652- let positionMargin = $t02886329016._2
653- let pon = $t02886329016._3
654- let positionLastUpdatedCPF = $t02886329016._4
655- let positionTimestamp = $t02886329016._5
656- let $t02902229127 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
657- let positionNotional = $t02902229127._1
658- let unrealizedPnl = $t02902229127._2
659- let $t02913229344 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
660- let remainMargin = $t02913229344._1
661- let badDebt = $t02913229344._2
650+ let $t02887129024 = getPosition(_trader, _direction)
651+ let positionSize = $t02887129024._1
652+ let positionMargin = $t02887129024._2
653+ let pon = $t02887129024._3
654+ let positionLastUpdatedCPF = $t02887129024._4
655+ let positionTimestamp = $t02887129024._5
656+ let $t02903029135 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
657+ let positionNotional = $t02903029135._1
658+ let unrealizedPnl = $t02903029135._2
659+ let $t02914029352 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
660+ let remainMargin = $t02914029352._1
661+ let badDebt = $t02914029352._2
662662 calcMarginRatio(remainMargin, badDebt, positionNotional)
663663 }
664664
679679
680680
681681 func internalClosePosition (_trader,_direction,_size,_fee,_minQuoteAssetAmount,_addToMargin,_checkMaxPriceImpact,_liquidate) = {
682- let $t03050730675 = getPosition(_trader, _direction)
683- let oldPositionSize = $t03050730675._1
684- let oldPositionMargin = $t03050730675._2
685- let oldPositionOpenNotional = $t03050730675._3
686- let oldPositionLstUpdCPF = $t03050730675._4
687- let oldPositionTimestamp = $t03050730675._5
682+ let $t03051530683 = getPosition(_trader, _direction)
683+ let oldPositionSize = $t03051530683._1
684+ let oldPositionMargin = $t03051530683._2
685+ let oldPositionOpenNotional = $t03051530683._3
686+ let oldPositionLstUpdCPF = $t03051530683._4
687+ let oldPositionTimestamp = $t03051530683._5
688688 let isLongPosition = (oldPositionSize > 0)
689689 let absOldPositionSize = abs(oldPositionSize)
690690 if (if ((absOldPositionSize >= _size))
692692 else false)
693693 then {
694694 let isPartialClose = (absOldPositionSize > _size)
695- let $t03096731418 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
696- let exchangedQuoteAssetAmount = $t03096731418._1
697- let quoteAssetReserveAfter = $t03096731418._2
698- let baseAssetReserveAfter = $t03096731418._3
699- let totalPositionSizeAfter = $t03096731418._4
695+ let $t03097531426 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
696+ let exchangedQuoteAssetAmount = $t03097531426._1
697+ let quoteAssetReserveAfter = $t03097531426._2
698+ let baseAssetReserveAfter = $t03097531426._3
699+ let totalPositionSizeAfter = $t03097531426._4
700700 let exchangedPositionSize = if ((oldPositionSize > 0))
701701 then -(_size)
702702 else _size
703- let $t03163331857 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
704- let oldPositionNotional = $t03163331857._1
705- let unrealizedPnl = $t03163331857._2
703+ let $t03164131865 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
704+ let oldPositionNotional = $t03164131865._1
705+ let unrealizedPnl = $t03164131865._2
706706 let realizedRatio = divd(abs(exchangedPositionSize), absOldPositionSize)
707707 let realizedPnl = muld(unrealizedPnl, realizedRatio)
708- let $t03219832444 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
709- let remainMarginBefore = $t03219832444._1
710- let x1 = $t03219832444._2
711- let x2 = $t03219832444._3
712- let rolloverFee = $t03219832444._4
708+ let $t03220632452 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
709+ let remainMarginBefore = $t03220632452._1
710+ let x1 = $t03220632452._2
711+ let x2 = $t03220632452._3
712+ let rolloverFee = $t03220632452._4
713713 let positionBadDebt = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, realizedPnl)._2
714714 let realizedCloseFee = muld(muld(oldPositionNotional, realizedRatio), _fee)
715715 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
717717 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
718718 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
719719 let newPositionSize = (oldPositionSize + exchangedPositionSize)
720- let $t03385034236 = if ((newPositionSize == 0))
720+ let $t03385834244 = if ((newPositionSize == 0))
721721 then $Tuple2(0, 0)
722722 else $Tuple2(abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize))
723- let newPositionOpenNotional = $t03385034236._1
724- let newPositionLstUpdCPF = $t03385034236._2
723+ let newPositionOpenNotional = $t03385834244._1
724+ let newPositionLstUpdCPF = $t03385834244._2
725725 let openNotionalDelta = (oldPositionOpenNotional - newPositionOpenNotional)
726726 let marginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
727727 let newPositionMarginWithSameRatio = if ((oldPositionSize > 0))
764764 then $Tuple2(qtAstR(), bsAstR())
765765 else {
766766 let direction = (_positionSize > 0)
767- let $t03748337662 = swapOutput(direction, abs(_positionSize), false)
768- let currentNetMarketValue = $t03748337662._1
769- let terminalQuoteAssetReserve = $t03748337662._2
770- let terminalBaseAssetReserve = $t03748337662._3
767+ let $t03749137670 = swapOutput(direction, abs(_positionSize), false)
768+ let currentNetMarketValue = $t03749137670._1
769+ let terminalQuoteAssetReserve = $t03749137670._2
770+ let terminalBaseAssetReserve = $t03749137670._3
771771 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
772772 }
773773 }
852852 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
853853 let baseFeeRaw = fee()
854854 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
855- let $t04232642821 = if ((_artifactId != ""))
855+ let $t04233442829 = if ((_artifactId != ""))
856856 then {
857857 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
858858 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
864864 else throw("Invalid attached artifact")
865865 }
866866 else $Tuple2(baseFee, false)
867- let adjustedFee = $t04232642821._1
868- let burnArtifact = $t04232642821._2
867+ let adjustedFee = $t04233442829._1
868+ let burnArtifact = $t04233442829._2
869869 $Tuple2(adjustedFee, burnArtifact)
870870 }
871871
880880 case _ =>
881881 throw("Invalid computeFeeDiscount result")
882882 }
883- let $t04316743241 = getAdjustedFee(_artifactId, feeDiscount)
884- let adjustedFee = $t04316743241._1
885- let burnArtifact = $t04316743241._2
883+ let $t04317543249 = getAdjustedFee(_artifactId, feeDiscount)
884+ let adjustedFee = $t04317543249._1
885+ let burnArtifact = $t04317543249._2
886886 $Tuple2(adjustedFee, burnArtifact)
887887 }
888888 else throw("Strict value is not equal to itself.")
958958 let _qtAstW = qtAstW()
959959 let _bsAstW = bsAstW()
960960 if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
961- then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
961+ then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " - ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
962962 else (updateAmmReserves(_qtAstR, _bsAstR) ++ [IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize), IntegerEntry(k_openInterestLong, _totalLongOpenNotional), IntegerEntry(k_openInterestShort, _totalShortOpenNotional)])
963963 }
964964
10361036 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10371037 let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)
10381038 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
1039- let $t05196652117 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1040- let newQuoteAssetWeight = $t05196652117._1
1041- let newBaseAssetWeight = $t05196652117._2
1042- let marginToVault = $t05196652117._3
1039+ let $t05197452125 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1040+ let newQuoteAssetWeight = $t05197452125._1
1041+ let newBaseAssetWeight = $t05197452125._2
1042+ let marginToVault = $t05197452125._3
10431043 let doExchangePnL = if ((marginToVault != 0))
10441044 then {
10451045 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
10561056
10571057
10581058 @Callable(i)
1059-func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _fundingPeriod))
1059+func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode,_baseOracleData,_quoteOracleData) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _fundingPeriod))
10601060 then true
10611061 else (0 >= _initMarginRatio))
10621062 then true
10961096 then true
10971097 else (i.caller != adminAddress()))
10981098 then throw("Invalid changeSettings params")
1099- else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode)
1099+ else (updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode) ++ [StringEntry(k_baseOracle, _baseOracleData), StringEntry(k_quoteOracle, _quoteOracleData)])
11001100
11011101
11021102
11841184 else isMarketClosed())
11851185 then throw("Invalid increasePosition parameters")
11861186 else {
1187- let $t05849358642 = getForTraderWithArtifact(_trader, getArtifactId(i))
1188- let adjustedFee = $t05849358642._1
1189- let burnArtifact = $t05849358642._2
1187+ let $t05867658825 = getForTraderWithArtifact(_trader, getArtifactId(i))
1188+ let adjustedFee = $t05867658825._1
1189+ let burnArtifact = $t05867658825._2
11901190 let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT))
11911191 let distributeFeeAmount = (_rawAmount - _amount)
11921192 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
11991199 throw("Invalid referrerFee")
12001200 }
12011201 let feeAmount = (distributeFeeAmount - referrerFee)
1202- let $t05913859318 = getPosition(_trader, _direction)
1203- let oldPositionSize = $t05913859318._1
1204- let oldPositionMargin = $t05913859318._2
1205- let oldPositionOpenNotional = $t05913859318._3
1206- let oldPositionLstUpdCPF = $t05913859318._4
1207- let oldPositionTimestamp = $t05913859318._5
1202+ let $t05932159501 = getPosition(_trader, _direction)
1203+ let oldPositionSize = $t05932159501._1
1204+ let oldPositionMargin = $t05932159501._2
1205+ let oldPositionOpenNotional = $t05932159501._3
1206+ let oldPositionLstUpdCPF = $t05932159501._4
1207+ let oldPositionTimestamp = $t05932159501._5
12081208 let isNewPosition = (oldPositionSize == 0)
12091209 let isSameDirection = if ((oldPositionSize > 0))
12101210 then (_direction == DIR_LONG)
12131213 then isSameDirection
12141214 else false
12151215 let isAdd = (_direction == DIR_LONG)
1216- let $t05960762740 = if (if (isNewPosition)
1216+ let $t05979062923 = if (if (isNewPosition)
12171217 then true
12181218 else expandExisting)
12191219 then {
12201220 let openNotional = muld(_amount, _leverage)
1221- let $t06011660289 = swapInput(isAdd, openNotional)
1222- let amountBaseAssetBought = $t06011660289._1
1223- let quoteAssetReserveAfter = $t06011660289._2
1224- let baseAssetReserveAfter = $t06011660289._3
1225- let totalPositionSizeAfter = $t06011660289._4
1221+ let $t06029960472 = swapInput(isAdd, openNotional)
1222+ let amountBaseAssetBought = $t06029960472._1
1223+ let quoteAssetReserveAfter = $t06029960472._2
1224+ let baseAssetReserveAfter = $t06029960472._3
1225+ let totalPositionSizeAfter = $t06029960472._4
12261226 if (if ((_minBaseAssetAmount != 0))
12271227 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12281228 else false)
12351235 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12361236 then openNotional
12371237 else 0))
1238- let $t06083561110 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1239- let remainMargin = $t06083561110._1
1240- let x1 = $t06083561110._2
1241- let x2 = $t06083561110._3
1242- let rolloverFee = $t06083561110._4
1238+ let $t06101861293 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1239+ let remainMargin = $t06101861293._1
1240+ let x1 = $t06101861293._2
1241+ let x2 = $t06101861293._3
1242+ let rolloverFee = $t06101861293._4
12431243 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
12441244 then throw("Over max spread limit")
12451245 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
12531253 }
12541254 else {
12551255 let openNotional = muld(_amount, _leverage)
1256- let $t06242862556 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1257- let oldPositionNotional = $t06242862556._1
1258- let unrealizedPnl = $t06242862556._2
1256+ let $t06261162739 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1257+ let oldPositionNotional = $t06261162739._1
1258+ let unrealizedPnl = $t06261162739._2
12591259 if ((oldPositionNotional > openNotional))
12601260 then throw("Use decreasePosition to decrease position size")
12611261 else throw("Close position first")
12621262 }
1263- let newPositionSize = $t05960762740._1
1264- let newPositionRemainMargin = $t05960762740._2
1265- let newPositionOpenNotional = $t05960762740._3
1266- let newPositionLatestCPF = $t05960762740._4
1267- let newPositionTimestamp = $t05960762740._5
1268- let baseAssetReserveAfter = $t05960762740._6
1269- let quoteAssetReserveAfter = $t05960762740._7
1270- let totalPositionSizeAfter = $t05960762740._8
1271- let openInterestNotionalAfter = $t05960762740._9
1272- let totalLongAfter = $t05960762740._10
1273- let totalShortAfter = $t05960762740._11
1274- let totalLongOpenInterestAfter = $t05960762740._12
1275- let totalShortOpenInterestAfter = $t05960762740._13
1276- let rolloverFee = $t05960762740._14
1277- let $t06274662817 = distributeFee((feeAmount + rolloverFee))
1278- let feeToStakers = $t06274662817._1
1279- let feeToVault = $t06274662817._2
1263+ let newPositionSize = $t05979062923._1
1264+ let newPositionRemainMargin = $t05979062923._2
1265+ let newPositionOpenNotional = $t05979062923._3
1266+ let newPositionLatestCPF = $t05979062923._4
1267+ let newPositionTimestamp = $t05979062923._5
1268+ let baseAssetReserveAfter = $t05979062923._6
1269+ let quoteAssetReserveAfter = $t05979062923._7
1270+ let totalPositionSizeAfter = $t05979062923._8
1271+ let openInterestNotionalAfter = $t05979062923._9
1272+ let totalLongAfter = $t05979062923._10
1273+ let totalShortAfter = $t05979062923._11
1274+ let totalLongOpenInterestAfter = $t05979062923._12
1275+ let totalShortOpenInterestAfter = $t05979062923._13
1276+ let rolloverFee = $t05979062923._14
1277+ let $t06292963000 = distributeFee((feeAmount + rolloverFee))
1278+ let feeToStakers = $t06292963000._1
1279+ let feeToVault = $t06292963000._2
12801280 let stake = if ((_amount >= rolloverFee))
12811281 then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))])
12821282 else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil)
13381338 else isMarketClosed())
13391339 then throw("Invalid addMargin parameters")
13401340 else {
1341- let $t06515965339 = getPosition(_trader, _direction)
1342- let oldPositionSize = $t06515965339._1
1343- let oldPositionMargin = $t06515965339._2
1344- let oldPositionOpenNotional = $t06515965339._3
1345- let oldPositionLstUpdCPF = $t06515965339._4
1346- let oldPositionTimestamp = $t06515965339._5
1341+ let $t06534265522 = getPosition(_trader, _direction)
1342+ let oldPositionSize = $t06534265522._1
1343+ let oldPositionMargin = $t06534265522._2
1344+ let oldPositionOpenNotional = $t06534265522._3
1345+ let oldPositionLstUpdCPF = $t06534265522._4
1346+ let oldPositionTimestamp = $t06534265522._5
13471347 let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)])
13481348 if ((stake == stake))
13491349 then {
13501350 let rolloverFee = calcRolloverFee(oldPositionMargin, oldPositionTimestamp)
13511351 let doTransferFeeToStakers = if ((rolloverFee > 0))
13521352 then {
1353- let $t06562465683 = distributeFee(rolloverFee)
1354- let feeToStakers = $t06562465683._1
1355- let feeToVault = $t06562465683._2
1353+ let $t06580765866 = distributeFee(rolloverFee)
1354+ let feeToStakers = $t06580765866._1
1355+ let feeToVault = $t06580765866._2
13561356 let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil)
13571357 if ((unstake == unstake))
13581358 then {
14031403 else isMarketClosed())
14041404 then throw("Invalid removeMargin parameters")
14051405 else {
1406- let $t06718467364 = getPosition(_trader, _direction)
1407- let oldPositionSize = $t06718467364._1
1408- let oldPositionMargin = $t06718467364._2
1409- let oldPositionOpenNotional = $t06718467364._3
1410- let oldPositionLstUpdCPF = $t06718467364._4
1411- let oldPositionTimestamp = $t06718467364._5
1412- let $t06737067619 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1413- let remainMargin = $t06737067619._1
1414- let badDebt = $t06737067619._2
1415- let fundingPayment = $t06737067619._3
1416- let rolloverFee = $t06737067619._4
1406+ let $t06736767547 = getPosition(_trader, _direction)
1407+ let oldPositionSize = $t06736767547._1
1408+ let oldPositionMargin = $t06736767547._2
1409+ let oldPositionOpenNotional = $t06736767547._3
1410+ let oldPositionLstUpdCPF = $t06736767547._4
1411+ let oldPositionTimestamp = $t06736767547._5
1412+ let $t06755367802 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1413+ let remainMargin = $t06755367802._1
1414+ let badDebt = $t06755367802._2
1415+ let fundingPayment = $t06755367802._3
1416+ let rolloverFee = $t06755367802._4
14171417 if ((badDebt != 0))
14181418 then throw("Invalid removed margin amount")
14191419 else {
14211421 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
14221422 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
14231423 else {
1424- let $t06800568064 = distributeFee(rolloverFee)
1425- let feeToStakers = $t06800568064._1
1426- let feeToVault = $t06800568064._2
1424+ let $t06818868247 = distributeFee(rolloverFee)
1425+ let feeToStakers = $t06818868247._1
1426+ let feeToVault = $t06818868247._2
14271427 let doTransferFeeToStakers = if ((rolloverFee > 0))
14281428 then {
14291429 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
14811481 then throw("Invalid closePosition parameters")
14821482 else {
14831483 let oldPositionTimestamp = getPosition(_trader, _direction)._5
1484- let $t07039971002 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1485- let newPositionSize = $t07039971002._1
1486- let newPositionMargin = $t07039971002._2
1487- let newPositionOpenNotional = $t07039971002._3
1488- let newPositionLstUpdCPF = $t07039971002._4
1489- let positionBadDebt = $t07039971002._5
1490- let realizedPnl = $t07039971002._6
1491- let marginToTrader = $t07039971002._7
1492- let quoteAssetReserveAfter = $t07039971002._8
1493- let baseAssetReserveAfter = $t07039971002._9
1494- let totalPositionSizeAfter = $t07039971002._10
1495- let openInterestNotionalAfter = $t07039971002._11
1496- let totalLongAfter = $t07039971002._12
1497- let totalShortAfter = $t07039971002._13
1498- let totalLongOpenInterestAfter = $t07039971002._14
1499- let totalShortOpenInterestAfter = $t07039971002._15
1500- let realizedFee = $t07039971002._16
1484+ let $t07058271185 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1485+ let newPositionSize = $t07058271185._1
1486+ let newPositionMargin = $t07058271185._2
1487+ let newPositionOpenNotional = $t07058271185._3
1488+ let newPositionLstUpdCPF = $t07058271185._4
1489+ let positionBadDebt = $t07058271185._5
1490+ let realizedPnl = $t07058271185._6
1491+ let marginToTrader = $t07058271185._7
1492+ let quoteAssetReserveAfter = $t07058271185._8
1493+ let baseAssetReserveAfter = $t07058271185._9
1494+ let totalPositionSizeAfter = $t07058271185._10
1495+ let openInterestNotionalAfter = $t07058271185._11
1496+ let totalLongAfter = $t07058271185._12
1497+ let totalShortAfter = $t07058271185._13
1498+ let totalLongOpenInterestAfter = $t07058271185._14
1499+ let totalShortOpenInterestAfter = $t07058271185._15
1500+ let realizedFee = $t07058271185._16
15011501 if ((positionBadDebt > 0))
15021502 then throw("Invalid closePosition parameters: bad debt")
15031503 else if ((oldPositionTimestamp >= lastTimestamp()))
15211521 case _ =>
15221522 throw("Invalid referrerFee")
15231523 }
1524- let $t07197472047 = distributeFee((realizedFee - referrerFee))
1525- let feeToStakers = $t07197472047._1
1526- let feeToVault = $t07197472047._2
1524+ let $t07215772230 = distributeFee((realizedFee - referrerFee))
1525+ let feeToStakers = $t07215772230._1
1526+ let feeToVault = $t07215772230._2
15271527 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
15281528 if ((depositVault == depositVault))
15291529 then {
15911591 else false
15921592 let oldPositionSize = getPosition(_trader, _direction)._1
15931593 let positionSizeAbs = abs(oldPositionSize)
1594- let $t07464074963 = if (isPartialLiquidation)
1594+ let $t07482375146 = if (isPartialLiquidation)
15951595 then {
15961596 let liquidationSize = getPartialLiquidationAmount(_trader, oldPositionSize)
15971597 let liquidationRatio = divd(abs(liquidationSize), positionSizeAbs)
15981598 $Tuple2(liquidationRatio, abs(liquidationSize))
15991599 }
16001600 else $Tuple2(0, positionSizeAbs)
1601- let liquidationRatio = $t07464074963._1
1602- let liquidationSize = $t07464074963._2
1603- let $t07496975625 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
1601+ let liquidationRatio = $t07482375146._1
1602+ let liquidationSize = $t07482375146._2
1603+ let $t07515275808 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
16041604 then liquidationSize
16051605 else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true)
1606- let newPositionSize = $t07496975625._1
1607- let newPositionMargin = $t07496975625._2
1608- let newPositionOpenNotional = $t07496975625._3
1609- let newPositionLstUpdCPF = $t07496975625._4
1610- let positionBadDebt = $t07496975625._5
1611- let realizedPnl = $t07496975625._6
1612- let marginToTrader = $t07496975625._7
1613- let quoteAssetReserveAfter = $t07496975625._8
1614- let baseAssetReserveAfter = $t07496975625._9
1615- let totalPositionSizeAfter = $t07496975625._10
1616- let openInterestNotionalAfter = $t07496975625._11
1617- let totalLongAfter = $t07496975625._12
1618- let totalShortAfter = $t07496975625._13
1619- let totalLongOpenInterestAfter = $t07496975625._14
1620- let totalShortOpenInterestAfter = $t07496975625._15
1621- let liquidationPenalty = $t07496975625._16
1606+ let newPositionSize = $t07515275808._1
1607+ let newPositionMargin = $t07515275808._2
1608+ let newPositionOpenNotional = $t07515275808._3
1609+ let newPositionLstUpdCPF = $t07515275808._4
1610+ let positionBadDebt = $t07515275808._5
1611+ let realizedPnl = $t07515275808._6
1612+ let marginToTrader = $t07515275808._7
1613+ let quoteAssetReserveAfter = $t07515275808._8
1614+ let baseAssetReserveAfter = $t07515275808._9
1615+ let totalPositionSizeAfter = $t07515275808._10
1616+ let openInterestNotionalAfter = $t07515275808._11
1617+ let totalLongAfter = $t07515275808._12
1618+ let totalShortAfter = $t07515275808._13
1619+ let totalLongOpenInterestAfter = $t07515275808._14
1620+ let totalShortOpenInterestAfter = $t07515275808._15
1621+ let liquidationPenalty = $t07515275808._16
16221622 let feeToLiquidator = (liquidationPenalty / 2)
16231623 let feeToVault = (liquidationPenalty - feeToLiquidator)
16241624 let ammBalance = (cbalance() - liquidationPenalty)
16791679 then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp)))
16801680 else {
16811681 let underlyingPrice = getOraclePrice()
1682- let $t07784377921 = getFunding()
1683- let shortPremiumFraction = $t07784377921._1
1684- let longPremiumFraction = $t07784377921._2
1685- let premiumToVault = $t07784377921._3
1682+ let $t07802678104 = getFunding()
1683+ let shortPremiumFraction = $t07802678104._1
1684+ let longPremiumFraction = $t07802678104._2
1685+ let premiumToVault = $t07802678104._3
16861686 let doPayFundingToVault = if ((premiumToVault > 0))
16871687 then {
16881688 let doPayFundingToVault = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(premiumToVault)], nil)
17371737 func syncTerminalPriceToOracle () = {
17381738 let _qtAstR = qtAstR()
17391739 let _bsAstR = bsAstR()
1740- let $t07974480110 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1741- let newQuoteAssetWeight = $t07974480110._1
1742- let newBaseAssetWeight = $t07974480110._2
1743- let marginToVault = $t07974480110._3
1740+ let $t07992180287 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1741+ let newQuoteAssetWeight = $t07992180287._1
1742+ let newBaseAssetWeight = $t07992180287._2
1743+ let marginToVault = $t07992180287._3
17441744 let marginToVaultAdj = if (if ((0 > marginToVault))
17451745 then (abs(marginToVault) > cbalance())
17461746 else false)
18051805 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18061806 if ((sync == sync))
18071807 then {
1808- let $t08390484040 = getPosition(_trader, _direction)
1809- let positionSize = $t08390484040._1
1810- let positionMargin = $t08390484040._2
1811- let pon = $t08390484040._3
1812- let positionLstUpdCPF = $t08390484040._4
1813- let positionTimestamp = $t08390484040._5
1814- let $t08404384156 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1815- let positionNotional = $t08404384156._1
1816- let unrealizedPnl = $t08404384156._2
1817- let $t08415984383 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1818- let remainMargin = $t08415984383._1
1819- let badDebt = $t08415984383._2
1820- let fundingPayment = $t08415984383._3
1821- let rolloverFee = $t08415984383._4
1808+ let $t08408184217 = getPosition(_trader, _direction)
1809+ let positionSize = $t08408184217._1
1810+ let positionMargin = $t08408184217._2
1811+ let pon = $t08408184217._3
1812+ let positionLstUpdCPF = $t08408184217._4
1813+ let positionTimestamp = $t08408184217._5
1814+ let $t08422084333 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1815+ let positionNotional = $t08422084333._1
1816+ let unrealizedPnl = $t08422084333._2
1817+ let $t08433684560 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1818+ let remainMargin = $t08433684560._1
1819+ let badDebt = $t08433684560._2
1820+ let fundingPayment = $t08433684560._3
1821+ let rolloverFee = $t08433684560._4
18221822 throw(((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader, _direction))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee)))
18231823 }
18241824 else throw("Strict value is not equal to itself.")
18401840
18411841 @Callable(i)
18421842 func view_getTerminalAmmPrice () = {
1843- let $t08511885199 = getTerminalAmmState()
1844- let terminalQuoteAssetReserve = $t08511885199._1
1845- let terminalBaseAssetReserve = $t08511885199._2
1843+ let $t08529585376 = getTerminalAmmState()
1844+ let terminalQuoteAssetReserve = $t08529585376._1
1845+ let terminalBaseAssetReserve = $t08529585376._2
18461846 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
18471847 throw(toString(price))
18481848 }
18581858 if ((sync == sync))
18591859 then {
18601860 let underlyingPrice = getOraclePrice()
1861- let $t08585185929 = getFunding()
1862- let shortPremiumFraction = $t08585185929._1
1863- let longPremiumFraction = $t08585185929._2
1864- let premiumToVault = $t08585185929._3
1861+ let $t08602886106 = getFunding()
1862+ let shortPremiumFraction = $t08602886106._1
1863+ let longPremiumFraction = $t08602886106._2
1864+ let premiumToVault = $t08602886106._3
18651865 let longFunding = divd(longPremiumFraction, underlyingPrice)
18661866 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
18671867 throw(((((s(longFunding) + s(shortFunding)) + s(getSpotPrice())) + s(getOraclePrice())) + s(premiumToVault)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let k_baseOracle = "k_baseOracle"
55
66 let k_quoteOracle = "k_quoteOracle"
77
88 let k_balance = "k_balance"
99
1010 let k_sequence = "k_sequence"
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_positionSequence = "k_positionSequence"
2121
2222 let k_positionFee = "k_positionFee"
2323
2424 let k_positionLastUpdatedTimestamp = "k_positionTimestamp"
2525
2626 let k_initialized = "k_initialized"
2727
2828 let k_paused = "k_paused"
2929
3030 let k_closeOnly = "k_closeOnly"
3131
3232 let k_fee = "k_fee"
3333
3434 let k_rolloverFee = "k_rollover_fee"
3535
3636 let k_fundingPeriod = "k_fundingPeriod"
3737
3838 let k_initMarginRatio = "k_initMarginRatio"
3939
4040 let k_maintenanceMarginRatio = "k_mmr"
4141
4242 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
4343
4444 let k_partialLiquidationRatio = "k_partLiquidationRatio"
4545
4646 let k_spreadLimit = "k_spreadLimit"
4747
4848 let k_maxPriceImpact = "k_maxPriceImpact"
4949
5050 let k_maxPriceSpread = "k_maxPriceSpread"
5151
5252 let k_maxOpenNotional = "k_maxOpenNotional"
5353
5454 let k_feeToStakersPercent = "k_feeToStakersPercent"
5555
5656 let k_maxOracleDelay = "k_maxOracleDelay"
5757
5858 let k_fundingMode = "k_fundingMode"
5959
6060 let k_oracleMode = "k_oracleMode"
6161
6262 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
6363
6464 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
6565
6666 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
6767
6868 let k_longFundingRate = "k_longFundingRate"
6969
7070 let k_shortFundingRate = "k_shortFundingRate"
7171
7272 let k_quoteAssetReserve = "k_qtAstR"
7373
7474 let k_baseAssetReserve = "k_bsAstR"
7575
7676 let k_quoteAssetWeight = "k_qtAstW"
7777
7878 let k_baseAssetWeight = "k_bsAstW"
7979
8080 let k_totalPositionSize = "k_totalPositionSize"
8181
8282 let k_totalLongPositionSize = "k_totalLongPositionSize"
8383
8484 let k_totalShortPositionSize = "k_totalShortPositionSize"
8585
8686 let k_openInterestNotional = "k_openInterestNotional"
8787
8888 let k_openInterestShort = "k_openInterestShort"
8989
9090 let k_openInterestLong = "k_openInterestLong"
9191
9292 let k_lastTx = "k_lastTx"
9393
9494 let k_coordinatorAddress = "k_coordinatorAddress"
9595
9696 let k_vault_address = "k_vault_address"
9797
9898 let k_admin_address = "k_admin_address"
9999
100100 let k_quote_asset = "k_quote_asset"
101101
102102 let k_staking_address = "k_staking_address"
103103
104104 let k_miner_address = "k_miner_address"
105105
106106 let k_orders_address = "k_orders_address"
107107
108108 let k_referral_address = "k_referral_address"
109109
110110 let k_nft_manager_address = "k_nft_manager_address"
111111
112112 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
113113
114114
115115 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
116116
117117
118118 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
119119
120120
121121 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
122122
123123
124124 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set")
125125
126126
127127 func vaultAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_vault_address)), "Vault not set")
128128
129129
130130 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set")
131131
132132
133133 func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set")
134134
135135
136136 func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set")
137137
138138
139139 func nftManagerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_nft_manager_address)), "NFT Manager not set")
140140
141141
142142 let k_token_param = "k_token_param"
143143
144144 let k_token_type = "k_token_type"
145145
146146 let FEE_REDUCTION_TOKEN_TYPE = "fee_reduction"
147147
148148 let DIR_LONG = 1
149149
150150 let DIR_SHORT = 2
151151
152152 let SECONDS = 1000
153153
154154 let DECIMAL_NUMBERS = 6
155155
156156 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
157157
158158 let MINUTES_IN_YEAR = (525600 * DECIMAL_UNIT)
159159
160160 let ONE_DAY = (86400 * DECIMAL_UNIT)
161161
162162 let PNL_OPTION_SPOT = 1
163163
164164 let PNL_OPTION_ORACLE = 2
165165
166166 let FUNDING_ASYMMETRIC = 1
167167
168168 let FUNDING_SYMMETRIC = 2
169169
170170 let ORACLE_PLAIN = 1
171171
172172 let ORACLE_JIT = 2
173173
174174 func s (_x) = (toString(_x) + ",")
175175
176176
177177 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
178178
179179
180180 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
181181
182182
183183 func bdivd (_x,_y) = fraction(_x, toBigInt(DECIMAL_UNIT), _y, HALFEVEN)
184184
185185
186186 func bmuld (_x,_y) = fraction(_x, _y, toBigInt(DECIMAL_UNIT), HALFEVEN)
187187
188188
189189 func abs (_x) = if ((_x > 0))
190190 then _x
191191 else -(_x)
192192
193193
194194 func vmax (_x,_y) = if ((_x >= _y))
195195 then _x
196196 else _y
197197
198198
199199 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
200200
201201
202202 func intOr (k,def) = valueOrElse(getInteger(this, k), def)
203203
204204
205205 func strA (_address,_key) = {
206206 let val = valueOrErrorMessage(getString(_address, _key), ("No value for key " + _key))
207207 val
208208 }
209209
210210
211211 func intA (_address,_key) = {
212212 let val = valueOrErrorMessage(getInteger(_address, _key), ("No value for key " + _key))
213213 val
214214 }
215215
216216
217217 func cbalance () = int(k_balance)
218218
219219
220220 func cbalance0 () = intOr(k_balance, 0)
221221
222222
223223 func fee () = int(k_fee)
224224
225225
226226 func rolloverFeeRate () = int(k_rolloverFee)
227227
228228
229229 func initMarginRatio () = int(k_initMarginRatio)
230230
231231
232232 func qtAstR () = int(k_quoteAssetReserve)
233233
234234
235235 func qtAstR0 () = intOr(k_quoteAssetReserve, 0)
236236
237237
238238 func bsAstR () = int(k_baseAssetReserve)
239239
240240
241241 func bsAstR0 () = intOr(k_baseAssetReserve, 0)
242242
243243
244244 func qtAstW () = intOr(k_quoteAssetWeight, DECIMAL_UNIT)
245245
246246
247247 func bsAstW () = intOr(k_baseAssetWeight, DECIMAL_UNIT)
248248
249249
250250 func totalPositionSize () = int(k_totalPositionSize)
251251
252252
253253 func openInterestNotional () = int(k_openInterestNotional)
254254
255255
256256 func openInterestShort () = int(k_openInterestShort)
257257
258258
259259 func openInterestLong () = int(k_openInterestLong)
260260
261261
262262 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
263263
264264
265265 func fundingPeriodRaw () = int(k_fundingPeriod)
266266
267267
268268 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
269269
270270
271271 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
272272
273273
274274 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
275275
276276
277277 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
278278
279279
280280 func partialLiquidationRatio () = int(k_partialLiquidationRatio)
281281
282282
283283 func spreadLimit () = int(k_spreadLimit)
284284
285285
286286 func maxPriceImpact () = int(k_maxPriceImpact)
287287
288288
289289 func maxPriceSpread () = int(k_maxPriceSpread)
290290
291291
292292 func maxOpenNotional () = int(k_maxOpenNotional)
293293
294294
295295 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
296296
297297
298298 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
299299
300300
301301 func totalShortPositionSize () = int(k_totalShortPositionSize)
302302
303303
304304 func totalLongPositionSize () = int(k_totalLongPositionSize)
305305
306306
307307 func lastSequence () = intOr(k_sequence, 0)
308308
309309
310310 func feeToStakersPercent () = int(k_feeToStakersPercent)
311311
312312
313313 func maxOracleDelay () = int(k_maxOracleDelay)
314314
315315
316316 func fundingMode () = intOr(k_fundingMode, FUNDING_ASYMMETRIC)
317317
318318
319319 func oracleMode () = intOr(k_oracleMode, ORACLE_PLAIN)
320320
321321
322322 func lastTimestamp () = lastBlock.timestamp
323323
324324
325325 func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller))
326326
327327
328328 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
329329 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
330330 if (if (_largerThanOrEqualTo)
331331 then (0 > remainingMarginRatio)
332332 else false)
333333 then throw(((("Invalid margin: " + toString(_marginRatio)) + " < ") + toString(_baseMarginRatio)))
334334 else if (if (!(_largerThanOrEqualTo))
335335 then (remainingMarginRatio >= 0)
336336 else false)
337337 then throw(((("Invalid margin: " + toString(_marginRatio)) + " > ") + toString(_baseMarginRatio)))
338338 else true
339339 }
340340
341341
342342 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
343343 then throw("Should not be called with _positionSize == 0")
344344 else if ((_positionSize > 0))
345345 then latestLongCumulativePremiumFraction()
346346 else latestShortCumulativePremiumFraction()
347347
348348
349349 func getPosition (_trader,_direction) = {
350350 let positionKey = ((_trader + "_") + toString(_direction))
351351 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, positionKey))
352352 match positionSizeOpt {
353353 case positionSize: Int =>
354354 $Tuple5(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, positionKey)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, positionKey)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedTimestamp, positionKey)))
355355 case _ =>
356356 $Tuple5(0, 0, 0, 0, 0)
357357 }
358358 }
359359
360360
361361 func getDirection (_positionSize) = if ((0 > _positionSize))
362362 then DIR_SHORT
363363 else DIR_LONG
364364
365365
366366 func getPositionFee (_trader,_direction) = {
367367 let positionKey = ((_trader + "_") + toString(_direction))
368368 let positionFeeOpt = getInteger(this, toCompositeKey(k_positionFee, positionKey))
369369 match positionFeeOpt {
370370 case positionFee: Int =>
371371 positionFee
372372 case _ =>
373373 fee()
374374 }
375375 }
376376
377377
378378 func requireOpenPosition (_trader,_direction) = if ((getPosition(_trader, _direction)._1 == 0))
379379 then throw("No open position")
380380 else true
381381
382382
383383 func getOracleData (key) = {
384384 let oracleDataStr = getString(this, key)
385385 if (if (isDefined(oracleDataStr))
386386 then (value(oracleDataStr) != "")
387387 else false)
388388 then {
389389 let oracleData = split(value(oracleDataStr), ",")
390390 let oracleAddress = valueOrErrorMessage(addressFromString(oracleData[0]), ("Invalid oracle address in: " + value(oracleDataStr)))
391391 let priceKey = oracleData[1]
392392 let blockKey = oracleData[2]
393393 let openKey = oracleData[3]
394394 $Tuple4(oracleAddress, priceKey, blockKey, openKey)
395395 }
396396 else unit
397397 }
398398
399399
400400 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
401401
402402
403403 func paused () = valueOrElse(getBoolean(this, k_paused), false)
404404
405405
406406 func closeOnly () = valueOrElse(getBoolean(this, k_closeOnly), false)
407407
408408
409409 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
410410 then {
411411 let newBase = (bsAstR() - _baseAssetAmount)
412412 if ((0 >= newBase))
413413 then throw("Tx lead to base asset reserve <= 0, revert")
414414 else $Tuple3((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount))
415415 }
416416 else {
417417 let newQuote = (qtAstR() - _quoteAssetAmount)
418418 if ((0 >= newQuote))
419419 then throw("Tx lead to base quote reserve <= 0, revert")
420420 else $Tuple3(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount))
421421 }
422422
423423
424424 func calcInvariant (_qtAstR,_bsAstR) = {
425425 let bqtAstR = toBigInt(_qtAstR)
426426 let bbsAstR = toBigInt(_bsAstR)
427427 bmuld(bqtAstR, bbsAstR)
428428 }
429429
430430
431431 func swapInput (_isAdd,_quoteAssetAmount) = {
432432 let _qtAstR = qtAstR()
433433 let _bsAstR = bsAstR()
434434 let _qtAstW = qtAstW()
435435 let _bsAstW = bsAstW()
436436 let quoteAssetAmountAdjusted = divd(_quoteAssetAmount, _qtAstW)
437437 let k = calcInvariant(_qtAstR, _bsAstR)
438438 let quoteAssetReserveAfter = if (_isAdd)
439439 then (_qtAstR + quoteAssetAmountAdjusted)
440440 else (_qtAstR - quoteAssetAmountAdjusted)
441441 let baseAssetReserveAfter = toInt(bdivd(k, toBigInt(quoteAssetReserveAfter)))
442442 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
443443 let amountBaseAssetBought = if (_isAdd)
444444 then amountBaseAssetBoughtAbs
445445 else -(amountBaseAssetBoughtAbs)
446- let $t01591816088 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
447- let quoteAssetReserveAfter1 = $t01591816088._1
448- let baseAssetReserveAfter1 = $t01591816088._2
449- let totalPositionSizeAfter1 = $t01591816088._3
446+ let $t01592616096 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
447+ let quoteAssetReserveAfter1 = $t01592616096._1
448+ let baseAssetReserveAfter1 = $t01592616096._2
449+ let totalPositionSizeAfter1 = $t01592616096._3
450450 let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
451451 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
452452 let priceDiff = abs((priceBefore - marketPrice))
453453 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
454454 let maxPriceImpactValue = maxPriceImpact()
455455 if ((priceImpact > maxPriceImpactValue))
456456 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)))
457457 else $Tuple4(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1)
458458 }
459459
460460
461461 func calcRolloverFee (_oldPositionMargin,_oldPositionLastUpdatedTimestamp) = {
462462 let positionMinutes = ((((lastTimestamp() - _oldPositionLastUpdatedTimestamp) / 1000) / 60) * DECIMAL_UNIT)
463463 let rolloverFee = divd(muld(muld(_oldPositionMargin, positionMinutes), rolloverFeeRate()), MINUTES_IN_YEAR)
464464 rolloverFee
465465 }
466466
467467
468468 func calcRemainMarginWithFundingPaymentAndRolloverFee (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_oldPositionLastUpdatedTimestamp,_marginDelta) = {
469469 let fundingPayment = if ((_oldPositionSize != 0))
470470 then {
471471 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
472472 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
473473 }
474474 else 0
475475 let rolloverFee = calcRolloverFee(_oldPositionMargin, _oldPositionLastUpdatedTimestamp)
476476 let signedMargin = (((_marginDelta - rolloverFee) - fundingPayment) + _oldPositionMargin)
477- let $t01875518882 = if ((0 > signedMargin))
477+ let $t01876318890 = if ((0 > signedMargin))
478478 then $Tuple2(0, abs(signedMargin))
479479 else $Tuple2(abs(signedMargin), 0)
480- let remainMargin = $t01875518882._1
481- let badDebt = $t01875518882._2
480+ let remainMargin = $t01876318890._1
481+ let badDebt = $t01876318890._2
482482 $Tuple4(remainMargin, badDebt, fundingPayment, rolloverFee)
483483 }
484484
485485
486486 func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
487487 let priceBefore = divd(muld(_quoteAssetReserve, _quoteAssetWeight), muld(_baseAssetReserve, _baseAssetWeight))
488488 if ((_baseAssetAmount == 0))
489489 then throw("Invalid base asset amount")
490490 else {
491491 let k = calcInvariant(_quoteAssetReserve, _baseAssetReserve)
492492 let baseAssetPoolAmountAfter = if (_isAdd)
493493 then (_baseAssetReserve + _baseAssetAmount)
494494 else (_baseAssetReserve - _baseAssetAmount)
495495 let quoteAssetAfter = toInt(bdivd(k, toBigInt(baseAssetPoolAmountAfter)))
496496 let quoteAssetDelta = abs((quoteAssetAfter - _quoteAssetReserve))
497497 let quoteAssetSold = muld(quoteAssetDelta, _quoteAssetWeight)
498498 let maxPriceImpactValue = maxPriceImpact()
499- let $t02014420306 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
500- let quoteAssetReserveAfter1 = $t02014420306._1
501- let baseAssetReserveAfter1 = $t02014420306._2
502- let totalPositionSizeAfter1 = $t02014420306._3
499+ let $t02015220314 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
500+ let quoteAssetReserveAfter1 = $t02015220314._1
501+ let baseAssetReserveAfter1 = $t02015220314._2
502+ let totalPositionSizeAfter1 = $t02015220314._3
503503 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
504504 let priceDiff = abs((priceBefore - marketPrice))
505505 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
506506 if (if ((priceImpact > maxPriceImpactValue))
507507 then _checkMaxPriceImpact
508508 else false)
509509 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)))
510510 else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, (totalLongPositionSize() - (if (_isAdd)
511511 then abs(_baseAssetAmount)
512512 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
513513 then abs(_baseAssetAmount)
514514 else 0)), priceImpact)
515515 }
516516 }
517517
518518
519519 func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), qtAstW(), bsAstR(), bsAstW())
520520
521521
522522 func getOraclePriceValue (oracle,priceKey,blockKey) = {
523523 let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey))
524524 if ((blockKey != ""))
525525 then {
526526 let currentBlock = height
527527 let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, blockKey), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
528528 if (((currentBlock - lastOracleBlock) > maxOracleDelay()))
529529 then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock)))
530530 else lastValue
531531 }
532532 else lastValue
533533 }
534534
535535
536536 func getOraclePrice () = {
537537 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
538538 let baseOraclePrice = getOraclePriceValue(baseOracle._1, baseOracle._2, baseOracle._3)
539539 let quoteOracle = getOracleData(k_quoteOracle)
540540 let quoteOraclePrice = if (isDefined(quoteOracle))
541541 then {
542542 let quoteOracleV = value(quoteOracle)
543543 getOraclePriceValue(quoteOracleV._1, quoteOracleV._2, quoteOracleV._3)
544544 }
545545 else DECIMAL_UNIT
546546 divd(baseOraclePrice, quoteOraclePrice)
547547 }
548548
549549
550550 func isMarketClosed () = {
551551 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
552552 let oracle = baseOracle._1
553553 let openKey = baseOracle._4
554554 if ((openKey != ""))
555555 then {
556556 let isOpen = valueOrErrorMessage(getBoolean(oracle, openKey), ((("Can not get oracle is open/closed. Oracle: " + toString(oracle)) + " key: ") + openKey))
557557 !(isOpen)
558558 }
559559 else false
560560 }
561561
562562
563563 func absPriceDiff (_oraclePrice,_quoteAssetReserve,_baseAssetReserve,_qtAstW,_bsAstW) = {
564564 let priceAfter = divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
565565 let averagePrice = divd((_oraclePrice + priceAfter), (2 * DECIMAL_UNIT))
566566 let absPriceDiff = divd(abs((_oraclePrice - priceAfter)), averagePrice)
567567 absPriceDiff
568568 }
569569
570570
571571 func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = {
572572 let oraclePrice = getOraclePrice()
573573 let _qtAstW = qtAstW()
574574 let _bsAstW = bsAstW()
575575 let absPriceDiffBefore = absPriceDiff(oraclePrice, qtAstR(), bsAstR(), _qtAstW, _bsAstW)
576576 let absPriceDiffAfter = absPriceDiff(oraclePrice, _quoteAssetReserve, _baseAssetReserve, _qtAstW, _bsAstW)
577577 if (if ((absPriceDiffAfter > maxPriceSpread()))
578578 then (absPriceDiffAfter > absPriceDiffBefore)
579579 else false)
580580 then throw(((("Price spread " + toString(absPriceDiffAfter)) + " > max price spread ") + toString(maxPriceSpread())))
581581 else true
582582 }
583583
584584
585585 func requireNotOverMaxOpenNotional (_longOpenNotional,_shortOpenNotional) = {
586586 let _maxOpenNotional = maxOpenNotional()
587587 if ((_longOpenNotional > _maxOpenNotional))
588588 then throw(((("Long open notional " + toString(_longOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
589589 else if ((_shortOpenNotional > _maxOpenNotional))
590590 then throw(((("Short open notional " + toString(_shortOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
591591 else true
592592 }
593593
594594
595595 func getSpotPrice () = {
596596 let _quoteAssetReserve = qtAstR()
597597 let _baseAssetReserve = bsAstR()
598598 let _qtAstW = qtAstW()
599599 let _bsAstW = bsAstW()
600600 divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
601601 }
602602
603603
604604 func isOverFluctuationLimit () = {
605605 let oraclePrice = getOraclePrice()
606606 let currentPrice = getSpotPrice()
607607 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
608608 }
609609
610610
611611 func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
612612 let positionSizeAbs = abs(_positionSize)
613613 let isShort = (0 > _positionSize)
614614 let positionNotional = if ((_option == PNL_OPTION_SPOT))
615615 then {
616616 let outPositionNotional = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)._1
617617 outPositionNotional
618618 }
619619 else muld(positionSizeAbs, getOraclePrice())
620620 positionNotional
621621 }
622622
623623
624624 func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight,_option) = if ((_positionSize == 0))
625625 then throw("Invalid position size")
626626 else {
627627 let isShort = (0 > _positionSize)
628628 let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
629629 let unrealizedPnl = if (isShort)
630630 then (_positionOpenNotional - positionNotional)
631631 else (positionNotional - _positionOpenNotional)
632632 $Tuple2(positionNotional, unrealizedPnl)
633633 }
634634
635635
636636 func getPositionNotionalAndUnrealizedPnl (_trader,_direction,_option) = {
637- let $t02819128331 = getPosition(_trader, _direction)
638- let positionSize = $t02819128331._1
639- let positionMargin = $t02819128331._2
640- let positionOpenNotional = $t02819128331._3
641- let positionLstUpdCPF = $t02819128331._4
637+ let $t02819928339 = getPosition(_trader, _direction)
638+ let positionSize = $t02819928339._1
639+ let positionMargin = $t02819928339._2
640+ let positionOpenNotional = $t02819928339._3
641+ let positionLstUpdCPF = $t02819928339._4
642642 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
643643 }
644644
645645
646646 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
647647
648648
649649 func getMarginRatioByOption (_trader,_direction,_option) = {
650- let $t02886329016 = getPosition(_trader, _direction)
651- let positionSize = $t02886329016._1
652- let positionMargin = $t02886329016._2
653- let pon = $t02886329016._3
654- let positionLastUpdatedCPF = $t02886329016._4
655- let positionTimestamp = $t02886329016._5
656- let $t02902229127 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
657- let positionNotional = $t02902229127._1
658- let unrealizedPnl = $t02902229127._2
659- let $t02913229344 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
660- let remainMargin = $t02913229344._1
661- let badDebt = $t02913229344._2
650+ let $t02887129024 = getPosition(_trader, _direction)
651+ let positionSize = $t02887129024._1
652+ let positionMargin = $t02887129024._2
653+ let pon = $t02887129024._3
654+ let positionLastUpdatedCPF = $t02887129024._4
655+ let positionTimestamp = $t02887129024._5
656+ let $t02903029135 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
657+ let positionNotional = $t02903029135._1
658+ let unrealizedPnl = $t02903029135._2
659+ let $t02914029352 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
660+ let remainMargin = $t02914029352._1
661+ let badDebt = $t02914029352._2
662662 calcMarginRatio(remainMargin, badDebt, positionNotional)
663663 }
664664
665665
666666 func getMarginRatio (_trader,_direction) = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
667667
668668
669669 func getPartialLiquidationAmount (_trader,_positionSize) = {
670670 let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader, getDirection(_positionSize)), maintenanceMarginRatio())))
671671 let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio)
672672 let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false)
673673 let maxExchangedQuoteAssetAmount = swapResult._1
674674 let priceImpact = swapResult._7
675675 if ((maxPriceImpact() > priceImpact))
676676 then maxExchangedPositionSize
677677 else muld(abs(_positionSize), partialLiquidationRatio())
678678 }
679679
680680
681681 func internalClosePosition (_trader,_direction,_size,_fee,_minQuoteAssetAmount,_addToMargin,_checkMaxPriceImpact,_liquidate) = {
682- let $t03050730675 = getPosition(_trader, _direction)
683- let oldPositionSize = $t03050730675._1
684- let oldPositionMargin = $t03050730675._2
685- let oldPositionOpenNotional = $t03050730675._3
686- let oldPositionLstUpdCPF = $t03050730675._4
687- let oldPositionTimestamp = $t03050730675._5
682+ let $t03051530683 = getPosition(_trader, _direction)
683+ let oldPositionSize = $t03051530683._1
684+ let oldPositionMargin = $t03051530683._2
685+ let oldPositionOpenNotional = $t03051530683._3
686+ let oldPositionLstUpdCPF = $t03051530683._4
687+ let oldPositionTimestamp = $t03051530683._5
688688 let isLongPosition = (oldPositionSize > 0)
689689 let absOldPositionSize = abs(oldPositionSize)
690690 if (if ((absOldPositionSize >= _size))
691691 then (_size > 0)
692692 else false)
693693 then {
694694 let isPartialClose = (absOldPositionSize > _size)
695- let $t03096731418 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
696- let exchangedQuoteAssetAmount = $t03096731418._1
697- let quoteAssetReserveAfter = $t03096731418._2
698- let baseAssetReserveAfter = $t03096731418._3
699- let totalPositionSizeAfter = $t03096731418._4
695+ let $t03097531426 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
696+ let exchangedQuoteAssetAmount = $t03097531426._1
697+ let quoteAssetReserveAfter = $t03097531426._2
698+ let baseAssetReserveAfter = $t03097531426._3
699+ let totalPositionSizeAfter = $t03097531426._4
700700 let exchangedPositionSize = if ((oldPositionSize > 0))
701701 then -(_size)
702702 else _size
703- let $t03163331857 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
704- let oldPositionNotional = $t03163331857._1
705- let unrealizedPnl = $t03163331857._2
703+ let $t03164131865 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
704+ let oldPositionNotional = $t03164131865._1
705+ let unrealizedPnl = $t03164131865._2
706706 let realizedRatio = divd(abs(exchangedPositionSize), absOldPositionSize)
707707 let realizedPnl = muld(unrealizedPnl, realizedRatio)
708- let $t03219832444 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
709- let remainMarginBefore = $t03219832444._1
710- let x1 = $t03219832444._2
711- let x2 = $t03219832444._3
712- let rolloverFee = $t03219832444._4
708+ let $t03220632452 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
709+ let remainMarginBefore = $t03220632452._1
710+ let x1 = $t03220632452._2
711+ let x2 = $t03220632452._3
712+ let rolloverFee = $t03220632452._4
713713 let positionBadDebt = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, realizedPnl)._2
714714 let realizedCloseFee = muld(muld(oldPositionNotional, realizedRatio), _fee)
715715 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
716716 let remainOpenNotional = if ((oldPositionSize > 0))
717717 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
718718 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
719719 let newPositionSize = (oldPositionSize + exchangedPositionSize)
720- let $t03385034236 = if ((newPositionSize == 0))
720+ let $t03385834244 = if ((newPositionSize == 0))
721721 then $Tuple2(0, 0)
722722 else $Tuple2(abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize))
723- let newPositionOpenNotional = $t03385034236._1
724- let newPositionLstUpdCPF = $t03385034236._2
723+ let newPositionOpenNotional = $t03385834244._1
724+ let newPositionLstUpdCPF = $t03385834244._2
725725 let openNotionalDelta = (oldPositionOpenNotional - newPositionOpenNotional)
726726 let marginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
727727 let newPositionMarginWithSameRatio = if ((oldPositionSize > 0))
728728 then (muld((newPositionOpenNotional + unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter)
729729 else (muld((newPositionOpenNotional - unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter)
730730 let marginToTraderRaw = ((remainMarginBefore - (newPositionMarginWithSameRatio + unrealizedPnlAfter)) - realizedCloseFee)
731731 let marginToTrader = if ((0 > marginToTraderRaw))
732732 then if (_liquidate)
733733 then 0
734734 else throw("Invalid internalClosePosition params: unable to pay fee")
735735 else marginToTraderRaw
736736 let newPositionMargin = if (_addToMargin)
737737 then (newPositionMarginWithSameRatio + marginToTrader)
738738 else newPositionMarginWithSameRatio
739739 if (if ((_minQuoteAssetAmount != 0))
740740 then (_minQuoteAssetAmount > exchangedQuoteAssetAmount)
741741 else false)
742742 then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount)))
743743 else $Tuple17(newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, positionBadDebt, realizedPnl, if (if (_addToMargin)
744744 then isPartialClose
745745 else false)
746746 then 0
747747 else marginToTrader, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() - openNotionalDelta), (totalLongPositionSize() - (if (isLongPosition)
748748 then abs(exchangedPositionSize)
749749 else 0)), (totalShortPositionSize() - (if (!(isLongPosition))
750750 then abs(exchangedPositionSize)
751751 else 0)), (openInterestLong() - (if (isLongPosition)
752752 then openNotionalDelta
753753 else 0)), (openInterestShort() - (if (!(isLongPosition))
754754 then openNotionalDelta
755755 else 0)), (realizedCloseFee + rolloverFee), exchangedQuoteAssetAmount)
756756 }
757757 else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(_size)) + " max: ") + toString(absOldPositionSize)))
758758 }
759759
760760
761761 func getTerminalAmmState () = {
762762 let _positionSize = totalPositionSize()
763763 if ((_positionSize == 0))
764764 then $Tuple2(qtAstR(), bsAstR())
765765 else {
766766 let direction = (_positionSize > 0)
767- let $t03748337662 = swapOutput(direction, abs(_positionSize), false)
768- let currentNetMarketValue = $t03748337662._1
769- let terminalQuoteAssetReserve = $t03748337662._2
770- let terminalBaseAssetReserve = $t03748337662._3
767+ let $t03749137670 = swapOutput(direction, abs(_positionSize), false)
768+ let currentNetMarketValue = $t03749137670._1
769+ let terminalQuoteAssetReserve = $t03749137670._2
770+ let terminalBaseAssetReserve = $t03749137670._3
771771 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
772772 }
773773 }
774774
775775
776776 func getQuoteAssetWeight (baseAssetReserve,totalPositionSize,quoteAssetReserve,targetPrice) = {
777777 let b = toBigInt(baseAssetReserve)
778778 let sz = toBigInt(totalPositionSize)
779779 let q = toBigInt(quoteAssetReserve)
780780 let p = toBigInt(targetPrice)
781781 let k = bmuld(q, b)
782782 let newB = (b + sz)
783783 let newQ = bdivd(k, newB)
784784 let z = bdivd(newQ, newB)
785785 let result = bdivd(p, z)
786786 toInt(result)
787787 }
788788
789789
790790 func getSyncTerminalPrice (_terminalPrice,_qtAstR,_bsAstR) = {
791791 let _positionSize = totalPositionSize()
792792 if ((_positionSize == 0))
793793 then {
794794 let newQtAstW = divd(muld(_terminalPrice, _bsAstR), _qtAstR)
795795 $Tuple3(newQtAstW, DECIMAL_UNIT, 0)
796796 }
797797 else {
798798 let direction = (_positionSize > 0)
799799 let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1
800800 let newQtAstW = getQuoteAssetWeight(_bsAstR, _positionSize, _qtAstR, _terminalPrice)
801801 let newBsAstW = DECIMAL_UNIT
802802 let marginToVault = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, _qtAstR, newQtAstW, _bsAstR, newBsAstW, PNL_OPTION_SPOT)._2
803803 $Tuple3(newQtAstW, newBsAstW, marginToVault)
804804 }
805805 }
806806
807807
808808 func getFunding () = {
809809 let underlyingPrice = getOraclePrice()
810810 let spotPrice = getSpotPrice()
811811 let premium = (spotPrice - underlyingPrice)
812812 if (if (isMarketClosed())
813813 then true
814814 else if ((fundingMode() == FUNDING_ASYMMETRIC))
815815 then if ((totalShortPositionSize() == 0))
816816 then true
817817 else (totalLongPositionSize() == 0)
818818 else false)
819819 then $Tuple3(0, 0, 0)
820820 else if ((0 > premium))
821821 then {
822822 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
823823 if ((fundingMode() == FUNDING_ASYMMETRIC))
824824 then {
825825 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
826826 $Tuple3(shortPremiumFraction, longPremiumFraction, 0)
827827 }
828828 else {
829829 let shortTotalPremiumFraction = abs(muld(shortPremiumFraction, totalShortPositionSize()))
830830 let longTotalPremiumFraction = abs(muld(shortPremiumFraction, totalLongPositionSize()))
831831 let premiumToVault = (shortTotalPremiumFraction - longTotalPremiumFraction)
832832 $Tuple3(shortPremiumFraction, shortPremiumFraction, premiumToVault)
833833 }
834834 }
835835 else {
836836 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
837837 if ((fundingMode() == FUNDING_ASYMMETRIC))
838838 then {
839839 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
840840 $Tuple3(shortPremiumFraction, longPremiumFraction, 0)
841841 }
842842 else {
843843 let longTotalPremiumFraction = abs(muld(longPremiumFraction, totalLongPositionSize()))
844844 let shortTotalPremiumFraction = abs(muld(longPremiumFraction, totalShortPositionSize()))
845845 let premiumToVault = (longTotalPremiumFraction - shortTotalPremiumFraction)
846846 $Tuple3(longPremiumFraction, longPremiumFraction, premiumToVault)
847847 }
848848 }
849849 }
850850
851851
852852 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
853853 let baseFeeRaw = fee()
854854 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
855- let $t04232642821 = if ((_artifactId != ""))
855+ let $t04233442829 = if ((_artifactId != ""))
856856 then {
857857 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
858858 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
859859 then {
860860 let reduction = intA(nftManagerAddress(), toCompositeKey(k_token_param, _artifactId))
861861 let adjustedFee = muld(baseFee, reduction)
862862 $Tuple2(adjustedFee, true)
863863 }
864864 else throw("Invalid attached artifact")
865865 }
866866 else $Tuple2(baseFee, false)
867- let adjustedFee = $t04232642821._1
868- let burnArtifact = $t04232642821._2
867+ let adjustedFee = $t04233442829._1
868+ let burnArtifact = $t04233442829._2
869869 $Tuple2(adjustedFee, burnArtifact)
870870 }
871871
872872
873873 func getForTraderWithArtifact (_trader,_artifactId) = {
874874 let doGetFeeDiscount = invoke(minerAddress(), "computeFeeDiscount", [_trader], nil)
875875 if ((doGetFeeDiscount == doGetFeeDiscount))
876876 then {
877877 let feeDiscount = match doGetFeeDiscount {
878878 case x: Int =>
879879 x
880880 case _ =>
881881 throw("Invalid computeFeeDiscount result")
882882 }
883- let $t04316743241 = getAdjustedFee(_artifactId, feeDiscount)
884- let adjustedFee = $t04316743241._1
885- let burnArtifact = $t04316743241._2
883+ let $t04317543249 = getAdjustedFee(_artifactId, feeDiscount)
884+ let adjustedFee = $t04317543249._1
885+ let burnArtifact = $t04317543249._2
886886 $Tuple2(adjustedFee, burnArtifact)
887887 }
888888 else throw("Strict value is not equal to itself.")
889889 }
890890
891891
892892 func getArtifactId (i) = {
893893 let artifactId = if ((size(i.payments) > 1))
894894 then toBase58String(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifactId"))
895895 else ""
896896 artifactId
897897 }
898898
899899
900900 func distributeFee (_feeAmount) = {
901901 let feeToStakers = muld(_feeAmount, feeToStakersPercent())
902902 let feeToVault = (_feeAmount - feeToStakers)
903903 $Tuple2(feeToStakers, feeToVault)
904904 }
905905
906906
907907 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = [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), IntegerEntry(k_maxOpenNotional, _maxOpenNotional), IntegerEntry(k_feeToStakersPercent, _feeToStakersPercent), IntegerEntry(k_maxOracleDelay, _maxOracleDelay), IntegerEntry(k_rolloverFee, _rolloverFee), IntegerEntry(k_fundingMode, _fundingMode), IntegerEntry(k_oracleMode, _oracleMode)]
908908
909909
910910 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)]
911911
912912
913913 func incrementPositionSequenceNumber (_isNewPosition,_trader,_direction) = {
914914 let positionKey = ((_trader + "_") + toString(_direction))
915915 if (_isNewPosition)
916916 then {
917917 let currentSequence = lastSequence()
918918 [IntegerEntry(toCompositeKey(k_positionSequence, positionKey), (currentSequence + 1)), IntegerEntry(k_sequence, (currentSequence + 1))]
919919 }
920920 else nil
921921 }
922922
923923
924924 func updatePositionFee (_isNewPosition,_trader,_direction,_fee) = {
925925 let positionKey = ((_trader + "_") + toString(_direction))
926926 if (_isNewPosition)
927927 then [IntegerEntry(toCompositeKey(k_positionFee, positionKey), _fee)]
928928 else nil
929929 }
930930
931931
932932 func updatePosition (_trader,_size,_margin,_openNotional,_latestCumulativePremiumFraction,_latestTimestamp) = {
933933 let direction = getDirection(_size)
934934 let positionKey = ((_trader + "_") + toString(direction))
935935 [IntegerEntry(toCompositeKey(k_positionSize, positionKey), _size), IntegerEntry(toCompositeKey(k_positionMargin, positionKey), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, positionKey), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey), _latestCumulativePremiumFraction), IntegerEntry(toCompositeKey(k_positionLastUpdatedTimestamp, positionKey), _latestTimestamp)]
936936 }
937937
938938
939939 func updateAmmReserves (_qtAstR,_bsAstR) = if (if ((0 > _qtAstR))
940940 then true
941941 else (0 > _bsAstR))
942942 then throw("Invalid amount to update reserves")
943943 else if (if ((_qtAstR != qtAstR0()))
944944 then true
945945 else (_bsAstR != bsAstR0()))
946946 then [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)]
947947 else nil
948948
949949
950950 func updateAmmWeights (_qtAstW,_bsAstW) = if (if ((_qtAstW != qtAstW()))
951951 then true
952952 else (_bsAstW != bsAstW()))
953953 then [IntegerEntry(k_quoteAssetWeight, _qtAstW), IntegerEntry(k_baseAssetWeight, _bsAstW)]
954954 else nil
955955
956956
957957 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize,_totalLongOpenNotional,_totalShortOpenNotional) = {
958958 let _qtAstW = qtAstW()
959959 let _bsAstW = bsAstW()
960960 if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
961- then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
961+ then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " - ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
962962 else (updateAmmReserves(_qtAstR, _bsAstR) ++ [IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize), IntegerEntry(k_openInterestLong, _totalLongOpenNotional), IntegerEntry(k_openInterestShort, _totalShortOpenNotional)])
963963 }
964964
965965
966966 func deletePosition (_trader,_direction) = {
967967 let positionKey = ((_trader + "_") + toString(_direction))
968968 [DeleteEntry(toCompositeKey(k_positionSize, positionKey)), DeleteEntry(toCompositeKey(k_positionMargin, positionKey)), DeleteEntry(toCompositeKey(k_positionOpenNotional, positionKey)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey)), DeleteEntry(toCompositeKey(k_positionFee, positionKey)), DeleteEntry(toCompositeKey(k_positionLastUpdatedTimestamp, positionKey))]
969969 }
970970
971971
972972 func withdraw (_address,_amount) = {
973973 let balance = assetBalance(this, quoteAsset())
974974 if ((_amount > balance))
975975 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
976976 else [ScriptTransfer(_address, _amount, quoteAsset())]
977977 }
978978
979979
980980 func updateBalance (_balance) = if ((0 > _balance))
981981 then throw("Balance")
982982 else if (if ((cbalance0() == 0))
983983 then true
984984 else (cbalance0() != _balance))
985985 then [IntegerEntry(k_balance, _balance)]
986986 else nil
987987
988988
989989 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
990990
991991
992992 func doBurnArtifact (_burnArtifact,i) = if (_burnArtifact)
993993 then [Burn(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifact"), 1)]
994994 else nil
995995
996996
997997 @Callable(i)
998998 func pause () = if ((i.caller != adminAddress()))
999999 then throw("Invalid pause params")
10001000 else [BooleanEntry(k_paused, true)]
10011001
10021002
10031003
10041004 @Callable(i)
10051005 func unpause () = if ((i.caller != adminAddress()))
10061006 then throw("Invalid unpause params")
10071007 else [BooleanEntry(k_paused, false)]
10081008
10091009
10101010
10111011 @Callable(i)
10121012 func setCloseOnly () = if ((i.caller != adminAddress()))
10131013 then throw("Invalid setCloseOnly params")
10141014 else [BooleanEntry(k_closeOnly, true)]
10151015
10161016
10171017
10181018 @Callable(i)
10191019 func unsetCloseOnly () = if ((i.caller != adminAddress()))
10201020 then throw("Invalid unsetCloseOnly params")
10211021 else [BooleanEntry(k_closeOnly, false)]
10221022
10231023
10241024
10251025 @Callable(i)
10261026 func changeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
10271027 then true
10281028 else (_quoteAssetAmount == 0))
10291029 then throw("Invalid changeLiquidity params")
10301030 else {
10311031 let _qtAstR = qtAstR()
10321032 let _bsAstR = bsAstR()
10331033 let _qtAstW = qtAstW()
10341034 let _bsAstW = bsAstW()
10351035 let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
10361036 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10371037 let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)
10381038 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
1039- let $t05196652117 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1040- let newQuoteAssetWeight = $t05196652117._1
1041- let newBaseAssetWeight = $t05196652117._2
1042- let marginToVault = $t05196652117._3
1039+ let $t05197452125 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1040+ let newQuoteAssetWeight = $t05197452125._1
1041+ let newBaseAssetWeight = $t05197452125._2
1042+ let marginToVault = $t05197452125._3
10431043 let doExchangePnL = if ((marginToVault != 0))
10441044 then {
10451045 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
10461046 if ((doExchangePnL == doExchangePnL))
10471047 then nil
10481048 else throw("Strict value is not equal to itself.")
10491049 }
10501050 else nil
10511051 if ((doExchangePnL == doExchangePnL))
10521052 then (updateAmmReserves(qtAstRAfter, bsAstRAfter) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight))
10531053 else throw("Strict value is not equal to itself.")
10541054 }
10551055
10561056
10571057
10581058 @Callable(i)
1059-func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _fundingPeriod))
1059+func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode,_baseOracleData,_quoteOracleData) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _fundingPeriod))
10601060 then true
10611061 else (0 >= _initMarginRatio))
10621062 then true
10631063 else (0 >= _mmr))
10641064 then true
10651065 else (0 >= _liquidationFeeRatio))
10661066 then true
10671067 else (0 >= _fee))
10681068 then true
10691069 else (0 >= _spreadLimit))
10701070 then true
10711071 else (0 >= _maxPriceImpact))
10721072 then true
10731073 else (0 >= _partialLiquidationRatio))
10741074 then true
10751075 else (0 >= _maxPriceSpread))
10761076 then true
10771077 else (0 >= _maxOpenNotional))
10781078 then true
10791079 else (0 >= _feeToStakersPercent))
10801080 then true
10811081 else (_feeToStakersPercent > DECIMAL_UNIT))
10821082 then true
10831083 else (0 >= _maxOracleDelay))
10841084 then true
10851085 else (0 >= _rolloverFee))
10861086 then true
10871087 else if ((_fundingMode != FUNDING_SYMMETRIC))
10881088 then (_fundingMode != FUNDING_ASYMMETRIC)
10891089 else false)
10901090 then true
10911091 else if ((_oracleMode != ORACLE_PLAIN))
10921092 then (_oracleMode != ORACLE_JIT)
10931093 else false)
10941094 then true
10951095 else !(initialized()))
10961096 then true
10971097 else (i.caller != adminAddress()))
10981098 then throw("Invalid changeSettings params")
1099- else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode)
1099+ else (updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode) ++ [StringEntry(k_baseOracle, _baseOracleData), StringEntry(k_quoteOracle, _quoteOracleData)])
11001100
11011101
11021102
11031103 @Callable(i)
11041104 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_baseOracleData,_quoteOracleData,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
11051105 then true
11061106 else (0 >= _bsAstR))
11071107 then true
11081108 else (0 >= _fundingPeriod))
11091109 then true
11101110 else (0 >= _initMarginRatio))
11111111 then true
11121112 else (0 >= _mmr))
11131113 then true
11141114 else (0 >= _liquidationFeeRatio))
11151115 then true
11161116 else (0 >= _fee))
11171117 then true
11181118 else (0 >= _spreadLimit))
11191119 then true
11201120 else (0 >= _maxPriceImpact))
11211121 then true
11221122 else (0 >= _partialLiquidationRatio))
11231123 then true
11241124 else (0 >= _maxPriceSpread))
11251125 then true
11261126 else (0 >= _maxOpenNotional))
11271127 then true
11281128 else (0 >= _feeToStakersPercent))
11291129 then true
11301130 else (_feeToStakersPercent > DECIMAL_UNIT))
11311131 then true
11321132 else (0 > _maxOracleDelay))
11331133 then true
11341134 else (0 >= _rolloverFee))
11351135 then true
11361136 else if ((_fundingMode != FUNDING_SYMMETRIC))
11371137 then (_fundingMode != FUNDING_ASYMMETRIC)
11381138 else false)
11391139 then true
11401140 else if ((_oracleMode != ORACLE_PLAIN))
11411141 then (_oracleMode != ORACLE_JIT)
11421142 else false)
11431143 then true
11441144 else initialized())
11451145 then true
11461146 else (i.caller != this))
11471147 then throw("Invalid initialize parameters")
11481148 else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode)) ++ updateFunding((lastTimestamp() + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_baseOracle, _baseOracleData), StringEntry(k_quoteOracle, _quoteOracleData), StringEntry(k_coordinatorAddress, toString(addressFromStringValue(_coordinator)))])
11491149
11501150
11511151
11521152 @Callable(i)
11531153 func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink,_priceUpdate) = {
11541154 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
11551155 if ((updateOracle == updateOracle))
11561156 then {
11571157 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
11581158 if ((sync == sync))
11591159 then {
11601160 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
11611161 if ((ensureCalledOnce == ensureCalledOnce))
11621162 then {
11631163 let _trader = getActualCaller(i)
11641164 let _rawAmount = i.payments[0].amount
11651165 let _assetId = i.payments[0].assetId
11661166 let _assetIdStr = toBase58String(value(_assetId))
11671167 let isQuoteAsset = (_assetId == quoteAsset())
11681168 if (if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
11691169 then (_direction != DIR_SHORT)
11701170 else false)
11711171 then true
11721172 else (0 >= _rawAmount))
11731173 then true
11741174 else !(initialized()))
11751175 then true
11761176 else !(isQuoteAsset))
11771177 then true
11781178 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
11791179 then true
11801180 else paused())
11811181 then true
11821182 else closeOnly())
11831183 then true
11841184 else isMarketClosed())
11851185 then throw("Invalid increasePosition parameters")
11861186 else {
1187- let $t05849358642 = getForTraderWithArtifact(_trader, getArtifactId(i))
1188- let adjustedFee = $t05849358642._1
1189- let burnArtifact = $t05849358642._2
1187+ let $t05867658825 = getForTraderWithArtifact(_trader, getArtifactId(i))
1188+ let adjustedFee = $t05867658825._1
1189+ let burnArtifact = $t05867658825._2
11901190 let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT))
11911191 let distributeFeeAmount = (_rawAmount - _amount)
11921192 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
11931193 if ((referrerFeeAny == referrerFeeAny))
11941194 then {
11951195 let referrerFee = match referrerFeeAny {
11961196 case x: Int =>
11971197 x
11981198 case _ =>
11991199 throw("Invalid referrerFee")
12001200 }
12011201 let feeAmount = (distributeFeeAmount - referrerFee)
1202- let $t05913859318 = getPosition(_trader, _direction)
1203- let oldPositionSize = $t05913859318._1
1204- let oldPositionMargin = $t05913859318._2
1205- let oldPositionOpenNotional = $t05913859318._3
1206- let oldPositionLstUpdCPF = $t05913859318._4
1207- let oldPositionTimestamp = $t05913859318._5
1202+ let $t05932159501 = getPosition(_trader, _direction)
1203+ let oldPositionSize = $t05932159501._1
1204+ let oldPositionMargin = $t05932159501._2
1205+ let oldPositionOpenNotional = $t05932159501._3
1206+ let oldPositionLstUpdCPF = $t05932159501._4
1207+ let oldPositionTimestamp = $t05932159501._5
12081208 let isNewPosition = (oldPositionSize == 0)
12091209 let isSameDirection = if ((oldPositionSize > 0))
12101210 then (_direction == DIR_LONG)
12111211 else (_direction == DIR_SHORT)
12121212 let expandExisting = if (!(isNewPosition))
12131213 then isSameDirection
12141214 else false
12151215 let isAdd = (_direction == DIR_LONG)
1216- let $t05960762740 = if (if (isNewPosition)
1216+ let $t05979062923 = if (if (isNewPosition)
12171217 then true
12181218 else expandExisting)
12191219 then {
12201220 let openNotional = muld(_amount, _leverage)
1221- let $t06011660289 = swapInput(isAdd, openNotional)
1222- let amountBaseAssetBought = $t06011660289._1
1223- let quoteAssetReserveAfter = $t06011660289._2
1224- let baseAssetReserveAfter = $t06011660289._3
1225- let totalPositionSizeAfter = $t06011660289._4
1221+ let $t06029960472 = swapInput(isAdd, openNotional)
1222+ let amountBaseAssetBought = $t06029960472._1
1223+ let quoteAssetReserveAfter = $t06029960472._2
1224+ let baseAssetReserveAfter = $t06029960472._3
1225+ let totalPositionSizeAfter = $t06029960472._4
12261226 if (if ((_minBaseAssetAmount != 0))
12271227 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12281228 else false)
12291229 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
12301230 else {
12311231 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
12321232 let totalLongOpenInterestAfter = (openInterestLong() + (if ((newPositionSize > 0))
12331233 then openNotional
12341234 else 0))
12351235 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12361236 then openNotional
12371237 else 0))
1238- let $t06083561110 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1239- let remainMargin = $t06083561110._1
1240- let x1 = $t06083561110._2
1241- let x2 = $t06083561110._3
1242- let rolloverFee = $t06083561110._4
1238+ let $t06101861293 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1239+ let remainMargin = $t06101861293._1
1240+ let x1 = $t06101861293._2
1241+ let x2 = $t06101861293._3
1242+ let rolloverFee = $t06101861293._4
12431243 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
12441244 then throw("Over max spread limit")
12451245 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
12461246 then throw("Over max open notional")
12471247 else $Tuple14(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), lastTimestamp(), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
12481248 then abs(amountBaseAssetBought)
12491249 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
12501250 then abs(amountBaseAssetBought)
12511251 else 0)), totalLongOpenInterestAfter, totalShortOpenInterestAfter, rolloverFee)
12521252 }
12531253 }
12541254 else {
12551255 let openNotional = muld(_amount, _leverage)
1256- let $t06242862556 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1257- let oldPositionNotional = $t06242862556._1
1258- let unrealizedPnl = $t06242862556._2
1256+ let $t06261162739 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1257+ let oldPositionNotional = $t06261162739._1
1258+ let unrealizedPnl = $t06261162739._2
12591259 if ((oldPositionNotional > openNotional))
12601260 then throw("Use decreasePosition to decrease position size")
12611261 else throw("Close position first")
12621262 }
1263- let newPositionSize = $t05960762740._1
1264- let newPositionRemainMargin = $t05960762740._2
1265- let newPositionOpenNotional = $t05960762740._3
1266- let newPositionLatestCPF = $t05960762740._4
1267- let newPositionTimestamp = $t05960762740._5
1268- let baseAssetReserveAfter = $t05960762740._6
1269- let quoteAssetReserveAfter = $t05960762740._7
1270- let totalPositionSizeAfter = $t05960762740._8
1271- let openInterestNotionalAfter = $t05960762740._9
1272- let totalLongAfter = $t05960762740._10
1273- let totalShortAfter = $t05960762740._11
1274- let totalLongOpenInterestAfter = $t05960762740._12
1275- let totalShortOpenInterestAfter = $t05960762740._13
1276- let rolloverFee = $t05960762740._14
1277- let $t06274662817 = distributeFee((feeAmount + rolloverFee))
1278- let feeToStakers = $t06274662817._1
1279- let feeToVault = $t06274662817._2
1263+ let newPositionSize = $t05979062923._1
1264+ let newPositionRemainMargin = $t05979062923._2
1265+ let newPositionOpenNotional = $t05979062923._3
1266+ let newPositionLatestCPF = $t05979062923._4
1267+ let newPositionTimestamp = $t05979062923._5
1268+ let baseAssetReserveAfter = $t05979062923._6
1269+ let quoteAssetReserveAfter = $t05979062923._7
1270+ let totalPositionSizeAfter = $t05979062923._8
1271+ let openInterestNotionalAfter = $t05979062923._9
1272+ let totalLongAfter = $t05979062923._10
1273+ let totalShortAfter = $t05979062923._11
1274+ let totalLongOpenInterestAfter = $t05979062923._12
1275+ let totalShortOpenInterestAfter = $t05979062923._13
1276+ let rolloverFee = $t05979062923._14
1277+ let $t06292963000 = distributeFee((feeAmount + rolloverFee))
1278+ let feeToStakers = $t06292963000._1
1279+ let feeToVault = $t06292963000._2
12801280 let stake = if ((_amount >= rolloverFee))
12811281 then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))])
12821282 else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil)
12831283 if ((stake == stake))
12841284 then {
12851285 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
12861286 if ((depositVault == depositVault))
12871287 then {
12881288 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
12891289 if ((notifyFee == notifyFee))
12901290 then {
12911291 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
12921292 if ((notifyNotional == notifyNotional))
12931293 then ((((((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF, newPositionTimestamp) ++ incrementPositionSequenceNumber(isNewPosition, _trader, _direction)) ++ updatePositionFee(isNewPosition, _trader, _direction, adjustedFee)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ transferFee(feeToStakers)) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doBurnArtifact(burnArtifact, i))
12941294 else throw("Strict value is not equal to itself.")
12951295 }
12961296 else throw("Strict value is not equal to itself.")
12971297 }
12981298 else throw("Strict value is not equal to itself.")
12991299 }
13001300 else throw("Strict value is not equal to itself.")
13011301 }
13021302 else throw("Strict value is not equal to itself.")
13031303 }
13041304 }
13051305 else throw("Strict value is not equal to itself.")
13061306 }
13071307 else throw("Strict value is not equal to itself.")
13081308 }
13091309 else throw("Strict value is not equal to itself.")
13101310 }
13111311
13121312
13131313
13141314 @Callable(i)
13151315 func addMargin (_direction,_priceUpdate) = {
13161316 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
13171317 if ((updateOracle == updateOracle))
13181318 then {
13191319 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
13201320 if ((sync == sync))
13211321 then {
13221322 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
13231323 if ((ensureCalledOnce == ensureCalledOnce))
13241324 then {
13251325 let _trader = toString(i.caller)
13261326 let _amount = i.payments[0].amount
13271327 let _assetId = i.payments[0].assetId
13281328 let _assetIdStr = toBase58String(value(_assetId))
13291329 let isQuoteAsset = (_assetId == quoteAsset())
13301330 if (if (if (if (if (!(isQuoteAsset))
13311331 then true
13321332 else !(requireOpenPosition(toString(i.caller), _direction)))
13331333 then true
13341334 else !(initialized()))
13351335 then true
13361336 else paused())
13371337 then true
13381338 else isMarketClosed())
13391339 then throw("Invalid addMargin parameters")
13401340 else {
1341- let $t06515965339 = getPosition(_trader, _direction)
1342- let oldPositionSize = $t06515965339._1
1343- let oldPositionMargin = $t06515965339._2
1344- let oldPositionOpenNotional = $t06515965339._3
1345- let oldPositionLstUpdCPF = $t06515965339._4
1346- let oldPositionTimestamp = $t06515965339._5
1341+ let $t06534265522 = getPosition(_trader, _direction)
1342+ let oldPositionSize = $t06534265522._1
1343+ let oldPositionMargin = $t06534265522._2
1344+ let oldPositionOpenNotional = $t06534265522._3
1345+ let oldPositionLstUpdCPF = $t06534265522._4
1346+ let oldPositionTimestamp = $t06534265522._5
13471347 let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)])
13481348 if ((stake == stake))
13491349 then {
13501350 let rolloverFee = calcRolloverFee(oldPositionMargin, oldPositionTimestamp)
13511351 let doTransferFeeToStakers = if ((rolloverFee > 0))
13521352 then {
1353- let $t06562465683 = distributeFee(rolloverFee)
1354- let feeToStakers = $t06562465683._1
1355- let feeToVault = $t06562465683._2
1353+ let $t06580765866 = distributeFee(rolloverFee)
1354+ let feeToStakers = $t06580765866._1
1355+ let feeToVault = $t06580765866._2
13561356 let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil)
13571357 if ((unstake == unstake))
13581358 then {
13591359 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
13601360 if ((lockBadDebt == lockBadDebt))
13611361 then transferFee(feeToStakers)
13621362 else throw("Strict value is not equal to itself.")
13631363 }
13641364 else throw("Strict value is not equal to itself.")
13651365 }
13661366 else nil
13671367 if ((doTransferFeeToStakers == doTransferFeeToStakers))
13681368 then ((updatePosition(_trader, oldPositionSize, ((oldPositionMargin - rolloverFee) + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF, lastTimestamp()) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doTransferFeeToStakers)
13691369 else throw("Strict value is not equal to itself.")
13701370 }
13711371 else throw("Strict value is not equal to itself.")
13721372 }
13731373 }
13741374 else throw("Strict value is not equal to itself.")
13751375 }
13761376 else throw("Strict value is not equal to itself.")
13771377 }
13781378 else throw("Strict value is not equal to itself.")
13791379 }
13801380
13811381
13821382
13831383 @Callable(i)
13841384 func removeMargin (_amount,_direction,_priceUpdate) = {
13851385 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
13861386 if ((updateOracle == updateOracle))
13871387 then {
13881388 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
13891389 if ((sync == sync))
13901390 then {
13911391 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
13921392 if ((ensureCalledOnce == ensureCalledOnce))
13931393 then {
13941394 let _trader = toString(i.caller)
13951395 if (if (if (if (if ((0 >= _amount))
13961396 then true
13971397 else !(requireOpenPosition(_trader, _direction)))
13981398 then true
13991399 else !(initialized()))
14001400 then true
14011401 else paused())
14021402 then true
14031403 else isMarketClosed())
14041404 then throw("Invalid removeMargin parameters")
14051405 else {
1406- let $t06718467364 = getPosition(_trader, _direction)
1407- let oldPositionSize = $t06718467364._1
1408- let oldPositionMargin = $t06718467364._2
1409- let oldPositionOpenNotional = $t06718467364._3
1410- let oldPositionLstUpdCPF = $t06718467364._4
1411- let oldPositionTimestamp = $t06718467364._5
1412- let $t06737067619 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1413- let remainMargin = $t06737067619._1
1414- let badDebt = $t06737067619._2
1415- let fundingPayment = $t06737067619._3
1416- let rolloverFee = $t06737067619._4
1406+ let $t06736767547 = getPosition(_trader, _direction)
1407+ let oldPositionSize = $t06736767547._1
1408+ let oldPositionMargin = $t06736767547._2
1409+ let oldPositionOpenNotional = $t06736767547._3
1410+ let oldPositionLstUpdCPF = $t06736767547._4
1411+ let oldPositionTimestamp = $t06736767547._5
1412+ let $t06755367802 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1413+ let remainMargin = $t06755367802._1
1414+ let badDebt = $t06755367802._2
1415+ let fundingPayment = $t06755367802._3
1416+ let rolloverFee = $t06755367802._4
14171417 if ((badDebt != 0))
14181418 then throw("Invalid removed margin amount")
14191419 else {
14201420 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
14211421 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
14221422 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
14231423 else {
1424- let $t06800568064 = distributeFee(rolloverFee)
1425- let feeToStakers = $t06800568064._1
1426- let feeToVault = $t06800568064._2
1424+ let $t06818868247 = distributeFee(rolloverFee)
1425+ let feeToStakers = $t06818868247._1
1426+ let feeToVault = $t06818868247._2
14271427 let doTransferFeeToStakers = if ((rolloverFee > 0))
14281428 then {
14291429 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
14301430 if ((lockBadDebt == lockBadDebt))
14311431 then transferFee(feeToStakers)
14321432 else throw("Strict value is not equal to itself.")
14331433 }
14341434 else nil
14351435 if ((doTransferFeeToStakers == doTransferFeeToStakers))
14361436 then {
14371437 let unstake = invoke(vaultAddress(), "withdrawLocked", [(_amount + feeToStakers)], nil)
14381438 if ((unstake == unstake))
14391439 then (((updatePosition(_trader, oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize), lastTimestamp()) ++ withdraw(i.caller, _amount)) ++ updateBalance(((cbalance() - _amount) - rolloverFee))) ++ doTransferFeeToStakers)
14401440 else throw("Strict value is not equal to itself.")
14411441 }
14421442 else throw("Strict value is not equal to itself.")
14431443 }
14441444 }
14451445 }
14461446 }
14471447 else throw("Strict value is not equal to itself.")
14481448 }
14491449 else throw("Strict value is not equal to itself.")
14501450 }
14511451 else throw("Strict value is not equal to itself.")
14521452 }
14531453
14541454
14551455
14561456 @Callable(i)
14571457 func closePosition (_size,_direction,_minQuoteAssetAmount,_addToMargin,_priceUpdate) = {
14581458 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
14591459 if ((updateOracle == updateOracle))
14601460 then {
14611461 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
14621462 if ((sync == sync))
14631463 then {
14641464 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
14651465 if ((ensureCalledOnce == ensureCalledOnce))
14661466 then {
14671467 let _trader = getActualCaller(i)
14681468 let _traderAddress = valueOrErrorMessage(addressFromString(_trader), "Invalid caller")
14691469 let positionFee = getPositionFee(_trader, _direction)
14701470 if (if (if (if (if (if (!(requireOpenPosition(_trader, _direction)))
14711471 then true
14721472 else !(initialized()))
14731473 then true
14741474 else paused())
14751475 then true
14761476 else (0 >= _size))
14771477 then true
14781478 else (0 > _minQuoteAssetAmount))
14791479 then true
14801480 else isMarketClosed())
14811481 then throw("Invalid closePosition parameters")
14821482 else {
14831483 let oldPositionTimestamp = getPosition(_trader, _direction)._5
1484- let $t07039971002 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1485- let newPositionSize = $t07039971002._1
1486- let newPositionMargin = $t07039971002._2
1487- let newPositionOpenNotional = $t07039971002._3
1488- let newPositionLstUpdCPF = $t07039971002._4
1489- let positionBadDebt = $t07039971002._5
1490- let realizedPnl = $t07039971002._6
1491- let marginToTrader = $t07039971002._7
1492- let quoteAssetReserveAfter = $t07039971002._8
1493- let baseAssetReserveAfter = $t07039971002._9
1494- let totalPositionSizeAfter = $t07039971002._10
1495- let openInterestNotionalAfter = $t07039971002._11
1496- let totalLongAfter = $t07039971002._12
1497- let totalShortAfter = $t07039971002._13
1498- let totalLongOpenInterestAfter = $t07039971002._14
1499- let totalShortOpenInterestAfter = $t07039971002._15
1500- let realizedFee = $t07039971002._16
1484+ let $t07058271185 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1485+ let newPositionSize = $t07058271185._1
1486+ let newPositionMargin = $t07058271185._2
1487+ let newPositionOpenNotional = $t07058271185._3
1488+ let newPositionLstUpdCPF = $t07058271185._4
1489+ let positionBadDebt = $t07058271185._5
1490+ let realizedPnl = $t07058271185._6
1491+ let marginToTrader = $t07058271185._7
1492+ let quoteAssetReserveAfter = $t07058271185._8
1493+ let baseAssetReserveAfter = $t07058271185._9
1494+ let totalPositionSizeAfter = $t07058271185._10
1495+ let openInterestNotionalAfter = $t07058271185._11
1496+ let totalLongAfter = $t07058271185._12
1497+ let totalShortAfter = $t07058271185._13
1498+ let totalLongOpenInterestAfter = $t07058271185._14
1499+ let totalShortOpenInterestAfter = $t07058271185._15
1500+ let realizedFee = $t07058271185._16
15011501 if ((positionBadDebt > 0))
15021502 then throw("Invalid closePosition parameters: bad debt")
15031503 else if ((oldPositionTimestamp >= lastTimestamp()))
15041504 then throw("Invalid closePosition parameters: wait at least 1 block before closing the position")
15051505 else {
15061506 let isPartialClose = (newPositionSize != 0)
15071507 let withdrawAmount = (marginToTrader + realizedFee)
15081508 let ammBalance = (cbalance() - withdrawAmount)
15091509 let ammNewBalance = if ((0 > ammBalance))
15101510 then 0
15111511 else ammBalance
15121512 let unstake = invoke(vaultAddress(), "withdrawLocked", [withdrawAmount], nil)
15131513 if ((unstake == unstake))
15141514 then {
15151515 let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), realizedFee)])
15161516 if ((referrerFeeAny == referrerFeeAny))
15171517 then {
15181518 let referrerFee = match referrerFeeAny {
15191519 case x: Int =>
15201520 x
15211521 case _ =>
15221522 throw("Invalid referrerFee")
15231523 }
1524- let $t07197472047 = distributeFee((realizedFee - referrerFee))
1525- let feeToStakers = $t07197472047._1
1526- let feeToVault = $t07197472047._2
1524+ let $t07215772230 = distributeFee((realizedFee - referrerFee))
1525+ let feeToStakers = $t07215772230._1
1526+ let feeToVault = $t07215772230._2
15271527 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
15281528 if ((depositVault == depositVault))
15291529 then {
15301530 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, realizedFee], nil)
15311531 if ((notifyFee == notifyFee))
15321532 then {
15331533 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
15341534 if ((notifyNotional == notifyNotional))
15351535 then (((((if (isPartialClose)
15361536 then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp())
15371537 else deletePosition(_trader, _direction)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ (if ((marginToTrader > 0))
15381538 then withdraw(_traderAddress, marginToTrader)
15391539 else nil)) ++ updateBalance(ammNewBalance)) ++ transferFee(feeToStakers))
15401540 else throw("Strict value is not equal to itself.")
15411541 }
15421542 else throw("Strict value is not equal to itself.")
15431543 }
15441544 else throw("Strict value is not equal to itself.")
15451545 }
15461546 else throw("Strict value is not equal to itself.")
15471547 }
15481548 else throw("Strict value is not equal to itself.")
15491549 }
15501550 }
15511551 }
15521552 else throw("Strict value is not equal to itself.")
15531553 }
15541554 else throw("Strict value is not equal to itself.")
15551555 }
15561556 else throw("Strict value is not equal to itself.")
15571557 }
15581558
15591559
15601560
15611561 @Callable(i)
15621562 func liquidate (_trader,_direction,_priceUpdate) = {
15631563 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
15641564 if ((updateOracle == updateOracle))
15651565 then {
15661566 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
15671567 if ((sync == sync))
15681568 then {
15691569 let spotMarginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
15701570 let liquidationMarginRatio = if (isOverFluctuationLimit())
15711571 then {
15721572 let oracleMarginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_ORACLE)
15731573 vmax(spotMarginRatio, oracleMarginRatio)
15741574 }
15751575 else spotMarginRatio
15761576 if (if (if (if (if (!(requireMoreMarginRatio(liquidationMarginRatio, maintenanceMarginRatio(), false)))
15771577 then true
15781578 else !(requireOpenPosition(_trader, _direction)))
15791579 then true
15801580 else !(initialized()))
15811581 then true
15821582 else paused())
15831583 then true
15841584 else isMarketClosed())
15851585 then throw("Unable to liquidate")
15861586 else {
15871587 let isPartialLiquidation = if (if ((spotMarginRatio > liquidationFeeRatio()))
15881588 then (partialLiquidationRatio() > 0)
15891589 else false)
15901590 then (DECIMAL_UNIT > partialLiquidationRatio())
15911591 else false
15921592 let oldPositionSize = getPosition(_trader, _direction)._1
15931593 let positionSizeAbs = abs(oldPositionSize)
1594- let $t07464074963 = if (isPartialLiquidation)
1594+ let $t07482375146 = if (isPartialLiquidation)
15951595 then {
15961596 let liquidationSize = getPartialLiquidationAmount(_trader, oldPositionSize)
15971597 let liquidationRatio = divd(abs(liquidationSize), positionSizeAbs)
15981598 $Tuple2(liquidationRatio, abs(liquidationSize))
15991599 }
16001600 else $Tuple2(0, positionSizeAbs)
1601- let liquidationRatio = $t07464074963._1
1602- let liquidationSize = $t07464074963._2
1603- let $t07496975625 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
1601+ let liquidationRatio = $t07482375146._1
1602+ let liquidationSize = $t07482375146._2
1603+ let $t07515275808 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
16041604 then liquidationSize
16051605 else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true)
1606- let newPositionSize = $t07496975625._1
1607- let newPositionMargin = $t07496975625._2
1608- let newPositionOpenNotional = $t07496975625._3
1609- let newPositionLstUpdCPF = $t07496975625._4
1610- let positionBadDebt = $t07496975625._5
1611- let realizedPnl = $t07496975625._6
1612- let marginToTrader = $t07496975625._7
1613- let quoteAssetReserveAfter = $t07496975625._8
1614- let baseAssetReserveAfter = $t07496975625._9
1615- let totalPositionSizeAfter = $t07496975625._10
1616- let openInterestNotionalAfter = $t07496975625._11
1617- let totalLongAfter = $t07496975625._12
1618- let totalShortAfter = $t07496975625._13
1619- let totalLongOpenInterestAfter = $t07496975625._14
1620- let totalShortOpenInterestAfter = $t07496975625._15
1621- let liquidationPenalty = $t07496975625._16
1606+ let newPositionSize = $t07515275808._1
1607+ let newPositionMargin = $t07515275808._2
1608+ let newPositionOpenNotional = $t07515275808._3
1609+ let newPositionLstUpdCPF = $t07515275808._4
1610+ let positionBadDebt = $t07515275808._5
1611+ let realizedPnl = $t07515275808._6
1612+ let marginToTrader = $t07515275808._7
1613+ let quoteAssetReserveAfter = $t07515275808._8
1614+ let baseAssetReserveAfter = $t07515275808._9
1615+ let totalPositionSizeAfter = $t07515275808._10
1616+ let openInterestNotionalAfter = $t07515275808._11
1617+ let totalLongAfter = $t07515275808._12
1618+ let totalShortAfter = $t07515275808._13
1619+ let totalLongOpenInterestAfter = $t07515275808._14
1620+ let totalShortOpenInterestAfter = $t07515275808._15
1621+ let liquidationPenalty = $t07515275808._16
16221622 let feeToLiquidator = (liquidationPenalty / 2)
16231623 let feeToVault = (liquidationPenalty - feeToLiquidator)
16241624 let ammBalance = (cbalance() - liquidationPenalty)
16251625 let newAmmBalance = if ((0 > ammBalance))
16261626 then 0
16271627 else ammBalance
16281628 let lockBadDebt = if ((positionBadDebt > 0))
16291629 then {
16301630 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [(positionBadDebt + liquidationPenalty)], nil)
16311631 if ((lockBadDebt == lockBadDebt))
16321632 then nil
16331633 else throw("Strict value is not equal to itself.")
16341634 }
16351635 else nil
16361636 if ((lockBadDebt == lockBadDebt))
16371637 then {
16381638 let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil)
16391639 if ((unstake == unstake))
16401640 then {
16411641 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
16421642 if ((depositInsurance == depositInsurance))
16431643 then {
16441644 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
16451645 if ((notifyNotional == notifyNotional))
16461646 then ((((if (isPartialLiquidation)
16471647 then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp())
16481648 else deletePosition(_trader, _direction)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
16491649 else throw("Strict value is not equal to itself.")
16501650 }
16511651 else throw("Strict value is not equal to itself.")
16521652 }
16531653 else throw("Strict value is not equal to itself.")
16541654 }
16551655 else throw("Strict value is not equal to itself.")
16561656 }
16571657 }
16581658 else throw("Strict value is not equal to itself.")
16591659 }
16601660 else throw("Strict value is not equal to itself.")
16611661 }
16621662
16631663
16641664
16651665 @Callable(i)
16661666 func payFunding (_priceUpdate) = {
16671667 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
16681668 if ((updateOracle == updateOracle))
16691669 then {
16701670 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
16711671 if ((sync == sync))
16721672 then {
16731673 let fundingBlockTimestamp = nextFundingBlockTimestamp()
16741674 if (if (if ((fundingBlockTimestamp > lastTimestamp()))
16751675 then true
16761676 else !(initialized()))
16771677 then true
16781678 else paused())
16791679 then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp)))
16801680 else {
16811681 let underlyingPrice = getOraclePrice()
1682- let $t07784377921 = getFunding()
1683- let shortPremiumFraction = $t07784377921._1
1684- let longPremiumFraction = $t07784377921._2
1685- let premiumToVault = $t07784377921._3
1682+ let $t07802678104 = getFunding()
1683+ let shortPremiumFraction = $t07802678104._1
1684+ let longPremiumFraction = $t07802678104._2
1685+ let premiumToVault = $t07802678104._3
16861686 let doPayFundingToVault = if ((premiumToVault > 0))
16871687 then {
16881688 let doPayFundingToVault = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(premiumToVault)], nil)
16891689 if ((doPayFundingToVault == doPayFundingToVault))
16901690 then nil
16911691 else throw("Strict value is not equal to itself.")
16921692 }
16931693 else nil
16941694 if ((doPayFundingToVault == doPayFundingToVault))
16951695 then updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
16961696 else throw("Strict value is not equal to itself.")
16971697 }
16981698 }
16991699 else throw("Strict value is not equal to itself.")
17001700 }
17011701 else throw("Strict value is not equal to itself.")
17021702 }
17031703
17041704
17051705
17061706 @Callable(i)
17071707 func updateOracle (_priceUpdate) = if ((oracleMode() == ORACLE_PLAIN))
17081708 then nil
17091709 else {
17101710 let priceUpdates = split_4C(_priceUpdate, "::")
17111711 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
17121712 let baseOracleAddress = baseOracle._1
17131713 let doUpdateBaseOracle = invoke(baseOracleAddress, "updateData", [priceUpdates[0]], nil)
17141714 if ((doUpdateBaseOracle == doUpdateBaseOracle))
17151715 then {
17161716 let quoteOracle = getOracleData(k_quoteOracle)
17171717 let doUpdateQuoteOracle = if (isDefined(quoteOracle))
17181718 then {
17191719 let quoteOracleV = value(quoteOracle)
17201720 let quoteOracleAddress = quoteOracleV._1
17211721 let doUpdateQuoteOracle = invoke(quoteOracleAddress, "updateData", [priceUpdates[1]], nil)
17221722 if ((doUpdateQuoteOracle == doUpdateQuoteOracle))
17231723 then nil
17241724 else throw("Strict value is not equal to itself.")
17251725 }
17261726 else nil
17271727 if ((doUpdateQuoteOracle == doUpdateQuoteOracle))
17281728 then nil
17291729 else throw("Strict value is not equal to itself.")
17301730 }
17311731 else throw("Strict value is not equal to itself.")
17321732 }
17331733
17341734
17351735
17361736 @Callable(i)
17371737 func syncTerminalPriceToOracle () = {
17381738 let _qtAstR = qtAstR()
17391739 let _bsAstR = bsAstR()
1740- let $t07974480110 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1741- let newQuoteAssetWeight = $t07974480110._1
1742- let newBaseAssetWeight = $t07974480110._2
1743- let marginToVault = $t07974480110._3
1740+ let $t07992180287 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1741+ let newQuoteAssetWeight = $t07992180287._1
1742+ let newBaseAssetWeight = $t07992180287._2
1743+ let marginToVault = $t07992180287._3
17441744 let marginToVaultAdj = if (if ((0 > marginToVault))
17451745 then (abs(marginToVault) > cbalance())
17461746 else false)
17471747 then -(cbalance())
17481748 else marginToVault
17491749 let doExchangePnL = if ((marginToVaultAdj != 0))
17501750 then {
17511751 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVaultAdj], nil)
17521752 if ((doExchangePnL == doExchangePnL))
17531753 then nil
17541754 else throw("Strict value is not equal to itself.")
17551755 }
17561756 else nil
17571757 if ((doExchangePnL == doExchangePnL))
17581758 then (updateBalance((cbalance() + marginToVaultAdj)) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight))
17591759 else throw("Strict value is not equal to itself.")
17601760 }
17611761
17621762
17631763
17641764 @Callable(i)
17651765 func ensureCalledOnce () = if ((i.caller != this))
17661766 then throw("Invalid saveCurrentTxId parameters")
17671767 else {
17681768 let txId = toBase58String(i.transactionId)
17691769 let lastTx = valueOrElse(getString(this, k_lastTx), "")
17701770 if ((lastTx != txId))
17711771 then [StringEntry(k_lastTx, txId)]
17721772 else throw("Can not call vAMM methods twice in one tx")
17731773 }
17741774
17751775
17761776
17771777 @Callable(i)
17781778 func migratePosition (_trader) = {
17791779 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
17801780 if (if (isDefined(positionSizeOpt))
17811781 then isDefined(addressFromString(_trader))
17821782 else false)
17831783 then {
17841784 let pSize = getIntegerValue(this, toCompositeKey(k_positionSize, _trader))
17851785 let pMargin = getIntegerValue(this, toCompositeKey(k_positionMargin, _trader))
17861786 let pNotional = getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader))
17871787 let pFraction = getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader))
17881788 let pTimestamp = valueOrElse(getInteger(this, toCompositeKey(k_positionLastUpdatedTimestamp, _trader)), lastBlock.timestamp)
17891789 let pFee = valueOrElse(getInteger(this, toCompositeKey(k_positionFee, _trader)), fee())
17901790 let pSequence = getIntegerValue(this, toCompositeKey(k_positionSequence, _trader))
17911791 let pDirection = getDirection(pSize)
17921792 let positionKey = ((_trader + "_") + toString(pDirection))
17931793 [DeleteEntry(toCompositeKey(k_positionSize, _trader)), DeleteEntry(toCompositeKey(k_positionMargin, _trader)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _trader)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)), DeleteEntry(toCompositeKey(k_positionLastUpdatedTimestamp, _trader)), DeleteEntry(toCompositeKey(k_positionFee, _trader)), DeleteEntry(toCompositeKey(k_positionSequence, _trader)), IntegerEntry(toCompositeKey(k_positionSize, positionKey), pSize), IntegerEntry(toCompositeKey(k_positionMargin, positionKey), pMargin), IntegerEntry(toCompositeKey(k_positionOpenNotional, positionKey), pNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey), pFraction), IntegerEntry(toCompositeKey(k_positionLastUpdatedTimestamp, positionKey), pTimestamp), IntegerEntry(toCompositeKey(k_positionFee, positionKey), pFee), IntegerEntry(toCompositeKey(k_positionSequence, positionKey), pSequence)]
17941794 }
17951795 else throw(("Nothing to migrate for " + _trader))
17961796 }
17971797
17981798
17991799
18001800 @Callable(i)
18011801 func view_calcRemainMarginWithFundingPayment (_trader,_direction,_priceUpdate) = {
18021802 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
18031803 if ((updateOracle == updateOracle))
18041804 then {
18051805 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18061806 if ((sync == sync))
18071807 then {
1808- let $t08390484040 = getPosition(_trader, _direction)
1809- let positionSize = $t08390484040._1
1810- let positionMargin = $t08390484040._2
1811- let pon = $t08390484040._3
1812- let positionLstUpdCPF = $t08390484040._4
1813- let positionTimestamp = $t08390484040._5
1814- let $t08404384156 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1815- let positionNotional = $t08404384156._1
1816- let unrealizedPnl = $t08404384156._2
1817- let $t08415984383 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1818- let remainMargin = $t08415984383._1
1819- let badDebt = $t08415984383._2
1820- let fundingPayment = $t08415984383._3
1821- let rolloverFee = $t08415984383._4
1808+ let $t08408184217 = getPosition(_trader, _direction)
1809+ let positionSize = $t08408184217._1
1810+ let positionMargin = $t08408184217._2
1811+ let pon = $t08408184217._3
1812+ let positionLstUpdCPF = $t08408184217._4
1813+ let positionTimestamp = $t08408184217._5
1814+ let $t08422084333 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1815+ let positionNotional = $t08422084333._1
1816+ let unrealizedPnl = $t08422084333._2
1817+ let $t08433684560 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1818+ let remainMargin = $t08433684560._1
1819+ let badDebt = $t08433684560._2
1820+ let fundingPayment = $t08433684560._3
1821+ let rolloverFee = $t08433684560._4
18221822 throw(((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader, _direction))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee)))
18231823 }
18241824 else throw("Strict value is not equal to itself.")
18251825 }
18261826 else throw("Strict value is not equal to itself.")
18271827 }
18281828
18291829
18301830
18311831 @Callable(i)
18321832 func view_getPegAdjustCost (_price) = {
18331833 let _qtAstR = qtAstR()
18341834 let _bsAstR = bsAstR()
18351835 let result = getSyncTerminalPrice(_price, _qtAstR, _bsAstR)
18361836 throw(toString(result._3))
18371837 }
18381838
18391839
18401840
18411841 @Callable(i)
18421842 func view_getTerminalAmmPrice () = {
1843- let $t08511885199 = getTerminalAmmState()
1844- let terminalQuoteAssetReserve = $t08511885199._1
1845- let terminalBaseAssetReserve = $t08511885199._2
1843+ let $t08529585376 = getTerminalAmmState()
1844+ let terminalQuoteAssetReserve = $t08529585376._1
1845+ let terminalBaseAssetReserve = $t08529585376._2
18461846 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
18471847 throw(toString(price))
18481848 }
18491849
18501850
18511851
18521852 @Callable(i)
18531853 func view_getFunding (_priceUpdate) = {
18541854 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
18551855 if ((updateOracle == updateOracle))
18561856 then {
18571857 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18581858 if ((sync == sync))
18591859 then {
18601860 let underlyingPrice = getOraclePrice()
1861- let $t08585185929 = getFunding()
1862- let shortPremiumFraction = $t08585185929._1
1863- let longPremiumFraction = $t08585185929._2
1864- let premiumToVault = $t08585185929._3
1861+ let $t08602886106 = getFunding()
1862+ let shortPremiumFraction = $t08602886106._1
1863+ let longPremiumFraction = $t08602886106._2
1864+ let premiumToVault = $t08602886106._3
18651865 let longFunding = divd(longPremiumFraction, underlyingPrice)
18661866 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
18671867 throw(((((s(longFunding) + s(shortFunding)) + s(getSpotPrice())) + s(getOraclePrice())) + s(premiumToVault)))
18681868 }
18691869 else throw("Strict value is not equal to itself.")
18701870 }
18711871 else throw("Strict value is not equal to itself.")
18721872 }
18731873
18741874
18751875
18761876 @Callable(i)
18771877 func computeSpotPrice () = {
18781878 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18791879 if ((sync == sync))
18801880 then {
18811881 let result = getSpotPrice()
18821882 $Tuple2(nil, result)
18831883 }
18841884 else throw("Strict value is not equal to itself.")
18851885 }
18861886
18871887
18881888
18891889 @Callable(i)
18901890 func computeFeeForTraderWithArtifact (_trader,_artifactId) = {
18911891 let result = getForTraderWithArtifact(_trader, _artifactId)
18921892 $Tuple2(nil, result)
18931893 }
18941894
18951895
18961896 @Verifier(tx)
18971897 func verify () = {
18981898 let coordinatorStr = getString(this, k_coordinatorAddress)
18991899 if (isDefined(coordinatorStr))
19001900 then {
19011901 let admin = getString(addressFromStringValue(value(coordinatorStr)), k_admin_address)
19021902 if (isDefined(admin))
19031903 then valueOrElse(getBoolean(addressFromStringValue(value(admin)), ((("status_" + toString(this)) + "_") + toBase58String(tx.id))), false)
19041904 else throw("unable to verify: admin not set in coordinator")
19051905 }
19061906 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
19071907 }
19081908

github/deemru/w8io/026f985 
338.48 ms