tx · y2xAZqHSSZoMLkEiTRrbdVA3ek1zEzksZQPpDnKufjP

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.03700000 Waves

2023.01.24 10:20 [2418734] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "y2xAZqHSSZoMLkEiTRrbdVA3ek1zEzksZQPpDnKufjP", "fee": 3700000, "feeAssetId": null, "timestamp": 1674544816649, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "2Q2QowN5fCdeYbHvJXqxhAKtR1LW7E8L1goAo666Edo97Cydh7nkXMGnRFshUmbPW3EdjNmtbdcfnKSEMz78piBy" ], "script": "base64:BgKJKQgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJUHJpY2VBc0lkIg9pZHhGY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ZGjod Next: QhyD6sxJaRxskakWGM7NJJ152C6U4LaAZjFyP5JjMEg Diff:
OldNewDifferences
620620
621621
622622 func validateMatcherOrderAllowed (order) = {
623+ let amountAssetBalance = getAccBalance(assetIdToString(cfgAmountAssetId))
624+ let priceAssetBalance = getAccBalance(assetIdToString(cfgPriceAssetId))
623625 let amountAssetAmount = order.amount
624626 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
625- let $t02453624748 = if ((order.orderType == Buy))
627+ let $t02469024902 = if ((order.orderType == Buy))
626628 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
627629 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
628- let amountAssetBalanceDelta = $t02453624748._1
629- let priceAssetBalanceDelta = $t02453624748._2
630+ let amountAssetBalanceDelta = $t02469024902._1
631+ let priceAssetBalanceDelta = $t02469024902._2
630632 if (if (if (igs())
631633 then true
632634 else (cfgPoolStatus == PoolMatcherDis))
639641 then throw("Wr assets")
640642 else {
641643 let dLp = parseBigIntValue(valueOrElse(getString(this, keyDLp), "0"))
642- let $t02509025190 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
643- let unusedActions = $t02509025190._1
644- let dLpNew = $t02509025190._2
644+ let $t02524425344 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
645+ let unusedActions = $t02524425344._1
646+ let dLpNew = $t02524425344._2
645647 let isOrderValid = (dLpNew >= dLp)
646- let info = makeString([toString(dLp), toString(dLpNew)], " ")
648+ let info = makeString(["dLp=", toString(dLp), " dLpNew=", toString(dLpNew), " amountAssetBalance=", toString(amountAssetBalance), " priceAssetBalance=", toString(priceAssetBalance), " amountAssetBalanceDelta=", toString(amountAssetBalanceDelta), " priceAssetBalanceDelta=", toString(priceAssetBalanceDelta)], "")
647649 $Tuple2(isOrderValid, info)
648650 }
649651 }
695697 then {
696698 let amBalance = getAccBalance(amId)
697699 let prBalance = getAccBalance(prId)
698- let $t02754228004 = if ((txId == ""))
700+ let $t02796528427 = if ((txId == ""))
699701 then $Tuple2(amBalance, prBalance)
700702 else if ((pmtAssetId == amId))
701703 then if ((pmtAmtRaw > amBalance))
706708 then throw("invalid payment amount")
707709 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
708710 else throw("wrong pmtAssetId")
709- let amBalanceOld = $t02754228004._1
710- let prBalanceOld = $t02754228004._2
711- let $t02801028186 = if ((pmtAssetId == amId))
711+ let amBalanceOld = $t02796528427._1
712+ let prBalanceOld = $t02796528427._2
713+ let $t02843328609 = if ((pmtAssetId == amId))
712714 then $Tuple2(pmtAmtRaw, 0)
713715 else if ((pmtAssetId == prId))
714716 then $Tuple2(0, pmtAmtRaw)
715717 else throw("invalid payment")
716- let amAmountRaw = $t02801028186._1
717- let prAmountRaw = $t02801028186._2
718- let $t02819028444 = if (withTakeFee)
718+ let amAmountRaw = $t02843328609._1
719+ let prAmountRaw = $t02843328609._2
720+ let $t02861328867 = if (withTakeFee)
719721 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
720722 else $Tuple3(amAmountRaw, prAmountRaw, 0)
721- let amAmount = $t02819028444._1
722- let prAmount = $t02819028444._2
723- let feeAmount = $t02819028444._3
723+ let amAmount = $t02861328867._1
724+ let prAmount = $t02861328867._2
725+ let feeAmount = $t02861328867._3
724726 let amBalanceNew = (amBalanceOld + amAmount)
725727 let prBalanceNew = (prBalanceOld + prAmount)
726728 let D0 = getD([t1(amBalanceOld, cfgAmountAssetDecimals), t1(prBalanceOld, cfgPriceAssetDecimals)])
768770 else {
769771 let amBalance = getAccBalance(amId)
770772 let prBalance = getAccBalance(prId)
771- let $t03055630667 = {
773+ let $t03097931090 = {
772774 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
773775 if ($isInstanceOf(@, "(Int, Int)"))
774776 then @
775777 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
776778 }
777- if (($t03055630667 == $t03055630667))
779+ if (($t03097931090 == $t03097931090))
778780 then {
779- let feeAmount = $t03055630667._2
780- let totalGet = $t03055630667._1
781+ let feeAmount = $t03097931090._2
782+ let totalGet = $t03097931090._1
781783 let totalAmount = if (if ((minOutAmount > 0))
782784 then (minOutAmount > totalGet)
783785 else false)
784786 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
785787 else totalGet
786- let $t03085731164 = if ((outAssetId == amId))
788+ let $t03128031587 = if ((outAssetId == amId))
787789 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
788790 else if ((outAssetId == prId))
789791 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
790792 else throw("invalid out asset id")
791- let outAm = $t03085731164._1
792- let outPr = $t03085731164._2
793- let amBalanceNew = $t03085731164._3
794- let prBalanceNew = $t03085731164._4
793+ let outAm = $t03128031587._1
794+ let outPr = $t03128031587._2
795+ let amBalanceNew = $t03128031587._3
796+ let prBalanceNew = $t03128031587._4
795797 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
796798 let curPr = f1(curPrX18, scale8)
797799 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
806808 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
807809 if ((burn == burn))
808810 then {
809- let $t03194932299 = {
811+ let $t03237232722 = {
810812 let feeAmountForCalc = if ((this == feeCollectorAddress))
811813 then 0
812814 else feeAmount
817819 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
818820 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
819821 }
820- let amountAssetBalanceDelta = $t03194932299._1
821- let priceAssetBalanceDelta = $t03194932299._2
822- let $t03230232410 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
823- let refreshDLpActions = $t03230232410._1
824- let updatedDLp = $t03230232410._2
822+ let amountAssetBalanceDelta = $t03237232722._1
823+ let priceAssetBalanceDelta = $t03237232722._2
824+ let $t03272532833 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
825+ let refreshDLpActions = $t03272532833._1
826+ let updatedDLp = $t03272532833._2
825827 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
826828 if ((isUpdatedDLpValid == isUpdatedDLpValid))
827829 then $Tuple2((state ++ refreshDLpActions), totalAmount)
990992 else throw("Strict value is not equal to itself.")
991993 }
992994 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
993- let $t03655936701 = refreshDLpInternal(0, 0, 0)
994- let refreshDLpActions = $t03655936701._1
995- let updatedDLp = $t03655936701._2
995+ let $t03698237124 = refreshDLpInternal(0, 0, 0)
996+ let refreshDLpActions = $t03698237124._1
997+ let updatedDLp = $t03698237124._2
996998 let check = if ((updatedDLp >= currentDLp))
997999 then true
9981000 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
10651067 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10661068 if ((currentDLp == currentDLp))
10671069 then {
1068- let $t03834238500 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1069- if (($t03834238500 == $t03834238500))
1070+ let $t03876538923 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1071+ if (($t03876538923 == $t03876538923))
10701072 then {
1071- let feeAmount = $t03834238500._3
1072- let state = $t03834238500._2
1073- let estimLP = $t03834238500._1
1073+ let feeAmount = $t03876538923._3
1074+ let state = $t03876538923._2
1075+ let estimLP = $t03876538923._1
10741076 let emitLpAmt = if (if ((minOutAmount > 0))
10751077 then (minOutAmount > estimLP)
10761078 else false)
10981100 let sendFeeToMatcher = if ((feeAmount > 0))
10991101 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11001102 else nil
1101- let $t03931539664 = if ((this == feeCollectorAddress))
1103+ let $t03973840087 = if ((this == feeCollectorAddress))
11021104 then $Tuple2(0, 0)
11031105 else {
11041106 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11081110 then $Tuple2(-(feeAmount), 0)
11091111 else $Tuple2(0, -(feeAmount))
11101112 }
1111- let amountAssetBalanceDelta = $t03931539664._1
1112- let priceAssetBalanceDelta = $t03931539664._2
1113- let $t03966739775 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1114- let refreshDLpActions = $t03966739775._1
1115- let updatedDLp = $t03966739775._2
1113+ let amountAssetBalanceDelta = $t03973840087._1
1114+ let priceAssetBalanceDelta = $t03973840087._2
1115+ let $t04009040198 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1116+ let refreshDLpActions = $t04009040198._1
1117+ let updatedDLp = $t04009040198._2
11161118 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11171119 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11181120 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11441146 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11451147 if ((currentDLp == currentDLp))
11461148 then {
1147- let $t04080540870 = refreshDLpInternal(0, 0, 0)
1148- let refreshDLpActions = $t04080540870._1
1149- let updatedDLp = $t04080540870._2
1149+ let $t04122841293 = refreshDLpInternal(0, 0, 0)
1150+ let refreshDLpActions = $t04122841293._1
1151+ let updatedDLp = $t04122841293._2
11501152 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11511153 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11521154 then (state ++ refreshDLpActions)
11711173 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11721174 if ((b == b))
11731175 then {
1174- let $t04204342125 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1175- let refreshDLpActions = $t04204342125._1
1176- let updatedDLp = $t04204342125._2
1176+ let $t04246642548 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1177+ let refreshDLpActions = $t04246642548._1
1178+ let updatedDLp = $t04246642548._2
11771179 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11781180 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11791181 then (state ++ refreshDLpActions)
12081210 else throwErr("exactly 1 payment are expected")]
12091211 if ((checks == checks))
12101212 then {
1211- let $t04274342898 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1212- let state = $t04274342898._1
1213- let totalAmount = $t04274342898._2
1213+ let $t04316643321 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1214+ let state = $t04316643321._1
1215+ let totalAmount = $t04316643321._2
12141216 $Tuple2(state, totalAmount)
12151217 }
12161218 else throw("Strict value is not equal to itself.")
12271229 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12281230 then {
12291231 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1230- let $t04342243486 = refreshDLpInternal(0, 0, 0)
1231- let dLpUpdateActions = $t04342243486._1
1232- let updatedDLp = $t04342243486._2
1232+ let $t04384543909 = refreshDLpInternal(0, 0, 0)
1233+ let dLpUpdateActions = $t04384543909._1
1234+ let updatedDLp = $t04384543909._2
12331235 let actions = if ((dLp != updatedDLp))
12341236 then dLpUpdateActions
12351237 else throwErr("nothing to refresh")
12571259 let newY = getYD(xp, index, D1)
12581260 let dy = (xp[index] - newY)
12591261 let totalGetRaw = max([0, toInt((dy - big1))])
1260- let $t04441644471 = takeFee(totalGetRaw, outFee)
1261- let totalGet = $t04441644471._1
1262- let feeAmount = $t04441644471._2
1262+ let $t04483944894 = takeFee(totalGetRaw, outFee)
1263+ let totalGet = $t04483944894._1
1264+ let feeAmount = $t04483944894._2
12631265 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12641266 }
12651267
12721274 let lpId = toBase58String(value(cfgLpAssetId))
12731275 let amBalance = getAccBalance(amId)
12741276 let prBalance = getAccBalance(prId)
1275- let $t04484644961 = {
1277+ let $t04526945384 = {
12761278 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12771279 if ($isInstanceOf(@, "(Int, Int)"))
12781280 then @
12791281 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12801282 }
1281- let totalGet = $t04484644961._1
1282- let feeAmount = $t04484644961._2
1283+ let totalGet = $t04526945384._1
1284+ let feeAmount = $t04526945384._2
12831285 let r = ego("", lpId, lpAssetAmount, this)
12841286 let outAmAmt = r._1
12851287 let outPrAmt = r._2
13131315 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13141316 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13151317 then {
1316- let $t04612746208 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1317- let refreshDLpActions = $t04612746208._1
1318- let updatedDLp = $t04612746208._2
1318+ let $t04655046631 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1319+ let refreshDLpActions = $t04655046631._1
1320+ let updatedDLp = $t04655046631._2
13191321 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13201322 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13211323 then (state ++ refreshDLpActions)
13601362 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13611363 if ((burnA == burnA))
13621364 then {
1363- let $t04723547316 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1364- let refreshDLpActions = $t04723547316._1
1365- let updatedDLp = $t04723547316._2
1365+ let $t04765847739 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1366+ let refreshDLpActions = $t04765847739._1
1367+ let updatedDLp = $t04765847739._2
13661368 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13671369 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13681370 then (state ++ refreshDLpActions)
14131415 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14141416 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14151417 then {
1416- let $t04856748648 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1417- let refreshDLpActions = $t04856748648._1
1418- let updatedDLp = $t04856748648._2
1418+ let $t04899049071 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1419+ let refreshDLpActions = $t04899049071._1
1420+ let updatedDLp = $t04899049071._2
14191421 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14201422 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14211423 then (state ++ refreshDLpActions)
14621464 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14631465 if ((unstakeInv == unstakeInv))
14641466 then {
1465- let $t04954349731 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1466- let state = $t04954349731._1
1467- let totalAmount = $t04954349731._2
1467+ let $t04996650154 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1468+ let state = $t04996650154._1
1469+ let totalAmount = $t04996650154._2
14681470 $Tuple2(state, totalAmount)
14691471 }
14701472 else throw("Strict value is not equal to itself.")
14761478
14771479 @Callable(i)
14781480 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
1479- let $t04985949962 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1480- let lpAmount = $t04985949962._1
1481- let state = $t04985949962._2
1482- let feeAmount = $t04985949962._3
1483- let bonus = $t04985949962._4
1481+ let $t05028250385 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1482+ let lpAmount = $t05028250385._1
1483+ let state = $t05028250385._2
1484+ let feeAmount = $t05028250385._3
1485+ let bonus = $t05028250385._4
14841486 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14851487 }
14861488
14881490
14891491 @Callable(i)
14901492 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
1491- let $t05011050214 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1492- let lpAmount = $t05011050214._1
1493- let state = $t05011050214._2
1494- let feeAmount = $t05011050214._3
1495- let bonus = $t05011050214._4
1493+ let $t05053350637 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1494+ let lpAmount = $t05053350637._1
1495+ let state = $t05053350637._2
1496+ let feeAmount = $t05053350637._3
1497+ let bonus = $t05053350637._4
14961498 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14971499 }
14981500
15771579 match tx {
15781580 case order: Order =>
15791581 let matcherPub = mp()
1580- let $t05300653075 = validateMatcherOrderAllowed(order)
1581- let orderValid = $t05300653075._1
1582- let orderValidInfo = $t05300653075._2
1582+ let $t05342953498 = validateMatcherOrderAllowed(order)
1583+ let orderValid = $t05342953498._1
1584+ let orderValidInfo = $t05342953498._2
15831585 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15841586 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15851587 if (if (if (orderValid)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let scale8 = 100000000
55
66 let scale8BigInt = toBigInt(100000000)
77
88 let scale18 = toBigInt(1000000000000000000)
99
1010 let zeroBigInt = toBigInt(0)
1111
1212 let big0 = toBigInt(0)
1313
1414 let big1 = toBigInt(1)
1515
1616 let big2 = toBigInt(2)
1717
1818 let big3 = toBigInt(3)
1919
2020 let big4 = toBigInt(4)
2121
2222 let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8)))
2323
2424 let wavesString = "WAVES"
2525
2626 let Amult = "100"
2727
2828 let Dconv = "1"
2929
3030 let SEP = "__"
3131
3232 let EMPTY = ""
3333
3434 let PoolActive = 1
3535
3636 let PoolPutDis = 2
3737
3838 let PoolMatcherDis = 3
3939
4040 let PoolShutdown = 4
4141
4242 let idxPoolAddress = 1
4343
4444 let idxPoolSt = 2
4545
4646 let idxLPAsId = 3
4747
4848 let idxAmAsId = 4
4949
5050 let idxPrAsId = 5
5151
5252 let idxAmtAsDcm = 6
5353
5454 let idxPriceAsDcm = 7
5555
5656 let idxIAmtAsId = 8
5757
5858 let idxIPriceAsId = 9
5959
6060 let idxFactStakCntr = 1
6161
6262 let idxFactoryRestCntr = 6
6363
6464 let idxFactSlippCntr = 7
6565
6666 let idxFactGwxRewCntr = 10
6767
6868 let feeDefault = fraction(10, scale8, 10000)
6969
7070 func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
7171
7272
7373 func t1BigInt (origVal,origScaleMult) = fraction(origVal, scale18, origScaleMult)
7474
7575
7676 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
7777
7878
7979 func fromX18Round (val,resultScaleMult,round) = toInt(fraction(val, toBigInt(resultScaleMult), scale18, round))
8080
8181
8282 func t2 (origVal,origScaleMult) = fraction(origVal, scale18, toBigInt(origScaleMult))
8383
8484
8585 func f2 (val,resultScaleMult) = fraction(val, toBigInt(resultScaleMult), scale18)
8686
8787
8888 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
8989
9090
9191 func abs (val) = if ((zeroBigInt > val))
9292 then -(val)
9393 else val
9494
9595
9696 func absBigInt (val) = if ((zeroBigInt > val))
9797 then -(val)
9898 else val
9999
100100
101101 func fc () = "%s__factoryContract"
102102
103103
104104 func mpk () = "%s__managerPublicKey"
105105
106106
107107 func pmpk () = "%s__pendingManagerPublicKey"
108108
109109
110110 func pl () = "%s%s__price__last"
111111
112112
113113 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
114114
115115
116116 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
117117
118118
119119 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
120120
121121
122122 func aa () = "%s__amountAsset"
123123
124124
125125 func pa () = "%s__priceAsset"
126126
127127
128128 func amp () = "%s__amp"
129129
130130
131131 func ada () = "%s__addonAddr"
132132
133133
134134 let keyFee = "%s__fee"
135135
136136 let fee = valueOrElse(getInteger(this, keyFee), feeDefault)
137137
138138 let keyDLp = makeString(["%s", "dLp"], SEP)
139139
140140 let keyDLpRefreshedHeight = makeString(["%s", "dLpRefreshedHeight"], SEP)
141141
142142 let keyDLpRefreshDelay = makeString(["%s", "refreshDLpDelay"], SEP)
143143
144144 let dLpRefreshDelayDefault = 30
145145
146146 let dLpRefreshDelay = valueOrElse(getInteger(this, keyDLpRefreshDelay), dLpRefreshDelayDefault)
147147
148148 func fcfg () = "%s__factoryConfig"
149149
150150
151151 func mtpk () = "%s%s__matcher__publicKey"
152152
153153
154154 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
155155
156156
157157 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
158158
159159
160160 func aps () = "%s__shutdown"
161161
162162
163163 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
164164
165165
166166 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
167167
168168
169169 func throwOrderError (orderValid,orderValidInfo,senderValid,matcherValid) = throw((((((((("order validation failed: orderValid=" + toString(orderValid)) + " (") + orderValidInfo) + ")") + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid)))
170170
171171
172172 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
173173
174174
175175 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
176176
177177
178178 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
179179
180180
181181 func fmtErr (msg) = makeString(["lp_stable.ride:", msg], " ")
182182
183183
184184 let fca = addressFromStringValue(strf(this, fc()))
185185
186186 let inFee = {
187187 let @ = invoke(fca, "getInFeeREADONLY", [toString(this)], nil)
188188 if ($isInstanceOf(@, "Int"))
189189 then @
190190 else throw(($getType(@) + " couldn't be cast to Int"))
191191 }
192192
193193 let outFee = {
194194 let @ = invoke(fca, "getOutFeeREADONLY", [toString(this)], nil)
195195 if ($isInstanceOf(@, "Int"))
196196 then @
197197 else throw(($getType(@) + " couldn't be cast to Int"))
198198 }
199199
200200 let A = strf(this, amp())
201201
202202 func igs () = valueOrElse(getBoolean(fca, aps()), false)
203203
204204
205205 func mp () = fromBase58String(strf(fca, mtpk()))
206206
207207
208208 let feeCollectorAddress = addressFromStringValue(strf(fca, keyFeeCollectorAddress()))
209209
210210 func gpc () = {
211211 let amtAs = strf(this, aa())
212212 let priceAs = strf(this, pa())
213213 let iPriceAs = intf(fca, mba(priceAs))
214214 let iAmtAs = intf(fca, mba(amtAs))
215215 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
216216 }
217217
218218
219219 func parseAssetId (input) = if ((input == wavesString))
220220 then unit
221221 else fromBase58String(input)
222222
223223
224224 func assetIdToString (input) = if ((input == unit))
225225 then wavesString
226226 else toBase58String(value(input))
227227
228228
229229 func parsePoolConfig (poolConfig) = $Tuple9(addressFromStringValue(poolConfig[idxPoolAddress]), parseIntValue(poolConfig[idxPoolSt]), fromBase58String(poolConfig[idxLPAsId]), parseAssetId(poolConfig[idxAmAsId]), parseAssetId(poolConfig[idxPrAsId]), parseIntValue(poolConfig[idxAmtAsDcm]), parseIntValue(poolConfig[idxPriceAsDcm]), fromBase58String(poolConfig[idxIAmtAsId]), fromBase58String(poolConfig[idxIPriceAsId]))
230230
231231
232232 let poolConfigParsed = parsePoolConfig(gpc())
233233
234234 let $t079658194 = poolConfigParsed
235235
236236 let cfgPoolAddress = $t079658194._1
237237
238238 let cfgPoolStatus = $t079658194._2
239239
240240 let cfgLpAssetId = $t079658194._3
241241
242242 let cfgAmountAssetId = $t079658194._4
243243
244244 let cfgPriceAssetId = $t079658194._5
245245
246246 let cfgAmountAssetDecimals = $t079658194._6
247247
248248 let cfgPriceAssetDecimals = $t079658194._7
249249
250250 let cfgInAmountAssedId = $t079658194._8
251251
252252 let cfgInPriceAssetId = $t079658194._9
253253
254254 func gfc () = split(strf(fca, fcfg()), SEP)
255255
256256
257257 let factoryConfig = gfc()
258258
259259 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
260260
261261 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
262262
263263 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
264264
265265 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
266266
267267 func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slipByUser,slippageReal,txHeight,txTimestamp,slipageAmAmt,slipagePrAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slipByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP)
268268
269269
270270 func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP)
271271
272272
273273 func getAccBalance (assetId) = if ((assetId == "WAVES"))
274274 then wavesBalance(this).available
275275 else assetBalance(this, fromBase58String(assetId))
276276
277277
278278 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
279279
280280
281281 func cpbir (prAmtX18,amAmtX18,round) = fraction(prAmtX18, scale18, amAmtX18, round)
282282
283283
284284 func vad (A1,A2,slippage) = {
285285 let diff = fraction((A1 - A2), scale8BigInt, A2)
286286 let pass = ((slippage - abs(diff)) > zeroBigInt)
287287 if (!(pass))
288288 then throw(("Big slpg: " + toString(diff)))
289289 else $Tuple2(pass, min([A1, A2]))
290290 }
291291
292292
293293 func vd (D1,D0,slpg) = {
294294 let diff = fraction(D0, scale8BigInt, D1)
295295 let fail = (slpg > diff)
296296 if (if (fail)
297297 then true
298298 else (D0 > D1))
299299 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
300300 else fail
301301 }
302302
303303
304304 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
305305 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
306306 let prAsAmtX18 = t1(prAmt, prAssetDcm)
307307 cpbi(prAsAmtX18, amtAsAmtX18)
308308 }
309309
310310
311311 func calcPrices (amAmt,prAmt,lpAmt) = {
312312 let amtAsDcm = cfgAmountAssetDecimals
313313 let prAsDcm = cfgPriceAssetDecimals
314314 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
315315 let amAmtX18 = t1(amAmt, amtAsDcm)
316316 let prAmtX18 = t1(prAmt, prAsDcm)
317317 let lpAmtX18 = t1(lpAmt, scale8)
318318 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
319319 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
320320 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
321321 }
322322
323323
324324 func calculatePrices (amAmt,prAmt,lpAmt) = {
325325 let p = calcPrices(amAmt, prAmt, lpAmt)
326326 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
327327 }
328328
329329
330330 func takeFee (amount,fee) = {
331331 let feeAmount = if ((fee == 0))
332332 then 0
333333 else fraction(amount, fee, scale8)
334334 $Tuple2((amount - feeAmount), feeAmount)
335335 }
336336
337337
338338 func getD (xp) = {
339339 let xp0 = xp[0]
340340 let xp1 = xp[1]
341341 let s = (xp0 + xp1)
342342 if ((s == big0))
343343 then big0
344344 else {
345345 let a = parseIntValue(A)
346346 let ann = (a * 2)
347347 let p = fraction(xp0, xp1, big1)
348348 let xp0_xp1_n_n = fraction(p, big4, big1)
349349 let ann_s = fraction(toBigInt(ann), s, big1)
350350 let ann_1 = toBigInt((ann - 1))
351351 func calcDNext (d) = {
352352 let dd = fraction(d, d, big1)
353353 let ddd = fraction(dd, d, big1)
354354 let dp = fraction(ddd, big1, xp0_xp1_n_n)
355355 fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)))
356356 }
357357
358358 func calc (acc,i) = if (acc._2)
359359 then acc
360360 else {
361361 let d = acc._1
362362 let dNext = calcDNext(d)
363363 let dDiffRaw = (dNext - value(d))
364364 let dDiff = if ((big0 > dDiffRaw))
365365 then -(dDiffRaw)
366366 else dDiffRaw
367367 if ((big1 >= dDiff))
368368 then $Tuple2(dNext, true)
369369 else $Tuple2(dNext, false)
370370 }
371371
372372 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
373373 let $t01269112739 = {
374374 let $l = arr
375375 let $s = size($l)
376376 let $acc0 = $Tuple2(s, false)
377377 func $f0_1 ($a,$i) = if (($i >= $s))
378378 then $a
379379 else calc($a, $l[$i])
380380
381381 func $f0_2 ($a,$i) = if (($i >= $s))
382382 then $a
383383 else throw("List size exceeds 15")
384384
385385 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
386386 }
387387 let d = $t01269112739._1
388388 let found = $t01269112739._2
389389 if (found)
390390 then d
391391 else throw(("D calculation error, D = " + toString(d)))
392392 }
393393 }
394394
395395
396396 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
397397 let lpId = cfgLpAssetId
398398 let amId = toBase58String(value(cfgAmountAssetId))
399399 let prId = toBase58String(value(cfgPriceAssetId))
400400 let amDcm = cfgAmountAssetDecimals
401401 let prDcm = cfgPriceAssetDecimals
402402 let sts = toString(cfgPoolStatus)
403403 let lpEmiss = valueOrErrorMessage(assetInfo(lpId), "Wrong LP id").quantity
404404 if ((toBase58String(lpId) != pmtAssetId))
405405 then throw("Wrong pmt asset")
406406 else {
407407 let amBalance = getAccBalance(amId)
408408 let amBalanceX18 = t1(amBalance, amDcm)
409409 let prBalance = getAccBalance(prId)
410410 let prBalanceX18 = t1(prBalance, prDcm)
411411 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
412412 let curPrice = f1(curPriceX18, scale8)
413413 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
414414 let lpEmissX18 = t1(lpEmiss, scale8)
415415 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
416416 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
417417 let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
418418 let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
419419 let state = if ((txId58 == ""))
420420 then nil
421421 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
422422 then unit
423423 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
424424 then unit
425425 else fromBase58String(prId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)]
426426 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
427427 }
428428 }
429429
430430
431431 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
432432 let lpId = cfgLpAssetId
433433 let amIdStr = toBase58String(value(cfgAmountAssetId))
434434 let prIdStr = toBase58String(value(cfgPriceAssetId))
435435 let inAmIdStr = cfgInAmountAssedId
436436 let inPrIdStr = cfgInPriceAssetId
437437 let amtDcm = cfgAmountAssetDecimals
438438 let priceDcm = cfgPriceAssetDecimals
439439 let sts = toString(cfgPoolStatus)
440440 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
441441 let amBalance = if (isEval)
442442 then getAccBalance(amIdStr)
443443 else if (if (isOneAsset)
444444 then (pmtId == amIdStr)
445445 else false)
446446 then (getAccBalance(amIdStr) - pmtAmt)
447447 else if (isOneAsset)
448448 then getAccBalance(amIdStr)
449449 else (getAccBalance(amIdStr) - inAmAmt)
450450 let prBalance = if (isEval)
451451 then getAccBalance(prIdStr)
452452 else if (if (isOneAsset)
453453 then (pmtId == prIdStr)
454454 else false)
455455 then (getAccBalance(prIdStr) - pmtAmt)
456456 else if (isOneAsset)
457457 then getAccBalance(prIdStr)
458458 else (getAccBalance(prIdStr) - inPrAmt)
459459 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
460460 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
461461 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
462462 let amBalanceX18 = t1(amBalance, amtDcm)
463463 let prBalanceX18 = t1(prBalance, priceDcm)
464464 let D0 = getD([amBalanceX18, prBalanceX18])
465465 let r = if ((lpEm == 0))
466466 then {
467467 let D1 = getD([(amBalanceX18 + inAmAssetAmtX18), (prBalanceX18 + inPrAssetAmtX18)])
468468 let checkD = if ((D1 > D0))
469469 then true
470470 else throw("D1 should be greater than D0")
471471 if ((checkD == checkD))
472472 then {
473473 let curPriceX18 = zeroBigInt
474474 let slippageX18 = zeroBigInt
475475 let lpAmtX18 = D1
476476 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
477477 }
478478 else throw("Strict value is not equal to itself.")
479479 }
480480 else {
481481 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
482482 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
483483 let slippageX18 = t1(slippage, scale8)
484484 if (if (if (validateSlippage)
485485 then (curPriceX18 != zeroBigInt)
486486 else false)
487487 then (slippageRealX18 > slippageX18)
488488 else false)
489489 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
490490 else {
491491 let lpEmissionX18 = t1(lpEm, scale8)
492492 let prViaAmX18 = fraction(inAmAssetAmtX18, cpbir(prBalanceX18, amBalanceX18, CEILING), scale18, CEILING)
493493 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, cpbir(prBalanceX18, amBalanceX18, FLOOR), CEILING)
494494 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
495495 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
496496 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
497497 let expAmtAssetAmtX18 = expectedAmts._1
498498 let expPriceAssetAmtX18 = expectedAmts._2
499499 let D1 = getD([(amBalanceX18 + expAmtAssetAmtX18), (prBalanceX18 + expPriceAssetAmtX18)])
500500 let checkD = if ((D1 > D0))
501501 then true
502502 else throw("D1 should be greater than D0")
503503 if ((checkD == checkD))
504504 then {
505505 let lpAmtX18 = fraction(lpEmissionX18, (D1 - D0), D0)
506506 $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
507507 }
508508 else throw("Strict value is not equal to itself.")
509509 }
510510 }
511511 let calcLpAmt = r._1
512512 let calcAmAssetPmt = r._2
513513 let calcPrAssetPmt = r._3
514514 let curPrice = f1(r._4, scale8)
515515 let slippageCalc = f1(r._5, scale8)
516516 if ((0 >= calcLpAmt))
517517 then throw("LP <= 0")
518518 else {
519519 let emitLpAmt = if (!(emitLp))
520520 then 0
521521 else calcLpAmt
522522 let amDiff = (inAmAmt - calcAmAssetPmt)
523523 let prDiff = (inPrAmt - calcPrAssetPmt)
524524 let $t02057820923 = if (if (isOneAsset)
525525 then (pmtId == amIdStr)
526526 else false)
527527 then $Tuple2(pmtAmt, 0)
528528 else if (if (isOneAsset)
529529 then (pmtId == prIdStr)
530530 else false)
531531 then $Tuple2(0, pmtAmt)
532532 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
533533 let writeAmAmt = $t02057820923._1
534534 let writePrAmt = $t02057820923._2
535535 let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))]
536536 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
537537 }
538538 }
539539
540540
541541 func getYD (xp,i,D) = {
542542 let n = big2
543543 let x = xp[if ((i == 0))
544544 then 1
545545 else 0]
546546 let aPrecision = parseBigIntValue(Amult)
547547 let a = (parseBigIntValue(A) * aPrecision)
548548 let s = x
549549 let ann = (a * n)
550550 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
551551 let b = ((s + ((D * aPrecision) / ann)) - D)
552552 func calc (acc,cur) = {
553553 let $t02211822138 = acc
554554 let y = $t02211822138._1
555555 let found = $t02211822138._2
556556 if ((found != unit))
557557 then acc
558558 else {
559559 let yNext = (((y * y) + c) / ((big2 * y) + b))
560560 let yDiff = absBigInt((yNext - value(y)))
561561 if ((big1 >= yDiff))
562562 then $Tuple2(yNext, cur)
563563 else $Tuple2(yNext, unit)
564564 }
565565 }
566566
567567 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
568568 let $t02244522492 = {
569569 let $l = arr
570570 let $s = size($l)
571571 let $acc0 = $Tuple2(D, unit)
572572 func $f0_1 ($a,$i) = if (($i >= $s))
573573 then $a
574574 else calc($a, $l[$i])
575575
576576 func $f0_2 ($a,$i) = if (($i >= $s))
577577 then $a
578578 else throw("List size exceeds 15")
579579
580580 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
581581 }
582582 let y = $t02244522492._1
583583 let found = $t02244522492._2
584584 if ((found != unit))
585585 then y
586586 else throw(("Y calculation error, Y = " + toString(y)))
587587 }
588588
589589
590590 func calcDLp (amountBalance,priceBalance,lpEmission) = {
591591 let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), scale18, lpEmission)
592592 if ((lpEmission == big0))
593593 then big0
594594 else updatedDLp
595595 }
596596
597597
598598 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
599599 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
600600 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
601601 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
602602 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
603603 currentDLp
604604 }
605605
606606
607607 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
608608 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
609609 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
610610 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
611611 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
612612 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
613613 $Tuple2(actions, updatedDLp)
614614 }
615615
616616
617617 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
618618 then true
619619 else throwErr("updated DLp lower than current DLp")
620620
621621
622622 func validateMatcherOrderAllowed (order) = {
623+ let amountAssetBalance = getAccBalance(assetIdToString(cfgAmountAssetId))
624+ let priceAssetBalance = getAccBalance(assetIdToString(cfgPriceAssetId))
623625 let amountAssetAmount = order.amount
624626 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
625- let $t02453624748 = if ((order.orderType == Buy))
627+ let $t02469024902 = if ((order.orderType == Buy))
626628 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
627629 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
628- let amountAssetBalanceDelta = $t02453624748._1
629- let priceAssetBalanceDelta = $t02453624748._2
630+ let amountAssetBalanceDelta = $t02469024902._1
631+ let priceAssetBalanceDelta = $t02469024902._2
630632 if (if (if (igs())
631633 then true
632634 else (cfgPoolStatus == PoolMatcherDis))
633635 then true
634636 else (cfgPoolStatus == PoolShutdown))
635637 then throw("Admin blocked")
636638 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
637639 then true
638640 else (order.assetPair.priceAsset != cfgPriceAssetId))
639641 then throw("Wr assets")
640642 else {
641643 let dLp = parseBigIntValue(valueOrElse(getString(this, keyDLp), "0"))
642- let $t02509025190 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
643- let unusedActions = $t02509025190._1
644- let dLpNew = $t02509025190._2
644+ let $t02524425344 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
645+ let unusedActions = $t02524425344._1
646+ let dLpNew = $t02524425344._2
645647 let isOrderValid = (dLpNew >= dLp)
646- let info = makeString([toString(dLp), toString(dLpNew)], " ")
648+ let info = makeString(["dLp=", toString(dLp), " dLpNew=", toString(dLpNew), " amountAssetBalance=", toString(amountAssetBalance), " priceAssetBalance=", toString(priceAssetBalance), " amountAssetBalanceDelta=", toString(amountAssetBalanceDelta), " priceAssetBalanceDelta=", toString(priceAssetBalanceDelta)], "")
647649 $Tuple2(isOrderValid, info)
648650 }
649651 }
650652
651653
652654 func cg (i) = if ((size(i.payments) != 1))
653655 then throw("1 pmnt exp")
654656 else {
655657 let pmt = value(i.payments[0])
656658 let pmtAssetId = value(pmt.assetId)
657659 let pmtAmt = pmt.amount
658660 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
659661 let outAmAmt = r._1
660662 let outPrAmt = r._2
661663 let sts = parseIntValue(r._9)
662664 let state = r._10
663665 if (if (igs())
664666 then true
665667 else (sts == PoolShutdown))
666668 then throw(("Admin blocked: " + toString(sts)))
667669 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
668670 }
669671
670672
671673 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
672674 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
673675 let sts = parseIntValue(r._8)
674676 if (if (if (igs())
675677 then true
676678 else (sts == PoolPutDis))
677679 then true
678680 else (sts == PoolShutdown))
679681 then throw(("Blocked:" + toString(sts)))
680682 else r
681683 }
682684
683685
684686 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
685687 let amId = toBase58String(value(cfgAmountAssetId))
686688 let prId = toBase58String(value(cfgPriceAssetId))
687689 let lpId = cfgLpAssetId
688690 let amtDcm = cfgAmountAssetDecimals
689691 let priceDcm = cfgPriceAssetDecimals
690692 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(lpId), "invalid lp asset").quantity)
691693 let chechEmission = if ((lpAssetEmission > big0))
692694 then true
693695 else throw("initial deposit requires all coins")
694696 if ((chechEmission == chechEmission))
695697 then {
696698 let amBalance = getAccBalance(amId)
697699 let prBalance = getAccBalance(prId)
698- let $t02754228004 = if ((txId == ""))
700+ let $t02796528427 = if ((txId == ""))
699701 then $Tuple2(amBalance, prBalance)
700702 else if ((pmtAssetId == amId))
701703 then if ((pmtAmtRaw > amBalance))
702704 then throw("invalid payment amount")
703705 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
704706 else if ((pmtAssetId == prId))
705707 then if ((pmtAmtRaw > prBalance))
706708 then throw("invalid payment amount")
707709 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
708710 else throw("wrong pmtAssetId")
709- let amBalanceOld = $t02754228004._1
710- let prBalanceOld = $t02754228004._2
711- let $t02801028186 = if ((pmtAssetId == amId))
711+ let amBalanceOld = $t02796528427._1
712+ let prBalanceOld = $t02796528427._2
713+ let $t02843328609 = if ((pmtAssetId == amId))
712714 then $Tuple2(pmtAmtRaw, 0)
713715 else if ((pmtAssetId == prId))
714716 then $Tuple2(0, pmtAmtRaw)
715717 else throw("invalid payment")
716- let amAmountRaw = $t02801028186._1
717- let prAmountRaw = $t02801028186._2
718- let $t02819028444 = if (withTakeFee)
718+ let amAmountRaw = $t02843328609._1
719+ let prAmountRaw = $t02843328609._2
720+ let $t02861328867 = if (withTakeFee)
719721 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
720722 else $Tuple3(amAmountRaw, prAmountRaw, 0)
721- let amAmount = $t02819028444._1
722- let prAmount = $t02819028444._2
723- let feeAmount = $t02819028444._3
723+ let amAmount = $t02861328867._1
724+ let prAmount = $t02861328867._2
725+ let feeAmount = $t02861328867._3
724726 let amBalanceNew = (amBalanceOld + amAmount)
725727 let prBalanceNew = (prBalanceOld + prAmount)
726728 let D0 = getD([t1(amBalanceOld, cfgAmountAssetDecimals), t1(prBalanceOld, cfgPriceAssetDecimals)])
727729 let D1 = getD([t1(amBalanceNew, cfgAmountAssetDecimals), t1(prBalanceNew, cfgPriceAssetDecimals)])
728730 let checkD = if ((D1 > D0))
729731 then true
730732 else throw()
731733 if ((checkD == checkD))
732734 then {
733735 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
734736 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
735737 let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId), dataPutActionInfo(amAmountRaw, prAmountRaw, toInt(lpAmount), curPrice, 0, 0, height, lastBlock.timestamp, 0, 0))]
736738 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
737739 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
738740 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
739741 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
740742 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
741743 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
742744 }
743745 else throw("Strict value is not equal to itself.")
744746 }
745747 else throw("Strict value is not equal to itself.")
746748 }
747749
748750
749751 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
750752 let lpId = toBase58String(value(cfgLpAssetId))
751753 let amId = toBase58String(value(cfgAmountAssetId))
752754 let prId = toBase58String(value(cfgPriceAssetId))
753755 let amDecimals = cfgAmountAssetDecimals
754756 let prDecimals = cfgPriceAssetDecimals
755757 let poolStatus = cfgPoolStatus
756758 let userAddress = if ((caller == restContract))
757759 then originCaller
758760 else caller
759761 let pmt = value(payments[0])
760762 let pmtAssetId = value(pmt.assetId)
761763 let pmtAmt = pmt.amount
762764 let currentDLp = calcCurrentDLp(big0, big0, big0)
763765 if ((currentDLp == currentDLp))
764766 then {
765767 let txId58 = toBase58String(transactionId)
766768 if ((lpId != toBase58String(pmtAssetId)))
767769 then throw("Wrong LP")
768770 else {
769771 let amBalance = getAccBalance(amId)
770772 let prBalance = getAccBalance(prId)
771- let $t03055630667 = {
773+ let $t03097931090 = {
772774 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
773775 if ($isInstanceOf(@, "(Int, Int)"))
774776 then @
775777 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
776778 }
777- if (($t03055630667 == $t03055630667))
779+ if (($t03097931090 == $t03097931090))
778780 then {
779- let feeAmount = $t03055630667._2
780- let totalGet = $t03055630667._1
781+ let feeAmount = $t03097931090._2
782+ let totalGet = $t03097931090._1
781783 let totalAmount = if (if ((minOutAmount > 0))
782784 then (minOutAmount > totalGet)
783785 else false)
784786 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
785787 else totalGet
786- let $t03085731164 = if ((outAssetId == amId))
788+ let $t03128031587 = if ((outAssetId == amId))
787789 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
788790 else if ((outAssetId == prId))
789791 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
790792 else throw("invalid out asset id")
791- let outAm = $t03085731164._1
792- let outPr = $t03085731164._2
793- let amBalanceNew = $t03085731164._3
794- let prBalanceNew = $t03085731164._4
793+ let outAm = $t03128031587._1
794+ let outPr = $t03128031587._2
795+ let amBalanceNew = $t03128031587._3
796+ let prBalanceNew = $t03128031587._4
795797 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
796798 let curPr = f1(curPrX18, scale8)
797799 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
798800 then unit
799801 else fromBase58String(outAssetId)
800802 let sendFeeToMatcher = if ((feeAmount > 0))
801803 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
802804 else nil
803805 let state = ([ScriptTransfer(userAddress, totalAmount, outAssetIdOrWaves), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(pl(), curPr), IntegerEntry(ph(height, lastBlock.timestamp), curPr)] ++ sendFeeToMatcher)
804806 if ((state == state))
805807 then {
806808 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
807809 if ((burn == burn))
808810 then {
809- let $t03194932299 = {
811+ let $t03237232722 = {
810812 let feeAmountForCalc = if ((this == feeCollectorAddress))
811813 then 0
812814 else feeAmount
813815 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
814816 then true
815817 else false
816818 if (outInAmountAsset)
817819 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
818820 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
819821 }
820- let amountAssetBalanceDelta = $t03194932299._1
821- let priceAssetBalanceDelta = $t03194932299._2
822- let $t03230232410 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
823- let refreshDLpActions = $t03230232410._1
824- let updatedDLp = $t03230232410._2
822+ let amountAssetBalanceDelta = $t03237232722._1
823+ let priceAssetBalanceDelta = $t03237232722._2
824+ let $t03272532833 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
825+ let refreshDLpActions = $t03272532833._1
826+ let updatedDLp = $t03272532833._2
825827 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
826828 if ((isUpdatedDLpValid == isUpdatedDLpValid))
827829 then $Tuple2((state ++ refreshDLpActions), totalAmount)
828830 else throw("Strict value is not equal to itself.")
829831 }
830832 else throw("Strict value is not equal to itself.")
831833 }
832834 else throw("Strict value is not equal to itself.")
833835 }
834836 else throw("Strict value is not equal to itself.")
835837 }
836838 }
837839 else throw("Strict value is not equal to itself.")
838840 }
839841
840842
841843 func m () = match getString(mpk()) {
842844 case s: String =>
843845 fromBase58String(s)
844846 case _: Unit =>
845847 unit
846848 case _ =>
847849 throw("Match error")
848850 }
849851
850852
851853 func pm () = match getString(pmpk()) {
852854 case s: String =>
853855 fromBase58String(s)
854856 case _: Unit =>
855857 unit
856858 case _ =>
857859 throw("Match error")
858860 }
859861
860862
861863 let pd = throw("Permission denied")
862864
863865 func isManager (i) = match m() {
864866 case pk: ByteVector =>
865867 (i.callerPublicKey == pk)
866868 case _: Unit =>
867869 (i.caller == this)
868870 case _ =>
869871 throw("Match error")
870872 }
871873
872874
873875 func mm (i) = match m() {
874876 case pk: ByteVector =>
875877 if ((i.callerPublicKey == pk))
876878 then true
877879 else pd
878880 case _: Unit =>
879881 if ((i.caller == this))
880882 then true
881883 else pd
882884 case _ =>
883885 throw("Match error")
884886 }
885887
886888
887889 @Callable(i)
888890 func constructor (fc) = {
889891 let c = mm(i)
890892 if ((c == c))
891893 then [StringEntry(fc(), fc)]
892894 else throw("Strict value is not equal to itself.")
893895 }
894896
895897
896898
897899 @Callable(i)
898900 func setManager (pendingManagerPublicKey) = {
899901 let c = mm(i)
900902 if ((c == c))
901903 then {
902904 let cm = fromBase58String(pendingManagerPublicKey)
903905 if ((cm == cm))
904906 then [StringEntry(pmpk(), pendingManagerPublicKey)]
905907 else throw("Strict value is not equal to itself.")
906908 }
907909 else throw("Strict value is not equal to itself.")
908910 }
909911
910912
911913
912914 @Callable(i)
913915 func confirmManager () = {
914916 let p = pm()
915917 let hpm = if (isDefined(p))
916918 then true
917919 else throw("No pending manager")
918920 if ((hpm == hpm))
919921 then {
920922 let cpm = if ((i.callerPublicKey == value(p)))
921923 then true
922924 else throw("You are not pending manager")
923925 if ((cpm == cpm))
924926 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
925927 else throw("Strict value is not equal to itself.")
926928 }
927929 else throw("Strict value is not equal to itself.")
928930 }
929931
930932
931933
932934 @Callable(i)
933935 func put (slip,autoStake) = {
934936 let factCfg = gfc()
935937 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
936938 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
937939 if ((0 > slip))
938940 then throw("Wrong slippage")
939941 else if ((size(i.payments) != 2))
940942 then throw("2 pmnts expd")
941943 else {
942944 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
943945 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
944946 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
945947 if ((amountAssetBalance == amountAssetBalance))
946948 then {
947949 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
948950 if ((priceAssetBalance == priceAssetBalance))
949951 then {
950952 let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
951953 if ((lpAssetEmission == lpAssetEmission))
952954 then {
953955 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
954956 if ((currentDLp == currentDLp))
955957 then {
956958 let e = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, true, 0, "")
957959 let emitLpAmt = e._2
958960 let lpAssetId = e._7
959961 let state = e._9
960962 let amDiff = e._10
961963 let prDiff = e._11
962964 let amId = e._12
963965 let prId = e._13
964966 let r = invoke(fca, "emit", [emitLpAmt], nil)
965967 if ((r == r))
966968 then {
967969 let el = match r {
968970 case legacy: Address =>
969971 invoke(legacy, "emit", [emitLpAmt], nil)
970972 case _ =>
971973 unit
972974 }
973975 if ((el == el))
974976 then {
975977 let sa = if ((amDiff > 0))
976978 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
977979 else nil
978980 if ((sa == sa))
979981 then {
980982 let sp = if ((prDiff > 0))
981983 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
982984 else nil
983985 if ((sp == sp))
984986 then {
985987 let lpTrnsfr = if (autoStake)
986988 then {
987989 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
988990 if ((ss == ss))
989991 then nil
990992 else throw("Strict value is not equal to itself.")
991993 }
992994 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
993- let $t03655936701 = refreshDLpInternal(0, 0, 0)
994- let refreshDLpActions = $t03655936701._1
995- let updatedDLp = $t03655936701._2
995+ let $t03698237124 = refreshDLpInternal(0, 0, 0)
996+ let refreshDLpActions = $t03698237124._1
997+ let updatedDLp = $t03698237124._2
996998 let check = if ((updatedDLp >= currentDLp))
997999 then true
9981000 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
9991001 if ((check == check))
10001002 then {
10011003 let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
10021004 if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
10031005 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10041006 else throw("Strict value is not equal to itself.")
10051007 }
10061008 else throw("Strict value is not equal to itself.")
10071009 }
10081010 else throw("Strict value is not equal to itself.")
10091011 }
10101012 else throw("Strict value is not equal to itself.")
10111013 }
10121014 else throw("Strict value is not equal to itself.")
10131015 }
10141016 else throw("Strict value is not equal to itself.")
10151017 }
10161018 else throw("Strict value is not equal to itself.")
10171019 }
10181020 else throw("Strict value is not equal to itself.")
10191021 }
10201022 else throw("Strict value is not equal to itself.")
10211023 }
10221024 else throw("Strict value is not equal to itself.")
10231025 }
10241026 }
10251027
10261028
10271029
10281030 @Callable(i)
10291031 func putOneTknV2 (minOutAmount,autoStake) = {
10301032 let isPoolOneTokenOperationsDisabled = {
10311033 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10321034 if ($isInstanceOf(@, "Boolean"))
10331035 then @
10341036 else throw(($getType(@) + " couldn't be cast to Boolean"))
10351037 }
10361038 let isPutDisabled = if (if (if (igs())
10371039 then true
10381040 else (cfgPoolStatus == PoolPutDis))
10391041 then true
10401042 else (cfgPoolStatus == PoolShutdown))
10411043 then true
10421044 else isPoolOneTokenOperationsDisabled
10431045 let checks = [if (if (!(isPutDisabled))
10441046 then true
10451047 else isManager(i))
10461048 then true
10471049 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10481050 then true
10491051 else throwErr("exactly 1 payment are expected")]
10501052 if ((checks == checks))
10511053 then {
10521054 let amId = toBase58String(value(cfgAmountAssetId))
10531055 let prId = toBase58String(value(cfgPriceAssetId))
10541056 let lpId = cfgLpAssetId
10551057 let amDecimals = cfgAmountAssetDecimals
10561058 let prDecimals = cfgPriceAssetDecimals
10571059 let userAddress = if ((i.caller == this))
10581060 then i.originCaller
10591061 else i.caller
10601062 let pmt = value(i.payments[0])
10611063 let pmtAssetId = toBase58String(value(pmt.assetId))
10621064 let pmtAmt = pmt.amount
10631065 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
10641066 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
10651067 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10661068 if ((currentDLp == currentDLp))
10671069 then {
1068- let $t03834238500 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1069- if (($t03834238500 == $t03834238500))
1070+ let $t03876538923 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1071+ if (($t03876538923 == $t03876538923))
10701072 then {
1071- let feeAmount = $t03834238500._3
1072- let state = $t03834238500._2
1073- let estimLP = $t03834238500._1
1073+ let feeAmount = $t03876538923._3
1074+ let state = $t03876538923._2
1075+ let estimLP = $t03876538923._1
10741076 let emitLpAmt = if (if ((minOutAmount > 0))
10751077 then (minOutAmount > estimLP)
10761078 else false)
10771079 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10781080 else estimLP
10791081 let e = invoke(fca, "emit", [emitLpAmt], nil)
10801082 if ((e == e))
10811083 then {
10821084 let el = match e {
10831085 case legacy: Address =>
10841086 invoke(legacy, "emit", [emitLpAmt], nil)
10851087 case _ =>
10861088 unit
10871089 }
10881090 if ((el == el))
10891091 then {
10901092 let lpTrnsfr = if (autoStake)
10911093 then {
10921094 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
10931095 if ((ss == ss))
10941096 then nil
10951097 else throw("Strict value is not equal to itself.")
10961098 }
10971099 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
10981100 let sendFeeToMatcher = if ((feeAmount > 0))
10991101 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11001102 else nil
1101- let $t03931539664 = if ((this == feeCollectorAddress))
1103+ let $t03973840087 = if ((this == feeCollectorAddress))
11021104 then $Tuple2(0, 0)
11031105 else {
11041106 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11051107 then true
11061108 else false
11071109 if (paymentInAmountAsset)
11081110 then $Tuple2(-(feeAmount), 0)
11091111 else $Tuple2(0, -(feeAmount))
11101112 }
1111- let amountAssetBalanceDelta = $t03931539664._1
1112- let priceAssetBalanceDelta = $t03931539664._2
1113- let $t03966739775 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1114- let refreshDLpActions = $t03966739775._1
1115- let updatedDLp = $t03966739775._2
1113+ let amountAssetBalanceDelta = $t03973840087._1
1114+ let priceAssetBalanceDelta = $t03973840087._2
1115+ let $t04009040198 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1116+ let refreshDLpActions = $t04009040198._1
1117+ let updatedDLp = $t04009040198._2
11161118 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11171119 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11181120 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11191121 else throw("Strict value is not equal to itself.")
11201122 }
11211123 else throw("Strict value is not equal to itself.")
11221124 }
11231125 else throw("Strict value is not equal to itself.")
11241126 }
11251127 else throw("Strict value is not equal to itself.")
11261128 }
11271129 else throw("Strict value is not equal to itself.")
11281130 }
11291131 else throw("Strict value is not equal to itself.")
11301132 }
11311133
11321134
11331135
11341136 @Callable(i)
11351137 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11361138 then throw("Wrong slpg")
11371139 else if ((size(i.payments) != 2))
11381140 then throw("2 pmnts expd")
11391141 else {
11401142 let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlpg, false, false, true, 0, "")
11411143 let state = estPut._9
11421144 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11431145 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11441146 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11451147 if ((currentDLp == currentDLp))
11461148 then {
1147- let $t04080540870 = refreshDLpInternal(0, 0, 0)
1148- let refreshDLpActions = $t04080540870._1
1149- let updatedDLp = $t04080540870._2
1149+ let $t04122841293 = refreshDLpInternal(0, 0, 0)
1150+ let refreshDLpActions = $t04122841293._1
1151+ let updatedDLp = $t04122841293._2
11501152 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11511153 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11521154 then (state ++ refreshDLpActions)
11531155 else throw("Strict value is not equal to itself.")
11541156 }
11551157 else throw("Strict value is not equal to itself.")
11561158 }
11571159
11581160
11591161
11601162 @Callable(i)
11611163 func get () = {
11621164 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
11631165 if ((currentDLp == currentDLp))
11641166 then {
11651167 let r = cg(i)
11661168 let outAmtAmt = r._1
11671169 let outPrAmt = r._2
11681170 let pmtAmt = r._3
11691171 let pmtAssetId = r._4
11701172 let state = r._5
11711173 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11721174 if ((b == b))
11731175 then {
1174- let $t04204342125 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1175- let refreshDLpActions = $t04204342125._1
1176- let updatedDLp = $t04204342125._2
1176+ let $t04246642548 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1177+ let refreshDLpActions = $t04246642548._1
1178+ let updatedDLp = $t04246642548._2
11771179 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11781180 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11791181 then (state ++ refreshDLpActions)
11801182 else throw("Strict value is not equal to itself.")
11811183 }
11821184 else throw("Strict value is not equal to itself.")
11831185 }
11841186 else throw("Strict value is not equal to itself.")
11851187 }
11861188
11871189
11881190
11891191 @Callable(i)
11901192 func getOneTknV2 (outAssetId,minOutAmount) = {
11911193 let isPoolOneTokenOperationsDisabled = {
11921194 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11931195 if ($isInstanceOf(@, "Boolean"))
11941196 then @
11951197 else throw(($getType(@) + " couldn't be cast to Boolean"))
11961198 }
11971199 let isGetDisabled = if (if (igs())
11981200 then true
11991201 else (cfgPoolStatus == PoolShutdown))
12001202 then true
12011203 else isPoolOneTokenOperationsDisabled
12021204 let checks = [if (if (!(isGetDisabled))
12031205 then true
12041206 else isManager(i))
12051207 then true
12061208 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
12071209 then true
12081210 else throwErr("exactly 1 payment are expected")]
12091211 if ((checks == checks))
12101212 then {
1211- let $t04274342898 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1212- let state = $t04274342898._1
1213- let totalAmount = $t04274342898._2
1213+ let $t04316643321 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1214+ let state = $t04316643321._1
1215+ let totalAmount = $t04316643321._2
12141216 $Tuple2(state, totalAmount)
12151217 }
12161218 else throw("Strict value is not equal to itself.")
12171219 }
12181220
12191221
12201222
12211223 @Callable(i)
12221224 func refreshDLp () = {
12231225 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12241226 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12251227 then unit
12261228 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12271229 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12281230 then {
12291231 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1230- let $t04342243486 = refreshDLpInternal(0, 0, 0)
1231- let dLpUpdateActions = $t04342243486._1
1232- let updatedDLp = $t04342243486._2
1232+ let $t04384543909 = refreshDLpInternal(0, 0, 0)
1233+ let dLpUpdateActions = $t04384543909._1
1234+ let updatedDLp = $t04384543909._2
12331235 let actions = if ((dLp != updatedDLp))
12341236 then dLpUpdateActions
12351237 else throwErr("nothing to refresh")
12361238 $Tuple2(actions, toString(updatedDLp))
12371239 }
12381240 else throw("Strict value is not equal to itself.")
12391241 }
12401242
12411243
12421244
12431245 @Callable(i)
12441246 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12451247 let amId = toBase58String(value(cfgAmountAssetId))
12461248 let prId = toBase58String(value(cfgPriceAssetId))
12471249 let lpId = toBase58String(value(cfgLpAssetId))
12481250 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12491251 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12501252 let D0 = getD(xp)
12511253 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12521254 let index = if ((outAssetId == amId))
12531255 then 0
12541256 else if ((outAssetId == prId))
12551257 then 1
12561258 else throw("invalid out asset id")
12571259 let newY = getYD(xp, index, D1)
12581260 let dy = (xp[index] - newY)
12591261 let totalGetRaw = max([0, toInt((dy - big1))])
1260- let $t04441644471 = takeFee(totalGetRaw, outFee)
1261- let totalGet = $t04441644471._1
1262- let feeAmount = $t04441644471._2
1262+ let $t04483944894 = takeFee(totalGetRaw, outFee)
1263+ let totalGet = $t04483944894._1
1264+ let feeAmount = $t04483944894._2
12631265 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12641266 }
12651267
12661268
12671269
12681270 @Callable(i)
12691271 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12701272 let amId = toBase58String(value(cfgAmountAssetId))
12711273 let prId = toBase58String(value(cfgPriceAssetId))
12721274 let lpId = toBase58String(value(cfgLpAssetId))
12731275 let amBalance = getAccBalance(amId)
12741276 let prBalance = getAccBalance(prId)
1275- let $t04484644961 = {
1277+ let $t04526945384 = {
12761278 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12771279 if ($isInstanceOf(@, "(Int, Int)"))
12781280 then @
12791281 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12801282 }
1281- let totalGet = $t04484644961._1
1282- let feeAmount = $t04484644961._2
1283+ let totalGet = $t04526945384._1
1284+ let feeAmount = $t04526945384._2
12831285 let r = ego("", lpId, lpAssetAmount, this)
12841286 let outAmAmt = r._1
12851287 let outPrAmt = r._2
12861288 let sumOfGetAssets = (outAmAmt + outPrAmt)
12871289 let bonus = if ((sumOfGetAssets == 0))
12881290 then if ((totalGet == 0))
12891291 then 0
12901292 else throw("bonus calculation error")
12911293 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
12921294 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
12931295 }
12941296
12951297
12961298
12971299 @Callable(i)
12981300 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
12991301 let r = cg(i)
13001302 let outAmAmt = r._1
13011303 let outPrAmt = r._2
13021304 let pmtAmt = r._3
13031305 let pmtAssetId = r._4
13041306 let state = r._5
13051307 if ((noLessThenAmtAsset > outAmAmt))
13061308 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
13071309 else if ((noLessThenPriceAsset > outPrAmt))
13081310 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
13091311 else {
13101312 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13111313 if ((currentDLp == currentDLp))
13121314 then {
13131315 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13141316 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13151317 then {
1316- let $t04612746208 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1317- let refreshDLpActions = $t04612746208._1
1318- let updatedDLp = $t04612746208._2
1318+ let $t04655046631 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1319+ let refreshDLpActions = $t04655046631._1
1320+ let updatedDLp = $t04655046631._2
13191321 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13201322 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13211323 then (state ++ refreshDLpActions)
13221324 else throw("Strict value is not equal to itself.")
13231325 }
13241326 else throw("Strict value is not equal to itself.")
13251327 }
13261328 else throw("Strict value is not equal to itself.")
13271329 }
13281330 }
13291331
13301332
13311333
13321334 @Callable(i)
13331335 func unstakeAndGet (amount) = {
13341336 let checkPayments = if ((size(i.payments) != 0))
13351337 then throw("No pmnts expd")
13361338 else true
13371339 if ((checkPayments == checkPayments))
13381340 then {
13391341 let factoryCfg = gfc()
13401342 let lpAssetId = cfgLpAssetId
13411343 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13421344 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13431345 if ((currentDLp == currentDLp))
13441346 then {
13451347 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13461348 if ((unstakeInv == unstakeInv))
13471349 then {
13481350 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13491351 let outAmAmt = r._1
13501352 let outPrAmt = r._2
13511353 let sts = parseIntValue(r._9)
13521354 let state = r._10
13531355 let v = if (if (igs())
13541356 then true
13551357 else (sts == PoolShutdown))
13561358 then throw(("Blocked: " + toString(sts)))
13571359 else true
13581360 if ((v == v))
13591361 then {
13601362 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13611363 if ((burnA == burnA))
13621364 then {
1363- let $t04723547316 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1364- let refreshDLpActions = $t04723547316._1
1365- let updatedDLp = $t04723547316._2
1365+ let $t04765847739 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1366+ let refreshDLpActions = $t04765847739._1
1367+ let updatedDLp = $t04765847739._2
13661368 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13671369 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13681370 then (state ++ refreshDLpActions)
13691371 else throw("Strict value is not equal to itself.")
13701372 }
13711373 else throw("Strict value is not equal to itself.")
13721374 }
13731375 else throw("Strict value is not equal to itself.")
13741376 }
13751377 else throw("Strict value is not equal to itself.")
13761378 }
13771379 else throw("Strict value is not equal to itself.")
13781380 }
13791381 else throw("Strict value is not equal to itself.")
13801382 }
13811383
13821384
13831385
13841386 @Callable(i)
13851387 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13861388 let isGetDisabled = if (igs())
13871389 then true
13881390 else (cfgPoolStatus == PoolShutdown)
13891391 let checks = [if (!(isGetDisabled))
13901392 then true
13911393 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13921394 then true
13931395 else throw("no payments are expected")]
13941396 if ((checks == checks))
13951397 then {
13961398 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13971399 if ((currentDLp == currentDLp))
13981400 then {
13991401 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
14001402 if ((unstakeInv == unstakeInv))
14011403 then {
14021404 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
14031405 let outAmAmt = res._1
14041406 let outPrAmt = res._2
14051407 let state = res._10
14061408 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
14071409 then true
14081410 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
14091411 then true
14101412 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
14111413 if ((checkAmounts == checkAmounts))
14121414 then {
14131415 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14141416 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14151417 then {
1416- let $t04856748648 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1417- let refreshDLpActions = $t04856748648._1
1418- let updatedDLp = $t04856748648._2
1418+ let $t04899049071 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1419+ let refreshDLpActions = $t04899049071._1
1420+ let updatedDLp = $t04899049071._2
14191421 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14201422 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14211423 then (state ++ refreshDLpActions)
14221424 else throw("Strict value is not equal to itself.")
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 else throw("Strict value is not equal to itself.")
14311433 }
14321434 else throw("Strict value is not equal to itself.")
14331435 }
14341436
14351437
14361438
14371439 @Callable(i)
14381440 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14391441 let isPoolOneTokenOperationsDisabled = {
14401442 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14411443 if ($isInstanceOf(@, "Boolean"))
14421444 then @
14431445 else throw(($getType(@) + " couldn't be cast to Boolean"))
14441446 }
14451447 let isGetDisabled = if (if (igs())
14461448 then true
14471449 else (cfgPoolStatus == PoolShutdown))
14481450 then true
14491451 else isPoolOneTokenOperationsDisabled
14501452 let checks = [if (if (!(isGetDisabled))
14511453 then true
14521454 else isManager(i))
14531455 then true
14541456 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14551457 then true
14561458 else throwErr("no payments are expected")]
14571459 if ((checks == checks))
14581460 then {
14591461 let factoryCfg = gfc()
14601462 let lpAssetId = cfgLpAssetId
14611463 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14621464 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14631465 if ((unstakeInv == unstakeInv))
14641466 then {
1465- let $t04954349731 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1466- let state = $t04954349731._1
1467- let totalAmount = $t04954349731._2
1467+ let $t04996650154 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1468+ let state = $t04996650154._1
1469+ let totalAmount = $t04996650154._2
14681470 $Tuple2(state, totalAmount)
14691471 }
14701472 else throw("Strict value is not equal to itself.")
14711473 }
14721474 else throw("Strict value is not equal to itself.")
14731475 }
14741476
14751477
14761478
14771479 @Callable(i)
14781480 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
1479- let $t04985949962 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1480- let lpAmount = $t04985949962._1
1481- let state = $t04985949962._2
1482- let feeAmount = $t04985949962._3
1483- let bonus = $t04985949962._4
1481+ let $t05028250385 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1482+ let lpAmount = $t05028250385._1
1483+ let state = $t05028250385._2
1484+ let feeAmount = $t05028250385._3
1485+ let bonus = $t05028250385._4
14841486 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14851487 }
14861488
14871489
14881490
14891491 @Callable(i)
14901492 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
1491- let $t05011050214 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1492- let lpAmount = $t05011050214._1
1493- let state = $t05011050214._2
1494- let feeAmount = $t05011050214._3
1495- let bonus = $t05011050214._4
1493+ let $t05053350637 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1494+ let lpAmount = $t05053350637._1
1495+ let state = $t05053350637._2
1496+ let feeAmount = $t05053350637._3
1497+ let bonus = $t05053350637._4
14961498 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14971499 }
14981500
14991501
15001502
15011503 @Callable(i)
15021504 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
15031505 then throw("denied")
15041506 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
15051507
15061508
15071509
15081510 @Callable(i)
15091511 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
15101512 then pd
15111513 else [StringEntry(k, v)]
15121514
15131515
15141516
15151517 @Callable(i)
15161518 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
15171519 then pd
15181520 else [IntegerEntry(k, v)]
15191521
15201522
15211523
15221524 @Callable(i)
15231525 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15241526
15251527
15261528
15271529 @Callable(i)
15281530 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15291531
15301532
15311533
15321534 @Callable(i)
15331535 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15341536 let pr = calcPrices(amAmt, prAmt, lpAmt)
15351537 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15361538 }
15371539
15381540
15391541
15401542 @Callable(i)
15411543 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15421544
15431545
15441546
15451547 @Callable(i)
15461548 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15471549
15481550
15491551
15501552 @Callable(i)
15511553 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15521554
15531555
15541556
15551557 @Callable(i)
15561558 func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, epo(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, true, false, 0, ""))
15571559
15581560
15591561
15601562 @Callable(i)
15611563 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15621564 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15631565 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15641566 }
15651567
15661568
15671569 @Verifier(tx)
15681570 func verify () = {
15691571 let targetPublicKey = match m() {
15701572 case pk: ByteVector =>
15711573 pk
15721574 case _: Unit =>
15731575 tx.senderPublicKey
15741576 case _ =>
15751577 throw("Match error")
15761578 }
15771579 match tx {
15781580 case order: Order =>
15791581 let matcherPub = mp()
1580- let $t05300653075 = validateMatcherOrderAllowed(order)
1581- let orderValid = $t05300653075._1
1582- let orderValidInfo = $t05300653075._2
1582+ let $t05342953498 = validateMatcherOrderAllowed(order)
1583+ let orderValid = $t05342953498._1
1584+ let orderValidInfo = $t05342953498._2
15831585 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15841586 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15851587 if (if (if (orderValid)
15861588 then senderValid
15871589 else false)
15881590 then matcherValid
15891591 else false)
15901592 then true
15911593 else throwOrderError(orderValid, orderValidInfo, senderValid, matcherValid)
15921594 case s: SetScriptTransaction =>
15931595 if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
15941596 then true
15951597 else {
15961598 let newHash = blake2b256(value(s.script))
15971599 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15981600 let currentHash = scriptHash(this)
15991601 if ((allowedHash == newHash))
16001602 then (currentHash != newHash)
16011603 else false
16021604 }
16031605 case _ =>
16041606 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16051607 }
16061608 }
16071609

github/deemru/w8io/026f985 
197.89 ms