tx · 8CHnxYWxaY5eP1gcWx3ihRBMQRviscQmKddJyArYeMBe

3MuzRcW6fRnqCC76KgKznZP68qsWB1J6shn:  -0.07500000 Waves

2023.05.19 18:36 [2585036] smart account 3MuzRcW6fRnqCC76KgKznZP68qsWB1J6shn > SELF 0.00000000 Waves

{ "type": 13, "id": "8CHnxYWxaY5eP1gcWx3ihRBMQRviscQmKddJyArYeMBe", "fee": 7500000, "feeAssetId": null, "timestamp": 1684510591326, "version": 2, "chainId": 84, "sender": "3MuzRcW6fRnqCC76KgKznZP68qsWB1J6shn", "senderPublicKey": "EjNbd48ENcnJ4wjBkASdYJHavM8QHrAbFDbJ46ffyUcU", "proofs": [ "55nRPx8vWh6NKv9CRa519EDvBsudfqjVSUKkEcULpNMj8wzAm4atpMEEa3murnGy5NrLh7GYbpENKg8zFhNJP5QU" ], "script": "base64:BgKOAQgCEgASABIAEgASAwoBARIRCg8BAQEBAQEBAQEBAQEBAQESFgoUAQEBAQEBAQgICAEBAQEBAQEBAQESBwoFAQEBCAgSBAoCAQgSBQoDAQEIEgcKBQEBAQQIEgUKAwgBCBIDCgEIEgMKAQgSABIAEgMKAQgSBQoDCAEIEgMKAQESABIDCgEIEgASBAoCCAizAQAMa19iYXNlT3JhY2xlAgxrX2Jhc2VPcmFjbGUADWtfcXVvdGVPcmFjbGUCDWtfcXVvdGVPcmFjbGUACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgASa19wb3NpdGlvblNlcXVlbmNlAhJrX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kAQUFYWRtaW4JAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQkBBXZhbHVlAQUFYWRtaW4JAKwCAgkArAICCQCsAgICB3N0YXR1c18JAKUIAQUEdGhpcwIBXwkA2AQBCAUCdHgCaWQHCQACAQIudW5hYmxlIHRvIHZlcmlmeTogYWRtaW4gbm90IHNldCBpbiBjb29yZGluYXRvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQnYHyY=", "height": 2585036, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9jPyGpEfNY87b8iuvDQQQhBpHyTHjcazBTCpj9a5uWEo Next: CExEEsLT4vMQpsQ8DmDYHtY92sDSjbASkEJ7PL8cCwan Diff:
OldNewDifferences
800800 let underlyingPrice = getOraclePrice()
801801 let spotPrice = getSpotPrice()
802802 let premium = (spotPrice - underlyingPrice)
803- if (if (if ((totalShortPositionSize() == 0))
803+ if (if (isMarketClosed())
804804 then true
805- else (totalLongPositionSize() == 0))
806- then true
807- else isMarketClosed())
805+ else if ((fundingMode() == FUNDING_ASYMMETRIC))
806+ then if ((totalShortPositionSize() == 0))
807+ then true
808+ else (totalLongPositionSize() == 0)
809+ else false)
808810 then $Tuple3(0, 0, 0)
809811 else if ((0 > premium))
810812 then {
841843 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
842844 let baseFeeRaw = fee()
843845 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
844- let $t04210542600 = if ((_artifactId != ""))
846+ let $t04219442689 = if ((_artifactId != ""))
845847 then {
846848 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
847849 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
853855 else throw("Invalid attached artifact")
854856 }
855857 else $Tuple2(baseFee, false)
856- let adjustedFee = $t04210542600._1
857- let burnArtifact = $t04210542600._2
858+ let adjustedFee = $t04219442689._1
859+ let burnArtifact = $t04219442689._2
858860 $Tuple2(adjustedFee, burnArtifact)
859861 }
860862
869871 case _ =>
870872 throw("Invalid computeFeeDiscount result")
871873 }
872- let $t04294643020 = getAdjustedFee(_artifactId, feeDiscount)
873- let adjustedFee = $t04294643020._1
874- let burnArtifact = $t04294643020._2
874+ let $t04303543109 = getAdjustedFee(_artifactId, feeDiscount)
875+ let adjustedFee = $t04303543109._1
876+ let burnArtifact = $t04303543109._2
875877 $Tuple2(adjustedFee, burnArtifact)
876878 }
877879 else throw("Strict value is not equal to itself.")
10131015 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10141016 let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)
10151017 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
1016- let $t05145451605 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1017- let newQuoteAssetWeight = $t05145451605._1
1018- let newBaseAssetWeight = $t05145451605._2
1019- let marginToVault = $t05145451605._3
1018+ let $t05154351694 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1019+ let newQuoteAssetWeight = $t05154351694._1
1020+ let newBaseAssetWeight = $t05154351694._2
1021+ let marginToVault = $t05154351694._3
10201022 let doExchangePnL = if ((marginToVault != 0))
10211023 then {
10221024 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
11611163 else isMarketClosed())
11621164 then throw("Invalid increasePosition parameters")
11631165 else {
1164- let $t05798158130 = getForTraderWithArtifact(_trader, getArtifactId(i))
1165- let adjustedFee = $t05798158130._1
1166- let burnArtifact = $t05798158130._2
1166+ let $t05807058219 = getForTraderWithArtifact(_trader, getArtifactId(i))
1167+ let adjustedFee = $t05807058219._1
1168+ let burnArtifact = $t05807058219._2
11671169 let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT))
11681170 let distributeFeeAmount = (_rawAmount - _amount)
11691171 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
11761178 throw("Invalid referrerFee")
11771179 }
11781180 let feeAmount = (distributeFeeAmount - referrerFee)
1179- let $t05862658806 = getPosition(_trader, _direction)
1180- let oldPositionSize = $t05862658806._1
1181- let oldPositionMargin = $t05862658806._2
1182- let oldPositionOpenNotional = $t05862658806._3
1183- let oldPositionLstUpdCPF = $t05862658806._4
1184- let oldPositionTimestamp = $t05862658806._5
1181+ let $t05871558895 = getPosition(_trader, _direction)
1182+ let oldPositionSize = $t05871558895._1
1183+ let oldPositionMargin = $t05871558895._2
1184+ let oldPositionOpenNotional = $t05871558895._3
1185+ let oldPositionLstUpdCPF = $t05871558895._4
1186+ let oldPositionTimestamp = $t05871558895._5
11851187 let isNewPosition = (oldPositionSize == 0)
11861188 let isSameDirection = if ((oldPositionSize > 0))
11871189 then (_direction == DIR_LONG)
11901192 then isSameDirection
11911193 else false
11921194 let isAdd = (_direction == DIR_LONG)
1193- let $t05909562228 = if (if (isNewPosition)
1195+ let $t05918462317 = if (if (isNewPosition)
11941196 then true
11951197 else expandExisting)
11961198 then {
11971199 let openNotional = muld(_amount, _leverage)
1198- let $t05960459777 = swapInput(isAdd, openNotional)
1199- let amountBaseAssetBought = $t05960459777._1
1200- let quoteAssetReserveAfter = $t05960459777._2
1201- let baseAssetReserveAfter = $t05960459777._3
1202- let totalPositionSizeAfter = $t05960459777._4
1200+ let $t05969359866 = swapInput(isAdd, openNotional)
1201+ let amountBaseAssetBought = $t05969359866._1
1202+ let quoteAssetReserveAfter = $t05969359866._2
1203+ let baseAssetReserveAfter = $t05969359866._3
1204+ let totalPositionSizeAfter = $t05969359866._4
12031205 if (if ((_minBaseAssetAmount != 0))
12041206 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12051207 else false)
12121214 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12131215 then openNotional
12141216 else 0))
1215- let $t06032360598 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1216- let remainMargin = $t06032360598._1
1217- let x1 = $t06032360598._2
1218- let x2 = $t06032360598._3
1219- let rolloverFee = $t06032360598._4
1217+ let $t06041260687 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1218+ let remainMargin = $t06041260687._1
1219+ let x1 = $t06041260687._2
1220+ let x2 = $t06041260687._3
1221+ let rolloverFee = $t06041260687._4
12201222 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
12211223 then throw("Over max spread limit")
12221224 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
12301232 }
12311233 else {
12321234 let openNotional = muld(_amount, _leverage)
1233- let $t06191662044 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1234- let oldPositionNotional = $t06191662044._1
1235- let unrealizedPnl = $t06191662044._2
1235+ let $t06200562133 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1236+ let oldPositionNotional = $t06200562133._1
1237+ let unrealizedPnl = $t06200562133._2
12361238 if ((oldPositionNotional > openNotional))
12371239 then throw("Use decreasePosition to decrease position size")
12381240 else throw("Close position first")
12391241 }
1240- let newPositionSize = $t05909562228._1
1241- let newPositionRemainMargin = $t05909562228._2
1242- let newPositionOpenNotional = $t05909562228._3
1243- let newPositionLatestCPF = $t05909562228._4
1244- let newPositionTimestamp = $t05909562228._5
1245- let baseAssetReserveAfter = $t05909562228._6
1246- let quoteAssetReserveAfter = $t05909562228._7
1247- let totalPositionSizeAfter = $t05909562228._8
1248- let openInterestNotionalAfter = $t05909562228._9
1249- let totalLongAfter = $t05909562228._10
1250- let totalShortAfter = $t05909562228._11
1251- let totalLongOpenInterestAfter = $t05909562228._12
1252- let totalShortOpenInterestAfter = $t05909562228._13
1253- let rolloverFee = $t05909562228._14
1254- let $t06223462305 = distributeFee((feeAmount + rolloverFee))
1255- let feeToStakers = $t06223462305._1
1256- let feeToVault = $t06223462305._2
1242+ let newPositionSize = $t05918462317._1
1243+ let newPositionRemainMargin = $t05918462317._2
1244+ let newPositionOpenNotional = $t05918462317._3
1245+ let newPositionLatestCPF = $t05918462317._4
1246+ let newPositionTimestamp = $t05918462317._5
1247+ let baseAssetReserveAfter = $t05918462317._6
1248+ let quoteAssetReserveAfter = $t05918462317._7
1249+ let totalPositionSizeAfter = $t05918462317._8
1250+ let openInterestNotionalAfter = $t05918462317._9
1251+ let totalLongAfter = $t05918462317._10
1252+ let totalShortAfter = $t05918462317._11
1253+ let totalLongOpenInterestAfter = $t05918462317._12
1254+ let totalShortOpenInterestAfter = $t05918462317._13
1255+ let rolloverFee = $t05918462317._14
1256+ let $t06232362394 = distributeFee((feeAmount + rolloverFee))
1257+ let feeToStakers = $t06232362394._1
1258+ let feeToVault = $t06232362394._2
12571259 let stake = if ((_amount >= rolloverFee))
12581260 then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))])
12591261 else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil)
13151317 else isMarketClosed())
13161318 then throw("Invalid addMargin parameters")
13171319 else {
1318- let $t06464764827 = getPosition(_trader, _direction)
1319- let oldPositionSize = $t06464764827._1
1320- let oldPositionMargin = $t06464764827._2
1321- let oldPositionOpenNotional = $t06464764827._3
1322- let oldPositionLstUpdCPF = $t06464764827._4
1323- let oldPositionTimestamp = $t06464764827._5
1320+ let $t06473664916 = getPosition(_trader, _direction)
1321+ let oldPositionSize = $t06473664916._1
1322+ let oldPositionMargin = $t06473664916._2
1323+ let oldPositionOpenNotional = $t06473664916._3
1324+ let oldPositionLstUpdCPF = $t06473664916._4
1325+ let oldPositionTimestamp = $t06473664916._5
13241326 let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)])
13251327 if ((stake == stake))
13261328 then {
13271329 let rolloverFee = calcRolloverFee(oldPositionMargin, oldPositionTimestamp)
13281330 let doTransferFeeToStakers = if ((rolloverFee > 0))
13291331 then {
1330- let $t06511265171 = distributeFee(rolloverFee)
1331- let feeToStakers = $t06511265171._1
1332- let feeToVault = $t06511265171._2
1332+ let $t06520165260 = distributeFee(rolloverFee)
1333+ let feeToStakers = $t06520165260._1
1334+ let feeToVault = $t06520165260._2
13331335 let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil)
13341336 if ((unstake == unstake))
13351337 then {
13801382 else isMarketClosed())
13811383 then throw("Invalid removeMargin parameters")
13821384 else {
1383- let $t06667266852 = getPosition(_trader, _direction)
1384- let oldPositionSize = $t06667266852._1
1385- let oldPositionMargin = $t06667266852._2
1386- let oldPositionOpenNotional = $t06667266852._3
1387- let oldPositionLstUpdCPF = $t06667266852._4
1388- let oldPositionTimestamp = $t06667266852._5
1389- let $t06685867107 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1390- let remainMargin = $t06685867107._1
1391- let badDebt = $t06685867107._2
1392- let fundingPayment = $t06685867107._3
1393- let rolloverFee = $t06685867107._4
1385+ let $t06676166941 = getPosition(_trader, _direction)
1386+ let oldPositionSize = $t06676166941._1
1387+ let oldPositionMargin = $t06676166941._2
1388+ let oldPositionOpenNotional = $t06676166941._3
1389+ let oldPositionLstUpdCPF = $t06676166941._4
1390+ let oldPositionTimestamp = $t06676166941._5
1391+ let $t06694767196 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1392+ let remainMargin = $t06694767196._1
1393+ let badDebt = $t06694767196._2
1394+ let fundingPayment = $t06694767196._3
1395+ let rolloverFee = $t06694767196._4
13941396 if ((badDebt != 0))
13951397 then throw("Invalid removed margin amount")
13961398 else {
13981400 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
13991401 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
14001402 else {
1401- let $t06749367552 = distributeFee(rolloverFee)
1402- let feeToStakers = $t06749367552._1
1403- let feeToVault = $t06749367552._2
1403+ let $t06758267641 = distributeFee(rolloverFee)
1404+ let feeToStakers = $t06758267641._1
1405+ let feeToVault = $t06758267641._2
14041406 let doTransferFeeToStakers = if ((rolloverFee > 0))
14051407 then {
14061408 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
14581460 then throw("Invalid closePosition parameters")
14591461 else {
14601462 let oldPositionTimestamp = getPosition(_trader, _direction)._5
1461- let $t06988770490 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1462- let newPositionSize = $t06988770490._1
1463- let newPositionMargin = $t06988770490._2
1464- let newPositionOpenNotional = $t06988770490._3
1465- let newPositionLstUpdCPF = $t06988770490._4
1466- let positionBadDebt = $t06988770490._5
1467- let realizedPnl = $t06988770490._6
1468- let marginToTrader = $t06988770490._7
1469- let quoteAssetReserveAfter = $t06988770490._8
1470- let baseAssetReserveAfter = $t06988770490._9
1471- let totalPositionSizeAfter = $t06988770490._10
1472- let openInterestNotionalAfter = $t06988770490._11
1473- let totalLongAfter = $t06988770490._12
1474- let totalShortAfter = $t06988770490._13
1475- let totalLongOpenInterestAfter = $t06988770490._14
1476- let totalShortOpenInterestAfter = $t06988770490._15
1477- let realizedFee = $t06988770490._16
1463+ let $t06997670579 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1464+ let newPositionSize = $t06997670579._1
1465+ let newPositionMargin = $t06997670579._2
1466+ let newPositionOpenNotional = $t06997670579._3
1467+ let newPositionLstUpdCPF = $t06997670579._4
1468+ let positionBadDebt = $t06997670579._5
1469+ let realizedPnl = $t06997670579._6
1470+ let marginToTrader = $t06997670579._7
1471+ let quoteAssetReserveAfter = $t06997670579._8
1472+ let baseAssetReserveAfter = $t06997670579._9
1473+ let totalPositionSizeAfter = $t06997670579._10
1474+ let openInterestNotionalAfter = $t06997670579._11
1475+ let totalLongAfter = $t06997670579._12
1476+ let totalShortAfter = $t06997670579._13
1477+ let totalLongOpenInterestAfter = $t06997670579._14
1478+ let totalShortOpenInterestAfter = $t06997670579._15
1479+ let realizedFee = $t06997670579._16
14781480 if ((positionBadDebt > 0))
14791481 then throw("Invalid closePosition parameters: bad debt")
14801482 else if ((oldPositionTimestamp >= lastTimestamp()))
14981500 case _ =>
14991501 throw("Invalid referrerFee")
15001502 }
1501- let $t07146271535 = distributeFee((realizedFee - referrerFee))
1502- let feeToStakers = $t07146271535._1
1503- let feeToVault = $t07146271535._2
1503+ let $t07155171624 = distributeFee((realizedFee - referrerFee))
1504+ let feeToStakers = $t07155171624._1
1505+ let feeToVault = $t07155171624._2
15041506 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
15051507 if ((depositVault == depositVault))
15061508 then {
15681570 else false
15691571 let oldPositionSize = getPosition(_trader, _direction)._1
15701572 let positionSizeAbs = abs(oldPositionSize)
1571- let $t07412874451 = if (isPartialLiquidation)
1573+ let $t07421774540 = if (isPartialLiquidation)
15721574 then {
15731575 let liquidationSize = getPartialLiquidationAmount(_trader, oldPositionSize)
15741576 let liquidationRatio = divd(abs(liquidationSize), positionSizeAbs)
15751577 $Tuple2(liquidationRatio, abs(liquidationSize))
15761578 }
15771579 else $Tuple2(0, positionSizeAbs)
1578- let liquidationRatio = $t07412874451._1
1579- let liquidationSize = $t07412874451._2
1580- let $t07445775113 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
1580+ let liquidationRatio = $t07421774540._1
1581+ let liquidationSize = $t07421774540._2
1582+ let $t07454675202 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
15811583 then liquidationSize
15821584 else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true)
1583- let newPositionSize = $t07445775113._1
1584- let newPositionMargin = $t07445775113._2
1585- let newPositionOpenNotional = $t07445775113._3
1586- let newPositionLstUpdCPF = $t07445775113._4
1587- let positionBadDebt = $t07445775113._5
1588- let realizedPnl = $t07445775113._6
1589- let marginToTrader = $t07445775113._7
1590- let quoteAssetReserveAfter = $t07445775113._8
1591- let baseAssetReserveAfter = $t07445775113._9
1592- let totalPositionSizeAfter = $t07445775113._10
1593- let openInterestNotionalAfter = $t07445775113._11
1594- let totalLongAfter = $t07445775113._12
1595- let totalShortAfter = $t07445775113._13
1596- let totalLongOpenInterestAfter = $t07445775113._14
1597- let totalShortOpenInterestAfter = $t07445775113._15
1598- let liquidationPenalty = $t07445775113._16
1585+ let newPositionSize = $t07454675202._1
1586+ let newPositionMargin = $t07454675202._2
1587+ let newPositionOpenNotional = $t07454675202._3
1588+ let newPositionLstUpdCPF = $t07454675202._4
1589+ let positionBadDebt = $t07454675202._5
1590+ let realizedPnl = $t07454675202._6
1591+ let marginToTrader = $t07454675202._7
1592+ let quoteAssetReserveAfter = $t07454675202._8
1593+ let baseAssetReserveAfter = $t07454675202._9
1594+ let totalPositionSizeAfter = $t07454675202._10
1595+ let openInterestNotionalAfter = $t07454675202._11
1596+ let totalLongAfter = $t07454675202._12
1597+ let totalShortAfter = $t07454675202._13
1598+ let totalLongOpenInterestAfter = $t07454675202._14
1599+ let totalShortOpenInterestAfter = $t07454675202._15
1600+ let liquidationPenalty = $t07454675202._16
15991601 let feeToLiquidator = (liquidationPenalty / 2)
16001602 let feeToVault = (liquidationPenalty - feeToLiquidator)
16011603 let ammBalance = (cbalance() - liquidationPenalty)
16561658 then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp)))
16571659 else {
16581660 let underlyingPrice = getOraclePrice()
1659- let $t07733177409 = getFunding()
1660- let shortPremiumFraction = $t07733177409._1
1661- let longPremiumFraction = $t07733177409._2
1662- let premiumToVault = $t07733177409._3
1661+ let $t07742077498 = getFunding()
1662+ let shortPremiumFraction = $t07742077498._1
1663+ let longPremiumFraction = $t07742077498._2
1664+ let premiumToVault = $t07742077498._3
16631665 let doPayFundingToVault = if ((premiumToVault > 0))
16641666 then {
16651667 let doPayFundingToVault = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(premiumToVault)], nil)
17141716 func syncTerminalPriceToOracle () = {
17151717 let _qtAstR = qtAstR()
17161718 let _bsAstR = bsAstR()
1717- let $t07923279598 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1718- let newQuoteAssetWeight = $t07923279598._1
1719- let newBaseAssetWeight = $t07923279598._2
1720- let marginToVault = $t07923279598._3
1719+ let $t07932179687 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1720+ let newQuoteAssetWeight = $t07932179687._1
1721+ let newBaseAssetWeight = $t07932179687._2
1722+ let marginToVault = $t07932179687._3
17211723 let marginToVaultAdj = if (if ((0 > marginToVault))
17221724 then (abs(marginToVault) > cbalance())
17231725 else false)
17821784 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
17831785 if ((sync == sync))
17841786 then {
1785- let $t08339283528 = getPosition(_trader, _direction)
1786- let positionSize = $t08339283528._1
1787- let positionMargin = $t08339283528._2
1788- let pon = $t08339283528._3
1789- let positionLstUpdCPF = $t08339283528._4
1790- let positionTimestamp = $t08339283528._5
1791- let $t08353183644 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1792- let positionNotional = $t08353183644._1
1793- let unrealizedPnl = $t08353183644._2
1794- let $t08364783871 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1795- let remainMargin = $t08364783871._1
1796- let badDebt = $t08364783871._2
1797- let fundingPayment = $t08364783871._3
1798- let rolloverFee = $t08364783871._4
1787+ let $t08348183617 = getPosition(_trader, _direction)
1788+ let positionSize = $t08348183617._1
1789+ let positionMargin = $t08348183617._2
1790+ let pon = $t08348183617._3
1791+ let positionLstUpdCPF = $t08348183617._4
1792+ let positionTimestamp = $t08348183617._5
1793+ let $t08362083733 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1794+ let positionNotional = $t08362083733._1
1795+ let unrealizedPnl = $t08362083733._2
1796+ let $t08373683960 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1797+ let remainMargin = $t08373683960._1
1798+ let badDebt = $t08373683960._2
1799+ let fundingPayment = $t08373683960._3
1800+ let rolloverFee = $t08373683960._4
17991801 throw(((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader, _direction))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee)))
18001802 }
18011803 else throw("Strict value is not equal to itself.")
18171819
18181820 @Callable(i)
18191821 func view_getTerminalAmmPrice () = {
1820- let $t08460684687 = getTerminalAmmState()
1821- let terminalQuoteAssetReserve = $t08460684687._1
1822- let terminalBaseAssetReserve = $t08460684687._2
1822+ let $t08469584776 = getTerminalAmmState()
1823+ let terminalQuoteAssetReserve = $t08469584776._1
1824+ let terminalBaseAssetReserve = $t08469584776._2
18231825 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
18241826 throw(toString(price))
18251827 }
18351837 if ((sync == sync))
18361838 then {
18371839 let underlyingPrice = getOraclePrice()
1838- let $t08533985417 = getFunding()
1839- let shortPremiumFraction = $t08533985417._1
1840- let longPremiumFraction = $t08533985417._2
1841- let premiumToVault = $t08533985417._3
1840+ let $t08542885506 = getFunding()
1841+ let shortPremiumFraction = $t08542885506._1
1842+ let longPremiumFraction = $t08542885506._2
1843+ let premiumToVault = $t08542885506._3
18421844 let longFunding = divd(longPremiumFraction, underlyingPrice)
18431845 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
18441846 throw(((((s(longFunding) + s(shortFunding)) + s(getSpotPrice())) + s(getOraclePrice())) + s(premiumToVault)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let k_baseOracle = "k_baseOracle"
55
66 let k_quoteOracle = "k_quoteOracle"
77
88 let k_balance = "k_balance"
99
1010 let k_sequence = "k_sequence"
1111
1212 let k_positionSize = "k_positionSize"
1313
1414 let k_positionMargin = "k_positionMargin"
1515
1616 let k_positionOpenNotional = "k_positionOpenNotional"
1717
1818 let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction"
1919
2020 let k_positionSequence = "k_positionSequence"
2121
2222 let k_positionFee = "k_positionFee"
2323
2424 let k_positionLastUpdatedTimestamp = "k_positionTimestamp"
2525
2626 let k_initialized = "k_initialized"
2727
2828 let k_paused = "k_paused"
2929
3030 let k_closeOnly = "k_closeOnly"
3131
3232 let k_fee = "k_fee"
3333
3434 let k_rolloverFee = "k_rollover_fee"
3535
3636 let k_fundingPeriod = "k_fundingPeriod"
3737
3838 let k_initMarginRatio = "k_initMarginRatio"
3939
4040 let k_maintenanceMarginRatio = "k_mmr"
4141
4242 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
4343
4444 let k_partialLiquidationRatio = "k_partLiquidationRatio"
4545
4646 let k_spreadLimit = "k_spreadLimit"
4747
4848 let k_maxPriceImpact = "k_maxPriceImpact"
4949
5050 let k_maxPriceSpread = "k_maxPriceSpread"
5151
5252 let k_maxOpenNotional = "k_maxOpenNotional"
5353
5454 let k_feeToStakersPercent = "k_feeToStakersPercent"
5555
5656 let k_maxOracleDelay = "k_maxOracleDelay"
5757
5858 let k_fundingMode = "k_fundingMode"
5959
6060 let k_oracleMode = "k_oracleMode"
6161
6262 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
6363
6464 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
6565
6666 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
6767
6868 let k_longFundingRate = "k_longFundingRate"
6969
7070 let k_shortFundingRate = "k_shortFundingRate"
7171
7272 let k_quoteAssetReserve = "k_qtAstR"
7373
7474 let k_baseAssetReserve = "k_bsAstR"
7575
7676 let k_quoteAssetWeight = "k_qtAstW"
7777
7878 let k_baseAssetWeight = "k_bsAstW"
7979
8080 let k_totalPositionSize = "k_totalPositionSize"
8181
8282 let k_totalLongPositionSize = "k_totalLongPositionSize"
8383
8484 let k_totalShortPositionSize = "k_totalShortPositionSize"
8585
8686 let k_openInterestNotional = "k_openInterestNotional"
8787
8888 let k_openInterestShort = "k_openInterestShort"
8989
9090 let k_openInterestLong = "k_openInterestLong"
9191
9292 let k_lastTx = "k_lastTx"
9393
9494 let k_coordinatorAddress = "k_coordinatorAddress"
9595
9696 let k_vault_address = "k_vault_address"
9797
9898 let k_admin_address = "k_admin_address"
9999
100100 let k_quote_asset = "k_quote_asset"
101101
102102 let k_staking_address = "k_staking_address"
103103
104104 let k_miner_address = "k_miner_address"
105105
106106 let k_orders_address = "k_orders_address"
107107
108108 let k_referral_address = "k_referral_address"
109109
110110 let k_nft_manager_address = "k_nft_manager_address"
111111
112112 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
113113
114114
115115 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
116116
117117
118118 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
119119
120120
121121 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
122122
123123
124124 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set")
125125
126126
127127 func vaultAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_vault_address)), "Vault not set")
128128
129129
130130 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set")
131131
132132
133133 func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set")
134134
135135
136136 func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set")
137137
138138
139139 func nftManagerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_nft_manager_address)), "NFT Manager not set")
140140
141141
142142 let k_token_param = "k_token_param"
143143
144144 let k_token_type = "k_token_type"
145145
146146 let FEE_REDUCTION_TOKEN_TYPE = "fee_reduction"
147147
148148 let DIR_LONG = 1
149149
150150 let DIR_SHORT = 2
151151
152152 let SECONDS = 1000
153153
154154 let DECIMAL_NUMBERS = 6
155155
156156 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
157157
158158 let MINUTES_IN_YEAR = (525600 * DECIMAL_UNIT)
159159
160160 let ONE_DAY = (86400 * DECIMAL_UNIT)
161161
162162 let PNL_OPTION_SPOT = 1
163163
164164 let PNL_OPTION_ORACLE = 2
165165
166166 let FUNDING_ASYMMETRIC = 1
167167
168168 let FUNDING_SYMMETRIC = 2
169169
170170 let ORACLE_PLAIN = 1
171171
172172 let ORACLE_JIT = 2
173173
174174 func s (_x) = (toString(_x) + ",")
175175
176176
177177 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
178178
179179
180180 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
181181
182182
183183 func bdivd (_x,_y) = fraction(_x, toBigInt(DECIMAL_UNIT), _y, HALFEVEN)
184184
185185
186186 func bmuld (_x,_y) = fraction(_x, _y, toBigInt(DECIMAL_UNIT), HALFEVEN)
187187
188188
189189 func abs (_x) = if ((_x > 0))
190190 then _x
191191 else -(_x)
192192
193193
194194 func vmax (_x,_y) = if ((_x >= _y))
195195 then _x
196196 else _y
197197
198198
199199 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
200200
201201
202202 func intOr (k,def) = valueOrElse(getInteger(this, k), def)
203203
204204
205205 func strA (_address,_key) = {
206206 let val = valueOrErrorMessage(getString(_address, _key), ("No value for key " + _key))
207207 val
208208 }
209209
210210
211211 func intA (_address,_key) = {
212212 let val = valueOrErrorMessage(getInteger(_address, _key), ("No value for key " + _key))
213213 val
214214 }
215215
216216
217217 func cbalance () = int(k_balance)
218218
219219
220220 func fee () = int(k_fee)
221221
222222
223223 func rolloverFeeRate () = int(k_rolloverFee)
224224
225225
226226 func initMarginRatio () = int(k_initMarginRatio)
227227
228228
229229 func qtAstR () = int(k_quoteAssetReserve)
230230
231231
232232 func bsAstR () = int(k_baseAssetReserve)
233233
234234
235235 func qtAstW () = intOr(k_quoteAssetWeight, DECIMAL_UNIT)
236236
237237
238238 func bsAstW () = intOr(k_baseAssetWeight, DECIMAL_UNIT)
239239
240240
241241 func totalPositionSize () = int(k_totalPositionSize)
242242
243243
244244 func openInterestNotional () = int(k_openInterestNotional)
245245
246246
247247 func openInterestShort () = int(k_openInterestShort)
248248
249249
250250 func openInterestLong () = int(k_openInterestLong)
251251
252252
253253 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
254254
255255
256256 func fundingPeriodRaw () = int(k_fundingPeriod)
257257
258258
259259 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
260260
261261
262262 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
263263
264264
265265 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
266266
267267
268268 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
269269
270270
271271 func partialLiquidationRatio () = int(k_partialLiquidationRatio)
272272
273273
274274 func spreadLimit () = int(k_spreadLimit)
275275
276276
277277 func maxPriceImpact () = int(k_maxPriceImpact)
278278
279279
280280 func maxPriceSpread () = int(k_maxPriceSpread)
281281
282282
283283 func maxOpenNotional () = int(k_maxOpenNotional)
284284
285285
286286 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
287287
288288
289289 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
290290
291291
292292 func totalShortPositionSize () = int(k_totalShortPositionSize)
293293
294294
295295 func totalLongPositionSize () = int(k_totalLongPositionSize)
296296
297297
298298 func lastSequence () = intOr(k_sequence, 0)
299299
300300
301301 func feeToStakersPercent () = int(k_feeToStakersPercent)
302302
303303
304304 func maxOracleDelay () = int(k_maxOracleDelay)
305305
306306
307307 func fundingMode () = intOr(k_fundingMode, FUNDING_ASYMMETRIC)
308308
309309
310310 func oracleMode () = intOr(k_oracleMode, ORACLE_PLAIN)
311311
312312
313313 func lastTimestamp () = lastBlock.timestamp
314314
315315
316316 func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller))
317317
318318
319319 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
320320 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
321321 if (if (_largerThanOrEqualTo)
322322 then (0 > remainingMarginRatio)
323323 else false)
324324 then throw(((("Invalid margin: " + toString(_marginRatio)) + " < ") + toString(_baseMarginRatio)))
325325 else if (if (!(_largerThanOrEqualTo))
326326 then (remainingMarginRatio >= 0)
327327 else false)
328328 then throw(((("Invalid margin: " + toString(_marginRatio)) + " > ") + toString(_baseMarginRatio)))
329329 else true
330330 }
331331
332332
333333 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
334334 then throw("Should not be called with _positionSize == 0")
335335 else if ((_positionSize > 0))
336336 then latestLongCumulativePremiumFraction()
337337 else latestShortCumulativePremiumFraction()
338338
339339
340340 func getPosition (_trader,_direction) = {
341341 let positionKey = ((_trader + "_") + toString(_direction))
342342 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, positionKey))
343343 match positionSizeOpt {
344344 case positionSize: Int =>
345345 $Tuple5(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, positionKey)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, positionKey)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedTimestamp, positionKey)))
346346 case _ =>
347347 $Tuple5(0, 0, 0, 0, 0)
348348 }
349349 }
350350
351351
352352 func getDirection (_positionSize) = if ((0 > _positionSize))
353353 then DIR_SHORT
354354 else DIR_LONG
355355
356356
357357 func getPositionFee (_trader,_direction) = {
358358 let positionKey = ((_trader + "_") + toString(_direction))
359359 let positionFeeOpt = getInteger(this, toCompositeKey(k_positionFee, positionKey))
360360 match positionFeeOpt {
361361 case positionFee: Int =>
362362 positionFee
363363 case _ =>
364364 fee()
365365 }
366366 }
367367
368368
369369 func requireOpenPosition (_trader,_direction) = if ((getPosition(_trader, _direction)._1 == 0))
370370 then throw("No open position")
371371 else true
372372
373373
374374 func getOracleData (key) = {
375375 let oracleDataStr = getString(this, key)
376376 if (if (isDefined(oracleDataStr))
377377 then (value(oracleDataStr) != "")
378378 else false)
379379 then {
380380 let oracleData = split(value(oracleDataStr), ",")
381381 let oracleAddress = valueOrErrorMessage(addressFromString(oracleData[0]), ("Invalid oracle address in: " + value(oracleDataStr)))
382382 let priceKey = oracleData[1]
383383 let blockKey = oracleData[2]
384384 let openKey = oracleData[3]
385385 $Tuple4(oracleAddress, priceKey, blockKey, openKey)
386386 }
387387 else unit
388388 }
389389
390390
391391 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
392392
393393
394394 func paused () = valueOrElse(getBoolean(this, k_paused), false)
395395
396396
397397 func closeOnly () = valueOrElse(getBoolean(this, k_closeOnly), false)
398398
399399
400400 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
401401 then {
402402 let newBase = (bsAstR() - _baseAssetAmount)
403403 if ((0 >= newBase))
404404 then throw("Tx lead to base asset reserve <= 0, revert")
405405 else $Tuple3((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount))
406406 }
407407 else {
408408 let newQuote = (qtAstR() - _quoteAssetAmount)
409409 if ((0 >= newQuote))
410410 then throw("Tx lead to base quote reserve <= 0, revert")
411411 else $Tuple3(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount))
412412 }
413413
414414
415415 func calcInvariant (_qtAstR,_bsAstR) = {
416416 let bqtAstR = toBigInt(_qtAstR)
417417 let bbsAstR = toBigInt(_bsAstR)
418418 bmuld(bqtAstR, bbsAstR)
419419 }
420420
421421
422422 func swapInput (_isAdd,_quoteAssetAmount) = {
423423 let _qtAstR = qtAstR()
424424 let _bsAstR = bsAstR()
425425 let _qtAstW = qtAstW()
426426 let _bsAstW = bsAstW()
427427 let quoteAssetAmountAdjusted = divd(_quoteAssetAmount, _qtAstW)
428428 let k = calcInvariant(_qtAstR, _bsAstR)
429429 let quoteAssetReserveAfter = if (_isAdd)
430430 then (_qtAstR + quoteAssetAmountAdjusted)
431431 else (_qtAstR - quoteAssetAmountAdjusted)
432432 let baseAssetReserveAfter = toInt(bdivd(k, toBigInt(quoteAssetReserveAfter)))
433433 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
434434 let amountBaseAssetBought = if (_isAdd)
435435 then amountBaseAssetBoughtAbs
436436 else -(amountBaseAssetBoughtAbs)
437437 let $t01578615956 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs)
438438 let quoteAssetReserveAfter1 = $t01578615956._1
439439 let baseAssetReserveAfter1 = $t01578615956._2
440440 let totalPositionSizeAfter1 = $t01578615956._3
441441 let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
442442 let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs)
443443 let priceDiff = abs((priceBefore - marketPrice))
444444 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
445445 let maxPriceImpactValue = maxPriceImpact()
446446 if ((priceImpact > maxPriceImpactValue))
447447 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)))
448448 else $Tuple4(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1)
449449 }
450450
451451
452452 func calcRolloverFee (_oldPositionMargin,_oldPositionLastUpdatedTimestamp) = {
453453 let positionMinutes = ((((lastTimestamp() - _oldPositionLastUpdatedTimestamp) / 1000) / 60) * DECIMAL_UNIT)
454454 let rolloverFee = divd(muld(muld(_oldPositionMargin, positionMinutes), rolloverFeeRate()), MINUTES_IN_YEAR)
455455 rolloverFee
456456 }
457457
458458
459459 func calcRemainMarginWithFundingPaymentAndRolloverFee (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_oldPositionLastUpdatedTimestamp,_marginDelta) = {
460460 let fundingPayment = if ((_oldPositionSize != 0))
461461 then {
462462 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
463463 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
464464 }
465465 else 0
466466 let rolloverFee = calcRolloverFee(_oldPositionMargin, _oldPositionLastUpdatedTimestamp)
467467 let signedMargin = (((_marginDelta - rolloverFee) - fundingPayment) + _oldPositionMargin)
468468 let $t01862318750 = if ((0 > signedMargin))
469469 then $Tuple2(0, abs(signedMargin))
470470 else $Tuple2(abs(signedMargin), 0)
471471 let remainMargin = $t01862318750._1
472472 let badDebt = $t01862318750._2
473473 $Tuple4(remainMargin, badDebt, fundingPayment, rolloverFee)
474474 }
475475
476476
477477 func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
478478 let priceBefore = divd(muld(_quoteAssetReserve, _quoteAssetWeight), muld(_baseAssetReserve, _baseAssetWeight))
479479 if ((_baseAssetAmount == 0))
480480 then throw("Invalid base asset amount")
481481 else {
482482 let k = calcInvariant(_quoteAssetReserve, _baseAssetReserve)
483483 let baseAssetPoolAmountAfter = if (_isAdd)
484484 then (_baseAssetReserve + _baseAssetAmount)
485485 else (_baseAssetReserve - _baseAssetAmount)
486486 let quoteAssetAfter = toInt(bdivd(k, toBigInt(baseAssetPoolAmountAfter)))
487487 let quoteAssetDelta = abs((quoteAssetAfter - _quoteAssetReserve))
488488 let quoteAssetSold = muld(quoteAssetDelta, _quoteAssetWeight)
489489 let maxPriceImpactValue = maxPriceImpact()
490490 let $t02001220174 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount)
491491 let quoteAssetReserveAfter1 = $t02001220174._1
492492 let baseAssetReserveAfter1 = $t02001220174._2
493493 let totalPositionSizeAfter1 = $t02001220174._3
494494 let marketPrice = divd(quoteAssetSold, _baseAssetAmount)
495495 let priceDiff = abs((priceBefore - marketPrice))
496496 let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff)))
497497 if (if ((priceImpact > maxPriceImpactValue))
498498 then _checkMaxPriceImpact
499499 else false)
500500 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)))
501501 else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, (totalLongPositionSize() - (if (_isAdd)
502502 then abs(_baseAssetAmount)
503503 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
504504 then abs(_baseAssetAmount)
505505 else 0)), priceImpact)
506506 }
507507 }
508508
509509
510510 func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), qtAstW(), bsAstR(), bsAstW())
511511
512512
513513 func getOraclePriceValue (oracle,priceKey,blockKey) = {
514514 let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey))
515515 if ((blockKey != ""))
516516 then {
517517 let currentBlock = height
518518 let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, blockKey), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey))
519519 if (((currentBlock - lastOracleBlock) > maxOracleDelay()))
520520 then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock)))
521521 else lastValue
522522 }
523523 else lastValue
524524 }
525525
526526
527527 func getOraclePrice () = {
528528 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
529529 let baseOraclePrice = getOraclePriceValue(baseOracle._1, baseOracle._2, baseOracle._3)
530530 let quoteOracle = getOracleData(k_quoteOracle)
531531 let quoteOraclePrice = if (isDefined(quoteOracle))
532532 then {
533533 let quoteOracleV = value(quoteOracle)
534534 getOraclePriceValue(quoteOracleV._1, quoteOracleV._2, quoteOracleV._3)
535535 }
536536 else DECIMAL_UNIT
537537 divd(baseOraclePrice, quoteOraclePrice)
538538 }
539539
540540
541541 func isMarketClosed () = {
542542 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
543543 let oracle = baseOracle._1
544544 let openKey = baseOracle._4
545545 if ((openKey != ""))
546546 then {
547547 let isOpen = valueOrErrorMessage(getBoolean(oracle, openKey), ((("Can not get oracle is open/closed. Oracle: " + toString(oracle)) + " key: ") + openKey))
548548 !(isOpen)
549549 }
550550 else false
551551 }
552552
553553
554554 func absPriceDiff (_oraclePrice,_quoteAssetReserve,_baseAssetReserve,_qtAstW,_bsAstW) = {
555555 let priceAfter = divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
556556 let averagePrice = divd((_oraclePrice + priceAfter), (2 * DECIMAL_UNIT))
557557 let absPriceDiff = divd(abs((_oraclePrice - priceAfter)), averagePrice)
558558 absPriceDiff
559559 }
560560
561561
562562 func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = {
563563 let oraclePrice = getOraclePrice()
564564 let _qtAstW = qtAstW()
565565 let _bsAstW = bsAstW()
566566 let absPriceDiffBefore = absPriceDiff(oraclePrice, qtAstR(), bsAstR(), _qtAstW, _bsAstW)
567567 let absPriceDiffAfter = absPriceDiff(oraclePrice, _quoteAssetReserve, _baseAssetReserve, _qtAstW, _bsAstW)
568568 if (if ((absPriceDiffAfter > maxPriceSpread()))
569569 then (absPriceDiffAfter > absPriceDiffBefore)
570570 else false)
571571 then throw(((("Price spread " + toString(absPriceDiffAfter)) + " > max price spread ") + toString(maxPriceSpread())))
572572 else true
573573 }
574574
575575
576576 func requireNotOverMaxOpenNotional (_longOpenNotional,_shortOpenNotional) = {
577577 let _maxOpenNotional = maxOpenNotional()
578578 if ((_longOpenNotional > _maxOpenNotional))
579579 then throw(((("Long open notional " + toString(_longOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
580580 else if ((_shortOpenNotional > _maxOpenNotional))
581581 then throw(((("Short open notional " + toString(_shortOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional)))
582582 else true
583583 }
584584
585585
586586 func getSpotPrice () = {
587587 let _quoteAssetReserve = qtAstR()
588588 let _baseAssetReserve = bsAstR()
589589 let _qtAstW = qtAstW()
590590 let _bsAstW = bsAstW()
591591 divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW))
592592 }
593593
594594
595595 func isOverFluctuationLimit () = {
596596 let oraclePrice = getOraclePrice()
597597 let currentPrice = getSpotPrice()
598598 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
599599 }
600600
601601
602602 func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = {
603603 let positionSizeAbs = abs(_positionSize)
604604 let isShort = (0 > _positionSize)
605605 let positionNotional = if ((_option == PNL_OPTION_SPOT))
606606 then {
607607 let outPositionNotional = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)._1
608608 outPositionNotional
609609 }
610610 else muld(positionSizeAbs, getOraclePrice())
611611 positionNotional
612612 }
613613
614614
615615 func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight,_option) = if ((_positionSize == 0))
616616 then throw("Invalid position size")
617617 else {
618618 let isShort = (0 > _positionSize)
619619 let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)
620620 let unrealizedPnl = if (isShort)
621621 then (_positionOpenNotional - positionNotional)
622622 else (positionNotional - _positionOpenNotional)
623623 $Tuple2(positionNotional, unrealizedPnl)
624624 }
625625
626626
627627 func getPositionNotionalAndUnrealizedPnl (_trader,_direction,_option) = {
628628 let $t02805928199 = getPosition(_trader, _direction)
629629 let positionSize = $t02805928199._1
630630 let positionMargin = $t02805928199._2
631631 let positionOpenNotional = $t02805928199._3
632632 let positionLstUpdCPF = $t02805928199._4
633633 getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option)
634634 }
635635
636636
637637 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
638638
639639
640640 func getMarginRatioByOption (_trader,_direction,_option) = {
641641 let $t02873128884 = getPosition(_trader, _direction)
642642 let positionSize = $t02873128884._1
643643 let positionMargin = $t02873128884._2
644644 let pon = $t02873128884._3
645645 let positionLastUpdatedCPF = $t02873128884._4
646646 let positionTimestamp = $t02873128884._5
647647 let $t02889028995 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, _option)
648648 let positionNotional = $t02889028995._1
649649 let unrealizedPnl = $t02889028995._2
650650 let $t02900029212 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl)
651651 let remainMargin = $t02900029212._1
652652 let badDebt = $t02900029212._2
653653 calcMarginRatio(remainMargin, badDebt, positionNotional)
654654 }
655655
656656
657657 func getMarginRatio (_trader,_direction) = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
658658
659659
660660 func getPartialLiquidationAmount (_trader,_positionSize) = {
661661 let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader, getDirection(_positionSize)), maintenanceMarginRatio())))
662662 let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio)
663663 let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false)
664664 let maxExchangedQuoteAssetAmount = swapResult._1
665665 let priceImpact = swapResult._7
666666 if ((maxPriceImpact() > priceImpact))
667667 then maxExchangedPositionSize
668668 else muld(abs(_positionSize), partialLiquidationRatio())
669669 }
670670
671671
672672 func internalClosePosition (_trader,_direction,_size,_fee,_minQuoteAssetAmount,_addToMargin,_checkMaxPriceImpact,_liquidate) = {
673673 let $t03037530543 = getPosition(_trader, _direction)
674674 let oldPositionSize = $t03037530543._1
675675 let oldPositionMargin = $t03037530543._2
676676 let oldPositionOpenNotional = $t03037530543._3
677677 let oldPositionLstUpdCPF = $t03037530543._4
678678 let oldPositionTimestamp = $t03037530543._5
679679 let isLongPosition = (oldPositionSize > 0)
680680 let absOldPositionSize = abs(oldPositionSize)
681681 if (if ((absOldPositionSize >= _size))
682682 then (_size > 0)
683683 else false)
684684 then {
685685 let isPartialClose = (absOldPositionSize > _size)
686686 let $t03083531286 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact)
687687 let exchangedQuoteAssetAmount = $t03083531286._1
688688 let quoteAssetReserveAfter = $t03083531286._2
689689 let baseAssetReserveAfter = $t03083531286._3
690690 let totalPositionSizeAfter = $t03083531286._4
691691 let exchangedPositionSize = if ((oldPositionSize > 0))
692692 then -(_size)
693693 else _size
694694 let $t03150131725 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
695695 let oldPositionNotional = $t03150131725._1
696696 let unrealizedPnl = $t03150131725._2
697697 let realizedRatio = divd(abs(exchangedPositionSize), absOldPositionSize)
698698 let realizedPnl = muld(unrealizedPnl, realizedRatio)
699699 let $t03206632312 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl)
700700 let remainMarginBefore = $t03206632312._1
701701 let x1 = $t03206632312._2
702702 let x2 = $t03206632312._3
703703 let rolloverFee = $t03206632312._4
704704 let positionBadDebt = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, realizedPnl)._2
705705 let realizedCloseFee = muld(muld(oldPositionNotional, realizedRatio), _fee)
706706 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
707707 let remainOpenNotional = if ((oldPositionSize > 0))
708708 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
709709 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
710710 let newPositionSize = (oldPositionSize + exchangedPositionSize)
711711 let $t03371834104 = if ((newPositionSize == 0))
712712 then $Tuple2(0, 0)
713713 else $Tuple2(abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize))
714714 let newPositionOpenNotional = $t03371834104._1
715715 let newPositionLstUpdCPF = $t03371834104._2
716716 let openNotionalDelta = (oldPositionOpenNotional - newPositionOpenNotional)
717717 let marginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
718718 let newPositionMarginWithSameRatio = if ((oldPositionSize > 0))
719719 then (muld((newPositionOpenNotional + unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter)
720720 else (muld((newPositionOpenNotional - unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter)
721721 let marginToTraderRaw = ((remainMarginBefore - (newPositionMarginWithSameRatio + unrealizedPnlAfter)) - realizedCloseFee)
722722 let marginToTrader = if ((0 > marginToTraderRaw))
723723 then if (_liquidate)
724724 then 0
725725 else throw("Invalid internalClosePosition params: unable to pay fee")
726726 else marginToTraderRaw
727727 let newPositionMargin = if (_addToMargin)
728728 then (newPositionMarginWithSameRatio + marginToTrader)
729729 else newPositionMarginWithSameRatio
730730 if (if ((_minQuoteAssetAmount != 0))
731731 then (_minQuoteAssetAmount > exchangedQuoteAssetAmount)
732732 else false)
733733 then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount)))
734734 else $Tuple17(newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, positionBadDebt, realizedPnl, if (if (_addToMargin)
735735 then isPartialClose
736736 else false)
737737 then 0
738738 else marginToTrader, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() - openNotionalDelta), (totalLongPositionSize() - (if (isLongPosition)
739739 then abs(exchangedPositionSize)
740740 else 0)), (totalShortPositionSize() - (if (!(isLongPosition))
741741 then abs(exchangedPositionSize)
742742 else 0)), (openInterestLong() - (if (isLongPosition)
743743 then openNotionalDelta
744744 else 0)), (openInterestShort() - (if (!(isLongPosition))
745745 then openNotionalDelta
746746 else 0)), (realizedCloseFee + rolloverFee), exchangedQuoteAssetAmount)
747747 }
748748 else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(_size)) + " max: ") + toString(absOldPositionSize)))
749749 }
750750
751751
752752 func getTerminalAmmState () = {
753753 let _positionSize = totalPositionSize()
754754 if ((_positionSize == 0))
755755 then $Tuple2(qtAstR(), bsAstR())
756756 else {
757757 let direction = (_positionSize > 0)
758758 let $t03735137530 = swapOutput(direction, abs(_positionSize), false)
759759 let currentNetMarketValue = $t03735137530._1
760760 let terminalQuoteAssetReserve = $t03735137530._2
761761 let terminalBaseAssetReserve = $t03735137530._3
762762 $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve)
763763 }
764764 }
765765
766766
767767 func getQuoteAssetWeight (baseAssetReserve,totalPositionSize,quoteAssetReserve,targetPrice) = {
768768 let b = toBigInt(baseAssetReserve)
769769 let sz = toBigInt(totalPositionSize)
770770 let q = toBigInt(quoteAssetReserve)
771771 let p = toBigInt(targetPrice)
772772 let k = bmuld(q, b)
773773 let newB = (b + sz)
774774 let newQ = bdivd(k, newB)
775775 let z = bdivd(newQ, newB)
776776 let result = bdivd(p, z)
777777 toInt(result)
778778 }
779779
780780
781781 func getSyncTerminalPrice (_terminalPrice,_qtAstR,_bsAstR) = {
782782 let _positionSize = totalPositionSize()
783783 if ((_positionSize == 0))
784784 then {
785785 let newQtAstW = divd(muld(_terminalPrice, _bsAstR), _qtAstR)
786786 $Tuple3(newQtAstW, DECIMAL_UNIT, 0)
787787 }
788788 else {
789789 let direction = (_positionSize > 0)
790790 let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1
791791 let newQtAstW = getQuoteAssetWeight(_bsAstR, _positionSize, _qtAstR, _terminalPrice)
792792 let newBsAstW = DECIMAL_UNIT
793793 let marginToVault = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, _qtAstR, newQtAstW, _bsAstR, newBsAstW, PNL_OPTION_SPOT)._2
794794 $Tuple3(newQtAstW, newBsAstW, marginToVault)
795795 }
796796 }
797797
798798
799799 func getFunding () = {
800800 let underlyingPrice = getOraclePrice()
801801 let spotPrice = getSpotPrice()
802802 let premium = (spotPrice - underlyingPrice)
803- if (if (if ((totalShortPositionSize() == 0))
803+ if (if (isMarketClosed())
804804 then true
805- else (totalLongPositionSize() == 0))
806- then true
807- else isMarketClosed())
805+ else if ((fundingMode() == FUNDING_ASYMMETRIC))
806+ then if ((totalShortPositionSize() == 0))
807+ then true
808+ else (totalLongPositionSize() == 0)
809+ else false)
808810 then $Tuple3(0, 0, 0)
809811 else if ((0 > premium))
810812 then {
811813 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
812814 if ((fundingMode() == FUNDING_ASYMMETRIC))
813815 then {
814816 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
815817 $Tuple3(shortPremiumFraction, longPremiumFraction, 0)
816818 }
817819 else {
818820 let shortTotalPremiumFraction = abs(muld(shortPremiumFraction, totalShortPositionSize()))
819821 let longTotalPremiumFraction = abs(muld(shortPremiumFraction, totalLongPositionSize()))
820822 let premiumToVault = (shortTotalPremiumFraction - longTotalPremiumFraction)
821823 $Tuple3(shortPremiumFraction, shortPremiumFraction, premiumToVault)
822824 }
823825 }
824826 else {
825827 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
826828 if ((fundingMode() == FUNDING_ASYMMETRIC))
827829 then {
828830 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
829831 $Tuple3(shortPremiumFraction, longPremiumFraction, 0)
830832 }
831833 else {
832834 let longTotalPremiumFraction = abs(muld(longPremiumFraction, totalLongPositionSize()))
833835 let shortTotalPremiumFraction = abs(muld(longPremiumFraction, totalShortPositionSize()))
834836 let premiumToVault = (longTotalPremiumFraction - shortTotalPremiumFraction)
835837 $Tuple3(longPremiumFraction, longPremiumFraction, premiumToVault)
836838 }
837839 }
838840 }
839841
840842
841843 func getAdjustedFee (_artifactId,_baseFeeDiscount) = {
842844 let baseFeeRaw = fee()
843845 let baseFee = muld(baseFeeRaw, _baseFeeDiscount)
844- let $t04210542600 = if ((_artifactId != ""))
846+ let $t04219442689 = if ((_artifactId != ""))
845847 then {
846848 let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId))
847849 if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE))
848850 then {
849851 let reduction = intA(nftManagerAddress(), toCompositeKey(k_token_param, _artifactId))
850852 let adjustedFee = muld(baseFee, reduction)
851853 $Tuple2(adjustedFee, true)
852854 }
853855 else throw("Invalid attached artifact")
854856 }
855857 else $Tuple2(baseFee, false)
856- let adjustedFee = $t04210542600._1
857- let burnArtifact = $t04210542600._2
858+ let adjustedFee = $t04219442689._1
859+ let burnArtifact = $t04219442689._2
858860 $Tuple2(adjustedFee, burnArtifact)
859861 }
860862
861863
862864 func getForTraderWithArtifact (_trader,_artifactId) = {
863865 let doGetFeeDiscount = invoke(minerAddress(), "computeFeeDiscount", [_trader], nil)
864866 if ((doGetFeeDiscount == doGetFeeDiscount))
865867 then {
866868 let feeDiscount = match doGetFeeDiscount {
867869 case x: Int =>
868870 x
869871 case _ =>
870872 throw("Invalid computeFeeDiscount result")
871873 }
872- let $t04294643020 = getAdjustedFee(_artifactId, feeDiscount)
873- let adjustedFee = $t04294643020._1
874- let burnArtifact = $t04294643020._2
874+ let $t04303543109 = getAdjustedFee(_artifactId, feeDiscount)
875+ let adjustedFee = $t04303543109._1
876+ let burnArtifact = $t04303543109._2
875877 $Tuple2(adjustedFee, burnArtifact)
876878 }
877879 else throw("Strict value is not equal to itself.")
878880 }
879881
880882
881883 func getArtifactId (i) = {
882884 let artifactId = if ((size(i.payments) > 1))
883885 then toBase58String(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifactId"))
884886 else ""
885887 artifactId
886888 }
887889
888890
889891 func distributeFee (_feeAmount) = {
890892 let feeToStakers = muld(_feeAmount, feeToStakersPercent())
891893 let feeToVault = (_feeAmount - feeToStakers)
892894 $Tuple2(feeToStakers, feeToVault)
893895 }
894896
895897
896898 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee), IntegerEntry(k_spreadLimit, _spreadLimit), IntegerEntry(k_maxPriceImpact, _maxPriceImpact), IntegerEntry(k_partialLiquidationRatio, _partialLiquidationRatio), IntegerEntry(k_maxPriceSpread, _maxPriceSpread), IntegerEntry(k_maxOpenNotional, _maxOpenNotional), IntegerEntry(k_feeToStakersPercent, _feeToStakersPercent), IntegerEntry(k_maxOracleDelay, _maxOracleDelay), IntegerEntry(k_rolloverFee, _rolloverFee), IntegerEntry(k_fundingMode, _fundingMode), IntegerEntry(k_oracleMode, _oracleMode)]
897899
898900
899901 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)]
900902
901903
902904 func incrementPositionSequenceNumber (_isNewPosition,_trader,_direction) = {
903905 let positionKey = ((_trader + "_") + toString(_direction))
904906 if (_isNewPosition)
905907 then {
906908 let currentSequence = lastSequence()
907909 [IntegerEntry(toCompositeKey(k_positionSequence, positionKey), (currentSequence + 1)), IntegerEntry(k_sequence, (currentSequence + 1))]
908910 }
909911 else nil
910912 }
911913
912914
913915 func updatePositionFee (_isNewPosition,_trader,_direction,_fee) = {
914916 let positionKey = ((_trader + "_") + toString(_direction))
915917 if (_isNewPosition)
916918 then [IntegerEntry(toCompositeKey(k_positionFee, positionKey), _fee)]
917919 else nil
918920 }
919921
920922
921923 func updatePosition (_trader,_size,_margin,_openNotional,_latestCumulativePremiumFraction,_latestTimestamp) = {
922924 let direction = getDirection(_size)
923925 let positionKey = ((_trader + "_") + toString(direction))
924926 [IntegerEntry(toCompositeKey(k_positionSize, positionKey), _size), IntegerEntry(toCompositeKey(k_positionMargin, positionKey), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, positionKey), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey), _latestCumulativePremiumFraction), IntegerEntry(toCompositeKey(k_positionLastUpdatedTimestamp, positionKey), _latestTimestamp)]
925927 }
926928
927929
928930 func updateAmmReserves (_qtAstR,_bsAstR) = if (if ((0 > _qtAstR))
929931 then true
930932 else (0 > _bsAstR))
931933 then throw("Invalid amount to update reserves")
932934 else [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)]
933935
934936
935937 func updateAmmWeights (_qtAstW,_bsAstW) = [IntegerEntry(k_quoteAssetWeight, _qtAstW), IntegerEntry(k_baseAssetWeight, _bsAstW)]
936938
937939
938940 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize,_totalLongOpenNotional,_totalShortOpenNotional) = {
939941 let _qtAstW = qtAstW()
940942 let _bsAstW = bsAstW()
941943 if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
942944 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
943945 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)])
944946 }
945947
946948
947949 func deletePosition (_trader,_direction) = {
948950 let positionKey = ((_trader + "_") + toString(_direction))
949951 [DeleteEntry(toCompositeKey(k_positionSize, positionKey)), DeleteEntry(toCompositeKey(k_positionMargin, positionKey)), DeleteEntry(toCompositeKey(k_positionOpenNotional, positionKey)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey)), DeleteEntry(toCompositeKey(k_positionFee, positionKey)), DeleteEntry(toCompositeKey(k_positionLastUpdatedTimestamp, positionKey))]
950952 }
951953
952954
953955 func withdraw (_address,_amount) = {
954956 let balance = assetBalance(this, quoteAsset())
955957 if ((_amount > balance))
956958 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
957959 else [ScriptTransfer(_address, _amount, quoteAsset())]
958960 }
959961
960962
961963 func updateBalance (i) = if ((0 > i))
962964 then throw("Balance")
963965 else [IntegerEntry(k_balance, i)]
964966
965967
966968 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
967969
968970
969971 func doBurnArtifact (_burnArtifact,i) = if (_burnArtifact)
970972 then [Burn(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifact"), 1)]
971973 else nil
972974
973975
974976 @Callable(i)
975977 func pause () = if ((i.caller != adminAddress()))
976978 then throw("Invalid pause params")
977979 else [BooleanEntry(k_paused, true)]
978980
979981
980982
981983 @Callable(i)
982984 func unpause () = if ((i.caller != adminAddress()))
983985 then throw("Invalid unpause params")
984986 else [BooleanEntry(k_paused, false)]
985987
986988
987989
988990 @Callable(i)
989991 func setCloseOnly () = if ((i.caller != adminAddress()))
990992 then throw("Invalid setCloseOnly params")
991993 else [BooleanEntry(k_closeOnly, true)]
992994
993995
994996
995997 @Callable(i)
996998 func unsetCloseOnly () = if ((i.caller != adminAddress()))
997999 then throw("Invalid unsetCloseOnly params")
9981000 else [BooleanEntry(k_closeOnly, false)]
9991001
10001002
10011003
10021004 @Callable(i)
10031005 func changeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress()))
10041006 then true
10051007 else (_quoteAssetAmount == 0))
10061008 then throw("Invalid changeLiquidity params")
10071009 else {
10081010 let _qtAstR = qtAstR()
10091011 let _bsAstR = bsAstR()
10101012 let _qtAstW = qtAstW()
10111013 let _bsAstW = bsAstW()
10121014 let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW))
10131015 let qtAstRAfter = (_qtAstR + _quoteAssetAmount)
10141016 let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)
10151017 let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd)
1016- let $t05145451605 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1017- let newQuoteAssetWeight = $t05145451605._1
1018- let newBaseAssetWeight = $t05145451605._2
1019- let marginToVault = $t05145451605._3
1018+ let $t05154351694 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter)
1019+ let newQuoteAssetWeight = $t05154351694._1
1020+ let newBaseAssetWeight = $t05154351694._2
1021+ let marginToVault = $t05154351694._3
10201022 let doExchangePnL = if ((marginToVault != 0))
10211023 then {
10221024 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil)
10231025 if ((doExchangePnL == doExchangePnL))
10241026 then nil
10251027 else throw("Strict value is not equal to itself.")
10261028 }
10271029 else nil
10281030 if ((doExchangePnL == doExchangePnL))
10291031 then (updateAmmReserves(qtAstRAfter, bsAstRAfter) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight))
10301032 else throw("Strict value is not equal to itself.")
10311033 }
10321034
10331035
10341036
10351037 @Callable(i)
10361038 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _fundingPeriod))
10371039 then true
10381040 else (0 >= _initMarginRatio))
10391041 then true
10401042 else (0 >= _mmr))
10411043 then true
10421044 else (0 >= _liquidationFeeRatio))
10431045 then true
10441046 else (0 >= _fee))
10451047 then true
10461048 else (0 >= _spreadLimit))
10471049 then true
10481050 else (0 >= _maxPriceImpact))
10491051 then true
10501052 else (0 >= _partialLiquidationRatio))
10511053 then true
10521054 else (0 >= _maxPriceSpread))
10531055 then true
10541056 else (0 >= _maxOpenNotional))
10551057 then true
10561058 else (0 >= _feeToStakersPercent))
10571059 then true
10581060 else (_feeToStakersPercent > DECIMAL_UNIT))
10591061 then true
10601062 else (0 >= _maxOracleDelay))
10611063 then true
10621064 else (0 >= _rolloverFee))
10631065 then true
10641066 else if ((_fundingMode != FUNDING_SYMMETRIC))
10651067 then (_fundingMode != FUNDING_ASYMMETRIC)
10661068 else false)
10671069 then true
10681070 else if ((_oracleMode != ORACLE_PLAIN))
10691071 then (_oracleMode != ORACLE_JIT)
10701072 else false)
10711073 then true
10721074 else !(initialized()))
10731075 then true
10741076 else (i.caller != adminAddress()))
10751077 then throw("Invalid changeSettings params")
10761078 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode)
10771079
10781080
10791081
10801082 @Callable(i)
10811083 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_baseOracleData,_quoteOracleData,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee,_fundingMode,_oracleMode) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
10821084 then true
10831085 else (0 >= _bsAstR))
10841086 then true
10851087 else (0 >= _fundingPeriod))
10861088 then true
10871089 else (0 >= _initMarginRatio))
10881090 then true
10891091 else (0 >= _mmr))
10901092 then true
10911093 else (0 >= _liquidationFeeRatio))
10921094 then true
10931095 else (0 >= _fee))
10941096 then true
10951097 else (0 >= _spreadLimit))
10961098 then true
10971099 else (0 >= _maxPriceImpact))
10981100 then true
10991101 else (0 >= _partialLiquidationRatio))
11001102 then true
11011103 else (0 >= _maxPriceSpread))
11021104 then true
11031105 else (0 >= _maxOpenNotional))
11041106 then true
11051107 else (0 >= _feeToStakersPercent))
11061108 then true
11071109 else (_feeToStakersPercent > DECIMAL_UNIT))
11081110 then true
11091111 else (0 > _maxOracleDelay))
11101112 then true
11111113 else (0 >= _rolloverFee))
11121114 then true
11131115 else if ((_fundingMode != FUNDING_SYMMETRIC))
11141116 then (_fundingMode != FUNDING_ASYMMETRIC)
11151117 else false)
11161118 then true
11171119 else if ((_oracleMode != ORACLE_PLAIN))
11181120 then (_oracleMode != ORACLE_JIT)
11191121 else false)
11201122 then true
11211123 else initialized())
11221124 then true
11231125 else (i.caller != this))
11241126 then throw("Invalid initialize parameters")
11251127 else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee, _fundingMode, _oracleMode)) ++ updateFunding((lastTimestamp() + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_baseOracle, _baseOracleData), StringEntry(k_quoteOracle, _quoteOracleData), StringEntry(k_coordinatorAddress, toString(addressFromStringValue(_coordinator)))])
11261128
11271129
11281130
11291131 @Callable(i)
11301132 func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink,_priceUpdate) = {
11311133 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
11321134 if ((updateOracle == updateOracle))
11331135 then {
11341136 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
11351137 if ((sync == sync))
11361138 then {
11371139 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
11381140 if ((ensureCalledOnce == ensureCalledOnce))
11391141 then {
11401142 let _trader = getActualCaller(i)
11411143 let _rawAmount = i.payments[0].amount
11421144 let _assetId = i.payments[0].assetId
11431145 let _assetIdStr = toBase58String(value(_assetId))
11441146 let isQuoteAsset = (_assetId == quoteAsset())
11451147 if (if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
11461148 then (_direction != DIR_SHORT)
11471149 else false)
11481150 then true
11491151 else (0 >= _rawAmount))
11501152 then true
11511153 else !(initialized()))
11521154 then true
11531155 else !(isQuoteAsset))
11541156 then true
11551157 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
11561158 then true
11571159 else paused())
11581160 then true
11591161 else closeOnly())
11601162 then true
11611163 else isMarketClosed())
11621164 then throw("Invalid increasePosition parameters")
11631165 else {
1164- let $t05798158130 = getForTraderWithArtifact(_trader, getArtifactId(i))
1165- let adjustedFee = $t05798158130._1
1166- let burnArtifact = $t05798158130._2
1166+ let $t05807058219 = getForTraderWithArtifact(_trader, getArtifactId(i))
1167+ let adjustedFee = $t05807058219._1
1168+ let burnArtifact = $t05807058219._2
11671169 let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT))
11681170 let distributeFeeAmount = (_rawAmount - _amount)
11691171 let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)])
11701172 if ((referrerFeeAny == referrerFeeAny))
11711173 then {
11721174 let referrerFee = match referrerFeeAny {
11731175 case x: Int =>
11741176 x
11751177 case _ =>
11761178 throw("Invalid referrerFee")
11771179 }
11781180 let feeAmount = (distributeFeeAmount - referrerFee)
1179- let $t05862658806 = getPosition(_trader, _direction)
1180- let oldPositionSize = $t05862658806._1
1181- let oldPositionMargin = $t05862658806._2
1182- let oldPositionOpenNotional = $t05862658806._3
1183- let oldPositionLstUpdCPF = $t05862658806._4
1184- let oldPositionTimestamp = $t05862658806._5
1181+ let $t05871558895 = getPosition(_trader, _direction)
1182+ let oldPositionSize = $t05871558895._1
1183+ let oldPositionMargin = $t05871558895._2
1184+ let oldPositionOpenNotional = $t05871558895._3
1185+ let oldPositionLstUpdCPF = $t05871558895._4
1186+ let oldPositionTimestamp = $t05871558895._5
11851187 let isNewPosition = (oldPositionSize == 0)
11861188 let isSameDirection = if ((oldPositionSize > 0))
11871189 then (_direction == DIR_LONG)
11881190 else (_direction == DIR_SHORT)
11891191 let expandExisting = if (!(isNewPosition))
11901192 then isSameDirection
11911193 else false
11921194 let isAdd = (_direction == DIR_LONG)
1193- let $t05909562228 = if (if (isNewPosition)
1195+ let $t05918462317 = if (if (isNewPosition)
11941196 then true
11951197 else expandExisting)
11961198 then {
11971199 let openNotional = muld(_amount, _leverage)
1198- let $t05960459777 = swapInput(isAdd, openNotional)
1199- let amountBaseAssetBought = $t05960459777._1
1200- let quoteAssetReserveAfter = $t05960459777._2
1201- let baseAssetReserveAfter = $t05960459777._3
1202- let totalPositionSizeAfter = $t05960459777._4
1200+ let $t05969359866 = swapInput(isAdd, openNotional)
1201+ let amountBaseAssetBought = $t05969359866._1
1202+ let quoteAssetReserveAfter = $t05969359866._2
1203+ let baseAssetReserveAfter = $t05969359866._3
1204+ let totalPositionSizeAfter = $t05969359866._4
12031205 if (if ((_minBaseAssetAmount != 0))
12041206 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
12051207 else false)
12061208 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
12071209 else {
12081210 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
12091211 let totalLongOpenInterestAfter = (openInterestLong() + (if ((newPositionSize > 0))
12101212 then openNotional
12111213 else 0))
12121214 let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize))
12131215 then openNotional
12141216 else 0))
1215- let $t06032360598 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1216- let remainMargin = $t06032360598._1
1217- let x1 = $t06032360598._2
1218- let x2 = $t06032360598._3
1219- let rolloverFee = $t06032360598._4
1217+ let $t06041260687 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount)
1218+ let remainMargin = $t06041260687._1
1219+ let x1 = $t06041260687._2
1220+ let x2 = $t06041260687._3
1221+ let rolloverFee = $t06041260687._4
12201222 if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter)))
12211223 then throw("Over max spread limit")
12221224 else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter)))
12231225 then throw("Over max open notional")
12241226 else $Tuple14(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), lastTimestamp(), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
12251227 then abs(amountBaseAssetBought)
12261228 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
12271229 then abs(amountBaseAssetBought)
12281230 else 0)), totalLongOpenInterestAfter, totalShortOpenInterestAfter, rolloverFee)
12291231 }
12301232 }
12311233 else {
12321234 let openNotional = muld(_amount, _leverage)
1233- let $t06191662044 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1234- let oldPositionNotional = $t06191662044._1
1235- let unrealizedPnl = $t06191662044._2
1235+ let $t06200562133 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), _direction, PNL_OPTION_SPOT)
1236+ let oldPositionNotional = $t06200562133._1
1237+ let unrealizedPnl = $t06200562133._2
12361238 if ((oldPositionNotional > openNotional))
12371239 then throw("Use decreasePosition to decrease position size")
12381240 else throw("Close position first")
12391241 }
1240- let newPositionSize = $t05909562228._1
1241- let newPositionRemainMargin = $t05909562228._2
1242- let newPositionOpenNotional = $t05909562228._3
1243- let newPositionLatestCPF = $t05909562228._4
1244- let newPositionTimestamp = $t05909562228._5
1245- let baseAssetReserveAfter = $t05909562228._6
1246- let quoteAssetReserveAfter = $t05909562228._7
1247- let totalPositionSizeAfter = $t05909562228._8
1248- let openInterestNotionalAfter = $t05909562228._9
1249- let totalLongAfter = $t05909562228._10
1250- let totalShortAfter = $t05909562228._11
1251- let totalLongOpenInterestAfter = $t05909562228._12
1252- let totalShortOpenInterestAfter = $t05909562228._13
1253- let rolloverFee = $t05909562228._14
1254- let $t06223462305 = distributeFee((feeAmount + rolloverFee))
1255- let feeToStakers = $t06223462305._1
1256- let feeToVault = $t06223462305._2
1242+ let newPositionSize = $t05918462317._1
1243+ let newPositionRemainMargin = $t05918462317._2
1244+ let newPositionOpenNotional = $t05918462317._3
1245+ let newPositionLatestCPF = $t05918462317._4
1246+ let newPositionTimestamp = $t05918462317._5
1247+ let baseAssetReserveAfter = $t05918462317._6
1248+ let quoteAssetReserveAfter = $t05918462317._7
1249+ let totalPositionSizeAfter = $t05918462317._8
1250+ let openInterestNotionalAfter = $t05918462317._9
1251+ let totalLongAfter = $t05918462317._10
1252+ let totalShortAfter = $t05918462317._11
1253+ let totalLongOpenInterestAfter = $t05918462317._12
1254+ let totalShortOpenInterestAfter = $t05918462317._13
1255+ let rolloverFee = $t05918462317._14
1256+ let $t06232362394 = distributeFee((feeAmount + rolloverFee))
1257+ let feeToStakers = $t06232362394._1
1258+ let feeToVault = $t06232362394._2
12571259 let stake = if ((_amount >= rolloverFee))
12581260 then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))])
12591261 else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil)
12601262 if ((stake == stake))
12611263 then {
12621264 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
12631265 if ((depositVault == depositVault))
12641266 then {
12651267 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil)
12661268 if ((notifyFee == notifyFee))
12671269 then {
12681270 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
12691271 if ((notifyNotional == notifyNotional))
12701272 then ((((((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF, newPositionTimestamp) ++ incrementPositionSequenceNumber(isNewPosition, _trader, _direction)) ++ updatePositionFee(isNewPosition, _trader, _direction, adjustedFee)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ transferFee(feeToStakers)) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doBurnArtifact(burnArtifact, i))
12711273 else throw("Strict value is not equal to itself.")
12721274 }
12731275 else throw("Strict value is not equal to itself.")
12741276 }
12751277 else throw("Strict value is not equal to itself.")
12761278 }
12771279 else throw("Strict value is not equal to itself.")
12781280 }
12791281 else throw("Strict value is not equal to itself.")
12801282 }
12811283 }
12821284 else throw("Strict value is not equal to itself.")
12831285 }
12841286 else throw("Strict value is not equal to itself.")
12851287 }
12861288 else throw("Strict value is not equal to itself.")
12871289 }
12881290
12891291
12901292
12911293 @Callable(i)
12921294 func addMargin (_direction,_priceUpdate) = {
12931295 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
12941296 if ((updateOracle == updateOracle))
12951297 then {
12961298 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
12971299 if ((sync == sync))
12981300 then {
12991301 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
13001302 if ((ensureCalledOnce == ensureCalledOnce))
13011303 then {
13021304 let _trader = toString(i.caller)
13031305 let _amount = i.payments[0].amount
13041306 let _assetId = i.payments[0].assetId
13051307 let _assetIdStr = toBase58String(value(_assetId))
13061308 let isQuoteAsset = (_assetId == quoteAsset())
13071309 if (if (if (if (if (!(isQuoteAsset))
13081310 then true
13091311 else !(requireOpenPosition(toString(i.caller), _direction)))
13101312 then true
13111313 else !(initialized()))
13121314 then true
13131315 else paused())
13141316 then true
13151317 else isMarketClosed())
13161318 then throw("Invalid addMargin parameters")
13171319 else {
1318- let $t06464764827 = getPosition(_trader, _direction)
1319- let oldPositionSize = $t06464764827._1
1320- let oldPositionMargin = $t06464764827._2
1321- let oldPositionOpenNotional = $t06464764827._3
1322- let oldPositionLstUpdCPF = $t06464764827._4
1323- let oldPositionTimestamp = $t06464764827._5
1320+ let $t06473664916 = getPosition(_trader, _direction)
1321+ let oldPositionSize = $t06473664916._1
1322+ let oldPositionMargin = $t06473664916._2
1323+ let oldPositionOpenNotional = $t06473664916._3
1324+ let oldPositionLstUpdCPF = $t06473664916._4
1325+ let oldPositionTimestamp = $t06473664916._5
13241326 let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)])
13251327 if ((stake == stake))
13261328 then {
13271329 let rolloverFee = calcRolloverFee(oldPositionMargin, oldPositionTimestamp)
13281330 let doTransferFeeToStakers = if ((rolloverFee > 0))
13291331 then {
1330- let $t06511265171 = distributeFee(rolloverFee)
1331- let feeToStakers = $t06511265171._1
1332- let feeToVault = $t06511265171._2
1332+ let $t06520165260 = distributeFee(rolloverFee)
1333+ let feeToStakers = $t06520165260._1
1334+ let feeToVault = $t06520165260._2
13331335 let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil)
13341336 if ((unstake == unstake))
13351337 then {
13361338 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
13371339 if ((lockBadDebt == lockBadDebt))
13381340 then transferFee(feeToStakers)
13391341 else throw("Strict value is not equal to itself.")
13401342 }
13411343 else throw("Strict value is not equal to itself.")
13421344 }
13431345 else nil
13441346 if ((doTransferFeeToStakers == doTransferFeeToStakers))
13451347 then ((updatePosition(_trader, oldPositionSize, ((oldPositionMargin - rolloverFee) + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF, lastTimestamp()) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doTransferFeeToStakers)
13461348 else throw("Strict value is not equal to itself.")
13471349 }
13481350 else throw("Strict value is not equal to itself.")
13491351 }
13501352 }
13511353 else throw("Strict value is not equal to itself.")
13521354 }
13531355 else throw("Strict value is not equal to itself.")
13541356 }
13551357 else throw("Strict value is not equal to itself.")
13561358 }
13571359
13581360
13591361
13601362 @Callable(i)
13611363 func removeMargin (_amount,_direction,_priceUpdate) = {
13621364 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
13631365 if ((updateOracle == updateOracle))
13641366 then {
13651367 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
13661368 if ((sync == sync))
13671369 then {
13681370 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
13691371 if ((ensureCalledOnce == ensureCalledOnce))
13701372 then {
13711373 let _trader = toString(i.caller)
13721374 if (if (if (if (if ((0 >= _amount))
13731375 then true
13741376 else !(requireOpenPosition(_trader, _direction)))
13751377 then true
13761378 else !(initialized()))
13771379 then true
13781380 else paused())
13791381 then true
13801382 else isMarketClosed())
13811383 then throw("Invalid removeMargin parameters")
13821384 else {
1383- let $t06667266852 = getPosition(_trader, _direction)
1384- let oldPositionSize = $t06667266852._1
1385- let oldPositionMargin = $t06667266852._2
1386- let oldPositionOpenNotional = $t06667266852._3
1387- let oldPositionLstUpdCPF = $t06667266852._4
1388- let oldPositionTimestamp = $t06667266852._5
1389- let $t06685867107 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1390- let remainMargin = $t06685867107._1
1391- let badDebt = $t06685867107._2
1392- let fundingPayment = $t06685867107._3
1393- let rolloverFee = $t06685867107._4
1385+ let $t06676166941 = getPosition(_trader, _direction)
1386+ let oldPositionSize = $t06676166941._1
1387+ let oldPositionMargin = $t06676166941._2
1388+ let oldPositionOpenNotional = $t06676166941._3
1389+ let oldPositionLstUpdCPF = $t06676166941._4
1390+ let oldPositionTimestamp = $t06676166941._5
1391+ let $t06694767196 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount))
1392+ let remainMargin = $t06694767196._1
1393+ let badDebt = $t06694767196._2
1394+ let fundingPayment = $t06694767196._3
1395+ let rolloverFee = $t06694767196._4
13941396 if ((badDebt != 0))
13951397 then throw("Invalid removed margin amount")
13961398 else {
13971399 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
13981400 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
13991401 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
14001402 else {
1401- let $t06749367552 = distributeFee(rolloverFee)
1402- let feeToStakers = $t06749367552._1
1403- let feeToVault = $t06749367552._2
1403+ let $t06758267641 = distributeFee(rolloverFee)
1404+ let feeToStakers = $t06758267641._1
1405+ let feeToVault = $t06758267641._2
14041406 let doTransferFeeToStakers = if ((rolloverFee > 0))
14051407 then {
14061408 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil)
14071409 if ((lockBadDebt == lockBadDebt))
14081410 then transferFee(feeToStakers)
14091411 else throw("Strict value is not equal to itself.")
14101412 }
14111413 else nil
14121414 if ((doTransferFeeToStakers == doTransferFeeToStakers))
14131415 then {
14141416 let unstake = invoke(vaultAddress(), "withdrawLocked", [(_amount + feeToStakers)], nil)
14151417 if ((unstake == unstake))
14161418 then (((updatePosition(_trader, oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize), lastTimestamp()) ++ withdraw(i.caller, _amount)) ++ updateBalance(((cbalance() - _amount) - rolloverFee))) ++ doTransferFeeToStakers)
14171419 else throw("Strict value is not equal to itself.")
14181420 }
14191421 else throw("Strict value is not equal to itself.")
14201422 }
14211423 }
14221424 }
14231425 }
14241426 else throw("Strict value is not equal to itself.")
14251427 }
14261428 else throw("Strict value is not equal to itself.")
14271429 }
14281430 else throw("Strict value is not equal to itself.")
14291431 }
14301432
14311433
14321434
14331435 @Callable(i)
14341436 func closePosition (_size,_direction,_minQuoteAssetAmount,_addToMargin,_priceUpdate) = {
14351437 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
14361438 if ((updateOracle == updateOracle))
14371439 then {
14381440 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
14391441 if ((sync == sync))
14401442 then {
14411443 let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil)
14421444 if ((ensureCalledOnce == ensureCalledOnce))
14431445 then {
14441446 let _trader = getActualCaller(i)
14451447 let _traderAddress = valueOrErrorMessage(addressFromString(_trader), "Invalid caller")
14461448 let positionFee = getPositionFee(_trader, _direction)
14471449 if (if (if (if (if (if (!(requireOpenPosition(_trader, _direction)))
14481450 then true
14491451 else !(initialized()))
14501452 then true
14511453 else paused())
14521454 then true
14531455 else (0 >= _size))
14541456 then true
14551457 else (0 > _minQuoteAssetAmount))
14561458 then true
14571459 else isMarketClosed())
14581460 then throw("Invalid closePosition parameters")
14591461 else {
14601462 let oldPositionTimestamp = getPosition(_trader, _direction)._5
1461- let $t06988770490 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1462- let newPositionSize = $t06988770490._1
1463- let newPositionMargin = $t06988770490._2
1464- let newPositionOpenNotional = $t06988770490._3
1465- let newPositionLstUpdCPF = $t06988770490._4
1466- let positionBadDebt = $t06988770490._5
1467- let realizedPnl = $t06988770490._6
1468- let marginToTrader = $t06988770490._7
1469- let quoteAssetReserveAfter = $t06988770490._8
1470- let baseAssetReserveAfter = $t06988770490._9
1471- let totalPositionSizeAfter = $t06988770490._10
1472- let openInterestNotionalAfter = $t06988770490._11
1473- let totalLongAfter = $t06988770490._12
1474- let totalShortAfter = $t06988770490._13
1475- let totalLongOpenInterestAfter = $t06988770490._14
1476- let totalShortOpenInterestAfter = $t06988770490._15
1477- let realizedFee = $t06988770490._16
1463+ let $t06997670579 = internalClosePosition(_trader, _direction, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true)
1464+ let newPositionSize = $t06997670579._1
1465+ let newPositionMargin = $t06997670579._2
1466+ let newPositionOpenNotional = $t06997670579._3
1467+ let newPositionLstUpdCPF = $t06997670579._4
1468+ let positionBadDebt = $t06997670579._5
1469+ let realizedPnl = $t06997670579._6
1470+ let marginToTrader = $t06997670579._7
1471+ let quoteAssetReserveAfter = $t06997670579._8
1472+ let baseAssetReserveAfter = $t06997670579._9
1473+ let totalPositionSizeAfter = $t06997670579._10
1474+ let openInterestNotionalAfter = $t06997670579._11
1475+ let totalLongAfter = $t06997670579._12
1476+ let totalShortAfter = $t06997670579._13
1477+ let totalLongOpenInterestAfter = $t06997670579._14
1478+ let totalShortOpenInterestAfter = $t06997670579._15
1479+ let realizedFee = $t06997670579._16
14781480 if ((positionBadDebt > 0))
14791481 then throw("Invalid closePosition parameters: bad debt")
14801482 else if ((oldPositionTimestamp >= lastTimestamp()))
14811483 then throw("Invalid closePosition parameters: wait at least 1 block before closing the position")
14821484 else {
14831485 let isPartialClose = (newPositionSize != 0)
14841486 let withdrawAmount = (marginToTrader + realizedFee)
14851487 let ammBalance = (cbalance() - withdrawAmount)
14861488 let ammNewBalance = if ((0 > ammBalance))
14871489 then 0
14881490 else ammBalance
14891491 let unstake = invoke(vaultAddress(), "withdrawLocked", [withdrawAmount], nil)
14901492 if ((unstake == unstake))
14911493 then {
14921494 let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), realizedFee)])
14931495 if ((referrerFeeAny == referrerFeeAny))
14941496 then {
14951497 let referrerFee = match referrerFeeAny {
14961498 case x: Int =>
14971499 x
14981500 case _ =>
14991501 throw("Invalid referrerFee")
15001502 }
1501- let $t07146271535 = distributeFee((realizedFee - referrerFee))
1502- let feeToStakers = $t07146271535._1
1503- let feeToVault = $t07146271535._2
1503+ let $t07155171624 = distributeFee((realizedFee - referrerFee))
1504+ let feeToStakers = $t07155171624._1
1505+ let feeToVault = $t07155171624._2
15041506 let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
15051507 if ((depositVault == depositVault))
15061508 then {
15071509 let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, realizedFee], nil)
15081510 if ((notifyFee == notifyFee))
15091511 then {
15101512 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
15111513 if ((notifyNotional == notifyNotional))
15121514 then (((((if (isPartialClose)
15131515 then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp())
15141516 else deletePosition(_trader, _direction)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ (if ((marginToTrader > 0))
15151517 then withdraw(_traderAddress, marginToTrader)
15161518 else nil)) ++ updateBalance(ammNewBalance)) ++ transferFee(feeToStakers))
15171519 else throw("Strict value is not equal to itself.")
15181520 }
15191521 else throw("Strict value is not equal to itself.")
15201522 }
15211523 else throw("Strict value is not equal to itself.")
15221524 }
15231525 else throw("Strict value is not equal to itself.")
15241526 }
15251527 else throw("Strict value is not equal to itself.")
15261528 }
15271529 }
15281530 }
15291531 else throw("Strict value is not equal to itself.")
15301532 }
15311533 else throw("Strict value is not equal to itself.")
15321534 }
15331535 else throw("Strict value is not equal to itself.")
15341536 }
15351537
15361538
15371539
15381540 @Callable(i)
15391541 func liquidate (_trader,_direction,_priceUpdate) = {
15401542 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
15411543 if ((updateOracle == updateOracle))
15421544 then {
15431545 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
15441546 if ((sync == sync))
15451547 then {
15461548 let spotMarginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_SPOT)
15471549 let liquidationMarginRatio = if (isOverFluctuationLimit())
15481550 then {
15491551 let oracleMarginRatio = getMarginRatioByOption(_trader, _direction, PNL_OPTION_ORACLE)
15501552 vmax(spotMarginRatio, oracleMarginRatio)
15511553 }
15521554 else spotMarginRatio
15531555 if (if (if (if (if (!(requireMoreMarginRatio(liquidationMarginRatio, maintenanceMarginRatio(), false)))
15541556 then true
15551557 else !(requireOpenPosition(_trader, _direction)))
15561558 then true
15571559 else !(initialized()))
15581560 then true
15591561 else paused())
15601562 then true
15611563 else isMarketClosed())
15621564 then throw("Unable to liquidate")
15631565 else {
15641566 let isPartialLiquidation = if (if ((spotMarginRatio > liquidationFeeRatio()))
15651567 then (partialLiquidationRatio() > 0)
15661568 else false)
15671569 then (DECIMAL_UNIT > partialLiquidationRatio())
15681570 else false
15691571 let oldPositionSize = getPosition(_trader, _direction)._1
15701572 let positionSizeAbs = abs(oldPositionSize)
1571- let $t07412874451 = if (isPartialLiquidation)
1573+ let $t07421774540 = if (isPartialLiquidation)
15721574 then {
15731575 let liquidationSize = getPartialLiquidationAmount(_trader, oldPositionSize)
15741576 let liquidationRatio = divd(abs(liquidationSize), positionSizeAbs)
15751577 $Tuple2(liquidationRatio, abs(liquidationSize))
15761578 }
15771579 else $Tuple2(0, positionSizeAbs)
1578- let liquidationRatio = $t07412874451._1
1579- let liquidationSize = $t07412874451._2
1580- let $t07445775113 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
1580+ let liquidationRatio = $t07421774540._1
1581+ let liquidationSize = $t07421774540._2
1582+ let $t07454675202 = internalClosePosition(_trader, _direction, if (isPartialLiquidation)
15811583 then liquidationSize
15821584 else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true)
1583- let newPositionSize = $t07445775113._1
1584- let newPositionMargin = $t07445775113._2
1585- let newPositionOpenNotional = $t07445775113._3
1586- let newPositionLstUpdCPF = $t07445775113._4
1587- let positionBadDebt = $t07445775113._5
1588- let realizedPnl = $t07445775113._6
1589- let marginToTrader = $t07445775113._7
1590- let quoteAssetReserveAfter = $t07445775113._8
1591- let baseAssetReserveAfter = $t07445775113._9
1592- let totalPositionSizeAfter = $t07445775113._10
1593- let openInterestNotionalAfter = $t07445775113._11
1594- let totalLongAfter = $t07445775113._12
1595- let totalShortAfter = $t07445775113._13
1596- let totalLongOpenInterestAfter = $t07445775113._14
1597- let totalShortOpenInterestAfter = $t07445775113._15
1598- let liquidationPenalty = $t07445775113._16
1585+ let newPositionSize = $t07454675202._1
1586+ let newPositionMargin = $t07454675202._2
1587+ let newPositionOpenNotional = $t07454675202._3
1588+ let newPositionLstUpdCPF = $t07454675202._4
1589+ let positionBadDebt = $t07454675202._5
1590+ let realizedPnl = $t07454675202._6
1591+ let marginToTrader = $t07454675202._7
1592+ let quoteAssetReserveAfter = $t07454675202._8
1593+ let baseAssetReserveAfter = $t07454675202._9
1594+ let totalPositionSizeAfter = $t07454675202._10
1595+ let openInterestNotionalAfter = $t07454675202._11
1596+ let totalLongAfter = $t07454675202._12
1597+ let totalShortAfter = $t07454675202._13
1598+ let totalLongOpenInterestAfter = $t07454675202._14
1599+ let totalShortOpenInterestAfter = $t07454675202._15
1600+ let liquidationPenalty = $t07454675202._16
15991601 let feeToLiquidator = (liquidationPenalty / 2)
16001602 let feeToVault = (liquidationPenalty - feeToLiquidator)
16011603 let ammBalance = (cbalance() - liquidationPenalty)
16021604 let newAmmBalance = if ((0 > ammBalance))
16031605 then 0
16041606 else ammBalance
16051607 let lockBadDebt = if ((positionBadDebt > 0))
16061608 then {
16071609 let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [(positionBadDebt + liquidationPenalty)], nil)
16081610 if ((lockBadDebt == lockBadDebt))
16091611 then nil
16101612 else throw("Strict value is not equal to itself.")
16111613 }
16121614 else nil
16131615 if ((lockBadDebt == lockBadDebt))
16141616 then {
16151617 let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil)
16161618 if ((unstake == unstake))
16171619 then {
16181620 let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)])
16191621 if ((depositInsurance == depositInsurance))
16201622 then {
16211623 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil)
16221624 if ((notifyNotional == notifyNotional))
16231625 then ((((if (isPartialLiquidation)
16241626 then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp())
16251627 else deletePosition(_trader, _direction)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
16261628 else throw("Strict value is not equal to itself.")
16271629 }
16281630 else throw("Strict value is not equal to itself.")
16291631 }
16301632 else throw("Strict value is not equal to itself.")
16311633 }
16321634 else throw("Strict value is not equal to itself.")
16331635 }
16341636 }
16351637 else throw("Strict value is not equal to itself.")
16361638 }
16371639 else throw("Strict value is not equal to itself.")
16381640 }
16391641
16401642
16411643
16421644 @Callable(i)
16431645 func payFunding (_priceUpdate) = {
16441646 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
16451647 if ((updateOracle == updateOracle))
16461648 then {
16471649 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
16481650 if ((sync == sync))
16491651 then {
16501652 let fundingBlockTimestamp = nextFundingBlockTimestamp()
16511653 if (if (if ((fundingBlockTimestamp > lastTimestamp()))
16521654 then true
16531655 else !(initialized()))
16541656 then true
16551657 else paused())
16561658 then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp)))
16571659 else {
16581660 let underlyingPrice = getOraclePrice()
1659- let $t07733177409 = getFunding()
1660- let shortPremiumFraction = $t07733177409._1
1661- let longPremiumFraction = $t07733177409._2
1662- let premiumToVault = $t07733177409._3
1661+ let $t07742077498 = getFunding()
1662+ let shortPremiumFraction = $t07742077498._1
1663+ let longPremiumFraction = $t07742077498._2
1664+ let premiumToVault = $t07742077498._3
16631665 let doPayFundingToVault = if ((premiumToVault > 0))
16641666 then {
16651667 let doPayFundingToVault = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(premiumToVault)], nil)
16661668 if ((doPayFundingToVault == doPayFundingToVault))
16671669 then nil
16681670 else throw("Strict value is not equal to itself.")
16691671 }
16701672 else nil
16711673 if ((doPayFundingToVault == doPayFundingToVault))
16721674 then updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
16731675 else throw("Strict value is not equal to itself.")
16741676 }
16751677 }
16761678 else throw("Strict value is not equal to itself.")
16771679 }
16781680 else throw("Strict value is not equal to itself.")
16791681 }
16801682
16811683
16821684
16831685 @Callable(i)
16841686 func updateOracle (_priceUpdate) = if ((oracleMode() == ORACLE_PLAIN))
16851687 then nil
16861688 else {
16871689 let priceUpdates = split_4C(_priceUpdate, "::")
16881690 let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data")
16891691 let baseOracleAddress = baseOracle._1
16901692 let doUpdateBaseOracle = invoke(baseOracleAddress, "updateData", [priceUpdates[0]], nil)
16911693 if ((doUpdateBaseOracle == doUpdateBaseOracle))
16921694 then {
16931695 let quoteOracle = getOracleData(k_quoteOracle)
16941696 let doUpdateQuoteOracle = if (isDefined(quoteOracle))
16951697 then {
16961698 let quoteOracleV = value(quoteOracle)
16971699 let quoteOracleAddress = quoteOracleV._1
16981700 let doUpdateQuoteOracle = invoke(quoteOracleAddress, "updateData", [priceUpdates[1]], nil)
16991701 if ((doUpdateQuoteOracle == doUpdateQuoteOracle))
17001702 then nil
17011703 else throw("Strict value is not equal to itself.")
17021704 }
17031705 else nil
17041706 if ((doUpdateQuoteOracle == doUpdateQuoteOracle))
17051707 then nil
17061708 else throw("Strict value is not equal to itself.")
17071709 }
17081710 else throw("Strict value is not equal to itself.")
17091711 }
17101712
17111713
17121714
17131715 @Callable(i)
17141716 func syncTerminalPriceToOracle () = {
17151717 let _qtAstR = qtAstR()
17161718 let _bsAstR = bsAstR()
1717- let $t07923279598 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1718- let newQuoteAssetWeight = $t07923279598._1
1719- let newBaseAssetWeight = $t07923279598._2
1720- let marginToVault = $t07923279598._3
1719+ let $t07932179687 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR)
1720+ let newQuoteAssetWeight = $t07932179687._1
1721+ let newBaseAssetWeight = $t07932179687._2
1722+ let marginToVault = $t07932179687._3
17211723 let marginToVaultAdj = if (if ((0 > marginToVault))
17221724 then (abs(marginToVault) > cbalance())
17231725 else false)
17241726 then -(cbalance())
17251727 else marginToVault
17261728 let doExchangePnL = if ((marginToVaultAdj != 0))
17271729 then {
17281730 let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVaultAdj], nil)
17291731 if ((doExchangePnL == doExchangePnL))
17301732 then nil
17311733 else throw("Strict value is not equal to itself.")
17321734 }
17331735 else nil
17341736 if ((doExchangePnL == doExchangePnL))
17351737 then (updateBalance((cbalance() + marginToVaultAdj)) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight))
17361738 else throw("Strict value is not equal to itself.")
17371739 }
17381740
17391741
17401742
17411743 @Callable(i)
17421744 func ensureCalledOnce () = if ((i.caller != this))
17431745 then throw("Invalid saveCurrentTxId parameters")
17441746 else {
17451747 let txId = toBase58String(i.transactionId)
17461748 let lastTx = valueOrElse(getString(this, k_lastTx), "")
17471749 if ((lastTx != txId))
17481750 then [StringEntry(k_lastTx, txId)]
17491751 else throw("Can not call vAMM methods twice in one tx")
17501752 }
17511753
17521754
17531755
17541756 @Callable(i)
17551757 func migratePosition (_trader) = {
17561758 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
17571759 if (if (isDefined(positionSizeOpt))
17581760 then isDefined(addressFromString(_trader))
17591761 else false)
17601762 then {
17611763 let pSize = getIntegerValue(this, toCompositeKey(k_positionSize, _trader))
17621764 let pMargin = getIntegerValue(this, toCompositeKey(k_positionMargin, _trader))
17631765 let pNotional = getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader))
17641766 let pFraction = getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader))
17651767 let pTimestamp = valueOrElse(getInteger(this, toCompositeKey(k_positionLastUpdatedTimestamp, _trader)), lastBlock.timestamp)
17661768 let pFee = valueOrElse(getInteger(this, toCompositeKey(k_positionFee, _trader)), fee())
17671769 let pSequence = getIntegerValue(this, toCompositeKey(k_positionSequence, _trader))
17681770 let pDirection = getDirection(pSize)
17691771 let positionKey = ((_trader + "_") + toString(pDirection))
17701772 [DeleteEntry(toCompositeKey(k_positionSize, _trader)), DeleteEntry(toCompositeKey(k_positionMargin, _trader)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _trader)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)), DeleteEntry(toCompositeKey(k_positionLastUpdatedTimestamp, _trader)), DeleteEntry(toCompositeKey(k_positionFee, _trader)), DeleteEntry(toCompositeKey(k_positionSequence, _trader)), IntegerEntry(toCompositeKey(k_positionSize, positionKey), pSize), IntegerEntry(toCompositeKey(k_positionMargin, positionKey), pMargin), IntegerEntry(toCompositeKey(k_positionOpenNotional, positionKey), pNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, positionKey), pFraction), IntegerEntry(toCompositeKey(k_positionLastUpdatedTimestamp, positionKey), pTimestamp), IntegerEntry(toCompositeKey(k_positionFee, positionKey), pFee), IntegerEntry(toCompositeKey(k_positionSequence, positionKey), pSequence)]
17711773 }
17721774 else throw(("Nothing to migrate for " + _trader))
17731775 }
17741776
17751777
17761778
17771779 @Callable(i)
17781780 func view_calcRemainMarginWithFundingPayment (_trader,_direction,_priceUpdate) = {
17791781 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
17801782 if ((updateOracle == updateOracle))
17811783 then {
17821784 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
17831785 if ((sync == sync))
17841786 then {
1785- let $t08339283528 = getPosition(_trader, _direction)
1786- let positionSize = $t08339283528._1
1787- let positionMargin = $t08339283528._2
1788- let pon = $t08339283528._3
1789- let positionLstUpdCPF = $t08339283528._4
1790- let positionTimestamp = $t08339283528._5
1791- let $t08353183644 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1792- let positionNotional = $t08353183644._1
1793- let unrealizedPnl = $t08353183644._2
1794- let $t08364783871 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1795- let remainMargin = $t08364783871._1
1796- let badDebt = $t08364783871._2
1797- let fundingPayment = $t08364783871._3
1798- let rolloverFee = $t08364783871._4
1787+ let $t08348183617 = getPosition(_trader, _direction)
1788+ let positionSize = $t08348183617._1
1789+ let positionMargin = $t08348183617._2
1790+ let pon = $t08348183617._3
1791+ let positionLstUpdCPF = $t08348183617._4
1792+ let positionTimestamp = $t08348183617._5
1793+ let $t08362083733 = getPositionNotionalAndUnrealizedPnl(_trader, _direction, PNL_OPTION_SPOT)
1794+ let positionNotional = $t08362083733._1
1795+ let unrealizedPnl = $t08362083733._2
1796+ let $t08373683960 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl)
1797+ let remainMargin = $t08373683960._1
1798+ let badDebt = $t08373683960._2
1799+ let fundingPayment = $t08373683960._3
1800+ let rolloverFee = $t08373683960._4
17991801 throw(((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader, _direction))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee)))
18001802 }
18011803 else throw("Strict value is not equal to itself.")
18021804 }
18031805 else throw("Strict value is not equal to itself.")
18041806 }
18051807
18061808
18071809
18081810 @Callable(i)
18091811 func view_getPegAdjustCost (_price) = {
18101812 let _qtAstR = qtAstR()
18111813 let _bsAstR = bsAstR()
18121814 let result = getSyncTerminalPrice(_price, _qtAstR, _bsAstR)
18131815 throw(toString(result._3))
18141816 }
18151817
18161818
18171819
18181820 @Callable(i)
18191821 func view_getTerminalAmmPrice () = {
1820- let $t08460684687 = getTerminalAmmState()
1821- let terminalQuoteAssetReserve = $t08460684687._1
1822- let terminalBaseAssetReserve = $t08460684687._2
1822+ let $t08469584776 = getTerminalAmmState()
1823+ let terminalQuoteAssetReserve = $t08469584776._1
1824+ let terminalBaseAssetReserve = $t08469584776._2
18231825 let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW()))
18241826 throw(toString(price))
18251827 }
18261828
18271829
18281830
18291831 @Callable(i)
18301832 func view_getFunding (_priceUpdate) = {
18311833 let updateOracle = invoke(this, "updateOracle", [_priceUpdate], nil)
18321834 if ((updateOracle == updateOracle))
18331835 then {
18341836 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18351837 if ((sync == sync))
18361838 then {
18371839 let underlyingPrice = getOraclePrice()
1838- let $t08533985417 = getFunding()
1839- let shortPremiumFraction = $t08533985417._1
1840- let longPremiumFraction = $t08533985417._2
1841- let premiumToVault = $t08533985417._3
1840+ let $t08542885506 = getFunding()
1841+ let shortPremiumFraction = $t08542885506._1
1842+ let longPremiumFraction = $t08542885506._2
1843+ let premiumToVault = $t08542885506._3
18421844 let longFunding = divd(longPremiumFraction, underlyingPrice)
18431845 let shortFunding = divd(shortPremiumFraction, underlyingPrice)
18441846 throw(((((s(longFunding) + s(shortFunding)) + s(getSpotPrice())) + s(getOraclePrice())) + s(premiumToVault)))
18451847 }
18461848 else throw("Strict value is not equal to itself.")
18471849 }
18481850 else throw("Strict value is not equal to itself.")
18491851 }
18501852
18511853
18521854
18531855 @Callable(i)
18541856 func computeSpotPrice () = {
18551857 let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil)
18561858 if ((sync == sync))
18571859 then {
18581860 let result = getSpotPrice()
18591861 $Tuple2(nil, result)
18601862 }
18611863 else throw("Strict value is not equal to itself.")
18621864 }
18631865
18641866
18651867
18661868 @Callable(i)
18671869 func computeFeeForTraderWithArtifact (_trader,_artifactId) = {
18681870 let result = getForTraderWithArtifact(_trader, _artifactId)
18691871 $Tuple2(nil, result)
18701872 }
18711873
18721874
18731875 @Verifier(tx)
18741876 func verify () = {
18751877 let coordinatorStr = getString(this, k_coordinatorAddress)
18761878 if (isDefined(coordinatorStr))
18771879 then {
18781880 let admin = getString(addressFromStringValue(value(coordinatorStr)), k_admin_address)
18791881 if (isDefined(admin))
18801882 then valueOrElse(getBoolean(addressFromStringValue(value(admin)), ((("status_" + toString(this)) + "_") + toBase58String(tx.id))), false)
18811883 else throw("unable to verify: admin not set in coordinator")
18821884 }
18831885 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
18841886 }
18851887

github/deemru/w8io/026f985 
286.44 ms