tx · HjsH5rQaUnzwmTQBwsTcPXASbdeV3777gCMb9j3WuJac

3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA:  -0.03600000 Waves

2022.12.16 09:51 [2362516] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves

{ "type": 13, "id": "HjsH5rQaUnzwmTQBwsTcPXASbdeV3777gCMb9j3WuJac", "fee": 3600000, "feeAssetId": null, "timestamp": 1671173421369, "version": 1, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "5i9uJp9BrSwjM7uQa6gvVqV3N6J1bkJj1njR35ACqkHT44Qw4ew5g3g3keTJSgx7TZvzvVLda94NYjSd14UsqZdg" ], "script": "base64:BgLNKAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUFtdEFzSWQiDWlkeElQcmljZUFzSWQiD2lke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"applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HaCm9rH4DQY94cT8vVtvKsaUsAHAQdqTassK9GhdcJqb Next: HBwtdpm4AsG8tvQjR1jKHdzTstrSktt7yJYZw9kTMZw2 Diff:
OldNewDifferences
7171
7272
7373 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
74-
75-
76-func fromX18Round (val,resultScaleMult,round) = toInt(fraction(val, toBigInt(resultScaleMult), scale18, round))
7774
7875
7976 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
216213
217214 let poolConfigParsed = parsePoolConfig(gpc())
218215
219-let $t074067592 = poolConfigParsed
216+let $t072557441 = poolConfigParsed
220217
221-let cfgPoolAddress = $t074067592._1
218+let cfgPoolAddress = $t072557441._1
222219
223-let cfgPoolStatus = $t074067592._2
220+let cfgPoolStatus = $t072557441._2
224221
225-let cfgLpAssetId = $t074067592._3
222+let cfgLpAssetId = $t072557441._3
226223
227-let cfgAmountAssetId = $t074067592._4
224+let cfgAmountAssetId = $t072557441._4
228225
229-let cfgPriceAssetId = $t074067592._5
226+let cfgPriceAssetId = $t072557441._5
230227
231-let cfgAmountAssetDecimals = $t074067592._6
228+let cfgAmountAssetDecimals = $t072557441._6
232229
233-let cfgPriceAssetDecimals = $t074067592._7
230+let cfgPriceAssetDecimals = $t072557441._7
234231
235232 func gfc () = split(strf(fca, fcfg()), SEP)
236233
334331 let lpEmissX18 = t1(lpEmiss, scale8)
335332 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
336333 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
337- let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
338- let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
334+ let outAmAmt = f1(outAmAmtX18, amDcm)
335+ let outPrAmt = f1(outPrAmtX18, prDcm)
339336 let state = if ((txId58 == ""))
340337 then nil
341338 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
409406 let expAmtAssetAmtX18 = expectedAmts._1
410407 let expPriceAssetAmtX18 = expectedAmts._2
411408 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
412- $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
409+ $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
413410 }
414411 }
415412 let calcLpAmt = r._1
425422 else calcLpAmt
426423 let amDiff = (inAmAmt - calcAmAssetPmt)
427424 let prDiff = (inPrAmt - calcPrAssetPmt)
428- let $t01811218457 = if (if (isOneAsset)
425+ let $t01787218217 = if (if (isOneAsset)
429426 then (pmtId == amIdStr)
430427 else false)
431428 then $Tuple2(pmtAmt, 0)
434431 else false)
435432 then $Tuple2(0, pmtAmt)
436433 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
437- let writeAmAmt = $t01811218457._1
438- let writePrAmt = $t01811218457._2
434+ let writeAmAmt = $t01787218217._1
435+ let writePrAmt = $t01787218217._2
439436 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))]
440437 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
441438 }
477474 }
478475
479476 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
480- let $t02038520433 = {
477+ let $t02014520193 = {
481478 let $l = arr
482479 let $s = size($l)
483480 let $acc0 = $Tuple2(s, false)
491488
492489 $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)
493490 }
494- let d = $t02038520433._1
495- let found = $t02038520433._2
491+ let d = $t02014520193._1
492+ let found = $t02014520193._2
496493 if (found)
497494 then d
498495 else throw(("D calculation error, D = " + toString(d)))
516513 let ann_aPrecision = (ann - aPrecision)
517514 let n1 = (n + big1)
518515 func calc (acc,cur) = {
519- let $t02106221082 = acc
520- let d = $t02106221082._1
521- let found = $t02106221082._2
516+ let $t02082220842 = acc
517+ let d = $t02082220842._1
518+ let found = $t02082220842._2
522519 if ((found != unit))
523520 then acc
524521 else {
532529 }
533530
534531 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
535- let $t02150321550 = {
532+ let $t02126321310 = {
536533 let $l = arr
537534 let $s = size($l)
538535 let $acc0 = $Tuple2(s, unit)
546543
547544 $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)
548545 }
549- let d = $t02150321550._1
550- let found = $t02150321550._2
546+ let d = $t02126321310._1
547+ let found = $t02126321310._2
551548 if ((found != unit))
552549 then d
553550 else throw(("D calculation error, D = " + toString(d)))
567564 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
568565 let b = ((s + ((D * aPrecision) / ann)) - D)
569566 func calc (acc,cur) = {
570- let $t02205022070 = acc
571- let y = $t02205022070._1
572- let found = $t02205022070._2
567+ let $t02181021830 = acc
568+ let y = $t02181021830._1
569+ let found = $t02181021830._2
573570 if ((found != unit))
574571 then acc
575572 else {
582579 }
583580
584581 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
585- let $t02237722424 = {
582+ let $t02213722184 = {
586583 let $l = arr
587584 let $s = size($l)
588585 let $acc0 = $Tuple2(D, unit)
596593
597594 $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)
598595 }
599- let y = $t02237722424._1
600- let found = $t02237722424._2
596+ let y = $t02213722184._1
597+ let found = $t02213722184._2
601598 if ((found != unit))
602599 then y
603600 else throw(("Y calculation error, Y = " + toString(y)))
639636 func validateMatcherOrderAllowed (order) = {
640637 let amountAssetAmount = order.amount
641638 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
642- let $t02436324575 = if ((order.orderType == Buy))
639+ let $t02412324335 = if ((order.orderType == Buy))
643640 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
644641 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
645- let amountAssetBalanceDelta = $t02436324575._1
646- let priceAssetBalanceDelta = $t02436324575._2
642+ let amountAssetBalanceDelta = $t02412324335._1
643+ let priceAssetBalanceDelta = $t02412324335._2
647644 if (if (if (igs())
648645 then true
649646 else (cfgPoolStatus == PoolMatcherDis))
656653 then throw("Wr assets")
657654 else {
658655 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
659- let $t02490525005 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
660- let unusedActions = $t02490525005._1
661- let dLpNew = $t02490525005._2
656+ let $t02466524765 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
657+ let unusedActions = $t02466524765._1
658+ let dLpNew = $t02466524765._2
662659 let isOrderValid = (dLpNew >= dLp)
663660 isOrderValid
664661 }
712709 then {
713710 let amBalance = getAccBalance(amId)
714711 let prBalance = getAccBalance(prId)
715- let $t02732227784 = if ((txId == ""))
712+ let $t02708227544 = if ((txId == ""))
716713 then $Tuple2(amBalance, prBalance)
717714 else if ((pmtAssetId == amId))
718715 then if ((pmtAmtRaw > amBalance))
723720 then throw("invalid payment amount")
724721 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
725722 else throw("wrong pmtAssetId")
726- let amBalanceOld = $t02732227784._1
727- let prBalanceOld = $t02732227784._2
728- let $t02779027966 = if ((pmtAssetId == amId))
723+ let amBalanceOld = $t02708227544._1
724+ let prBalanceOld = $t02708227544._2
725+ let $t02755027726 = if ((pmtAssetId == amId))
729726 then $Tuple2(pmtAmtRaw, 0)
730727 else if ((pmtAssetId == prId))
731728 then $Tuple2(0, pmtAmtRaw)
732729 else throw("invalid payment")
733- let amAmountRaw = $t02779027966._1
734- let prAmountRaw = $t02779027966._2
735- let $t02797028209 = if (withTakeFee)
730+ let amAmountRaw = $t02755027726._1
731+ let prAmountRaw = $t02755027726._2
732+ let $t02773027969 = if (withTakeFee)
736733 then $Tuple3(takeFee(amAmountRaw)._1, takeFee(prAmountRaw)._1, takeFee(pmtAmtRaw)._2)
737734 else $Tuple3(amAmountRaw, prAmountRaw, 0)
738- let amAmount = $t02797028209._1
739- let prAmount = $t02797028209._2
740- let feeAmount = $t02797028209._3
735+ let amAmount = $t02773027969._1
736+ let prAmount = $t02773027969._2
737+ let feeAmount = $t02773027969._3
741738 let amBalanceNew = (amBalanceOld + amAmount)
742739 let prBalanceNew = (prBalanceOld + prAmount)
743740 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
786783 else {
787784 let amBalance = getAccBalance(amId)
788785 let prBalance = getAccBalance(prId)
789- let $t03027430385 = {
786+ let $t03003430145 = {
790787 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
791788 if ($isInstanceOf(@, "(Int, Int)"))
792789 then @
793790 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
794791 }
795- if (($t03027430385 == $t03027430385))
792+ if (($t03003430145 == $t03003430145))
796793 then {
797- let feeAmount = $t03027430385._2
798- let totalGet = $t03027430385._1
794+ let feeAmount = $t03003430145._2
795+ let totalGet = $t03003430145._1
799796 let totalAmount = if (if ((minOutAmount > 0))
800797 then (minOutAmount > totalGet)
801798 else false)
802799 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
803800 else totalGet
804- let $t03057530882 = if ((outAssetId == amId))
801+ let $t03033530642 = if ((outAssetId == amId))
805802 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
806803 else if ((outAssetId == prId))
807804 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
808805 else throw("invalid out asset id")
809- let outAm = $t03057530882._1
810- let outPr = $t03057530882._2
811- let amBalanceNew = $t03057530882._3
812- let prBalanceNew = $t03057530882._4
806+ let outAm = $t03033530642._1
807+ let outPr = $t03033530642._2
808+ let amBalanceNew = $t03033530642._3
809+ let prBalanceNew = $t03033530642._4
813810 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
814811 let curPr = f1(curPrX18, scale8)
815812 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
824821 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
825822 if ((burn == burn))
826823 then {
827- let $t03166732017 = {
824+ let $t03142731777 = {
828825 let feeAmountForCalc = if ((this == feeCollectorAddress))
829826 then 0
830827 else feeAmount
835832 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
836833 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
837834 }
838- let amountAssetBalanceDelta = $t03166732017._1
839- let priceAssetBalanceDelta = $t03166732017._2
840- let $t03202032128 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
841- let refreshDLpActions = $t03202032128._1
842- let updatedDLp = $t03202032128._2
835+ let amountAssetBalanceDelta = $t03142731777._1
836+ let priceAssetBalanceDelta = $t03142731777._2
837+ let $t03178031888 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
838+ let refreshDLpActions = $t03178031888._1
839+ let updatedDLp = $t03178031888._2
843840 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
844841 if ((isUpdatedDLpValid == isUpdatedDLpValid))
845842 then $Tuple2((state ++ refreshDLpActions), totalAmount)
999996 else throw("Strict value is not equal to itself.")
1000997 }
1001998 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1002- let $t03598436049 = refreshDLpInternal(0, 0, 0)
1003- let refreshDLpActions = $t03598436049._1
1004- let updatedDLp = $t03598436049._2
999+ let $t03574435809 = refreshDLpInternal(0, 0, 0)
1000+ let refreshDLpActions = $t03574435809._1
1001+ let updatedDLp = $t03574435809._2
10051002 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
10061003 if ((isUpdatedDLpValid == isUpdatedDLpValid))
10071004 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10571054 let pmt = value(i.payments[0])
10581055 let pmtAssetId = toBase58String(value(pmt.assetId))
10591056 let pmtAmt = pmt.amount
1060- let $t03718637344 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1061- if (($t03718637344 == $t03718637344))
1057+ let $t03694637104 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1058+ if (($t03694637104 == $t03694637104))
10621059 then {
1063- let feeAmount = $t03718637344._3
1064- let state = $t03718637344._2
1065- let estimLP = $t03718637344._1
1060+ let feeAmount = $t03694637104._3
1061+ let state = $t03694637104._2
1062+ let estimLP = $t03694637104._1
10661063 let emitLpAmt = if (if ((minOutAmount > 0))
10671064 then (minOutAmount > estimLP)
10681065 else false)
10901087 let sendFeeToMatcher = if ((feeAmount > 0))
10911088 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10921089 else nil
1093- let $t03815938508 = if ((this == feeCollectorAddress))
1090+ let $t03791938268 = if ((this == feeCollectorAddress))
10941091 then $Tuple2(0, 0)
10951092 else {
10961093 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11001097 then $Tuple2(-(feeAmount), 0)
11011098 else $Tuple2(0, -(feeAmount))
11021099 }
1103- let amountAssetBalanceDelta = $t03815938508._1
1104- let priceAssetBalanceDelta = $t03815938508._2
1105- let $t03851138619 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1106- let refreshDLpActions = $t03851138619._1
1107- let updatedDLp = $t03851138619._2
1100+ let amountAssetBalanceDelta = $t03791938268._1
1101+ let priceAssetBalanceDelta = $t03791938268._2
1102+ let $t03827138379 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1103+ let refreshDLpActions = $t03827138379._1
1104+ let updatedDLp = $t03827138379._2
11081105 $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11091106 }
11101107 else throw("Strict value is not equal to itself.")
11311128 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11321129 if ((currentDLp == currentDLp))
11331130 then {
1134- let $t03957839643 = refreshDLpInternal(0, 0, 0)
1135- let refreshDLpActions = $t03957839643._1
1136- let updatedDLp = $t03957839643._2
1131+ let $t03933839403 = refreshDLpInternal(0, 0, 0)
1132+ let refreshDLpActions = $t03933839403._1
1133+ let updatedDLp = $t03933839403._2
11371134 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11381135 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11391136 then (state ++ refreshDLpActions)
11561153 if ((b == b))
11571154 then {
11581155 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
1159- let $t04043240514 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1160- let refreshDLpActions = $t04043240514._1
1161- let updatedDLp = $t04043240514._2
1156+ let $t04019240274 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157+ let refreshDLpActions = $t04019240274._1
1158+ let updatedDLp = $t04019240274._2
11621159 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11631160 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11641161 then (state ++ refreshDLpActions)
11911188 else throwErr("exactly 1 payment are expected")]
11921189 if ((checks == checks))
11931190 then {
1194- let $t04113241287 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1195- let state = $t04113241287._1
1196- let totalAmount = $t04113241287._2
1191+ let $t04089241047 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1192+ let state = $t04089241047._1
1193+ let totalAmount = $t04089241047._2
11971194 $Tuple2(state, totalAmount)
11981195 }
11991196 else throw("Strict value is not equal to itself.")
12101207 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12111208 then {
12121209 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1213- let $t04181141875 = refreshDLpInternal(0, 0, 0)
1214- let dLpUpdateActions = $t04181141875._1
1215- let updatedDLp = $t04181141875._2
1210+ let $t04157141635 = refreshDLpInternal(0, 0, 0)
1211+ let dLpUpdateActions = $t04157141635._1
1212+ let updatedDLp = $t04157141635._2
12161213 let actions = if ((dLp != updatedDLp))
12171214 then dLpUpdateActions
12181215 else throwErr("nothing to refresh")
12411238 let newY = getYD(xp, index, D1)
12421239 let dy = (xp[index] - newY)
12431240 let totalGetRaw = max([0, toInt((dy - big1))])
1244- let $t04277542824 = takeFee(totalGetRaw)
1245- let totalGet = $t04277542824._1
1246- let feeAmount = $t04277542824._2
1241+ let $t04253542584 = takeFee(totalGetRaw)
1242+ let totalGet = $t04253542584._1
1243+ let feeAmount = $t04253542584._2
12471244 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12481245 }
12491246
12571254 let lpId = poolConfig[idxLPAsId]
12581255 let amBalance = getAccBalance(amId)
12591256 let prBalance = getAccBalance(prId)
1260- let $t04316943284 = {
1257+ let $t04292943044 = {
12611258 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12621259 if ($isInstanceOf(@, "(Int, Int)"))
12631260 then @
12641261 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12651262 }
1266- let totalGet = $t04316943284._1
1267- let feeAmount = $t04316943284._2
1263+ let totalGet = $t04292943044._1
1264+ let feeAmount = $t04292943044._2
12681265 let r = ego("", lpId, lpAssetAmount, this)
12691266 let outAmAmt = r._1
12701267 let outPrAmt = r._2
12961293 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12971294 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12981295 then {
1299- let $t04445244533 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1300- let refreshDLpActions = $t04445244533._1
1301- let updatedDLp = $t04445244533._2
1296+ let $t04421244293 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1297+ let refreshDLpActions = $t04421244293._1
1298+ let updatedDLp = $t04421244293._2
13021299 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13031300 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13041301 then (state ++ refreshDLpActions)
13401337 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13411338 if ((burnA == burnA))
13421339 then {
1343- let $t04559645677 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1344- let refreshDLpActions = $t04559645677._1
1345- let updatedDLp = $t04559645677._2
1340+ let $t04535645437 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1341+ let refreshDLpActions = $t04535645437._1
1342+ let updatedDLp = $t04535645437._2
13461343 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13471344 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13481345 then (state ++ refreshDLpActions)
13891386 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13901387 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13911388 then {
1392- let $t04692547006 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1393- let refreshDLpActions = $t04692547006._1
1394- let updatedDLp = $t04692547006._2
1389+ let $t04668546766 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1390+ let refreshDLpActions = $t04668546766._1
1391+ let updatedDLp = $t04668546766._2
13951392 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13961393 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13971394 then (state ++ refreshDLpActions)
14371434 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14381435 if ((unstakeInv == unstakeInv))
14391436 then {
1440- let $t04794048128 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1441- let state = $t04794048128._1
1442- let totalAmount = $t04794048128._2
1437+ let $t04770047888 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1438+ let state = $t04770047888._1
1439+ let totalAmount = $t04770047888._2
14431440 $Tuple2(state, totalAmount)
14441441 }
14451442 else throw("Strict value is not equal to itself.")
14551452 let amId = poolConfig[idxAmAsId]
14561453 let prId = poolConfig[idxPrAsId]
14571454 let lpId = poolConfig[idxLPAsId]
1458- let $t04838748490 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1459- let lpAmount = $t04838748490._1
1460- let state = $t04838748490._2
1461- let feeAmount = $t04838748490._3
1462- let bonus = $t04838748490._4
1455+ let $t04814748250 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1456+ let lpAmount = $t04814748250._1
1457+ let state = $t04814748250._2
1458+ let feeAmount = $t04814748250._3
1459+ let bonus = $t04814748250._4
14631460 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14641461 }
14651462
14711468 let amId = poolConfig[idxAmAsId]
14721469 let prId = poolConfig[idxPrAsId]
14731470 let lpId = poolConfig[idxLPAsId]
1474- let $t04876948873 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1475- let lpAmount = $t04876948873._1
1476- let state = $t04876948873._2
1477- let feeAmount = $t04876948873._3
1478- let bonus = $t04876948873._4
1471+ let $t04852948633 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1472+ let lpAmount = $t04852948633._1
1473+ let state = $t04852948633._2
1474+ let feeAmount = $t04852948633._3
1475+ let bonus = $t04852948633._4
14791476 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14801477 }
14811478
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 f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
74-
75-
76-func fromX18Round (val,resultScaleMult,round) = toInt(fraction(val, toBigInt(resultScaleMult), scale18, round))
7774
7875
7976 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
8077
8178
8279 func abs (val) = if ((zeroBigInt > val))
8380 then -(val)
8481 else val
8582
8683
8784 func absBigInt (val) = if ((zeroBigInt > val))
8885 then -(val)
8986 else val
9087
9188
9289 func fc () = "%s__factoryContract"
9390
9491
9592 func mpk () = "%s__managerPublicKey"
9693
9794
9895 func pmpk () = "%s__pendingManagerPublicKey"
9996
10097
10198 func pl () = "%s%s__price__last"
10299
103100
104101 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
105102
106103
107104 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
108105
109106
110107 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
111108
112109
113110 func aa () = "%s__amountAsset"
114111
115112
116113 func pa () = "%s__priceAsset"
117114
118115
119116 func amp () = "%s__amp"
120117
121118
122119 func ada () = "%s__addonAddr"
123120
124121
125122 let keyFee = "%s__fee"
126123
127124 let fee = valueOrElse(getInteger(this, keyFee), feeDefault)
128125
129126 let keyDLp = makeString(["%s", "dLp"], SEP)
130127
131128 let keyDLpRefreshedHeight = makeString(["%s", "dLpRefreshedHeight"], SEP)
132129
133130 let keyDLpRefreshDelay = makeString(["%s", "refreshDLpDelay"], SEP)
134131
135132 let dLpRefreshDelayDefault = 1
136133
137134 let dLpRefreshDelay = valueOrElse(getInteger(this, keyDLpRefreshDelay), dLpRefreshDelayDefault)
138135
139136 func fcfg () = "%s__factoryConfig"
140137
141138
142139 func mtpk () = "%s%s__matcher__publicKey"
143140
144141
145142 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
146143
147144
148145 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
149146
150147
151148 func aps () = "%s__shutdown"
152149
153150
154151 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
155152
156153
157154 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
158155
159156
160157 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
161158
162159
163160 func str (val) = match val {
164161 case valStr: String =>
165162 valStr
166163 case _ =>
167164 throw("fail cast to String")
168165 }
169166
170167
171168 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
172169
173170
174171 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
175172
176173
177174 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
178175
179176
180177 func fmtErr (msg) = makeString(["lp_stable.ride:", msg], " ")
181178
182179
183180 let fca = addressFromStringValue(strf(this, fc()))
184181
185182 let A = strf(this, amp())
186183
187184 func igs () = valueOrElse(getBoolean(fca, aps()), false)
188185
189186
190187 func mp () = fromBase58String(strf(fca, mtpk()))
191188
192189
193190 let feeCollectorAddress = addressFromStringValue(strf(fca, keyFeeCollectorAddress()))
194191
195192 func gpc () = {
196193 let amtAs = strf(this, aa())
197194 let priceAs = strf(this, pa())
198195 let iPriceAs = intf(fca, mba(priceAs))
199196 let iAmtAs = intf(fca, mba(amtAs))
200197 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
201198 }
202199
203200
204201 func parseAssetId (input) = if ((input == wavesString))
205202 then unit
206203 else fromBase58String(input)
207204
208205
209206 func assetIdToString (input) = if ((input == unit))
210207 then wavesString
211208 else toBase58String(value(input))
212209
213210
214211 func parsePoolConfig (poolConfig) = $Tuple7(addressFromStringValue(poolConfig[idxPoolAddress]), parseIntValue(poolConfig[idxPoolSt]), fromBase58String(poolConfig[idxLPAsId]), parseAssetId(poolConfig[idxAmAsId]), parseAssetId(poolConfig[idxPrAsId]), parseIntValue(poolConfig[idxAmtAsDcm]), parseIntValue(poolConfig[idxPriceAsDcm]))
215212
216213
217214 let poolConfigParsed = parsePoolConfig(gpc())
218215
219-let $t074067592 = poolConfigParsed
216+let $t072557441 = poolConfigParsed
220217
221-let cfgPoolAddress = $t074067592._1
218+let cfgPoolAddress = $t072557441._1
222219
223-let cfgPoolStatus = $t074067592._2
220+let cfgPoolStatus = $t072557441._2
224221
225-let cfgLpAssetId = $t074067592._3
222+let cfgLpAssetId = $t072557441._3
226223
227-let cfgAmountAssetId = $t074067592._4
224+let cfgAmountAssetId = $t072557441._4
228225
229-let cfgPriceAssetId = $t074067592._5
226+let cfgPriceAssetId = $t072557441._5
230227
231-let cfgAmountAssetDecimals = $t074067592._6
228+let cfgAmountAssetDecimals = $t072557441._6
232229
233-let cfgPriceAssetDecimals = $t074067592._7
230+let cfgPriceAssetDecimals = $t072557441._7
234231
235232 func gfc () = split(strf(fca, fcfg()), SEP)
236233
237234
238235 let factoryConfig = gfc()
239236
240237 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
241238
242239 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
243240
244241 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
245242
246243 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
247244
248245 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)
249246
250247
251248 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)
252249
253250
254251 func getAccBalance (assetId) = if ((assetId == "WAVES"))
255252 then wavesBalance(this).available
256253 else assetBalance(this, fromBase58String(assetId))
257254
258255
259256 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
260257
261258
262259 func vad (A1,A2,slippage) = {
263260 let diff = fraction((A1 - A2), scale8BigInt, A2)
264261 let pass = ((slippage - abs(diff)) > zeroBigInt)
265262 if (!(pass))
266263 then throw(("Big slpg: " + toString(diff)))
267264 else $Tuple2(pass, min([A1, A2]))
268265 }
269266
270267
271268 func vd (D1,D0,slpg) = {
272269 let diff = fraction(D0, scale8BigInt, D1)
273270 let fail = (slpg > diff)
274271 if (if (fail)
275272 then true
276273 else (D0 > D1))
277274 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
278275 else fail
279276 }
280277
281278
282279 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
283280 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
284281 let prAsAmtX18 = t1(prAmt, prAssetDcm)
285282 cpbi(prAsAmtX18, amtAsAmtX18)
286283 }
287284
288285
289286 func calcPrices (amAmt,prAmt,lpAmt) = {
290287 let cfg = gpc()
291288 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
292289 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
293290 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
294291 let amAmtX18 = t1(amAmt, amtAsDcm)
295292 let prAmtX18 = t1(prAmt, prAsDcm)
296293 let lpAmtX18 = t1(lpAmt, scale8)
297294 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
298295 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
299296 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
300297 }
301298
302299
303300 func calculatePrices (amAmt,prAmt,lpAmt) = {
304301 let p = calcPrices(amAmt, prAmt, lpAmt)
305302 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
306303 }
307304
308305
309306 func takeFee (amount) = {
310307 let feeAmount = fraction(amount, fee, scale8)
311308 $Tuple2((amount - feeAmount), feeAmount)
312309 }
313310
314311
315312 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
316313 let cfg = gpc()
317314 let lpId = cfg[idxLPAsId]
318315 let amId = cfg[idxAmAsId]
319316 let prId = cfg[idxPrAsId]
320317 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
321318 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
322319 let sts = cfg[idxPoolSt]
323320 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
324321 if ((lpId != pmtAssetId))
325322 then throw("Wrong pmt asset")
326323 else {
327324 let amBalance = getAccBalance(amId)
328325 let amBalanceX18 = t1(amBalance, amDcm)
329326 let prBalance = getAccBalance(prId)
330327 let prBalanceX18 = t1(prBalance, prDcm)
331328 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
332329 let curPrice = f1(curPriceX18, scale8)
333330 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
334331 let lpEmissX18 = t1(lpEmiss, scale8)
335332 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
336333 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
337- let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
338- let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
334+ let outAmAmt = f1(outAmAmtX18, amDcm)
335+ let outPrAmt = f1(outPrAmtX18, prDcm)
339336 let state = if ((txId58 == ""))
340337 then nil
341338 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
342339 then unit
343340 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
344341 then unit
345342 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)]
346343 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
347344 }
348345 }
349346
350347
351348 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
352349 let cfg = gpc()
353350 let lpId = fromBase58String(cfg[idxLPAsId])
354351 let amIdStr = cfg[idxAmAsId]
355352 let prIdStr = cfg[idxPrAsId]
356353 let inAmIdStr = cfg[idxIAmtAsId]
357354 let inPrIdStr = cfg[idxIPriceAsId]
358355 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
359356 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
360357 let sts = cfg[idxPoolSt]
361358 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
362359 let amBalance = if (isEval)
363360 then getAccBalance(amIdStr)
364361 else if (if (isOneAsset)
365362 then (pmtId == amIdStr)
366363 else false)
367364 then (getAccBalance(amIdStr) - pmtAmt)
368365 else if (isOneAsset)
369366 then getAccBalance(amIdStr)
370367 else (getAccBalance(amIdStr) - inAmAmt)
371368 let prBalance = if (isEval)
372369 then getAccBalance(prIdStr)
373370 else if (if (isOneAsset)
374371 then (pmtId == prIdStr)
375372 else false)
376373 then (getAccBalance(prIdStr) - pmtAmt)
377374 else if (isOneAsset)
378375 then getAccBalance(prIdStr)
379376 else (getAccBalance(prIdStr) - inPrAmt)
380377 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
381378 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
382379 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
383380 let amBalanceX18 = t1(amBalance, amtDcm)
384381 let prBalanceX18 = t1(prBalance, priceDcm)
385382 let r = if ((lpEm == 0))
386383 then {
387384 let curPriceX18 = zeroBigInt
388385 let slippageX18 = zeroBigInt
389386 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
390387 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
391388 }
392389 else {
393390 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
394391 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
395392 let slippageX18 = t1(slippage, scale8)
396393 if (if (if (validateSlippage)
397394 then (curPriceX18 != zeroBigInt)
398395 else false)
399396 then (slippageRealX18 > slippageX18)
400397 else false)
401398 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
402399 else {
403400 let lpEmissionX18 = t1(lpEm, scale8)
404401 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
405402 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
406403 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
407404 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
408405 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
409406 let expAmtAssetAmtX18 = expectedAmts._1
410407 let expPriceAssetAmtX18 = expectedAmts._2
411408 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
412- $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
409+ $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
413410 }
414411 }
415412 let calcLpAmt = r._1
416413 let calcAmAssetPmt = r._2
417414 let calcPrAssetPmt = r._3
418415 let curPrice = f1(r._4, scale8)
419416 let slippageCalc = f1(r._5, scale8)
420417 if ((0 >= calcLpAmt))
421418 then throw("LP <= 0")
422419 else {
423420 let emitLpAmt = if (!(emitLp))
424421 then 0
425422 else calcLpAmt
426423 let amDiff = (inAmAmt - calcAmAssetPmt)
427424 let prDiff = (inPrAmt - calcPrAssetPmt)
428- let $t01811218457 = if (if (isOneAsset)
425+ let $t01787218217 = if (if (isOneAsset)
429426 then (pmtId == amIdStr)
430427 else false)
431428 then $Tuple2(pmtAmt, 0)
432429 else if (if (isOneAsset)
433430 then (pmtId == prIdStr)
434431 else false)
435432 then $Tuple2(0, pmtAmt)
436433 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
437- let writeAmAmt = $t01811218457._1
438- let writePrAmt = $t01811218457._2
434+ let writeAmAmt = $t01787218217._1
435+ let writePrAmt = $t01787218217._2
439436 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))]
440437 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
441438 }
442439 }
443440
444441
445442 func getD (xp) = {
446443 let xp0 = xp[0]
447444 let xp1 = xp[1]
448445 let s = (xp0 + xp1)
449446 if ((s == big0))
450447 then big0
451448 else {
452449 let a = parseIntValue(A)
453450 let ann = (a * 2)
454451 let p = fraction(xp0, xp1, big1)
455452 let xp0_xp1_n_n = fraction(p, big4, big1)
456453 let ann_s = fraction(toBigInt(ann), s, big1)
457454 let ann_1 = toBigInt((ann - 1))
458455 func calcDNext (d) = {
459456 let dd = fraction(d, d, big1)
460457 let ddd = fraction(dd, d, big1)
461458 let dp = fraction(ddd, big1, xp0_xp1_n_n)
462459 fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)), CEILING)
463460 }
464461
465462 func calc (acc,i) = if (acc._2)
466463 then acc
467464 else {
468465 let d = acc._1
469466 let dNext = calcDNext(d)
470467 let dDiffRaw = toInt((dNext - value(d)))
471468 let dDiff = if ((0 > dDiffRaw))
472469 then -(dDiffRaw)
473470 else dDiffRaw
474471 if ((1 >= dDiff))
475472 then $Tuple2(dNext, true)
476473 else $Tuple2(dNext, false)
477474 }
478475
479476 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
480- let $t02038520433 = {
477+ let $t02014520193 = {
481478 let $l = arr
482479 let $s = size($l)
483480 let $acc0 = $Tuple2(s, false)
484481 func $f0_1 ($a,$i) = if (($i >= $s))
485482 then $a
486483 else calc($a, $l[$i])
487484
488485 func $f0_2 ($a,$i) = if (($i >= $s))
489486 then $a
490487 else throw("List size exceeds 15")
491488
492489 $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)
493490 }
494- let d = $t02038520433._1
495- let found = $t02038520433._2
491+ let d = $t02014520193._1
492+ let found = $t02014520193._2
496493 if (found)
497494 then d
498495 else throw(("D calculation error, D = " + toString(d)))
499496 }
500497 }
501498
502499
503500 func getDOld (xp) = {
504501 let n = big2
505502 let xp0 = xp[0]
506503 let xp1 = xp[1]
507504 let aPrecision = parseBigIntValue(Amult)
508505 let a = (parseBigIntValue(A) * aPrecision)
509506 let s = (xp0 + xp1)
510507 if ((s == big0))
511508 then big0
512509 else {
513510 let ann = (a * n)
514511 let xp0_xp1_n_n = (((xp0 * xp1) * n) * n)
515512 let ann_s_aPrecision = ((ann * s) / aPrecision)
516513 let ann_aPrecision = (ann - aPrecision)
517514 let n1 = (n + big1)
518515 func calc (acc,cur) = {
519- let $t02106221082 = acc
520- let d = $t02106221082._1
521- let found = $t02106221082._2
516+ let $t02082220842 = acc
517+ let d = $t02082220842._1
518+ let found = $t02082220842._2
522519 if ((found != unit))
523520 then acc
524521 else {
525522 let dp = (((d * d) * d) / xp0_xp1_n_n)
526523 let dNext = (((ann_s_aPrecision + (dp * n)) * d) / (((ann_aPrecision * d) / aPrecision) + (n1 * dp)))
527524 let dDiff = absBigInt((dNext - value(d)))
528525 if ((big1 >= dDiff))
529526 then $Tuple2(dNext, cur)
530527 else $Tuple2(dNext, unit)
531528 }
532529 }
533530
534531 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
535- let $t02150321550 = {
532+ let $t02126321310 = {
536533 let $l = arr
537534 let $s = size($l)
538535 let $acc0 = $Tuple2(s, unit)
539536 func $f0_1 ($a,$i) = if (($i >= $s))
540537 then $a
541538 else calc($a, $l[$i])
542539
543540 func $f0_2 ($a,$i) = if (($i >= $s))
544541 then $a
545542 else throw("List size exceeds 15")
546543
547544 $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)
548545 }
549- let d = $t02150321550._1
550- let found = $t02150321550._2
546+ let d = $t02126321310._1
547+ let found = $t02126321310._2
551548 if ((found != unit))
552549 then d
553550 else throw(("D calculation error, D = " + toString(d)))
554551 }
555552 }
556553
557554
558555 func getYD (xp,i,D) = {
559556 let n = big2
560557 let x = xp[if ((i == 0))
561558 then 1
562559 else 0]
563560 let aPrecision = parseBigIntValue(Amult)
564561 let a = (parseBigIntValue(A) * aPrecision)
565562 let s = x
566563 let ann = (a * n)
567564 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
568565 let b = ((s + ((D * aPrecision) / ann)) - D)
569566 func calc (acc,cur) = {
570- let $t02205022070 = acc
571- let y = $t02205022070._1
572- let found = $t02205022070._2
567+ let $t02181021830 = acc
568+ let y = $t02181021830._1
569+ let found = $t02181021830._2
573570 if ((found != unit))
574571 then acc
575572 else {
576573 let yNext = (((y * y) + c) / ((big2 * y) + b))
577574 let yDiff = absBigInt((yNext - value(y)))
578575 if ((big1 >= yDiff))
579576 then $Tuple2(yNext, cur)
580577 else $Tuple2(yNext, unit)
581578 }
582579 }
583580
584581 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
585- let $t02237722424 = {
582+ let $t02213722184 = {
586583 let $l = arr
587584 let $s = size($l)
588585 let $acc0 = $Tuple2(D, unit)
589586 func $f0_1 ($a,$i) = if (($i >= $s))
590587 then $a
591588 else calc($a, $l[$i])
592589
593590 func $f0_2 ($a,$i) = if (($i >= $s))
594591 then $a
595592 else throw("List size exceeds 15")
596593
597594 $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)
598595 }
599- let y = $t02237722424._1
600- let found = $t02237722424._2
596+ let y = $t02213722184._1
597+ let found = $t02213722184._2
601598 if ((found != unit))
602599 then y
603600 else throw(("Y calculation error, Y = " + toString(y)))
604601 }
605602
606603
607604 func calcDLp (amountBalance,priceBalance,lpEmission) = {
608605 let updatedDLp = fraction(getD([amountBalance, priceBalance]), scale18, lpEmission)
609606 if ((lpEmission == big0))
610607 then big0
611608 else updatedDLp
612609 }
613610
614611
615612 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
616613 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
617614 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
618615 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
619616 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
620617 currentDLp
621618 }
622619
623620
624621 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
625622 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
626623 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
627624 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
628625 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
629626 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
630627 $Tuple2(actions, updatedDLp)
631628 }
632629
633630
634631 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
635632 then true
636633 else throwErr("updated DLp lower than current DLp")
637634
638635
639636 func validateMatcherOrderAllowed (order) = {
640637 let amountAssetAmount = order.amount
641638 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
642- let $t02436324575 = if ((order.orderType == Buy))
639+ let $t02412324335 = if ((order.orderType == Buy))
643640 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
644641 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
645- let amountAssetBalanceDelta = $t02436324575._1
646- let priceAssetBalanceDelta = $t02436324575._2
642+ let amountAssetBalanceDelta = $t02412324335._1
643+ let priceAssetBalanceDelta = $t02412324335._2
647644 if (if (if (igs())
648645 then true
649646 else (cfgPoolStatus == PoolMatcherDis))
650647 then true
651648 else (cfgPoolStatus == PoolShutdown))
652649 then throw("Admin blocked")
653650 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
654651 then true
655652 else (order.assetPair.priceAsset != cfgPriceAssetId))
656653 then throw("Wr assets")
657654 else {
658655 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
659- let $t02490525005 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
660- let unusedActions = $t02490525005._1
661- let dLpNew = $t02490525005._2
656+ let $t02466524765 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
657+ let unusedActions = $t02466524765._1
658+ let dLpNew = $t02466524765._2
662659 let isOrderValid = (dLpNew >= dLp)
663660 isOrderValid
664661 }
665662 }
666663
667664
668665 func cg (i) = if ((size(i.payments) != 1))
669666 then throw("1 pmnt exp")
670667 else {
671668 let pmt = value(i.payments[0])
672669 let pmtAssetId = value(pmt.assetId)
673670 let pmtAmt = pmt.amount
674671 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
675672 let outAmAmt = r._1
676673 let outPrAmt = r._2
677674 let sts = parseIntValue(r._9)
678675 let state = r._10
679676 if (if (igs())
680677 then true
681678 else (sts == PoolShutdown))
682679 then throw(("Admin blocked: " + toString(sts)))
683680 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
684681 }
685682
686683
687684 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
688685 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
689686 let sts = parseIntValue(r._8)
690687 if (if (if (igs())
691688 then true
692689 else (sts == PoolPutDis))
693690 then true
694691 else (sts == PoolShutdown))
695692 then throw(("Blocked:" + toString(sts)))
696693 else r
697694 }
698695
699696
700697 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
701698 let poolConfig = gpc()
702699 let amId = poolConfig[idxAmAsId]
703700 let prId = poolConfig[idxPrAsId]
704701 let lpId = poolConfig[idxLPAsId]
705702 let amtDcm = parseIntValue(poolConfig[idxAmtAsDcm])
706703 let priceDcm = parseIntValue(poolConfig[idxPriceAsDcm])
707704 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
708705 let chechEmission = if ((lpAssetEmission > big0))
709706 then true
710707 else throw("initial deposit requires all coins")
711708 if ((chechEmission == chechEmission))
712709 then {
713710 let amBalance = getAccBalance(amId)
714711 let prBalance = getAccBalance(prId)
715- let $t02732227784 = if ((txId == ""))
712+ let $t02708227544 = if ((txId == ""))
716713 then $Tuple2(amBalance, prBalance)
717714 else if ((pmtAssetId == amId))
718715 then if ((pmtAmtRaw > amBalance))
719716 then throw("invalid payment amount")
720717 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
721718 else if ((pmtAssetId == prId))
722719 then if ((pmtAmtRaw > prBalance))
723720 then throw("invalid payment amount")
724721 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
725722 else throw("wrong pmtAssetId")
726- let amBalanceOld = $t02732227784._1
727- let prBalanceOld = $t02732227784._2
728- let $t02779027966 = if ((pmtAssetId == amId))
723+ let amBalanceOld = $t02708227544._1
724+ let prBalanceOld = $t02708227544._2
725+ let $t02755027726 = if ((pmtAssetId == amId))
729726 then $Tuple2(pmtAmtRaw, 0)
730727 else if ((pmtAssetId == prId))
731728 then $Tuple2(0, pmtAmtRaw)
732729 else throw("invalid payment")
733- let amAmountRaw = $t02779027966._1
734- let prAmountRaw = $t02779027966._2
735- let $t02797028209 = if (withTakeFee)
730+ let amAmountRaw = $t02755027726._1
731+ let prAmountRaw = $t02755027726._2
732+ let $t02773027969 = if (withTakeFee)
736733 then $Tuple3(takeFee(amAmountRaw)._1, takeFee(prAmountRaw)._1, takeFee(pmtAmtRaw)._2)
737734 else $Tuple3(amAmountRaw, prAmountRaw, 0)
738- let amAmount = $t02797028209._1
739- let prAmount = $t02797028209._2
740- let feeAmount = $t02797028209._3
735+ let amAmount = $t02773027969._1
736+ let prAmount = $t02773027969._2
737+ let feeAmount = $t02773027969._3
741738 let amBalanceNew = (amBalanceOld + amAmount)
742739 let prBalanceNew = (prBalanceOld + prAmount)
743740 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
744741 let D1 = getD([toBigInt(amBalanceNew), toBigInt(prBalanceNew)])
745742 let checkD = if ((D1 > D0))
746743 then true
747744 else throw()
748745 if ((checkD == checkD))
749746 then {
750747 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
751748 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
752749 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))]
753750 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
754751 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
755752 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
756753 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
757754 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
758755 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
759756 }
760757 else throw("Strict value is not equal to itself.")
761758 }
762759 else throw("Strict value is not equal to itself.")
763760 }
764761
765762
766763 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
767764 let poolConfig = gpc()
768765 let lpId = poolConfig[idxLPAsId]
769766 let amId = poolConfig[idxAmAsId]
770767 let prId = poolConfig[idxPrAsId]
771768 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
772769 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
773770 let poolStatus = poolConfig[idxPoolSt]
774771 let userAddress = if ((caller == restContract))
775772 then originCaller
776773 else caller
777774 let pmt = value(payments[0])
778775 let pmtAssetId = value(pmt.assetId)
779776 let pmtAmt = pmt.amount
780777 let currentDLp = calcCurrentDLp(big0, big0, big0)
781778 if ((currentDLp == currentDLp))
782779 then {
783780 let txId58 = toBase58String(transactionId)
784781 if ((lpId != toBase58String(pmtAssetId)))
785782 then throw("Wrong LP")
786783 else {
787784 let amBalance = getAccBalance(amId)
788785 let prBalance = getAccBalance(prId)
789- let $t03027430385 = {
786+ let $t03003430145 = {
790787 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
791788 if ($isInstanceOf(@, "(Int, Int)"))
792789 then @
793790 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
794791 }
795- if (($t03027430385 == $t03027430385))
792+ if (($t03003430145 == $t03003430145))
796793 then {
797- let feeAmount = $t03027430385._2
798- let totalGet = $t03027430385._1
794+ let feeAmount = $t03003430145._2
795+ let totalGet = $t03003430145._1
799796 let totalAmount = if (if ((minOutAmount > 0))
800797 then (minOutAmount > totalGet)
801798 else false)
802799 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
803800 else totalGet
804- let $t03057530882 = if ((outAssetId == amId))
801+ let $t03033530642 = if ((outAssetId == amId))
805802 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
806803 else if ((outAssetId == prId))
807804 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
808805 else throw("invalid out asset id")
809- let outAm = $t03057530882._1
810- let outPr = $t03057530882._2
811- let amBalanceNew = $t03057530882._3
812- let prBalanceNew = $t03057530882._4
806+ let outAm = $t03033530642._1
807+ let outPr = $t03033530642._2
808+ let amBalanceNew = $t03033530642._3
809+ let prBalanceNew = $t03033530642._4
813810 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
814811 let curPr = f1(curPrX18, scale8)
815812 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
816813 then unit
817814 else fromBase58String(outAssetId)
818815 let sendFeeToMatcher = if ((feeAmount > 0))
819816 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
820817 else nil
821818 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)
822819 if ((state == state))
823820 then {
824821 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
825822 if ((burn == burn))
826823 then {
827- let $t03166732017 = {
824+ let $t03142731777 = {
828825 let feeAmountForCalc = if ((this == feeCollectorAddress))
829826 then 0
830827 else feeAmount
831828 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
832829 then true
833830 else false
834831 if (outInAmountAsset)
835832 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
836833 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
837834 }
838- let amountAssetBalanceDelta = $t03166732017._1
839- let priceAssetBalanceDelta = $t03166732017._2
840- let $t03202032128 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
841- let refreshDLpActions = $t03202032128._1
842- let updatedDLp = $t03202032128._2
835+ let amountAssetBalanceDelta = $t03142731777._1
836+ let priceAssetBalanceDelta = $t03142731777._2
837+ let $t03178031888 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
838+ let refreshDLpActions = $t03178031888._1
839+ let updatedDLp = $t03178031888._2
843840 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
844841 if ((isUpdatedDLpValid == isUpdatedDLpValid))
845842 then $Tuple2((state ++ refreshDLpActions), totalAmount)
846843 else throw("Strict value is not equal to itself.")
847844 }
848845 else throw("Strict value is not equal to itself.")
849846 }
850847 else throw("Strict value is not equal to itself.")
851848 }
852849 else throw("Strict value is not equal to itself.")
853850 }
854851 }
855852 else throw("Strict value is not equal to itself.")
856853 }
857854
858855
859856 func m () = match getString(mpk()) {
860857 case s: String =>
861858 fromBase58String(s)
862859 case _: Unit =>
863860 unit
864861 case _ =>
865862 throw("Match error")
866863 }
867864
868865
869866 func pm () = match getString(pmpk()) {
870867 case s: String =>
871868 fromBase58String(s)
872869 case _: Unit =>
873870 unit
874871 case _ =>
875872 throw("Match error")
876873 }
877874
878875
879876 let pd = throw("Permission denied")
880877
881878 func isManager (i) = match m() {
882879 case pk: ByteVector =>
883880 (i.callerPublicKey == pk)
884881 case _: Unit =>
885882 (i.caller == this)
886883 case _ =>
887884 throw("Match error")
888885 }
889886
890887
891888 func mm (i) = match m() {
892889 case pk: ByteVector =>
893890 if ((i.callerPublicKey == pk))
894891 then true
895892 else pd
896893 case _: Unit =>
897894 if ((i.caller == this))
898895 then true
899896 else pd
900897 case _ =>
901898 throw("Match error")
902899 }
903900
904901
905902 @Callable(i)
906903 func constructor (fc) = {
907904 let c = mm(i)
908905 if ((c == c))
909906 then [StringEntry(fc(), fc)]
910907 else throw("Strict value is not equal to itself.")
911908 }
912909
913910
914911
915912 @Callable(i)
916913 func setManager (pendingManagerPublicKey) = {
917914 let c = mm(i)
918915 if ((c == c))
919916 then {
920917 let cm = fromBase58String(pendingManagerPublicKey)
921918 if ((cm == cm))
922919 then [StringEntry(pmpk(), pendingManagerPublicKey)]
923920 else throw("Strict value is not equal to itself.")
924921 }
925922 else throw("Strict value is not equal to itself.")
926923 }
927924
928925
929926
930927 @Callable(i)
931928 func confirmManager () = {
932929 let p = pm()
933930 let hpm = if (isDefined(p))
934931 then true
935932 else throw("No pending manager")
936933 if ((hpm == hpm))
937934 then {
938935 let cpm = if ((i.callerPublicKey == value(p)))
939936 then true
940937 else throw("You are not pending manager")
941938 if ((cpm == cpm))
942939 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
943940 else throw("Strict value is not equal to itself.")
944941 }
945942 else throw("Strict value is not equal to itself.")
946943 }
947944
948945
949946
950947 @Callable(i)
951948 func put (slip,autoStake) = {
952949 let factCfg = gfc()
953950 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
954951 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
955952 if ((0 > slip))
956953 then throw("Wrong slippage")
957954 else if ((size(i.payments) != 2))
958955 then throw("2 pmnts expd")
959956 else {
960957 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
961958 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
962959 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
963960 if ((currentDLp == currentDLp))
964961 then {
965962 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, "")
966963 let emitLpAmt = e._2
967964 let lpAssetId = e._7
968965 let state = e._9
969966 let amDiff = e._10
970967 let prDiff = e._11
971968 let amId = e._12
972969 let prId = e._13
973970 let r = invoke(fca, "emit", [emitLpAmt], nil)
974971 if ((r == r))
975972 then {
976973 let el = match r {
977974 case legacy: Address =>
978975 invoke(legacy, "emit", [emitLpAmt], nil)
979976 case _ =>
980977 unit
981978 }
982979 if ((el == el))
983980 then {
984981 let sa = if ((amDiff > 0))
985982 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
986983 else nil
987984 if ((sa == sa))
988985 then {
989986 let sp = if ((prDiff > 0))
990987 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
991988 else nil
992989 if ((sp == sp))
993990 then {
994991 let lpTrnsfr = if (autoStake)
995992 then {
996993 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
997994 if ((ss == ss))
998995 then nil
999996 else throw("Strict value is not equal to itself.")
1000997 }
1001998 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1002- let $t03598436049 = refreshDLpInternal(0, 0, 0)
1003- let refreshDLpActions = $t03598436049._1
1004- let updatedDLp = $t03598436049._2
999+ let $t03574435809 = refreshDLpInternal(0, 0, 0)
1000+ let refreshDLpActions = $t03574435809._1
1001+ let updatedDLp = $t03574435809._2
10051002 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
10061003 if ((isUpdatedDLpValid == isUpdatedDLpValid))
10071004 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10081005 else throw("Strict value is not equal to itself.")
10091006 }
10101007 else throw("Strict value is not equal to itself.")
10111008 }
10121009 else throw("Strict value is not equal to itself.")
10131010 }
10141011 else throw("Strict value is not equal to itself.")
10151012 }
10161013 else throw("Strict value is not equal to itself.")
10171014 }
10181015 else throw("Strict value is not equal to itself.")
10191016 }
10201017 }
10211018
10221019
10231020
10241021 @Callable(i)
10251022 func putOneTknV2 (minOutAmount,autoStake) = {
10261023 let isPoolOneTokenOperationsDisabled = {
10271024 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10281025 if ($isInstanceOf(@, "Boolean"))
10291026 then @
10301027 else throw(($getType(@) + " couldn't be cast to Boolean"))
10311028 }
10321029 let isPutDisabled = if (if (if (igs())
10331030 then true
10341031 else (cfgPoolStatus == PoolPutDis))
10351032 then true
10361033 else (cfgPoolStatus == PoolShutdown))
10371034 then true
10381035 else isPoolOneTokenOperationsDisabled
10391036 let checks = [if (if (!(isPutDisabled))
10401037 then true
10411038 else isManager(i))
10421039 then true
10431040 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10441041 then true
10451042 else throwErr("exactly 1 payment are expected")]
10461043 if ((checks == checks))
10471044 then {
10481045 let poolConfig = gpc()
10491046 let amId = poolConfig[idxAmAsId]
10501047 let prId = poolConfig[idxPrAsId]
10511048 let lpId = fromBase58String(poolConfig[idxLPAsId])
10521049 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
10531050 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
10541051 let userAddress = if ((i.caller == this))
10551052 then i.originCaller
10561053 else i.caller
10571054 let pmt = value(i.payments[0])
10581055 let pmtAssetId = toBase58String(value(pmt.assetId))
10591056 let pmtAmt = pmt.amount
1060- let $t03718637344 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1061- if (($t03718637344 == $t03718637344))
1057+ let $t03694637104 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1058+ if (($t03694637104 == $t03694637104))
10621059 then {
1063- let feeAmount = $t03718637344._3
1064- let state = $t03718637344._2
1065- let estimLP = $t03718637344._1
1060+ let feeAmount = $t03694637104._3
1061+ let state = $t03694637104._2
1062+ let estimLP = $t03694637104._1
10661063 let emitLpAmt = if (if ((minOutAmount > 0))
10671064 then (minOutAmount > estimLP)
10681065 else false)
10691066 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10701067 else estimLP
10711068 let e = invoke(fca, "emit", [emitLpAmt], nil)
10721069 if ((e == e))
10731070 then {
10741071 let el = match e {
10751072 case legacy: Address =>
10761073 invoke(legacy, "emit", [emitLpAmt], nil)
10771074 case _ =>
10781075 unit
10791076 }
10801077 if ((el == el))
10811078 then {
10821079 let lpTrnsfr = if (autoStake)
10831080 then {
10841081 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
10851082 if ((ss == ss))
10861083 then nil
10871084 else throw("Strict value is not equal to itself.")
10881085 }
10891086 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
10901087 let sendFeeToMatcher = if ((feeAmount > 0))
10911088 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10921089 else nil
1093- let $t03815938508 = if ((this == feeCollectorAddress))
1090+ let $t03791938268 = if ((this == feeCollectorAddress))
10941091 then $Tuple2(0, 0)
10951092 else {
10961093 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
10971094 then true
10981095 else false
10991096 if (paymentInAmountAsset)
11001097 then $Tuple2(-(feeAmount), 0)
11011098 else $Tuple2(0, -(feeAmount))
11021099 }
1103- let amountAssetBalanceDelta = $t03815938508._1
1104- let priceAssetBalanceDelta = $t03815938508._2
1105- let $t03851138619 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1106- let refreshDLpActions = $t03851138619._1
1107- let updatedDLp = $t03851138619._2
1100+ let amountAssetBalanceDelta = $t03791938268._1
1101+ let priceAssetBalanceDelta = $t03791938268._2
1102+ let $t03827138379 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1103+ let refreshDLpActions = $t03827138379._1
1104+ let updatedDLp = $t03827138379._2
11081105 $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11091106 }
11101107 else throw("Strict value is not equal to itself.")
11111108 }
11121109 else throw("Strict value is not equal to itself.")
11131110 }
11141111 else throw("Strict value is not equal to itself.")
11151112 }
11161113 else throw("Strict value is not equal to itself.")
11171114 }
11181115
11191116
11201117
11211118 @Callable(i)
11221119 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11231120 then throw("Wrong slpg")
11241121 else if ((size(i.payments) != 2))
11251122 then throw("2 pmnts expd")
11261123 else {
11271124 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, "")
11281125 let state = estPut._9
11291126 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11301127 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11311128 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11321129 if ((currentDLp == currentDLp))
11331130 then {
1134- let $t03957839643 = refreshDLpInternal(0, 0, 0)
1135- let refreshDLpActions = $t03957839643._1
1136- let updatedDLp = $t03957839643._2
1131+ let $t03933839403 = refreshDLpInternal(0, 0, 0)
1132+ let refreshDLpActions = $t03933839403._1
1133+ let updatedDLp = $t03933839403._2
11371134 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11381135 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11391136 then (state ++ refreshDLpActions)
11401137 else throw("Strict value is not equal to itself.")
11411138 }
11421139 else throw("Strict value is not equal to itself.")
11431140 }
11441141
11451142
11461143
11471144 @Callable(i)
11481145 func get () = {
11491146 let r = cg(i)
11501147 let outAmtAmt = r._1
11511148 let outPrAmt = r._2
11521149 let pmtAmt = r._3
11531150 let pmtAssetId = r._4
11541151 let state = r._5
11551152 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11561153 if ((b == b))
11571154 then {
11581155 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
1159- let $t04043240514 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1160- let refreshDLpActions = $t04043240514._1
1161- let updatedDLp = $t04043240514._2
1156+ let $t04019240274 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157+ let refreshDLpActions = $t04019240274._1
1158+ let updatedDLp = $t04019240274._2
11621159 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11631160 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11641161 then (state ++ refreshDLpActions)
11651162 else throw("Strict value is not equal to itself.")
11661163 }
11671164 else throw("Strict value is not equal to itself.")
11681165 }
11691166
11701167
11711168
11721169 @Callable(i)
11731170 func getOneTknV2 (outAssetId,minOutAmount) = {
11741171 let isPoolOneTokenOperationsDisabled = {
11751172 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11761173 if ($isInstanceOf(@, "Boolean"))
11771174 then @
11781175 else throw(($getType(@) + " couldn't be cast to Boolean"))
11791176 }
11801177 let isGetDisabled = if (if (igs())
11811178 then true
11821179 else (cfgPoolStatus == PoolShutdown))
11831180 then true
11841181 else isPoolOneTokenOperationsDisabled
11851182 let checks = [if (if (!(isGetDisabled))
11861183 then true
11871184 else isManager(i))
11881185 then true
11891186 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
11901187 then true
11911188 else throwErr("exactly 1 payment are expected")]
11921189 if ((checks == checks))
11931190 then {
1194- let $t04113241287 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1195- let state = $t04113241287._1
1196- let totalAmount = $t04113241287._2
1191+ let $t04089241047 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1192+ let state = $t04089241047._1
1193+ let totalAmount = $t04089241047._2
11971194 $Tuple2(state, totalAmount)
11981195 }
11991196 else throw("Strict value is not equal to itself.")
12001197 }
12011198
12021199
12031200
12041201 @Callable(i)
12051202 func refreshDLp () = {
12061203 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12071204 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12081205 then unit
12091206 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12101207 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12111208 then {
12121209 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1213- let $t04181141875 = refreshDLpInternal(0, 0, 0)
1214- let dLpUpdateActions = $t04181141875._1
1215- let updatedDLp = $t04181141875._2
1210+ let $t04157141635 = refreshDLpInternal(0, 0, 0)
1211+ let dLpUpdateActions = $t04157141635._1
1212+ let updatedDLp = $t04157141635._2
12161213 let actions = if ((dLp != updatedDLp))
12171214 then dLpUpdateActions
12181215 else throwErr("nothing to refresh")
12191216 $Tuple2(actions, toString(updatedDLp))
12201217 }
12211218 else throw("Strict value is not equal to itself.")
12221219 }
12231220
12241221
12251222
12261223 @Callable(i)
12271224 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12281225 let poolConfig = gpc()
12291226 let amId = poolConfig[idxAmAsId]
12301227 let prId = poolConfig[idxPrAsId]
12311228 let lpId = poolConfig[idxLPAsId]
12321229 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12331230 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12341231 let D0 = getD(xp)
12351232 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12361233 let index = if ((outAssetId == amId))
12371234 then 0
12381235 else if ((outAssetId == prId))
12391236 then 1
12401237 else throw("invalid out asset id")
12411238 let newY = getYD(xp, index, D1)
12421239 let dy = (xp[index] - newY)
12431240 let totalGetRaw = max([0, toInt((dy - big1))])
1244- let $t04277542824 = takeFee(totalGetRaw)
1245- let totalGet = $t04277542824._1
1246- let feeAmount = $t04277542824._2
1241+ let $t04253542584 = takeFee(totalGetRaw)
1242+ let totalGet = $t04253542584._1
1243+ let feeAmount = $t04253542584._2
12471244 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12481245 }
12491246
12501247
12511248
12521249 @Callable(i)
12531250 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12541251 let poolConfig = gpc()
12551252 let amId = poolConfig[idxAmAsId]
12561253 let prId = poolConfig[idxPrAsId]
12571254 let lpId = poolConfig[idxLPAsId]
12581255 let amBalance = getAccBalance(amId)
12591256 let prBalance = getAccBalance(prId)
1260- let $t04316943284 = {
1257+ let $t04292943044 = {
12611258 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12621259 if ($isInstanceOf(@, "(Int, Int)"))
12631260 then @
12641261 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12651262 }
1266- let totalGet = $t04316943284._1
1267- let feeAmount = $t04316943284._2
1263+ let totalGet = $t04292943044._1
1264+ let feeAmount = $t04292943044._2
12681265 let r = ego("", lpId, lpAssetAmount, this)
12691266 let outAmAmt = r._1
12701267 let outPrAmt = r._2
12711268 let sumOfGetAssets = (outAmAmt + outPrAmt)
12721269 let bonus = if ((sumOfGetAssets == 0))
12731270 then if ((totalGet == 0))
12741271 then 0
12751272 else throw("bonus calculation error")
12761273 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
12771274 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
12781275 }
12791276
12801277
12811278
12821279 @Callable(i)
12831280 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
12841281 let r = cg(i)
12851282 let outAmAmt = r._1
12861283 let outPrAmt = r._2
12871284 let pmtAmt = r._3
12881285 let pmtAssetId = r._4
12891286 let state = r._5
12901287 if ((noLessThenAmtAsset > outAmAmt))
12911288 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
12921289 else if ((noLessThenPriceAsset > outPrAmt))
12931290 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
12941291 else {
12951292 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
12961293 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12971294 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12981295 then {
1299- let $t04445244533 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1300- let refreshDLpActions = $t04445244533._1
1301- let updatedDLp = $t04445244533._2
1296+ let $t04421244293 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1297+ let refreshDLpActions = $t04421244293._1
1298+ let updatedDLp = $t04421244293._2
13021299 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13031300 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13041301 then (state ++ refreshDLpActions)
13051302 else throw("Strict value is not equal to itself.")
13061303 }
13071304 else throw("Strict value is not equal to itself.")
13081305 }
13091306 }
13101307
13111308
13121309
13131310 @Callable(i)
13141311 func unstakeAndGet (amount) = {
13151312 let checkPayments = if ((size(i.payments) != 0))
13161313 then throw("No pmnts expd")
13171314 else true
13181315 if ((checkPayments == checkPayments))
13191316 then {
13201317 let cfg = gpc()
13211318 let factoryCfg = gfc()
13221319 let lpAssetId = fromBase58String(cfg[idxLPAsId])
13231320 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13241321 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13251322 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13261323 if ((unstakeInv == unstakeInv))
13271324 then {
13281325 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13291326 let outAmAmt = r._1
13301327 let outPrAmt = r._2
13311328 let sts = parseIntValue(r._9)
13321329 let state = r._10
13331330 let v = if (if (igs())
13341331 then true
13351332 else (sts == PoolShutdown))
13361333 then throw(("Blocked: " + toString(sts)))
13371334 else true
13381335 if ((v == v))
13391336 then {
13401337 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13411338 if ((burnA == burnA))
13421339 then {
1343- let $t04559645677 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1344- let refreshDLpActions = $t04559645677._1
1345- let updatedDLp = $t04559645677._2
1340+ let $t04535645437 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1341+ let refreshDLpActions = $t04535645437._1
1342+ let updatedDLp = $t04535645437._2
13461343 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13471344 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13481345 then (state ++ refreshDLpActions)
13491346 else throw("Strict value is not equal to itself.")
13501347 }
13511348 else throw("Strict value is not equal to itself.")
13521349 }
13531350 else throw("Strict value is not equal to itself.")
13541351 }
13551352 else throw("Strict value is not equal to itself.")
13561353 }
13571354 else throw("Strict value is not equal to itself.")
13581355 }
13591356
13601357
13611358
13621359 @Callable(i)
13631360 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13641361 let isGetDisabled = if (igs())
13651362 then true
13661363 else (cfgPoolStatus == PoolShutdown)
13671364 let checks = [if (!(isGetDisabled))
13681365 then true
13691366 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13701367 then true
13711368 else throw("no payments are expected")]
13721369 if ((checks == checks))
13731370 then {
13741371 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13751372 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
13761373 if ((unstakeInv == unstakeInv))
13771374 then {
13781375 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
13791376 let outAmAmt = res._1
13801377 let outPrAmt = res._2
13811378 let state = res._10
13821379 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
13831380 then true
13841381 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
13851382 then true
13861383 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
13871384 if ((checkAmounts == checkAmounts))
13881385 then {
13891386 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13901387 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13911388 then {
1392- let $t04692547006 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1393- let refreshDLpActions = $t04692547006._1
1394- let updatedDLp = $t04692547006._2
1389+ let $t04668546766 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1390+ let refreshDLpActions = $t04668546766._1
1391+ let updatedDLp = $t04668546766._2
13951392 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13961393 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13971394 then (state ++ refreshDLpActions)
13981395 else throw("Strict value is not equal to itself.")
13991396 }
14001397 else throw("Strict value is not equal to itself.")
14011398 }
14021399 else throw("Strict value is not equal to itself.")
14031400 }
14041401 else throw("Strict value is not equal to itself.")
14051402 }
14061403 else throw("Strict value is not equal to itself.")
14071404 }
14081405
14091406
14101407
14111408 @Callable(i)
14121409 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14131410 let isPoolOneTokenOperationsDisabled = {
14141411 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14151412 if ($isInstanceOf(@, "Boolean"))
14161413 then @
14171414 else throw(($getType(@) + " couldn't be cast to Boolean"))
14181415 }
14191416 let isGetDisabled = if (if (igs())
14201417 then true
14211418 else (cfgPoolStatus == PoolShutdown))
14221419 then true
14231420 else isPoolOneTokenOperationsDisabled
14241421 let checks = [if (if (!(isGetDisabled))
14251422 then true
14261423 else isManager(i))
14271424 then true
14281425 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14291426 then true
14301427 else throwErr("no payments are expected")]
14311428 if ((checks == checks))
14321429 then {
14331430 let cfg = gpc()
14341431 let factoryCfg = gfc()
14351432 let lpAssetId = fromBase58String(cfg[idxLPAsId])
14361433 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14371434 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14381435 if ((unstakeInv == unstakeInv))
14391436 then {
1440- let $t04794048128 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1441- let state = $t04794048128._1
1442- let totalAmount = $t04794048128._2
1437+ let $t04770047888 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1438+ let state = $t04770047888._1
1439+ let totalAmount = $t04770047888._2
14431440 $Tuple2(state, totalAmount)
14441441 }
14451442 else throw("Strict value is not equal to itself.")
14461443 }
14471444 else throw("Strict value is not equal to itself.")
14481445 }
14491446
14501447
14511448
14521449 @Callable(i)
14531450 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
14541451 let poolConfig = gpc()
14551452 let amId = poolConfig[idxAmAsId]
14561453 let prId = poolConfig[idxPrAsId]
14571454 let lpId = poolConfig[idxLPAsId]
1458- let $t04838748490 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1459- let lpAmount = $t04838748490._1
1460- let state = $t04838748490._2
1461- let feeAmount = $t04838748490._3
1462- let bonus = $t04838748490._4
1455+ let $t04814748250 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1456+ let lpAmount = $t04814748250._1
1457+ let state = $t04814748250._2
1458+ let feeAmount = $t04814748250._3
1459+ let bonus = $t04814748250._4
14631460 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14641461 }
14651462
14661463
14671464
14681465 @Callable(i)
14691466 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
14701467 let poolConfig = gpc()
14711468 let amId = poolConfig[idxAmAsId]
14721469 let prId = poolConfig[idxPrAsId]
14731470 let lpId = poolConfig[idxLPAsId]
1474- let $t04876948873 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1475- let lpAmount = $t04876948873._1
1476- let state = $t04876948873._2
1477- let feeAmount = $t04876948873._3
1478- let bonus = $t04876948873._4
1471+ let $t04852948633 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1472+ let lpAmount = $t04852948633._1
1473+ let state = $t04852948633._2
1474+ let feeAmount = $t04852948633._3
1475+ let bonus = $t04852948633._4
14791476 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14801477 }
14811478
14821479
14831480
14841481 @Callable(i)
14851482 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
14861483 then throw("denied")
14871484 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
14881485
14891486
14901487
14911488 @Callable(i)
14921489 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
14931490 then pd
14941491 else [StringEntry(k, v)]
14951492
14961493
14971494
14981495 @Callable(i)
14991496 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
15001497 then pd
15011498 else [IntegerEntry(k, v)]
15021499
15031500
15041501
15051502 @Callable(i)
15061503 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15071504
15081505
15091506
15101507 @Callable(i)
15111508 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15121509
15131510
15141511
15151512 @Callable(i)
15161513 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15171514 let pr = calcPrices(amAmt, prAmt, lpAmt)
15181515 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15191516 }
15201517
15211518
15221519
15231520 @Callable(i)
15241521 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15251522
15261523
15271524
15281525 @Callable(i)
15291526 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15301527
15311528
15321529
15331530 @Callable(i)
15341531 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15351532
15361533
15371534
15381535 @Callable(i)
15391536 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, ""))
15401537
15411538
15421539
15431540 @Callable(i)
15441541 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15451542 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15461543 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15471544 }
15481545
15491546
15501547
15511548 @Callable(i)
15521549 func getFeeREADONLY () = $Tuple2(nil, fee)
15531550
15541551
15551552 @Verifier(tx)
15561553 func verify () = {
15571554 let targetPublicKey = match m() {
15581555 case pk: ByteVector =>
15591556 pk
15601557 case _: Unit =>
15611558 tx.senderPublicKey
15621559 case _ =>
15631560 throw("Match error")
15641561 }
15651562 match tx {
15661563 case order: Order =>
15671564 let matcherPub = mp()
15681565 let orderValid = validateMatcherOrderAllowed(order)
15691566 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15701567 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15711568 if (if (if (orderValid)
15721569 then senderValid
15731570 else false)
15741571 then matcherValid
15751572 else false)
15761573 then true
15771574 else toe(orderValid, senderValid, matcherValid)
15781575 case s: SetScriptTransaction =>
15791576 let newHash = blake2b256(value(s.script))
15801577 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15811578 let currentHash = scriptHash(this)
15821579 if (if ((allowedHash == newHash))
15831580 then (currentHash != newHash)
15841581 else false)
15851582 then true
15861583 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15871584 case _ =>
15881585 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15891586 }
15901587 }
15911588

github/deemru/w8io/169f3d6 
214.39 ms