tx · HtqZBdmkGa8XV7JaW6AFRiLZcB3LzjdoLC8XUgTUtmd7

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.03600000 Waves

2022.12.08 12:01 [2351163] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "HtqZBdmkGa8XV7JaW6AFRiLZcB3LzjdoLC8XUgTUtmd7", "fee": 3600000, "feeAssetId": null, "timestamp": 1670490094320, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5eddRqmjDMwVDny5QmTXcJGTP3ScPbJnfej4wBYKjFjAnbVeB6p8QLEBdvwEyHGCQ1ALJsYPGss5mZTpUnfWbTMr" ], "script": "base64:BgLNKAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUFtdEFzSWQiDWlkeElQcmljZUFzSWQiD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2351163, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8XY2ED8nhenPGS2ywpsoY5S9ncXhf8era6TthXFigtdC Next: D3HqXfxmoJK1aYh6j8DmK6VQ4Ev4jvdMm6Djso6Xqcos Diff:
OldNewDifferences
456456 let dd = fraction(d, d, big1)
457457 let ddd = fraction(dd, d, big1)
458458 let dp = fraction(ddd, big1, xp0_xp1_n_n)
459- fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)))
459+ fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)), CEILING)
460460 }
461461
462462 func calc (acc,i) = if (acc._2)
474474 }
475475
476476 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
477- let $t02012820176 = {
477+ let $t02014520193 = {
478478 let $l = arr
479479 let $s = size($l)
480480 let $acc0 = $Tuple2(s, false)
488488
489489 $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)
490490 }
491- let d = $t02012820176._1
492- let found = $t02012820176._2
491+ let d = $t02014520193._1
492+ let found = $t02014520193._2
493493 if (found)
494494 then d
495495 else throw(("D calculation error, D = " + toString(d)))
513513 let ann_aPrecision = (ann - aPrecision)
514514 let n1 = (n + big1)
515515 func calc (acc,cur) = {
516- let $t02080520825 = acc
517- let d = $t02080520825._1
518- let found = $t02080520825._2
516+ let $t02082220842 = acc
517+ let d = $t02082220842._1
518+ let found = $t02082220842._2
519519 if ((found != unit))
520520 then acc
521521 else {
529529 }
530530
531531 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
532- let $t02124621293 = {
532+ let $t02126321310 = {
533533 let $l = arr
534534 let $s = size($l)
535535 let $acc0 = $Tuple2(s, unit)
543543
544544 $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)
545545 }
546- let d = $t02124621293._1
547- let found = $t02124621293._2
546+ let d = $t02126321310._1
547+ let found = $t02126321310._2
548548 if ((found != unit))
549549 then d
550550 else throw(("D calculation error, D = " + toString(d)))
564564 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
565565 let b = ((s + ((D * aPrecision) / ann)) - D)
566566 func calc (acc,cur) = {
567- let $t02179321813 = acc
568- let y = $t02179321813._1
569- let found = $t02179321813._2
567+ let $t02181021830 = acc
568+ let y = $t02181021830._1
569+ let found = $t02181021830._2
570570 if ((found != unit))
571571 then acc
572572 else {
579579 }
580580
581581 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
582- let $t02212022167 = {
582+ let $t02213722184 = {
583583 let $l = arr
584584 let $s = size($l)
585585 let $acc0 = $Tuple2(D, unit)
593593
594594 $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)
595595 }
596- let y = $t02212022167._1
597- let found = $t02212022167._2
596+ let y = $t02213722184._1
597+ let found = $t02213722184._2
598598 if ((found != unit))
599599 then y
600600 else throw(("Y calculation error, Y = " + toString(y)))
636636 func validateMatcherOrderAllowed (order) = {
637637 let amountAssetAmount = order.amount
638638 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
639- let $t02410624318 = if ((order.orderType == Buy))
639+ let $t02412324335 = if ((order.orderType == Buy))
640640 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
641641 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
642- let amountAssetBalanceDelta = $t02410624318._1
643- let priceAssetBalanceDelta = $t02410624318._2
642+ let amountAssetBalanceDelta = $t02412324335._1
643+ let priceAssetBalanceDelta = $t02412324335._2
644644 if (if (if (igs())
645645 then true
646646 else (cfgPoolStatus == PoolMatcherDis))
653653 then throw("Wr assets")
654654 else {
655655 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
656- let $t02464824748 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
657- let unusedActions = $t02464824748._1
658- let dLpNew = $t02464824748._2
656+ let $t02466524765 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
657+ let unusedActions = $t02466524765._1
658+ let dLpNew = $t02466524765._2
659659 let isOrderValid = (dLpNew >= dLp)
660660 isOrderValid
661661 }
709709 then {
710710 let amBalance = getAccBalance(amId)
711711 let prBalance = getAccBalance(prId)
712- let $t02706527527 = if ((txId == ""))
712+ let $t02708227544 = if ((txId == ""))
713713 then $Tuple2(amBalance, prBalance)
714714 else if ((pmtAssetId == amId))
715715 then if ((pmtAmtRaw > amBalance))
720720 then throw("invalid payment amount")
721721 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
722722 else throw("wrong pmtAssetId")
723- let amBalanceOld = $t02706527527._1
724- let prBalanceOld = $t02706527527._2
725- let $t02753327709 = if ((pmtAssetId == amId))
723+ let amBalanceOld = $t02708227544._1
724+ let prBalanceOld = $t02708227544._2
725+ let $t02755027726 = if ((pmtAssetId == amId))
726726 then $Tuple2(pmtAmtRaw, 0)
727727 else if ((pmtAssetId == prId))
728728 then $Tuple2(0, pmtAmtRaw)
729729 else throw("invalid payment")
730- let amAmountRaw = $t02753327709._1
731- let prAmountRaw = $t02753327709._2
732- let $t02771327952 = if (withTakeFee)
730+ let amAmountRaw = $t02755027726._1
731+ let prAmountRaw = $t02755027726._2
732+ let $t02773027969 = if (withTakeFee)
733733 then $Tuple3(takeFee(amAmountRaw)._1, takeFee(prAmountRaw)._1, takeFee(pmtAmtRaw)._2)
734734 else $Tuple3(amAmountRaw, prAmountRaw, 0)
735- let amAmount = $t02771327952._1
736- let prAmount = $t02771327952._2
737- let feeAmount = $t02771327952._3
735+ let amAmount = $t02773027969._1
736+ let prAmount = $t02773027969._2
737+ let feeAmount = $t02773027969._3
738738 let amBalanceNew = (amBalanceOld + amAmount)
739739 let prBalanceNew = (prBalanceOld + prAmount)
740740 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
783783 else {
784784 let amBalance = getAccBalance(amId)
785785 let prBalance = getAccBalance(prId)
786- let $t03001730128 = {
786+ let $t03003430145 = {
787787 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
788788 if ($isInstanceOf(@, "(Int, Int)"))
789789 then @
790790 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
791791 }
792- if (($t03001730128 == $t03001730128))
792+ if (($t03003430145 == $t03003430145))
793793 then {
794- let feeAmount = $t03001730128._2
795- let totalGet = $t03001730128._1
794+ let feeAmount = $t03003430145._2
795+ let totalGet = $t03003430145._1
796796 let totalAmount = if (if ((minOutAmount > 0))
797797 then (minOutAmount > totalGet)
798798 else false)
799799 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
800800 else totalGet
801- let $t03031830625 = if ((outAssetId == amId))
801+ let $t03033530642 = if ((outAssetId == amId))
802802 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
803803 else if ((outAssetId == prId))
804804 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
805805 else throw("invalid out asset id")
806- let outAm = $t03031830625._1
807- let outPr = $t03031830625._2
808- let amBalanceNew = $t03031830625._3
809- let prBalanceNew = $t03031830625._4
806+ let outAm = $t03033530642._1
807+ let outPr = $t03033530642._2
808+ let amBalanceNew = $t03033530642._3
809+ let prBalanceNew = $t03033530642._4
810810 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
811811 let curPr = f1(curPrX18, scale8)
812812 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
821821 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
822822 if ((burn == burn))
823823 then {
824- let $t03141031760 = {
824+ let $t03142731777 = {
825825 let feeAmountForCalc = if ((this == feeCollectorAddress))
826826 then 0
827827 else feeAmount
832832 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
833833 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
834834 }
835- let amountAssetBalanceDelta = $t03141031760._1
836- let priceAssetBalanceDelta = $t03141031760._2
837- let $t03176331871 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
838- let refreshDLpActions = $t03176331871._1
839- let updatedDLp = $t03176331871._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
840840 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
841841 if ((isUpdatedDLpValid == isUpdatedDLpValid))
842842 then $Tuple2((state ++ refreshDLpActions), totalAmount)
996996 else throw("Strict value is not equal to itself.")
997997 }
998998 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
999- let $t03572735792 = refreshDLpInternal(0, 0, 0)
1000- let refreshDLpActions = $t03572735792._1
1001- let updatedDLp = $t03572735792._2
999+ let $t03574435809 = refreshDLpInternal(0, 0, 0)
1000+ let refreshDLpActions = $t03574435809._1
1001+ let updatedDLp = $t03574435809._2
10021002 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
10031003 if ((isUpdatedDLpValid == isUpdatedDLpValid))
10041004 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10541054 let pmt = value(i.payments[0])
10551055 let pmtAssetId = toBase58String(value(pmt.assetId))
10561056 let pmtAmt = pmt.amount
1057- let $t03692937087 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1058- if (($t03692937087 == $t03692937087))
1057+ let $t03694637104 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1058+ if (($t03694637104 == $t03694637104))
10591059 then {
1060- let feeAmount = $t03692937087._3
1061- let state = $t03692937087._2
1062- let estimLP = $t03692937087._1
1060+ let feeAmount = $t03694637104._3
1061+ let state = $t03694637104._2
1062+ let estimLP = $t03694637104._1
10631063 let emitLpAmt = if (if ((minOutAmount > 0))
10641064 then (minOutAmount > estimLP)
10651065 else false)
10871087 let sendFeeToMatcher = if ((feeAmount > 0))
10881088 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10891089 else nil
1090- let $t03790238251 = if ((this == feeCollectorAddress))
1090+ let $t03791938268 = if ((this == feeCollectorAddress))
10911091 then $Tuple2(0, 0)
10921092 else {
10931093 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
10971097 then $Tuple2(-(feeAmount), 0)
10981098 else $Tuple2(0, -(feeAmount))
10991099 }
1100- let amountAssetBalanceDelta = $t03790238251._1
1101- let priceAssetBalanceDelta = $t03790238251._2
1102- let $t03825438362 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1103- let refreshDLpActions = $t03825438362._1
1104- let updatedDLp = $t03825438362._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
11051105 $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11061106 }
11071107 else throw("Strict value is not equal to itself.")
11281128 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11291129 if ((currentDLp == currentDLp))
11301130 then {
1131- let $t03932139386 = refreshDLpInternal(0, 0, 0)
1132- let refreshDLpActions = $t03932139386._1
1133- let updatedDLp = $t03932139386._2
1131+ let $t03933839403 = refreshDLpInternal(0, 0, 0)
1132+ let refreshDLpActions = $t03933839403._1
1133+ let updatedDLp = $t03933839403._2
11341134 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11351135 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11361136 then (state ++ refreshDLpActions)
11531153 if ((b == b))
11541154 then {
11551155 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
1156- let $t04017540257 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157- let refreshDLpActions = $t04017540257._1
1158- let updatedDLp = $t04017540257._2
1156+ let $t04019240274 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157+ let refreshDLpActions = $t04019240274._1
1158+ let updatedDLp = $t04019240274._2
11591159 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11601160 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11611161 then (state ++ refreshDLpActions)
11881188 else throwErr("exactly 1 payment are expected")]
11891189 if ((checks == checks))
11901190 then {
1191- let $t04087541030 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1192- let state = $t04087541030._1
1193- let totalAmount = $t04087541030._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
11941194 $Tuple2(state, totalAmount)
11951195 }
11961196 else throw("Strict value is not equal to itself.")
12071207 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12081208 then {
12091209 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1210- let $t04155441618 = refreshDLpInternal(0, 0, 0)
1211- let dLpUpdateActions = $t04155441618._1
1212- let updatedDLp = $t04155441618._2
1210+ let $t04157141635 = refreshDLpInternal(0, 0, 0)
1211+ let dLpUpdateActions = $t04157141635._1
1212+ let updatedDLp = $t04157141635._2
12131213 let actions = if ((dLp != updatedDLp))
12141214 then dLpUpdateActions
12151215 else throwErr("nothing to refresh")
12381238 let newY = getYD(xp, index, D1)
12391239 let dy = (xp[index] - newY)
12401240 let totalGetRaw = max([0, toInt((dy - big1))])
1241- let $t04251842567 = takeFee(totalGetRaw)
1242- let totalGet = $t04251842567._1
1243- let feeAmount = $t04251842567._2
1241+ let $t04253542584 = takeFee(totalGetRaw)
1242+ let totalGet = $t04253542584._1
1243+ let feeAmount = $t04253542584._2
12441244 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12451245 }
12461246
12541254 let lpId = poolConfig[idxLPAsId]
12551255 let amBalance = getAccBalance(amId)
12561256 let prBalance = getAccBalance(prId)
1257- let $t04291243027 = {
1257+ let $t04292943044 = {
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 = $t04291243027._1
1264- let feeAmount = $t04291243027._2
1263+ let totalGet = $t04292943044._1
1264+ let feeAmount = $t04292943044._2
12651265 let r = ego("", lpId, lpAssetAmount, this)
12661266 let outAmAmt = r._1
12671267 let outPrAmt = r._2
12931293 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12941294 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12951295 then {
1296- let $t04419544276 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1297- let refreshDLpActions = $t04419544276._1
1298- let updatedDLp = $t04419544276._2
1296+ let $t04421244293 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1297+ let refreshDLpActions = $t04421244293._1
1298+ let updatedDLp = $t04421244293._2
12991299 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13001300 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13011301 then (state ++ refreshDLpActions)
13371337 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13381338 if ((burnA == burnA))
13391339 then {
1340- let $t04533945420 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1341- let refreshDLpActions = $t04533945420._1
1342- let updatedDLp = $t04533945420._2
1340+ let $t04535645437 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1341+ let refreshDLpActions = $t04535645437._1
1342+ let updatedDLp = $t04535645437._2
13431343 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13441344 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13451345 then (state ++ refreshDLpActions)
13861386 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13871387 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13881388 then {
1389- let $t04666846749 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1390- let refreshDLpActions = $t04666846749._1
1391- let updatedDLp = $t04666846749._2
1389+ let $t04668546766 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1390+ let refreshDLpActions = $t04668546766._1
1391+ let updatedDLp = $t04668546766._2
13921392 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13931393 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13941394 then (state ++ refreshDLpActions)
14341434 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14351435 if ((unstakeInv == unstakeInv))
14361436 then {
1437- let $t04768347871 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1438- let state = $t04768347871._1
1439- let totalAmount = $t04768347871._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
14401440 $Tuple2(state, totalAmount)
14411441 }
14421442 else throw("Strict value is not equal to itself.")
14521452 let amId = poolConfig[idxAmAsId]
14531453 let prId = poolConfig[idxPrAsId]
14541454 let lpId = poolConfig[idxLPAsId]
1455- let $t04813048233 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1456- let lpAmount = $t04813048233._1
1457- let state = $t04813048233._2
1458- let feeAmount = $t04813048233._3
1459- let bonus = $t04813048233._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
14601460 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14611461 }
14621462
14681468 let amId = poolConfig[idxAmAsId]
14691469 let prId = poolConfig[idxPrAsId]
14701470 let lpId = poolConfig[idxLPAsId]
1471- let $t04851248616 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1472- let lpAmount = $t04851248616._1
1473- let state = $t04851248616._2
1474- let feeAmount = $t04851248616._3
1475- let bonus = $t04851248616._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
14761476 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14771477 }
14781478
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))
7474
7575
7676 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
7777
7878
7979 func abs (val) = if ((zeroBigInt > val))
8080 then -(val)
8181 else val
8282
8383
8484 func absBigInt (val) = if ((zeroBigInt > val))
8585 then -(val)
8686 else val
8787
8888
8989 func fc () = "%s__factoryContract"
9090
9191
9292 func mpk () = "%s__managerPublicKey"
9393
9494
9595 func pmpk () = "%s__pendingManagerPublicKey"
9696
9797
9898 func pl () = "%s%s__price__last"
9999
100100
101101 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
102102
103103
104104 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
105105
106106
107107 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
108108
109109
110110 func aa () = "%s__amountAsset"
111111
112112
113113 func pa () = "%s__priceAsset"
114114
115115
116116 func amp () = "%s__amp"
117117
118118
119119 func ada () = "%s__addonAddr"
120120
121121
122122 let keyFee = "%s__fee"
123123
124124 let fee = valueOrElse(getInteger(this, keyFee), feeDefault)
125125
126126 let keyDLp = makeString(["%s", "dLp"], SEP)
127127
128128 let keyDLpRefreshedHeight = makeString(["%s", "dLpRefreshedHeight"], SEP)
129129
130130 let keyDLpRefreshDelay = makeString(["%s", "refreshDLpDelay"], SEP)
131131
132132 let dLpRefreshDelayDefault = 1
133133
134134 let dLpRefreshDelay = valueOrElse(getInteger(this, keyDLpRefreshDelay), dLpRefreshDelayDefault)
135135
136136 func fcfg () = "%s__factoryConfig"
137137
138138
139139 func mtpk () = "%s%s__matcher__publicKey"
140140
141141
142142 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
143143
144144
145145 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
146146
147147
148148 func aps () = "%s__shutdown"
149149
150150
151151 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
152152
153153
154154 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
155155
156156
157157 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
158158
159159
160160 func str (val) = match val {
161161 case valStr: String =>
162162 valStr
163163 case _ =>
164164 throw("fail cast to String")
165165 }
166166
167167
168168 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
169169
170170
171171 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
172172
173173
174174 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
175175
176176
177177 func fmtErr (msg) = makeString(["lp_stable.ride:", msg], " ")
178178
179179
180180 let fca = addressFromStringValue(strf(this, fc()))
181181
182182 let A = strf(this, amp())
183183
184184 func igs () = valueOrElse(getBoolean(fca, aps()), false)
185185
186186
187187 func mp () = fromBase58String(strf(fca, mtpk()))
188188
189189
190190 let feeCollectorAddress = addressFromStringValue(strf(fca, keyFeeCollectorAddress()))
191191
192192 func gpc () = {
193193 let amtAs = strf(this, aa())
194194 let priceAs = strf(this, pa())
195195 let iPriceAs = intf(fca, mba(priceAs))
196196 let iAmtAs = intf(fca, mba(amtAs))
197197 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
198198 }
199199
200200
201201 func parseAssetId (input) = if ((input == wavesString))
202202 then unit
203203 else fromBase58String(input)
204204
205205
206206 func assetIdToString (input) = if ((input == unit))
207207 then wavesString
208208 else toBase58String(value(input))
209209
210210
211211 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]))
212212
213213
214214 let poolConfigParsed = parsePoolConfig(gpc())
215215
216216 let $t072557441 = poolConfigParsed
217217
218218 let cfgPoolAddress = $t072557441._1
219219
220220 let cfgPoolStatus = $t072557441._2
221221
222222 let cfgLpAssetId = $t072557441._3
223223
224224 let cfgAmountAssetId = $t072557441._4
225225
226226 let cfgPriceAssetId = $t072557441._5
227227
228228 let cfgAmountAssetDecimals = $t072557441._6
229229
230230 let cfgPriceAssetDecimals = $t072557441._7
231231
232232 func gfc () = split(strf(fca, fcfg()), SEP)
233233
234234
235235 let factoryConfig = gfc()
236236
237237 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
238238
239239 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
240240
241241 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
242242
243243 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
244244
245245 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)
246246
247247
248248 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)
249249
250250
251251 func getAccBalance (assetId) = if ((assetId == "WAVES"))
252252 then wavesBalance(this).available
253253 else assetBalance(this, fromBase58String(assetId))
254254
255255
256256 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
257257
258258
259259 func vad (A1,A2,slippage) = {
260260 let diff = fraction((A1 - A2), scale8BigInt, A2)
261261 let pass = ((slippage - abs(diff)) > zeroBigInt)
262262 if (!(pass))
263263 then throw(("Big slpg: " + toString(diff)))
264264 else $Tuple2(pass, min([A1, A2]))
265265 }
266266
267267
268268 func vd (D1,D0,slpg) = {
269269 let diff = fraction(D0, scale8BigInt, D1)
270270 let fail = (slpg > diff)
271271 if (if (fail)
272272 then true
273273 else (D0 > D1))
274274 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
275275 else fail
276276 }
277277
278278
279279 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
280280 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
281281 let prAsAmtX18 = t1(prAmt, prAssetDcm)
282282 cpbi(prAsAmtX18, amtAsAmtX18)
283283 }
284284
285285
286286 func calcPrices (amAmt,prAmt,lpAmt) = {
287287 let cfg = gpc()
288288 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
289289 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
290290 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
291291 let amAmtX18 = t1(amAmt, amtAsDcm)
292292 let prAmtX18 = t1(prAmt, prAsDcm)
293293 let lpAmtX18 = t1(lpAmt, scale8)
294294 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
295295 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
296296 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
297297 }
298298
299299
300300 func calculatePrices (amAmt,prAmt,lpAmt) = {
301301 let p = calcPrices(amAmt, prAmt, lpAmt)
302302 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
303303 }
304304
305305
306306 func takeFee (amount) = {
307307 let feeAmount = fraction(amount, fee, scale8)
308308 $Tuple2((amount - feeAmount), feeAmount)
309309 }
310310
311311
312312 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
313313 let cfg = gpc()
314314 let lpId = cfg[idxLPAsId]
315315 let amId = cfg[idxAmAsId]
316316 let prId = cfg[idxPrAsId]
317317 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
318318 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
319319 let sts = cfg[idxPoolSt]
320320 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
321321 if ((lpId != pmtAssetId))
322322 then throw("Wrong pmt asset")
323323 else {
324324 let amBalance = getAccBalance(amId)
325325 let amBalanceX18 = t1(amBalance, amDcm)
326326 let prBalance = getAccBalance(prId)
327327 let prBalanceX18 = t1(prBalance, prDcm)
328328 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
329329 let curPrice = f1(curPriceX18, scale8)
330330 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
331331 let lpEmissX18 = t1(lpEmiss, scale8)
332332 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
333333 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
334334 let outAmAmt = f1(outAmAmtX18, amDcm)
335335 let outPrAmt = f1(outPrAmtX18, prDcm)
336336 let state = if ((txId58 == ""))
337337 then nil
338338 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
339339 then unit
340340 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
341341 then unit
342342 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)]
343343 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
344344 }
345345 }
346346
347347
348348 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
349349 let cfg = gpc()
350350 let lpId = fromBase58String(cfg[idxLPAsId])
351351 let amIdStr = cfg[idxAmAsId]
352352 let prIdStr = cfg[idxPrAsId]
353353 let inAmIdStr = cfg[idxIAmtAsId]
354354 let inPrIdStr = cfg[idxIPriceAsId]
355355 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
356356 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
357357 let sts = cfg[idxPoolSt]
358358 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
359359 let amBalance = if (isEval)
360360 then getAccBalance(amIdStr)
361361 else if (if (isOneAsset)
362362 then (pmtId == amIdStr)
363363 else false)
364364 then (getAccBalance(amIdStr) - pmtAmt)
365365 else if (isOneAsset)
366366 then getAccBalance(amIdStr)
367367 else (getAccBalance(amIdStr) - inAmAmt)
368368 let prBalance = if (isEval)
369369 then getAccBalance(prIdStr)
370370 else if (if (isOneAsset)
371371 then (pmtId == prIdStr)
372372 else false)
373373 then (getAccBalance(prIdStr) - pmtAmt)
374374 else if (isOneAsset)
375375 then getAccBalance(prIdStr)
376376 else (getAccBalance(prIdStr) - inPrAmt)
377377 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
378378 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
379379 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
380380 let amBalanceX18 = t1(amBalance, amtDcm)
381381 let prBalanceX18 = t1(prBalance, priceDcm)
382382 let r = if ((lpEm == 0))
383383 then {
384384 let curPriceX18 = zeroBigInt
385385 let slippageX18 = zeroBigInt
386386 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
387387 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
388388 }
389389 else {
390390 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
391391 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
392392 let slippageX18 = t1(slippage, scale8)
393393 if (if (if (validateSlippage)
394394 then (curPriceX18 != zeroBigInt)
395395 else false)
396396 then (slippageRealX18 > slippageX18)
397397 else false)
398398 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
399399 else {
400400 let lpEmissionX18 = t1(lpEm, scale8)
401401 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
402402 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
403403 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
404404 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
405405 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
406406 let expAmtAssetAmtX18 = expectedAmts._1
407407 let expPriceAssetAmtX18 = expectedAmts._2
408408 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
409409 $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
410410 }
411411 }
412412 let calcLpAmt = r._1
413413 let calcAmAssetPmt = r._2
414414 let calcPrAssetPmt = r._3
415415 let curPrice = f1(r._4, scale8)
416416 let slippageCalc = f1(r._5, scale8)
417417 if ((0 >= calcLpAmt))
418418 then throw("LP <= 0")
419419 else {
420420 let emitLpAmt = if (!(emitLp))
421421 then 0
422422 else calcLpAmt
423423 let amDiff = (inAmAmt - calcAmAssetPmt)
424424 let prDiff = (inPrAmt - calcPrAssetPmt)
425425 let $t01787218217 = if (if (isOneAsset)
426426 then (pmtId == amIdStr)
427427 else false)
428428 then $Tuple2(pmtAmt, 0)
429429 else if (if (isOneAsset)
430430 then (pmtId == prIdStr)
431431 else false)
432432 then $Tuple2(0, pmtAmt)
433433 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
434434 let writeAmAmt = $t01787218217._1
435435 let writePrAmt = $t01787218217._2
436436 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))]
437437 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
438438 }
439439 }
440440
441441
442442 func getD (xp) = {
443443 let xp0 = xp[0]
444444 let xp1 = xp[1]
445445 let s = (xp0 + xp1)
446446 if ((s == big0))
447447 then big0
448448 else {
449449 let a = parseIntValue(A)
450450 let ann = (a * 2)
451451 let p = fraction(xp0, xp1, big1)
452452 let xp0_xp1_n_n = fraction(p, big4, big1)
453453 let ann_s = fraction(toBigInt(ann), s, big1)
454454 let ann_1 = toBigInt((ann - 1))
455455 func calcDNext (d) = {
456456 let dd = fraction(d, d, big1)
457457 let ddd = fraction(dd, d, big1)
458458 let dp = fraction(ddd, big1, xp0_xp1_n_n)
459- fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)))
459+ fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)), CEILING)
460460 }
461461
462462 func calc (acc,i) = if (acc._2)
463463 then acc
464464 else {
465465 let d = acc._1
466466 let dNext = calcDNext(d)
467467 let dDiffRaw = toInt((dNext - value(d)))
468468 let dDiff = if ((0 > dDiffRaw))
469469 then -(dDiffRaw)
470470 else dDiffRaw
471471 if ((1 >= dDiff))
472472 then $Tuple2(dNext, true)
473473 else $Tuple2(dNext, false)
474474 }
475475
476476 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
477- let $t02012820176 = {
477+ let $t02014520193 = {
478478 let $l = arr
479479 let $s = size($l)
480480 let $acc0 = $Tuple2(s, false)
481481 func $f0_1 ($a,$i) = if (($i >= $s))
482482 then $a
483483 else calc($a, $l[$i])
484484
485485 func $f0_2 ($a,$i) = if (($i >= $s))
486486 then $a
487487 else throw("List size exceeds 15")
488488
489489 $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)
490490 }
491- let d = $t02012820176._1
492- let found = $t02012820176._2
491+ let d = $t02014520193._1
492+ let found = $t02014520193._2
493493 if (found)
494494 then d
495495 else throw(("D calculation error, D = " + toString(d)))
496496 }
497497 }
498498
499499
500500 func getDOld (xp) = {
501501 let n = big2
502502 let xp0 = xp[0]
503503 let xp1 = xp[1]
504504 let aPrecision = parseBigIntValue(Amult)
505505 let a = (parseBigIntValue(A) * aPrecision)
506506 let s = (xp0 + xp1)
507507 if ((s == big0))
508508 then big0
509509 else {
510510 let ann = (a * n)
511511 let xp0_xp1_n_n = (((xp0 * xp1) * n) * n)
512512 let ann_s_aPrecision = ((ann * s) / aPrecision)
513513 let ann_aPrecision = (ann - aPrecision)
514514 let n1 = (n + big1)
515515 func calc (acc,cur) = {
516- let $t02080520825 = acc
517- let d = $t02080520825._1
518- let found = $t02080520825._2
516+ let $t02082220842 = acc
517+ let d = $t02082220842._1
518+ let found = $t02082220842._2
519519 if ((found != unit))
520520 then acc
521521 else {
522522 let dp = (((d * d) * d) / xp0_xp1_n_n)
523523 let dNext = (((ann_s_aPrecision + (dp * n)) * d) / (((ann_aPrecision * d) / aPrecision) + (n1 * dp)))
524524 let dDiff = absBigInt((dNext - value(d)))
525525 if ((big1 >= dDiff))
526526 then $Tuple2(dNext, cur)
527527 else $Tuple2(dNext, unit)
528528 }
529529 }
530530
531531 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
532- let $t02124621293 = {
532+ let $t02126321310 = {
533533 let $l = arr
534534 let $s = size($l)
535535 let $acc0 = $Tuple2(s, unit)
536536 func $f0_1 ($a,$i) = if (($i >= $s))
537537 then $a
538538 else calc($a, $l[$i])
539539
540540 func $f0_2 ($a,$i) = if (($i >= $s))
541541 then $a
542542 else throw("List size exceeds 15")
543543
544544 $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)
545545 }
546- let d = $t02124621293._1
547- let found = $t02124621293._2
546+ let d = $t02126321310._1
547+ let found = $t02126321310._2
548548 if ((found != unit))
549549 then d
550550 else throw(("D calculation error, D = " + toString(d)))
551551 }
552552 }
553553
554554
555555 func getYD (xp,i,D) = {
556556 let n = big2
557557 let x = xp[if ((i == 0))
558558 then 1
559559 else 0]
560560 let aPrecision = parseBigIntValue(Amult)
561561 let a = (parseBigIntValue(A) * aPrecision)
562562 let s = x
563563 let ann = (a * n)
564564 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
565565 let b = ((s + ((D * aPrecision) / ann)) - D)
566566 func calc (acc,cur) = {
567- let $t02179321813 = acc
568- let y = $t02179321813._1
569- let found = $t02179321813._2
567+ let $t02181021830 = acc
568+ let y = $t02181021830._1
569+ let found = $t02181021830._2
570570 if ((found != unit))
571571 then acc
572572 else {
573573 let yNext = (((y * y) + c) / ((big2 * y) + b))
574574 let yDiff = absBigInt((yNext - value(y)))
575575 if ((big1 >= yDiff))
576576 then $Tuple2(yNext, cur)
577577 else $Tuple2(yNext, unit)
578578 }
579579 }
580580
581581 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
582- let $t02212022167 = {
582+ let $t02213722184 = {
583583 let $l = arr
584584 let $s = size($l)
585585 let $acc0 = $Tuple2(D, unit)
586586 func $f0_1 ($a,$i) = if (($i >= $s))
587587 then $a
588588 else calc($a, $l[$i])
589589
590590 func $f0_2 ($a,$i) = if (($i >= $s))
591591 then $a
592592 else throw("List size exceeds 15")
593593
594594 $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)
595595 }
596- let y = $t02212022167._1
597- let found = $t02212022167._2
596+ let y = $t02213722184._1
597+ let found = $t02213722184._2
598598 if ((found != unit))
599599 then y
600600 else throw(("Y calculation error, Y = " + toString(y)))
601601 }
602602
603603
604604 func calcDLp (amountBalance,priceBalance,lpEmission) = {
605605 let updatedDLp = fraction(getD([amountBalance, priceBalance]), scale18, lpEmission)
606606 if ((lpEmission == big0))
607607 then big0
608608 else updatedDLp
609609 }
610610
611611
612612 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
613613 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
614614 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
615615 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
616616 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
617617 currentDLp
618618 }
619619
620620
621621 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
622622 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
623623 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
624624 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
625625 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
626626 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
627627 $Tuple2(actions, updatedDLp)
628628 }
629629
630630
631631 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
632632 then true
633633 else throwErr("updated DLp lower than current DLp")
634634
635635
636636 func validateMatcherOrderAllowed (order) = {
637637 let amountAssetAmount = order.amount
638638 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
639- let $t02410624318 = if ((order.orderType == Buy))
639+ let $t02412324335 = if ((order.orderType == Buy))
640640 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
641641 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
642- let amountAssetBalanceDelta = $t02410624318._1
643- let priceAssetBalanceDelta = $t02410624318._2
642+ let amountAssetBalanceDelta = $t02412324335._1
643+ let priceAssetBalanceDelta = $t02412324335._2
644644 if (if (if (igs())
645645 then true
646646 else (cfgPoolStatus == PoolMatcherDis))
647647 then true
648648 else (cfgPoolStatus == PoolShutdown))
649649 then throw("Admin blocked")
650650 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
651651 then true
652652 else (order.assetPair.priceAsset != cfgPriceAssetId))
653653 then throw("Wr assets")
654654 else {
655655 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
656- let $t02464824748 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
657- let unusedActions = $t02464824748._1
658- let dLpNew = $t02464824748._2
656+ let $t02466524765 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
657+ let unusedActions = $t02466524765._1
658+ let dLpNew = $t02466524765._2
659659 let isOrderValid = (dLpNew >= dLp)
660660 isOrderValid
661661 }
662662 }
663663
664664
665665 func cg (i) = if ((size(i.payments) != 1))
666666 then throw("1 pmnt exp")
667667 else {
668668 let pmt = value(i.payments[0])
669669 let pmtAssetId = value(pmt.assetId)
670670 let pmtAmt = pmt.amount
671671 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
672672 let outAmAmt = r._1
673673 let outPrAmt = r._2
674674 let sts = parseIntValue(r._9)
675675 let state = r._10
676676 if (if (igs())
677677 then true
678678 else (sts == PoolShutdown))
679679 then throw(("Admin blocked: " + toString(sts)))
680680 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
681681 }
682682
683683
684684 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
685685 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
686686 let sts = parseIntValue(r._8)
687687 if (if (if (igs())
688688 then true
689689 else (sts == PoolPutDis))
690690 then true
691691 else (sts == PoolShutdown))
692692 then throw(("Blocked:" + toString(sts)))
693693 else r
694694 }
695695
696696
697697 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
698698 let poolConfig = gpc()
699699 let amId = poolConfig[idxAmAsId]
700700 let prId = poolConfig[idxPrAsId]
701701 let lpId = poolConfig[idxLPAsId]
702702 let amtDcm = parseIntValue(poolConfig[idxAmtAsDcm])
703703 let priceDcm = parseIntValue(poolConfig[idxPriceAsDcm])
704704 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
705705 let chechEmission = if ((lpAssetEmission > big0))
706706 then true
707707 else throw("initial deposit requires all coins")
708708 if ((chechEmission == chechEmission))
709709 then {
710710 let amBalance = getAccBalance(amId)
711711 let prBalance = getAccBalance(prId)
712- let $t02706527527 = if ((txId == ""))
712+ let $t02708227544 = if ((txId == ""))
713713 then $Tuple2(amBalance, prBalance)
714714 else if ((pmtAssetId == amId))
715715 then if ((pmtAmtRaw > amBalance))
716716 then throw("invalid payment amount")
717717 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
718718 else if ((pmtAssetId == prId))
719719 then if ((pmtAmtRaw > prBalance))
720720 then throw("invalid payment amount")
721721 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
722722 else throw("wrong pmtAssetId")
723- let amBalanceOld = $t02706527527._1
724- let prBalanceOld = $t02706527527._2
725- let $t02753327709 = if ((pmtAssetId == amId))
723+ let amBalanceOld = $t02708227544._1
724+ let prBalanceOld = $t02708227544._2
725+ let $t02755027726 = if ((pmtAssetId == amId))
726726 then $Tuple2(pmtAmtRaw, 0)
727727 else if ((pmtAssetId == prId))
728728 then $Tuple2(0, pmtAmtRaw)
729729 else throw("invalid payment")
730- let amAmountRaw = $t02753327709._1
731- let prAmountRaw = $t02753327709._2
732- let $t02771327952 = if (withTakeFee)
730+ let amAmountRaw = $t02755027726._1
731+ let prAmountRaw = $t02755027726._2
732+ let $t02773027969 = if (withTakeFee)
733733 then $Tuple3(takeFee(amAmountRaw)._1, takeFee(prAmountRaw)._1, takeFee(pmtAmtRaw)._2)
734734 else $Tuple3(amAmountRaw, prAmountRaw, 0)
735- let amAmount = $t02771327952._1
736- let prAmount = $t02771327952._2
737- let feeAmount = $t02771327952._3
735+ let amAmount = $t02773027969._1
736+ let prAmount = $t02773027969._2
737+ let feeAmount = $t02773027969._3
738738 let amBalanceNew = (amBalanceOld + amAmount)
739739 let prBalanceNew = (prBalanceOld + prAmount)
740740 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
741741 let D1 = getD([toBigInt(amBalanceNew), toBigInt(prBalanceNew)])
742742 let checkD = if ((D1 > D0))
743743 then true
744744 else throw()
745745 if ((checkD == checkD))
746746 then {
747747 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
748748 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
749749 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))]
750750 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
751751 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
752752 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
753753 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
754754 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
755755 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
756756 }
757757 else throw("Strict value is not equal to itself.")
758758 }
759759 else throw("Strict value is not equal to itself.")
760760 }
761761
762762
763763 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
764764 let poolConfig = gpc()
765765 let lpId = poolConfig[idxLPAsId]
766766 let amId = poolConfig[idxAmAsId]
767767 let prId = poolConfig[idxPrAsId]
768768 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
769769 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
770770 let poolStatus = poolConfig[idxPoolSt]
771771 let userAddress = if ((caller == restContract))
772772 then originCaller
773773 else caller
774774 let pmt = value(payments[0])
775775 let pmtAssetId = value(pmt.assetId)
776776 let pmtAmt = pmt.amount
777777 let currentDLp = calcCurrentDLp(big0, big0, big0)
778778 if ((currentDLp == currentDLp))
779779 then {
780780 let txId58 = toBase58String(transactionId)
781781 if ((lpId != toBase58String(pmtAssetId)))
782782 then throw("Wrong LP")
783783 else {
784784 let amBalance = getAccBalance(amId)
785785 let prBalance = getAccBalance(prId)
786- let $t03001730128 = {
786+ let $t03003430145 = {
787787 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
788788 if ($isInstanceOf(@, "(Int, Int)"))
789789 then @
790790 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
791791 }
792- if (($t03001730128 == $t03001730128))
792+ if (($t03003430145 == $t03003430145))
793793 then {
794- let feeAmount = $t03001730128._2
795- let totalGet = $t03001730128._1
794+ let feeAmount = $t03003430145._2
795+ let totalGet = $t03003430145._1
796796 let totalAmount = if (if ((minOutAmount > 0))
797797 then (minOutAmount > totalGet)
798798 else false)
799799 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
800800 else totalGet
801- let $t03031830625 = if ((outAssetId == amId))
801+ let $t03033530642 = if ((outAssetId == amId))
802802 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
803803 else if ((outAssetId == prId))
804804 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
805805 else throw("invalid out asset id")
806- let outAm = $t03031830625._1
807- let outPr = $t03031830625._2
808- let amBalanceNew = $t03031830625._3
809- let prBalanceNew = $t03031830625._4
806+ let outAm = $t03033530642._1
807+ let outPr = $t03033530642._2
808+ let amBalanceNew = $t03033530642._3
809+ let prBalanceNew = $t03033530642._4
810810 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
811811 let curPr = f1(curPrX18, scale8)
812812 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
813813 then unit
814814 else fromBase58String(outAssetId)
815815 let sendFeeToMatcher = if ((feeAmount > 0))
816816 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
817817 else nil
818818 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)
819819 if ((state == state))
820820 then {
821821 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
822822 if ((burn == burn))
823823 then {
824- let $t03141031760 = {
824+ let $t03142731777 = {
825825 let feeAmountForCalc = if ((this == feeCollectorAddress))
826826 then 0
827827 else feeAmount
828828 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
829829 then true
830830 else false
831831 if (outInAmountAsset)
832832 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
833833 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
834834 }
835- let amountAssetBalanceDelta = $t03141031760._1
836- let priceAssetBalanceDelta = $t03141031760._2
837- let $t03176331871 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
838- let refreshDLpActions = $t03176331871._1
839- let updatedDLp = $t03176331871._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
840840 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
841841 if ((isUpdatedDLpValid == isUpdatedDLpValid))
842842 then $Tuple2((state ++ refreshDLpActions), totalAmount)
843843 else throw("Strict value is not equal to itself.")
844844 }
845845 else throw("Strict value is not equal to itself.")
846846 }
847847 else throw("Strict value is not equal to itself.")
848848 }
849849 else throw("Strict value is not equal to itself.")
850850 }
851851 }
852852 else throw("Strict value is not equal to itself.")
853853 }
854854
855855
856856 func m () = match getString(mpk()) {
857857 case s: String =>
858858 fromBase58String(s)
859859 case _: Unit =>
860860 unit
861861 case _ =>
862862 throw("Match error")
863863 }
864864
865865
866866 func pm () = match getString(pmpk()) {
867867 case s: String =>
868868 fromBase58String(s)
869869 case _: Unit =>
870870 unit
871871 case _ =>
872872 throw("Match error")
873873 }
874874
875875
876876 let pd = throw("Permission denied")
877877
878878 func isManager (i) = match m() {
879879 case pk: ByteVector =>
880880 (i.callerPublicKey == pk)
881881 case _: Unit =>
882882 (i.caller == this)
883883 case _ =>
884884 throw("Match error")
885885 }
886886
887887
888888 func mm (i) = match m() {
889889 case pk: ByteVector =>
890890 if ((i.callerPublicKey == pk))
891891 then true
892892 else pd
893893 case _: Unit =>
894894 if ((i.caller == this))
895895 then true
896896 else pd
897897 case _ =>
898898 throw("Match error")
899899 }
900900
901901
902902 @Callable(i)
903903 func constructor (fc) = {
904904 let c = mm(i)
905905 if ((c == c))
906906 then [StringEntry(fc(), fc)]
907907 else throw("Strict value is not equal to itself.")
908908 }
909909
910910
911911
912912 @Callable(i)
913913 func setManager (pendingManagerPublicKey) = {
914914 let c = mm(i)
915915 if ((c == c))
916916 then {
917917 let cm = fromBase58String(pendingManagerPublicKey)
918918 if ((cm == cm))
919919 then [StringEntry(pmpk(), pendingManagerPublicKey)]
920920 else throw("Strict value is not equal to itself.")
921921 }
922922 else throw("Strict value is not equal to itself.")
923923 }
924924
925925
926926
927927 @Callable(i)
928928 func confirmManager () = {
929929 let p = pm()
930930 let hpm = if (isDefined(p))
931931 then true
932932 else throw("No pending manager")
933933 if ((hpm == hpm))
934934 then {
935935 let cpm = if ((i.callerPublicKey == value(p)))
936936 then true
937937 else throw("You are not pending manager")
938938 if ((cpm == cpm))
939939 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
940940 else throw("Strict value is not equal to itself.")
941941 }
942942 else throw("Strict value is not equal to itself.")
943943 }
944944
945945
946946
947947 @Callable(i)
948948 func put (slip,autoStake) = {
949949 let factCfg = gfc()
950950 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
951951 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
952952 if ((0 > slip))
953953 then throw("Wrong slippage")
954954 else if ((size(i.payments) != 2))
955955 then throw("2 pmnts expd")
956956 else {
957957 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
958958 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
959959 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
960960 if ((currentDLp == currentDLp))
961961 then {
962962 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, "")
963963 let emitLpAmt = e._2
964964 let lpAssetId = e._7
965965 let state = e._9
966966 let amDiff = e._10
967967 let prDiff = e._11
968968 let amId = e._12
969969 let prId = e._13
970970 let r = invoke(fca, "emit", [emitLpAmt], nil)
971971 if ((r == r))
972972 then {
973973 let el = match r {
974974 case legacy: Address =>
975975 invoke(legacy, "emit", [emitLpAmt], nil)
976976 case _ =>
977977 unit
978978 }
979979 if ((el == el))
980980 then {
981981 let sa = if ((amDiff > 0))
982982 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
983983 else nil
984984 if ((sa == sa))
985985 then {
986986 let sp = if ((prDiff > 0))
987987 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
988988 else nil
989989 if ((sp == sp))
990990 then {
991991 let lpTrnsfr = if (autoStake)
992992 then {
993993 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
994994 if ((ss == ss))
995995 then nil
996996 else throw("Strict value is not equal to itself.")
997997 }
998998 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
999- let $t03572735792 = refreshDLpInternal(0, 0, 0)
1000- let refreshDLpActions = $t03572735792._1
1001- let updatedDLp = $t03572735792._2
999+ let $t03574435809 = refreshDLpInternal(0, 0, 0)
1000+ let refreshDLpActions = $t03574435809._1
1001+ let updatedDLp = $t03574435809._2
10021002 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
10031003 if ((isUpdatedDLpValid == isUpdatedDLpValid))
10041004 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10051005 else throw("Strict value is not equal to itself.")
10061006 }
10071007 else throw("Strict value is not equal to itself.")
10081008 }
10091009 else throw("Strict value is not equal to itself.")
10101010 }
10111011 else throw("Strict value is not equal to itself.")
10121012 }
10131013 else throw("Strict value is not equal to itself.")
10141014 }
10151015 else throw("Strict value is not equal to itself.")
10161016 }
10171017 }
10181018
10191019
10201020
10211021 @Callable(i)
10221022 func putOneTknV2 (minOutAmount,autoStake) = {
10231023 let isPoolOneTokenOperationsDisabled = {
10241024 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10251025 if ($isInstanceOf(@, "Boolean"))
10261026 then @
10271027 else throw(($getType(@) + " couldn't be cast to Boolean"))
10281028 }
10291029 let isPutDisabled = if (if (if (igs())
10301030 then true
10311031 else (cfgPoolStatus == PoolPutDis))
10321032 then true
10331033 else (cfgPoolStatus == PoolShutdown))
10341034 then true
10351035 else isPoolOneTokenOperationsDisabled
10361036 let checks = [if (if (!(isPutDisabled))
10371037 then true
10381038 else isManager(i))
10391039 then true
10401040 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10411041 then true
10421042 else throwErr("exactly 1 payment are expected")]
10431043 if ((checks == checks))
10441044 then {
10451045 let poolConfig = gpc()
10461046 let amId = poolConfig[idxAmAsId]
10471047 let prId = poolConfig[idxPrAsId]
10481048 let lpId = fromBase58String(poolConfig[idxLPAsId])
10491049 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
10501050 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
10511051 let userAddress = if ((i.caller == this))
10521052 then i.originCaller
10531053 else i.caller
10541054 let pmt = value(i.payments[0])
10551055 let pmtAssetId = toBase58String(value(pmt.assetId))
10561056 let pmtAmt = pmt.amount
1057- let $t03692937087 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1058- if (($t03692937087 == $t03692937087))
1057+ let $t03694637104 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1058+ if (($t03694637104 == $t03694637104))
10591059 then {
1060- let feeAmount = $t03692937087._3
1061- let state = $t03692937087._2
1062- let estimLP = $t03692937087._1
1060+ let feeAmount = $t03694637104._3
1061+ let state = $t03694637104._2
1062+ let estimLP = $t03694637104._1
10631063 let emitLpAmt = if (if ((minOutAmount > 0))
10641064 then (minOutAmount > estimLP)
10651065 else false)
10661066 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10671067 else estimLP
10681068 let e = invoke(fca, "emit", [emitLpAmt], nil)
10691069 if ((e == e))
10701070 then {
10711071 let el = match e {
10721072 case legacy: Address =>
10731073 invoke(legacy, "emit", [emitLpAmt], nil)
10741074 case _ =>
10751075 unit
10761076 }
10771077 if ((el == el))
10781078 then {
10791079 let lpTrnsfr = if (autoStake)
10801080 then {
10811081 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
10821082 if ((ss == ss))
10831083 then nil
10841084 else throw("Strict value is not equal to itself.")
10851085 }
10861086 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
10871087 let sendFeeToMatcher = if ((feeAmount > 0))
10881088 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10891089 else nil
1090- let $t03790238251 = if ((this == feeCollectorAddress))
1090+ let $t03791938268 = if ((this == feeCollectorAddress))
10911091 then $Tuple2(0, 0)
10921092 else {
10931093 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
10941094 then true
10951095 else false
10961096 if (paymentInAmountAsset)
10971097 then $Tuple2(-(feeAmount), 0)
10981098 else $Tuple2(0, -(feeAmount))
10991099 }
1100- let amountAssetBalanceDelta = $t03790238251._1
1101- let priceAssetBalanceDelta = $t03790238251._2
1102- let $t03825438362 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1103- let refreshDLpActions = $t03825438362._1
1104- let updatedDLp = $t03825438362._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
11051105 $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
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 else throw("Strict value is not equal to itself.")
11141114 }
11151115
11161116
11171117
11181118 @Callable(i)
11191119 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11201120 then throw("Wrong slpg")
11211121 else if ((size(i.payments) != 2))
11221122 then throw("2 pmnts expd")
11231123 else {
11241124 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, "")
11251125 let state = estPut._9
11261126 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11271127 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11281128 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11291129 if ((currentDLp == currentDLp))
11301130 then {
1131- let $t03932139386 = refreshDLpInternal(0, 0, 0)
1132- let refreshDLpActions = $t03932139386._1
1133- let updatedDLp = $t03932139386._2
1131+ let $t03933839403 = refreshDLpInternal(0, 0, 0)
1132+ let refreshDLpActions = $t03933839403._1
1133+ let updatedDLp = $t03933839403._2
11341134 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11351135 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11361136 then (state ++ refreshDLpActions)
11371137 else throw("Strict value is not equal to itself.")
11381138 }
11391139 else throw("Strict value is not equal to itself.")
11401140 }
11411141
11421142
11431143
11441144 @Callable(i)
11451145 func get () = {
11461146 let r = cg(i)
11471147 let outAmtAmt = r._1
11481148 let outPrAmt = r._2
11491149 let pmtAmt = r._3
11501150 let pmtAssetId = r._4
11511151 let state = r._5
11521152 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11531153 if ((b == b))
11541154 then {
11551155 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
1156- let $t04017540257 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157- let refreshDLpActions = $t04017540257._1
1158- let updatedDLp = $t04017540257._2
1156+ let $t04019240274 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1157+ let refreshDLpActions = $t04019240274._1
1158+ let updatedDLp = $t04019240274._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
11671167
11681168
11691169 @Callable(i)
11701170 func getOneTknV2 (outAssetId,minOutAmount) = {
11711171 let isPoolOneTokenOperationsDisabled = {
11721172 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11731173 if ($isInstanceOf(@, "Boolean"))
11741174 then @
11751175 else throw(($getType(@) + " couldn't be cast to Boolean"))
11761176 }
11771177 let isGetDisabled = if (if (igs())
11781178 then true
11791179 else (cfgPoolStatus == PoolShutdown))
11801180 then true
11811181 else isPoolOneTokenOperationsDisabled
11821182 let checks = [if (if (!(isGetDisabled))
11831183 then true
11841184 else isManager(i))
11851185 then true
11861186 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
11871187 then true
11881188 else throwErr("exactly 1 payment are expected")]
11891189 if ((checks == checks))
11901190 then {
1191- let $t04087541030 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1192- let state = $t04087541030._1
1193- let totalAmount = $t04087541030._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
11941194 $Tuple2(state, totalAmount)
11951195 }
11961196 else throw("Strict value is not equal to itself.")
11971197 }
11981198
11991199
12001200
12011201 @Callable(i)
12021202 func refreshDLp () = {
12031203 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12041204 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12051205 then unit
12061206 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12071207 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12081208 then {
12091209 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1210- let $t04155441618 = refreshDLpInternal(0, 0, 0)
1211- let dLpUpdateActions = $t04155441618._1
1212- let updatedDLp = $t04155441618._2
1210+ let $t04157141635 = refreshDLpInternal(0, 0, 0)
1211+ let dLpUpdateActions = $t04157141635._1
1212+ let updatedDLp = $t04157141635._2
12131213 let actions = if ((dLp != updatedDLp))
12141214 then dLpUpdateActions
12151215 else throwErr("nothing to refresh")
12161216 $Tuple2(actions, toString(updatedDLp))
12171217 }
12181218 else throw("Strict value is not equal to itself.")
12191219 }
12201220
12211221
12221222
12231223 @Callable(i)
12241224 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12251225 let poolConfig = gpc()
12261226 let amId = poolConfig[idxAmAsId]
12271227 let prId = poolConfig[idxPrAsId]
12281228 let lpId = poolConfig[idxLPAsId]
12291229 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12301230 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12311231 let D0 = getD(xp)
12321232 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12331233 let index = if ((outAssetId == amId))
12341234 then 0
12351235 else if ((outAssetId == prId))
12361236 then 1
12371237 else throw("invalid out asset id")
12381238 let newY = getYD(xp, index, D1)
12391239 let dy = (xp[index] - newY)
12401240 let totalGetRaw = max([0, toInt((dy - big1))])
1241- let $t04251842567 = takeFee(totalGetRaw)
1242- let totalGet = $t04251842567._1
1243- let feeAmount = $t04251842567._2
1241+ let $t04253542584 = takeFee(totalGetRaw)
1242+ let totalGet = $t04253542584._1
1243+ let feeAmount = $t04253542584._2
12441244 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12451245 }
12461246
12471247
12481248
12491249 @Callable(i)
12501250 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12511251 let poolConfig = gpc()
12521252 let amId = poolConfig[idxAmAsId]
12531253 let prId = poolConfig[idxPrAsId]
12541254 let lpId = poolConfig[idxLPAsId]
12551255 let amBalance = getAccBalance(amId)
12561256 let prBalance = getAccBalance(prId)
1257- let $t04291243027 = {
1257+ let $t04292943044 = {
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 = $t04291243027._1
1264- let feeAmount = $t04291243027._2
1263+ let totalGet = $t04292943044._1
1264+ let feeAmount = $t04292943044._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(pmtAmt))
12931293 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12941294 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
12951295 then {
1296- let $t04419544276 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1297- let refreshDLpActions = $t04419544276._1
1298- let updatedDLp = $t04419544276._2
1296+ let $t04421244293 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1297+ let refreshDLpActions = $t04421244293._1
1298+ let updatedDLp = $t04421244293._2
12991299 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13001300 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13011301 then (state ++ refreshDLpActions)
13021302 else throw("Strict value is not equal to itself.")
13031303 }
13041304 else throw("Strict value is not equal to itself.")
13051305 }
13061306 }
13071307
13081308
13091309
13101310 @Callable(i)
13111311 func unstakeAndGet (amount) = {
13121312 let checkPayments = if ((size(i.payments) != 0))
13131313 then throw("No pmnts expd")
13141314 else true
13151315 if ((checkPayments == checkPayments))
13161316 then {
13171317 let cfg = gpc()
13181318 let factoryCfg = gfc()
13191319 let lpAssetId = fromBase58String(cfg[idxLPAsId])
13201320 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13211321 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13221322 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13231323 if ((unstakeInv == unstakeInv))
13241324 then {
13251325 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13261326 let outAmAmt = r._1
13271327 let outPrAmt = r._2
13281328 let sts = parseIntValue(r._9)
13291329 let state = r._10
13301330 let v = if (if (igs())
13311331 then true
13321332 else (sts == PoolShutdown))
13331333 then throw(("Blocked: " + toString(sts)))
13341334 else true
13351335 if ((v == v))
13361336 then {
13371337 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13381338 if ((burnA == burnA))
13391339 then {
1340- let $t04533945420 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1341- let refreshDLpActions = $t04533945420._1
1342- let updatedDLp = $t04533945420._2
1340+ let $t04535645437 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1341+ let refreshDLpActions = $t04535645437._1
1342+ let updatedDLp = $t04535645437._2
13431343 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13441344 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13451345 then (state ++ refreshDLpActions)
13461346 else throw("Strict value is not equal to itself.")
13471347 }
13481348 else throw("Strict value is not equal to itself.")
13491349 }
13501350 else throw("Strict value is not equal to itself.")
13511351 }
13521352 else throw("Strict value is not equal to itself.")
13531353 }
13541354 else throw("Strict value is not equal to itself.")
13551355 }
13561356
13571357
13581358
13591359 @Callable(i)
13601360 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13611361 let isGetDisabled = if (igs())
13621362 then true
13631363 else (cfgPoolStatus == PoolShutdown)
13641364 let checks = [if (!(isGetDisabled))
13651365 then true
13661366 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13671367 then true
13681368 else throw("no payments are expected")]
13691369 if ((checks == checks))
13701370 then {
13711371 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13721372 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
13731373 if ((unstakeInv == unstakeInv))
13741374 then {
13751375 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
13761376 let outAmAmt = res._1
13771377 let outPrAmt = res._2
13781378 let state = res._10
13791379 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
13801380 then true
13811381 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
13821382 then true
13831383 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
13841384 if ((checkAmounts == checkAmounts))
13851385 then {
13861386 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
13871387 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13881388 then {
1389- let $t04666846749 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1390- let refreshDLpActions = $t04666846749._1
1391- let updatedDLp = $t04666846749._2
1389+ let $t04668546766 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1390+ let refreshDLpActions = $t04668546766._1
1391+ let updatedDLp = $t04668546766._2
13921392 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13931393 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13941394 then (state ++ refreshDLpActions)
13951395 else throw("Strict value is not equal to itself.")
13961396 }
13971397 else throw("Strict value is not equal to itself.")
13981398 }
13991399 else throw("Strict value is not equal to itself.")
14001400 }
14011401 else throw("Strict value is not equal to itself.")
14021402 }
14031403 else throw("Strict value is not equal to itself.")
14041404 }
14051405
14061406
14071407
14081408 @Callable(i)
14091409 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14101410 let isPoolOneTokenOperationsDisabled = {
14111411 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14121412 if ($isInstanceOf(@, "Boolean"))
14131413 then @
14141414 else throw(($getType(@) + " couldn't be cast to Boolean"))
14151415 }
14161416 let isGetDisabled = if (if (igs())
14171417 then true
14181418 else (cfgPoolStatus == PoolShutdown))
14191419 then true
14201420 else isPoolOneTokenOperationsDisabled
14211421 let checks = [if (if (!(isGetDisabled))
14221422 then true
14231423 else isManager(i))
14241424 then true
14251425 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14261426 then true
14271427 else throwErr("no payments are expected")]
14281428 if ((checks == checks))
14291429 then {
14301430 let cfg = gpc()
14311431 let factoryCfg = gfc()
14321432 let lpAssetId = fromBase58String(cfg[idxLPAsId])
14331433 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14341434 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14351435 if ((unstakeInv == unstakeInv))
14361436 then {
1437- let $t04768347871 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1438- let state = $t04768347871._1
1439- let totalAmount = $t04768347871._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
14401440 $Tuple2(state, totalAmount)
14411441 }
14421442 else throw("Strict value is not equal to itself.")
14431443 }
14441444 else throw("Strict value is not equal to itself.")
14451445 }
14461446
14471447
14481448
14491449 @Callable(i)
14501450 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
14511451 let poolConfig = gpc()
14521452 let amId = poolConfig[idxAmAsId]
14531453 let prId = poolConfig[idxPrAsId]
14541454 let lpId = poolConfig[idxLPAsId]
1455- let $t04813048233 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1456- let lpAmount = $t04813048233._1
1457- let state = $t04813048233._2
1458- let feeAmount = $t04813048233._3
1459- let bonus = $t04813048233._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
14601460 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14611461 }
14621462
14631463
14641464
14651465 @Callable(i)
14661466 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
14671467 let poolConfig = gpc()
14681468 let amId = poolConfig[idxAmAsId]
14691469 let prId = poolConfig[idxPrAsId]
14701470 let lpId = poolConfig[idxLPAsId]
1471- let $t04851248616 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1472- let lpAmount = $t04851248616._1
1473- let state = $t04851248616._2
1474- let feeAmount = $t04851248616._3
1475- let bonus = $t04851248616._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
14761476 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14771477 }
14781478
14791479
14801480
14811481 @Callable(i)
14821482 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
14831483 then throw("denied")
14841484 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
14851485
14861486
14871487
14881488 @Callable(i)
14891489 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
14901490 then pd
14911491 else [StringEntry(k, v)]
14921492
14931493
14941494
14951495 @Callable(i)
14961496 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
14971497 then pd
14981498 else [IntegerEntry(k, v)]
14991499
15001500
15011501
15021502 @Callable(i)
15031503 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15041504
15051505
15061506
15071507 @Callable(i)
15081508 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15091509
15101510
15111511
15121512 @Callable(i)
15131513 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15141514 let pr = calcPrices(amAmt, prAmt, lpAmt)
15151515 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15161516 }
15171517
15181518
15191519
15201520 @Callable(i)
15211521 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15221522
15231523
15241524
15251525 @Callable(i)
15261526 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15271527
15281528
15291529
15301530 @Callable(i)
15311531 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15321532
15331533
15341534
15351535 @Callable(i)
15361536 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, ""))
15371537
15381538
15391539
15401540 @Callable(i)
15411541 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15421542 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15431543 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15441544 }
15451545
15461546
15471547
15481548 @Callable(i)
15491549 func getFeeREADONLY () = $Tuple2(nil, fee)
15501550
15511551
15521552 @Verifier(tx)
15531553 func verify () = {
15541554 let targetPublicKey = match m() {
15551555 case pk: ByteVector =>
15561556 pk
15571557 case _: Unit =>
15581558 tx.senderPublicKey
15591559 case _ =>
15601560 throw("Match error")
15611561 }
15621562 match tx {
15631563 case order: Order =>
15641564 let matcherPub = mp()
15651565 let orderValid = validateMatcherOrderAllowed(order)
15661566 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15671567 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15681568 if (if (if (orderValid)
15691569 then senderValid
15701570 else false)
15711571 then matcherValid
15721572 else false)
15731573 then true
15741574 else toe(orderValid, senderValid, matcherValid)
15751575 case s: SetScriptTransaction =>
15761576 let newHash = blake2b256(value(s.script))
15771577 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15781578 let currentHash = scriptHash(this)
15791579 if (if ((allowedHash == newHash))
15801580 then (currentHash != newHash)
15811581 else false)
15821582 then true
15831583 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15841584 case _ =>
15851585 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
15861586 }
15871587 }
15881588

github/deemru/w8io/169f3d6 
190.37 ms