tx · 9gEMF5QXnHct6m6815nheTrbedDAQaqS6Aqq7cbGzAr4

3MpjMveMjHs97n26f8QdyN8i3Csx379uswG:  -0.07500000 Waves

2023.07.19 13:09 [2672605] smart account 3MpjMveMjHs97n26f8QdyN8i3Csx379uswG > SELF 0.00000000 Waves

{ "type": 13, "id": "9gEMF5QXnHct6m6815nheTrbedDAQaqS6Aqq7cbGzAr4", "fee": 7500000, "feeAssetId": null, "timestamp": 1689761371603, "version": 2, "chainId": 84, "sender": "3MpjMveMjHs97n26f8QdyN8i3Csx379uswG", "senderPublicKey": "7yXUpfDsaJbPTTdmfjwoT8UnaUpTf61azAA8NGbkRxSM", "proofs": [ "F1ntsSSky2FRrWsaeZwa4TTGJuzzasGj7L4BNZDPndMykxpcxBxw6ZEAPrNcF7BTcANvys3GkpHvy4qS3bGVwFq" ], "script": "base64:BgKUAQgCEgASABIAEgASAwoBARIVChMBAQEBAQEBAQEBAQEBAQEICAEBEhgKFgEBAQEBAQEICAgBAQEBAQEBAQEBAQESBwoFAQEBCAgSBAoCAQgSBQoDAQEIEgcKBQEBAQQIEgUKAwgBCBIDCgEIEgMKAQgSABIAEgMKAQgSBQoDCAEIEgMKAQESABIDCgEIEgASBAoCCAi/AQAMa19iYXNlT3JhY2xlAgxrX2Jhc2VPcmFjbGUADWtfcXVvdGVPcmFjbGUCDWtfcXVvdGVPcmFjbGUACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgASa19wb3NpdGlvblNlcXVlbmNl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KQEJAQV2YWx1ZQEFBWFkbWluCQCsAgIJAKwCAgkArAICAgdzdGF0dXNfCQClCAEFBHRoaXMCAV8JANgEAQgFAnR4AmlkBwkAAgECLnVuYWJsZSB0byB2ZXJpZnk6IGFkbWluIG5vdCBzZXQgaW4gY29vcmRpbmF0b3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXk3fizL", "height": 2672605, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BEGrstzoizxXmb8KTHszeZ8acJhhmHQR74KDxQfMisUk Next: 65h9jMSDss9uoEqpqvyFJ16hSrWBEKSRySNhHQAGPMuk Diff:
OldNewDifferences
239239 func initMarginRatio () = int(k_initMarginRatio)
240240
241241
242-func minInitMarginRatio () = intOr(k_minInitMarginRatio, DECIMAL_UNIT)
242+func minInitMarginRatio () = intOr(k_minInitMarginRatio, (10 * DECIMAL_UNIT))
243243
244244
245245 func qtAstR () = int(k_quoteAssetReserve)
462462 let amountBaseAssetBought = if (_isAdd)
463463 then amountBaseAssetBoughtAbs
464464 else -(amountBaseAssetBoughtAbs)
465- let $t01658516755 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
466- let quoteAssetReserveAfter1 = $t01658516755._1
467- let baseAssetReserveAfter1 = $t01658516755._2
468- let totalPositionSizeAfter1 = $t01658516755._3
465+ let $t01659016760 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
466+ let quoteAssetReserveAfter1 = $t01659016760._1
467+ let baseAssetReserveAfter1 = $t01659016760._2
468+ let totalPositionSizeAfter1 = $t01659016760._3
469469 let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
470470 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
471471 let priceDiff = abs((priceBefore - marketPrice))
493493 else 0
494494 let rolloverFee = calcRolloverFee(_oldPositionMargin, _oldPositionLastUpdatedTimestamp)
495495 let signedMargin = (((_marginDelta - rolloverFee) - fundingPayment) + _oldPositionMargin)
496- let $t01942219549 = if ((0 > signedMargin))
496+ let $t01942719554 = if ((0 > signedMargin))
497497 then $Tuple2(0, abs(signedMargin))
498498 else $Tuple2(abs(signedMargin), 0)
499- let remainMargin = $t01942219549._1
500- let badDebt = $t01942219549._2
499+ let remainMargin = $t01942719554._1
500+ let badDebt = $t01942719554._2
501501 $Tuple4(remainMargin, badDebt, fundingPayment, rolloverFee)
502502 }
503503
515515 let quoteAssetDelta = abs((quoteAssetAfter - _quoteAssetReserve))
516516 let quoteAssetSold = muld(quoteAssetDelta, _quoteAssetWeight)
517517 let maxPriceImpactValue = maxPriceImpact()
518- let $t02081120973 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
519- let quoteAssetReserveAfter1 = $t02081120973._1
520- let baseAssetReserveAfter1 = $t02081120973._2
521- let totalPositionSizeAfter1 = $t02081120973._3
518+ let $t02081620978 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
519+ let quoteAssetReserveAfter1 = $t02081620978._1
520+ let baseAssetReserveAfter1 = $t02081620978._2
521+ let totalPositionSizeAfter1 = $t02081620978._3
522522 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
523523 let priceDiff = abs((priceBefore - marketPrice))
524524 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
658658
659659
660660 func getPositionNotionalAndUnrealizedPnl (_trader,_direction,_option) = {
661- let $t02911429254 = getPosition(_trader, _direction)
662- let positionSize = $t02911429254._1
663- let positionMargin = $t02911429254._2
664- let positionOpenNotional = $t02911429254._3
665- let positionLstUpdCPF = $t02911429254._4
661+ let $t02911929259 = getPosition(_trader, _direction)
662+ let positionSize = $t02911929259._1
663+ let positionMargin = $t02911929259._2
664+ let positionOpenNotional = $t02911929259._3
665+ let positionLstUpdCPF = $t02911929259._4
666666 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
667667 }
668668
671671
672672
673673 func getMarginRatioByOption (_trader,_direction,_option) = {
674- let $t02978629939 = getPosition(_trader, _direction)
675- let positionSize = $t02978629939._1
676- let positionMargin = $t02978629939._2
677- let pon = $t02978629939._3
678- let positionLastUpdatedCPF = $t02978629939._4
679- let positionTimestamp = $t02978629939._5
680- let $t02994530050 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
681- let positionNotional = $t02994530050._1
682- let unrealizedPnl = $t02994530050._2
683- let $t03005530267 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
684- let remainMargin = $t03005530267._1
685- let badDebt = $t03005530267._2
674+ let $t02979129944 = getPosition(_trader, _direction)
675+ let positionSize = $t02979129944._1
676+ let positionMargin = $t02979129944._2
677+ let pon = $t02979129944._3
678+ let positionLastUpdatedCPF = $t02979129944._4
679+ let positionTimestamp = $t02979129944._5
680+ let $t02995030055 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
681+ let positionNotional = $t02995030055._1
682+ let unrealizedPnl = $t02995030055._2
683+ let $t03006030272 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
684+ let remainMargin = $t03006030272._1
685+ let badDebt = $t03006030272._2
686686 calcMarginRatio(remainMargin, badDebt, positionNotional)
687687 }
688688
703703
704704
705705 func internalClosePosition (_trader,_direction,_size,_fee,_minQuoteAssetAmount,_addToMargin,_checkMaxPriceImpact,_liquidate) = {
706- let $t03143031598 = getPosition(_trader, _direction)
707- let oldPositionSize = $t03143031598._1
708- let oldPositionMargin = $t03143031598._2
709- let oldPositionOpenNotional = $t03143031598._3
710- let oldPositionLstUpdCPF = $t03143031598._4
711- let oldPositionTimestamp = $t03143031598._5
706+ let $t03143531603 = getPosition(_trader, _direction)
707+ let oldPositionSize = $t03143531603._1
708+ let oldPositionMargin = $t03143531603._2
709+ let oldPositionOpenNotional = $t03143531603._3
710+ let oldPositionLstUpdCPF = $t03143531603._4
711+ let oldPositionTimestamp = $t03143531603._5
712712 let isLongPosition = (oldPositionSize > 0)
713713 let absOldPositionSize = abs(oldPositionSize)
714714 if (if ((absOldPositionSize >= _size))
716716 else false)
717717 then {
718718 let isPartialClose = (absOldPositionSize > _size)
719- let $t03189032341 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
720- let exchangedQuoteAssetAmount = $t03189032341._1
721- let quoteAssetReserveAfter = $t03189032341._2
722- let baseAssetReserveAfter = $t03189032341._3
723- let totalPositionSizeAfter = $t03189032341._4
719+ let $t03189532346 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
720+ let exchangedQuoteAssetAmount = $t03189532346._1
721+ let quoteAssetReserveAfter = $t03189532346._2
722+ let baseAssetReserveAfter = $t03189532346._3
723+ let totalPositionSizeAfter = $t03189532346._4
724724 let exchangedPositionSize = if ((oldPositionSize > 0))
725725 then -(_size)
726726 else _size
727- let $t03255632780 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
728- let oldPositionNotional = $t03255632780._1
729- let unrealizedPnl = $t03255632780._2
727+ let $t03256132785 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
728+ let oldPositionNotional = $t03256132785._1
729+ let unrealizedPnl = $t03256132785._2
730730 let realizedRatio = divd(abs(exchangedPositionSize), absOldPositionSize)
731731 let realizedPnl = muld(unrealizedPnl, realizedRatio)
732- let $t03312133367 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
733- let remainMarginBefore = $t03312133367._1
734- let x1 = $t03312133367._2
735- let x2 = $t03312133367._3
736- let rolloverFee = $t03312133367._4
732+ let $t03312633372 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
733+ let remainMarginBefore = $t03312633372._1
734+ let x1 = $t03312633372._2
735+ let x2 = $t03312633372._3
736+ let rolloverFee = $t03312633372._4
737737 let positionBadDebt = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, realizedPnl)._2
738738 let realizedCloseFee = muld(muld(oldPositionNotional, realizedRatio), _fee)
739739 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
741741 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
742742 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
743743 let newPositionSize = (oldPositionSize + exchangedPositionSize)
744- let $t03477335159 = if ((newPositionSize == 0))
744+ let $t03477835164 = if ((newPositionSize == 0))
745745 then $Tuple2(0, 0)
746746 else $Tuple2(abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize))
747- let newPositionOpenNotional = $t03477335159._1
748- let newPositionLstUpdCPF = $t03477335159._2
747+ let newPositionOpenNotional = $t03477835164._1
748+ let newPositionLstUpdCPF = $t03477835164._2
749749 let openNotionalDelta = (oldPositionOpenNotional - newPositionOpenNotional)
750750 let marginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
751751 let newPositionMarginWithSameRatio = if ((oldPositionSize > 0))
788788 then $Tuple2(qtAstR(), bsAstR())
789789 else {
790790 let direction = (_positionSize > 0)
791- let $t03840638585 = swapOutput(direction, abs(_positionSize), false)
792- let currentNetMarketValue = $t03840638585._1
793- let terminalQuoteAssetReserve = $t03840638585._2
794- let terminalBaseAssetReserve = $t03840638585._3
791+ let $t03841138590 = swapOutput(direction, abs(_positionSize), false)
792+ let currentNetMarketValue = $t03841138590._1
793+ let terminalQuoteAssetReserve = $t03841138590._2
794+ let terminalBaseAssetReserve = $t03841138590._3
795795 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
796796 }
797797 }
876876 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
877877 let baseFeeRaw = fee()
878878 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
879- let $t04324943744 = if ((_artifactId != ""))
879+ let $t04325443749 = if ((_artifactId != ""))
880880 then {
881881 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
882882 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
888888 else throw("Invalid attached artifact")
889889 }
890890 else $Tuple2(baseFee, false)
891- let adjustedFee = $t04324943744._1
892- let burnArtifact = $t04324943744._2
891+ let adjustedFee = $t04325443749._1
892+ let burnArtifact = $t04325443749._2
893893 $Tuple2(adjustedFee, burnArtifact)
894894 }
895895
904904 case _ =>
905905 throw("Invalid computeFeeDiscount result")
906906 }
907- let $t04409044164 = getAdjustedFee(_artifactId, feeDiscount)
908- let adjustedFee = $t04409044164._1
909- let burnArtifact = $t04409044164._2
907+ let $t04409544169 = getAdjustedFee(_artifactId, feeDiscount)
908+ let adjustedFee = $t04409544169._1
909+ let burnArtifact = $t04409544169._2
910910 $Tuple2(adjustedFee, burnArtifact)
911911 }
912912 else throw("Strict value is not equal to itself.")
10601060 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10611061 let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)
10621062 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
1063- let $t05304953200 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1064- let newQuoteAssetWeight = $t05304953200._1
1065- let newBaseAssetWeight = $t05304953200._2
1066- let marginToVault = $t05304953200._3
1063+ let $t05305453205 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1064+ let newQuoteAssetWeight = $t05305453205._1
1065+ let newBaseAssetWeight = $t05305453205._2
1066+ let marginToVault = $t05305453205._3
10671067 let doExchangePnL = if ((marginToVault != 0))
10681068 then {
10691069 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
12321232 else isMarketClosed())
12331233 then throw("Invalid increasePosition parameters")
12341234 else {
1235- let $t06046360612 = getForTraderWithArtifact(_trader, getArtifactId(i))
1236- let adjustedFee = $t06046360612._1
1237- let burnArtifact = $t06046360612._2
1235+ let $t06046860617 = getForTraderWithArtifact(_trader, getArtifactId(i))
1236+ let adjustedFee = $t06046860617._1
1237+ let burnArtifact = $t06046860617._2
12381238 let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT))
12391239 let distributeFeeAmount = (_rawAmount - _amount)
12401240 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
12471247 throw("Invalid referrerFee")
12481248 }
12491249 let feeAmount = (distributeFeeAmount - referrerFee)
1250- let $t06110861288 = getPosition(_trader, _direction)
1251- let oldPositionSize = $t06110861288._1
1252- let oldPositionMargin = $t06110861288._2
1253- let oldPositionOpenNotional = $t06110861288._3
1254- let oldPositionLstUpdCPF = $t06110861288._4
1255- let oldPositionTimestamp = $t06110861288._5
1250+ let $t06111361293 = getPosition(_trader, _direction)
1251+ let oldPositionSize = $t06111361293._1
1252+ let oldPositionMargin = $t06111361293._2
1253+ let oldPositionOpenNotional = $t06111361293._3
1254+ let oldPositionLstUpdCPF = $t06111361293._4
1255+ let oldPositionTimestamp = $t06111361293._5
12561256 let isNewPosition = (oldPositionSize == 0)
12571257 let isSameDirection = if ((oldPositionSize > 0))
12581258 then (_direction == DIR_LONG)
12611261 then isSameDirection
12621262 else false
12631263 let isAdd = (_direction == DIR_LONG)
1264- let $t06157764710 = if (if (isNewPosition)
1264+ let $t06158264715 = if (if (isNewPosition)
12651265 then true
12661266 else expandExisting)
12671267 then {
12681268 let openNotional = muld(_amount, _leverage)
1269- let $t06208662259 = swapInput(isAdd, openNotional)
1270- let amountBaseAssetBought = $t06208662259._1
1271- let quoteAssetReserveAfter = $t06208662259._2
1272- let baseAssetReserveAfter = $t06208662259._3
1273- let totalPositionSizeAfter = $t06208662259._4
1269+ let $t06209162264 = swapInput(isAdd, openNotional)
1270+ let amountBaseAssetBought = $t06209162264._1
1271+ let quoteAssetReserveAfter = $t06209162264._2
1272+ let baseAssetReserveAfter = $t06209162264._3
1273+ let totalPositionSizeAfter = $t06209162264._4
12741274 if (if ((_minBaseAssetAmount != 0))
12751275 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12761276 else false)
12831283 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12841284 then openNotional
12851285 else 0))
1286- let $t06280563080 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1287- let remainMargin = $t06280563080._1
1288- let x1 = $t06280563080._2
1289- let x2 = $t06280563080._3
1290- let rolloverFee = $t06280563080._4
1286+ let $t06281063085 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1287+ let remainMargin = $t06281063085._1
1288+ let x1 = $t06281063085._2
1289+ let x2 = $t06281063085._3
1290+ let rolloverFee = $t06281063085._4
12911291 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
12921292 then throw("Over max spread limit")
12931293 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
13011301 }
13021302 else {
13031303 let openNotional = muld(_amount, _leverage)
1304- let $t06439864526 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1305- let oldPositionNotional = $t06439864526._1
1306- let unrealizedPnl = $t06439864526._2
1304+ let $t06440364531 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1305+ let oldPositionNotional = $t06440364531._1
1306+ let unrealizedPnl = $t06440364531._2
13071307 if ((oldPositionNotional > openNotional))
13081308 then throw("Use decreasePosition to decrease position size")
13091309 else throw("Close position first")
13101310 }
1311- let newPositionSize = $t06157764710._1
1312- let newPositionRemainMargin = $t06157764710._2
1313- let newPositionOpenNotional = $t06157764710._3
1314- let newPositionLatestCPF = $t06157764710._4
1315- let newPositionTimestamp = $t06157764710._5
1316- let baseAssetReserveAfter = $t06157764710._6
1317- let quoteAssetReserveAfter = $t06157764710._7
1318- let totalPositionSizeAfter = $t06157764710._8
1319- let openInterestNotionalAfter = $t06157764710._9
1320- let totalLongAfter = $t06157764710._10
1321- let totalShortAfter = $t06157764710._11
1322- let totalLongOpenInterestAfter = $t06157764710._12
1323- let totalShortOpenInterestAfter = $t06157764710._13
1324- let rolloverFee = $t06157764710._14
1325- let $t06471664787 = distributeFee((feeAmount + rolloverFee))
1326- let feeToStakers = $t06471664787._1
1327- let feeToVault = $t06471664787._2
1311+ let newPositionSize = $t06158264715._1
1312+ let newPositionRemainMargin = $t06158264715._2
1313+ let newPositionOpenNotional = $t06158264715._3
1314+ let newPositionLatestCPF = $t06158264715._4
1315+ let newPositionTimestamp = $t06158264715._5
1316+ let baseAssetReserveAfter = $t06158264715._6
1317+ let quoteAssetReserveAfter = $t06158264715._7
1318+ let totalPositionSizeAfter = $t06158264715._8
1319+ let openInterestNotionalAfter = $t06158264715._9
1320+ let totalLongAfter = $t06158264715._10
1321+ let totalShortAfter = $t06158264715._11
1322+ let totalLongOpenInterestAfter = $t06158264715._12
1323+ let totalShortOpenInterestAfter = $t06158264715._13
1324+ let rolloverFee = $t06158264715._14
1325+ let $t06472164792 = distributeFee((feeAmount + rolloverFee))
1326+ let feeToStakers = $t06472164792._1
1327+ let feeToVault = $t06472164792._2
13281328 let stake = if ((_amount >= rolloverFee))
13291329 then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))])
13301330 else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil)
13861386 else isMarketClosed())
13871387 then throw("Invalid addMargin parameters")
13881388 else {
1389- let $t06712967309 = getPosition(_trader, _direction)
1390- let oldPositionSize = $t06712967309._1
1391- let oldPositionMargin = $t06712967309._2
1392- let oldPositionOpenNotional = $t06712967309._3
1393- let oldPositionLstUpdCPF = $t06712967309._4
1394- let oldPositionTimestamp = $t06712967309._5
1389+ let $t06713467314 = getPosition(_trader, _direction)
1390+ let oldPositionSize = $t06713467314._1
1391+ let oldPositionMargin = $t06713467314._2
1392+ let oldPositionOpenNotional = $t06713467314._3
1393+ let oldPositionLstUpdCPF = $t06713467314._4
1394+ let oldPositionTimestamp = $t06713467314._5
13951395 let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)])
13961396 if ((stake == stake))
13971397 then {
1398- let $t06744967675 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1399- let remainMargin = $t06744967675._1
1400- let badDebt = $t06744967675._2
1401- let rolloverFee = $t06744967675._3
1398+ let $t06745467696 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1399+ let remainMargin = $t06745467696._1
1400+ let badDebt = $t06745467696._2
1401+ let fundingPayment = $t06745467696._3
1402+ let rolloverFee = $t06745467696._4
14021403 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
14031404 let checkMinMargin = requireMoreMarginRatio(marginRatio, minInitMarginRatio(), false)
14041405 if ((checkMinMargin == checkMinMargin))
14051406 then {
14061407 let doTransferFeeToStakers = if ((rolloverFee > 0))
14071408 then {
1408- let $t06793167990 = distributeFee(rolloverFee)
1409- let feeToStakers = $t06793167990._1
1410- let feeToVault = $t06793167990._2
1409+ let $t06795268011 = distributeFee(rolloverFee)
1410+ let feeToStakers = $t06795268011._1
1411+ let feeToVault = $t06795268011._2
14111412 let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil)
14121413 if ((unstake == unstake))
14131414 then {
14601461 else isMarketClosed())
14611462 then throw("Invalid removeMargin parameters")
14621463 else {
1463- let $t06949169671 = getPosition(_trader, _direction)
1464- let oldPositionSize = $t06949169671._1
1465- let oldPositionMargin = $t06949169671._2
1466- let oldPositionOpenNotional = $t06949169671._3
1467- let oldPositionLstUpdCPF = $t06949169671._4
1468- let oldPositionTimestamp = $t06949169671._5
1469- let $t06967769926 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1470- let remainMargin = $t06967769926._1
1471- let badDebt = $t06967769926._2
1472- let fundingPayment = $t06967769926._3
1473- let rolloverFee = $t06967769926._4
1464+ let $t06951269692 = getPosition(_trader, _direction)
1465+ let oldPositionSize = $t06951269692._1
1466+ let oldPositionMargin = $t06951269692._2
1467+ let oldPositionOpenNotional = $t06951269692._3
1468+ let oldPositionLstUpdCPF = $t06951269692._4
1469+ let oldPositionTimestamp = $t06951269692._5
1470+ let $t06969869947 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1471+ let remainMargin = $t06969869947._1
1472+ let badDebt = $t06969869947._2
1473+ let fundingPayment = $t06969869947._3
1474+ let rolloverFee = $t06969869947._4
14741475 if ((badDebt != 0))
14751476 then throw("Invalid removed margin amount")
14761477 else {
14781479 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
14791480 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
14801481 else {
1481- let $t07031270371 = distributeFee(rolloverFee)
1482- let feeToStakers = $t07031270371._1
1483- let feeToVault = $t07031270371._2
1482+ let $t07033370392 = distributeFee(rolloverFee)
1483+ let feeToStakers = $t07033370392._1
1484+ let feeToVault = $t07033370392._2
14841485 let doTransferFeeToStakers = if ((rolloverFee > 0))
14851486 then {
14861487 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
15381539 then throw("Invalid closePosition parameters")
15391540 else {
15401541 let oldPositionTimestamp = getPosition(_trader, _direction)._5
1541- let $t07270673309 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1542- let newPositionSize = $t07270673309._1
1543- let newPositionMargin = $t07270673309._2
1544- let newPositionOpenNotional = $t07270673309._3
1545- let newPositionLstUpdCPF = $t07270673309._4
1546- let positionBadDebt = $t07270673309._5
1547- let realizedPnl = $t07270673309._6
1548- let marginToTrader = $t07270673309._7
1549- let quoteAssetReserveAfter = $t07270673309._8
1550- let baseAssetReserveAfter = $t07270673309._9
1551- let totalPositionSizeAfter = $t07270673309._10
1552- let openInterestNotionalAfter = $t07270673309._11
1553- let totalLongAfter = $t07270673309._12
1554- let totalShortAfter = $t07270673309._13
1555- let totalLongOpenInterestAfter = $t07270673309._14
1556- let totalShortOpenInterestAfter = $t07270673309._15
1557- let realizedFee = $t07270673309._16
1542+ let $t07272773330 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1543+ let newPositionSize = $t07272773330._1
1544+ let newPositionMargin = $t07272773330._2
1545+ let newPositionOpenNotional = $t07272773330._3
1546+ let newPositionLstUpdCPF = $t07272773330._4
1547+ let positionBadDebt = $t07272773330._5
1548+ let realizedPnl = $t07272773330._6
1549+ let marginToTrader = $t07272773330._7
1550+ let quoteAssetReserveAfter = $t07272773330._8
1551+ let baseAssetReserveAfter = $t07272773330._9
1552+ let totalPositionSizeAfter = $t07272773330._10
1553+ let openInterestNotionalAfter = $t07272773330._11
1554+ let totalLongAfter = $t07272773330._12
1555+ let totalShortAfter = $t07272773330._13
1556+ let totalLongOpenInterestAfter = $t07272773330._14
1557+ let totalShortOpenInterestAfter = $t07272773330._15
1558+ let realizedFee = $t07272773330._16
15581559 if ((positionBadDebt > 0))
15591560 then throw("Invalid closePosition parameters: bad debt")
15601561 else if ((oldPositionTimestamp >= lastTimestamp()))
15781579 case _ =>
15791580 throw("Invalid referrerFee")
15801581 }
1581- let $t07428174354 = distributeFee((realizedFee - referrerFee))
1582- let feeToStakers = $t07428174354._1
1583- let feeToVault = $t07428174354._2
1582+ let $t07430274375 = distributeFee((realizedFee - referrerFee))
1583+ let feeToStakers = $t07430274375._1
1584+ let feeToVault = $t07430274375._2
15841585 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
15851586 if ((depositVault == depositVault))
15861587 then {
16501651 else false)
16511652 then (muld(positionSizeAbs, getSpotPrice()) > minPartialLiquidationNotional())
16521653 else false
1653- let $t07702877415 = if (isPartialLiquidation)
1654+ let $t07704977436 = if (isPartialLiquidation)
16541655 then {
16551656 let liquidationSize = abs(getPartialLiquidationAmount(_trader, oldPositionSize))
16561657 let liquidationRatio = divd(liquidationSize, positionSizeAbs)
16581659 $Tuple2(liquidationRatio, liquidationSize)
16591660 }
16601661 else $Tuple2(0, positionSizeAbs)
1661- let liquidationRatio = $t07702877415._1
1662- let liquidationSize = $t07702877415._2
1663- let $t07742178077 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
1662+ let liquidationRatio = $t07704977436._1
1663+ let liquidationSize = $t07704977436._2
1664+ let $t07744278098 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
16641665 then liquidationSize
16651666 else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true)
1666- let newPositionSize = $t07742178077._1
1667- let newPositionMargin = $t07742178077._2
1668- let newPositionOpenNotional = $t07742178077._3
1669- let newPositionLstUpdCPF = $t07742178077._4
1670- let positionBadDebt = $t07742178077._5
1671- let realizedPnl = $t07742178077._6
1672- let marginToTrader = $t07742178077._7
1673- let quoteAssetReserveAfter = $t07742178077._8
1674- let baseAssetReserveAfter = $t07742178077._9
1675- let totalPositionSizeAfter = $t07742178077._10
1676- let openInterestNotionalAfter = $t07742178077._11
1677- let totalLongAfter = $t07742178077._12
1678- let totalShortAfter = $t07742178077._13
1679- let totalLongOpenInterestAfter = $t07742178077._14
1680- let totalShortOpenInterestAfter = $t07742178077._15
1681- let liquidationPenalty = $t07742178077._16
1667+ let newPositionSize = $t07744278098._1
1668+ let newPositionMargin = $t07744278098._2
1669+ let newPositionOpenNotional = $t07744278098._3
1670+ let newPositionLstUpdCPF = $t07744278098._4
1671+ let positionBadDebt = $t07744278098._5
1672+ let realizedPnl = $t07744278098._6
1673+ let marginToTrader = $t07744278098._7
1674+ let quoteAssetReserveAfter = $t07744278098._8
1675+ let baseAssetReserveAfter = $t07744278098._9
1676+ let totalPositionSizeAfter = $t07744278098._10
1677+ let openInterestNotionalAfter = $t07744278098._11
1678+ let totalLongAfter = $t07744278098._12
1679+ let totalShortAfter = $t07744278098._13
1680+ let totalLongOpenInterestAfter = $t07744278098._14
1681+ let totalShortOpenInterestAfter = $t07744278098._15
1682+ let liquidationPenalty = $t07744278098._16
16821683 let feeToLiquidator = (liquidationPenalty / 2)
16831684 let feeToVault = (liquidationPenalty - feeToLiquidator)
16841685 let ammBalance = (cbalance() - liquidationPenalty)
17391740 then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp)))
17401741 else {
17411742 let underlyingPrice = getOraclePrice()
1742- let $t08029580373 = getFunding()
1743- let shortPremiumFraction = $t08029580373._1
1744- let longPremiumFraction = $t08029580373._2
1745- let premiumToVault = $t08029580373._3
1743+ let $t08031680394 = getFunding()
1744+ let shortPremiumFraction = $t08031680394._1
1745+ let longPremiumFraction = $t08031680394._2
1746+ let premiumToVault = $t08031680394._3
17461747 let doPayFundingToVault = if ((premiumToVault > 0))
17471748 then {
17481749 let doPayFundingToVault = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(premiumToVault)], nil)
17971798 func syncTerminalPriceToOracle () = {
17981799 let _qtAstR = qtAstR()
17991800 let _bsAstR = bsAstR()
1800- let $t08219082556 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1801- let newQuoteAssetWeight = $t08219082556._1
1802- let newBaseAssetWeight = $t08219082556._2
1803- let marginToVault = $t08219082556._3
1801+ let $t08221182577 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1802+ let newQuoteAssetWeight = $t08221182577._1
1803+ let newBaseAssetWeight = $t08221182577._2
1804+ let marginToVault = $t08221182577._3
18041805 let marginToVaultAdj = if (if ((0 > marginToVault))
18051806 then (abs(marginToVault) > cbalance())
18061807 else false)
18651866 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18661867 if ((sync == sync))
18671868 then {
1868- let $t08635086486 = getPosition(_trader, _direction)
1869- let positionSize = $t08635086486._1
1870- let positionMargin = $t08635086486._2
1871- let pon = $t08635086486._3
1872- let positionLstUpdCPF = $t08635086486._4
1873- let positionTimestamp = $t08635086486._5
1874- let $t08648986602 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1875- let positionNotional = $t08648986602._1
1876- let unrealizedPnl = $t08648986602._2
1877- let $t08660586829 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1878- let remainMargin = $t08660586829._1
1879- let badDebt = $t08660586829._2
1880- let fundingPayment = $t08660586829._3
1881- let rolloverFee = $t08660586829._4
1869+ let $t08637186507 = getPosition(_trader, _direction)
1870+ let positionSize = $t08637186507._1
1871+ let positionMargin = $t08637186507._2
1872+ let pon = $t08637186507._3
1873+ let positionLstUpdCPF = $t08637186507._4
1874+ let positionTimestamp = $t08637186507._5
1875+ let $t08651086623 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1876+ let positionNotional = $t08651086623._1
1877+ let unrealizedPnl = $t08651086623._2
1878+ let $t08662686850 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1879+ let remainMargin = $t08662686850._1
1880+ let badDebt = $t08662686850._2
1881+ let fundingPayment = $t08662686850._3
1882+ let rolloverFee = $t08662686850._4
18821883 let underlyingPrice = getOraclePrice()
18831884 let spotPrice = getSpotPrice()
18841885 throw(((((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader, _direction))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee)) + s(underlyingPrice)) + s(spotPrice)))
19021903
19031904 @Callable(i)
19041905 func view_getTerminalAmmPrice () = {
1905- let $t08768287763 = getTerminalAmmState()
1906- let terminalQuoteAssetReserve = $t08768287763._1
1907- let terminalBaseAssetReserve = $t08768287763._2
1906+ let $t08770387784 = getTerminalAmmState()
1907+ let terminalQuoteAssetReserve = $t08770387784._1
1908+ let terminalBaseAssetReserve = $t08770387784._2
19081909 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
19091910 throw(toString(price))
19101911 }
19201921 if ((sync == sync))
19211922 then {
19221923 let underlyingPrice = getOraclePrice()
1923- let $t08841588493 = getFunding()
1924- let shortPremiumFraction = $t08841588493._1
1925- let longPremiumFraction = $t08841588493._2
1926- let premiumToVault = $t08841588493._3
1924+ let $t08843688514 = getFunding()
1925+ let shortPremiumFraction = $t08843688514._1
1926+ let longPremiumFraction = $t08843688514._2
1927+ let premiumToVault = $t08843688514._3
19271928 let longFunding = divd(longPremiumFraction, underlyingPrice)
19281929 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
19291930 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_minInitMarginRatio = "k_minInitMarginRatio"
4141
4242 let k_maintenanceMarginRatio = "k_mmr"
4343
4444 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
4545
4646 let k_partialLiquidationRatio = "k_partLiquidationRatio"
4747
4848 let k_spreadLimit = "k_spreadLimit"
4949
5050 let k_maxPriceImpact = "k_maxPriceImpact"
5151
5252 let k_maxPriceSpread = "k_maxPriceSpread"
5353
5454 let k_maxOpenNotional = "k_maxOpenNotional"
5555
5656 let k_feeToStakersPercent = "k_feeToStakersPercent"
5757
5858 let k_maxOracleDelay = "k_maxOracleDelay"
5959
6060 let k_fundingMode = "k_fundingMode"
6161
6262 let k_oracleMode = "k_oracleMode"
6363
6464 let k_positionMode = "k_positionMode"
6565
6666 let k_minLiquidationNotional = "k_minLiquidationNotional"
6767
6868 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
6969
7070 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
7171
7272 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
7373
7474 let k_longFundingRate = "k_longFundingRate"
7575
7676 let k_shortFundingRate = "k_shortFundingRate"
7777
7878 let k_quoteAssetReserve = "k_qtAstR"
7979
8080 let k_baseAssetReserve = "k_bsAstR"
8181
8282 let k_quoteAssetWeight = "k_qtAstW"
8383
8484 let k_baseAssetWeight = "k_bsAstW"
8585
8686 let k_totalPositionSize = "k_totalPositionSize"
8787
8888 let k_totalLongPositionSize = "k_totalLongPositionSize"
8989
9090 let k_totalShortPositionSize = "k_totalShortPositionSize"
9191
9292 let k_openInterestNotional = "k_openInterestNotional"
9393
9494 let k_openInterestShort = "k_openInterestShort"
9595
9696 let k_openInterestLong = "k_openInterestLong"
9797
9898 let k_lastTx = "k_lastTx"
9999
100100 let k_coordinatorAddress = "k_coordinatorAddress"
101101
102102 let k_vault_address = "k_vault_address"
103103
104104 let k_admin_address = "k_admin_address"
105105
106106 let k_quote_asset = "k_quote_asset"
107107
108108 let k_staking_address = "k_staking_address"
109109
110110 let k_miner_address = "k_miner_address"
111111
112112 let k_orders_address = "k_orders_address"
113113
114114 let k_referral_address = "k_referral_address"
115115
116116 let k_nft_manager_address = "k_nft_manager_address"
117117
118118 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
119119
120120
121121 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
122122
123123
124124 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
125125
126126
127127 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
128128
129129
130130 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set")
131131
132132
133133 func vaultAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_vault_address)), "Vault not set")
134134
135135
136136 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set")
137137
138138
139139 func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set")
140140
141141
142142 func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set")
143143
144144
145145 func nftManagerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_nft_manager_address)), "NFT Manager not set")
146146
147147
148148 let k_token_param = "k_token_param"
149149
150150 let k_token_type = "k_token_type"
151151
152152 let FEE_REDUCTION_TOKEN_TYPE = "fee_reduction"
153153
154154 let DIR_LONG = 1
155155
156156 let DIR_SHORT = 2
157157
158158 let SECONDS = 1000
159159
160160 let DECIMAL_NUMBERS = 6
161161
162162 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
163163
164164 let MINUTES_IN_YEAR = (525600 * DECIMAL_UNIT)
165165
166166 let ONE_DAY = (86400 * DECIMAL_UNIT)
167167
168168 let PNL_OPTION_SPOT = 1
169169
170170 let PNL_OPTION_ORACLE = 2
171171
172172 let FUNDING_ASYMMETRIC = 1
173173
174174 let FUNDING_SYMMETRIC = 2
175175
176176 let ORACLE_PLAIN = 1
177177
178178 let ORACLE_JIT = 2
179179
180180 let POSITION_DIRECT = 1
181181
182182 let POSITION_ORDER = 2
183183
184184 func s (_x) = (toString(_x) + ",")
185185
186186
187187 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
188188
189189
190190 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
191191
192192
193193 func bdivd (_x,_y) = fraction(_x, toBigInt(DECIMAL_UNIT), _y, HALFEVEN)
194194
195195
196196 func bmuld (_x,_y) = fraction(_x, _y, toBigInt(DECIMAL_UNIT), HALFEVEN)
197197
198198
199199 func abs (_x) = if ((_x > 0))
200200 then _x
201201 else -(_x)
202202
203203
204204 func vmax (_x,_y) = if ((_x >= _y))
205205 then _x
206206 else _y
207207
208208
209209 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
210210
211211
212212 func intOr (k,def) = valueOrElse(getInteger(this, k), def)
213213
214214
215215 func strA (_address,_key) = {
216216 let val = valueOrErrorMessage(getString(_address, _key), ("No value for key " + _key))
217217 val
218218 }
219219
220220
221221 func intA (_address,_key) = {
222222 let val = valueOrErrorMessage(getInteger(_address, _key), ("No value for key " + _key))
223223 val
224224 }
225225
226226
227227 func cbalance () = int(k_balance)
228228
229229
230230 func cbalance0 () = intOr(k_balance, 0)
231231
232232
233233 func fee () = int(k_fee)
234234
235235
236236 func rolloverFeeRate () = int(k_rolloverFee)
237237
238238
239239 func initMarginRatio () = int(k_initMarginRatio)
240240
241241
242-func minInitMarginRatio () = intOr(k_minInitMarginRatio, DECIMAL_UNIT)
242+func minInitMarginRatio () = intOr(k_minInitMarginRatio, (10 * DECIMAL_UNIT))
243243
244244
245245 func qtAstR () = int(k_quoteAssetReserve)
246246
247247
248248 func qtAstR0 () = intOr(k_quoteAssetReserve, 0)
249249
250250
251251 func bsAstR () = int(k_baseAssetReserve)
252252
253253
254254 func bsAstR0 () = intOr(k_baseAssetReserve, 0)
255255
256256
257257 func qtAstW () = intOr(k_quoteAssetWeight, DECIMAL_UNIT)
258258
259259
260260 func bsAstW () = intOr(k_baseAssetWeight, DECIMAL_UNIT)
261261
262262
263263 func totalPositionSize () = int(k_totalPositionSize)
264264
265265
266266 func openInterestNotional () = int(k_openInterestNotional)
267267
268268
269269 func openInterestShort () = int(k_openInterestShort)
270270
271271
272272 func openInterestLong () = int(k_openInterestLong)
273273
274274
275275 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
276276
277277
278278 func fundingPeriodRaw () = int(k_fundingPeriod)
279279
280280
281281 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
282282
283283
284284 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
285285
286286
287287 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
288288
289289
290290 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
291291
292292
293293 func partialLiquidationRatio () = int(k_partialLiquidationRatio)
294294
295295
296296 func spreadLimit () = int(k_spreadLimit)
297297
298298
299299 func maxPriceImpact () = int(k_maxPriceImpact)
300300
301301
302302 func maxPriceSpread () = int(k_maxPriceSpread)
303303
304304
305305 func maxOpenNotional () = int(k_maxOpenNotional)
306306
307307
308308 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
309309
310310
311311 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
312312
313313
314314 func totalShortPositionSize () = int(k_totalShortPositionSize)
315315
316316
317317 func totalLongPositionSize () = int(k_totalLongPositionSize)
318318
319319
320320 func lastSequence () = intOr(k_sequence, 0)
321321
322322
323323 func feeToStakersPercent () = int(k_feeToStakersPercent)
324324
325325
326326 func maxOracleDelay () = int(k_maxOracleDelay)
327327
328328
329329 func fundingMode () = intOr(k_fundingMode, FUNDING_ASYMMETRIC)
330330
331331
332332 func oracleMode () = intOr(k_oracleMode, ORACLE_PLAIN)
333333
334334
335335 func positionMode () = intOr(k_positionMode, POSITION_DIRECT)
336336
337337
338338 func minPartialLiquidationNotional () = intOr(k_minLiquidationNotional, (10 * DECIMAL_UNIT))
339339
340340
341341 func lastTimestamp () = lastBlock.timestamp
342342
343343
344344 func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller))
345345
346346
347347 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
348348 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
349349 if (if (_largerThanOrEqualTo)
350350 then (0 > remainingMarginRatio)
351351 else false)
352352 then throw(((("Invalid margin: " + toString(_marginRatio)) + " < ") + toString(_baseMarginRatio)))
353353 else if (if (!(_largerThanOrEqualTo))
354354 then (remainingMarginRatio >= 0)
355355 else false)
356356 then throw(((("Invalid margin: " + toString(_marginRatio)) + " > ") + toString(_baseMarginRatio)))
357357 else true
358358 }
359359
360360
361361 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
362362 then throw("Should not be called with _positionSize == 0")
363363 else if ((_positionSize > 0))
364364 then latestLongCumulativePremiumFraction()
365365 else latestShortCumulativePremiumFraction()
366366
367367
368368 func getPosition (_trader,_direction) = {
369369 let positionKey = ((_trader + "_") + toString(_direction))
370370 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, positionKey))
371371 match positionSizeOpt {
372372 case positionSize: Int =>
373373 $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)))
374374 case _ =>
375375 $Tuple5(0, 0, 0, 0, 0)
376376 }
377377 }
378378
379379
380380 func getDirection (_positionSize) = if ((0 > _positionSize))
381381 then DIR_SHORT
382382 else DIR_LONG
383383
384384
385385 func getPositionFee (_trader,_direction) = {
386386 let positionKey = ((_trader + "_") + toString(_direction))
387387 let positionFeeOpt = getInteger(this, toCompositeKey(k_positionFee, positionKey))
388388 match positionFeeOpt {
389389 case positionFee: Int =>
390390 positionFee
391391 case _ =>
392392 fee()
393393 }
394394 }
395395
396396
397397 func requireOpenPosition (_trader,_direction) = if ((getPosition(_trader, _direction)._1 == 0))
398398 then throw("No open position")
399399 else true
400400
401401
402402 func getOracleData (key) = {
403403 let oracleDataStr = getString(this, key)
404404 if (if (isDefined(oracleDataStr))
405405 then (value(oracleDataStr) != "")
406406 else false)
407407 then {
408408 let oracleData = split(value(oracleDataStr), ",")
409409 let oracleAddress = valueOrErrorMessage(addressFromString(oracleData[0]), ("Invalid oracle address in: " + value(oracleDataStr)))
410410 let priceKey = oracleData[1]
411411 let blockKey = oracleData[2]
412412 let openKey = oracleData[3]
413413 $Tuple4(oracleAddress, priceKey, blockKey, openKey)
414414 }
415415 else unit
416416 }
417417
418418
419419 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
420420
421421
422422 func paused () = valueOrElse(getBoolean(this, k_paused), false)
423423
424424
425425 func closeOnly () = valueOrElse(getBoolean(this, k_closeOnly), false)
426426
427427
428428 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
429429 then {
430430 let newBase = (bsAstR() - _baseAssetAmount)
431431 if ((0 >= newBase))
432432 then throw("Tx lead to base asset reserve <= 0, revert")
433433 else $Tuple3((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount))
434434 }
435435 else {
436436 let newQuote = (qtAstR() - _quoteAssetAmount)
437437 if ((0 >= newQuote))
438438 then throw("Tx lead to base quote reserve <= 0, revert")
439439 else $Tuple3(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount))
440440 }
441441
442442
443443 func calcInvariant (_qtAstR,_bsAstR) = {
444444 let bqtAstR = toBigInt(_qtAstR)
445445 let bbsAstR = toBigInt(_bsAstR)
446446 bmuld(bqtAstR, bbsAstR)
447447 }
448448
449449
450450 func swapInput (_isAdd,_quoteAssetAmount) = {
451451 let _qtAstR = qtAstR()
452452 let _bsAstR = bsAstR()
453453 let _qtAstW = qtAstW()
454454 let _bsAstW = bsAstW()
455455 let quoteAssetAmountAdjusted = divd(_quoteAssetAmount, _qtAstW)
456456 let k = calcInvariant(_qtAstR, _bsAstR)
457457 let quoteAssetReserveAfter = if (_isAdd)
458458 then (_qtAstR + quoteAssetAmountAdjusted)
459459 else (_qtAstR - quoteAssetAmountAdjusted)
460460 let baseAssetReserveAfter = toInt(bdivd(k, toBigInt(quoteAssetReserveAfter)))
461461 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
462462 let amountBaseAssetBought = if (_isAdd)
463463 then amountBaseAssetBoughtAbs
464464 else -(amountBaseAssetBoughtAbs)
465- let $t01658516755 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
466- let quoteAssetReserveAfter1 = $t01658516755._1
467- let baseAssetReserveAfter1 = $t01658516755._2
468- let totalPositionSizeAfter1 = $t01658516755._3
465+ let $t01659016760 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
466+ let quoteAssetReserveAfter1 = $t01659016760._1
467+ let baseAssetReserveAfter1 = $t01659016760._2
468+ let totalPositionSizeAfter1 = $t01659016760._3
469469 let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
470470 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
471471 let priceDiff = abs((priceBefore - marketPrice))
472472 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
473473 let maxPriceImpactValue = maxPriceImpact()
474474 if ((priceImpact > maxPriceImpactValue))
475475 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)))
476476 else $Tuple4(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1)
477477 }
478478
479479
480480 func calcRolloverFee (_oldPositionMargin,_oldPositionLastUpdatedTimestamp) = {
481481 let positionMinutes = ((((lastTimestamp() - _oldPositionLastUpdatedTimestamp) / 1000) / 60) * DECIMAL_UNIT)
482482 let rolloverFee = divd(muld(muld(_oldPositionMargin, positionMinutes), rolloverFeeRate()), MINUTES_IN_YEAR)
483483 rolloverFee
484484 }
485485
486486
487487 func calcRemainMarginWithFundingPaymentAndRolloverFee (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_oldPositionLastUpdatedTimestamp,_marginDelta) = {
488488 let fundingPayment = if ((_oldPositionSize != 0))
489489 then {
490490 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
491491 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
492492 }
493493 else 0
494494 let rolloverFee = calcRolloverFee(_oldPositionMargin, _oldPositionLastUpdatedTimestamp)
495495 let signedMargin = (((_marginDelta - rolloverFee) - fundingPayment) + _oldPositionMargin)
496- let $t01942219549 = if ((0 > signedMargin))
496+ let $t01942719554 = if ((0 > signedMargin))
497497 then $Tuple2(0, abs(signedMargin))
498498 else $Tuple2(abs(signedMargin), 0)
499- let remainMargin = $t01942219549._1
500- let badDebt = $t01942219549._2
499+ let remainMargin = $t01942719554._1
500+ let badDebt = $t01942719554._2
501501 $Tuple4(remainMargin, badDebt, fundingPayment, rolloverFee)
502502 }
503503
504504
505505 func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
506506 let priceBefore = divd(muld(_quoteAssetReserve, _quoteAssetWeight), muld(_baseAssetReserve, _baseAssetWeight))
507507 if ((_baseAssetAmount == 0))
508508 then throw("Invalid base asset amount")
509509 else {
510510 let k = calcInvariant(_quoteAssetReserve, _baseAssetReserve)
511511 let baseAssetPoolAmountAfter = if (_isAdd)
512512 then (_baseAssetReserve + _baseAssetAmount)
513513 else (_baseAssetReserve - _baseAssetAmount)
514514 let quoteAssetAfter = toInt(bdivd(k, toBigInt(baseAssetPoolAmountAfter)))
515515 let quoteAssetDelta = abs((quoteAssetAfter - _quoteAssetReserve))
516516 let quoteAssetSold = muld(quoteAssetDelta, _quoteAssetWeight)
517517 let maxPriceImpactValue = maxPriceImpact()
518- let $t02081120973 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
519- let quoteAssetReserveAfter1 = $t02081120973._1
520- let baseAssetReserveAfter1 = $t02081120973._2
521- let totalPositionSizeAfter1 = $t02081120973._3
518+ let $t02081620978 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
519+ let quoteAssetReserveAfter1 = $t02081620978._1
520+ let baseAssetReserveAfter1 = $t02081620978._2
521+ let totalPositionSizeAfter1 = $t02081620978._3
522522 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
523523 let priceDiff = abs((priceBefore - marketPrice))
524524 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
525525 if (if ((priceImpact > maxPriceImpactValue))
526526 then _checkMaxPriceImpact
527527 else false)
528528 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)))
529529 else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, (totalLongPositionSize() - (if (_isAdd)
530530 then abs(_baseAssetAmount)
531531 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
532532 then abs(_baseAssetAmount)
533533 else 0)), priceImpact)
534534 }
535535 }
536536
537537
538538 func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), qtAstW(), bsAstR(), bsAstW())
539539
540540
541541 func getOraclePriceValue (oracle,priceKey,blockKey) = {
542542 let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey))
543543 if ((blockKey != ""))
544544 then {
545545 let currentBlock = height
546546 let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, blockKey), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
547547 if (((currentBlock - lastOracleBlock) > maxOracleDelay()))
548548 then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock)))
549549 else lastValue
550550 }
551551 else lastValue
552552 }
553553
554554
555555 func getOraclePrice () = {
556556 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
557557 let baseOraclePrice = getOraclePriceValue(baseOracle._1, baseOracle._2, baseOracle._3)
558558 let quoteOracle = getOracleData(k_quoteOracle)
559559 let quoteOraclePrice = if (isDefined(quoteOracle))
560560 then {
561561 let quoteOracleV = value(quoteOracle)
562562 getOraclePriceValue(quoteOracleV._1, quoteOracleV._2, quoteOracleV._3)
563563 }
564564 else DECIMAL_UNIT
565565 divd(baseOraclePrice, quoteOraclePrice)
566566 }
567567
568568
569569 func isMarketClosed () = {
570570 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
571571 let oracle = baseOracle._1
572572 let openKey = baseOracle._4
573573 if ((openKey != ""))
574574 then {
575575 let isOpen = valueOrErrorMessage(getBoolean(oracle, openKey), ((("Can not get oracle is open/closed. Oracle: " + toString(oracle)) + " key: ") + openKey))
576576 !(isOpen)
577577 }
578578 else false
579579 }
580580
581581
582582 func absPriceDiff (_oraclePrice,_quoteAssetReserve,_baseAssetReserve,_qtAstW,_bsAstW) = {
583583 let priceAfter = divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
584584 let averagePrice = divd((_oraclePrice + priceAfter), (2 * DECIMAL_UNIT))
585585 let absPriceDiff = divd(abs((_oraclePrice - priceAfter)), averagePrice)
586586 absPriceDiff
587587 }
588588
589589
590590 func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = {
591591 let oraclePrice = getOraclePrice()
592592 let _qtAstW = qtAstW()
593593 let _bsAstW = bsAstW()
594594 let absPriceDiffBefore = absPriceDiff(oraclePrice, qtAstR(), bsAstR(), _qtAstW, _bsAstW)
595595 let absPriceDiffAfter = absPriceDiff(oraclePrice, _quoteAssetReserve, _baseAssetReserve, _qtAstW, _bsAstW)
596596 if (if ((absPriceDiffAfter > maxPriceSpread()))
597597 then (absPriceDiffAfter > absPriceDiffBefore)
598598 else false)
599599 then throw(((("Price spread " + toString(absPriceDiffAfter)) + " > max price spread ") + toString(maxPriceSpread())))
600600 else true
601601 }
602602
603603
604604 func requireNotOverMaxOpenNotional (_longOpenNotional,_shortOpenNotional) = {
605605 let _maxOpenNotional = maxOpenNotional()
606606 if ((_longOpenNotional > _maxOpenNotional))
607607 then throw(((("Long open notional " + toString(_longOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
608608 else if ((_shortOpenNotional > _maxOpenNotional))
609609 then throw(((("Short open notional " + toString(_shortOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
610610 else true
611611 }
612612
613613
614614 func requireSenderCanWorkWithPositions (_caller) = if ((positionMode() == POSITION_ORDER))
615615 then (_caller == ordersAddress())
616616 else true
617617
618618
619619 func getSpotPrice () = {
620620 let _quoteAssetReserve = qtAstR()
621621 let _baseAssetReserve = bsAstR()
622622 let _qtAstW = qtAstW()
623623 let _bsAstW = bsAstW()
624624 divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
625625 }
626626
627627
628628 func isOverFluctuationLimit () = {
629629 let oraclePrice = getOraclePrice()
630630 let currentPrice = getSpotPrice()
631631 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
632632 }
633633
634634
635635 func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
636636 let positionSizeAbs = abs(_positionSize)
637637 let isShort = (0 > _positionSize)
638638 let positionNotional = if ((_option == PNL_OPTION_SPOT))
639639 then {
640640 let outPositionNotional = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)._1
641641 outPositionNotional
642642 }
643643 else muld(positionSizeAbs, getOraclePrice())
644644 positionNotional
645645 }
646646
647647
648648 func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight,_option) = if ((_positionSize == 0))
649649 then throw("Invalid position size")
650650 else {
651651 let isShort = (0 > _positionSize)
652652 let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
653653 let unrealizedPnl = if (isShort)
654654 then (_positionOpenNotional - positionNotional)
655655 else (positionNotional - _positionOpenNotional)
656656 $Tuple2(positionNotional, unrealizedPnl)
657657 }
658658
659659
660660 func getPositionNotionalAndUnrealizedPnl (_trader,_direction,_option) = {
661- let $t02911429254 = getPosition(_trader, _direction)
662- let positionSize = $t02911429254._1
663- let positionMargin = $t02911429254._2
664- let positionOpenNotional = $t02911429254._3
665- let positionLstUpdCPF = $t02911429254._4
661+ let $t02911929259 = getPosition(_trader, _direction)
662+ let positionSize = $t02911929259._1
663+ let positionMargin = $t02911929259._2
664+ let positionOpenNotional = $t02911929259._3
665+ let positionLstUpdCPF = $t02911929259._4
666666 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
667667 }
668668
669669
670670 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
671671
672672
673673 func getMarginRatioByOption (_trader,_direction,_option) = {
674- let $t02978629939 = getPosition(_trader, _direction)
675- let positionSize = $t02978629939._1
676- let positionMargin = $t02978629939._2
677- let pon = $t02978629939._3
678- let positionLastUpdatedCPF = $t02978629939._4
679- let positionTimestamp = $t02978629939._5
680- let $t02994530050 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
681- let positionNotional = $t02994530050._1
682- let unrealizedPnl = $t02994530050._2
683- let $t03005530267 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
684- let remainMargin = $t03005530267._1
685- let badDebt = $t03005530267._2
674+ let $t02979129944 = getPosition(_trader, _direction)
675+ let positionSize = $t02979129944._1
676+ let positionMargin = $t02979129944._2
677+ let pon = $t02979129944._3
678+ let positionLastUpdatedCPF = $t02979129944._4
679+ let positionTimestamp = $t02979129944._5
680+ let $t02995030055 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
681+ let positionNotional = $t02995030055._1
682+ let unrealizedPnl = $t02995030055._2
683+ let $t03006030272 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
684+ let remainMargin = $t03006030272._1
685+ let badDebt = $t03006030272._2
686686 calcMarginRatio(remainMargin, badDebt, positionNotional)
687687 }
688688
689689
690690 func getMarginRatio (_trader,_direction) = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
691691
692692
693693 func getPartialLiquidationAmount (_trader,_positionSize) = {
694694 let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader, getDirection(_positionSize)), maintenanceMarginRatio())))
695695 let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio)
696696 let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false)
697697 let maxExchangedQuoteAssetAmount = swapResult._1
698698 let priceImpact = swapResult._7
699699 if ((maxPriceImpact() > priceImpact))
700700 then maxExchangedPositionSize
701701 else muld(abs(_positionSize), partialLiquidationRatio())
702702 }
703703
704704
705705 func internalClosePosition (_trader,_direction,_size,_fee,_minQuoteAssetAmount,_addToMargin,_checkMaxPriceImpact,_liquidate) = {
706- let $t03143031598 = getPosition(_trader, _direction)
707- let oldPositionSize = $t03143031598._1
708- let oldPositionMargin = $t03143031598._2
709- let oldPositionOpenNotional = $t03143031598._3
710- let oldPositionLstUpdCPF = $t03143031598._4
711- let oldPositionTimestamp = $t03143031598._5
706+ let $t03143531603 = getPosition(_trader, _direction)
707+ let oldPositionSize = $t03143531603._1
708+ let oldPositionMargin = $t03143531603._2
709+ let oldPositionOpenNotional = $t03143531603._3
710+ let oldPositionLstUpdCPF = $t03143531603._4
711+ let oldPositionTimestamp = $t03143531603._5
712712 let isLongPosition = (oldPositionSize > 0)
713713 let absOldPositionSize = abs(oldPositionSize)
714714 if (if ((absOldPositionSize >= _size))
715715 then (_size > 0)
716716 else false)
717717 then {
718718 let isPartialClose = (absOldPositionSize > _size)
719- let $t03189032341 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
720- let exchangedQuoteAssetAmount = $t03189032341._1
721- let quoteAssetReserveAfter = $t03189032341._2
722- let baseAssetReserveAfter = $t03189032341._3
723- let totalPositionSizeAfter = $t03189032341._4
719+ let $t03189532346 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
720+ let exchangedQuoteAssetAmount = $t03189532346._1
721+ let quoteAssetReserveAfter = $t03189532346._2
722+ let baseAssetReserveAfter = $t03189532346._3
723+ let totalPositionSizeAfter = $t03189532346._4
724724 let exchangedPositionSize = if ((oldPositionSize > 0))
725725 then -(_size)
726726 else _size
727- let $t03255632780 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
728- let oldPositionNotional = $t03255632780._1
729- let unrealizedPnl = $t03255632780._2
727+ let $t03256132785 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
728+ let oldPositionNotional = $t03256132785._1
729+ let unrealizedPnl = $t03256132785._2
730730 let realizedRatio = divd(abs(exchangedPositionSize), absOldPositionSize)
731731 let realizedPnl = muld(unrealizedPnl, realizedRatio)
732- let $t03312133367 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
733- let remainMarginBefore = $t03312133367._1
734- let x1 = $t03312133367._2
735- let x2 = $t03312133367._3
736- let rolloverFee = $t03312133367._4
732+ let $t03312633372 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
733+ let remainMarginBefore = $t03312633372._1
734+ let x1 = $t03312633372._2
735+ let x2 = $t03312633372._3
736+ let rolloverFee = $t03312633372._4
737737 let positionBadDebt = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, realizedPnl)._2
738738 let realizedCloseFee = muld(muld(oldPositionNotional, realizedRatio), _fee)
739739 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
740740 let remainOpenNotional = if ((oldPositionSize > 0))
741741 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
742742 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
743743 let newPositionSize = (oldPositionSize + exchangedPositionSize)
744- let $t03477335159 = if ((newPositionSize == 0))
744+ let $t03477835164 = if ((newPositionSize == 0))
745745 then $Tuple2(0, 0)
746746 else $Tuple2(abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize))
747- let newPositionOpenNotional = $t03477335159._1
748- let newPositionLstUpdCPF = $t03477335159._2
747+ let newPositionOpenNotional = $t03477835164._1
748+ let newPositionLstUpdCPF = $t03477835164._2
749749 let openNotionalDelta = (oldPositionOpenNotional - newPositionOpenNotional)
750750 let marginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
751751 let newPositionMarginWithSameRatio = if ((oldPositionSize > 0))
752752 then (muld((newPositionOpenNotional + unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter)
753753 else (muld((newPositionOpenNotional - unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter)
754754 let marginToTraderRaw = ((remainMarginBefore - (newPositionMarginWithSameRatio + unrealizedPnlAfter)) - realizedCloseFee)
755755 let marginToTrader = if ((0 > marginToTraderRaw))
756756 then if (_liquidate)
757757 then 0
758758 else throw("Invalid internalClosePosition params: unable to pay fee")
759759 else marginToTraderRaw
760760 let newPositionMargin = if (_addToMargin)
761761 then (newPositionMarginWithSameRatio + marginToTrader)
762762 else newPositionMarginWithSameRatio
763763 if (if ((_minQuoteAssetAmount != 0))
764764 then (_minQuoteAssetAmount > exchangedQuoteAssetAmount)
765765 else false)
766766 then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount)))
767767 else $Tuple17(newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, positionBadDebt, realizedPnl, if (if (_addToMargin)
768768 then isPartialClose
769769 else false)
770770 then 0
771771 else marginToTrader, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() - openNotionalDelta), (totalLongPositionSize() - (if (isLongPosition)
772772 then abs(exchangedPositionSize)
773773 else 0)), (totalShortPositionSize() - (if (!(isLongPosition))
774774 then abs(exchangedPositionSize)
775775 else 0)), (openInterestLong() - (if (isLongPosition)
776776 then openNotionalDelta
777777 else 0)), (openInterestShort() - (if (!(isLongPosition))
778778 then openNotionalDelta
779779 else 0)), (realizedCloseFee + rolloverFee), exchangedQuoteAssetAmount)
780780 }
781781 else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(_size)) + " max: ") + toString(absOldPositionSize)))
782782 }
783783
784784
785785 func getTerminalAmmState () = {
786786 let _positionSize = totalPositionSize()
787787 if ((_positionSize == 0))
788788 then $Tuple2(qtAstR(), bsAstR())
789789 else {
790790 let direction = (_positionSize > 0)
791- let $t03840638585 = swapOutput(direction, abs(_positionSize), false)
792- let currentNetMarketValue = $t03840638585._1
793- let terminalQuoteAssetReserve = $t03840638585._2
794- let terminalBaseAssetReserve = $t03840638585._3
791+ let $t03841138590 = swapOutput(direction, abs(_positionSize), false)
792+ let currentNetMarketValue = $t03841138590._1
793+ let terminalQuoteAssetReserve = $t03841138590._2
794+ let terminalBaseAssetReserve = $t03841138590._3
795795 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
796796 }
797797 }
798798
799799
800800 func getQuoteAssetWeight (baseAssetReserve,totalPositionSize,quoteAssetReserve,targetPrice) = {
801801 let b = toBigInt(baseAssetReserve)
802802 let sz = toBigInt(totalPositionSize)
803803 let q = toBigInt(quoteAssetReserve)
804804 let p = toBigInt(targetPrice)
805805 let k = bmuld(q, b)
806806 let newB = (b + sz)
807807 let newQ = bdivd(k, newB)
808808 let z = bdivd(newQ, newB)
809809 let result = bdivd(p, z)
810810 toInt(result)
811811 }
812812
813813
814814 func getSyncTerminalPrice (_terminalPrice,_qtAstR,_bsAstR) = {
815815 let _positionSize = totalPositionSize()
816816 if ((_positionSize == 0))
817817 then {
818818 let newQtAstW = divd(muld(_terminalPrice, _bsAstR), _qtAstR)
819819 $Tuple3(newQtAstW, DECIMAL_UNIT, 0)
820820 }
821821 else {
822822 let direction = (_positionSize > 0)
823823 let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1
824824 let newQtAstW = getQuoteAssetWeight(_bsAstR, _positionSize, _qtAstR, _terminalPrice)
825825 let newBsAstW = DECIMAL_UNIT
826826 let marginToVault = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, _qtAstR, newQtAstW, _bsAstR, newBsAstW, PNL_OPTION_SPOT)._2
827827 $Tuple3(newQtAstW, newBsAstW, marginToVault)
828828 }
829829 }
830830
831831
832832 func getFunding () = {
833833 let underlyingPrice = getOraclePrice()
834834 let spotPrice = getSpotPrice()
835835 let premium = (spotPrice - underlyingPrice)
836836 if (if (isMarketClosed())
837837 then true
838838 else if ((fundingMode() == FUNDING_ASYMMETRIC))
839839 then if ((totalShortPositionSize() == 0))
840840 then true
841841 else (totalLongPositionSize() == 0)
842842 else false)
843843 then $Tuple3(0, 0, 0)
844844 else if ((0 > premium))
845845 then {
846846 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
847847 if ((fundingMode() == FUNDING_ASYMMETRIC))
848848 then {
849849 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
850850 $Tuple3(shortPremiumFraction, longPremiumFraction, 0)
851851 }
852852 else {
853853 let shortTotalPremiumFraction = abs(muld(shortPremiumFraction, totalShortPositionSize()))
854854 let longTotalPremiumFraction = abs(muld(shortPremiumFraction, totalLongPositionSize()))
855855 let premiumToVault = (shortTotalPremiumFraction - longTotalPremiumFraction)
856856 $Tuple3(shortPremiumFraction, shortPremiumFraction, premiumToVault)
857857 }
858858 }
859859 else {
860860 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
861861 if ((fundingMode() == FUNDING_ASYMMETRIC))
862862 then {
863863 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
864864 $Tuple3(shortPremiumFraction, longPremiumFraction, 0)
865865 }
866866 else {
867867 let longTotalPremiumFraction = abs(muld(longPremiumFraction, totalLongPositionSize()))
868868 let shortTotalPremiumFraction = abs(muld(longPremiumFraction, totalShortPositionSize()))
869869 let premiumToVault = (longTotalPremiumFraction - shortTotalPremiumFraction)
870870 $Tuple3(longPremiumFraction, longPremiumFraction, premiumToVault)
871871 }
872872 }
873873 }
874874
875875
876876 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
877877 let baseFeeRaw = fee()
878878 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
879- let $t04324943744 = if ((_artifactId != ""))
879+ let $t04325443749 = if ((_artifactId != ""))
880880 then {
881881 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
882882 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
883883 then {
884884 let reduction = intA(nftManagerAddress(), toCompositeKey(k_token_param, _artifactId))
885885 let adjustedFee = muld(baseFee, reduction)
886886 $Tuple2(adjustedFee, true)
887887 }
888888 else throw("Invalid attached artifact")
889889 }
890890 else $Tuple2(baseFee, false)
891- let adjustedFee = $t04324943744._1
892- let burnArtifact = $t04324943744._2
891+ let adjustedFee = $t04325443749._1
892+ let burnArtifact = $t04325443749._2
893893 $Tuple2(adjustedFee, burnArtifact)
894894 }
895895
896896
897897 func getForTraderWithArtifact (_trader,_artifactId) = {
898898 let doGetFeeDiscount = invoke(minerAddress(), "computeFeeDiscount", [_trader], nil)
899899 if ((doGetFeeDiscount == doGetFeeDiscount))
900900 then {
901901 let feeDiscount = match doGetFeeDiscount {
902902 case x: Int =>
903903 x
904904 case _ =>
905905 throw("Invalid computeFeeDiscount result")
906906 }
907- let $t04409044164 = getAdjustedFee(_artifactId, feeDiscount)
908- let adjustedFee = $t04409044164._1
909- let burnArtifact = $t04409044164._2
907+ let $t04409544169 = getAdjustedFee(_artifactId, feeDiscount)
908+ let adjustedFee = $t04409544169._1
909+ let burnArtifact = $t04409544169._2
910910 $Tuple2(adjustedFee, burnArtifact)
911911 }
912912 else throw("Strict value is not equal to itself.")
913913 }
914914
915915
916916 func getArtifactId (i) = {
917917 let artifactId = if ((size(i.payments) > 1))
918918 then toBase58String(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifactId"))
919919 else ""
920920 artifactId
921921 }
922922
923923
924924 func distributeFee (_feeAmount) = {
925925 let feeToStakers = muld(_feeAmount, feeToStakersPercent())
926926 let feeToVault = (_feeAmount - feeToStakers)
927927 $Tuple2(feeToStakers, feeToVault)
928928 }
929929
930930
931931 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode,_minInitMarginRatio,_positionMode) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_minInitMarginRatio, _minInitMarginRatio), 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), IntegerEntry(k_positionMode, _positionMode)]
932932
933933
934934 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)]
935935
936936
937937 func incrementPositionSequenceNumber (_isNewPosition,_trader,_direction) = {
938938 let positionKey = ((_trader + "_") + toString(_direction))
939939 if (_isNewPosition)
940940 then {
941941 let currentSequence = lastSequence()
942942 [IntegerEntry(toCompositeKey(k_positionSequence, positionKey), (currentSequence + 1)), IntegerEntry(k_sequence, (currentSequence + 1))]
943943 }
944944 else nil
945945 }
946946
947947
948948 func updatePositionFee (_isNewPosition,_trader,_direction,_fee) = {
949949 let positionKey = ((_trader + "_") + toString(_direction))
950950 if (_isNewPosition)
951951 then [IntegerEntry(toCompositeKey(k_positionFee, positionKey), _fee)]
952952 else nil
953953 }
954954
955955
956956 func updatePosition (_trader,_size,_margin,_openNotional,_latestCumulativePremiumFraction,_latestTimestamp) = {
957957 let direction = getDirection(_size)
958958 let positionKey = ((_trader + "_") + toString(direction))
959959 [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)]
960960 }
961961
962962
963963 func updateAmmReserves (_qtAstR,_bsAstR) = if (if ((0 > _qtAstR))
964964 then true
965965 else (0 > _bsAstR))
966966 then throw("Invalid amount to update reserves")
967967 else if (if ((_qtAstR != qtAstR0()))
968968 then true
969969 else (_bsAstR != bsAstR0()))
970970 then [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)]
971971 else nil
972972
973973
974974 func updateAmmWeights (_qtAstW,_bsAstW) = if (if ((_qtAstW != qtAstW()))
975975 then true
976976 else (_bsAstW != bsAstW()))
977977 then [IntegerEntry(k_quoteAssetWeight, _qtAstW), IntegerEntry(k_baseAssetWeight, _bsAstW)]
978978 else nil
979979
980980
981981 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize,_totalLongOpenNotional,_totalShortOpenNotional) = {
982982 let _qtAstW = qtAstW()
983983 let _bsAstW = bsAstW()
984984 if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
985985 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " - ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
986986 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)])
987987 }
988988
989989
990990 func deletePosition (_trader,_direction) = {
991991 let positionKey = ((_trader + "_") + toString(_direction))
992992 [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))]
993993 }
994994
995995
996996 func withdraw (_address,_amount) = {
997997 let balance = assetBalance(this, quoteAsset())
998998 if ((_amount > balance))
999999 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
10001000 else [ScriptTransfer(_address, _amount, quoteAsset())]
10011001 }
10021002
10031003
10041004 func updateBalance (_balance) = if ((0 > _balance))
10051005 then throw("Balance")
10061006 else if (if ((cbalance0() == 0))
10071007 then true
10081008 else (cbalance0() != _balance))
10091009 then [IntegerEntry(k_balance, _balance)]
10101010 else nil
10111011
10121012
10131013 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
10141014
10151015
10161016 func doBurnArtifact (_burnArtifact,i) = if (_burnArtifact)
10171017 then [Burn(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifact"), 1)]
10181018 else nil
10191019
10201020
10211021 @Callable(i)
10221022 func pause () = if ((i.caller != adminAddress()))
10231023 then throw("Invalid pause params")
10241024 else [BooleanEntry(k_paused, true)]
10251025
10261026
10271027
10281028 @Callable(i)
10291029 func unpause () = if ((i.caller != adminAddress()))
10301030 then throw("Invalid unpause params")
10311031 else [BooleanEntry(k_paused, false)]
10321032
10331033
10341034
10351035 @Callable(i)
10361036 func setCloseOnly () = if ((i.caller != adminAddress()))
10371037 then throw("Invalid setCloseOnly params")
10381038 else [BooleanEntry(k_closeOnly, true)]
10391039
10401040
10411041
10421042 @Callable(i)
10431043 func unsetCloseOnly () = if ((i.caller != adminAddress()))
10441044 then throw("Invalid unsetCloseOnly params")
10451045 else [BooleanEntry(k_closeOnly, false)]
10461046
10471047
10481048
10491049 @Callable(i)
10501050 func changeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
10511051 then true
10521052 else (_quoteAssetAmount == 0))
10531053 then throw("Invalid changeLiquidity params")
10541054 else {
10551055 let _qtAstR = qtAstR()
10561056 let _bsAstR = bsAstR()
10571057 let _qtAstW = qtAstW()
10581058 let _bsAstW = bsAstW()
10591059 let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
10601060 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10611061 let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)
10621062 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
1063- let $t05304953200 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1064- let newQuoteAssetWeight = $t05304953200._1
1065- let newBaseAssetWeight = $t05304953200._2
1066- let marginToVault = $t05304953200._3
1063+ let $t05305453205 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1064+ let newQuoteAssetWeight = $t05305453205._1
1065+ let newBaseAssetWeight = $t05305453205._2
1066+ let marginToVault = $t05305453205._3
10671067 let doExchangePnL = if ((marginToVault != 0))
10681068 then {
10691069 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
10701070 if ((doExchangePnL == doExchangePnL))
10711071 then nil
10721072 else throw("Strict value is not equal to itself.")
10731073 }
10741074 else nil
10751075 if ((doExchangePnL == doExchangePnL))
10761076 then (updateAmmReserves(qtAstRAfter, bsAstRAfter) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight))
10771077 else throw("Strict value is not equal to itself.")
10781078 }
10791079
10801080
10811081
10821082 @Callable(i)
10831083 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode,_baseOracleData,_quoteOracleData,_minInitMarginRatio,_positionMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _fundingPeriod))
10841084 then true
10851085 else (0 >= _initMarginRatio))
10861086 then true
10871087 else (_initMarginRatio > DECIMAL_UNIT))
10881088 then true
10891089 else (0 >= _minInitMarginRatio))
10901090 then true
10911091 else (_initMarginRatio > _minInitMarginRatio))
10921092 then true
10931093 else (0 >= _mmr))
10941094 then true
10951095 else (0 >= _liquidationFeeRatio))
10961096 then true
10971097 else (0 >= _fee))
10981098 then true
10991099 else (0 >= _spreadLimit))
11001100 then true
11011101 else (0 >= _maxPriceImpact))
11021102 then true
11031103 else (0 >= _partialLiquidationRatio))
11041104 then true
11051105 else (0 >= _maxPriceSpread))
11061106 then true
11071107 else (0 >= _maxOpenNotional))
11081108 then true
11091109 else (0 >= _feeToStakersPercent))
11101110 then true
11111111 else (_feeToStakersPercent > DECIMAL_UNIT))
11121112 then true
11131113 else (0 > _maxOracleDelay))
11141114 then true
11151115 else (0 >= _rolloverFee))
11161116 then true
11171117 else if ((_fundingMode != FUNDING_SYMMETRIC))
11181118 then (_fundingMode != FUNDING_ASYMMETRIC)
11191119 else false)
11201120 then true
11211121 else if ((_oracleMode != ORACLE_PLAIN))
11221122 then (_oracleMode != ORACLE_JIT)
11231123 else false)
11241124 then true
11251125 else if ((_positionMode != POSITION_DIRECT))
11261126 then (_positionMode != POSITION_ORDER)
11271127 else false)
11281128 then true
11291129 else !(initialized()))
11301130 then true
11311131 else (i.caller != adminAddress()))
11321132 then throw("Invalid changeSettings params")
11331133 else (updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode, _minInitMarginRatio, _positionMode) ++ [StringEntry(k_baseOracle, _baseOracleData), StringEntry(k_quoteOracle, _quoteOracleData)])
11341134
11351135
11361136
11371137 @Callable(i)
11381138 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_baseOracleData,_quoteOracleData,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode,_minInitMarginRatio,_positionMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
11391139 then true
11401140 else (0 >= _bsAstR))
11411141 then true
11421142 else (0 >= _fundingPeriod))
11431143 then true
11441144 else (0 >= _initMarginRatio))
11451145 then true
11461146 else (_initMarginRatio > DECIMAL_UNIT))
11471147 then true
11481148 else (0 >= _minInitMarginRatio))
11491149 then true
11501150 else (_initMarginRatio > _minInitMarginRatio))
11511151 then true
11521152 else (0 >= _mmr))
11531153 then true
11541154 else (0 >= _liquidationFeeRatio))
11551155 then true
11561156 else (0 >= _fee))
11571157 then true
11581158 else (0 >= _spreadLimit))
11591159 then true
11601160 else (0 >= _maxPriceImpact))
11611161 then true
11621162 else (0 >= _partialLiquidationRatio))
11631163 then true
11641164 else (0 >= _maxPriceSpread))
11651165 then true
11661166 else (0 >= _maxOpenNotional))
11671167 then true
11681168 else (0 >= _feeToStakersPercent))
11691169 then true
11701170 else (_feeToStakersPercent > DECIMAL_UNIT))
11711171 then true
11721172 else (0 > _maxOracleDelay))
11731173 then true
11741174 else (0 >= _rolloverFee))
11751175 then true
11761176 else if ((_fundingMode != FUNDING_SYMMETRIC))
11771177 then (_fundingMode != FUNDING_ASYMMETRIC)
11781178 else false)
11791179 then true
11801180 else if ((_oracleMode != ORACLE_PLAIN))
11811181 then (_oracleMode != ORACLE_JIT)
11821182 else false)
11831183 then true
11841184 else if ((_positionMode != POSITION_DIRECT))
11851185 then (_positionMode != POSITION_ORDER)
11861186 else false)
11871187 then true
11881188 else initialized())
11891189 then true
11901190 else (i.caller != this))
11911191 then throw("Invalid initialize parameters")
11921192 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, _minInitMarginRatio, _positionMode)) ++ 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)))])
11931193
11941194
11951195
11961196 @Callable(i)
11971197 func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink,_priceUpdate) = {
11981198 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
11991199 if ((updateOracle == updateOracle))
12001200 then {
12011201 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
12021202 if ((sync == sync))
12031203 then {
12041204 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
12051205 if ((ensureCalledOnce == ensureCalledOnce))
12061206 then {
12071207 let _trader = getActualCaller(i)
12081208 let _rawAmount = i.payments[0].amount
12091209 let _assetId = i.payments[0].assetId
12101210 let _assetIdStr = toBase58String(value(_assetId))
12111211 let isQuoteAsset = (_assetId == quoteAsset())
12121212 if (if (if (if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
12131213 then (_direction != DIR_SHORT)
12141214 else false)
12151215 then true
12161216 else (0 >= _rawAmount))
12171217 then true
12181218 else !(initialized()))
12191219 then true
12201220 else !(isQuoteAsset))
12211221 then true
12221222 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
12231223 then true
12241224 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), minInitMarginRatio(), false)))
12251225 then true
12261226 else !(requireSenderCanWorkWithPositions(i.caller)))
12271227 then true
12281228 else paused())
12291229 then true
12301230 else closeOnly())
12311231 then true
12321232 else isMarketClosed())
12331233 then throw("Invalid increasePosition parameters")
12341234 else {
1235- let $t06046360612 = getForTraderWithArtifact(_trader, getArtifactId(i))
1236- let adjustedFee = $t06046360612._1
1237- let burnArtifact = $t06046360612._2
1235+ let $t06046860617 = getForTraderWithArtifact(_trader, getArtifactId(i))
1236+ let adjustedFee = $t06046860617._1
1237+ let burnArtifact = $t06046860617._2
12381238 let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT))
12391239 let distributeFeeAmount = (_rawAmount - _amount)
12401240 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
12411241 if ((referrerFeeAny == referrerFeeAny))
12421242 then {
12431243 let referrerFee = match referrerFeeAny {
12441244 case x: Int =>
12451245 x
12461246 case _ =>
12471247 throw("Invalid referrerFee")
12481248 }
12491249 let feeAmount = (distributeFeeAmount - referrerFee)
1250- let $t06110861288 = getPosition(_trader, _direction)
1251- let oldPositionSize = $t06110861288._1
1252- let oldPositionMargin = $t06110861288._2
1253- let oldPositionOpenNotional = $t06110861288._3
1254- let oldPositionLstUpdCPF = $t06110861288._4
1255- let oldPositionTimestamp = $t06110861288._5
1250+ let $t06111361293 = getPosition(_trader, _direction)
1251+ let oldPositionSize = $t06111361293._1
1252+ let oldPositionMargin = $t06111361293._2
1253+ let oldPositionOpenNotional = $t06111361293._3
1254+ let oldPositionLstUpdCPF = $t06111361293._4
1255+ let oldPositionTimestamp = $t06111361293._5
12561256 let isNewPosition = (oldPositionSize == 0)
12571257 let isSameDirection = if ((oldPositionSize > 0))
12581258 then (_direction == DIR_LONG)
12591259 else (_direction == DIR_SHORT)
12601260 let expandExisting = if (!(isNewPosition))
12611261 then isSameDirection
12621262 else false
12631263 let isAdd = (_direction == DIR_LONG)
1264- let $t06157764710 = if (if (isNewPosition)
1264+ let $t06158264715 = if (if (isNewPosition)
12651265 then true
12661266 else expandExisting)
12671267 then {
12681268 let openNotional = muld(_amount, _leverage)
1269- let $t06208662259 = swapInput(isAdd, openNotional)
1270- let amountBaseAssetBought = $t06208662259._1
1271- let quoteAssetReserveAfter = $t06208662259._2
1272- let baseAssetReserveAfter = $t06208662259._3
1273- let totalPositionSizeAfter = $t06208662259._4
1269+ let $t06209162264 = swapInput(isAdd, openNotional)
1270+ let amountBaseAssetBought = $t06209162264._1
1271+ let quoteAssetReserveAfter = $t06209162264._2
1272+ let baseAssetReserveAfter = $t06209162264._3
1273+ let totalPositionSizeAfter = $t06209162264._4
12741274 if (if ((_minBaseAssetAmount != 0))
12751275 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12761276 else false)
12771277 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
12781278 else {
12791279 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
12801280 let totalLongOpenInterestAfter = (openInterestLong() + (if ((newPositionSize > 0))
12811281 then openNotional
12821282 else 0))
12831283 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12841284 then openNotional
12851285 else 0))
1286- let $t06280563080 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1287- let remainMargin = $t06280563080._1
1288- let x1 = $t06280563080._2
1289- let x2 = $t06280563080._3
1290- let rolloverFee = $t06280563080._4
1286+ let $t06281063085 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1287+ let remainMargin = $t06281063085._1
1288+ let x1 = $t06281063085._2
1289+ let x2 = $t06281063085._3
1290+ let rolloverFee = $t06281063085._4
12911291 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
12921292 then throw("Over max spread limit")
12931293 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
12941294 then throw("Over max open notional")
12951295 else $Tuple14(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), lastTimestamp(), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
12961296 then abs(amountBaseAssetBought)
12971297 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
12981298 then abs(amountBaseAssetBought)
12991299 else 0)), totalLongOpenInterestAfter, totalShortOpenInterestAfter, rolloverFee)
13001300 }
13011301 }
13021302 else {
13031303 let openNotional = muld(_amount, _leverage)
1304- let $t06439864526 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1305- let oldPositionNotional = $t06439864526._1
1306- let unrealizedPnl = $t06439864526._2
1304+ let $t06440364531 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1305+ let oldPositionNotional = $t06440364531._1
1306+ let unrealizedPnl = $t06440364531._2
13071307 if ((oldPositionNotional > openNotional))
13081308 then throw("Use decreasePosition to decrease position size")
13091309 else throw("Close position first")
13101310 }
1311- let newPositionSize = $t06157764710._1
1312- let newPositionRemainMargin = $t06157764710._2
1313- let newPositionOpenNotional = $t06157764710._3
1314- let newPositionLatestCPF = $t06157764710._4
1315- let newPositionTimestamp = $t06157764710._5
1316- let baseAssetReserveAfter = $t06157764710._6
1317- let quoteAssetReserveAfter = $t06157764710._7
1318- let totalPositionSizeAfter = $t06157764710._8
1319- let openInterestNotionalAfter = $t06157764710._9
1320- let totalLongAfter = $t06157764710._10
1321- let totalShortAfter = $t06157764710._11
1322- let totalLongOpenInterestAfter = $t06157764710._12
1323- let totalShortOpenInterestAfter = $t06157764710._13
1324- let rolloverFee = $t06157764710._14
1325- let $t06471664787 = distributeFee((feeAmount + rolloverFee))
1326- let feeToStakers = $t06471664787._1
1327- let feeToVault = $t06471664787._2
1311+ let newPositionSize = $t06158264715._1
1312+ let newPositionRemainMargin = $t06158264715._2
1313+ let newPositionOpenNotional = $t06158264715._3
1314+ let newPositionLatestCPF = $t06158264715._4
1315+ let newPositionTimestamp = $t06158264715._5
1316+ let baseAssetReserveAfter = $t06158264715._6
1317+ let quoteAssetReserveAfter = $t06158264715._7
1318+ let totalPositionSizeAfter = $t06158264715._8
1319+ let openInterestNotionalAfter = $t06158264715._9
1320+ let totalLongAfter = $t06158264715._10
1321+ let totalShortAfter = $t06158264715._11
1322+ let totalLongOpenInterestAfter = $t06158264715._12
1323+ let totalShortOpenInterestAfter = $t06158264715._13
1324+ let rolloverFee = $t06158264715._14
1325+ let $t06472164792 = distributeFee((feeAmount + rolloverFee))
1326+ let feeToStakers = $t06472164792._1
1327+ let feeToVault = $t06472164792._2
13281328 let stake = if ((_amount >= rolloverFee))
13291329 then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))])
13301330 else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil)
13311331 if ((stake == stake))
13321332 then {
13331333 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
13341334 if ((depositVault == depositVault))
13351335 then {
13361336 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
13371337 if ((notifyFee == notifyFee))
13381338 then {
13391339 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
13401340 if ((notifyNotional == notifyNotional))
13411341 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))
13421342 else throw("Strict value is not equal to itself.")
13431343 }
13441344 else throw("Strict value is not equal to itself.")
13451345 }
13461346 else throw("Strict value is not equal to itself.")
13471347 }
13481348 else throw("Strict value is not equal to itself.")
13491349 }
13501350 else throw("Strict value is not equal to itself.")
13511351 }
13521352 }
13531353 else throw("Strict value is not equal to itself.")
13541354 }
13551355 else throw("Strict value is not equal to itself.")
13561356 }
13571357 else throw("Strict value is not equal to itself.")
13581358 }
13591359
13601360
13611361
13621362 @Callable(i)
13631363 func addMargin (_direction,_priceUpdate) = {
13641364 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
13651365 if ((updateOracle == updateOracle))
13661366 then {
13671367 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
13681368 if ((sync == sync))
13691369 then {
13701370 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
13711371 if ((ensureCalledOnce == ensureCalledOnce))
13721372 then {
13731373 let _trader = toString(i.caller)
13741374 let _amount = i.payments[0].amount
13751375 let _assetId = i.payments[0].assetId
13761376 let _assetIdStr = toBase58String(value(_assetId))
13771377 let isQuoteAsset = (_assetId == quoteAsset())
13781378 if (if (if (if (if (!(isQuoteAsset))
13791379 then true
13801380 else !(requireOpenPosition(toString(i.caller), _direction)))
13811381 then true
13821382 else !(initialized()))
13831383 then true
13841384 else paused())
13851385 then true
13861386 else isMarketClosed())
13871387 then throw("Invalid addMargin parameters")
13881388 else {
1389- let $t06712967309 = getPosition(_trader, _direction)
1390- let oldPositionSize = $t06712967309._1
1391- let oldPositionMargin = $t06712967309._2
1392- let oldPositionOpenNotional = $t06712967309._3
1393- let oldPositionLstUpdCPF = $t06712967309._4
1394- let oldPositionTimestamp = $t06712967309._5
1389+ let $t06713467314 = getPosition(_trader, _direction)
1390+ let oldPositionSize = $t06713467314._1
1391+ let oldPositionMargin = $t06713467314._2
1392+ let oldPositionOpenNotional = $t06713467314._3
1393+ let oldPositionLstUpdCPF = $t06713467314._4
1394+ let oldPositionTimestamp = $t06713467314._5
13951395 let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)])
13961396 if ((stake == stake))
13971397 then {
1398- let $t06744967675 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1399- let remainMargin = $t06744967675._1
1400- let badDebt = $t06744967675._2
1401- let rolloverFee = $t06744967675._3
1398+ let $t06745467696 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1399+ let remainMargin = $t06745467696._1
1400+ let badDebt = $t06745467696._2
1401+ let fundingPayment = $t06745467696._3
1402+ let rolloverFee = $t06745467696._4
14021403 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
14031404 let checkMinMargin = requireMoreMarginRatio(marginRatio, minInitMarginRatio(), false)
14041405 if ((checkMinMargin == checkMinMargin))
14051406 then {
14061407 let doTransferFeeToStakers = if ((rolloverFee > 0))
14071408 then {
1408- let $t06793167990 = distributeFee(rolloverFee)
1409- let feeToStakers = $t06793167990._1
1410- let feeToVault = $t06793167990._2
1409+ let $t06795268011 = distributeFee(rolloverFee)
1410+ let feeToStakers = $t06795268011._1
1411+ let feeToVault = $t06795268011._2
14111412 let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil)
14121413 if ((unstake == unstake))
14131414 then {
14141415 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
14151416 if ((lockBadDebt == lockBadDebt))
14161417 then transferFee(feeToStakers)
14171418 else throw("Strict value is not equal to itself.")
14181419 }
14191420 else throw("Strict value is not equal to itself.")
14201421 }
14211422 else nil
14221423 if ((doTransferFeeToStakers == doTransferFeeToStakers))
14231424 then ((updatePosition(_trader, oldPositionSize, ((oldPositionMargin - rolloverFee) + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF, lastTimestamp()) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doTransferFeeToStakers)
14241425 else throw("Strict value is not equal to itself.")
14251426 }
14261427 else throw("Strict value is not equal to itself.")
14271428 }
14281429 else throw("Strict value is not equal to itself.")
14291430 }
14301431 }
14311432 else throw("Strict value is not equal to itself.")
14321433 }
14331434 else throw("Strict value is not equal to itself.")
14341435 }
14351436 else throw("Strict value is not equal to itself.")
14361437 }
14371438
14381439
14391440
14401441 @Callable(i)
14411442 func removeMargin (_amount,_direction,_priceUpdate) = {
14421443 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
14431444 if ((updateOracle == updateOracle))
14441445 then {
14451446 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
14461447 if ((sync == sync))
14471448 then {
14481449 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
14491450 if ((ensureCalledOnce == ensureCalledOnce))
14501451 then {
14511452 let _trader = toString(i.caller)
14521453 if (if (if (if (if ((0 >= _amount))
14531454 then true
14541455 else !(requireOpenPosition(_trader, _direction)))
14551456 then true
14561457 else !(initialized()))
14571458 then true
14581459 else paused())
14591460 then true
14601461 else isMarketClosed())
14611462 then throw("Invalid removeMargin parameters")
14621463 else {
1463- let $t06949169671 = getPosition(_trader, _direction)
1464- let oldPositionSize = $t06949169671._1
1465- let oldPositionMargin = $t06949169671._2
1466- let oldPositionOpenNotional = $t06949169671._3
1467- let oldPositionLstUpdCPF = $t06949169671._4
1468- let oldPositionTimestamp = $t06949169671._5
1469- let $t06967769926 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1470- let remainMargin = $t06967769926._1
1471- let badDebt = $t06967769926._2
1472- let fundingPayment = $t06967769926._3
1473- let rolloverFee = $t06967769926._4
1464+ let $t06951269692 = getPosition(_trader, _direction)
1465+ let oldPositionSize = $t06951269692._1
1466+ let oldPositionMargin = $t06951269692._2
1467+ let oldPositionOpenNotional = $t06951269692._3
1468+ let oldPositionLstUpdCPF = $t06951269692._4
1469+ let oldPositionTimestamp = $t06951269692._5
1470+ let $t06969869947 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1471+ let remainMargin = $t06969869947._1
1472+ let badDebt = $t06969869947._2
1473+ let fundingPayment = $t06969869947._3
1474+ let rolloverFee = $t06969869947._4
14741475 if ((badDebt != 0))
14751476 then throw("Invalid removed margin amount")
14761477 else {
14771478 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
14781479 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
14791480 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
14801481 else {
1481- let $t07031270371 = distributeFee(rolloverFee)
1482- let feeToStakers = $t07031270371._1
1483- let feeToVault = $t07031270371._2
1482+ let $t07033370392 = distributeFee(rolloverFee)
1483+ let feeToStakers = $t07033370392._1
1484+ let feeToVault = $t07033370392._2
14841485 let doTransferFeeToStakers = if ((rolloverFee > 0))
14851486 then {
14861487 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
14871488 if ((lockBadDebt == lockBadDebt))
14881489 then transferFee(feeToStakers)
14891490 else throw("Strict value is not equal to itself.")
14901491 }
14911492 else nil
14921493 if ((doTransferFeeToStakers == doTransferFeeToStakers))
14931494 then {
14941495 let unstake = invoke(vaultAddress(), "withdrawLocked", [(_amount + feeToStakers)], nil)
14951496 if ((unstake == unstake))
14961497 then (((updatePosition(_trader, oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize), lastTimestamp()) ++ withdraw(i.caller, _amount)) ++ updateBalance(((cbalance() - _amount) - rolloverFee))) ++ doTransferFeeToStakers)
14971498 else throw("Strict value is not equal to itself.")
14981499 }
14991500 else throw("Strict value is not equal to itself.")
15001501 }
15011502 }
15021503 }
15031504 }
15041505 else throw("Strict value is not equal to itself.")
15051506 }
15061507 else throw("Strict value is not equal to itself.")
15071508 }
15081509 else throw("Strict value is not equal to itself.")
15091510 }
15101511
15111512
15121513
15131514 @Callable(i)
15141515 func closePosition (_size,_direction,_minQuoteAssetAmount,_addToMargin,_priceUpdate) = {
15151516 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
15161517 if ((updateOracle == updateOracle))
15171518 then {
15181519 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
15191520 if ((sync == sync))
15201521 then {
15211522 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
15221523 if ((ensureCalledOnce == ensureCalledOnce))
15231524 then {
15241525 let _trader = getActualCaller(i)
15251526 let _traderAddress = valueOrErrorMessage(addressFromString(_trader), "Invalid caller")
15261527 let positionFee = getPositionFee(_trader, _direction)
15271528 if (if (if (if (if (if (!(requireOpenPosition(_trader, _direction)))
15281529 then true
15291530 else !(initialized()))
15301531 then true
15311532 else paused())
15321533 then true
15331534 else (0 >= _size))
15341535 then true
15351536 else (0 > _minQuoteAssetAmount))
15361537 then true
15371538 else isMarketClosed())
15381539 then throw("Invalid closePosition parameters")
15391540 else {
15401541 let oldPositionTimestamp = getPosition(_trader, _direction)._5
1541- let $t07270673309 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1542- let newPositionSize = $t07270673309._1
1543- let newPositionMargin = $t07270673309._2
1544- let newPositionOpenNotional = $t07270673309._3
1545- let newPositionLstUpdCPF = $t07270673309._4
1546- let positionBadDebt = $t07270673309._5
1547- let realizedPnl = $t07270673309._6
1548- let marginToTrader = $t07270673309._7
1549- let quoteAssetReserveAfter = $t07270673309._8
1550- let baseAssetReserveAfter = $t07270673309._9
1551- let totalPositionSizeAfter = $t07270673309._10
1552- let openInterestNotionalAfter = $t07270673309._11
1553- let totalLongAfter = $t07270673309._12
1554- let totalShortAfter = $t07270673309._13
1555- let totalLongOpenInterestAfter = $t07270673309._14
1556- let totalShortOpenInterestAfter = $t07270673309._15
1557- let realizedFee = $t07270673309._16
1542+ let $t07272773330 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1543+ let newPositionSize = $t07272773330._1
1544+ let newPositionMargin = $t07272773330._2
1545+ let newPositionOpenNotional = $t07272773330._3
1546+ let newPositionLstUpdCPF = $t07272773330._4
1547+ let positionBadDebt = $t07272773330._5
1548+ let realizedPnl = $t07272773330._6
1549+ let marginToTrader = $t07272773330._7
1550+ let quoteAssetReserveAfter = $t07272773330._8
1551+ let baseAssetReserveAfter = $t07272773330._9
1552+ let totalPositionSizeAfter = $t07272773330._10
1553+ let openInterestNotionalAfter = $t07272773330._11
1554+ let totalLongAfter = $t07272773330._12
1555+ let totalShortAfter = $t07272773330._13
1556+ let totalLongOpenInterestAfter = $t07272773330._14
1557+ let totalShortOpenInterestAfter = $t07272773330._15
1558+ let realizedFee = $t07272773330._16
15581559 if ((positionBadDebt > 0))
15591560 then throw("Invalid closePosition parameters: bad debt")
15601561 else if ((oldPositionTimestamp >= lastTimestamp()))
15611562 then throw("Invalid closePosition parameters: wait at least 1 block before closing the position")
15621563 else {
15631564 let isPartialClose = (newPositionSize != 0)
15641565 let withdrawAmount = (marginToTrader + realizedFee)
15651566 let ammBalance = (cbalance() - withdrawAmount)
15661567 let ammNewBalance = if ((0 > ammBalance))
15671568 then 0
15681569 else ammBalance
15691570 let unstake = invoke(vaultAddress(), "withdrawLocked", [withdrawAmount], nil)
15701571 if ((unstake == unstake))
15711572 then {
15721573 let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), realizedFee)])
15731574 if ((referrerFeeAny == referrerFeeAny))
15741575 then {
15751576 let referrerFee = match referrerFeeAny {
15761577 case x: Int =>
15771578 x
15781579 case _ =>
15791580 throw("Invalid referrerFee")
15801581 }
1581- let $t07428174354 = distributeFee((realizedFee - referrerFee))
1582- let feeToStakers = $t07428174354._1
1583- let feeToVault = $t07428174354._2
1582+ let $t07430274375 = distributeFee((realizedFee - referrerFee))
1583+ let feeToStakers = $t07430274375._1
1584+ let feeToVault = $t07430274375._2
15841585 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
15851586 if ((depositVault == depositVault))
15861587 then {
15871588 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, realizedFee], nil)
15881589 if ((notifyFee == notifyFee))
15891590 then {
15901591 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
15911592 if ((notifyNotional == notifyNotional))
15921593 then (((((if (isPartialClose)
15931594 then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp())
15941595 else deletePosition(_trader, _direction)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ (if ((marginToTrader > 0))
15951596 then withdraw(_traderAddress, marginToTrader)
15961597 else nil)) ++ updateBalance(ammNewBalance)) ++ transferFee(feeToStakers))
15971598 else throw("Strict value is not equal to itself.")
15981599 }
15991600 else throw("Strict value is not equal to itself.")
16001601 }
16011602 else throw("Strict value is not equal to itself.")
16021603 }
16031604 else throw("Strict value is not equal to itself.")
16041605 }
16051606 else throw("Strict value is not equal to itself.")
16061607 }
16071608 }
16081609 }
16091610 else throw("Strict value is not equal to itself.")
16101611 }
16111612 else throw("Strict value is not equal to itself.")
16121613 }
16131614 else throw("Strict value is not equal to itself.")
16141615 }
16151616
16161617
16171618
16181619 @Callable(i)
16191620 func liquidate (_trader,_direction,_priceUpdate) = {
16201621 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
16211622 if ((updateOracle == updateOracle))
16221623 then {
16231624 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
16241625 if ((sync == sync))
16251626 then {
16261627 let spotMarginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
16271628 let liquidationMarginRatio = if (isOverFluctuationLimit())
16281629 then {
16291630 let oracleMarginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_ORACLE)
16301631 vmax(spotMarginRatio, oracleMarginRatio)
16311632 }
16321633 else spotMarginRatio
16331634 if (if (if (if (if (!(requireMoreMarginRatio(liquidationMarginRatio, maintenanceMarginRatio(), false)))
16341635 then true
16351636 else !(requireOpenPosition(_trader, _direction)))
16361637 then true
16371638 else !(initialized()))
16381639 then true
16391640 else paused())
16401641 then true
16411642 else isMarketClosed())
16421643 then throw("Unable to liquidate")
16431644 else {
16441645 let oldPositionSize = getPosition(_trader, _direction)._1
16451646 let positionSizeAbs = abs(oldPositionSize)
16461647 let isPartialLiquidation = if (if (if ((spotMarginRatio > liquidationFeeRatio()))
16471648 then (partialLiquidationRatio() > 0)
16481649 else false)
16491650 then (DECIMAL_UNIT > partialLiquidationRatio())
16501651 else false)
16511652 then (muld(positionSizeAbs, getSpotPrice()) > minPartialLiquidationNotional())
16521653 else false
1653- let $t07702877415 = if (isPartialLiquidation)
1654+ let $t07704977436 = if (isPartialLiquidation)
16541655 then {
16551656 let liquidationSize = abs(getPartialLiquidationAmount(_trader, oldPositionSize))
16561657 let liquidationRatio = divd(liquidationSize, positionSizeAbs)
16571658 let liquidationNotional = muld(liquidationSize, getSpotPrice())
16581659 $Tuple2(liquidationRatio, liquidationSize)
16591660 }
16601661 else $Tuple2(0, positionSizeAbs)
1661- let liquidationRatio = $t07702877415._1
1662- let liquidationSize = $t07702877415._2
1663- let $t07742178077 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
1662+ let liquidationRatio = $t07704977436._1
1663+ let liquidationSize = $t07704977436._2
1664+ let $t07744278098 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
16641665 then liquidationSize
16651666 else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true)
1666- let newPositionSize = $t07742178077._1
1667- let newPositionMargin = $t07742178077._2
1668- let newPositionOpenNotional = $t07742178077._3
1669- let newPositionLstUpdCPF = $t07742178077._4
1670- let positionBadDebt = $t07742178077._5
1671- let realizedPnl = $t07742178077._6
1672- let marginToTrader = $t07742178077._7
1673- let quoteAssetReserveAfter = $t07742178077._8
1674- let baseAssetReserveAfter = $t07742178077._9
1675- let totalPositionSizeAfter = $t07742178077._10
1676- let openInterestNotionalAfter = $t07742178077._11
1677- let totalLongAfter = $t07742178077._12
1678- let totalShortAfter = $t07742178077._13
1679- let totalLongOpenInterestAfter = $t07742178077._14
1680- let totalShortOpenInterestAfter = $t07742178077._15
1681- let liquidationPenalty = $t07742178077._16
1667+ let newPositionSize = $t07744278098._1
1668+ let newPositionMargin = $t07744278098._2
1669+ let newPositionOpenNotional = $t07744278098._3
1670+ let newPositionLstUpdCPF = $t07744278098._4
1671+ let positionBadDebt = $t07744278098._5
1672+ let realizedPnl = $t07744278098._6
1673+ let marginToTrader = $t07744278098._7
1674+ let quoteAssetReserveAfter = $t07744278098._8
1675+ let baseAssetReserveAfter = $t07744278098._9
1676+ let totalPositionSizeAfter = $t07744278098._10
1677+ let openInterestNotionalAfter = $t07744278098._11
1678+ let totalLongAfter = $t07744278098._12
1679+ let totalShortAfter = $t07744278098._13
1680+ let totalLongOpenInterestAfter = $t07744278098._14
1681+ let totalShortOpenInterestAfter = $t07744278098._15
1682+ let liquidationPenalty = $t07744278098._16
16821683 let feeToLiquidator = (liquidationPenalty / 2)
16831684 let feeToVault = (liquidationPenalty - feeToLiquidator)
16841685 let ammBalance = (cbalance() - liquidationPenalty)
16851686 let newAmmBalance = if ((0 > ammBalance))
16861687 then 0
16871688 else ammBalance
16881689 let lockBadDebt = if ((positionBadDebt > 0))
16891690 then {
16901691 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [(positionBadDebt + liquidationPenalty)], nil)
16911692 if ((lockBadDebt == lockBadDebt))
16921693 then nil
16931694 else throw("Strict value is not equal to itself.")
16941695 }
16951696 else nil
16961697 if ((lockBadDebt == lockBadDebt))
16971698 then {
16981699 let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil)
16991700 if ((unstake == unstake))
17001701 then {
17011702 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
17021703 if ((depositInsurance == depositInsurance))
17031704 then {
17041705 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
17051706 if ((notifyNotional == notifyNotional))
17061707 then ((((if (isPartialLiquidation)
17071708 then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp())
17081709 else deletePosition(_trader, _direction)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
17091710 else throw("Strict value is not equal to itself.")
17101711 }
17111712 else throw("Strict value is not equal to itself.")
17121713 }
17131714 else throw("Strict value is not equal to itself.")
17141715 }
17151716 else throw("Strict value is not equal to itself.")
17161717 }
17171718 }
17181719 else throw("Strict value is not equal to itself.")
17191720 }
17201721 else throw("Strict value is not equal to itself.")
17211722 }
17221723
17231724
17241725
17251726 @Callable(i)
17261727 func payFunding (_priceUpdate) = {
17271728 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
17281729 if ((updateOracle == updateOracle))
17291730 then {
17301731 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
17311732 if ((sync == sync))
17321733 then {
17331734 let fundingBlockTimestamp = nextFundingBlockTimestamp()
17341735 if (if (if ((fundingBlockTimestamp > lastTimestamp()))
17351736 then true
17361737 else !(initialized()))
17371738 then true
17381739 else paused())
17391740 then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp)))
17401741 else {
17411742 let underlyingPrice = getOraclePrice()
1742- let $t08029580373 = getFunding()
1743- let shortPremiumFraction = $t08029580373._1
1744- let longPremiumFraction = $t08029580373._2
1745- let premiumToVault = $t08029580373._3
1743+ let $t08031680394 = getFunding()
1744+ let shortPremiumFraction = $t08031680394._1
1745+ let longPremiumFraction = $t08031680394._2
1746+ let premiumToVault = $t08031680394._3
17461747 let doPayFundingToVault = if ((premiumToVault > 0))
17471748 then {
17481749 let doPayFundingToVault = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(premiumToVault)], nil)
17491750 if ((doPayFundingToVault == doPayFundingToVault))
17501751 then nil
17511752 else throw("Strict value is not equal to itself.")
17521753 }
17531754 else nil
17541755 if ((doPayFundingToVault == doPayFundingToVault))
17551756 then updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
17561757 else throw("Strict value is not equal to itself.")
17571758 }
17581759 }
17591760 else throw("Strict value is not equal to itself.")
17601761 }
17611762 else throw("Strict value is not equal to itself.")
17621763 }
17631764
17641765
17651766
17661767 @Callable(i)
17671768 func updateOracle (_priceUpdate) = if ((oracleMode() == ORACLE_PLAIN))
17681769 then nil
17691770 else {
17701771 let priceUpdates = split_4C(_priceUpdate, "::")
17711772 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
17721773 let baseOracleAddress = baseOracle._1
17731774 let doUpdateBaseOracle = invoke(baseOracleAddress, "updateData", [priceUpdates[0]], nil)
17741775 if ((doUpdateBaseOracle == doUpdateBaseOracle))
17751776 then {
17761777 let quoteOracle = getOracleData(k_quoteOracle)
17771778 let doUpdateQuoteOracle = if (isDefined(quoteOracle))
17781779 then {
17791780 let quoteOracleV = value(quoteOracle)
17801781 let quoteOracleAddress = quoteOracleV._1
17811782 let doUpdateQuoteOracle = invoke(quoteOracleAddress, "updateData", [priceUpdates[1]], nil)
17821783 if ((doUpdateQuoteOracle == doUpdateQuoteOracle))
17831784 then nil
17841785 else throw("Strict value is not equal to itself.")
17851786 }
17861787 else nil
17871788 if ((doUpdateQuoteOracle == doUpdateQuoteOracle))
17881789 then nil
17891790 else throw("Strict value is not equal to itself.")
17901791 }
17911792 else throw("Strict value is not equal to itself.")
17921793 }
17931794
17941795
17951796
17961797 @Callable(i)
17971798 func syncTerminalPriceToOracle () = {
17981799 let _qtAstR = qtAstR()
17991800 let _bsAstR = bsAstR()
1800- let $t08219082556 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1801- let newQuoteAssetWeight = $t08219082556._1
1802- let newBaseAssetWeight = $t08219082556._2
1803- let marginToVault = $t08219082556._3
1801+ let $t08221182577 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1802+ let newQuoteAssetWeight = $t08221182577._1
1803+ let newBaseAssetWeight = $t08221182577._2
1804+ let marginToVault = $t08221182577._3
18041805 let marginToVaultAdj = if (if ((0 > marginToVault))
18051806 then (abs(marginToVault) > cbalance())
18061807 else false)
18071808 then -(cbalance())
18081809 else marginToVault
18091810 let doExchangePnL = if ((marginToVaultAdj != 0))
18101811 then {
18111812 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVaultAdj], nil)
18121813 if ((doExchangePnL == doExchangePnL))
18131814 then nil
18141815 else throw("Strict value is not equal to itself.")
18151816 }
18161817 else nil
18171818 if ((doExchangePnL == doExchangePnL))
18181819 then (updateBalance((cbalance() + marginToVaultAdj)) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight))
18191820 else throw("Strict value is not equal to itself.")
18201821 }
18211822
18221823
18231824
18241825 @Callable(i)
18251826 func ensureCalledOnce () = if ((i.caller != this))
18261827 then throw("Invalid saveCurrentTxId parameters")
18271828 else {
18281829 let txId = toBase58String(i.transactionId)
18291830 let lastTx = valueOrElse(getString(this, k_lastTx), "")
18301831 if ((lastTx != txId))
18311832 then [StringEntry(k_lastTx, txId)]
18321833 else throw("Can not call vAMM methods twice in one tx")
18331834 }
18341835
18351836
18361837
18371838 @Callable(i)
18381839 func migratePosition (_trader) = {
18391840 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
18401841 if (if (isDefined(positionSizeOpt))
18411842 then isDefined(addressFromString(_trader))
18421843 else false)
18431844 then {
18441845 let pSize = getIntegerValue(this, toCompositeKey(k_positionSize, _trader))
18451846 let pMargin = getIntegerValue(this, toCompositeKey(k_positionMargin, _trader))
18461847 let pNotional = getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader))
18471848 let pFraction = getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader))
18481849 let pTimestamp = valueOrElse(getInteger(this, toCompositeKey(k_positionLastUpdatedTimestamp, _trader)), lastBlock.timestamp)
18491850 let pFee = valueOrElse(getInteger(this, toCompositeKey(k_positionFee, _trader)), fee())
18501851 let pSequence = getIntegerValue(this, toCompositeKey(k_positionSequence, _trader))
18511852 let pDirection = getDirection(pSize)
18521853 let positionKey = ((_trader + "_") + toString(pDirection))
18531854 [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)]
18541855 }
18551856 else throw(("Nothing to migrate for " + _trader))
18561857 }
18571858
18581859
18591860
18601861 @Callable(i)
18611862 func view_calcRemainMarginWithFundingPayment (_trader,_direction,_priceUpdate) = {
18621863 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
18631864 if ((updateOracle == updateOracle))
18641865 then {
18651866 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18661867 if ((sync == sync))
18671868 then {
1868- let $t08635086486 = getPosition(_trader, _direction)
1869- let positionSize = $t08635086486._1
1870- let positionMargin = $t08635086486._2
1871- let pon = $t08635086486._3
1872- let positionLstUpdCPF = $t08635086486._4
1873- let positionTimestamp = $t08635086486._5
1874- let $t08648986602 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1875- let positionNotional = $t08648986602._1
1876- let unrealizedPnl = $t08648986602._2
1877- let $t08660586829 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1878- let remainMargin = $t08660586829._1
1879- let badDebt = $t08660586829._2
1880- let fundingPayment = $t08660586829._3
1881- let rolloverFee = $t08660586829._4
1869+ let $t08637186507 = getPosition(_trader, _direction)
1870+ let positionSize = $t08637186507._1
1871+ let positionMargin = $t08637186507._2
1872+ let pon = $t08637186507._3
1873+ let positionLstUpdCPF = $t08637186507._4
1874+ let positionTimestamp = $t08637186507._5
1875+ let $t08651086623 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1876+ let positionNotional = $t08651086623._1
1877+ let unrealizedPnl = $t08651086623._2
1878+ let $t08662686850 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1879+ let remainMargin = $t08662686850._1
1880+ let badDebt = $t08662686850._2
1881+ let fundingPayment = $t08662686850._3
1882+ let rolloverFee = $t08662686850._4
18821883 let underlyingPrice = getOraclePrice()
18831884 let spotPrice = getSpotPrice()
18841885 throw(((((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader, _direction))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee)) + s(underlyingPrice)) + s(spotPrice)))
18851886 }
18861887 else throw("Strict value is not equal to itself.")
18871888 }
18881889 else throw("Strict value is not equal to itself.")
18891890 }
18901891
18911892
18921893
18931894 @Callable(i)
18941895 func view_getPegAdjustCost (_price) = {
18951896 let _qtAstR = qtAstR()
18961897 let _bsAstR = bsAstR()
18971898 let result = getSyncTerminalPrice(_price, _qtAstR, _bsAstR)
18981899 throw(toString(result._3))
18991900 }
19001901
19011902
19021903
19031904 @Callable(i)
19041905 func view_getTerminalAmmPrice () = {
1905- let $t08768287763 = getTerminalAmmState()
1906- let terminalQuoteAssetReserve = $t08768287763._1
1907- let terminalBaseAssetReserve = $t08768287763._2
1906+ let $t08770387784 = getTerminalAmmState()
1907+ let terminalQuoteAssetReserve = $t08770387784._1
1908+ let terminalBaseAssetReserve = $t08770387784._2
19081909 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
19091910 throw(toString(price))
19101911 }
19111912
19121913
19131914
19141915 @Callable(i)
19151916 func view_getFunding (_priceUpdate) = {
19161917 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
19171918 if ((updateOracle == updateOracle))
19181919 then {
19191920 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
19201921 if ((sync == sync))
19211922 then {
19221923 let underlyingPrice = getOraclePrice()
1923- let $t08841588493 = getFunding()
1924- let shortPremiumFraction = $t08841588493._1
1925- let longPremiumFraction = $t08841588493._2
1926- let premiumToVault = $t08841588493._3
1924+ let $t08843688514 = getFunding()
1925+ let shortPremiumFraction = $t08843688514._1
1926+ let longPremiumFraction = $t08843688514._2
1927+ let premiumToVault = $t08843688514._3
19271928 let longFunding = divd(longPremiumFraction, underlyingPrice)
19281929 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
19291930 throw(((((s(longFunding) + s(shortFunding)) + s(getSpotPrice())) + s(getOraclePrice())) + s(premiumToVault)))
19301931 }
19311932 else throw("Strict value is not equal to itself.")
19321933 }
19331934 else throw("Strict value is not equal to itself.")
19341935 }
19351936
19361937
19371938
19381939 @Callable(i)
19391940 func computeSpotPrice () = {
19401941 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
19411942 if ((sync == sync))
19421943 then {
19431944 let result = getSpotPrice()
19441945 $Tuple2(nil, result)
19451946 }
19461947 else throw("Strict value is not equal to itself.")
19471948 }
19481949
19491950
19501951
19511952 @Callable(i)
19521953 func computeFeeForTraderWithArtifact (_trader,_artifactId) = {
19531954 let result = getForTraderWithArtifact(_trader, _artifactId)
19541955 $Tuple2(nil, result)
19551956 }
19561957
19571958
19581959 @Verifier(tx)
19591960 func verify () = {
19601961 let coordinatorStr = getString(this, k_coordinatorAddress)
19611962 if (isDefined(coordinatorStr))
19621963 then {
19631964 let admin = getString(addressFromStringValue(value(coordinatorStr)), k_admin_address)
19641965 if (isDefined(admin))
19651966 then valueOrElse(getBoolean(addressFromStringValue(value(admin)), ((("status_" + toString(this)) + "_") + toBase58String(tx.id))), false)
19661967 else throw("unable to verify: admin not set in coordinator")
19671968 }
19681969 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
19691970 }
19701971

github/deemru/w8io/026f985 
349.57 ms