tx · 3NFLG7ZXqRTmbnjJrWXKV1np4uQ7nKDmuwPcY4bpHQmi

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.03600000 Waves

2023.01.19 17:38 [2411940] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "3NFLG7ZXqRTmbnjJrWXKV1np4uQ7nKDmuwPcY4bpHQmi", "fee": 3600000, "feeAssetId": null, "timestamp": 1674139166920, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "3tszCsmJUeyDy1cw8F9GDWEqbUJXv6Vs4Hd82U4PyfDdkiWJ4U1TSmVrd8PHoAYrwmHcqTxsiPu9Cb2Ak6qBMhJ7" ], "script": "base64:BgLtKAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJU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T0CBQJoWAUCaFYHCQD0AwMIBQJoTwlib2R5Qnl0ZXMJAJEDAggFAmhPBnByb29mcwAABQJoUaxkKrk=", "chainId": 84, "height": 2411940, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GrB9HF4txtnu48nFnuU4TLCy7xeHrCwsGSmznH85Rc3i Next: 7BhDE2surYHbLxh547JLzvT966Zb4mQCRu7aQ8DRXpnp Diff:
OldNewDifferences
571571
572572
573573 func calcDLp (amountBalance,priceBalance,lpEmission) = {
574- let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), big1, lpEmission)
574+ let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), scale18, lpEmission)
575575 if ((lpEmission == big0))
576576 then big0
577577 else updatedDLp
605605 func validateMatcherOrderAllowed (order) = {
606606 let amountAssetAmount = order.amount
607607 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
608- let $t02393324145 = if ((order.orderType == Buy))
608+ let $t02393624148 = if ((order.orderType == Buy))
609609 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
610610 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
611- let amountAssetBalanceDelta = $t02393324145._1
612- let priceAssetBalanceDelta = $t02393324145._2
611+ let amountAssetBalanceDelta = $t02393624148._1
612+ let priceAssetBalanceDelta = $t02393624148._2
613613 if (if (if (igs())
614614 then true
615615 else (cfgPoolStatus == PoolMatcherDis))
622622 then throw("Wr assets")
623623 else {
624624 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
625- let $t02447524575 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
626- let unusedActions = $t02447524575._1
627- let dLpNew = $t02447524575._2
625+ let $t02447824578 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
626+ let unusedActions = $t02447824578._1
627+ let dLpNew = $t02447824578._2
628628 let isOrderValid = (dLpNew >= dLp)
629629 isOrderValid
630630 }
677677 then {
678678 let amBalance = getAccBalance(amId)
679679 let prBalance = getAccBalance(prId)
680- let $t02684127303 = if ((txId == ""))
680+ let $t02684427306 = if ((txId == ""))
681681 then $Tuple2(amBalance, prBalance)
682682 else if ((pmtAssetId == amId))
683683 then if ((pmtAmtRaw > amBalance))
688688 then throw("invalid payment amount")
689689 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
690690 else throw("wrong pmtAssetId")
691- let amBalanceOld = $t02684127303._1
692- let prBalanceOld = $t02684127303._2
693- let $t02730927485 = if ((pmtAssetId == amId))
691+ let amBalanceOld = $t02684427306._1
692+ let prBalanceOld = $t02684427306._2
693+ let $t02731227488 = if ((pmtAssetId == amId))
694694 then $Tuple2(pmtAmtRaw, 0)
695695 else if ((pmtAssetId == prId))
696696 then $Tuple2(0, pmtAmtRaw)
697697 else throw("invalid payment")
698- let amAmountRaw = $t02730927485._1
699- let prAmountRaw = $t02730927485._2
700- let $t02748927743 = if (withTakeFee)
698+ let amAmountRaw = $t02731227488._1
699+ let prAmountRaw = $t02731227488._2
700+ let $t02749227746 = if (withTakeFee)
701701 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
702702 else $Tuple3(amAmountRaw, prAmountRaw, 0)
703- let amAmount = $t02748927743._1
704- let prAmount = $t02748927743._2
705- let feeAmount = $t02748927743._3
703+ let amAmount = $t02749227746._1
704+ let prAmount = $t02749227746._2
705+ let feeAmount = $t02749227746._3
706706 let amBalanceNew = (amBalanceOld + amAmount)
707707 let prBalanceNew = (prBalanceOld + prAmount)
708708 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
750750 else {
751751 let amBalance = getAccBalance(amId)
752752 let prBalance = getAccBalance(prId)
753- let $t02979329904 = {
753+ let $t02979629907 = {
754754 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
755755 if ($isInstanceOf(@, "(Int, Int)"))
756756 then @
757757 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
758758 }
759- if (($t02979329904 == $t02979329904))
759+ if (($t02979629907 == $t02979629907))
760760 then {
761- let feeAmount = $t02979329904._2
762- let totalGet = $t02979329904._1
761+ let feeAmount = $t02979629907._2
762+ let totalGet = $t02979629907._1
763763 let totalAmount = if (if ((minOutAmount > 0))
764764 then (minOutAmount > totalGet)
765765 else false)
766766 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
767767 else totalGet
768- let $t03009430401 = if ((outAssetId == amId))
768+ let $t03009730404 = if ((outAssetId == amId))
769769 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
770770 else if ((outAssetId == prId))
771771 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
772772 else throw("invalid out asset id")
773- let outAm = $t03009430401._1
774- let outPr = $t03009430401._2
775- let amBalanceNew = $t03009430401._3
776- let prBalanceNew = $t03009430401._4
773+ let outAm = $t03009730404._1
774+ let outPr = $t03009730404._2
775+ let amBalanceNew = $t03009730404._3
776+ let prBalanceNew = $t03009730404._4
777777 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
778778 let curPr = f1(curPrX18, scale8)
779779 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
788788 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
789789 if ((burn == burn))
790790 then {
791- let $t03118631536 = {
791+ let $t03118931539 = {
792792 let feeAmountForCalc = if ((this == feeCollectorAddress))
793793 then 0
794794 else feeAmount
799799 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
800800 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
801801 }
802- let amountAssetBalanceDelta = $t03118631536._1
803- let priceAssetBalanceDelta = $t03118631536._2
804- let $t03153931647 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
805- let refreshDLpActions = $t03153931647._1
806- let updatedDLp = $t03153931647._2
802+ let amountAssetBalanceDelta = $t03118931539._1
803+ let priceAssetBalanceDelta = $t03118931539._2
804+ let $t03154231650 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
805+ let refreshDLpActions = $t03154231650._1
806+ let updatedDLp = $t03154231650._2
807807 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
808808 if ((isUpdatedDLpValid == isUpdatedDLpValid))
809809 then $Tuple2((state ++ refreshDLpActions), totalAmount)
972972 else throw("Strict value is not equal to itself.")
973973 }
974974 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
975- let $t03579635938 = refreshDLpInternal(0, 0, 0)
976- let refreshDLpActions = $t03579635938._1
977- let updatedDLp = $t03579635938._2
975+ let $t03579935941 = refreshDLpInternal(0, 0, 0)
976+ let refreshDLpActions = $t03579935941._1
977+ let updatedDLp = $t03579935941._2
978978 let check = if ((updatedDLp >= currentDLp))
979979 then true
980980 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
10471047 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10481048 if ((currentDLp == currentDLp))
10491049 then {
1050- let $t03757937737 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1051- if (($t03757937737 == $t03757937737))
1050+ let $t03758237740 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1051+ if (($t03758237740 == $t03758237740))
10521052 then {
1053- let feeAmount = $t03757937737._3
1054- let state = $t03757937737._2
1055- let estimLP = $t03757937737._1
1053+ let feeAmount = $t03758237740._3
1054+ let state = $t03758237740._2
1055+ let estimLP = $t03758237740._1
10561056 let emitLpAmt = if (if ((minOutAmount > 0))
10571057 then (minOutAmount > estimLP)
10581058 else false)
10801080 let sendFeeToMatcher = if ((feeAmount > 0))
10811081 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10821082 else nil
1083- let $t03855238901 = if ((this == feeCollectorAddress))
1083+ let $t03855538904 = if ((this == feeCollectorAddress))
10841084 then $Tuple2(0, 0)
10851085 else {
10861086 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
10901090 then $Tuple2(-(feeAmount), 0)
10911091 else $Tuple2(0, -(feeAmount))
10921092 }
1093- let amountAssetBalanceDelta = $t03855238901._1
1094- let priceAssetBalanceDelta = $t03855238901._2
1095- let $t03890439012 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1096- let refreshDLpActions = $t03890439012._1
1097- let updatedDLp = $t03890439012._2
1093+ let amountAssetBalanceDelta = $t03855538904._1
1094+ let priceAssetBalanceDelta = $t03855538904._2
1095+ let $t03890739015 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1096+ let refreshDLpActions = $t03890739015._1
1097+ let updatedDLp = $t03890739015._2
10981098 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
10991099 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11001100 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11261126 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11271127 if ((currentDLp == currentDLp))
11281128 then {
1129- let $t04004240107 = refreshDLpInternal(0, 0, 0)
1130- let refreshDLpActions = $t04004240107._1
1131- let updatedDLp = $t04004240107._2
1129+ let $t04004540110 = refreshDLpInternal(0, 0, 0)
1130+ let refreshDLpActions = $t04004540110._1
1131+ let updatedDLp = $t04004540110._2
11321132 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11331133 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11341134 then (state ++ refreshDLpActions)
11531153 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11541154 if ((b == b))
11551155 then {
1156- let $t04128041362 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157- let refreshDLpActions = $t04128041362._1
1158- let updatedDLp = $t04128041362._2
1156+ let $t04128341365 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157+ let refreshDLpActions = $t04128341365._1
1158+ let updatedDLp = $t04128341365._2
11591159 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11601160 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11611161 then (state ++ refreshDLpActions)
11901190 else throwErr("exactly 1 payment are expected")]
11911191 if ((checks == checks))
11921192 then {
1193- let $t04198042135 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1194- let state = $t04198042135._1
1195- let totalAmount = $t04198042135._2
1193+ let $t04198342138 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1194+ let state = $t04198342138._1
1195+ let totalAmount = $t04198342138._2
11961196 $Tuple2(state, totalAmount)
11971197 }
11981198 else throw("Strict value is not equal to itself.")
12091209 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12101210 then {
12111211 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1212- let $t04265942723 = refreshDLpInternal(0, 0, 0)
1213- let dLpUpdateActions = $t04265942723._1
1214- let updatedDLp = $t04265942723._2
1212+ let $t04266242726 = refreshDLpInternal(0, 0, 0)
1213+ let dLpUpdateActions = $t04266242726._1
1214+ let updatedDLp = $t04266242726._2
12151215 let actions = if ((dLp != updatedDLp))
12161216 then dLpUpdateActions
12171217 else throwErr("nothing to refresh")
12391239 let newY = getYD(xp, index, D1)
12401240 let dy = (xp[index] - newY)
12411241 let totalGetRaw = max([0, toInt((dy - big1))])
1242- let $t04365343708 = takeFee(totalGetRaw, outFee)
1243- let totalGet = $t04365343708._1
1244- let feeAmount = $t04365343708._2
1242+ let $t04365643711 = takeFee(totalGetRaw, outFee)
1243+ let totalGet = $t04365643711._1
1244+ let feeAmount = $t04365643711._2
12451245 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12461246 }
12471247
12541254 let lpId = toBase58String(value(cfgLpAssetId))
12551255 let amBalance = getAccBalance(amId)
12561256 let prBalance = getAccBalance(prId)
1257- let $t04408344198 = {
1257+ let $t04408644201 = {
12581258 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12591259 if ($isInstanceOf(@, "(Int, Int)"))
12601260 then @
12611261 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12621262 }
1263- let totalGet = $t04408344198._1
1264- let feeAmount = $t04408344198._2
1263+ let totalGet = $t04408644201._1
1264+ let feeAmount = $t04408644201._2
12651265 let r = ego("", lpId, lpAssetAmount, this)
12661266 let outAmAmt = r._1
12671267 let outPrAmt = r._2
12951295 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12961296 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12971297 then {
1298- let $t04536445445 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1299- let refreshDLpActions = $t04536445445._1
1300- let updatedDLp = $t04536445445._2
1298+ let $t04536745448 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1299+ let refreshDLpActions = $t04536745448._1
1300+ let updatedDLp = $t04536745448._2
13011301 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13021302 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13031303 then (state ++ refreshDLpActions)
13421342 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13431343 if ((burnA == burnA))
13441344 then {
1345- let $t04647246553 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1346- let refreshDLpActions = $t04647246553._1
1347- let updatedDLp = $t04647246553._2
1345+ let $t04647546556 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1346+ let refreshDLpActions = $t04647546556._1
1347+ let updatedDLp = $t04647546556._2
13481348 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13491349 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13501350 then (state ++ refreshDLpActions)
13951395 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13961396 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13971397 then {
1398- let $t04780447885 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1399- let refreshDLpActions = $t04780447885._1
1400- let updatedDLp = $t04780447885._2
1398+ let $t04780747888 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1399+ let refreshDLpActions = $t04780747888._1
1400+ let updatedDLp = $t04780747888._2
14011401 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14021402 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14031403 then (state ++ refreshDLpActions)
14441444 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14451445 if ((unstakeInv == unstakeInv))
14461446 then {
1447- let $t04878048968 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1448- let state = $t04878048968._1
1449- let totalAmount = $t04878048968._2
1447+ let $t04878348971 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1448+ let state = $t04878348971._1
1449+ let totalAmount = $t04878348971._2
14501450 $Tuple2(state, totalAmount)
14511451 }
14521452 else throw("Strict value is not equal to itself.")
14581458
14591459 @Callable(i)
14601460 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
1461- let $t04909649199 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1462- let lpAmount = $t04909649199._1
1463- let state = $t04909649199._2
1464- let feeAmount = $t04909649199._3
1465- let bonus = $t04909649199._4
1461+ let $t04909949202 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1462+ let lpAmount = $t04909949202._1
1463+ let state = $t04909949202._2
1464+ let feeAmount = $t04909949202._3
1465+ let bonus = $t04909949202._4
14661466 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14671467 }
14681468
14701470
14711471 @Callable(i)
14721472 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
1473- let $t04934749451 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1474- let lpAmount = $t04934749451._1
1475- let state = $t04934749451._2
1476- let feeAmount = $t04934749451._3
1477- let bonus = $t04934749451._4
1473+ let $t04935049454 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1474+ let lpAmount = $t04935049454._1
1475+ let state = $t04935049454._2
1476+ let feeAmount = $t04935049454._3
1477+ let bonus = $t04935049454._4
14781478 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14791479 }
14801480
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 = 1
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 toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
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 $t078478076 = poolConfigParsed
235235
236236 let cfgPoolAddress = $t078478076._1
237237
238238 let cfgPoolStatus = $t078478076._2
239239
240240 let cfgLpAssetId = $t078478076._3
241241
242242 let cfgAmountAssetId = $t078478076._4
243243
244244 let cfgPriceAssetId = $t078478076._5
245245
246246 let cfgAmountAssetDecimals = $t078478076._6
247247
248248 let cfgPriceAssetDecimals = $t078478076._7
249249
250250 let cfgInAmountAssedId = $t078478076._8
251251
252252 let cfgInPriceAssetId = $t078478076._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 ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
339339 let lpId = cfgLpAssetId
340340 let amId = toBase58String(value(cfgAmountAssetId))
341341 let prId = toBase58String(value(cfgPriceAssetId))
342342 let amDcm = cfgAmountAssetDecimals
343343 let prDcm = cfgPriceAssetDecimals
344344 let sts = toString(cfgPoolStatus)
345345 let lpEmiss = valueOrErrorMessage(assetInfo(lpId), "Wrong LP id").quantity
346346 if ((toBase58String(lpId) != pmtAssetId))
347347 then throw("Wrong pmt asset")
348348 else {
349349 let amBalance = getAccBalance(amId)
350350 let amBalanceX18 = t1(amBalance, amDcm)
351351 let prBalance = getAccBalance(prId)
352352 let prBalanceX18 = t1(prBalance, prDcm)
353353 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
354354 let curPrice = f1(curPriceX18, scale8)
355355 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
356356 let lpEmissX18 = t1(lpEmiss, scale8)
357357 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
358358 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
359359 let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
360360 let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
361361 let state = if ((txId58 == ""))
362362 then nil
363363 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
364364 then unit
365365 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
366366 then unit
367367 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)]
368368 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
369369 }
370370 }
371371
372372
373373 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
374374 let lpId = cfgLpAssetId
375375 let amIdStr = toBase58String(value(cfgAmountAssetId))
376376 let prIdStr = toBase58String(value(cfgPriceAssetId))
377377 let inAmIdStr = cfgInAmountAssedId
378378 let inPrIdStr = cfgInPriceAssetId
379379 let amtDcm = cfgAmountAssetDecimals
380380 let priceDcm = cfgPriceAssetDecimals
381381 let sts = toString(cfgPoolStatus)
382382 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
383383 let amBalance = if (isEval)
384384 then getAccBalance(amIdStr)
385385 else if (if (isOneAsset)
386386 then (pmtId == amIdStr)
387387 else false)
388388 then (getAccBalance(amIdStr) - pmtAmt)
389389 else if (isOneAsset)
390390 then getAccBalance(amIdStr)
391391 else (getAccBalance(amIdStr) - inAmAmt)
392392 let prBalance = if (isEval)
393393 then getAccBalance(prIdStr)
394394 else if (if (isOneAsset)
395395 then (pmtId == prIdStr)
396396 else false)
397397 then (getAccBalance(prIdStr) - pmtAmt)
398398 else if (isOneAsset)
399399 then getAccBalance(prIdStr)
400400 else (getAccBalance(prIdStr) - inPrAmt)
401401 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
402402 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
403403 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
404404 let amBalanceX18 = t1(amBalance, amtDcm)
405405 let prBalanceX18 = t1(prBalance, priceDcm)
406406 let r = if ((lpEm == 0))
407407 then {
408408 let curPriceX18 = zeroBigInt
409409 let slippageX18 = zeroBigInt
410410 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
411411 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
412412 }
413413 else {
414414 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
415415 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
416416 let slippageX18 = t1(slippage, scale8)
417417 if (if (if (validateSlippage)
418418 then (curPriceX18 != zeroBigInt)
419419 else false)
420420 then (slippageRealX18 > slippageX18)
421421 else false)
422422 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
423423 else {
424424 let lpEmissionX18 = t1(lpEm, scale8)
425425 let prViaAmX18 = fraction(inAmAssetAmtX18, cpbir(prBalanceX18, amBalanceX18, CEILING), scale18, CEILING)
426426 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, cpbir(prBalanceX18, amBalanceX18, FLOOR), CEILING)
427427 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
428428 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
429429 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
430430 let expAmtAssetAmtX18 = expectedAmts._1
431431 let expPriceAssetAmtX18 = expectedAmts._2
432432 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18, FLOOR)
433433 $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
434434 }
435435 }
436436 let calcLpAmt = r._1
437437 let calcAmAssetPmt = r._2
438438 let calcPrAssetPmt = r._3
439439 let curPrice = f1(r._4, scale8)
440440 let slippageCalc = f1(r._5, scale8)
441441 if ((0 >= calcLpAmt))
442442 then throw("LP <= 0")
443443 else {
444444 let emitLpAmt = if (!(emitLp))
445445 then 0
446446 else calcLpAmt
447447 let amDiff = (inAmAmt - calcAmAssetPmt)
448448 let prDiff = (inPrAmt - calcPrAssetPmt)
449449 let $t01872619071 = if (if (isOneAsset)
450450 then (pmtId == amIdStr)
451451 else false)
452452 then $Tuple2(pmtAmt, 0)
453453 else if (if (isOneAsset)
454454 then (pmtId == prIdStr)
455455 else false)
456456 then $Tuple2(0, pmtAmt)
457457 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
458458 let writeAmAmt = $t01872619071._1
459459 let writePrAmt = $t01872619071._2
460460 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))]
461461 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
462462 }
463463 }
464464
465465
466466 func getD (xp) = {
467467 let xp0 = xp[0]
468468 let xp1 = xp[1]
469469 let s = (xp0 + xp1)
470470 if ((s == big0))
471471 then big0
472472 else {
473473 let a = parseIntValue(A)
474474 let ann = (a * 2)
475475 let p = fraction(xp0, xp1, big1)
476476 let xp0_xp1_n_n = fraction(p, big4, big1)
477477 let ann_s = fraction(toBigInt(ann), s, big1)
478478 let ann_1 = toBigInt((ann - 1))
479479 func calcDNext (d) = {
480480 let dd = fraction(d, d, big1)
481481 let ddd = fraction(dd, d, big1)
482482 let dp = fraction(ddd, big1, xp0_xp1_n_n)
483483 fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)))
484484 }
485485
486486 func calc (acc,i) = if (acc._2)
487487 then acc
488488 else {
489489 let d = acc._1
490490 let dNext = calcDNext(d)
491491 let dDiffRaw = (dNext - value(d))
492492 let dDiff = if ((big0 > dDiffRaw))
493493 then -(dDiffRaw)
494494 else dDiffRaw
495495 if ((big1 >= dDiff))
496496 then $Tuple2(dNext, true)
497497 else $Tuple2(dNext, false)
498498 }
499499
500500 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
501501 let $t02097821026 = {
502502 let $l = arr
503503 let $s = size($l)
504504 let $acc0 = $Tuple2(s, false)
505505 func $f0_1 ($a,$i) = if (($i >= $s))
506506 then $a
507507 else calc($a, $l[$i])
508508
509509 func $f0_2 ($a,$i) = if (($i >= $s))
510510 then $a
511511 else throw("List size exceeds 15")
512512
513513 $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)
514514 }
515515 let d = $t02097821026._1
516516 let found = $t02097821026._2
517517 if (found)
518518 then d
519519 else throw(("D calculation error, D = " + toString(d)))
520520 }
521521 }
522522
523523
524524 func getYD (xp,i,D) = {
525525 let n = big2
526526 let x = xp[if ((i == 0))
527527 then 1
528528 else 0]
529529 let aPrecision = parseBigIntValue(Amult)
530530 let a = (parseBigIntValue(A) * aPrecision)
531531 let s = x
532532 let ann = (a * n)
533533 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
534534 let b = ((s + ((D * aPrecision) / ann)) - D)
535535 func calc (acc,cur) = {
536536 let $t02151821538 = acc
537537 let y = $t02151821538._1
538538 let found = $t02151821538._2
539539 if ((found != unit))
540540 then acc
541541 else {
542542 let yNext = (((y * y) + c) / ((big2 * y) + b))
543543 let yDiff = absBigInt((yNext - value(y)))
544544 if ((big1 >= yDiff))
545545 then $Tuple2(yNext, cur)
546546 else $Tuple2(yNext, unit)
547547 }
548548 }
549549
550550 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
551551 let $t02184521892 = {
552552 let $l = arr
553553 let $s = size($l)
554554 let $acc0 = $Tuple2(D, unit)
555555 func $f0_1 ($a,$i) = if (($i >= $s))
556556 then $a
557557 else calc($a, $l[$i])
558558
559559 func $f0_2 ($a,$i) = if (($i >= $s))
560560 then $a
561561 else throw("List size exceeds 15")
562562
563563 $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)
564564 }
565565 let y = $t02184521892._1
566566 let found = $t02184521892._2
567567 if ((found != unit))
568568 then y
569569 else throw(("Y calculation error, Y = " + toString(y)))
570570 }
571571
572572
573573 func calcDLp (amountBalance,priceBalance,lpEmission) = {
574- let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), big1, lpEmission)
574+ let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), scale18, lpEmission)
575575 if ((lpEmission == big0))
576576 then big0
577577 else updatedDLp
578578 }
579579
580580
581581 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
582582 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
583583 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
584584 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
585585 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
586586 currentDLp
587587 }
588588
589589
590590 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
591591 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
592592 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
593593 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
594594 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
595595 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
596596 $Tuple2(actions, updatedDLp)
597597 }
598598
599599
600600 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
601601 then true
602602 else throwErr("updated DLp lower than current DLp")
603603
604604
605605 func validateMatcherOrderAllowed (order) = {
606606 let amountAssetAmount = order.amount
607607 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
608- let $t02393324145 = if ((order.orderType == Buy))
608+ let $t02393624148 = if ((order.orderType == Buy))
609609 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
610610 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
611- let amountAssetBalanceDelta = $t02393324145._1
612- let priceAssetBalanceDelta = $t02393324145._2
611+ let amountAssetBalanceDelta = $t02393624148._1
612+ let priceAssetBalanceDelta = $t02393624148._2
613613 if (if (if (igs())
614614 then true
615615 else (cfgPoolStatus == PoolMatcherDis))
616616 then true
617617 else (cfgPoolStatus == PoolShutdown))
618618 then throw("Admin blocked")
619619 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
620620 then true
621621 else (order.assetPair.priceAsset != cfgPriceAssetId))
622622 then throw("Wr assets")
623623 else {
624624 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
625- let $t02447524575 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
626- let unusedActions = $t02447524575._1
627- let dLpNew = $t02447524575._2
625+ let $t02447824578 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
626+ let unusedActions = $t02447824578._1
627+ let dLpNew = $t02447824578._2
628628 let isOrderValid = (dLpNew >= dLp)
629629 isOrderValid
630630 }
631631 }
632632
633633
634634 func cg (i) = if ((size(i.payments) != 1))
635635 then throw("1 pmnt exp")
636636 else {
637637 let pmt = value(i.payments[0])
638638 let pmtAssetId = value(pmt.assetId)
639639 let pmtAmt = pmt.amount
640640 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
641641 let outAmAmt = r._1
642642 let outPrAmt = r._2
643643 let sts = parseIntValue(r._9)
644644 let state = r._10
645645 if (if (igs())
646646 then true
647647 else (sts == PoolShutdown))
648648 then throw(("Admin blocked: " + toString(sts)))
649649 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
650650 }
651651
652652
653653 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
654654 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
655655 let sts = parseIntValue(r._8)
656656 if (if (if (igs())
657657 then true
658658 else (sts == PoolPutDis))
659659 then true
660660 else (sts == PoolShutdown))
661661 then throw(("Blocked:" + toString(sts)))
662662 else r
663663 }
664664
665665
666666 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
667667 let amId = toBase58String(value(cfgAmountAssetId))
668668 let prId = toBase58String(value(cfgPriceAssetId))
669669 let lpId = cfgLpAssetId
670670 let amtDcm = cfgAmountAssetDecimals
671671 let priceDcm = cfgPriceAssetDecimals
672672 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(lpId), "invalid lp asset").quantity)
673673 let chechEmission = if ((lpAssetEmission > big0))
674674 then true
675675 else throw("initial deposit requires all coins")
676676 if ((chechEmission == chechEmission))
677677 then {
678678 let amBalance = getAccBalance(amId)
679679 let prBalance = getAccBalance(prId)
680- let $t02684127303 = if ((txId == ""))
680+ let $t02684427306 = if ((txId == ""))
681681 then $Tuple2(amBalance, prBalance)
682682 else if ((pmtAssetId == amId))
683683 then if ((pmtAmtRaw > amBalance))
684684 then throw("invalid payment amount")
685685 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
686686 else if ((pmtAssetId == prId))
687687 then if ((pmtAmtRaw > prBalance))
688688 then throw("invalid payment amount")
689689 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
690690 else throw("wrong pmtAssetId")
691- let amBalanceOld = $t02684127303._1
692- let prBalanceOld = $t02684127303._2
693- let $t02730927485 = if ((pmtAssetId == amId))
691+ let amBalanceOld = $t02684427306._1
692+ let prBalanceOld = $t02684427306._2
693+ let $t02731227488 = if ((pmtAssetId == amId))
694694 then $Tuple2(pmtAmtRaw, 0)
695695 else if ((pmtAssetId == prId))
696696 then $Tuple2(0, pmtAmtRaw)
697697 else throw("invalid payment")
698- let amAmountRaw = $t02730927485._1
699- let prAmountRaw = $t02730927485._2
700- let $t02748927743 = if (withTakeFee)
698+ let amAmountRaw = $t02731227488._1
699+ let prAmountRaw = $t02731227488._2
700+ let $t02749227746 = if (withTakeFee)
701701 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
702702 else $Tuple3(amAmountRaw, prAmountRaw, 0)
703- let amAmount = $t02748927743._1
704- let prAmount = $t02748927743._2
705- let feeAmount = $t02748927743._3
703+ let amAmount = $t02749227746._1
704+ let prAmount = $t02749227746._2
705+ let feeAmount = $t02749227746._3
706706 let amBalanceNew = (amBalanceOld + amAmount)
707707 let prBalanceNew = (prBalanceOld + prAmount)
708708 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
709709 let D1 = getD([toBigInt(amBalanceNew), toBigInt(prBalanceNew)])
710710 let checkD = if ((D1 > D0))
711711 then true
712712 else throw()
713713 if ((checkD == checkD))
714714 then {
715715 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
716716 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
717717 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))]
718718 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
719719 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
720720 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
721721 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
722722 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
723723 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
724724 }
725725 else throw("Strict value is not equal to itself.")
726726 }
727727 else throw("Strict value is not equal to itself.")
728728 }
729729
730730
731731 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
732732 let lpId = toBase58String(value(cfgLpAssetId))
733733 let amId = toBase58String(value(cfgAmountAssetId))
734734 let prId = toBase58String(value(cfgPriceAssetId))
735735 let amDecimals = cfgAmountAssetDecimals
736736 let prDecimals = cfgPriceAssetDecimals
737737 let poolStatus = cfgPoolStatus
738738 let userAddress = if ((caller == restContract))
739739 then originCaller
740740 else caller
741741 let pmt = value(payments[0])
742742 let pmtAssetId = value(pmt.assetId)
743743 let pmtAmt = pmt.amount
744744 let currentDLp = calcCurrentDLp(big0, big0, big0)
745745 if ((currentDLp == currentDLp))
746746 then {
747747 let txId58 = toBase58String(transactionId)
748748 if ((lpId != toBase58String(pmtAssetId)))
749749 then throw("Wrong LP")
750750 else {
751751 let amBalance = getAccBalance(amId)
752752 let prBalance = getAccBalance(prId)
753- let $t02979329904 = {
753+ let $t02979629907 = {
754754 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
755755 if ($isInstanceOf(@, "(Int, Int)"))
756756 then @
757757 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
758758 }
759- if (($t02979329904 == $t02979329904))
759+ if (($t02979629907 == $t02979629907))
760760 then {
761- let feeAmount = $t02979329904._2
762- let totalGet = $t02979329904._1
761+ let feeAmount = $t02979629907._2
762+ let totalGet = $t02979629907._1
763763 let totalAmount = if (if ((minOutAmount > 0))
764764 then (minOutAmount > totalGet)
765765 else false)
766766 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
767767 else totalGet
768- let $t03009430401 = if ((outAssetId == amId))
768+ let $t03009730404 = if ((outAssetId == amId))
769769 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
770770 else if ((outAssetId == prId))
771771 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
772772 else throw("invalid out asset id")
773- let outAm = $t03009430401._1
774- let outPr = $t03009430401._2
775- let amBalanceNew = $t03009430401._3
776- let prBalanceNew = $t03009430401._4
773+ let outAm = $t03009730404._1
774+ let outPr = $t03009730404._2
775+ let amBalanceNew = $t03009730404._3
776+ let prBalanceNew = $t03009730404._4
777777 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
778778 let curPr = f1(curPrX18, scale8)
779779 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
780780 then unit
781781 else fromBase58String(outAssetId)
782782 let sendFeeToMatcher = if ((feeAmount > 0))
783783 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
784784 else nil
785785 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)
786786 if ((state == state))
787787 then {
788788 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
789789 if ((burn == burn))
790790 then {
791- let $t03118631536 = {
791+ let $t03118931539 = {
792792 let feeAmountForCalc = if ((this == feeCollectorAddress))
793793 then 0
794794 else feeAmount
795795 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
796796 then true
797797 else false
798798 if (outInAmountAsset)
799799 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
800800 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
801801 }
802- let amountAssetBalanceDelta = $t03118631536._1
803- let priceAssetBalanceDelta = $t03118631536._2
804- let $t03153931647 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
805- let refreshDLpActions = $t03153931647._1
806- let updatedDLp = $t03153931647._2
802+ let amountAssetBalanceDelta = $t03118931539._1
803+ let priceAssetBalanceDelta = $t03118931539._2
804+ let $t03154231650 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
805+ let refreshDLpActions = $t03154231650._1
806+ let updatedDLp = $t03154231650._2
807807 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
808808 if ((isUpdatedDLpValid == isUpdatedDLpValid))
809809 then $Tuple2((state ++ refreshDLpActions), totalAmount)
810810 else throw("Strict value is not equal to itself.")
811811 }
812812 else throw("Strict value is not equal to itself.")
813813 }
814814 else throw("Strict value is not equal to itself.")
815815 }
816816 else throw("Strict value is not equal to itself.")
817817 }
818818 }
819819 else throw("Strict value is not equal to itself.")
820820 }
821821
822822
823823 func m () = match getString(mpk()) {
824824 case s: String =>
825825 fromBase58String(s)
826826 case _: Unit =>
827827 unit
828828 case _ =>
829829 throw("Match error")
830830 }
831831
832832
833833 func pm () = match getString(pmpk()) {
834834 case s: String =>
835835 fromBase58String(s)
836836 case _: Unit =>
837837 unit
838838 case _ =>
839839 throw("Match error")
840840 }
841841
842842
843843 let pd = throw("Permission denied")
844844
845845 func isManager (i) = match m() {
846846 case pk: ByteVector =>
847847 (i.callerPublicKey == pk)
848848 case _: Unit =>
849849 (i.caller == this)
850850 case _ =>
851851 throw("Match error")
852852 }
853853
854854
855855 func mm (i) = match m() {
856856 case pk: ByteVector =>
857857 if ((i.callerPublicKey == pk))
858858 then true
859859 else pd
860860 case _: Unit =>
861861 if ((i.caller == this))
862862 then true
863863 else pd
864864 case _ =>
865865 throw("Match error")
866866 }
867867
868868
869869 @Callable(i)
870870 func constructor (fc) = {
871871 let c = mm(i)
872872 if ((c == c))
873873 then [StringEntry(fc(), fc)]
874874 else throw("Strict value is not equal to itself.")
875875 }
876876
877877
878878
879879 @Callable(i)
880880 func setManager (pendingManagerPublicKey) = {
881881 let c = mm(i)
882882 if ((c == c))
883883 then {
884884 let cm = fromBase58String(pendingManagerPublicKey)
885885 if ((cm == cm))
886886 then [StringEntry(pmpk(), pendingManagerPublicKey)]
887887 else throw("Strict value is not equal to itself.")
888888 }
889889 else throw("Strict value is not equal to itself.")
890890 }
891891
892892
893893
894894 @Callable(i)
895895 func confirmManager () = {
896896 let p = pm()
897897 let hpm = if (isDefined(p))
898898 then true
899899 else throw("No pending manager")
900900 if ((hpm == hpm))
901901 then {
902902 let cpm = if ((i.callerPublicKey == value(p)))
903903 then true
904904 else throw("You are not pending manager")
905905 if ((cpm == cpm))
906906 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
907907 else throw("Strict value is not equal to itself.")
908908 }
909909 else throw("Strict value is not equal to itself.")
910910 }
911911
912912
913913
914914 @Callable(i)
915915 func put (slip,autoStake) = {
916916 let factCfg = gfc()
917917 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
918918 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
919919 if ((0 > slip))
920920 then throw("Wrong slippage")
921921 else if ((size(i.payments) != 2))
922922 then throw("2 pmnts expd")
923923 else {
924924 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
925925 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
926926 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
927927 if ((amountAssetBalance == amountAssetBalance))
928928 then {
929929 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
930930 if ((priceAssetBalance == priceAssetBalance))
931931 then {
932932 let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
933933 if ((lpAssetEmission == lpAssetEmission))
934934 then {
935935 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
936936 if ((currentDLp == currentDLp))
937937 then {
938938 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, "")
939939 let emitLpAmt = e._2
940940 let lpAssetId = e._7
941941 let state = e._9
942942 let amDiff = e._10
943943 let prDiff = e._11
944944 let amId = e._12
945945 let prId = e._13
946946 let r = invoke(fca, "emit", [emitLpAmt], nil)
947947 if ((r == r))
948948 then {
949949 let el = match r {
950950 case legacy: Address =>
951951 invoke(legacy, "emit", [emitLpAmt], nil)
952952 case _ =>
953953 unit
954954 }
955955 if ((el == el))
956956 then {
957957 let sa = if ((amDiff > 0))
958958 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
959959 else nil
960960 if ((sa == sa))
961961 then {
962962 let sp = if ((prDiff > 0))
963963 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
964964 else nil
965965 if ((sp == sp))
966966 then {
967967 let lpTrnsfr = if (autoStake)
968968 then {
969969 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
970970 if ((ss == ss))
971971 then nil
972972 else throw("Strict value is not equal to itself.")
973973 }
974974 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
975- let $t03579635938 = refreshDLpInternal(0, 0, 0)
976- let refreshDLpActions = $t03579635938._1
977- let updatedDLp = $t03579635938._2
975+ let $t03579935941 = refreshDLpInternal(0, 0, 0)
976+ let refreshDLpActions = $t03579935941._1
977+ let updatedDLp = $t03579935941._2
978978 let check = if ((updatedDLp >= currentDLp))
979979 then true
980980 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
981981 if ((check == check))
982982 then {
983983 let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
984984 if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
985985 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
986986 else throw("Strict value is not equal to itself.")
987987 }
988988 else throw("Strict value is not equal to itself.")
989989 }
990990 else throw("Strict value is not equal to itself.")
991991 }
992992 else throw("Strict value is not equal to itself.")
993993 }
994994 else throw("Strict value is not equal to itself.")
995995 }
996996 else throw("Strict value is not equal to itself.")
997997 }
998998 else throw("Strict value is not equal to itself.")
999999 }
10001000 else throw("Strict value is not equal to itself.")
10011001 }
10021002 else throw("Strict value is not equal to itself.")
10031003 }
10041004 else throw("Strict value is not equal to itself.")
10051005 }
10061006 }
10071007
10081008
10091009
10101010 @Callable(i)
10111011 func putOneTknV2 (minOutAmount,autoStake) = {
10121012 let isPoolOneTokenOperationsDisabled = {
10131013 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10141014 if ($isInstanceOf(@, "Boolean"))
10151015 then @
10161016 else throw(($getType(@) + " couldn't be cast to Boolean"))
10171017 }
10181018 let isPutDisabled = if (if (if (igs())
10191019 then true
10201020 else (cfgPoolStatus == PoolPutDis))
10211021 then true
10221022 else (cfgPoolStatus == PoolShutdown))
10231023 then true
10241024 else isPoolOneTokenOperationsDisabled
10251025 let checks = [if (if (!(isPutDisabled))
10261026 then true
10271027 else isManager(i))
10281028 then true
10291029 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10301030 then true
10311031 else throwErr("exactly 1 payment are expected")]
10321032 if ((checks == checks))
10331033 then {
10341034 let amId = toBase58String(value(cfgAmountAssetId))
10351035 let prId = toBase58String(value(cfgPriceAssetId))
10361036 let lpId = cfgLpAssetId
10371037 let amDecimals = cfgAmountAssetDecimals
10381038 let prDecimals = cfgPriceAssetDecimals
10391039 let userAddress = if ((i.caller == this))
10401040 then i.originCaller
10411041 else i.caller
10421042 let pmt = value(i.payments[0])
10431043 let pmtAssetId = toBase58String(value(pmt.assetId))
10441044 let pmtAmt = pmt.amount
10451045 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
10461046 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
10471047 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10481048 if ((currentDLp == currentDLp))
10491049 then {
1050- let $t03757937737 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1051- if (($t03757937737 == $t03757937737))
1050+ let $t03758237740 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1051+ if (($t03758237740 == $t03758237740))
10521052 then {
1053- let feeAmount = $t03757937737._3
1054- let state = $t03757937737._2
1055- let estimLP = $t03757937737._1
1053+ let feeAmount = $t03758237740._3
1054+ let state = $t03758237740._2
1055+ let estimLP = $t03758237740._1
10561056 let emitLpAmt = if (if ((minOutAmount > 0))
10571057 then (minOutAmount > estimLP)
10581058 else false)
10591059 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10601060 else estimLP
10611061 let e = invoke(fca, "emit", [emitLpAmt], nil)
10621062 if ((e == e))
10631063 then {
10641064 let el = match e {
10651065 case legacy: Address =>
10661066 invoke(legacy, "emit", [emitLpAmt], nil)
10671067 case _ =>
10681068 unit
10691069 }
10701070 if ((el == el))
10711071 then {
10721072 let lpTrnsfr = if (autoStake)
10731073 then {
10741074 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
10751075 if ((ss == ss))
10761076 then nil
10771077 else throw("Strict value is not equal to itself.")
10781078 }
10791079 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
10801080 let sendFeeToMatcher = if ((feeAmount > 0))
10811081 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10821082 else nil
1083- let $t03855238901 = if ((this == feeCollectorAddress))
1083+ let $t03855538904 = if ((this == feeCollectorAddress))
10841084 then $Tuple2(0, 0)
10851085 else {
10861086 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
10871087 then true
10881088 else false
10891089 if (paymentInAmountAsset)
10901090 then $Tuple2(-(feeAmount), 0)
10911091 else $Tuple2(0, -(feeAmount))
10921092 }
1093- let amountAssetBalanceDelta = $t03855238901._1
1094- let priceAssetBalanceDelta = $t03855238901._2
1095- let $t03890439012 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1096- let refreshDLpActions = $t03890439012._1
1097- let updatedDLp = $t03890439012._2
1093+ let amountAssetBalanceDelta = $t03855538904._1
1094+ let priceAssetBalanceDelta = $t03855538904._2
1095+ let $t03890739015 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1096+ let refreshDLpActions = $t03890739015._1
1097+ let updatedDLp = $t03890739015._2
10981098 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
10991099 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11001100 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11011101 else throw("Strict value is not equal to itself.")
11021102 }
11031103 else throw("Strict value is not equal to itself.")
11041104 }
11051105 else throw("Strict value is not equal to itself.")
11061106 }
11071107 else throw("Strict value is not equal to itself.")
11081108 }
11091109 else throw("Strict value is not equal to itself.")
11101110 }
11111111 else throw("Strict value is not equal to itself.")
11121112 }
11131113
11141114
11151115
11161116 @Callable(i)
11171117 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11181118 then throw("Wrong slpg")
11191119 else if ((size(i.payments) != 2))
11201120 then throw("2 pmnts expd")
11211121 else {
11221122 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, "")
11231123 let state = estPut._9
11241124 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11251125 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11261126 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11271127 if ((currentDLp == currentDLp))
11281128 then {
1129- let $t04004240107 = refreshDLpInternal(0, 0, 0)
1130- let refreshDLpActions = $t04004240107._1
1131- let updatedDLp = $t04004240107._2
1129+ let $t04004540110 = refreshDLpInternal(0, 0, 0)
1130+ let refreshDLpActions = $t04004540110._1
1131+ let updatedDLp = $t04004540110._2
11321132 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11331133 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11341134 then (state ++ refreshDLpActions)
11351135 else throw("Strict value is not equal to itself.")
11361136 }
11371137 else throw("Strict value is not equal to itself.")
11381138 }
11391139
11401140
11411141
11421142 @Callable(i)
11431143 func get () = {
11441144 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
11451145 if ((currentDLp == currentDLp))
11461146 then {
11471147 let r = cg(i)
11481148 let outAmtAmt = r._1
11491149 let outPrAmt = r._2
11501150 let pmtAmt = r._3
11511151 let pmtAssetId = r._4
11521152 let state = r._5
11531153 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11541154 if ((b == b))
11551155 then {
1156- let $t04128041362 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157- let refreshDLpActions = $t04128041362._1
1158- let updatedDLp = $t04128041362._2
1156+ let $t04128341365 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157+ let refreshDLpActions = $t04128341365._1
1158+ let updatedDLp = $t04128341365._2
11591159 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11601160 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11611161 then (state ++ refreshDLpActions)
11621162 else throw("Strict value is not equal to itself.")
11631163 }
11641164 else throw("Strict value is not equal to itself.")
11651165 }
11661166 else throw("Strict value is not equal to itself.")
11671167 }
11681168
11691169
11701170
11711171 @Callable(i)
11721172 func getOneTknV2 (outAssetId,minOutAmount) = {
11731173 let isPoolOneTokenOperationsDisabled = {
11741174 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11751175 if ($isInstanceOf(@, "Boolean"))
11761176 then @
11771177 else throw(($getType(@) + " couldn't be cast to Boolean"))
11781178 }
11791179 let isGetDisabled = if (if (igs())
11801180 then true
11811181 else (cfgPoolStatus == PoolShutdown))
11821182 then true
11831183 else isPoolOneTokenOperationsDisabled
11841184 let checks = [if (if (!(isGetDisabled))
11851185 then true
11861186 else isManager(i))
11871187 then true
11881188 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
11891189 then true
11901190 else throwErr("exactly 1 payment are expected")]
11911191 if ((checks == checks))
11921192 then {
1193- let $t04198042135 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1194- let state = $t04198042135._1
1195- let totalAmount = $t04198042135._2
1193+ let $t04198342138 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1194+ let state = $t04198342138._1
1195+ let totalAmount = $t04198342138._2
11961196 $Tuple2(state, totalAmount)
11971197 }
11981198 else throw("Strict value is not equal to itself.")
11991199 }
12001200
12011201
12021202
12031203 @Callable(i)
12041204 func refreshDLp () = {
12051205 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12061206 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12071207 then unit
12081208 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12091209 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12101210 then {
12111211 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1212- let $t04265942723 = refreshDLpInternal(0, 0, 0)
1213- let dLpUpdateActions = $t04265942723._1
1214- let updatedDLp = $t04265942723._2
1212+ let $t04266242726 = refreshDLpInternal(0, 0, 0)
1213+ let dLpUpdateActions = $t04266242726._1
1214+ let updatedDLp = $t04266242726._2
12151215 let actions = if ((dLp != updatedDLp))
12161216 then dLpUpdateActions
12171217 else throwErr("nothing to refresh")
12181218 $Tuple2(actions, toString(updatedDLp))
12191219 }
12201220 else throw("Strict value is not equal to itself.")
12211221 }
12221222
12231223
12241224
12251225 @Callable(i)
12261226 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12271227 let amId = toBase58String(value(cfgAmountAssetId))
12281228 let prId = toBase58String(value(cfgPriceAssetId))
12291229 let lpId = toBase58String(value(cfgLpAssetId))
12301230 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12311231 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12321232 let D0 = getD(xp)
12331233 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12341234 let index = if ((outAssetId == amId))
12351235 then 0
12361236 else if ((outAssetId == prId))
12371237 then 1
12381238 else throw("invalid out asset id")
12391239 let newY = getYD(xp, index, D1)
12401240 let dy = (xp[index] - newY)
12411241 let totalGetRaw = max([0, toInt((dy - big1))])
1242- let $t04365343708 = takeFee(totalGetRaw, outFee)
1243- let totalGet = $t04365343708._1
1244- let feeAmount = $t04365343708._2
1242+ let $t04365643711 = takeFee(totalGetRaw, outFee)
1243+ let totalGet = $t04365643711._1
1244+ let feeAmount = $t04365643711._2
12451245 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12461246 }
12471247
12481248
12491249
12501250 @Callable(i)
12511251 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12521252 let amId = toBase58String(value(cfgAmountAssetId))
12531253 let prId = toBase58String(value(cfgPriceAssetId))
12541254 let lpId = toBase58String(value(cfgLpAssetId))
12551255 let amBalance = getAccBalance(amId)
12561256 let prBalance = getAccBalance(prId)
1257- let $t04408344198 = {
1257+ let $t04408644201 = {
12581258 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12591259 if ($isInstanceOf(@, "(Int, Int)"))
12601260 then @
12611261 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12621262 }
1263- let totalGet = $t04408344198._1
1264- let feeAmount = $t04408344198._2
1263+ let totalGet = $t04408644201._1
1264+ let feeAmount = $t04408644201._2
12651265 let r = ego("", lpId, lpAssetAmount, this)
12661266 let outAmAmt = r._1
12671267 let outPrAmt = r._2
12681268 let sumOfGetAssets = (outAmAmt + outPrAmt)
12691269 let bonus = if ((sumOfGetAssets == 0))
12701270 then if ((totalGet == 0))
12711271 then 0
12721272 else throw("bonus calculation error")
12731273 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
12741274 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
12751275 }
12761276
12771277
12781278
12791279 @Callable(i)
12801280 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
12811281 let r = cg(i)
12821282 let outAmAmt = r._1
12831283 let outPrAmt = r._2
12841284 let pmtAmt = r._3
12851285 let pmtAssetId = r._4
12861286 let state = r._5
12871287 if ((noLessThenAmtAsset > outAmAmt))
12881288 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
12891289 else if ((noLessThenPriceAsset > outPrAmt))
12901290 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
12911291 else {
12921292 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
12931293 if ((currentDLp == currentDLp))
12941294 then {
12951295 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12961296 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12971297 then {
1298- let $t04536445445 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1299- let refreshDLpActions = $t04536445445._1
1300- let updatedDLp = $t04536445445._2
1298+ let $t04536745448 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1299+ let refreshDLpActions = $t04536745448._1
1300+ let updatedDLp = $t04536745448._2
13011301 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13021302 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13031303 then (state ++ refreshDLpActions)
13041304 else throw("Strict value is not equal to itself.")
13051305 }
13061306 else throw("Strict value is not equal to itself.")
13071307 }
13081308 else throw("Strict value is not equal to itself.")
13091309 }
13101310 }
13111311
13121312
13131313
13141314 @Callable(i)
13151315 func unstakeAndGet (amount) = {
13161316 let checkPayments = if ((size(i.payments) != 0))
13171317 then throw("No pmnts expd")
13181318 else true
13191319 if ((checkPayments == checkPayments))
13201320 then {
13211321 let factoryCfg = gfc()
13221322 let lpAssetId = cfgLpAssetId
13231323 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13241324 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13251325 if ((currentDLp == currentDLp))
13261326 then {
13271327 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13281328 if ((unstakeInv == unstakeInv))
13291329 then {
13301330 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13311331 let outAmAmt = r._1
13321332 let outPrAmt = r._2
13331333 let sts = parseIntValue(r._9)
13341334 let state = r._10
13351335 let v = if (if (igs())
13361336 then true
13371337 else (sts == PoolShutdown))
13381338 then throw(("Blocked: " + toString(sts)))
13391339 else true
13401340 if ((v == v))
13411341 then {
13421342 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13431343 if ((burnA == burnA))
13441344 then {
1345- let $t04647246553 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1346- let refreshDLpActions = $t04647246553._1
1347- let updatedDLp = $t04647246553._2
1345+ let $t04647546556 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1346+ let refreshDLpActions = $t04647546556._1
1347+ let updatedDLp = $t04647546556._2
13481348 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13491349 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13501350 then (state ++ refreshDLpActions)
13511351 else throw("Strict value is not equal to itself.")
13521352 }
13531353 else throw("Strict value is not equal to itself.")
13541354 }
13551355 else throw("Strict value is not equal to itself.")
13561356 }
13571357 else throw("Strict value is not equal to itself.")
13581358 }
13591359 else throw("Strict value is not equal to itself.")
13601360 }
13611361 else throw("Strict value is not equal to itself.")
13621362 }
13631363
13641364
13651365
13661366 @Callable(i)
13671367 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13681368 let isGetDisabled = if (igs())
13691369 then true
13701370 else (cfgPoolStatus == PoolShutdown)
13711371 let checks = [if (!(isGetDisabled))
13721372 then true
13731373 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13741374 then true
13751375 else throw("no payments are expected")]
13761376 if ((checks == checks))
13771377 then {
13781378 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13791379 if ((currentDLp == currentDLp))
13801380 then {
13811381 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
13821382 if ((unstakeInv == unstakeInv))
13831383 then {
13841384 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
13851385 let outAmAmt = res._1
13861386 let outPrAmt = res._2
13871387 let state = res._10
13881388 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
13891389 then true
13901390 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
13911391 then true
13921392 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
13931393 if ((checkAmounts == checkAmounts))
13941394 then {
13951395 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13961396 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13971397 then {
1398- let $t04780447885 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1399- let refreshDLpActions = $t04780447885._1
1400- let updatedDLp = $t04780447885._2
1398+ let $t04780747888 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1399+ let refreshDLpActions = $t04780747888._1
1400+ let updatedDLp = $t04780747888._2
14011401 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14021402 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14031403 then (state ++ refreshDLpActions)
14041404 else throw("Strict value is not equal to itself.")
14051405 }
14061406 else throw("Strict value is not equal to itself.")
14071407 }
14081408 else throw("Strict value is not equal to itself.")
14091409 }
14101410 else throw("Strict value is not equal to itself.")
14111411 }
14121412 else throw("Strict value is not equal to itself.")
14131413 }
14141414 else throw("Strict value is not equal to itself.")
14151415 }
14161416
14171417
14181418
14191419 @Callable(i)
14201420 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14211421 let isPoolOneTokenOperationsDisabled = {
14221422 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14231423 if ($isInstanceOf(@, "Boolean"))
14241424 then @
14251425 else throw(($getType(@) + " couldn't be cast to Boolean"))
14261426 }
14271427 let isGetDisabled = if (if (igs())
14281428 then true
14291429 else (cfgPoolStatus == PoolShutdown))
14301430 then true
14311431 else isPoolOneTokenOperationsDisabled
14321432 let checks = [if (if (!(isGetDisabled))
14331433 then true
14341434 else isManager(i))
14351435 then true
14361436 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14371437 then true
14381438 else throwErr("no payments are expected")]
14391439 if ((checks == checks))
14401440 then {
14411441 let factoryCfg = gfc()
14421442 let lpAssetId = cfgLpAssetId
14431443 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14441444 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14451445 if ((unstakeInv == unstakeInv))
14461446 then {
1447- let $t04878048968 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1448- let state = $t04878048968._1
1449- let totalAmount = $t04878048968._2
1447+ let $t04878348971 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1448+ let state = $t04878348971._1
1449+ let totalAmount = $t04878348971._2
14501450 $Tuple2(state, totalAmount)
14511451 }
14521452 else throw("Strict value is not equal to itself.")
14531453 }
14541454 else throw("Strict value is not equal to itself.")
14551455 }
14561456
14571457
14581458
14591459 @Callable(i)
14601460 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
1461- let $t04909649199 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1462- let lpAmount = $t04909649199._1
1463- let state = $t04909649199._2
1464- let feeAmount = $t04909649199._3
1465- let bonus = $t04909649199._4
1461+ let $t04909949202 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1462+ let lpAmount = $t04909949202._1
1463+ let state = $t04909949202._2
1464+ let feeAmount = $t04909949202._3
1465+ let bonus = $t04909949202._4
14661466 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14671467 }
14681468
14691469
14701470
14711471 @Callable(i)
14721472 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
1473- let $t04934749451 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1474- let lpAmount = $t04934749451._1
1475- let state = $t04934749451._2
1476- let feeAmount = $t04934749451._3
1477- let bonus = $t04934749451._4
1473+ let $t04935049454 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1474+ let lpAmount = $t04935049454._1
1475+ let state = $t04935049454._2
1476+ let feeAmount = $t04935049454._3
1477+ let bonus = $t04935049454._4
14781478 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14791479 }
14801480
14811481
14821482
14831483 @Callable(i)
14841484 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
14851485 then throw("denied")
14861486 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
14871487
14881488
14891489
14901490 @Callable(i)
14911491 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
14921492 then pd
14931493 else [StringEntry(k, v)]
14941494
14951495
14961496
14971497 @Callable(i)
14981498 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
14991499 then pd
15001500 else [IntegerEntry(k, v)]
15011501
15021502
15031503
15041504 @Callable(i)
15051505 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15061506
15071507
15081508
15091509 @Callable(i)
15101510 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15111511
15121512
15131513
15141514 @Callable(i)
15151515 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15161516 let pr = calcPrices(amAmt, prAmt, lpAmt)
15171517 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15181518 }
15191519
15201520
15211521
15221522 @Callable(i)
15231523 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15241524
15251525
15261526
15271527 @Callable(i)
15281528 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15291529
15301530
15311531
15321532 @Callable(i)
15331533 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15341534
15351535
15361536
15371537 @Callable(i)
15381538 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, ""))
15391539
15401540
15411541
15421542 @Callable(i)
15431543 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15441544 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15451545 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15461546 }
15471547
15481548
15491549 @Verifier(tx)
15501550 func verify () = {
15511551 let targetPublicKey = match m() {
15521552 case pk: ByteVector =>
15531553 pk
15541554 case _: Unit =>
15551555 tx.senderPublicKey
15561556 case _ =>
15571557 throw("Match error")
15581558 }
15591559 match tx {
15601560 case order: Order =>
15611561 let matcherPub = mp()
15621562 let orderValid = validateMatcherOrderAllowed(order)
15631563 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15641564 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15651565 if (if (if (orderValid)
15661566 then senderValid
15671567 else false)
15681568 then matcherValid
15691569 else false)
15701570 then true
15711571 else toe(orderValid, senderValid, matcherValid)
15721572 case s: SetScriptTransaction =>
15731573 if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
15741574 then true
15751575 else {
15761576 let newHash = blake2b256(value(s.script))
15771577 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15781578 let currentHash = scriptHash(this)
15791579 if ((allowedHash == newHash))
15801580 then (currentHash != newHash)
15811581 else false
15821582 }
15831583 case _ =>
15841584 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15851585 }
15861586 }
15871587

github/deemru/w8io/026f985 
250.83 ms