tx · BSEqokPhs5v11eiXabLchX21Kstr3dFTbeyNBigrhzY8

3N2PpSwSkK98YvLff2xQa6UcZ6LZ4suyFUF:  -0.07500000 Waves

2022.12.12 20:20 [2357407] smart account 3N2PpSwSkK98YvLff2xQa6UcZ6LZ4suyFUF > SELF 0.00000000 Waves

{ "type": 13, "id": "BSEqokPhs5v11eiXabLchX21Kstr3dFTbeyNBigrhzY8", "fee": 7500000, "feeAssetId": null, "timestamp": 1670865660363, "version": 2, "chainId": 84, "sender": "3N2PpSwSkK98YvLff2xQa6UcZ6LZ4suyFUF", "senderPublicKey": "F7t5bFSaRPct8VH5ZVsR6Z5ZrmBs8ScAsYtnsNFgwgS3", "proofs": [ "kTCi6gC71eyJt1FnetresheFi5e6d1Px9T5dQgFVgamdPh834qDoJyt211kcndDL4PdLZVCXkpZXeX9h5XTDWUT" ], "script": "base64:BgJ6CAISABIAEgASABIDCgEBEgMKAQESDgoMAQEBAQEBAQEBAQEBEhQKEgEBAQEBAQEICAgIAQEBAQEBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESBAoCAQESAwoBCBIAEgASAwoBCBIDCgEBEgASABIDCgEIEgASBAoCCAjAAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgASa19wb3NpdGlvblNlcXVlbmNlAhJrX3Bvc2l0aW9uU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prev: GuiBxDaMKMVd2vg7YfJ1dC9fBYWSF2tuvmwihwPodkG5 Next: FBaRtF1kvTb68ZR9V1BEQNeaE8UtR5mmoK5MEHdATr6n Diff:
OldNewDifferences
544544 if ((blockKey != ""))
545545 then {
546546 let currentBlock = lastBlock.height
547- let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, k_ora_block_key), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
547+ let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, blockKey), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
548548 if (((currentBlock - lastOracleBlock) > maxOracleDelay()))
549549 then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock)))
550550 else lastValue
597597 let isShort = (0 > _positionSize)
598598 let positionNotional = if ((_option == PNL_OPTION_SPOT))
599599 then {
600- let $t02423824458 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
601- let outPositionNotional = $t02423824458._1
602- let x1 = $t02423824458._2
603- let x2 = $t02423824458._3
604- let x3 = $t02423824458._4
600+ let $t02423124451 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
601+ let outPositionNotional = $t02423124451._1
602+ let x1 = $t02423124451._2
603+ let x2 = $t02423124451._3
604+ let x3 = $t02423124451._4
605605 outPositionNotional
606606 }
607607 else muld(positionSizeAbs, getOracleTwapPrice())
622622
623623
624624 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
625- let $t02588326011 = getPosition(_trader)
626- let positionSize = $t02588326011._1
627- let positionMargin = $t02588326011._2
628- let positionOpenNotional = $t02588326011._3
629- let positionLstUpdCPF = $t02588326011._4
625+ let $t02587626004 = getPosition(_trader)
626+ let positionSize = $t02587626004._1
627+ let positionMargin = $t02587626004._2
628+ let positionOpenNotional = $t02587626004._3
629+ let positionLstUpdCPF = $t02587626004._4
630630 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
631631 }
632632
635635
636636
637637 func getMarginRatioByOption (_trader,_option) = {
638- let $t02652426635 = getPosition(_trader)
639- let positionSize = $t02652426635._1
640- let positionMargin = $t02652426635._2
641- let pon = $t02652426635._3
642- let positionLstUpdCPF = $t02652426635._4
643- let $t02664126734 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
644- let positionNotional = $t02664126734._1
645- let unrealizedPnl = $t02664126734._2
646- let $t02673926905 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
647- let remainMargin = $t02673926905._1
648- let badDebt = $t02673926905._2
638+ let $t02651726628 = getPosition(_trader)
639+ let positionSize = $t02651726628._1
640+ let positionMargin = $t02651726628._2
641+ let pon = $t02651726628._3
642+ let positionLstUpdCPF = $t02651726628._4
643+ let $t02663426727 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
644+ let positionNotional = $t02663426727._1
645+ let unrealizedPnl = $t02663426727._2
646+ let $t02673226898 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
647+ let remainMargin = $t02673226898._1
648+ let badDebt = $t02673226898._2
649649 calcMarginRatio(remainMargin, badDebt, positionNotional)
650650 }
651651
670670
671671
672672 func internalClosePosition (_trader,_checkMaxPriceImpact) = {
673- let $t02814528273 = getPosition(_trader)
674- let positionSize = $t02814528273._1
675- let positionMargin = $t02814528273._2
676- let positionOpenNotional = $t02814528273._3
677- let positionLstUpdCPF = $t02814528273._4
673+ let $t02813828266 = getPosition(_trader)
674+ let positionSize = $t02813828266._1
675+ let positionMargin = $t02813828266._2
676+ let positionOpenNotional = $t02813828266._3
677+ let positionLstUpdCPF = $t02813828266._4
678678 let unrealizedPnl = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)._2
679- let $t02836828536 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
680- let remainMargin = $t02836828536._1
681- let badDebt = $t02836828536._2
679+ let $t02836128529 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
680+ let remainMargin = $t02836128529._1
681+ let badDebt = $t02836128529._2
682682 let exchangedPositionSize = -(positionSize)
683683 let realizedPnl = unrealizedPnl
684684 let marginToVault = -(remainMargin)
685- let $t02866328937 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact)
686- let exchangedQuoteAssetAmount = $t02866328937._1
687- let quoteAssetReserveAfter = $t02866328937._2
688- let baseAssetReserveAfter = $t02866328937._3
689- let totalPositionSizeAfter = $t02866328937._4
690- let totalLongAfter = $t02866328937._5
691- let totalShortAfter = $t02866328937._6
685+ let $t02865628930 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact)
686+ let exchangedQuoteAssetAmount = $t02865628930._1
687+ let quoteAssetReserveAfter = $t02865628930._2
688+ let baseAssetReserveAfter = $t02865628930._3
689+ let totalPositionSizeAfter = $t02865628930._4
690+ let totalLongAfter = $t02865628930._5
691+ let totalShortAfter = $t02865628930._6
692692 let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional)
693693 $Tuple13(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter, (openInterestLong() - (if ((positionSize > 0))
694694 then positionOpenNotional
741741 then $Tuple2(qtAstR(), bsAstR())
742742 else {
743743 let direction = (_positionSize > 0)
744- let $t03106031239 = swapOutput(direction, abs(_positionSize), false)
745- let currentNetMarketValue = $t03106031239._1
746- let terminalQuoteAssetReserve = $t03106031239._2
747- let terminalBaseAssetReserve = $t03106031239._3
744+ let $t03105331232 = swapOutput(direction, abs(_positionSize), false)
745+ let currentNetMarketValue = $t03105331232._1
746+ let terminalQuoteAssetReserve = $t03105331232._2
747+ let terminalBaseAssetReserve = $t03105331232._3
748748 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
749749 }
750750 }
815815 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
816816 let baseFeeRaw = fee()
817817 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
818- let $t03433834833 = if ((_artifactId != ""))
818+ let $t03433134826 = if ((_artifactId != ""))
819819 then {
820820 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
821821 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
827827 else throw("Invalid attached artifact")
828828 }
829829 else $Tuple2(baseFee, false)
830- let adjustedFee = $t03433834833._1
831- let burnArtifact = $t03433834833._2
830+ let adjustedFee = $t03433134826._1
831+ let burnArtifact = $t03433134826._2
832832 $Tuple2(adjustedFee, burnArtifact)
833833 }
834834
869869 case _ =>
870870 throw("Invalid computeFeeDiscount result")
871871 }
872- let $t03606436138 = getAdjustedFee(_artifactId, feeDiscount)
873- let adjustedFee = $t03606436138._1
874- let burnArtifact = $t03606436138._2
872+ let $t03605736131 = getAdjustedFee(_artifactId, feeDiscount)
873+ let adjustedFee = $t03605736131._1
874+ let burnArtifact = $t03605736131._2
875875 $Tuple2(adjustedFee, burnArtifact)
876876 }
877877 else throw("Strict value is not equal to itself.")
11071107 else paused())
11081108 then throw("Invalid decreasePosition parameters")
11091109 else {
1110- let $t04867748817 = getPosition(_trader)
1111- let oldPositionSize = $t04867748817._1
1112- let oldPositionMargin = $t04867748817._2
1113- let oldPositionOpenNotional = $t04867748817._3
1114- let oldPositionLstUpdCPF = $t04867748817._4
1110+ let $t04867048810 = getPosition(_trader)
1111+ let oldPositionSize = $t04867048810._1
1112+ let oldPositionMargin = $t04867048810._2
1113+ let oldPositionOpenNotional = $t04867048810._3
1114+ let oldPositionLstUpdCPF = $t04867048810._4
11151115 let _direction = if ((oldPositionSize > 0))
11161116 then DIR_SHORT
11171117 else DIR_LONG
11181118 let isAdd = (_direction == DIR_LONG)
11191119 let openNotional = muld(_amount, _leverage)
1120- let $t04899049094 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1121- let oldPositionNotional = $t04899049094._1
1122- let unrealizedPnl = $t04899049094._2
1123- let $t04910051758 = if ((oldPositionNotional > openNotional))
1120+ let $t04898349087 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1121+ let oldPositionNotional = $t04898349087._1
1122+ let unrealizedPnl = $t04898349087._2
1123+ let $t04909351751 = if ((oldPositionNotional > openNotional))
11241124 then {
1125- let $t04951549699 = swapInput(isAdd, openNotional)
1126- let exchangedPositionSize = $t04951549699._1
1127- let quoteAssetReserveAfter = $t04951549699._2
1128- let baseAssetReserveAfter = $t04951549699._3
1129- let totalPositionSizeAfter = $t04951549699._4
1125+ let $t04950849692 = swapInput(isAdd, openNotional)
1126+ let exchangedPositionSize = $t04950849692._1
1127+ let quoteAssetReserveAfter = $t04950849692._2
1128+ let baseAssetReserveAfter = $t04950849692._3
1129+ let totalPositionSizeAfter = $t04950849692._4
11301130 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
11311131 if (if ((_minBaseAssetAmount != 0))
11321132 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
11341134 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
11351135 else {
11361136 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
1137- let $t05013650381 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1138- let remainMargin = $t05013650381._1
1139- let badDebt = $t05013650381._2
1140- let fundingPayment = $t05013650381._3
1137+ let $t05012950374 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1138+ let remainMargin = $t05012950374._1
1139+ let badDebt = $t05012950374._2
1140+ let fundingPayment = $t05012950374._3
11411141 let exchangedQuoteAssetAmount = openNotional
11421142 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
11431143 let remainOpenNotional = if ((oldPositionSize > 0))
11561156 }
11571157 }
11581158 else throw("Close position first")
1159- let newPositionSize = $t04910051758._1
1160- let newPositionRemainMargin = $t04910051758._2
1161- let newPositionOpenNotional = $t04910051758._3
1162- let newPositionLatestCPF = $t04910051758._4
1163- let baseAssetReserveAfter = $t04910051758._5
1164- let quoteAssetReserveAfter = $t04910051758._6
1165- let totalPositionSizeAfter = $t04910051758._7
1166- let openInterestNotionalAfter = $t04910051758._8
1167- let totalLongAfter = $t04910051758._9
1168- let totalShortAfter = $t04910051758._10
1169- let totalLongOpenInterestAfter = $t04910051758._11
1170- let totalShortOpenInterestAfter = $t04910051758._12
1159+ let newPositionSize = $t04909351751._1
1160+ let newPositionRemainMargin = $t04909351751._2
1161+ let newPositionOpenNotional = $t04909351751._3
1162+ let newPositionLatestCPF = $t04909351751._4
1163+ let baseAssetReserveAfter = $t04909351751._5
1164+ let quoteAssetReserveAfter = $t04909351751._6
1165+ let totalPositionSizeAfter = $t04909351751._7
1166+ let openInterestNotionalAfter = $t04909351751._8
1167+ let totalLongAfter = $t04909351751._9
1168+ let totalShortAfter = $t04909351751._10
1169+ let totalLongOpenInterestAfter = $t04909351751._11
1170+ let totalShortOpenInterestAfter = $t04909351751._12
11711171 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
11721172 if ((notifyNotional == notifyNotional))
11731173 then (updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter))
12111211 else closeOnly())
12121212 then throw("Invalid increasePosition parameters")
12131213 else {
1214- let $t05319653281 = getForTraderWithArtifact(_trader, getArtifactId(i))
1215- let adjustedFee = $t05319653281._1
1216- let burnArtifact = $t05319653281._2
1214+ let $t05318953274 = getForTraderWithArtifact(_trader, getArtifactId(i))
1215+ let adjustedFee = $t05318953274._1
1216+ let burnArtifact = $t05318953274._2
12171217 let rawFeeAmount = muld(_rawAmount, adjustedFee)
12181218 let _amount = (_rawAmount - rawFeeAmount)
12191219 let distributeFeeAmount = if (isCollateralAsset)
12561256 throw("Invalid referrerFee")
12571257 }
12581258 let feeAmount = (distributeFeeAmount - referrerFee)
1259- let $t05459754737 = getPosition(_trader)
1260- let oldPositionSize = $t05459754737._1
1261- let oldPositionMargin = $t05459754737._2
1262- let oldPositionOpenNotional = $t05459754737._3
1263- let oldPositionLstUpdCPF = $t05459754737._4
1259+ let $t05459054730 = getPosition(_trader)
1260+ let oldPositionSize = $t05459054730._1
1261+ let oldPositionMargin = $t05459054730._2
1262+ let oldPositionOpenNotional = $t05459054730._3
1263+ let oldPositionLstUpdCPF = $t05459054730._4
12641264 let isNewPosition = (oldPositionSize == 0)
12651265 let isSameDirection = if ((oldPositionSize > 0))
12661266 then (_direction == DIR_LONG)
12691269 then isSameDirection
12701270 else false
12711271 let isAdd = (_direction == DIR_LONG)
1272- let $t05502658067 = if (if (isNewPosition)
1272+ let $t05501958060 = if (if (isNewPosition)
12731273 then true
12741274 else expandExisting)
12751275 then {
12761276 let openNotional = muld(_amount, _leverage)
1277- let $t05548855661 = swapInput(isAdd, openNotional)
1278- let amountBaseAssetBought = $t05548855661._1
1279- let quoteAssetReserveAfter = $t05548855661._2
1280- let baseAssetReserveAfter = $t05548855661._3
1281- let totalPositionSizeAfter = $t05548855661._4
1277+ let $t05548155654 = swapInput(isAdd, openNotional)
1278+ let amountBaseAssetBought = $t05548155654._1
1279+ let quoteAssetReserveAfter = $t05548155654._2
1280+ let baseAssetReserveAfter = $t05548155654._3
1281+ let totalPositionSizeAfter = $t05548155654._4
12821282 if (if ((_minBaseAssetAmount != 0))
12831283 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12841284 else false)
12921292 then openNotional
12931293 else 0))
12941294 let increaseMarginRequirement = divd(openNotional, _leverage)
1295- let $t05626956508 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
1296- let remainMargin = $t05626956508._1
1297- let x1 = $t05626956508._2
1298- let x2 = $t05626956508._3
1295+ let $t05626256501 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
1296+ let remainMargin = $t05626256501._1
1297+ let x1 = $t05626256501._2
1298+ let x2 = $t05626256501._3
12991299 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
13001300 then throw("Over max spread limit")
13011301 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
13091309 }
13101310 else {
13111311 let openNotional = muld(_amount, _leverage)
1312- let $t05776757883 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
1313- let oldPositionNotional = $t05776757883._1
1314- let unrealizedPnl = $t05776757883._2
1312+ let $t05776057876 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
1313+ let oldPositionNotional = $t05776057876._1
1314+ let unrealizedPnl = $t05776057876._2
13151315 if ((oldPositionNotional > openNotional))
13161316 then throw("Use decreasePosition to decrease position size")
13171317 else throw("Close position first")
13181318 }
1319- let newPositionSize = $t05502658067._1
1320- let newPositionRemainMargin = $t05502658067._2
1321- let newPositionOpenNotional = $t05502658067._3
1322- let newPositionLatestCPF = $t05502658067._4
1323- let baseAssetReserveAfter = $t05502658067._5
1324- let quoteAssetReserveAfter = $t05502658067._6
1325- let totalPositionSizeAfter = $t05502658067._7
1326- let openInterestNotionalAfter = $t05502658067._8
1327- let totalLongAfter = $t05502658067._9
1328- let totalShortAfter = $t05502658067._10
1329- let totalLongOpenInterestAfter = $t05502658067._11
1330- let totalShortOpenInterestAfter = $t05502658067._12
1331- let $t05807358130 = distributeFee(feeAmount)
1332- let feeToStakers = $t05807358130._1
1333- let feeToVault = $t05807358130._2
1319+ let newPositionSize = $t05501958060._1
1320+ let newPositionRemainMargin = $t05501958060._2
1321+ let newPositionOpenNotional = $t05501958060._3
1322+ let newPositionLatestCPF = $t05501958060._4
1323+ let baseAssetReserveAfter = $t05501958060._5
1324+ let quoteAssetReserveAfter = $t05501958060._6
1325+ let totalPositionSizeAfter = $t05501958060._7
1326+ let openInterestNotionalAfter = $t05501958060._8
1327+ let totalLongAfter = $t05501958060._9
1328+ let totalShortAfter = $t05501958060._10
1329+ let totalLongOpenInterestAfter = $t05501958060._11
1330+ let totalShortOpenInterestAfter = $t05501958060._12
1331+ let $t05806658123 = distributeFee(feeAmount)
1332+ let feeToStakers = $t05806658123._1
1333+ let feeToVault = $t05806658123._2
13341334 let stake = if (isQuoteAsset)
13351335 then {
13361336 let stake = invoke(vaultAddress(), "addLocked", [false], [AttachedPayment(quoteAsset(), _amount)])
13941394 else closeOnly())
13951395 then throw("Invalid addMargin parameters")
13961396 else {
1397- let $t06007860163 = getForTraderWithArtifact(_trader, getArtifactId(i))
1398- let adjustedFee = $t06007860163._1
1399- let burnArtifact = $t06007860163._2
1397+ let $t06007160156 = getForTraderWithArtifact(_trader, getArtifactId(i))
1398+ let adjustedFee = $t06007160156._1
1399+ let burnArtifact = $t06007160156._2
14001400 let rawFeeAmount = muld(_rawAmount, adjustedFee)
14011401 let _amount = (_rawAmount - rawFeeAmount)
14021402 let distributeFeeAmount = if (isCollateralAsset)
14391439 throw("Invalid referrerFee")
14401440 }
14411441 let feeAmount = (distributeFeeAmount - referrerFee)
1442- let $t06146261602 = getPosition(_trader)
1443- let oldPositionSize = $t06146261602._1
1444- let oldPositionMargin = $t06146261602._2
1445- let oldPositionOpenNotional = $t06146261602._3
1446- let oldPositionLstUpdCPF = $t06146261602._4
1447- let $t06160861665 = distributeFee(feeAmount)
1448- let feeToStakers = $t06160861665._1
1449- let feeToVault = $t06160861665._2
1442+ let $t06145561595 = getPosition(_trader)
1443+ let oldPositionSize = $t06145561595._1
1444+ let oldPositionMargin = $t06145561595._2
1445+ let oldPositionOpenNotional = $t06145561595._3
1446+ let oldPositionLstUpdCPF = $t06145561595._4
1447+ let $t06160161658 = distributeFee(feeAmount)
1448+ let feeToStakers = $t06160161658._1
1449+ let feeToVault = $t06160161658._2
14501450 let stake = if (isQuoteAsset)
14511451 then {
14521452 let stake = invoke(vaultAddress(), "addLocked", [false], [AttachedPayment(quoteAsset(), _amount)])
14941494 else paused())
14951495 then throw("Invalid removeMargin parameters")
14961496 else {
1497- let $t06277762917 = getPosition(_trader)
1498- let oldPositionSize = $t06277762917._1
1499- let oldPositionMargin = $t06277762917._2
1500- let oldPositionOpenNotional = $t06277762917._3
1501- let oldPositionLstUpdCPF = $t06277762917._4
1497+ let $t06277062910 = getPosition(_trader)
1498+ let oldPositionSize = $t06277062910._1
1499+ let oldPositionMargin = $t06277062910._2
1500+ let oldPositionOpenNotional = $t06277062910._3
1501+ let oldPositionLstUpdCPF = $t06277062910._4
15021502 let marginDelta = -(_amount)
1503- let $t06295463133 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1504- let remainMargin = $t06295463133._1
1505- let badDebt = $t06295463133._2
1503+ let $t06294763126 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1504+ let remainMargin = $t06294763126._1
1505+ let badDebt = $t06294763126._2
15061506 if ((badDebt != 0))
15071507 then throw("Invalid removed margin amount")
15081508 else {
15111511 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
15121512 else {
15131513 let quoteAssetStr = toBase58String(quoteAsset())
1514- let $t06357763631 = getBorrowedByTrader(_trader)
1515- let borrowed = $t06357763631._1
1516- let assetId = $t06357763631._2
1514+ let $t06357063624 = getBorrowedByTrader(_trader)
1515+ let borrowed = $t06357063624._1
1516+ let assetId = $t06357063624._2
15171517 let toRepay = if ((_amount > borrowed))
15181518 then borrowed
15191519 else _amount
15831583 else (0 > _minQuoteAssetAmount))
15841584 then throw("Invalid closePosition parameters")
15851585 else {
1586- let $t06578965929 = getPosition(_trader)
1587- let oldPositionSize = $t06578965929._1
1588- let oldPositionMargin = $t06578965929._2
1589- let oldPositionOpenNotional = $t06578965929._3
1590- let oldPositionLstUpdCPF = $t06578965929._4
1591- let $t06593570372 = if ((abs(oldPositionSize) > _size))
1586+ let $t06578265922 = getPosition(_trader)
1587+ let oldPositionSize = $t06578265922._1
1588+ let oldPositionMargin = $t06578265922._2
1589+ let oldPositionOpenNotional = $t06578265922._3
1590+ let oldPositionLstUpdCPF = $t06578265922._4
1591+ let $t06592870365 = if ((abs(oldPositionSize) > _size))
15921592 then {
15931593 let _direction = if ((oldPositionSize > 0))
15941594 then DIR_SHORT
15951595 else DIR_LONG
15961596 let isAdd = (_direction == DIR_LONG)
1597- let $t06652666748 = swapOutput((oldPositionSize > 0), _size, true)
1598- let exchangedQuoteAssetAmount = $t06652666748._1
1599- let quoteAssetReserveAfter = $t06652666748._2
1600- let baseAssetReserveAfter = $t06652666748._3
1601- let totalPositionSizeAfter = $t06652666748._4
1597+ let $t06651966741 = swapOutput((oldPositionSize > 0), _size, true)
1598+ let exchangedQuoteAssetAmount = $t06651966741._1
1599+ let quoteAssetReserveAfter = $t06651966741._2
1600+ let baseAssetReserveAfter = $t06651966741._3
1601+ let totalPositionSizeAfter = $t06651966741._4
16021602 let exchangedPositionSize = if ((oldPositionSize > 0))
16031603 then -(_size)
16041604 else _size
1605- let $t06683966993 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1606- let oldPositionNotional = $t06683966993._1
1607- let unrealizedPnl = $t06683966993._2
1605+ let $t06683266986 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1606+ let oldPositionNotional = $t06683266986._1
1607+ let unrealizedPnl = $t06683266986._2
16081608 let mr = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
16091609 let realizedRatio = divd(abs(exchangedPositionSize), abs(oldPositionSize))
16101610 let realizedPnl = muld(unrealizedPnl, realizedRatio)
1611- let $t06727267510 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1612- let remainMargin = $t06727267510._1
1613- let positionBadDebt = $t06727267510._2
1614- let fundingPayment = $t06727267510._3
1611+ let $t06726567503 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1612+ let remainMargin = $t06726567503._1
1613+ let positionBadDebt = $t06726567503._2
1614+ let fundingPayment = $t06726567503._3
16151615 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
16161616 let remainOpenNotional = if ((oldPositionSize > 0))
16171617 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
16381638 else if ((_size > abs(oldPositionSize)))
16391639 then throw("Invalid closePosition parameters")
16401640 else {
1641- let $t06931369732 = internalClosePosition(_trader, true)
1642- let exchangedQuoteAssetAmount = $t06931369732._1
1643- let positionBadDebt = $t06931369732._2
1644- let realizedPnl = $t06931369732._3
1645- let marginToVault = $t06931369732._4
1646- let quoteAssetReserveAfter = $t06931369732._5
1647- let baseAssetReserveAfter = $t06931369732._6
1648- let totalPositionSizeAfter = $t06931369732._7
1649- let openInterestNotionalAfter = $t06931369732._8
1650- let x2 = $t06931369732._9
1651- let totalLongAfter = $t06931369732._10
1652- let totalShortAfter = $t06931369732._11
1653- let totalLongOpenInterestAfter = $t06931369732._12
1654- let totalShortOpenInterestAfter = $t06931369732._13
1641+ let $t06930669725 = internalClosePosition(_trader, true)
1642+ let exchangedQuoteAssetAmount = $t06930669725._1
1643+ let positionBadDebt = $t06930669725._2
1644+ let realizedPnl = $t06930669725._3
1645+ let marginToVault = $t06930669725._4
1646+ let quoteAssetReserveAfter = $t06930669725._5
1647+ let baseAssetReserveAfter = $t06930669725._6
1648+ let totalPositionSizeAfter = $t06930669725._7
1649+ let openInterestNotionalAfter = $t06930669725._8
1650+ let x2 = $t06930669725._9
1651+ let totalLongAfter = $t06930669725._10
1652+ let totalShortAfter = $t06930669725._11
1653+ let totalLongOpenInterestAfter = $t06930669725._12
1654+ let totalShortOpenInterestAfter = $t06930669725._13
16551655 if (if ((_minQuoteAssetAmount != 0))
16561656 then (_minQuoteAssetAmount > exchangedQuoteAssetAmount)
16571657 else false)
16581658 then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount)))
16591659 else $Tuple15(0, 0, 0, 0, positionBadDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)
16601660 }
1661- let newPositionSize = $t06593570372._1
1662- let newPositionMargin = $t06593570372._2
1663- let newPositionOpenNotional = $t06593570372._3
1664- let newPositionLstUpdCPF = $t06593570372._4
1665- let positionBadDebt = $t06593570372._5
1666- let realizedPnl = $t06593570372._6
1667- let marginToVault = $t06593570372._7
1668- let quoteAssetReserveAfter = $t06593570372._8
1669- let baseAssetReserveAfter = $t06593570372._9
1670- let totalPositionSizeAfter = $t06593570372._10
1671- let openInterestNotionalAfter = $t06593570372._11
1672- let totalLongAfter = $t06593570372._12
1673- let totalShortAfter = $t06593570372._13
1674- let totalLongOpenInterestAfter = $t06593570372._14
1675- let totalShortOpenInterestAfter = $t06593570372._15
1661+ let newPositionSize = $t06592870365._1
1662+ let newPositionMargin = $t06592870365._2
1663+ let newPositionOpenNotional = $t06592870365._3
1664+ let newPositionLstUpdCPF = $t06592870365._4
1665+ let positionBadDebt = $t06592870365._5
1666+ let realizedPnl = $t06592870365._6
1667+ let marginToVault = $t06592870365._7
1668+ let quoteAssetReserveAfter = $t06592870365._8
1669+ let baseAssetReserveAfter = $t06592870365._9
1670+ let totalPositionSizeAfter = $t06592870365._10
1671+ let openInterestNotionalAfter = $t06592870365._11
1672+ let totalLongAfter = $t06592870365._12
1673+ let totalShortAfter = $t06592870365._13
1674+ let totalLongOpenInterestAfter = $t06592870365._14
1675+ let totalShortOpenInterestAfter = $t06592870365._15
16761676 if ((positionBadDebt > 0))
16771677 then throw("Unable to close position with bad debt")
16781678 else {
16791679 let withdrawAmount = abs(marginToVault)
16801680 let ammBalance = (cbalance() - withdrawAmount)
1681- let $t07058170788 = if ((0 > ammBalance))
1681+ let $t07057470781 = if ((0 > ammBalance))
16821682 then $Tuple2(0, abs(ammBalance))
16831683 else $Tuple2(ammBalance, 0)
1684- let ammNewBalance = $t07058170788._1
1685- let x11 = $t07058170788._2
1686- let $t07079570849 = getBorrowedByTrader(_trader)
1687- let borrowed = $t07079570849._1
1688- let assetId = $t07079570849._2
1689- let $t07086471723 = if ((borrowed > 0))
1684+ let ammNewBalance = $t07057470781._1
1685+ let x11 = $t07057470781._2
1686+ let $t07078870842 = getBorrowedByTrader(_trader)
1687+ let borrowed = $t07078870842._1
1688+ let assetId = $t07078870842._2
1689+ let $t07085771716 = if ((borrowed > 0))
16901690 then if ((withdrawAmount >= borrowed))
16911691 then {
16921692 let doRepay = invoke(collateralAddress(), "repay", [_trader, borrowed, assetId], nil)
17011701 else throw("Strict value is not equal to itself.")
17021702 }
17031703 else $Tuple2(nil, withdrawAmount)
1704- if (($t07086471723 == $t07086471723))
1704+ if (($t07085771716 == $t07085771716))
17051705 then {
1706- let quoteWithdrawAmount = $t07086471723._2
1707- let sendCollateralAction = $t07086471723._1
1706+ let quoteWithdrawAmount = $t07085771716._2
1707+ let sendCollateralAction = $t07085771716._1
17081708 let unstake = if ((quoteWithdrawAmount > 0))
17091709 then {
17101710 let unstake = invoke(vaultAddress(), "withdrawLocked", [quoteWithdrawAmount], nil)
17611761 then (DECIMAL_UNIT > partialLiquidationRatio())
17621762 else false)
17631763 then {
1764- let $t07402074170 = getPosition(_trader)
1765- let oldPositionSize = $t07402074170._1
1766- let oldPositionMargin = $t07402074170._2
1767- let oldPositionOpenNotional = $t07402074170._3
1768- let oldPositionLstUpdCPF = $t07402074170._4
1764+ let $t07401374163 = getPosition(_trader)
1765+ let oldPositionSize = $t07401374163._1
1766+ let oldPositionMargin = $t07401374163._2
1767+ let oldPositionOpenNotional = $t07401374163._3
1768+ let oldPositionLstUpdCPF = $t07401374163._4
17691769 let _direction = if ((oldPositionSize > 0))
17701770 then DIR_SHORT
17711771 else DIR_LONG
17721772 let isAdd = (_direction == DIR_LONG)
17731773 let exchangedQuoteAssetAmount = getPartialLiquidationAmount(_trader, oldPositionSize)
1774- let $t07439574499 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1775- let oldPositionNotional = $t07439574499._1
1776- let unrealizedPnl = $t07439574499._2
1777- let $t07450774694 = swapInput(isAdd, exchangedQuoteAssetAmount)
1778- let exchangedPositionSize = $t07450774694._1
1779- let quoteAssetReserveAfter = $t07450774694._2
1780- let baseAssetReserveAfter = $t07450774694._3
1781- let totalPositionSizeAfter = $t07450774694._4
1774+ let $t07438874492 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1775+ let oldPositionNotional = $t07438874492._1
1776+ let unrealizedPnl = $t07438874492._2
1777+ let $t07450074687 = swapInput(isAdd, exchangedQuoteAssetAmount)
1778+ let exchangedPositionSize = $t07450074687._1
1779+ let quoteAssetReserveAfter = $t07450074687._2
1780+ let baseAssetReserveAfter = $t07450074687._3
1781+ let totalPositionSizeAfter = $t07450074687._4
17821782 let liquidationRatio = divd(abs(exchangedPositionSize), abs(oldPositionSize))
17831783 let realizedPnl = muld(unrealizedPnl, liquidationRatio)
1784- let $t07498375216 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1785- let remainMargin = $t07498375216._1
1786- let badDebt = $t07498375216._2
1787- let fundingPayment = $t07498375216._3
1784+ let $t07497675209 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1785+ let remainMargin = $t07497675209._1
1786+ let badDebt = $t07497675209._2
1787+ let fundingPayment = $t07497675209._3
17881788 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
17891789 let remainOpenNotional = if ((oldPositionSize > 0))
17901790 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
17981798 let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
17991799 let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount)
18001800 let ammBalance = (cbalance() - liquidationPenalty)
1801- let $t07638576514 = if ((0 > ammBalance))
1801+ let $t07637876507 = if ((0 > ammBalance))
18021802 then $Tuple2(0, abs(ammBalance))
18031803 else $Tuple2(ammBalance, 0)
1804- let newAmmBalance = $t07638576514._1
1805- let x11 = $t07638576514._2
1806- let $t07652276576 = getBorrowedByTrader(_trader)
1807- let borrowed = $t07652276576._1
1808- let assetId = $t07652276576._2
1804+ let newAmmBalance = $t07637876507._1
1805+ let x11 = $t07637876507._2
1806+ let $t07651576569 = getBorrowedByTrader(_trader)
1807+ let borrowed = $t07651576569._1
1808+ let assetId = $t07651576569._2
18091809 let doLiquidateCollateral = if ((borrowed > 0))
18101810 then {
18111811 let collateralToSell = muld(borrowed, liquidationRatio)
18431843 else throw("Strict value is not equal to itself.")
18441844 }
18451845 else {
1846- let $t07827178766 = internalClosePosition(_trader, false)
1847- let x1 = $t07827178766._1
1848- let badDebt = $t07827178766._2
1849- let x2 = $t07827178766._3
1850- let x3 = $t07827178766._4
1851- let quoteAssetReserveAfter = $t07827178766._5
1852- let baseAssetReserveAfter = $t07827178766._6
1853- let totalPositionSizeAfter = $t07827178766._7
1854- let openInterestNotionalAfter = $t07827178766._8
1855- let exchangedQuoteAssetAmount = $t07827178766._9
1856- let totalLongAfter = $t07827178766._10
1857- let totalShortAfter = $t07827178766._11
1858- let totalLongOpenInterestAfter = $t07827178766._12
1859- let totalShortOpenInterestAfter = $t07827178766._13
1846+ let $t07826478759 = internalClosePosition(_trader, false)
1847+ let x1 = $t07826478759._1
1848+ let badDebt = $t07826478759._2
1849+ let x2 = $t07826478759._3
1850+ let x3 = $t07826478759._4
1851+ let quoteAssetReserveAfter = $t07826478759._5
1852+ let baseAssetReserveAfter = $t07826478759._6
1853+ let totalPositionSizeAfter = $t07826478759._7
1854+ let openInterestNotionalAfter = $t07826478759._8
1855+ let exchangedQuoteAssetAmount = $t07826478759._9
1856+ let totalLongAfter = $t07826478759._10
1857+ let totalShortAfter = $t07826478759._11
1858+ let totalLongOpenInterestAfter = $t07826478759._12
1859+ let totalShortOpenInterestAfter = $t07826478759._13
18601860 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
18611861 let feeToLiquidator = (liquidationPenalty / 2)
18621862 let feeToVault = (liquidationPenalty - feeToLiquidator)
18631863 let ammBalance = (cbalance() - liquidationPenalty)
1864- let $t07917479303 = if ((0 > ammBalance))
1864+ let $t07916779296 = if ((0 > ammBalance))
18651865 then $Tuple2(0, abs(ammBalance))
18661866 else $Tuple2(ammBalance, 0)
1867- let newAmmBalance = $t07917479303._1
1868- let x11 = $t07917479303._2
1869- let $t07931179365 = getBorrowedByTrader(_trader)
1870- let borrowed = $t07931179365._1
1871- let assetId = $t07931179365._2
1867+ let newAmmBalance = $t07916779296._1
1868+ let x11 = $t07916779296._2
1869+ let $t07930479358 = getBorrowedByTrader(_trader)
1870+ let borrowed = $t07930479358._1
1871+ let assetId = $t07930479358._2
18721872 let doLiquidateCollateral = if ((borrowed > 0))
18731873 then {
18741874 let realizeAndClose = invoke(collateralAddress(), "realizePartiallyAndClose", [_trader, 0, assetId], nil)
19251925 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
19261926 else {
19271927 let underlyingPrice = getOracleTwapPrice()
1928- let $t08117281234 = getFunding()
1929- let shortPremiumFraction = $t08117281234._1
1930- let longPremiumFraction = $t08117281234._2
1928+ let $t08116581227 = getFunding()
1929+ let shortPremiumFraction = $t08116581227._1
1930+ let longPremiumFraction = $t08116581227._2
19311931 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
19321932 }
19331933 }
19361936
19371937 @Callable(i)
19381938 func syncTerminalPriceToOracle () = {
1939- let $t08161681737 = getSyncTerminalPrice(getOracleTwapPrice())
1940- let newQuoteAssetWeight = $t08161681737._1
1941- let newBaseAssetWeight = $t08161681737._2
1942- let marginToVault = $t08161681737._3
1939+ let $t08160981730 = getSyncTerminalPrice(getOracleTwapPrice())
1940+ let newQuoteAssetWeight = $t08160981730._1
1941+ let newBaseAssetWeight = $t08160981730._2
1942+ let marginToVault = $t08160981730._3
19431943 let doExchangePnL = if ((marginToVault != 0))
19441944 then {
19451945 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
19601960 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
19611961 if ((sync == sync))
19621962 then {
1963- let $t08221382314 = getPosition(_trader)
1964- let positionSize = $t08221382314._1
1965- let positionMargin = $t08221382314._2
1966- let pon = $t08221382314._3
1967- let positionLstUpdCPF = $t08221382314._4
1968- let $t08231782418 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1969- let positionNotional = $t08231782418._1
1970- let unrealizedPnl = $t08231782418._2
1971- let $t08242182593 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1972- let remainMargin = $t08242182593._1
1973- let badDebt = $t08242182593._2
1974- let fundingPayment = $t08242182593._3
1963+ let $t08220682307 = getPosition(_trader)
1964+ let positionSize = $t08220682307._1
1965+ let positionMargin = $t08220682307._2
1966+ let pon = $t08220682307._3
1967+ let positionLstUpdCPF = $t08220682307._4
1968+ let $t08231082411 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1969+ let positionNotional = $t08231082411._1
1970+ let unrealizedPnl = $t08231082411._2
1971+ let $t08241482586 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1972+ let remainMargin = $t08241482586._1
1973+ let badDebt = $t08241482586._2
1974+ let fundingPayment = $t08241482586._3
19751975 throw((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)))
19761976 }
19771977 else throw("Strict value is not equal to itself.")
19891989
19901990 @Callable(i)
19911991 func view_getTerminalAmmPrice () = {
1992- let $t08294083021 = getTerminalAmmState()
1993- let terminalQuoteAssetReserve = $t08294083021._1
1994- let terminalBaseAssetReserve = $t08294083021._2
1992+ let $t08293383014 = getTerminalAmmState()
1993+ let terminalQuoteAssetReserve = $t08293383014._1
1994+ let terminalBaseAssetReserve = $t08293383014._2
19951995 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
19961996 throw(toString(price))
19971997 }
20012001 @Callable(i)
20022002 func view_getFunding () = {
20032003 let underlyingPrice = getOracleTwapPrice()
2004- let $t08324083302 = getFunding()
2005- let shortPremiumFraction = $t08324083302._1
2006- let longPremiumFraction = $t08324083302._2
2004+ let $t08323383295 = getFunding()
2005+ let shortPremiumFraction = $t08323383295._1
2006+ let longPremiumFraction = $t08323383295._2
20072007 let longFunding = divd(longPremiumFraction, underlyingPrice)
20082008 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
20092009 throw((((s(longFunding) + s(shortFunding)) + s(getTwapSpotPrice())) + s(getOracleTwapPrice())))
20132013
20142014 @Callable(i)
20152015 func view_getBorrowedByTrader (_trader) = {
2016- let $t08359283646 = getBorrowedByTrader(_trader)
2017- let borrowed = $t08359283646._1
2018- let assetId = $t08359283646._2
2016+ let $t08358583639 = getBorrowedByTrader(_trader)
2017+ let borrowed = $t08358583639._1
2018+ let assetId = $t08358583639._2
20192019 throw((s(borrowed) + assetId))
20202020 }
20212021
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let k_ora_key = "k_ora_key"
55
66 let k_ora_block_key = "k_ora_block_key"
77
88 let k_ora = "k_ora"
99
1010 let k_balance = "k_balance"
1111
1212 let k_sequence = "k_sequence"
1313
1414 let k_positionSize = "k_positionSize"
1515
1616 let k_positionMargin = "k_positionMargin"
1717
1818 let k_positionOpenNotional = "k_positionOpenNotional"
1919
2020 let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction"
2121
2222 let k_positionSequence = "k_positionSequence"
2323
2424 let k_positionAsset = "k_positionAsset"
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_fundingPeriod = "k_fundingPeriod"
3535
3636 let k_initMarginRatio = "k_initMarginRatio"
3737
3838 let k_maintenanceMarginRatio = "k_mmr"
3939
4040 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
4141
4242 let k_partialLiquidationRatio = "k_partLiquidationRatio"
4343
4444 let k_spreadLimit = "k_spreadLimit"
4545
4646 let k_maxPriceImpact = "k_maxPriceImpact"
4747
4848 let k_maxPriceSpread = "k_maxPriceSpread"
4949
5050 let k_maxOpenNotional = "k_maxOpenNotional"
5151
5252 let k_feeToStakersPercent = "k_feeToStakersPercent"
5353
5454 let k_maxOracleDelay = "k_maxOracleDelay"
5555
5656 let k_lastDataStr = "k_lastDataStr"
5757
5858 let k_lastMinuteId = "k_lastMinuteId"
5959
6060 let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice"
6161
6262 let k_twapDataLastPrice = "k_twapDataLastPrice"
6363
6464 let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId"
6565
6666 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
6767
6868 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
6969
7070 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
7171
7272 let k_longFundingRate = "k_longFundingRate"
7373
7474 let k_shortFundingRate = "k_shortFundingRate"
7575
7676 let k_quoteAssetReserve = "k_qtAstR"
7777
7878 let k_baseAssetReserve = "k_bsAstR"
7979
8080 let k_quoteAssetWeight = "k_qtAstW"
8181
8282 let k_baseAssetWeight = "k_bsAstW"
8383
8484 let k_totalPositionSize = "k_totalPositionSize"
8585
8686 let k_totalLongPositionSize = "k_totalLongPositionSize"
8787
8888 let k_totalShortPositionSize = "k_totalShortPositionSize"
8989
9090 let k_openInterestNotional = "k_openInterestNotional"
9191
9292 let k_openInterestShort = "k_openInterestShort"
9393
9494 let k_openInterestLong = "k_openInterestLong"
9595
9696 let k_coordinatorAddress = "k_coordinatorAddress"
9797
9898 let k_vault_address = "k_vault_address"
9999
100100 let k_admin_address = "k_admin_address"
101101
102102 let k_admin_public_key = "k_admin_public_key"
103103
104104 let k_quote_asset = "k_quote_asset"
105105
106106 let k_quote_staking = "k_quote_staking"
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_collateral_address = "k_collateral_address"
117117
118118 let k_exchange_address = "k_exchange_address"
119119
120120 let k_nft_manager_address = "k_nft_manager_address"
121121
122122 let k_trader_market_asset_collateral = "k_trader_market_asset_collateral"
123123
124124 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
125125
126126
127127 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
128128
129129
130130 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
131131
132132
133133 func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key))
134134
135135
136136 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
137137
138138
139139 func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set")
140140
141141
142142 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set")
143143
144144
145145 func vaultAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_vault_address)), "Vault not set")
146146
147147
148148 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set")
149149
150150
151151 func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set")
152152
153153
154154 func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set")
155155
156156
157157 func nftManagerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_nft_manager_address)), "NFT Manager not set")
158158
159159
160160 func collateralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_collateral_address)), "Collateral Manager not set")
161161
162162
163163 func swapAddress () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(coordinator(), k_exchange_address), "No swap address")), "Invalid swap address")
164164
165165
166166 let k_whitelist_asset = "k_whitelist_asset"
167167
168168 func isWhitelistAsset (_assetId) = valueOrElse(getBoolean(collateralAddress(), toCompositeKey(k_whitelist_asset, _assetId)), false)
169169
170170
171171 let k_token_param = "k_token_param"
172172
173173 let k_token_type = "k_token_type"
174174
175175 let FEE_REDUCTION_TOKEN_TYPE = "fee_reduction"
176176
177177 let DIR_LONG = 1
178178
179179 let DIR_SHORT = 2
180180
181181 let TWAP_INTERVAL = 15
182182
183183 let ORACLE_INTERVAL = 15
184184
185185 let SECONDS = 1000
186186
187187 let DECIMAL_NUMBERS = 6
188188
189189 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
190190
191191 let ONE_DAY = (86400 * DECIMAL_UNIT)
192192
193193 let ALL_FEES = 100
194194
195195 let PNL_OPTION_SPOT = 1
196196
197197 let PNL_OPTION_ORACLE = 2
198198
199199 func s (_x) = (toString(_x) + ",")
200200
201201
202202 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
203203
204204
205205 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
206206
207207
208208 func sqrtd (_x) = sqrt(_x, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN)
209209
210210
211211 func powd (_x,_y) = pow(_x, DECIMAL_NUMBERS, _y, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN)
212212
213213
214214 func bdivd (_x,_y) = fraction(_x, toBigInt(DECIMAL_UNIT), _y, HALFEVEN)
215215
216216
217217 func bmuld (_x,_y) = fraction(_x, _y, toBigInt(DECIMAL_UNIT), HALFEVEN)
218218
219219
220220 func bsqrtd (_x) = sqrtBigInt(_x, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN)
221221
222222
223223 func bpowd (_x,_y) = pow(_x, DECIMAL_NUMBERS, _y, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN)
224224
225225
226226 func abs (_x) = if ((_x > 0))
227227 then _x
228228 else -(_x)
229229
230230
231231 func vmax (_x,_y) = if ((_x >= _y))
232232 then _x
233233 else _y
234234
235235
236236 func listToStr (_list) = {
237237 func _join (accumulator,val) = ((accumulator + val) + ",")
238238
239239 let newListStr = {
240240 let $l = _list
241241 let $s = size($l)
242242 let $acc0 = ""
243243 func $f0_1 ($a,$i) = if (($i >= $s))
244244 then $a
245245 else _join($a, $l[$i])
246246
247247 func $f0_2 ($a,$i) = if (($i >= $s))
248248 then $a
249249 else throw("List size exceeds 20")
250250
251251 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
252252 }
253253 let newListStrU = dropRight(newListStr, 1)
254254 let newListStrR = if ((take(newListStrU, 1) == ","))
255255 then drop(newListStrU, 1)
256256 else newListStrU
257257 newListStrR
258258 }
259259
260260
261261 func strToList (_str) = split(_str, ",")
262262
263263
264264 func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize))
265265 then (removeByIndex(_list, 0) :+ _value)
266266 else (_list :+ _value)
267267
268268
269269 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
270270
271271
272272 func intOr (k,def) = valueOrElse(getInteger(this, k), def)
273273
274274
275275 func strA (_address,_key) = {
276276 let val = valueOrErrorMessage(getString(_address, _key), ("No value for key " + _key))
277277 val
278278 }
279279
280280
281281 func intA (_address,_key) = {
282282 let val = valueOrErrorMessage(getInteger(_address, _key), ("No value for key " + _key))
283283 val
284284 }
285285
286286
287287 func cbalance () = int(k_balance)
288288
289289
290290 func fee () = int(k_fee)
291291
292292
293293 func initMarginRatio () = int(k_initMarginRatio)
294294
295295
296296 func qtAstR () = int(k_quoteAssetReserve)
297297
298298
299299 func bsAstR () = int(k_baseAssetReserve)
300300
301301
302302 func qtAstW () = intOr(k_quoteAssetWeight, DECIMAL_UNIT)
303303
304304
305305 func bsAstW () = intOr(k_baseAssetWeight, DECIMAL_UNIT)
306306
307307
308308 func totalPositionSize () = int(k_totalPositionSize)
309309
310310
311311 func openInterestNotional () = int(k_openInterestNotional)
312312
313313
314314 func openInterestShort () = int(k_openInterestShort)
315315
316316
317317 func openInterestLong () = int(k_openInterestLong)
318318
319319
320320 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
321321
322322
323323 func fundingPeriodRaw () = int(k_fundingPeriod)
324324
325325
326326 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
327327
328328
329329 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
330330
331331
332332 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
333333
334334
335335 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
336336
337337
338338 func partialLiquidationRatio () = int(k_partialLiquidationRatio)
339339
340340
341341 func spreadLimit () = int(k_spreadLimit)
342342
343343
344344 func maxPriceImpact () = int(k_maxPriceImpact)
345345
346346
347347 func maxPriceSpread () = int(k_maxPriceSpread)
348348
349349
350350 func maxOpenNotional () = int(k_maxOpenNotional)
351351
352352
353353 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
354354
355355
356356 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
357357
358358
359359 func totalShortPositionSize () = int(k_totalShortPositionSize)
360360
361361
362362 func totalLongPositionSize () = int(k_totalLongPositionSize)
363363
364364
365365 func lastSequence () = intOr(k_sequence, 0)
366366
367367
368368 func feeToStakersPercent () = int(k_feeToStakersPercent)
369369
370370
371371 func maxOracleDelay () = int(k_maxOracleDelay)
372372
373373
374374 func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller))
375375
376376
377377 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
378378 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
379379 if (if (_largerThanOrEqualTo)
380380 then (0 > remainingMarginRatio)
381381 else false)
382382 then throw("Invalid margin")
383383 else if (if (!(_largerThanOrEqualTo))
384384 then (remainingMarginRatio >= 0)
385385 else false)
386386 then throw("Invalid margin")
387387 else true
388388 }
389389
390390
391391 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
392392 then throw("Should not be called with _positionSize == 0")
393393 else if ((_positionSize > 0))
394394 then latestLongCumulativePremiumFraction()
395395 else latestShortCumulativePremiumFraction()
396396
397397
398398 func getPosition (_trader) = {
399399 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
400400 match positionSizeOpt {
401401 case positionSize: Int =>
402402 $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)))
403403 case _ =>
404404 $Tuple4(0, 0, 0, 0)
405405 }
406406 }
407407
408408
409409 func getPositionAsset (_trader) = {
410410 let positionAssetOpt = getString(this, toCompositeKey(k_positionAsset, _trader))
411411 match positionAssetOpt {
412412 case positionAsset: String =>
413413 positionAsset
414414 case _ =>
415415 toBase58String(quoteAsset())
416416 }
417417 }
418418
419419
420420 func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0))
421421 then throw("No open position")
422422 else true
423423
424424
425425 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
426426
427427
428428 func paused () = valueOrElse(getBoolean(this, k_paused), false)
429429
430430
431431 func closeOnly () = valueOrElse(getBoolean(this, k_closeOnly), false)
432432
433433
434434 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
435435 then {
436436 let newBase = (bsAstR() - _baseAssetAmount)
437437 if ((0 >= newBase))
438438 then throw("Tx lead to base asset reserve <= 0, revert")
439439 else $Tuple3((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount))
440440 }
441441 else {
442442 let newQuote = (qtAstR() - _quoteAssetAmount)
443443 if ((0 >= newQuote))
444444 then throw("Tx lead to base quote reserve <= 0, revert")
445445 else $Tuple3(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount))
446446 }
447447
448448
449449 func calcInvariant (_qtAstR,_qtAstW,_bsAstR,_bsAstW) = {
450450 let bqtAstR = toBigInt(_qtAstR)
451451 let bqtAstW = toBigInt(_qtAstW)
452452 let bbsAstR = toBigInt(_bsAstR)
453453 let bbsAstW = toBigInt(_bsAstW)
454454 bmuld(bmuld(bqtAstR, bqtAstW), bmuld(bbsAstR, bbsAstW))
455455 }
456456
457457
458458 func swapInput (_isAdd,_quoteAssetAmount) = {
459459 let _qtAstR = qtAstR()
460460 let _bsAstR = bsAstR()
461461 let _qtAstW = qtAstW()
462462 let _bsAstW = bsAstW()
463463 let k = calcInvariant(_qtAstR, _qtAstW, _bsAstR, _bsAstW)
464464 let quoteAssetReserveAfter = if (_isAdd)
465465 then (_qtAstR + _quoteAssetAmount)
466466 else (_qtAstR - _quoteAssetAmount)
467467 let baseAssetReserveAfter = toInt(bdivd(k, toBigInt(muld(quoteAssetReserveAfter, _qtAstW))))
468468 let amountBaseAssetBoughtAbs = divd(abs((baseAssetReserveAfter - _bsAstR)), _qtAstW)
469469 let amountBaseAssetBought = if (_isAdd)
470470 then amountBaseAssetBoughtAbs
471471 else -(amountBaseAssetBoughtAbs)
472472 let $t01694617109 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs)
473473 let quoteAssetReserveAfter1 = $t01694617109._1
474474 let baseAssetReserveAfter1 = $t01694617109._2
475475 let totalPositionSizeAfter1 = $t01694617109._3
476476 let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
477477 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
478478 let priceDiff = abs((priceBefore - marketPrice))
479479 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
480480 let maxPriceImpactValue = maxPriceImpact()
481481 if ((priceImpact > maxPriceImpactValue))
482482 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)))
483483 else $Tuple4(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1)
484484 }
485485
486486
487487 func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_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 signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
495495 let $t01859618723 = if ((0 > signedMargin))
496496 then $Tuple2(0, abs(signedMargin))
497497 else $Tuple2(abs(signedMargin), 0)
498498 let remainMargin = $t01859618723._1
499499 let badDebt = $t01859618723._2
500500 $Tuple3(remainMargin, badDebt, fundingPayment)
501501 }
502502
503503
504504 func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
505505 let priceBefore = divd(muld(_quoteAssetReserve, _quoteAssetWeight), muld(_baseAssetReserve, _baseAssetWeight))
506506 if ((_baseAssetAmount == 0))
507507 then throw("Invalid base asset amount")
508508 else {
509509 let k = calcInvariant(_quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
510510 let baseAssetPoolAmountAfter = if (_isAdd)
511511 then (_baseAssetReserve + _baseAssetAmount)
512512 else (_baseAssetReserve - _baseAssetAmount)
513513 let quoteAssetAfter = toInt(bdivd(k, toBigInt(muld(baseAssetPoolAmountAfter, _baseAssetWeight))))
514514 let quoteAssetSold = abs((quoteAssetAfter - muld(_quoteAssetReserve, _quoteAssetWeight)))
515515 let maxPriceImpactValue = maxPriceImpact()
516516 let $t01991120072 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount)
517517 let quoteAssetReserveAfter1 = $t01991120072._1
518518 let baseAssetReserveAfter1 = $t01991120072._2
519519 let totalPositionSizeAfter1 = $t01991120072._3
520520 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
521521 let priceDiff = abs((priceBefore - marketPrice))
522522 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
523523 if (if ((priceImpact > maxPriceImpactValue))
524524 then _checkMaxPriceImpact
525525 else false)
526526 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)))
527527 else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, (totalLongPositionSize() - (if (_isAdd)
528528 then abs(_baseAssetAmount)
529529 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
530530 then abs(_baseAssetAmount)
531531 else 0)), priceImpact)
532532 }
533533 }
534534
535535
536536 func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), qtAstW(), bsAstR(), bsAstW())
537537
538538
539539 func getOracleTwapPrice () = {
540540 let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "")
541541 let priceKey = getStringValue(this, k_ora_key)
542542 let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey))
543543 let blockKey = valueOrElse(getString(this, k_ora_block_key), "")
544544 if ((blockKey != ""))
545545 then {
546546 let currentBlock = lastBlock.height
547- let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, k_ora_block_key), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
547+ let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, blockKey), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
548548 if (((currentBlock - lastOracleBlock) > maxOracleDelay()))
549549 then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock)))
550550 else lastValue
551551 }
552552 else lastValue
553553 }
554554
555555
556556 func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = {
557557 let oraclePrice = getOracleTwapPrice()
558558 let _qtAstW = qtAstW()
559559 let _bsAstW = bsAstW()
560560 let priceAfter = divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
561561 let averagePrice = divd((oraclePrice + priceAfter), (2 * DECIMAL_UNIT))
562562 let absPriceDiff = divd(abs((oraclePrice - priceAfter)), averagePrice)
563563 if ((absPriceDiff > maxPriceSpread()))
564564 then throw(((("Price spread " + toString(absPriceDiff)) + " > max price spread ") + toString(maxPriceSpread())))
565565 else true
566566 }
567567
568568
569569 func requireNotOverMaxOpenNotional (_longOpenNotional,_shortOpenNotional) = {
570570 let _maxOpenNotional = maxOpenNotional()
571571 if ((_longOpenNotional > _maxOpenNotional))
572572 then throw(((("Long open notional " + toString(_longOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
573573 else if ((_shortOpenNotional > _maxOpenNotional))
574574 then throw(((("Short open notional " + toString(_shortOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
575575 else true
576576 }
577577
578578
579579 func getSpotPrice () = {
580580 let _quoteAssetReserve = qtAstR()
581581 let _baseAssetReserve = bsAstR()
582582 let _qtAstW = qtAstW()
583583 let _bsAstW = bsAstW()
584584 divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
585585 }
586586
587587
588588 func isOverFluctuationLimit () = {
589589 let oraclePrice = getOracleTwapPrice()
590590 let currentPrice = getSpotPrice()
591591 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
592592 }
593593
594594
595595 func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
596596 let positionSizeAbs = abs(_positionSize)
597597 let isShort = (0 > _positionSize)
598598 let positionNotional = if ((_option == PNL_OPTION_SPOT))
599599 then {
600- let $t02423824458 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
601- let outPositionNotional = $t02423824458._1
602- let x1 = $t02423824458._2
603- let x2 = $t02423824458._3
604- let x3 = $t02423824458._4
600+ let $t02423124451 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
601+ let outPositionNotional = $t02423124451._1
602+ let x1 = $t02423124451._2
603+ let x2 = $t02423124451._3
604+ let x3 = $t02423124451._4
605605 outPositionNotional
606606 }
607607 else muld(positionSizeAbs, getOracleTwapPrice())
608608 positionNotional
609609 }
610610
611611
612612 func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight,_option) = if ((_positionSize == 0))
613613 then throw("Invalid position size")
614614 else {
615615 let isShort = (0 > _positionSize)
616616 let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
617617 let unrealizedPnl = if (isShort)
618618 then (_positionOpenNotional - positionNotional)
619619 else (positionNotional - _positionOpenNotional)
620620 $Tuple2(positionNotional, unrealizedPnl)
621621 }
622622
623623
624624 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
625- let $t02588326011 = getPosition(_trader)
626- let positionSize = $t02588326011._1
627- let positionMargin = $t02588326011._2
628- let positionOpenNotional = $t02588326011._3
629- let positionLstUpdCPF = $t02588326011._4
625+ let $t02587626004 = getPosition(_trader)
626+ let positionSize = $t02587626004._1
627+ let positionMargin = $t02587626004._2
628+ let positionOpenNotional = $t02587626004._3
629+ let positionLstUpdCPF = $t02587626004._4
630630 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
631631 }
632632
633633
634634 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
635635
636636
637637 func getMarginRatioByOption (_trader,_option) = {
638- let $t02652426635 = getPosition(_trader)
639- let positionSize = $t02652426635._1
640- let positionMargin = $t02652426635._2
641- let pon = $t02652426635._3
642- let positionLstUpdCPF = $t02652426635._4
643- let $t02664126734 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
644- let positionNotional = $t02664126734._1
645- let unrealizedPnl = $t02664126734._2
646- let $t02673926905 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
647- let remainMargin = $t02673926905._1
648- let badDebt = $t02673926905._2
638+ let $t02651726628 = getPosition(_trader)
639+ let positionSize = $t02651726628._1
640+ let positionMargin = $t02651726628._2
641+ let pon = $t02651726628._3
642+ let positionLstUpdCPF = $t02651726628._4
643+ let $t02663426727 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
644+ let positionNotional = $t02663426727._1
645+ let unrealizedPnl = $t02663426727._2
646+ let $t02673226898 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
647+ let remainMargin = $t02673226898._1
648+ let badDebt = $t02673226898._2
649649 calcMarginRatio(remainMargin, badDebt, positionNotional)
650650 }
651651
652652
653653 func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
654654
655655
656656 func getPartialLiquidationAmount (_trader,_positionSize) = {
657657 let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader), maintenanceMarginRatio())))
658658 let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio)
659659 let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false)
660660 let maxExchangedQuoteAssetAmount = swapResult._1
661661 let priceImpact = swapResult._7
662662 if ((maxPriceImpact() > priceImpact))
663663 then maxExchangedQuoteAssetAmount
664664 else {
665665 let exchangedPositionSize = muld(abs(_positionSize), partialLiquidationRatio())
666666 let exchangedQuoteAssetAmount = swapOutput((_positionSize > 0), exchangedPositionSize, false)._1
667667 exchangedQuoteAssetAmount
668668 }
669669 }
670670
671671
672672 func internalClosePosition (_trader,_checkMaxPriceImpact) = {
673- let $t02814528273 = getPosition(_trader)
674- let positionSize = $t02814528273._1
675- let positionMargin = $t02814528273._2
676- let positionOpenNotional = $t02814528273._3
677- let positionLstUpdCPF = $t02814528273._4
673+ let $t02813828266 = getPosition(_trader)
674+ let positionSize = $t02813828266._1
675+ let positionMargin = $t02813828266._2
676+ let positionOpenNotional = $t02813828266._3
677+ let positionLstUpdCPF = $t02813828266._4
678678 let unrealizedPnl = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)._2
679- let $t02836828536 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
680- let remainMargin = $t02836828536._1
681- let badDebt = $t02836828536._2
679+ let $t02836128529 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
680+ let remainMargin = $t02836128529._1
681+ let badDebt = $t02836128529._2
682682 let exchangedPositionSize = -(positionSize)
683683 let realizedPnl = unrealizedPnl
684684 let marginToVault = -(remainMargin)
685- let $t02866328937 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact)
686- let exchangedQuoteAssetAmount = $t02866328937._1
687- let quoteAssetReserveAfter = $t02866328937._2
688- let baseAssetReserveAfter = $t02866328937._3
689- let totalPositionSizeAfter = $t02866328937._4
690- let totalLongAfter = $t02866328937._5
691- let totalShortAfter = $t02866328937._6
685+ let $t02865628930 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact)
686+ let exchangedQuoteAssetAmount = $t02865628930._1
687+ let quoteAssetReserveAfter = $t02865628930._2
688+ let baseAssetReserveAfter = $t02865628930._3
689+ let totalPositionSizeAfter = $t02865628930._4
690+ let totalLongAfter = $t02865628930._5
691+ let totalShortAfter = $t02865628930._6
692692 let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional)
693693 $Tuple13(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter, (openInterestLong() - (if ((positionSize > 0))
694694 then positionOpenNotional
695695 else 0)), (openInterestShort() - (if ((0 > positionSize))
696696 then positionOpenNotional
697697 else 0)))
698698 }
699699
700700
701701 func getTwapSpotPrice () = {
702702 let minuteId = ((lastBlock.timestamp / 1000) / 60)
703703 let startMinuteId = (minuteId - TWAP_INTERVAL)
704704 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
705705 let list = split(listStr, ",")
706706 func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next)))
707707 then (accumulator :+ parseIntValue(next))
708708 else accumulator
709709
710710 let listF = {
711711 let $l = list
712712 let $s = size($l)
713713 let $acc0 = nil
714714 func $f0_1 ($a,$i) = if (($i >= $s))
715715 then $a
716716 else filterFn($a, $l[$i])
717717
718718 func $f0_2 ($a,$i) = if (($i >= $s))
719719 then $a
720720 else throw("List size exceeds 20")
721721
722722 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
723723 }
724724 let maxIndex = if ((size(listF) > 0))
725725 then max(listF)
726726 else parseIntValue(list[0])
727727 let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
728728 let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0)
729729 let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0)
730730 let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice))
731731 let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0)
732732 let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0)
733733 let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice))
734734 ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL)
735735 }
736736
737737
738738 func getTerminalAmmState () = {
739739 let _positionSize = totalPositionSize()
740740 if ((_positionSize == 0))
741741 then $Tuple2(qtAstR(), bsAstR())
742742 else {
743743 let direction = (_positionSize > 0)
744- let $t03106031239 = swapOutput(direction, abs(_positionSize), false)
745- let currentNetMarketValue = $t03106031239._1
746- let terminalQuoteAssetReserve = $t03106031239._2
747- let terminalBaseAssetReserve = $t03106031239._3
744+ let $t03105331232 = swapOutput(direction, abs(_positionSize), false)
745+ let currentNetMarketValue = $t03105331232._1
746+ let terminalQuoteAssetReserve = $t03105331232._2
747+ let terminalBaseAssetReserve = $t03105331232._3
748748 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
749749 }
750750 }
751751
752752
753753 func getQuoteAssetWeight (baseAssetReserve,totalPositionSize,quoteAssetReserve,targetPrice) = {
754754 let b = toBigInt(baseAssetReserve)
755755 let sz = toBigInt(totalPositionSize)
756756 let q = toBigInt(quoteAssetReserve)
757757 let p = toBigInt(targetPrice)
758758 let bs2 = bpowd((b + sz), toBigInt((2 * DECIMAL_UNIT)))
759759 let qbs2 = bmuld(q, bs2)
760760 let ps4 = (toBigInt(4) * bmuld(p, sz))
761761 let sqr = bsqrtd(bmuld(qbs2, (q - ps4)))
762762 let bq = bmuld(b, q)
763763 let qs = bmuld(q, sz)
764764 let top = ((-(sqr) + bq) + qs)
765765 let bot = (toBigInt(2) * bmuld(q, sz))
766766 let result = bdivd(top, bot)
767767 toInt(result)
768768 }
769769
770770
771771 func getSyncTerminalPrice (_terminalPrice) = {
772772 let _positionSize = totalPositionSize()
773773 if ((_positionSize == 0))
774774 then {
775775 let _qtAstR = qtAstR()
776776 let _bsAstR = bsAstR()
777777 let newQtAstW = divd(muld(_terminalPrice, _bsAstR), _qtAstR)
778778 $Tuple3(newQtAstW, DECIMAL_UNIT, 0)
779779 }
780780 else {
781781 let direction = (_positionSize > 0)
782782 let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1
783783 let _qtAstR = qtAstR()
784784 let _bsAstR = bsAstR()
785785 let newQtAstW = getQuoteAssetWeight(_bsAstR, _positionSize, _qtAstR, _terminalPrice)
786786 let newBsAstW = DECIMAL_UNIT
787787 let marginToVault = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, _qtAstR, newQtAstW, _bsAstR, newBsAstW, PNL_OPTION_SPOT)._2
788788 $Tuple3(newQtAstW, newBsAstW, marginToVault)
789789 }
790790 }
791791
792792
793793 func getFunding () = {
794794 let underlyingPrice = getOracleTwapPrice()
795795 let spotTwapPrice = getTwapSpotPrice()
796796 let premium = (spotTwapPrice - underlyingPrice)
797797 if (if ((totalShortPositionSize() == 0))
798798 then true
799799 else (totalLongPositionSize() == 0))
800800 then $Tuple2(0, 0)
801801 else if ((0 > premium))
802802 then {
803803 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
804804 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
805805 $Tuple2(shortPremiumFraction, longPremiumFraction)
806806 }
807807 else {
808808 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
809809 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
810810 $Tuple2(shortPremiumFraction, longPremiumFraction)
811811 }
812812 }
813813
814814
815815 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
816816 let baseFeeRaw = fee()
817817 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
818- let $t03433834833 = if ((_artifactId != ""))
818+ let $t03433134826 = if ((_artifactId != ""))
819819 then {
820820 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
821821 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
822822 then {
823823 let reduction = intA(nftManagerAddress(), toCompositeKey(k_token_param, _artifactId))
824824 let adjustedFee = muld(baseFee, reduction)
825825 $Tuple2(adjustedFee, true)
826826 }
827827 else throw("Invalid attached artifact")
828828 }
829829 else $Tuple2(baseFee, false)
830- let adjustedFee = $t03433834833._1
831- let burnArtifact = $t03433834833._2
830+ let adjustedFee = $t03433134826._1
831+ let burnArtifact = $t03433134826._2
832832 $Tuple2(adjustedFee, burnArtifact)
833833 }
834834
835835
836836 func isSameAssetOrNoPosition (_trader,_assetId) = {
837837 let oldPositionSize = getPosition(_trader)._1
838838 if ((oldPositionSize == 0))
839839 then true
840840 else (getPositionAsset(_trader) == _assetId)
841841 }
842842
843843
844844 func isSameAsset (_trader,_assetId) = (getPositionAsset(_trader) == _assetId)
845845
846846
847847 func getBorrowedByTraderInMarketKey (_amm,_assetId,_trader) = ((((((k_trader_market_asset_collateral + "_") + _amm) + "_") + _assetId) + "_") + _trader)
848848
849849
850850 func getBorrowedByTrader (_trader) = {
851851 let positionAsset = getPositionAsset(_trader)
852852 if ((positionAsset == toBase58String(quoteAsset())))
853853 then $Tuple2(0, positionAsset)
854854 else {
855855 let key = getBorrowedByTraderInMarketKey(toString(this), positionAsset, _trader)
856856 let borrow = valueOrElse(getInteger(collateralAddress(), key), 0)
857857 $Tuple2(borrow, positionAsset)
858858 }
859859 }
860860
861861
862862 func getForTraderWithArtifact (_trader,_artifactId) = {
863863 let doGetFeeDiscount = invoke(minerAddress(), "computeFeeDiscount", [_trader], nil)
864864 if ((doGetFeeDiscount == doGetFeeDiscount))
865865 then {
866866 let feeDiscount = match doGetFeeDiscount {
867867 case x: Int =>
868868 x
869869 case _ =>
870870 throw("Invalid computeFeeDiscount result")
871871 }
872- let $t03606436138 = getAdjustedFee(_artifactId, feeDiscount)
873- let adjustedFee = $t03606436138._1
874- let burnArtifact = $t03606436138._2
872+ let $t03605736131 = getAdjustedFee(_artifactId, feeDiscount)
873+ let adjustedFee = $t03605736131._1
874+ let burnArtifact = $t03605736131._2
875875 $Tuple2(adjustedFee, burnArtifact)
876876 }
877877 else throw("Strict value is not equal to itself.")
878878 }
879879
880880
881881 func getArtifactId (i) = {
882882 let artifactId = if ((size(i.payments) > 1))
883883 then toBase58String(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifactId"))
884884 else ""
885885 artifactId
886886 }
887887
888888
889889 func distributeFee (_feeAmount) = {
890890 let feeToStakers = muld(_feeAmount, feeToStakersPercent())
891891 let feeToVault = (_feeAmount - feeToStakers)
892892 $Tuple2(feeToStakers, feeToVault)
893893 }
894894
895895
896896 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee), IntegerEntry(k_spreadLimit, _spreadLimit), IntegerEntry(k_maxPriceImpact, _maxPriceImpact), IntegerEntry(k_partialLiquidationRatio, _partialLiquidationRatio), IntegerEntry(k_maxPriceSpread, _maxPriceSpread), IntegerEntry(k_maxOpenNotional, _maxOpenNotional), IntegerEntry(k_feeToStakersPercent, _feeToStakersPercent), IntegerEntry(k_maxOracleDelay, _feeToStakersPercent)]
897897
898898
899899 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)]
900900
901901
902902 func updatePositionAsset (_address,_assetId) = [StringEntry(toCompositeKey(k_positionAsset, _address), _assetId)]
903903
904904
905905 func incrementPositionSequenceNumber (isNewPosition,_address) = if (isNewPosition)
906906 then {
907907 let currentSequence = lastSequence()
908908 [IntegerEntry(toCompositeKey(k_positionSequence, _address), (currentSequence + 1)), IntegerEntry(k_sequence, (currentSequence + 1))]
909909 }
910910 else nil
911911
912912
913913 func updatePosition (_address,_size,_margin,_openNotional,_latestCumulativePremiumFraction) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _latestCumulativePremiumFraction)]
914914
915915
916916 func appendTwap (_price) = {
917917 let minuteId = ((lastBlock.timestamp / 1000) / 60)
918918 let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
919919 if ((previousMinuteId > minuteId))
920920 then throw("TWAP out-of-order")
921921 else {
922922 let lastMinuteId = if ((previousMinuteId == 0))
923923 then minuteId
924924 else previousMinuteId
925925 if ((minuteId > previousMinuteId))
926926 then {
927927 let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0)
928928 let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), _price)
929929 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice))
930930 let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId))
931931 [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), _price), IntegerEntry(toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId)), previousMinuteId), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, listToStr(list))]
932932 }
933933 else {
934934 let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0)
935935 let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0)
936936 let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), _price)
937937 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice))
938938 [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), _price)]
939939 }
940940 }
941941 }
942942
943943
944944 func updateAmmReserves (_qtAstR,_bsAstR) = [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)]
945945
946946
947947 func updateAmmWeights (_qtAstW,_bsAstW) = [IntegerEntry(k_quoteAssetWeight, _qtAstW), IntegerEntry(k_baseAssetWeight, _bsAstW)]
948948
949949
950950 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize,_totalLongOpenNotional,_totalShortOpenNotional) = {
951951 let _qtAstW = qtAstW()
952952 let _bsAstW = bsAstW()
953953 if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
954954 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
955955 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)]) ++ appendTwap(divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))))
956956 }
957957
958958
959959 func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address)), DeleteEntry(toCompositeKey(k_positionAsset, _address))]
960960
961961
962962 func withdraw (_address,_amount) = {
963963 let balance = assetBalance(this, quoteAsset())
964964 if ((_amount > balance))
965965 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
966966 else [ScriptTransfer(_address, _amount, quoteAsset())]
967967 }
968968
969969
970970 func updateBalance (i) = if ((0 > i))
971971 then throw("Balance")
972972 else [IntegerEntry(k_balance, i)]
973973
974974
975975 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
976976
977977
978978 func doBurnArtifact (_burnArtifact,i) = if (_burnArtifact)
979979 then [Burn(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifact"), 1)]
980980 else nil
981981
982982
983983 @Callable(i)
984984 func pause () = if ((i.caller != adminAddress()))
985985 then throw("Invalid pause params")
986986 else [BooleanEntry(k_paused, true)]
987987
988988
989989
990990 @Callable(i)
991991 func unpause () = if ((i.caller != adminAddress()))
992992 then throw("Invalid unpause params")
993993 else [BooleanEntry(k_paused, false)]
994994
995995
996996
997997 @Callable(i)
998998 func setCloseOnly () = if ((i.caller != adminAddress()))
999999 then throw("Invalid setCloseOnly params")
10001000 else [BooleanEntry(k_closeOnly, true)]
10011001
10021002
10031003
10041004 @Callable(i)
10051005 func unsetCloseOnly () = if ((i.caller != adminAddress()))
10061006 then throw("Invalid unsetCloseOnly params")
10071007 else [BooleanEntry(k_closeOnly, false)]
10081008
10091009
10101010
10111011 @Callable(i)
10121012 func addLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
10131013 then true
10141014 else (0 >= _quoteAssetAmount))
10151015 then throw("Invalid addLiquidity params")
10161016 else {
10171017 let _qtAstR = qtAstR()
10181018 let _bsAstR = bsAstR()
10191019 let _qtAstW = qtAstW()
10201020 let _bsAstW = bsAstW()
10211021 let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
10221022 let baseAssetAmountToAdd = divd(_quoteAssetAmount, price)
10231023 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10241024 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
10251025 updateAmmReserves(qtAstRAfter, bsAstRAfter)
10261026 }
10271027
10281028
10291029
10301030 @Callable(i)
10311031 func removeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
10321032 then true
10331033 else (0 >= _quoteAssetAmount))
10341034 then throw("Invalid removeLiquidity params")
10351035 else {
10361036 let _qtAstR = qtAstR()
10371037 let _bsAstR = bsAstR()
10381038 let _qtAstW = qtAstW()
10391039 let _bsAstW = bsAstW()
10401040 let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
10411041 let baseAssetAmountToRemove = divd(_quoteAssetAmount, price)
10421042 let qtAstRAfter = (_qtAstR - _quoteAssetAmount)
10431043 let bsAstRAfter = (_bsAstR - baseAssetAmountToRemove)
10441044 updateAmmReserves(qtAstRAfter, bsAstRAfter)
10451045 }
10461046
10471047
10481048
10491049 @Callable(i)
10501050 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay) = if ((i.caller != adminAddress()))
10511051 then throw("Invalid changeSettings params")
10521052 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay)
10531053
10541054
10551055
10561056 @Callable(i)
10571057 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_oracleBlockKey,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
10581058 then true
10591059 else (0 >= _bsAstR))
10601060 then true
10611061 else (0 >= _fundingPeriod))
10621062 then true
10631063 else (0 >= _initMarginRatio))
10641064 then true
10651065 else (0 >= _mmr))
10661066 then true
10671067 else (0 >= _liquidationFeeRatio))
10681068 then true
10691069 else (0 >= _fee))
10701070 then true
10711071 else (0 >= _spreadLimit))
10721072 then true
10731073 else (0 >= _maxPriceImpact))
10741074 then true
10751075 else (0 >= _partialLiquidationRatio))
10761076 then true
10771077 else (0 >= _maxPriceSpread))
10781078 then true
10791079 else (0 >= _maxOpenNotional))
10801080 then true
10811081 else (0 >= _feeToStakersPercent))
10821082 then true
10831083 else (_feeToStakersPercent > DECIMAL_UNIT))
10841084 then true
10851085 else (0 >= _maxOracleDelay))
10861086 then true
10871087 else initialized())
10881088 then throw("Invalid initialize parameters")
10891089 else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay)) ++ updateFunding((lastBlock.timestamp + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_ora, _oracle), StringEntry(k_ora_key, _oracleKey), StringEntry(k_ora_block_key, _oracleBlockKey), StringEntry(k_coordinatorAddress, _coordinator)])
10901090
10911091
10921092
10931093 @Callable(i)
10941094 func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = {
10951095 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
10961096 if ((sync == sync))
10971097 then {
10981098 let _trader = getActualCaller(i)
10991099 if (if (if (if (if ((0 >= _amount))
11001100 then true
11011101 else !(initialized()))
11021102 then true
11031103 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
11041104 then true
11051105 else !(requireOpenPosition(_trader)))
11061106 then true
11071107 else paused())
11081108 then throw("Invalid decreasePosition parameters")
11091109 else {
1110- let $t04867748817 = getPosition(_trader)
1111- let oldPositionSize = $t04867748817._1
1112- let oldPositionMargin = $t04867748817._2
1113- let oldPositionOpenNotional = $t04867748817._3
1114- let oldPositionLstUpdCPF = $t04867748817._4
1110+ let $t04867048810 = getPosition(_trader)
1111+ let oldPositionSize = $t04867048810._1
1112+ let oldPositionMargin = $t04867048810._2
1113+ let oldPositionOpenNotional = $t04867048810._3
1114+ let oldPositionLstUpdCPF = $t04867048810._4
11151115 let _direction = if ((oldPositionSize > 0))
11161116 then DIR_SHORT
11171117 else DIR_LONG
11181118 let isAdd = (_direction == DIR_LONG)
11191119 let openNotional = muld(_amount, _leverage)
1120- let $t04899049094 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1121- let oldPositionNotional = $t04899049094._1
1122- let unrealizedPnl = $t04899049094._2
1123- let $t04910051758 = if ((oldPositionNotional > openNotional))
1120+ let $t04898349087 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1121+ let oldPositionNotional = $t04898349087._1
1122+ let unrealizedPnl = $t04898349087._2
1123+ let $t04909351751 = if ((oldPositionNotional > openNotional))
11241124 then {
1125- let $t04951549699 = swapInput(isAdd, openNotional)
1126- let exchangedPositionSize = $t04951549699._1
1127- let quoteAssetReserveAfter = $t04951549699._2
1128- let baseAssetReserveAfter = $t04951549699._3
1129- let totalPositionSizeAfter = $t04951549699._4
1125+ let $t04950849692 = swapInput(isAdd, openNotional)
1126+ let exchangedPositionSize = $t04950849692._1
1127+ let quoteAssetReserveAfter = $t04950849692._2
1128+ let baseAssetReserveAfter = $t04950849692._3
1129+ let totalPositionSizeAfter = $t04950849692._4
11301130 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
11311131 if (if ((_minBaseAssetAmount != 0))
11321132 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
11331133 else false)
11341134 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
11351135 else {
11361136 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
1137- let $t05013650381 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1138- let remainMargin = $t05013650381._1
1139- let badDebt = $t05013650381._2
1140- let fundingPayment = $t05013650381._3
1137+ let $t05012950374 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1138+ let remainMargin = $t05012950374._1
1139+ let badDebt = $t05012950374._2
1140+ let fundingPayment = $t05012950374._3
11411141 let exchangedQuoteAssetAmount = openNotional
11421142 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
11431143 let remainOpenNotional = if ((oldPositionSize > 0))
11441144 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
11451145 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
11461146 let newPositionSize = (oldPositionSize + exchangedPositionSize)
11471147 $Tuple12(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0))
11481148 then abs(exchangedPositionSize)
11491149 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
11501150 then abs(exchangedPositionSize)
11511151 else 0)), (openInterestLong() - (if ((newPositionSize > 0))
11521152 then openNotional
11531153 else 0)), (openInterestShort() - (if ((0 > newPositionSize))
11541154 then openNotional
11551155 else 0)))
11561156 }
11571157 }
11581158 else throw("Close position first")
1159- let newPositionSize = $t04910051758._1
1160- let newPositionRemainMargin = $t04910051758._2
1161- let newPositionOpenNotional = $t04910051758._3
1162- let newPositionLatestCPF = $t04910051758._4
1163- let baseAssetReserveAfter = $t04910051758._5
1164- let quoteAssetReserveAfter = $t04910051758._6
1165- let totalPositionSizeAfter = $t04910051758._7
1166- let openInterestNotionalAfter = $t04910051758._8
1167- let totalLongAfter = $t04910051758._9
1168- let totalShortAfter = $t04910051758._10
1169- let totalLongOpenInterestAfter = $t04910051758._11
1170- let totalShortOpenInterestAfter = $t04910051758._12
1159+ let newPositionSize = $t04909351751._1
1160+ let newPositionRemainMargin = $t04909351751._2
1161+ let newPositionOpenNotional = $t04909351751._3
1162+ let newPositionLatestCPF = $t04909351751._4
1163+ let baseAssetReserveAfter = $t04909351751._5
1164+ let quoteAssetReserveAfter = $t04909351751._6
1165+ let totalPositionSizeAfter = $t04909351751._7
1166+ let openInterestNotionalAfter = $t04909351751._8
1167+ let totalLongAfter = $t04909351751._9
1168+ let totalShortAfter = $t04909351751._10
1169+ let totalLongOpenInterestAfter = $t04909351751._11
1170+ let totalShortOpenInterestAfter = $t04909351751._12
11711171 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
11721172 if ((notifyNotional == notifyNotional))
11731173 then (updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter))
11741174 else throw("Strict value is not equal to itself.")
11751175 }
11761176 }
11771177 else throw("Strict value is not equal to itself.")
11781178 }
11791179
11801180
11811181
11821182 @Callable(i)
11831183 func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink) = {
11841184 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
11851185 if ((sync == sync))
11861186 then {
11871187 let _trader = getActualCaller(i)
11881188 let _rawAmount = i.payments[0].amount
11891189 let _assetId = i.payments[0].assetId
11901190 let _assetIdStr = toBase58String(value(_assetId))
11911191 let isQuoteAsset = (_assetId == quoteAsset())
11921192 let isCollateralAsset = isWhitelistAsset(_assetIdStr)
11931193 if (if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
11941194 then (_direction != DIR_SHORT)
11951195 else false)
11961196 then true
11971197 else (0 >= _rawAmount))
11981198 then true
11991199 else !(initialized()))
12001200 then true
12011201 else if (!(isQuoteAsset))
12021202 then !(isCollateralAsset)
12031203 else false)
12041204 then true
12051205 else !(isSameAssetOrNoPosition(_trader, _assetIdStr)))
12061206 then true
12071207 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
12081208 then true
12091209 else paused())
12101210 then true
12111211 else closeOnly())
12121212 then throw("Invalid increasePosition parameters")
12131213 else {
1214- let $t05319653281 = getForTraderWithArtifact(_trader, getArtifactId(i))
1215- let adjustedFee = $t05319653281._1
1216- let burnArtifact = $t05319653281._2
1214+ let $t05318953274 = getForTraderWithArtifact(_trader, getArtifactId(i))
1215+ let adjustedFee = $t05318953274._1
1216+ let burnArtifact = $t05318953274._2
12171217 let rawFeeAmount = muld(_rawAmount, adjustedFee)
12181218 let _amount = (_rawAmount - rawFeeAmount)
12191219 let distributeFeeAmount = if (isCollateralAsset)
12201220 then {
12211221 let doBorrow = invoke(collateralAddress(), "borrow", [_trader], [AttachedPayment(_assetId, _amount)])
12221222 if ((doBorrow == doBorrow))
12231223 then {
12241224 let balanceBefore = assetBalance(this, quoteAsset())
12251225 if ((balanceBefore == balanceBefore))
12261226 then {
12271227 let doSwap = invoke(swapAddress(), "swap", [toBase58String(quoteAsset()), 0], [AttachedPayment(_assetId, rawFeeAmount)])
12281228 if ((doSwap == doSwap))
12291229 then {
12301230 let balanceAfter = assetBalance(this, quoteAsset())
12311231 if ((balanceAfter == balanceAfter))
12321232 then {
12331233 let exchangedAmount = (balanceAfter - balanceBefore)
12341234 if ((exchangedAmount == exchangedAmount))
12351235 then exchangedAmount
12361236 else throw("Strict value is not equal to itself.")
12371237 }
12381238 else throw("Strict value is not equal to itself.")
12391239 }
12401240 else throw("Strict value is not equal to itself.")
12411241 }
12421242 else throw("Strict value is not equal to itself.")
12431243 }
12441244 else throw("Strict value is not equal to itself.")
12451245 }
12461246 else rawFeeAmount
12471247 if ((distributeFeeAmount == distributeFeeAmount))
12481248 then {
12491249 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
12501250 if ((referrerFeeAny == referrerFeeAny))
12511251 then {
12521252 let referrerFee = match referrerFeeAny {
12531253 case x: Int =>
12541254 x
12551255 case _ =>
12561256 throw("Invalid referrerFee")
12571257 }
12581258 let feeAmount = (distributeFeeAmount - referrerFee)
1259- let $t05459754737 = getPosition(_trader)
1260- let oldPositionSize = $t05459754737._1
1261- let oldPositionMargin = $t05459754737._2
1262- let oldPositionOpenNotional = $t05459754737._3
1263- let oldPositionLstUpdCPF = $t05459754737._4
1259+ let $t05459054730 = getPosition(_trader)
1260+ let oldPositionSize = $t05459054730._1
1261+ let oldPositionMargin = $t05459054730._2
1262+ let oldPositionOpenNotional = $t05459054730._3
1263+ let oldPositionLstUpdCPF = $t05459054730._4
12641264 let isNewPosition = (oldPositionSize == 0)
12651265 let isSameDirection = if ((oldPositionSize > 0))
12661266 then (_direction == DIR_LONG)
12671267 else (_direction == DIR_SHORT)
12681268 let expandExisting = if (!(isNewPosition))
12691269 then isSameDirection
12701270 else false
12711271 let isAdd = (_direction == DIR_LONG)
1272- let $t05502658067 = if (if (isNewPosition)
1272+ let $t05501958060 = if (if (isNewPosition)
12731273 then true
12741274 else expandExisting)
12751275 then {
12761276 let openNotional = muld(_amount, _leverage)
1277- let $t05548855661 = swapInput(isAdd, openNotional)
1278- let amountBaseAssetBought = $t05548855661._1
1279- let quoteAssetReserveAfter = $t05548855661._2
1280- let baseAssetReserveAfter = $t05548855661._3
1281- let totalPositionSizeAfter = $t05548855661._4
1277+ let $t05548155654 = swapInput(isAdd, openNotional)
1278+ let amountBaseAssetBought = $t05548155654._1
1279+ let quoteAssetReserveAfter = $t05548155654._2
1280+ let baseAssetReserveAfter = $t05548155654._3
1281+ let totalPositionSizeAfter = $t05548155654._4
12821282 if (if ((_minBaseAssetAmount != 0))
12831283 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12841284 else false)
12851285 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
12861286 else {
12871287 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
12881288 let totalLongOpenInterestAfter = (openInterestLong() + (if ((newPositionSize > 0))
12891289 then openNotional
12901290 else 0))
12911291 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12921292 then openNotional
12931293 else 0))
12941294 let increaseMarginRequirement = divd(openNotional, _leverage)
1295- let $t05626956508 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
1296- let remainMargin = $t05626956508._1
1297- let x1 = $t05626956508._2
1298- let x2 = $t05626956508._3
1295+ let $t05626256501 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
1296+ let remainMargin = $t05626256501._1
1297+ let x1 = $t05626256501._2
1298+ let x2 = $t05626256501._3
12991299 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
13001300 then throw("Over max spread limit")
13011301 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
13021302 then throw("Over max open notional")
13031303 else $Tuple12(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
13041304 then abs(amountBaseAssetBought)
13051305 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
13061306 then abs(amountBaseAssetBought)
13071307 else 0)), totalLongOpenInterestAfter, totalShortOpenInterestAfter)
13081308 }
13091309 }
13101310 else {
13111311 let openNotional = muld(_amount, _leverage)
1312- let $t05776757883 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
1313- let oldPositionNotional = $t05776757883._1
1314- let unrealizedPnl = $t05776757883._2
1312+ let $t05776057876 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
1313+ let oldPositionNotional = $t05776057876._1
1314+ let unrealizedPnl = $t05776057876._2
13151315 if ((oldPositionNotional > openNotional))
13161316 then throw("Use decreasePosition to decrease position size")
13171317 else throw("Close position first")
13181318 }
1319- let newPositionSize = $t05502658067._1
1320- let newPositionRemainMargin = $t05502658067._2
1321- let newPositionOpenNotional = $t05502658067._3
1322- let newPositionLatestCPF = $t05502658067._4
1323- let baseAssetReserveAfter = $t05502658067._5
1324- let quoteAssetReserveAfter = $t05502658067._6
1325- let totalPositionSizeAfter = $t05502658067._7
1326- let openInterestNotionalAfter = $t05502658067._8
1327- let totalLongAfter = $t05502658067._9
1328- let totalShortAfter = $t05502658067._10
1329- let totalLongOpenInterestAfter = $t05502658067._11
1330- let totalShortOpenInterestAfter = $t05502658067._12
1331- let $t05807358130 = distributeFee(feeAmount)
1332- let feeToStakers = $t05807358130._1
1333- let feeToVault = $t05807358130._2
1319+ let newPositionSize = $t05501958060._1
1320+ let newPositionRemainMargin = $t05501958060._2
1321+ let newPositionOpenNotional = $t05501958060._3
1322+ let newPositionLatestCPF = $t05501958060._4
1323+ let baseAssetReserveAfter = $t05501958060._5
1324+ let quoteAssetReserveAfter = $t05501958060._6
1325+ let totalPositionSizeAfter = $t05501958060._7
1326+ let openInterestNotionalAfter = $t05501958060._8
1327+ let totalLongAfter = $t05501958060._9
1328+ let totalShortAfter = $t05501958060._10
1329+ let totalLongOpenInterestAfter = $t05501958060._11
1330+ let totalShortOpenInterestAfter = $t05501958060._12
1331+ let $t05806658123 = distributeFee(feeAmount)
1332+ let feeToStakers = $t05806658123._1
1333+ let feeToVault = $t05806658123._2
13341334 let stake = if (isQuoteAsset)
13351335 then {
13361336 let stake = invoke(vaultAddress(), "addLocked", [false], [AttachedPayment(quoteAsset(), _amount)])
13371337 if ((stake == stake))
13381338 then nil
13391339 else throw("Strict value is not equal to itself.")
13401340 }
13411341 else nil
13421342 if ((stake == stake))
13431343 then {
13441344 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
13451345 if ((depositInsurance == depositInsurance))
13461346 then {
13471347 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
13481348 if ((notifyFee == notifyFee))
13491349 then {
13501350 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
13511351 if ((notifyNotional == notifyNotional))
13521352 then ((((((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ incrementPositionSequenceNumber(isNewPosition, _trader)) ++ updatePositionAsset(_trader, _assetIdStr)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) ++ doBurnArtifact(burnArtifact, i))
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 else throw("Strict value is not equal to itself.")
13601360 }
13611361 else throw("Strict value is not equal to itself.")
13621362 }
13631363 else throw("Strict value is not equal to itself.")
13641364 }
13651365 }
13661366 else throw("Strict value is not equal to itself.")
13671367 }
13681368
13691369
13701370
13711371 @Callable(i)
13721372 func addMargin () = {
13731373 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
13741374 if ((sync == sync))
13751375 then {
13761376 let _trader = toString(i.caller)
13771377 let _rawAmount = i.payments[0].amount
13781378 let _assetId = i.payments[0].assetId
13791379 let _assetIdStr = toBase58String(value(_assetId))
13801380 let isQuoteAsset = (_assetId == quoteAsset())
13811381 let isCollateralAsset = isWhitelistAsset(_assetIdStr)
13821382 if (if (if (if (if (if (if (!(isQuoteAsset))
13831383 then !(isCollateralAsset)
13841384 else false)
13851385 then true
13861386 else !(requireOpenPosition(toString(i.caller))))
13871387 then true
13881388 else !(isSameAsset(_trader, _assetIdStr)))
13891389 then true
13901390 else !(initialized()))
13911391 then true
13921392 else paused())
13931393 then true
13941394 else closeOnly())
13951395 then throw("Invalid addMargin parameters")
13961396 else {
1397- let $t06007860163 = getForTraderWithArtifact(_trader, getArtifactId(i))
1398- let adjustedFee = $t06007860163._1
1399- let burnArtifact = $t06007860163._2
1397+ let $t06007160156 = getForTraderWithArtifact(_trader, getArtifactId(i))
1398+ let adjustedFee = $t06007160156._1
1399+ let burnArtifact = $t06007160156._2
14001400 let rawFeeAmount = muld(_rawAmount, adjustedFee)
14011401 let _amount = (_rawAmount - rawFeeAmount)
14021402 let distributeFeeAmount = if (isCollateralAsset)
14031403 then {
14041404 let doBorrow = invoke(collateralAddress(), "borrow", [_trader], [AttachedPayment(_assetId, _amount)])
14051405 if ((doBorrow == doBorrow))
14061406 then {
14071407 let balanceBefore = assetBalance(this, quoteAsset())
14081408 if ((balanceBefore == balanceBefore))
14091409 then {
14101410 let doSwap = invoke(swapAddress(), "swap", [toBase58String(quoteAsset()), 0], [AttachedPayment(_assetId, rawFeeAmount)])
14111411 if ((doSwap == doSwap))
14121412 then {
14131413 let balanceAfter = assetBalance(this, quoteAsset())
14141414 if ((balanceAfter == balanceAfter))
14151415 then {
14161416 let exchangedAmount = (balanceAfter - balanceBefore)
14171417 if ((exchangedAmount == exchangedAmount))
14181418 then exchangedAmount
14191419 else throw("Strict value is not equal to itself.")
14201420 }
14211421 else throw("Strict value is not equal to itself.")
14221422 }
14231423 else throw("Strict value is not equal to itself.")
14241424 }
14251425 else throw("Strict value is not equal to itself.")
14261426 }
14271427 else throw("Strict value is not equal to itself.")
14281428 }
14291429 else rawFeeAmount
14301430 if ((distributeFeeAmount == distributeFeeAmount))
14311431 then {
14321432 let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
14331433 if ((referrerFeeAny == referrerFeeAny))
14341434 then {
14351435 let referrerFee = match referrerFeeAny {
14361436 case x: Int =>
14371437 x
14381438 case _ =>
14391439 throw("Invalid referrerFee")
14401440 }
14411441 let feeAmount = (distributeFeeAmount - referrerFee)
1442- let $t06146261602 = getPosition(_trader)
1443- let oldPositionSize = $t06146261602._1
1444- let oldPositionMargin = $t06146261602._2
1445- let oldPositionOpenNotional = $t06146261602._3
1446- let oldPositionLstUpdCPF = $t06146261602._4
1447- let $t06160861665 = distributeFee(feeAmount)
1448- let feeToStakers = $t06160861665._1
1449- let feeToVault = $t06160861665._2
1442+ let $t06145561595 = getPosition(_trader)
1443+ let oldPositionSize = $t06145561595._1
1444+ let oldPositionMargin = $t06145561595._2
1445+ let oldPositionOpenNotional = $t06145561595._3
1446+ let oldPositionLstUpdCPF = $t06145561595._4
1447+ let $t06160161658 = distributeFee(feeAmount)
1448+ let feeToStakers = $t06160161658._1
1449+ let feeToVault = $t06160161658._2
14501450 let stake = if (isQuoteAsset)
14511451 then {
14521452 let stake = invoke(vaultAddress(), "addLocked", [false], [AttachedPayment(quoteAsset(), _amount)])
14531453 if ((stake == stake))
14541454 then nil
14551455 else throw("Strict value is not equal to itself.")
14561456 }
14571457 else nil
14581458 if ((stake == stake))
14591459 then {
14601460 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
14611461 if ((depositInsurance == depositInsurance))
14621462 then {
14631463 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
14641464 if ((notifyFee == notifyFee))
14651465 then (((updatePosition(_trader, oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) ++ doBurnArtifact(burnArtifact, i))
14661466 else throw("Strict value is not equal to itself.")
14671467 }
14681468 else throw("Strict value is not equal to itself.")
14691469 }
14701470 else throw("Strict value is not equal to itself.")
14711471 }
14721472 else throw("Strict value is not equal to itself.")
14731473 }
14741474 else throw("Strict value is not equal to itself.")
14751475 }
14761476 }
14771477 else throw("Strict value is not equal to itself.")
14781478 }
14791479
14801480
14811481
14821482 @Callable(i)
14831483 func removeMargin (_amount) = {
14841484 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
14851485 if ((sync == sync))
14861486 then {
14871487 let _trader = toString(i.caller)
14881488 if (if (if (if ((0 >= _amount))
14891489 then true
14901490 else !(requireOpenPosition(_trader)))
14911491 then true
14921492 else !(initialized()))
14931493 then true
14941494 else paused())
14951495 then throw("Invalid removeMargin parameters")
14961496 else {
1497- let $t06277762917 = getPosition(_trader)
1498- let oldPositionSize = $t06277762917._1
1499- let oldPositionMargin = $t06277762917._2
1500- let oldPositionOpenNotional = $t06277762917._3
1501- let oldPositionLstUpdCPF = $t06277762917._4
1497+ let $t06277062910 = getPosition(_trader)
1498+ let oldPositionSize = $t06277062910._1
1499+ let oldPositionMargin = $t06277062910._2
1500+ let oldPositionOpenNotional = $t06277062910._3
1501+ let oldPositionLstUpdCPF = $t06277062910._4
15021502 let marginDelta = -(_amount)
1503- let $t06295463133 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1504- let remainMargin = $t06295463133._1
1505- let badDebt = $t06295463133._2
1503+ let $t06294763126 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
1504+ let remainMargin = $t06294763126._1
1505+ let badDebt = $t06294763126._2
15061506 if ((badDebt != 0))
15071507 then throw("Invalid removed margin amount")
15081508 else {
15091509 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
15101510 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
15111511 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
15121512 else {
15131513 let quoteAssetStr = toBase58String(quoteAsset())
1514- let $t06357763631 = getBorrowedByTrader(_trader)
1515- let borrowed = $t06357763631._1
1516- let assetId = $t06357763631._2
1514+ let $t06357063624 = getBorrowedByTrader(_trader)
1515+ let borrowed = $t06357063624._1
1516+ let assetId = $t06357063624._2
15171517 let toRepay = if ((_amount > borrowed))
15181518 then borrowed
15191519 else _amount
15201520 let toWithdraw = if ((borrowed > _amount))
15211521 then 0
15221522 else (_amount - borrowed)
15231523 let finalBorrow = (borrowed - toRepay)
15241524 let switchPositionToQuote = if ((finalBorrow > 0))
15251525 then nil
15261526 else updatePositionAsset(_trader, quoteAssetStr)
15271527 let doSanityCheck = if (((toRepay + toWithdraw) != _amount))
15281528 then throw(((((("toRepay=" + toString(toRepay)) + " + toWithdraw=") + toString(toWithdraw)) + " != ") + toString(_amount)))
15291529 else nil
15301530 if ((doSanityCheck == doSanityCheck))
15311531 then {
15321532 let doUnstake = if ((toWithdraw > 0))
15331533 then {
15341534 let doUnstake = invoke(vaultAddress(), "withdrawLocked", [toWithdraw], nil)
15351535 if ((doUnstake == doUnstake))
15361536 then nil
15371537 else throw("Strict value is not equal to itself.")
15381538 }
15391539 else nil
15401540 if ((doUnstake == doUnstake))
15411541 then {
15421542 let returnCollateralAction = if ((toRepay > 0))
15431543 then {
15441544 let doRepay = invoke(collateralAddress(), "repay", [_trader, toRepay, assetId], nil)
15451545 if ((doRepay == doRepay))
15461546 then [ScriptTransfer(i.caller, toRepay, fromBase58String(assetId))]
15471547 else throw("Strict value is not equal to itself.")
15481548 }
15491549 else nil
15501550 if ((returnCollateralAction == returnCollateralAction))
15511551 then ((((updatePosition(_trader, oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ (if ((toWithdraw > 0))
15521552 then withdraw(i.caller, toWithdraw)
15531553 else nil)) ++ updateBalance((cbalance() - _amount))) ++ switchPositionToQuote) ++ returnCollateralAction)
15541554 else throw("Strict value is not equal to itself.")
15551555 }
15561556 else throw("Strict value is not equal to itself.")
15571557 }
15581558 else throw("Strict value is not equal to itself.")
15591559 }
15601560 }
15611561 }
15621562 }
15631563 else throw("Strict value is not equal to itself.")
15641564 }
15651565
15661566
15671567
15681568 @Callable(i)
15691569 func closePosition (_size,_minQuoteAssetAmount) = {
15701570 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
15711571 if ((sync == sync))
15721572 then {
15731573 let _trader = getActualCaller(i)
15741574 let _traderAddress = valueOrErrorMessage(addressFromString(_trader), "Invalid caller")
15751575 if (if (if (if (if (!(requireOpenPosition(_trader)))
15761576 then true
15771577 else !(initialized()))
15781578 then true
15791579 else paused())
15801580 then true
15811581 else (0 >= _size))
15821582 then true
15831583 else (0 > _minQuoteAssetAmount))
15841584 then throw("Invalid closePosition parameters")
15851585 else {
1586- let $t06578965929 = getPosition(_trader)
1587- let oldPositionSize = $t06578965929._1
1588- let oldPositionMargin = $t06578965929._2
1589- let oldPositionOpenNotional = $t06578965929._3
1590- let oldPositionLstUpdCPF = $t06578965929._4
1591- let $t06593570372 = if ((abs(oldPositionSize) > _size))
1586+ let $t06578265922 = getPosition(_trader)
1587+ let oldPositionSize = $t06578265922._1
1588+ let oldPositionMargin = $t06578265922._2
1589+ let oldPositionOpenNotional = $t06578265922._3
1590+ let oldPositionLstUpdCPF = $t06578265922._4
1591+ let $t06592870365 = if ((abs(oldPositionSize) > _size))
15921592 then {
15931593 let _direction = if ((oldPositionSize > 0))
15941594 then DIR_SHORT
15951595 else DIR_LONG
15961596 let isAdd = (_direction == DIR_LONG)
1597- let $t06652666748 = swapOutput((oldPositionSize > 0), _size, true)
1598- let exchangedQuoteAssetAmount = $t06652666748._1
1599- let quoteAssetReserveAfter = $t06652666748._2
1600- let baseAssetReserveAfter = $t06652666748._3
1601- let totalPositionSizeAfter = $t06652666748._4
1597+ let $t06651966741 = swapOutput((oldPositionSize > 0), _size, true)
1598+ let exchangedQuoteAssetAmount = $t06651966741._1
1599+ let quoteAssetReserveAfter = $t06651966741._2
1600+ let baseAssetReserveAfter = $t06651966741._3
1601+ let totalPositionSizeAfter = $t06651966741._4
16021602 let exchangedPositionSize = if ((oldPositionSize > 0))
16031603 then -(_size)
16041604 else _size
1605- let $t06683966993 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1606- let oldPositionNotional = $t06683966993._1
1607- let unrealizedPnl = $t06683966993._2
1605+ let $t06683266986 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1606+ let oldPositionNotional = $t06683266986._1
1607+ let unrealizedPnl = $t06683266986._2
16081608 let mr = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
16091609 let realizedRatio = divd(abs(exchangedPositionSize), abs(oldPositionSize))
16101610 let realizedPnl = muld(unrealizedPnl, realizedRatio)
1611- let $t06727267510 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1612- let remainMargin = $t06727267510._1
1613- let positionBadDebt = $t06727267510._2
1614- let fundingPayment = $t06727267510._3
1611+ let $t06726567503 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1612+ let remainMargin = $t06726567503._1
1613+ let positionBadDebt = $t06726567503._2
1614+ let fundingPayment = $t06726567503._3
16151615 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
16161616 let remainOpenNotional = if ((oldPositionSize > 0))
16171617 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
16181618 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
16191619 let newPositionOpenNotional = abs(remainOpenNotional)
16201620 let newPositionMargin = muld(newPositionOpenNotional, mr)
16211621 let newPositionSize = (oldPositionSize + exchangedPositionSize)
16221622 let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
16231623 let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount)
16241624 if (if ((_minQuoteAssetAmount != 0))
16251625 then (_minQuoteAssetAmount > exchangedQuoteAssetAmount)
16261626 else false)
16271627 then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount)))
16281628 else $Tuple15(newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, positionBadDebt, realizedPnl, (abs((remainMargin - newPositionMargin)) + realizedPnl), quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, (totalLongPositionSize() - (if ((newPositionSize > 0))
16291629 then abs(exchangedPositionSize)
16301630 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
16311631 then abs(exchangedPositionSize)
16321632 else 0)), (openInterestLong() - (if ((newPositionSize > 0))
16331633 then exchangedQuoteAssetAmount
16341634 else 0)), (openInterestShort() - (if ((0 > newPositionSize))
16351635 then exchangedQuoteAssetAmount
16361636 else 0)))
16371637 }
16381638 else if ((_size > abs(oldPositionSize)))
16391639 then throw("Invalid closePosition parameters")
16401640 else {
1641- let $t06931369732 = internalClosePosition(_trader, true)
1642- let exchangedQuoteAssetAmount = $t06931369732._1
1643- let positionBadDebt = $t06931369732._2
1644- let realizedPnl = $t06931369732._3
1645- let marginToVault = $t06931369732._4
1646- let quoteAssetReserveAfter = $t06931369732._5
1647- let baseAssetReserveAfter = $t06931369732._6
1648- let totalPositionSizeAfter = $t06931369732._7
1649- let openInterestNotionalAfter = $t06931369732._8
1650- let x2 = $t06931369732._9
1651- let totalLongAfter = $t06931369732._10
1652- let totalShortAfter = $t06931369732._11
1653- let totalLongOpenInterestAfter = $t06931369732._12
1654- let totalShortOpenInterestAfter = $t06931369732._13
1641+ let $t06930669725 = internalClosePosition(_trader, true)
1642+ let exchangedQuoteAssetAmount = $t06930669725._1
1643+ let positionBadDebt = $t06930669725._2
1644+ let realizedPnl = $t06930669725._3
1645+ let marginToVault = $t06930669725._4
1646+ let quoteAssetReserveAfter = $t06930669725._5
1647+ let baseAssetReserveAfter = $t06930669725._6
1648+ let totalPositionSizeAfter = $t06930669725._7
1649+ let openInterestNotionalAfter = $t06930669725._8
1650+ let x2 = $t06930669725._9
1651+ let totalLongAfter = $t06930669725._10
1652+ let totalShortAfter = $t06930669725._11
1653+ let totalLongOpenInterestAfter = $t06930669725._12
1654+ let totalShortOpenInterestAfter = $t06930669725._13
16551655 if (if ((_minQuoteAssetAmount != 0))
16561656 then (_minQuoteAssetAmount > exchangedQuoteAssetAmount)
16571657 else false)
16581658 then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount)))
16591659 else $Tuple15(0, 0, 0, 0, positionBadDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)
16601660 }
1661- let newPositionSize = $t06593570372._1
1662- let newPositionMargin = $t06593570372._2
1663- let newPositionOpenNotional = $t06593570372._3
1664- let newPositionLstUpdCPF = $t06593570372._4
1665- let positionBadDebt = $t06593570372._5
1666- let realizedPnl = $t06593570372._6
1667- let marginToVault = $t06593570372._7
1668- let quoteAssetReserveAfter = $t06593570372._8
1669- let baseAssetReserveAfter = $t06593570372._9
1670- let totalPositionSizeAfter = $t06593570372._10
1671- let openInterestNotionalAfter = $t06593570372._11
1672- let totalLongAfter = $t06593570372._12
1673- let totalShortAfter = $t06593570372._13
1674- let totalLongOpenInterestAfter = $t06593570372._14
1675- let totalShortOpenInterestAfter = $t06593570372._15
1661+ let newPositionSize = $t06592870365._1
1662+ let newPositionMargin = $t06592870365._2
1663+ let newPositionOpenNotional = $t06592870365._3
1664+ let newPositionLstUpdCPF = $t06592870365._4
1665+ let positionBadDebt = $t06592870365._5
1666+ let realizedPnl = $t06592870365._6
1667+ let marginToVault = $t06592870365._7
1668+ let quoteAssetReserveAfter = $t06592870365._8
1669+ let baseAssetReserveAfter = $t06592870365._9
1670+ let totalPositionSizeAfter = $t06592870365._10
1671+ let openInterestNotionalAfter = $t06592870365._11
1672+ let totalLongAfter = $t06592870365._12
1673+ let totalShortAfter = $t06592870365._13
1674+ let totalLongOpenInterestAfter = $t06592870365._14
1675+ let totalShortOpenInterestAfter = $t06592870365._15
16761676 if ((positionBadDebt > 0))
16771677 then throw("Unable to close position with bad debt")
16781678 else {
16791679 let withdrawAmount = abs(marginToVault)
16801680 let ammBalance = (cbalance() - withdrawAmount)
1681- let $t07058170788 = if ((0 > ammBalance))
1681+ let $t07057470781 = if ((0 > ammBalance))
16821682 then $Tuple2(0, abs(ammBalance))
16831683 else $Tuple2(ammBalance, 0)
1684- let ammNewBalance = $t07058170788._1
1685- let x11 = $t07058170788._2
1686- let $t07079570849 = getBorrowedByTrader(_trader)
1687- let borrowed = $t07079570849._1
1688- let assetId = $t07079570849._2
1689- let $t07086471723 = if ((borrowed > 0))
1684+ let ammNewBalance = $t07057470781._1
1685+ let x11 = $t07057470781._2
1686+ let $t07078870842 = getBorrowedByTrader(_trader)
1687+ let borrowed = $t07078870842._1
1688+ let assetId = $t07078870842._2
1689+ let $t07085771716 = if ((borrowed > 0))
16901690 then if ((withdrawAmount >= borrowed))
16911691 then {
16921692 let doRepay = invoke(collateralAddress(), "repay", [_trader, borrowed, assetId], nil)
16931693 if ((doRepay == doRepay))
16941694 then $Tuple2([ScriptTransfer(_traderAddress, borrowed, fromBase58String(assetId))], (withdrawAmount - borrowed))
16951695 else throw("Strict value is not equal to itself.")
16961696 }
16971697 else {
16981698 let realizeAndClose = invoke(collateralAddress(), "realizePartiallyAndClose", [_trader, withdrawAmount, assetId], nil)
16991699 if ((realizeAndClose == realizeAndClose))
17001700 then $Tuple2([ScriptTransfer(_traderAddress, withdrawAmount, fromBase58String(assetId))], 0)
17011701 else throw("Strict value is not equal to itself.")
17021702 }
17031703 else $Tuple2(nil, withdrawAmount)
1704- if (($t07086471723 == $t07086471723))
1704+ if (($t07085771716 == $t07085771716))
17051705 then {
1706- let quoteWithdrawAmount = $t07086471723._2
1707- let sendCollateralAction = $t07086471723._1
1706+ let quoteWithdrawAmount = $t07085771716._2
1707+ let sendCollateralAction = $t07085771716._1
17081708 let unstake = if ((quoteWithdrawAmount > 0))
17091709 then {
17101710 let unstake = invoke(vaultAddress(), "withdrawLocked", [quoteWithdrawAmount], nil)
17111711 if ((unstake == unstake))
17121712 then nil
17131713 else throw("Strict value is not equal to itself.")
17141714 }
17151715 else nil
17161716 if ((unstake == unstake))
17171717 then {
17181718 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil)
17191719 if ((notifyNotional == notifyNotional))
17201720 then (((((if ((newPositionSize == 0))
17211721 then deletePosition(_trader)
17221722 else updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ (if ((quoteWithdrawAmount > 0))
17231723 then withdraw(_traderAddress, quoteWithdrawAmount)
17241724 else nil)) ++ updateBalance(ammNewBalance)) ++ sendCollateralAction)
17251725 else throw("Strict value is not equal to itself.")
17261726 }
17271727 else throw("Strict value is not equal to itself.")
17281728 }
17291729 else throw("Strict value is not equal to itself.")
17301730 }
17311731 }
17321732 }
17331733 else throw("Strict value is not equal to itself.")
17341734 }
17351735
17361736
17371737
17381738 @Callable(i)
17391739 func liquidate (_trader) = {
17401740 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
17411741 if ((sync == sync))
17421742 then {
17431743 let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
17441744 let marginRatio = if (isOverFluctuationLimit())
17451745 then {
17461746 let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE)
17471747 vmax(spotMarginRatio, oracleMarginRatio)
17481748 }
17491749 else spotMarginRatio
17501750 if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false)))
17511751 then true
17521752 else !(requireOpenPosition(_trader)))
17531753 then true
17541754 else !(initialized()))
17551755 then true
17561756 else paused())
17571757 then throw("Unable to liquidate")
17581758 else if (if (if ((spotMarginRatio > liquidationFeeRatio()))
17591759 then (partialLiquidationRatio() > 0)
17601760 else false)
17611761 then (DECIMAL_UNIT > partialLiquidationRatio())
17621762 else false)
17631763 then {
1764- let $t07402074170 = getPosition(_trader)
1765- let oldPositionSize = $t07402074170._1
1766- let oldPositionMargin = $t07402074170._2
1767- let oldPositionOpenNotional = $t07402074170._3
1768- let oldPositionLstUpdCPF = $t07402074170._4
1764+ let $t07401374163 = getPosition(_trader)
1765+ let oldPositionSize = $t07401374163._1
1766+ let oldPositionMargin = $t07401374163._2
1767+ let oldPositionOpenNotional = $t07401374163._3
1768+ let oldPositionLstUpdCPF = $t07401374163._4
17691769 let _direction = if ((oldPositionSize > 0))
17701770 then DIR_SHORT
17711771 else DIR_LONG
17721772 let isAdd = (_direction == DIR_LONG)
17731773 let exchangedQuoteAssetAmount = getPartialLiquidationAmount(_trader, oldPositionSize)
1774- let $t07439574499 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1775- let oldPositionNotional = $t07439574499._1
1776- let unrealizedPnl = $t07439574499._2
1777- let $t07450774694 = swapInput(isAdd, exchangedQuoteAssetAmount)
1778- let exchangedPositionSize = $t07450774694._1
1779- let quoteAssetReserveAfter = $t07450774694._2
1780- let baseAssetReserveAfter = $t07450774694._3
1781- let totalPositionSizeAfter = $t07450774694._4
1774+ let $t07438874492 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1775+ let oldPositionNotional = $t07438874492._1
1776+ let unrealizedPnl = $t07438874492._2
1777+ let $t07450074687 = swapInput(isAdd, exchangedQuoteAssetAmount)
1778+ let exchangedPositionSize = $t07450074687._1
1779+ let quoteAssetReserveAfter = $t07450074687._2
1780+ let baseAssetReserveAfter = $t07450074687._3
1781+ let totalPositionSizeAfter = $t07450074687._4
17821782 let liquidationRatio = divd(abs(exchangedPositionSize), abs(oldPositionSize))
17831783 let realizedPnl = muld(unrealizedPnl, liquidationRatio)
1784- let $t07498375216 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1785- let remainMargin = $t07498375216._1
1786- let badDebt = $t07498375216._2
1787- let fundingPayment = $t07498375216._3
1784+ let $t07497675209 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
1785+ let remainMargin = $t07497675209._1
1786+ let badDebt = $t07497675209._2
1787+ let fundingPayment = $t07497675209._3
17881788 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
17891789 let remainOpenNotional = if ((oldPositionSize > 0))
17901790 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
17911791 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
17921792 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
17931793 let feeToLiquidator = (liquidationPenalty / 2)
17941794 let feeToVault = (liquidationPenalty - feeToLiquidator)
17951795 let newPositionMargin = (remainMargin - liquidationPenalty)
17961796 let newPositionSize = (oldPositionSize + exchangedPositionSize)
17971797 let newPositionOpenNotional = abs(remainOpenNotional)
17981798 let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize)
17991799 let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount)
18001800 let ammBalance = (cbalance() - liquidationPenalty)
1801- let $t07638576514 = if ((0 > ammBalance))
1801+ let $t07637876507 = if ((0 > ammBalance))
18021802 then $Tuple2(0, abs(ammBalance))
18031803 else $Tuple2(ammBalance, 0)
1804- let newAmmBalance = $t07638576514._1
1805- let x11 = $t07638576514._2
1806- let $t07652276576 = getBorrowedByTrader(_trader)
1807- let borrowed = $t07652276576._1
1808- let assetId = $t07652276576._2
1804+ let newAmmBalance = $t07637876507._1
1805+ let x11 = $t07637876507._2
1806+ let $t07651576569 = getBorrowedByTrader(_trader)
1807+ let borrowed = $t07651576569._1
1808+ let assetId = $t07651576569._2
18091809 let doLiquidateCollateral = if ((borrowed > 0))
18101810 then {
18111811 let collateralToSell = muld(borrowed, liquidationRatio)
18121812 let realizeAndClose = invoke(collateralAddress(), "realizePartially", [_trader, assetId, collateralToSell], nil)
18131813 if ((realizeAndClose == realizeAndClose))
18141814 then nil
18151815 else throw("Strict value is not equal to itself.")
18161816 }
18171817 else nil
18181818 if ((doLiquidateCollateral == doLiquidateCollateral))
18191819 then {
18201820 let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil)
18211821 if ((unstake == unstake))
18221822 then {
18231823 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
18241824 if ((depositInsurance == depositInsurance))
18251825 then {
18261826 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
18271827 if ((notifyNotional == notifyNotional))
18281828 then (((updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, (totalLongPositionSize() - (if ((newPositionSize > 0))
18291829 then abs(exchangedPositionSize)
18301830 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
18311831 then abs(exchangedPositionSize)
18321832 else 0)), (openInterestLong() - (if ((newPositionSize > 0))
18331833 then exchangedQuoteAssetAmount
18341834 else 0)), (openInterestShort() - (if ((0 > newPositionSize))
18351835 then exchangedQuoteAssetAmount
18361836 else 0)))) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
18371837 else throw("Strict value is not equal to itself.")
18381838 }
18391839 else throw("Strict value is not equal to itself.")
18401840 }
18411841 else throw("Strict value is not equal to itself.")
18421842 }
18431843 else throw("Strict value is not equal to itself.")
18441844 }
18451845 else {
1846- let $t07827178766 = internalClosePosition(_trader, false)
1847- let x1 = $t07827178766._1
1848- let badDebt = $t07827178766._2
1849- let x2 = $t07827178766._3
1850- let x3 = $t07827178766._4
1851- let quoteAssetReserveAfter = $t07827178766._5
1852- let baseAssetReserveAfter = $t07827178766._6
1853- let totalPositionSizeAfter = $t07827178766._7
1854- let openInterestNotionalAfter = $t07827178766._8
1855- let exchangedQuoteAssetAmount = $t07827178766._9
1856- let totalLongAfter = $t07827178766._10
1857- let totalShortAfter = $t07827178766._11
1858- let totalLongOpenInterestAfter = $t07827178766._12
1859- let totalShortOpenInterestAfter = $t07827178766._13
1846+ let $t07826478759 = internalClosePosition(_trader, false)
1847+ let x1 = $t07826478759._1
1848+ let badDebt = $t07826478759._2
1849+ let x2 = $t07826478759._3
1850+ let x3 = $t07826478759._4
1851+ let quoteAssetReserveAfter = $t07826478759._5
1852+ let baseAssetReserveAfter = $t07826478759._6
1853+ let totalPositionSizeAfter = $t07826478759._7
1854+ let openInterestNotionalAfter = $t07826478759._8
1855+ let exchangedQuoteAssetAmount = $t07826478759._9
1856+ let totalLongAfter = $t07826478759._10
1857+ let totalShortAfter = $t07826478759._11
1858+ let totalLongOpenInterestAfter = $t07826478759._12
1859+ let totalShortOpenInterestAfter = $t07826478759._13
18601860 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
18611861 let feeToLiquidator = (liquidationPenalty / 2)
18621862 let feeToVault = (liquidationPenalty - feeToLiquidator)
18631863 let ammBalance = (cbalance() - liquidationPenalty)
1864- let $t07917479303 = if ((0 > ammBalance))
1864+ let $t07916779296 = if ((0 > ammBalance))
18651865 then $Tuple2(0, abs(ammBalance))
18661866 else $Tuple2(ammBalance, 0)
1867- let newAmmBalance = $t07917479303._1
1868- let x11 = $t07917479303._2
1869- let $t07931179365 = getBorrowedByTrader(_trader)
1870- let borrowed = $t07931179365._1
1871- let assetId = $t07931179365._2
1867+ let newAmmBalance = $t07916779296._1
1868+ let x11 = $t07916779296._2
1869+ let $t07930479358 = getBorrowedByTrader(_trader)
1870+ let borrowed = $t07930479358._1
1871+ let assetId = $t07930479358._2
18721872 let doLiquidateCollateral = if ((borrowed > 0))
18731873 then {
18741874 let realizeAndClose = invoke(collateralAddress(), "realizePartiallyAndClose", [_trader, 0, assetId], nil)
18751875 if ((realizeAndClose == realizeAndClose))
18761876 then nil
18771877 else throw("Strict value is not equal to itself.")
18781878 }
18791879 else nil
18801880 if ((doLiquidateCollateral == doLiquidateCollateral))
18811881 then {
18821882 let x = if ((badDebt > 0))
18831883 then {
18841884 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [badDebt], nil)
18851885 if ((lockBadDebt == lockBadDebt))
18861886 then nil
18871887 else throw("Strict value is not equal to itself.")
18881888 }
18891889 else nil
18901890 if ((x == x))
18911891 then {
18921892 let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil)
18931893 if ((unstake == unstake))
18941894 then {
18951895 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
18961896 if ((depositInsurance == depositInsurance))
18971897 then {
18981898 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil)
18991899 if ((notifyNotional == notifyNotional))
19001900 then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
19011901 else throw("Strict value is not equal to itself.")
19021902 }
19031903 else throw("Strict value is not equal to itself.")
19041904 }
19051905 else throw("Strict value is not equal to itself.")
19061906 }
19071907 else throw("Strict value is not equal to itself.")
19081908 }
19091909 else throw("Strict value is not equal to itself.")
19101910 }
19111911 }
19121912 else throw("Strict value is not equal to itself.")
19131913 }
19141914
19151915
19161916
19171917 @Callable(i)
19181918 func payFunding () = {
19191919 let fundingBlockTimestamp = nextFundingBlockTimestamp()
19201920 if (if (if ((fundingBlockTimestamp > lastBlock.timestamp))
19211921 then true
19221922 else !(initialized()))
19231923 then true
19241924 else paused())
19251925 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
19261926 else {
19271927 let underlyingPrice = getOracleTwapPrice()
1928- let $t08117281234 = getFunding()
1929- let shortPremiumFraction = $t08117281234._1
1930- let longPremiumFraction = $t08117281234._2
1928+ let $t08116581227 = getFunding()
1929+ let shortPremiumFraction = $t08116581227._1
1930+ let longPremiumFraction = $t08116581227._2
19311931 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
19321932 }
19331933 }
19341934
19351935
19361936
19371937 @Callable(i)
19381938 func syncTerminalPriceToOracle () = {
1939- let $t08161681737 = getSyncTerminalPrice(getOracleTwapPrice())
1940- let newQuoteAssetWeight = $t08161681737._1
1941- let newBaseAssetWeight = $t08161681737._2
1942- let marginToVault = $t08161681737._3
1939+ let $t08160981730 = getSyncTerminalPrice(getOracleTwapPrice())
1940+ let newQuoteAssetWeight = $t08160981730._1
1941+ let newBaseAssetWeight = $t08160981730._2
1942+ let marginToVault = $t08160981730._3
19431943 let doExchangePnL = if ((marginToVault != 0))
19441944 then {
19451945 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
19461946 if ((doExchangePnL == doExchangePnL))
19471947 then nil
19481948 else throw("Strict value is not equal to itself.")
19491949 }
19501950 else nil
19511951 if ((doExchangePnL == doExchangePnL))
19521952 then updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight)
19531953 else throw("Strict value is not equal to itself.")
19541954 }
19551955
19561956
19571957
19581958 @Callable(i)
19591959 func view_calcRemainMarginWithFundingPayment (_trader) = {
19601960 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
19611961 if ((sync == sync))
19621962 then {
1963- let $t08221382314 = getPosition(_trader)
1964- let positionSize = $t08221382314._1
1965- let positionMargin = $t08221382314._2
1966- let pon = $t08221382314._3
1967- let positionLstUpdCPF = $t08221382314._4
1968- let $t08231782418 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1969- let positionNotional = $t08231782418._1
1970- let unrealizedPnl = $t08231782418._2
1971- let $t08242182593 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1972- let remainMargin = $t08242182593._1
1973- let badDebt = $t08242182593._2
1974- let fundingPayment = $t08242182593._3
1963+ let $t08220682307 = getPosition(_trader)
1964+ let positionSize = $t08220682307._1
1965+ let positionMargin = $t08220682307._2
1966+ let pon = $t08220682307._3
1967+ let positionLstUpdCPF = $t08220682307._4
1968+ let $t08231082411 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
1969+ let positionNotional = $t08231082411._1
1970+ let unrealizedPnl = $t08231082411._2
1971+ let $t08241482586 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
1972+ let remainMargin = $t08241482586._1
1973+ let badDebt = $t08241482586._2
1974+ let fundingPayment = $t08241482586._3
19751975 throw((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)))
19761976 }
19771977 else throw("Strict value is not equal to itself.")
19781978 }
19791979
19801980
19811981
19821982 @Callable(i)
19831983 func view_getPegAdjustCost (_price) = {
19841984 let result = getSyncTerminalPrice(_price)
19851985 throw(toString(result._3))
19861986 }
19871987
19881988
19891989
19901990 @Callable(i)
19911991 func view_getTerminalAmmPrice () = {
1992- let $t08294083021 = getTerminalAmmState()
1993- let terminalQuoteAssetReserve = $t08294083021._1
1994- let terminalBaseAssetReserve = $t08294083021._2
1992+ let $t08293383014 = getTerminalAmmState()
1993+ let terminalQuoteAssetReserve = $t08293383014._1
1994+ let terminalBaseAssetReserve = $t08293383014._2
19951995 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
19961996 throw(toString(price))
19971997 }
19981998
19991999
20002000
20012001 @Callable(i)
20022002 func view_getFunding () = {
20032003 let underlyingPrice = getOracleTwapPrice()
2004- let $t08324083302 = getFunding()
2005- let shortPremiumFraction = $t08324083302._1
2006- let longPremiumFraction = $t08324083302._2
2004+ let $t08323383295 = getFunding()
2005+ let shortPremiumFraction = $t08323383295._1
2006+ let longPremiumFraction = $t08323383295._2
20072007 let longFunding = divd(longPremiumFraction, underlyingPrice)
20082008 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
20092009 throw((((s(longFunding) + s(shortFunding)) + s(getTwapSpotPrice())) + s(getOracleTwapPrice())))
20102010 }
20112011
20122012
20132013
20142014 @Callable(i)
20152015 func view_getBorrowedByTrader (_trader) = {
2016- let $t08359283646 = getBorrowedByTrader(_trader)
2017- let borrowed = $t08359283646._1
2018- let assetId = $t08359283646._2
2016+ let $t08358583639 = getBorrowedByTrader(_trader)
2017+ let borrowed = $t08358583639._1
2018+ let assetId = $t08358583639._2
20192019 throw((s(borrowed) + assetId))
20202020 }
20212021
20222022
20232023
20242024 @Callable(i)
20252025 func computeSpotPrice () = {
20262026 let result = getSpotPrice()
20272027 $Tuple2(nil, result)
20282028 }
20292029
20302030
20312031
20322032 @Callable(i)
20332033 func computeFeeForTraderWithArtifact (_trader,_artifactId) = {
20342034 let result = getForTraderWithArtifact(_trader, _artifactId)
20352035 $Tuple2(nil, result)
20362036 }
20372037
20382038
20392039 @Verifier(tx)
20402040 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
20412041

github/deemru/w8io/169f3d6 
422.88 ms