tx · it5oTgQEutT9ZGq9fAUmFPnZFUeVmsghAAVYhF4nDm9

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.03600000 Waves

2023.01.20 14:24 [2413226] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "it5oTgQEutT9ZGq9fAUmFPnZFUeVmsghAAVYhF4nDm9", "fee": 3600000, "feeAssetId": null, "timestamp": 1674213927655, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "3rZ1m2gsqJKbRt4woJmzkSUY6fitFxAvTYVw2mwEyimjk3MpvoumrWvHdpK77P3GXjQLUArx9EpUKf21m4gWBeLB" ], "script": "base64:BgKJKQgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJUHJpY2VBc0lkIg9pZHhG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VZlY3RvcgQCZ3AFAmdsBQJncAMJAAECBQJnbAIEVW5pdAgFAmhRD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yBAJnbAUCaFEDCQABAgUCZ2wCBU9yZGVyBAJlWgUCZ2wEAmhUCQECYVcABAJoVQkBAmVZAQUCZVoEAmFGCAUCaFUCXzEEAmFHCAUCaFUCXzIEAmFICQD0AwMIBQJlWglib2R5Qnl0ZXMJAJEDAggFAmVaBnByb29mcwAACAUCZVoPc2VuZGVyUHVibGljS2V5BAJhSQkA9AMDCAUCZVoJYm9keUJ5dGVzCQCRAwIIBQJlWgZwcm9vZnMAAQUCaFQDAwMFAmFGBQJhSAcFAmFJBwYJAQJhRQQFAmFGBQJhRwUCYUgFAmFJAwkAAQIFAmdsAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQCY0MFAmdsAwkA9AMDCAUCaFEJYm9keUJ5dGVzCQCRAwIIBQJoUQZwcm9vZnMAAAUCaFMGBAJoVgkA9gMBCQEFdmFsdWUBCAUCY0MGc2NyaXB0BAJoVwkA2wQBCQEFdmFsdWUBCQCdCAIFAmFRCQECYUMABAJoWAkA8QcBBQR0aGlzAwkAAAIFAmhXBQJoVgkBAiE9AgUCaFgFAmhWBwkA9AMDCAUCaFEJYm9keUJ5dGVzCQCRAwIIBQJoUQZwcm9vZnMAAAUCaFNP7bKc", "chainId": 84, "height": 2413226, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7BhDE2surYHbLxh547JLzvT966Zb4mQCRu7aQ8DRXpnp Next: 77BT9vVreeZ8VNhTRJ15Ck1Y3AHBpZa6CkVd3qZoaJkH Diff:
OldNewDifferences
166166 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
167167
168168
169-func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
169+func throwOrderError (orderValid,orderValidInfo,senderValid,matcherValid) = throw((((((((("order validation failed: orderValid=" + toString(orderValid)) + " (") + orderValidInfo) + ")") + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid)))
170170
171171
172172 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
231231
232232 let poolConfigParsed = parsePoolConfig(gpc())
233233
234-let $t078478076 = poolConfigParsed
234+let $t079648193 = poolConfigParsed
235235
236-let cfgPoolAddress = $t078478076._1
236+let cfgPoolAddress = $t079648193._1
237237
238-let cfgPoolStatus = $t078478076._2
238+let cfgPoolStatus = $t079648193._2
239239
240-let cfgLpAssetId = $t078478076._3
240+let cfgLpAssetId = $t079648193._3
241241
242-let cfgAmountAssetId = $t078478076._4
242+let cfgAmountAssetId = $t079648193._4
243243
244-let cfgPriceAssetId = $t078478076._5
244+let cfgPriceAssetId = $t079648193._5
245245
246-let cfgAmountAssetDecimals = $t078478076._6
246+let cfgAmountAssetDecimals = $t079648193._6
247247
248-let cfgPriceAssetDecimals = $t078478076._7
248+let cfgPriceAssetDecimals = $t079648193._7
249249
250-let cfgInAmountAssedId = $t078478076._8
250+let cfgInAmountAssedId = $t079648193._8
251251
252-let cfgInPriceAssetId = $t078478076._9
252+let cfgInPriceAssetId = $t079648193._9
253253
254254 func gfc () = split(strf(fca, fcfg()), SEP)
255255
370370 }
371371
372372 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
373- let $t01257312621 = {
373+ let $t01269012738 = {
374374 let $l = arr
375375 let $s = size($l)
376376 let $acc0 = $Tuple2(s, false)
384384
385385 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
386386 }
387- let d = $t01257312621._1
388- let found = $t01257312621._2
387+ let d = $t01269012738._1
388+ let found = $t01269012738._2
389389 if (found)
390390 then d
391391 else throw(("D calculation error, D = " + toString(d)))
521521 else calcLpAmt
522522 let amDiff = (inAmAmt - calcAmAssetPmt)
523523 let prDiff = (inPrAmt - calcPrAssetPmt)
524- let $t02046020805 = if (if (isOneAsset)
524+ let $t02057720922 = if (if (isOneAsset)
525525 then (pmtId == amIdStr)
526526 else false)
527527 then $Tuple2(pmtAmt, 0)
530530 else false)
531531 then $Tuple2(0, pmtAmt)
532532 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
533- let writeAmAmt = $t02046020805._1
534- let writePrAmt = $t02046020805._2
533+ let writeAmAmt = $t02057720922._1
534+ let writePrAmt = $t02057720922._2
535535 let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))]
536536 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
537537 }
550550 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
551551 let b = ((s + ((D * aPrecision) / ann)) - D)
552552 func calc (acc,cur) = {
553- let $t02200022020 = acc
554- let y = $t02200022020._1
555- let found = $t02200022020._2
553+ let $t02211722137 = acc
554+ let y = $t02211722137._1
555+ let found = $t02211722137._2
556556 if ((found != unit))
557557 then acc
558558 else {
565565 }
566566
567567 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
568- let $t02232722374 = {
568+ let $t02244422491 = {
569569 let $l = arr
570570 let $s = size($l)
571571 let $acc0 = $Tuple2(D, unit)
579579
580580 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
581581 }
582- let y = $t02232722374._1
583- let found = $t02232722374._2
582+ let y = $t02244422491._1
583+ let found = $t02244422491._2
584584 if ((found != unit))
585585 then y
586586 else throw(("Y calculation error, Y = " + toString(y)))
622622 func validateMatcherOrderAllowed (order) = {
623623 let amountAssetAmount = order.amount
624624 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
625- let $t02441824630 = if ((order.orderType == Buy))
625+ let $t02453524747 = if ((order.orderType == Buy))
626626 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
627627 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
628- let amountAssetBalanceDelta = $t02441824630._1
629- let priceAssetBalanceDelta = $t02441824630._2
628+ let amountAssetBalanceDelta = $t02453524747._1
629+ let priceAssetBalanceDelta = $t02453524747._2
630630 if (if (if (igs())
631631 then true
632632 else (cfgPoolStatus == PoolMatcherDis))
639639 then throw("Wr assets")
640640 else {
641641 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
642- let $t02496025060 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
643- let unusedActions = $t02496025060._1
644- let dLpNew = $t02496025060._2
642+ let $t02507725177 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
643+ let unusedActions = $t02507725177._1
644+ let dLpNew = $t02507725177._2
645645 let isOrderValid = (dLpNew >= dLp)
646- isOrderValid
646+ let info = makeString([toString(dLp), toString(dLpNew)], " ")
647+ $Tuple2(isOrderValid, info)
647648 }
648649 }
649650
694695 then {
695696 let amBalance = getAccBalance(amId)
696697 let prBalance = getAccBalance(prId)
697- let $t02732627788 = if ((txId == ""))
698+ let $t02752927991 = if ((txId == ""))
698699 then $Tuple2(amBalance, prBalance)
699700 else if ((pmtAssetId == amId))
700701 then if ((pmtAmtRaw > amBalance))
705706 then throw("invalid payment amount")
706707 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
707708 else throw("wrong pmtAssetId")
708- let amBalanceOld = $t02732627788._1
709- let prBalanceOld = $t02732627788._2
710- let $t02779427970 = if ((pmtAssetId == amId))
709+ let amBalanceOld = $t02752927991._1
710+ let prBalanceOld = $t02752927991._2
711+ let $t02799728173 = if ((pmtAssetId == amId))
711712 then $Tuple2(pmtAmtRaw, 0)
712713 else if ((pmtAssetId == prId))
713714 then $Tuple2(0, pmtAmtRaw)
714715 else throw("invalid payment")
715- let amAmountRaw = $t02779427970._1
716- let prAmountRaw = $t02779427970._2
717- let $t02797428228 = if (withTakeFee)
716+ let amAmountRaw = $t02799728173._1
717+ let prAmountRaw = $t02799728173._2
718+ let $t02817728431 = if (withTakeFee)
718719 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
719720 else $Tuple3(amAmountRaw, prAmountRaw, 0)
720- let amAmount = $t02797428228._1
721- let prAmount = $t02797428228._2
722- let feeAmount = $t02797428228._3
721+ let amAmount = $t02817728431._1
722+ let prAmount = $t02817728431._2
723+ let feeAmount = $t02817728431._3
723724 let amBalanceNew = (amBalanceOld + amAmount)
724725 let prBalanceNew = (prBalanceOld + prAmount)
725726 let D0 = getD([t1(amBalanceOld, cfgAmountAssetDecimals), t1(prBalanceOld, cfgPriceAssetDecimals)])
767768 else {
768769 let amBalance = getAccBalance(amId)
769770 let prBalance = getAccBalance(prId)
770- let $t03034030451 = {
771+ let $t03054330654 = {
771772 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
772773 if ($isInstanceOf(@, "(Int, Int)"))
773774 then @
774775 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
775776 }
776- if (($t03034030451 == $t03034030451))
777+ if (($t03054330654 == $t03054330654))
777778 then {
778- let feeAmount = $t03034030451._2
779- let totalGet = $t03034030451._1
779+ let feeAmount = $t03054330654._2
780+ let totalGet = $t03054330654._1
780781 let totalAmount = if (if ((minOutAmount > 0))
781782 then (minOutAmount > totalGet)
782783 else false)
783784 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
784785 else totalGet
785- let $t03064130948 = if ((outAssetId == amId))
786+ let $t03084431151 = if ((outAssetId == amId))
786787 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
787788 else if ((outAssetId == prId))
788789 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
789790 else throw("invalid out asset id")
790- let outAm = $t03064130948._1
791- let outPr = $t03064130948._2
792- let amBalanceNew = $t03064130948._3
793- let prBalanceNew = $t03064130948._4
791+ let outAm = $t03084431151._1
792+ let outPr = $t03084431151._2
793+ let amBalanceNew = $t03084431151._3
794+ let prBalanceNew = $t03084431151._4
794795 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
795796 let curPr = f1(curPrX18, scale8)
796797 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
805806 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
806807 if ((burn == burn))
807808 then {
808- let $t03173332083 = {
809+ let $t03193632286 = {
809810 let feeAmountForCalc = if ((this == feeCollectorAddress))
810811 then 0
811812 else feeAmount
816817 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
817818 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
818819 }
819- let amountAssetBalanceDelta = $t03173332083._1
820- let priceAssetBalanceDelta = $t03173332083._2
821- let $t03208632194 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
822- let refreshDLpActions = $t03208632194._1
823- let updatedDLp = $t03208632194._2
820+ let amountAssetBalanceDelta = $t03193632286._1
821+ let priceAssetBalanceDelta = $t03193632286._2
822+ let $t03228932397 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
823+ let refreshDLpActions = $t03228932397._1
824+ let updatedDLp = $t03228932397._2
824825 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
825826 if ((isUpdatedDLpValid == isUpdatedDLpValid))
826827 then $Tuple2((state ++ refreshDLpActions), totalAmount)
989990 else throw("Strict value is not equal to itself.")
990991 }
991992 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
992- let $t03634336485 = refreshDLpInternal(0, 0, 0)
993- let refreshDLpActions = $t03634336485._1
994- let updatedDLp = $t03634336485._2
993+ let $t03654636688 = refreshDLpInternal(0, 0, 0)
994+ let refreshDLpActions = $t03654636688._1
995+ let updatedDLp = $t03654636688._2
995996 let check = if ((updatedDLp >= currentDLp))
996997 then true
997998 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
10641065 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10651066 if ((currentDLp == currentDLp))
10661067 then {
1067- let $t03812638284 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1068- if (($t03812638284 == $t03812638284))
1068+ let $t03832938487 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1069+ if (($t03832938487 == $t03832938487))
10691070 then {
1070- let feeAmount = $t03812638284._3
1071- let state = $t03812638284._2
1072- let estimLP = $t03812638284._1
1071+ let feeAmount = $t03832938487._3
1072+ let state = $t03832938487._2
1073+ let estimLP = $t03832938487._1
10731074 let emitLpAmt = if (if ((minOutAmount > 0))
10741075 then (minOutAmount > estimLP)
10751076 else false)
10971098 let sendFeeToMatcher = if ((feeAmount > 0))
10981099 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10991100 else nil
1100- let $t03909939448 = if ((this == feeCollectorAddress))
1101+ let $t03930239651 = if ((this == feeCollectorAddress))
11011102 then $Tuple2(0, 0)
11021103 else {
11031104 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11071108 then $Tuple2(-(feeAmount), 0)
11081109 else $Tuple2(0, -(feeAmount))
11091110 }
1110- let amountAssetBalanceDelta = $t03909939448._1
1111- let priceAssetBalanceDelta = $t03909939448._2
1112- let $t03945139559 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1113- let refreshDLpActions = $t03945139559._1
1114- let updatedDLp = $t03945139559._2
1111+ let amountAssetBalanceDelta = $t03930239651._1
1112+ let priceAssetBalanceDelta = $t03930239651._2
1113+ let $t03965439762 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1114+ let refreshDLpActions = $t03965439762._1
1115+ let updatedDLp = $t03965439762._2
11151116 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11161117 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11171118 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11431144 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11441145 if ((currentDLp == currentDLp))
11451146 then {
1146- let $t04058940654 = refreshDLpInternal(0, 0, 0)
1147- let refreshDLpActions = $t04058940654._1
1148- let updatedDLp = $t04058940654._2
1147+ let $t04079240857 = refreshDLpInternal(0, 0, 0)
1148+ let refreshDLpActions = $t04079240857._1
1149+ let updatedDLp = $t04079240857._2
11491150 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11501151 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11511152 then (state ++ refreshDLpActions)
11701171 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11711172 if ((b == b))
11721173 then {
1173- let $t04182741909 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1174- let refreshDLpActions = $t04182741909._1
1175- let updatedDLp = $t04182741909._2
1174+ let $t04203042112 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1175+ let refreshDLpActions = $t04203042112._1
1176+ let updatedDLp = $t04203042112._2
11761177 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11771178 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11781179 then (state ++ refreshDLpActions)
12071208 else throwErr("exactly 1 payment are expected")]
12081209 if ((checks == checks))
12091210 then {
1210- let $t04252742682 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1211- let state = $t04252742682._1
1212- let totalAmount = $t04252742682._2
1211+ let $t04273042885 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1212+ let state = $t04273042885._1
1213+ let totalAmount = $t04273042885._2
12131214 $Tuple2(state, totalAmount)
12141215 }
12151216 else throw("Strict value is not equal to itself.")
12261227 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12271228 then {
12281229 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1229- let $t04320643270 = refreshDLpInternal(0, 0, 0)
1230- let dLpUpdateActions = $t04320643270._1
1231- let updatedDLp = $t04320643270._2
1230+ let $t04340943473 = refreshDLpInternal(0, 0, 0)
1231+ let dLpUpdateActions = $t04340943473._1
1232+ let updatedDLp = $t04340943473._2
12321233 let actions = if ((dLp != updatedDLp))
12331234 then dLpUpdateActions
12341235 else throwErr("nothing to refresh")
12561257 let newY = getYD(xp, index, D1)
12571258 let dy = (xp[index] - newY)
12581259 let totalGetRaw = max([0, toInt((dy - big1))])
1259- let $t04420044255 = takeFee(totalGetRaw, outFee)
1260- let totalGet = $t04420044255._1
1261- let feeAmount = $t04420044255._2
1260+ let $t04440344458 = takeFee(totalGetRaw, outFee)
1261+ let totalGet = $t04440344458._1
1262+ let feeAmount = $t04440344458._2
12621263 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12631264 }
12641265
12711272 let lpId = toBase58String(value(cfgLpAssetId))
12721273 let amBalance = getAccBalance(amId)
12731274 let prBalance = getAccBalance(prId)
1274- let $t04463044745 = {
1275+ let $t04483344948 = {
12751276 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12761277 if ($isInstanceOf(@, "(Int, Int)"))
12771278 then @
12781279 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12791280 }
1280- let totalGet = $t04463044745._1
1281- let feeAmount = $t04463044745._2
1281+ let totalGet = $t04483344948._1
1282+ let feeAmount = $t04483344948._2
12821283 let r = ego("", lpId, lpAssetAmount, this)
12831284 let outAmAmt = r._1
12841285 let outPrAmt = r._2
13121313 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13131314 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13141315 then {
1315- let $t04591145992 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1316- let refreshDLpActions = $t04591145992._1
1317- let updatedDLp = $t04591145992._2
1316+ let $t04611446195 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1317+ let refreshDLpActions = $t04611446195._1
1318+ let updatedDLp = $t04611446195._2
13181319 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13191320 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13201321 then (state ++ refreshDLpActions)
13591360 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13601361 if ((burnA == burnA))
13611362 then {
1362- let $t04701947100 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1363- let refreshDLpActions = $t04701947100._1
1364- let updatedDLp = $t04701947100._2
1363+ let $t04722247303 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1364+ let refreshDLpActions = $t04722247303._1
1365+ let updatedDLp = $t04722247303._2
13651366 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13661367 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13671368 then (state ++ refreshDLpActions)
14121413 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14131414 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14141415 then {
1415- let $t04835148432 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1416- let refreshDLpActions = $t04835148432._1
1417- let updatedDLp = $t04835148432._2
1416+ let $t04855448635 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1417+ let refreshDLpActions = $t04855448635._1
1418+ let updatedDLp = $t04855448635._2
14181419 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14191420 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14201421 then (state ++ refreshDLpActions)
14611462 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14621463 if ((unstakeInv == unstakeInv))
14631464 then {
1464- let $t04932749515 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1465- let state = $t04932749515._1
1466- let totalAmount = $t04932749515._2
1465+ let $t04953049718 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1466+ let state = $t04953049718._1
1467+ let totalAmount = $t04953049718._2
14671468 $Tuple2(state, totalAmount)
14681469 }
14691470 else throw("Strict value is not equal to itself.")
14751476
14761477 @Callable(i)
14771478 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
1478- let $t04964349746 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1479- let lpAmount = $t04964349746._1
1480- let state = $t04964349746._2
1481- let feeAmount = $t04964349746._3
1482- let bonus = $t04964349746._4
1479+ let $t04984649949 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1480+ let lpAmount = $t04984649949._1
1481+ let state = $t04984649949._2
1482+ let feeAmount = $t04984649949._3
1483+ let bonus = $t04984649949._4
14831484 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14841485 }
14851486
14871488
14881489 @Callable(i)
14891490 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
1490- let $t04989449998 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1491- let lpAmount = $t04989449998._1
1492- let state = $t04989449998._2
1493- let feeAmount = $t04989449998._3
1494- let bonus = $t04989449998._4
1491+ let $t05009750201 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1492+ let lpAmount = $t05009750201._1
1493+ let state = $t05009750201._2
1494+ let feeAmount = $t05009750201._3
1495+ let bonus = $t05009750201._4
14951496 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14961497 }
14971498
15761577 match tx {
15771578 case order: Order =>
15781579 let matcherPub = mp()
1579- let orderValid = validateMatcherOrderAllowed(order)
1580+ let $t05299353062 = validateMatcherOrderAllowed(order)
1581+ let orderValid = $t05299353062._1
1582+ let orderValidInfo = $t05299353062._2
15801583 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15811584 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15821585 if (if (if (orderValid)
15851588 then matcherValid
15861589 else false)
15871590 then true
1588- else toe(orderValid, senderValid, matcherValid)
1591+ else throwOrderError(orderValid, orderValidInfo, senderValid, matcherValid)
15891592 case s: SetScriptTransaction =>
15901593 if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
15911594 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let scale8 = 100000000
55
66 let scale8BigInt = toBigInt(100000000)
77
88 let scale18 = toBigInt(1000000000000000000)
99
1010 let zeroBigInt = toBigInt(0)
1111
1212 let big0 = toBigInt(0)
1313
1414 let big1 = toBigInt(1)
1515
1616 let big2 = toBigInt(2)
1717
1818 let big3 = toBigInt(3)
1919
2020 let big4 = toBigInt(4)
2121
2222 let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8)))
2323
2424 let wavesString = "WAVES"
2525
2626 let Amult = "100"
2727
2828 let Dconv = "1"
2929
3030 let SEP = "__"
3131
3232 let EMPTY = ""
3333
3434 let PoolActive = 1
3535
3636 let PoolPutDis = 2
3737
3838 let PoolMatcherDis = 3
3939
4040 let PoolShutdown = 4
4141
4242 let idxPoolAddress = 1
4343
4444 let idxPoolSt = 2
4545
4646 let idxLPAsId = 3
4747
4848 let idxAmAsId = 4
4949
5050 let idxPrAsId = 5
5151
5252 let idxAmtAsDcm = 6
5353
5454 let idxPriceAsDcm = 7
5555
5656 let idxIAmtAsId = 8
5757
5858 let idxIPriceAsId = 9
5959
6060 let idxFactStakCntr = 1
6161
6262 let idxFactoryRestCntr = 6
6363
6464 let idxFactSlippCntr = 7
6565
6666 let idxFactGwxRewCntr = 10
6767
6868 let feeDefault = fraction(10, scale8, 10000)
6969
7070 func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
7171
7272
7373 func t1BigInt (origVal,origScaleMult) = fraction(origVal, scale18, origScaleMult)
7474
7575
7676 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
7777
7878
7979 func fromX18Round (val,resultScaleMult,round) = toInt(fraction(val, toBigInt(resultScaleMult), scale18, round))
8080
8181
8282 func t2 (origVal,origScaleMult) = fraction(origVal, scale18, toBigInt(origScaleMult))
8383
8484
8585 func f2 (val,resultScaleMult) = fraction(val, toBigInt(resultScaleMult), scale18)
8686
8787
8888 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
8989
9090
9191 func abs (val) = if ((zeroBigInt > val))
9292 then -(val)
9393 else val
9494
9595
9696 func absBigInt (val) = if ((zeroBigInt > val))
9797 then -(val)
9898 else val
9999
100100
101101 func fc () = "%s__factoryContract"
102102
103103
104104 func mpk () = "%s__managerPublicKey"
105105
106106
107107 func pmpk () = "%s__pendingManagerPublicKey"
108108
109109
110110 func pl () = "%s%s__price__last"
111111
112112
113113 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
114114
115115
116116 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
117117
118118
119119 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
120120
121121
122122 func aa () = "%s__amountAsset"
123123
124124
125125 func pa () = "%s__priceAsset"
126126
127127
128128 func amp () = "%s__amp"
129129
130130
131131 func ada () = "%s__addonAddr"
132132
133133
134134 let keyFee = "%s__fee"
135135
136136 let fee = valueOrElse(getInteger(this, keyFee), feeDefault)
137137
138138 let keyDLp = makeString(["%s", "dLp"], SEP)
139139
140140 let keyDLpRefreshedHeight = makeString(["%s", "dLpRefreshedHeight"], SEP)
141141
142142 let keyDLpRefreshDelay = makeString(["%s", "refreshDLpDelay"], SEP)
143143
144144 let dLpRefreshDelayDefault = 1
145145
146146 let dLpRefreshDelay = valueOrElse(getInteger(this, keyDLpRefreshDelay), dLpRefreshDelayDefault)
147147
148148 func fcfg () = "%s__factoryConfig"
149149
150150
151151 func mtpk () = "%s%s__matcher__publicKey"
152152
153153
154154 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
155155
156156
157157 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
158158
159159
160160 func aps () = "%s__shutdown"
161161
162162
163163 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
164164
165165
166166 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
167167
168168
169-func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
169+func throwOrderError (orderValid,orderValidInfo,senderValid,matcherValid) = throw((((((((("order validation failed: orderValid=" + toString(orderValid)) + " (") + orderValidInfo) + ")") + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid)))
170170
171171
172172 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
173173
174174
175175 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
176176
177177
178178 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
179179
180180
181181 func fmtErr (msg) = makeString(["lp_stable.ride:", msg], " ")
182182
183183
184184 let fca = addressFromStringValue(strf(this, fc()))
185185
186186 let inFee = {
187187 let @ = invoke(fca, "getInFeeREADONLY", [toString(this)], nil)
188188 if ($isInstanceOf(@, "Int"))
189189 then @
190190 else throw(($getType(@) + " couldn't be cast to Int"))
191191 }
192192
193193 let outFee = {
194194 let @ = invoke(fca, "getOutFeeREADONLY", [toString(this)], nil)
195195 if ($isInstanceOf(@, "Int"))
196196 then @
197197 else throw(($getType(@) + " couldn't be cast to Int"))
198198 }
199199
200200 let A = strf(this, amp())
201201
202202 func igs () = valueOrElse(getBoolean(fca, aps()), false)
203203
204204
205205 func mp () = fromBase58String(strf(fca, mtpk()))
206206
207207
208208 let feeCollectorAddress = addressFromStringValue(strf(fca, keyFeeCollectorAddress()))
209209
210210 func gpc () = {
211211 let amtAs = strf(this, aa())
212212 let priceAs = strf(this, pa())
213213 let iPriceAs = intf(fca, mba(priceAs))
214214 let iAmtAs = intf(fca, mba(amtAs))
215215 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
216216 }
217217
218218
219219 func parseAssetId (input) = if ((input == wavesString))
220220 then unit
221221 else fromBase58String(input)
222222
223223
224224 func assetIdToString (input) = if ((input == unit))
225225 then wavesString
226226 else toBase58String(value(input))
227227
228228
229229 func parsePoolConfig (poolConfig) = $Tuple9(addressFromStringValue(poolConfig[idxPoolAddress]), parseIntValue(poolConfig[idxPoolSt]), fromBase58String(poolConfig[idxLPAsId]), parseAssetId(poolConfig[idxAmAsId]), parseAssetId(poolConfig[idxPrAsId]), parseIntValue(poolConfig[idxAmtAsDcm]), parseIntValue(poolConfig[idxPriceAsDcm]), fromBase58String(poolConfig[idxIAmtAsId]), fromBase58String(poolConfig[idxIPriceAsId]))
230230
231231
232232 let poolConfigParsed = parsePoolConfig(gpc())
233233
234-let $t078478076 = poolConfigParsed
234+let $t079648193 = poolConfigParsed
235235
236-let cfgPoolAddress = $t078478076._1
236+let cfgPoolAddress = $t079648193._1
237237
238-let cfgPoolStatus = $t078478076._2
238+let cfgPoolStatus = $t079648193._2
239239
240-let cfgLpAssetId = $t078478076._3
240+let cfgLpAssetId = $t079648193._3
241241
242-let cfgAmountAssetId = $t078478076._4
242+let cfgAmountAssetId = $t079648193._4
243243
244-let cfgPriceAssetId = $t078478076._5
244+let cfgPriceAssetId = $t079648193._5
245245
246-let cfgAmountAssetDecimals = $t078478076._6
246+let cfgAmountAssetDecimals = $t079648193._6
247247
248-let cfgPriceAssetDecimals = $t078478076._7
248+let cfgPriceAssetDecimals = $t079648193._7
249249
250-let cfgInAmountAssedId = $t078478076._8
250+let cfgInAmountAssedId = $t079648193._8
251251
252-let cfgInPriceAssetId = $t078478076._9
252+let cfgInPriceAssetId = $t079648193._9
253253
254254 func gfc () = split(strf(fca, fcfg()), SEP)
255255
256256
257257 let factoryConfig = gfc()
258258
259259 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
260260
261261 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
262262
263263 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
264264
265265 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
266266
267267 func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slipByUser,slippageReal,txHeight,txTimestamp,slipageAmAmt,slipagePrAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slipByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP)
268268
269269
270270 func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP)
271271
272272
273273 func getAccBalance (assetId) = if ((assetId == "WAVES"))
274274 then wavesBalance(this).available
275275 else assetBalance(this, fromBase58String(assetId))
276276
277277
278278 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
279279
280280
281281 func cpbir (prAmtX18,amAmtX18,round) = fraction(prAmtX18, scale18, amAmtX18, round)
282282
283283
284284 func vad (A1,A2,slippage) = {
285285 let diff = fraction((A1 - A2), scale8BigInt, A2)
286286 let pass = ((slippage - abs(diff)) > zeroBigInt)
287287 if (!(pass))
288288 then throw(("Big slpg: " + toString(diff)))
289289 else $Tuple2(pass, min([A1, A2]))
290290 }
291291
292292
293293 func vd (D1,D0,slpg) = {
294294 let diff = fraction(D0, scale8BigInt, D1)
295295 let fail = (slpg > diff)
296296 if (if (fail)
297297 then true
298298 else (D0 > D1))
299299 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
300300 else fail
301301 }
302302
303303
304304 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
305305 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
306306 let prAsAmtX18 = t1(prAmt, prAssetDcm)
307307 cpbi(prAsAmtX18, amtAsAmtX18)
308308 }
309309
310310
311311 func calcPrices (amAmt,prAmt,lpAmt) = {
312312 let amtAsDcm = cfgAmountAssetDecimals
313313 let prAsDcm = cfgPriceAssetDecimals
314314 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
315315 let amAmtX18 = t1(amAmt, amtAsDcm)
316316 let prAmtX18 = t1(prAmt, prAsDcm)
317317 let lpAmtX18 = t1(lpAmt, scale8)
318318 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
319319 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
320320 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
321321 }
322322
323323
324324 func calculatePrices (amAmt,prAmt,lpAmt) = {
325325 let p = calcPrices(amAmt, prAmt, lpAmt)
326326 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
327327 }
328328
329329
330330 func takeFee (amount,fee) = {
331331 let feeAmount = if ((fee == 0))
332332 then 0
333333 else fraction(amount, fee, scale8)
334334 $Tuple2((amount - feeAmount), feeAmount)
335335 }
336336
337337
338338 func getD (xp) = {
339339 let xp0 = xp[0]
340340 let xp1 = xp[1]
341341 let s = (xp0 + xp1)
342342 if ((s == big0))
343343 then big0
344344 else {
345345 let a = parseIntValue(A)
346346 let ann = (a * 2)
347347 let p = fraction(xp0, xp1, big1)
348348 let xp0_xp1_n_n = fraction(p, big4, big1)
349349 let ann_s = fraction(toBigInt(ann), s, big1)
350350 let ann_1 = toBigInt((ann - 1))
351351 func calcDNext (d) = {
352352 let dd = fraction(d, d, big1)
353353 let ddd = fraction(dd, d, big1)
354354 let dp = fraction(ddd, big1, xp0_xp1_n_n)
355355 fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)))
356356 }
357357
358358 func calc (acc,i) = if (acc._2)
359359 then acc
360360 else {
361361 let d = acc._1
362362 let dNext = calcDNext(d)
363363 let dDiffRaw = (dNext - value(d))
364364 let dDiff = if ((big0 > dDiffRaw))
365365 then -(dDiffRaw)
366366 else dDiffRaw
367367 if ((big1 >= dDiff))
368368 then $Tuple2(dNext, true)
369369 else $Tuple2(dNext, false)
370370 }
371371
372372 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
373- let $t01257312621 = {
373+ let $t01269012738 = {
374374 let $l = arr
375375 let $s = size($l)
376376 let $acc0 = $Tuple2(s, false)
377377 func $f0_1 ($a,$i) = if (($i >= $s))
378378 then $a
379379 else calc($a, $l[$i])
380380
381381 func $f0_2 ($a,$i) = if (($i >= $s))
382382 then $a
383383 else throw("List size exceeds 15")
384384
385385 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
386386 }
387- let d = $t01257312621._1
388- let found = $t01257312621._2
387+ let d = $t01269012738._1
388+ let found = $t01269012738._2
389389 if (found)
390390 then d
391391 else throw(("D calculation error, D = " + toString(d)))
392392 }
393393 }
394394
395395
396396 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
397397 let lpId = cfgLpAssetId
398398 let amId = toBase58String(value(cfgAmountAssetId))
399399 let prId = toBase58String(value(cfgPriceAssetId))
400400 let amDcm = cfgAmountAssetDecimals
401401 let prDcm = cfgPriceAssetDecimals
402402 let sts = toString(cfgPoolStatus)
403403 let lpEmiss = valueOrErrorMessage(assetInfo(lpId), "Wrong LP id").quantity
404404 if ((toBase58String(lpId) != pmtAssetId))
405405 then throw("Wrong pmt asset")
406406 else {
407407 let amBalance = getAccBalance(amId)
408408 let amBalanceX18 = t1(amBalance, amDcm)
409409 let prBalance = getAccBalance(prId)
410410 let prBalanceX18 = t1(prBalance, prDcm)
411411 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
412412 let curPrice = f1(curPriceX18, scale8)
413413 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
414414 let lpEmissX18 = t1(lpEmiss, scale8)
415415 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
416416 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
417417 let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
418418 let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
419419 let state = if ((txId58 == ""))
420420 then nil
421421 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
422422 then unit
423423 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
424424 then unit
425425 else fromBase58String(prId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)]
426426 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
427427 }
428428 }
429429
430430
431431 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
432432 let lpId = cfgLpAssetId
433433 let amIdStr = toBase58String(value(cfgAmountAssetId))
434434 let prIdStr = toBase58String(value(cfgPriceAssetId))
435435 let inAmIdStr = cfgInAmountAssedId
436436 let inPrIdStr = cfgInPriceAssetId
437437 let amtDcm = cfgAmountAssetDecimals
438438 let priceDcm = cfgPriceAssetDecimals
439439 let sts = toString(cfgPoolStatus)
440440 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
441441 let amBalance = if (isEval)
442442 then getAccBalance(amIdStr)
443443 else if (if (isOneAsset)
444444 then (pmtId == amIdStr)
445445 else false)
446446 then (getAccBalance(amIdStr) - pmtAmt)
447447 else if (isOneAsset)
448448 then getAccBalance(amIdStr)
449449 else (getAccBalance(amIdStr) - inAmAmt)
450450 let prBalance = if (isEval)
451451 then getAccBalance(prIdStr)
452452 else if (if (isOneAsset)
453453 then (pmtId == prIdStr)
454454 else false)
455455 then (getAccBalance(prIdStr) - pmtAmt)
456456 else if (isOneAsset)
457457 then getAccBalance(prIdStr)
458458 else (getAccBalance(prIdStr) - inPrAmt)
459459 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
460460 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
461461 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
462462 let amBalanceX18 = t1(amBalance, amtDcm)
463463 let prBalanceX18 = t1(prBalance, priceDcm)
464464 let D0 = getD([amBalanceX18, prBalanceX18])
465465 let r = if ((lpEm == 0))
466466 then {
467467 let D1 = getD([(amBalanceX18 + inAmAssetAmtX18), (prBalanceX18 + inPrAssetAmtX18)])
468468 let checkD = if ((D1 > D0))
469469 then true
470470 else throw("D1 should be greater than D0")
471471 if ((checkD == checkD))
472472 then {
473473 let curPriceX18 = zeroBigInt
474474 let slippageX18 = zeroBigInt
475475 let lpAmtX18 = D1
476476 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
477477 }
478478 else throw("Strict value is not equal to itself.")
479479 }
480480 else {
481481 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
482482 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
483483 let slippageX18 = t1(slippage, scale8)
484484 if (if (if (validateSlippage)
485485 then (curPriceX18 != zeroBigInt)
486486 else false)
487487 then (slippageRealX18 > slippageX18)
488488 else false)
489489 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
490490 else {
491491 let lpEmissionX18 = t1(lpEm, scale8)
492492 let prViaAmX18 = fraction(inAmAssetAmtX18, cpbir(prBalanceX18, amBalanceX18, CEILING), scale18, CEILING)
493493 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, cpbir(prBalanceX18, amBalanceX18, FLOOR), CEILING)
494494 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
495495 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
496496 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
497497 let expAmtAssetAmtX18 = expectedAmts._1
498498 let expPriceAssetAmtX18 = expectedAmts._2
499499 let D1 = getD([(amBalanceX18 + expAmtAssetAmtX18), (prBalanceX18 + expPriceAssetAmtX18)])
500500 let checkD = if ((D1 > D0))
501501 then true
502502 else throw("D1 should be greater than D0")
503503 if ((checkD == checkD))
504504 then {
505505 let lpAmtX18 = fraction(lpEmissionX18, (D1 - D0), D0)
506506 $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
507507 }
508508 else throw("Strict value is not equal to itself.")
509509 }
510510 }
511511 let calcLpAmt = r._1
512512 let calcAmAssetPmt = r._2
513513 let calcPrAssetPmt = r._3
514514 let curPrice = f1(r._4, scale8)
515515 let slippageCalc = f1(r._5, scale8)
516516 if ((0 >= calcLpAmt))
517517 then throw("LP <= 0")
518518 else {
519519 let emitLpAmt = if (!(emitLp))
520520 then 0
521521 else calcLpAmt
522522 let amDiff = (inAmAmt - calcAmAssetPmt)
523523 let prDiff = (inPrAmt - calcPrAssetPmt)
524- let $t02046020805 = if (if (isOneAsset)
524+ let $t02057720922 = if (if (isOneAsset)
525525 then (pmtId == amIdStr)
526526 else false)
527527 then $Tuple2(pmtAmt, 0)
528528 else if (if (isOneAsset)
529529 then (pmtId == prIdStr)
530530 else false)
531531 then $Tuple2(0, pmtAmt)
532532 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
533- let writeAmAmt = $t02046020805._1
534- let writePrAmt = $t02046020805._2
533+ let writeAmAmt = $t02057720922._1
534+ let writePrAmt = $t02057720922._2
535535 let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))]
536536 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
537537 }
538538 }
539539
540540
541541 func getYD (xp,i,D) = {
542542 let n = big2
543543 let x = xp[if ((i == 0))
544544 then 1
545545 else 0]
546546 let aPrecision = parseBigIntValue(Amult)
547547 let a = (parseBigIntValue(A) * aPrecision)
548548 let s = x
549549 let ann = (a * n)
550550 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
551551 let b = ((s + ((D * aPrecision) / ann)) - D)
552552 func calc (acc,cur) = {
553- let $t02200022020 = acc
554- let y = $t02200022020._1
555- let found = $t02200022020._2
553+ let $t02211722137 = acc
554+ let y = $t02211722137._1
555+ let found = $t02211722137._2
556556 if ((found != unit))
557557 then acc
558558 else {
559559 let yNext = (((y * y) + c) / ((big2 * y) + b))
560560 let yDiff = absBigInt((yNext - value(y)))
561561 if ((big1 >= yDiff))
562562 then $Tuple2(yNext, cur)
563563 else $Tuple2(yNext, unit)
564564 }
565565 }
566566
567567 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
568- let $t02232722374 = {
568+ let $t02244422491 = {
569569 let $l = arr
570570 let $s = size($l)
571571 let $acc0 = $Tuple2(D, unit)
572572 func $f0_1 ($a,$i) = if (($i >= $s))
573573 then $a
574574 else calc($a, $l[$i])
575575
576576 func $f0_2 ($a,$i) = if (($i >= $s))
577577 then $a
578578 else throw("List size exceeds 15")
579579
580580 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
581581 }
582- let y = $t02232722374._1
583- let found = $t02232722374._2
582+ let y = $t02244422491._1
583+ let found = $t02244422491._2
584584 if ((found != unit))
585585 then y
586586 else throw(("Y calculation error, Y = " + toString(y)))
587587 }
588588
589589
590590 func calcDLp (amountBalance,priceBalance,lpEmission) = {
591591 let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), scale18, lpEmission)
592592 if ((lpEmission == big0))
593593 then big0
594594 else updatedDLp
595595 }
596596
597597
598598 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
599599 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
600600 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
601601 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
602602 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
603603 currentDLp
604604 }
605605
606606
607607 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
608608 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
609609 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
610610 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
611611 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
612612 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
613613 $Tuple2(actions, updatedDLp)
614614 }
615615
616616
617617 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
618618 then true
619619 else throwErr("updated DLp lower than current DLp")
620620
621621
622622 func validateMatcherOrderAllowed (order) = {
623623 let amountAssetAmount = order.amount
624624 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
625- let $t02441824630 = if ((order.orderType == Buy))
625+ let $t02453524747 = if ((order.orderType == Buy))
626626 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
627627 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
628- let amountAssetBalanceDelta = $t02441824630._1
629- let priceAssetBalanceDelta = $t02441824630._2
628+ let amountAssetBalanceDelta = $t02453524747._1
629+ let priceAssetBalanceDelta = $t02453524747._2
630630 if (if (if (igs())
631631 then true
632632 else (cfgPoolStatus == PoolMatcherDis))
633633 then true
634634 else (cfgPoolStatus == PoolShutdown))
635635 then throw("Admin blocked")
636636 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
637637 then true
638638 else (order.assetPair.priceAsset != cfgPriceAssetId))
639639 then throw("Wr assets")
640640 else {
641641 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
642- let $t02496025060 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
643- let unusedActions = $t02496025060._1
644- let dLpNew = $t02496025060._2
642+ let $t02507725177 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
643+ let unusedActions = $t02507725177._1
644+ let dLpNew = $t02507725177._2
645645 let isOrderValid = (dLpNew >= dLp)
646- isOrderValid
646+ let info = makeString([toString(dLp), toString(dLpNew)], " ")
647+ $Tuple2(isOrderValid, info)
647648 }
648649 }
649650
650651
651652 func cg (i) = if ((size(i.payments) != 1))
652653 then throw("1 pmnt exp")
653654 else {
654655 let pmt = value(i.payments[0])
655656 let pmtAssetId = value(pmt.assetId)
656657 let pmtAmt = pmt.amount
657658 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
658659 let outAmAmt = r._1
659660 let outPrAmt = r._2
660661 let sts = parseIntValue(r._9)
661662 let state = r._10
662663 if (if (igs())
663664 then true
664665 else (sts == PoolShutdown))
665666 then throw(("Admin blocked: " + toString(sts)))
666667 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
667668 }
668669
669670
670671 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
671672 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
672673 let sts = parseIntValue(r._8)
673674 if (if (if (igs())
674675 then true
675676 else (sts == PoolPutDis))
676677 then true
677678 else (sts == PoolShutdown))
678679 then throw(("Blocked:" + toString(sts)))
679680 else r
680681 }
681682
682683
683684 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
684685 let amId = toBase58String(value(cfgAmountAssetId))
685686 let prId = toBase58String(value(cfgPriceAssetId))
686687 let lpId = cfgLpAssetId
687688 let amtDcm = cfgAmountAssetDecimals
688689 let priceDcm = cfgPriceAssetDecimals
689690 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(lpId), "invalid lp asset").quantity)
690691 let chechEmission = if ((lpAssetEmission > big0))
691692 then true
692693 else throw("initial deposit requires all coins")
693694 if ((chechEmission == chechEmission))
694695 then {
695696 let amBalance = getAccBalance(amId)
696697 let prBalance = getAccBalance(prId)
697- let $t02732627788 = if ((txId == ""))
698+ let $t02752927991 = if ((txId == ""))
698699 then $Tuple2(amBalance, prBalance)
699700 else if ((pmtAssetId == amId))
700701 then if ((pmtAmtRaw > amBalance))
701702 then throw("invalid payment amount")
702703 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
703704 else if ((pmtAssetId == prId))
704705 then if ((pmtAmtRaw > prBalance))
705706 then throw("invalid payment amount")
706707 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
707708 else throw("wrong pmtAssetId")
708- let amBalanceOld = $t02732627788._1
709- let prBalanceOld = $t02732627788._2
710- let $t02779427970 = if ((pmtAssetId == amId))
709+ let amBalanceOld = $t02752927991._1
710+ let prBalanceOld = $t02752927991._2
711+ let $t02799728173 = if ((pmtAssetId == amId))
711712 then $Tuple2(pmtAmtRaw, 0)
712713 else if ((pmtAssetId == prId))
713714 then $Tuple2(0, pmtAmtRaw)
714715 else throw("invalid payment")
715- let amAmountRaw = $t02779427970._1
716- let prAmountRaw = $t02779427970._2
717- let $t02797428228 = if (withTakeFee)
716+ let amAmountRaw = $t02799728173._1
717+ let prAmountRaw = $t02799728173._2
718+ let $t02817728431 = if (withTakeFee)
718719 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
719720 else $Tuple3(amAmountRaw, prAmountRaw, 0)
720- let amAmount = $t02797428228._1
721- let prAmount = $t02797428228._2
722- let feeAmount = $t02797428228._3
721+ let amAmount = $t02817728431._1
722+ let prAmount = $t02817728431._2
723+ let feeAmount = $t02817728431._3
723724 let amBalanceNew = (amBalanceOld + amAmount)
724725 let prBalanceNew = (prBalanceOld + prAmount)
725726 let D0 = getD([t1(amBalanceOld, cfgAmountAssetDecimals), t1(prBalanceOld, cfgPriceAssetDecimals)])
726727 let D1 = getD([t1(amBalanceNew, cfgAmountAssetDecimals), t1(prBalanceNew, cfgPriceAssetDecimals)])
727728 let checkD = if ((D1 > D0))
728729 then true
729730 else throw()
730731 if ((checkD == checkD))
731732 then {
732733 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
733734 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
734735 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))]
735736 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
736737 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
737738 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
738739 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
739740 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
740741 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
741742 }
742743 else throw("Strict value is not equal to itself.")
743744 }
744745 else throw("Strict value is not equal to itself.")
745746 }
746747
747748
748749 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
749750 let lpId = toBase58String(value(cfgLpAssetId))
750751 let amId = toBase58String(value(cfgAmountAssetId))
751752 let prId = toBase58String(value(cfgPriceAssetId))
752753 let amDecimals = cfgAmountAssetDecimals
753754 let prDecimals = cfgPriceAssetDecimals
754755 let poolStatus = cfgPoolStatus
755756 let userAddress = if ((caller == restContract))
756757 then originCaller
757758 else caller
758759 let pmt = value(payments[0])
759760 let pmtAssetId = value(pmt.assetId)
760761 let pmtAmt = pmt.amount
761762 let currentDLp = calcCurrentDLp(big0, big0, big0)
762763 if ((currentDLp == currentDLp))
763764 then {
764765 let txId58 = toBase58String(transactionId)
765766 if ((lpId != toBase58String(pmtAssetId)))
766767 then throw("Wrong LP")
767768 else {
768769 let amBalance = getAccBalance(amId)
769770 let prBalance = getAccBalance(prId)
770- let $t03034030451 = {
771+ let $t03054330654 = {
771772 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
772773 if ($isInstanceOf(@, "(Int, Int)"))
773774 then @
774775 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
775776 }
776- if (($t03034030451 == $t03034030451))
777+ if (($t03054330654 == $t03054330654))
777778 then {
778- let feeAmount = $t03034030451._2
779- let totalGet = $t03034030451._1
779+ let feeAmount = $t03054330654._2
780+ let totalGet = $t03054330654._1
780781 let totalAmount = if (if ((minOutAmount > 0))
781782 then (minOutAmount > totalGet)
782783 else false)
783784 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
784785 else totalGet
785- let $t03064130948 = if ((outAssetId == amId))
786+ let $t03084431151 = if ((outAssetId == amId))
786787 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
787788 else if ((outAssetId == prId))
788789 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
789790 else throw("invalid out asset id")
790- let outAm = $t03064130948._1
791- let outPr = $t03064130948._2
792- let amBalanceNew = $t03064130948._3
793- let prBalanceNew = $t03064130948._4
791+ let outAm = $t03084431151._1
792+ let outPr = $t03084431151._2
793+ let amBalanceNew = $t03084431151._3
794+ let prBalanceNew = $t03084431151._4
794795 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
795796 let curPr = f1(curPrX18, scale8)
796797 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
797798 then unit
798799 else fromBase58String(outAssetId)
799800 let sendFeeToMatcher = if ((feeAmount > 0))
800801 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
801802 else nil
802803 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)
803804 if ((state == state))
804805 then {
805806 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
806807 if ((burn == burn))
807808 then {
808- let $t03173332083 = {
809+ let $t03193632286 = {
809810 let feeAmountForCalc = if ((this == feeCollectorAddress))
810811 then 0
811812 else feeAmount
812813 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
813814 then true
814815 else false
815816 if (outInAmountAsset)
816817 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
817818 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
818819 }
819- let amountAssetBalanceDelta = $t03173332083._1
820- let priceAssetBalanceDelta = $t03173332083._2
821- let $t03208632194 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
822- let refreshDLpActions = $t03208632194._1
823- let updatedDLp = $t03208632194._2
820+ let amountAssetBalanceDelta = $t03193632286._1
821+ let priceAssetBalanceDelta = $t03193632286._2
822+ let $t03228932397 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
823+ let refreshDLpActions = $t03228932397._1
824+ let updatedDLp = $t03228932397._2
824825 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
825826 if ((isUpdatedDLpValid == isUpdatedDLpValid))
826827 then $Tuple2((state ++ refreshDLpActions), totalAmount)
827828 else throw("Strict value is not equal to itself.")
828829 }
829830 else throw("Strict value is not equal to itself.")
830831 }
831832 else throw("Strict value is not equal to itself.")
832833 }
833834 else throw("Strict value is not equal to itself.")
834835 }
835836 }
836837 else throw("Strict value is not equal to itself.")
837838 }
838839
839840
840841 func m () = match getString(mpk()) {
841842 case s: String =>
842843 fromBase58String(s)
843844 case _: Unit =>
844845 unit
845846 case _ =>
846847 throw("Match error")
847848 }
848849
849850
850851 func pm () = match getString(pmpk()) {
851852 case s: String =>
852853 fromBase58String(s)
853854 case _: Unit =>
854855 unit
855856 case _ =>
856857 throw("Match error")
857858 }
858859
859860
860861 let pd = throw("Permission denied")
861862
862863 func isManager (i) = match m() {
863864 case pk: ByteVector =>
864865 (i.callerPublicKey == pk)
865866 case _: Unit =>
866867 (i.caller == this)
867868 case _ =>
868869 throw("Match error")
869870 }
870871
871872
872873 func mm (i) = match m() {
873874 case pk: ByteVector =>
874875 if ((i.callerPublicKey == pk))
875876 then true
876877 else pd
877878 case _: Unit =>
878879 if ((i.caller == this))
879880 then true
880881 else pd
881882 case _ =>
882883 throw("Match error")
883884 }
884885
885886
886887 @Callable(i)
887888 func constructor (fc) = {
888889 let c = mm(i)
889890 if ((c == c))
890891 then [StringEntry(fc(), fc)]
891892 else throw("Strict value is not equal to itself.")
892893 }
893894
894895
895896
896897 @Callable(i)
897898 func setManager (pendingManagerPublicKey) = {
898899 let c = mm(i)
899900 if ((c == c))
900901 then {
901902 let cm = fromBase58String(pendingManagerPublicKey)
902903 if ((cm == cm))
903904 then [StringEntry(pmpk(), pendingManagerPublicKey)]
904905 else throw("Strict value is not equal to itself.")
905906 }
906907 else throw("Strict value is not equal to itself.")
907908 }
908909
909910
910911
911912 @Callable(i)
912913 func confirmManager () = {
913914 let p = pm()
914915 let hpm = if (isDefined(p))
915916 then true
916917 else throw("No pending manager")
917918 if ((hpm == hpm))
918919 then {
919920 let cpm = if ((i.callerPublicKey == value(p)))
920921 then true
921922 else throw("You are not pending manager")
922923 if ((cpm == cpm))
923924 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
924925 else throw("Strict value is not equal to itself.")
925926 }
926927 else throw("Strict value is not equal to itself.")
927928 }
928929
929930
930931
931932 @Callable(i)
932933 func put (slip,autoStake) = {
933934 let factCfg = gfc()
934935 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
935936 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
936937 if ((0 > slip))
937938 then throw("Wrong slippage")
938939 else if ((size(i.payments) != 2))
939940 then throw("2 pmnts expd")
940941 else {
941942 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
942943 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
943944 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
944945 if ((amountAssetBalance == amountAssetBalance))
945946 then {
946947 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
947948 if ((priceAssetBalance == priceAssetBalance))
948949 then {
949950 let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
950951 if ((lpAssetEmission == lpAssetEmission))
951952 then {
952953 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
953954 if ((currentDLp == currentDLp))
954955 then {
955956 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, "")
956957 let emitLpAmt = e._2
957958 let lpAssetId = e._7
958959 let state = e._9
959960 let amDiff = e._10
960961 let prDiff = e._11
961962 let amId = e._12
962963 let prId = e._13
963964 let r = invoke(fca, "emit", [emitLpAmt], nil)
964965 if ((r == r))
965966 then {
966967 let el = match r {
967968 case legacy: Address =>
968969 invoke(legacy, "emit", [emitLpAmt], nil)
969970 case _ =>
970971 unit
971972 }
972973 if ((el == el))
973974 then {
974975 let sa = if ((amDiff > 0))
975976 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
976977 else nil
977978 if ((sa == sa))
978979 then {
979980 let sp = if ((prDiff > 0))
980981 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
981982 else nil
982983 if ((sp == sp))
983984 then {
984985 let lpTrnsfr = if (autoStake)
985986 then {
986987 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
987988 if ((ss == ss))
988989 then nil
989990 else throw("Strict value is not equal to itself.")
990991 }
991992 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
992- let $t03634336485 = refreshDLpInternal(0, 0, 0)
993- let refreshDLpActions = $t03634336485._1
994- let updatedDLp = $t03634336485._2
993+ let $t03654636688 = refreshDLpInternal(0, 0, 0)
994+ let refreshDLpActions = $t03654636688._1
995+ let updatedDLp = $t03654636688._2
995996 let check = if ((updatedDLp >= currentDLp))
996997 then true
997998 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
998999 if ((check == check))
9991000 then {
10001001 let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
10011002 if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
10021003 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10031004 else throw("Strict value is not equal to itself.")
10041005 }
10051006 else throw("Strict value is not equal to itself.")
10061007 }
10071008 else throw("Strict value is not equal to itself.")
10081009 }
10091010 else throw("Strict value is not equal to itself.")
10101011 }
10111012 else throw("Strict value is not equal to itself.")
10121013 }
10131014 else throw("Strict value is not equal to itself.")
10141015 }
10151016 else throw("Strict value is not equal to itself.")
10161017 }
10171018 else throw("Strict value is not equal to itself.")
10181019 }
10191020 else throw("Strict value is not equal to itself.")
10201021 }
10211022 else throw("Strict value is not equal to itself.")
10221023 }
10231024 }
10241025
10251026
10261027
10271028 @Callable(i)
10281029 func putOneTknV2 (minOutAmount,autoStake) = {
10291030 let isPoolOneTokenOperationsDisabled = {
10301031 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10311032 if ($isInstanceOf(@, "Boolean"))
10321033 then @
10331034 else throw(($getType(@) + " couldn't be cast to Boolean"))
10341035 }
10351036 let isPutDisabled = if (if (if (igs())
10361037 then true
10371038 else (cfgPoolStatus == PoolPutDis))
10381039 then true
10391040 else (cfgPoolStatus == PoolShutdown))
10401041 then true
10411042 else isPoolOneTokenOperationsDisabled
10421043 let checks = [if (if (!(isPutDisabled))
10431044 then true
10441045 else isManager(i))
10451046 then true
10461047 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10471048 then true
10481049 else throwErr("exactly 1 payment are expected")]
10491050 if ((checks == checks))
10501051 then {
10511052 let amId = toBase58String(value(cfgAmountAssetId))
10521053 let prId = toBase58String(value(cfgPriceAssetId))
10531054 let lpId = cfgLpAssetId
10541055 let amDecimals = cfgAmountAssetDecimals
10551056 let prDecimals = cfgPriceAssetDecimals
10561057 let userAddress = if ((i.caller == this))
10571058 then i.originCaller
10581059 else i.caller
10591060 let pmt = value(i.payments[0])
10601061 let pmtAssetId = toBase58String(value(pmt.assetId))
10611062 let pmtAmt = pmt.amount
10621063 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
10631064 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
10641065 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10651066 if ((currentDLp == currentDLp))
10661067 then {
1067- let $t03812638284 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1068- if (($t03812638284 == $t03812638284))
1068+ let $t03832938487 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1069+ if (($t03832938487 == $t03832938487))
10691070 then {
1070- let feeAmount = $t03812638284._3
1071- let state = $t03812638284._2
1072- let estimLP = $t03812638284._1
1071+ let feeAmount = $t03832938487._3
1072+ let state = $t03832938487._2
1073+ let estimLP = $t03832938487._1
10731074 let emitLpAmt = if (if ((minOutAmount > 0))
10741075 then (minOutAmount > estimLP)
10751076 else false)
10761077 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10771078 else estimLP
10781079 let e = invoke(fca, "emit", [emitLpAmt], nil)
10791080 if ((e == e))
10801081 then {
10811082 let el = match e {
10821083 case legacy: Address =>
10831084 invoke(legacy, "emit", [emitLpAmt], nil)
10841085 case _ =>
10851086 unit
10861087 }
10871088 if ((el == el))
10881089 then {
10891090 let lpTrnsfr = if (autoStake)
10901091 then {
10911092 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
10921093 if ((ss == ss))
10931094 then nil
10941095 else throw("Strict value is not equal to itself.")
10951096 }
10961097 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
10971098 let sendFeeToMatcher = if ((feeAmount > 0))
10981099 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10991100 else nil
1100- let $t03909939448 = if ((this == feeCollectorAddress))
1101+ let $t03930239651 = if ((this == feeCollectorAddress))
11011102 then $Tuple2(0, 0)
11021103 else {
11031104 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11041105 then true
11051106 else false
11061107 if (paymentInAmountAsset)
11071108 then $Tuple2(-(feeAmount), 0)
11081109 else $Tuple2(0, -(feeAmount))
11091110 }
1110- let amountAssetBalanceDelta = $t03909939448._1
1111- let priceAssetBalanceDelta = $t03909939448._2
1112- let $t03945139559 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1113- let refreshDLpActions = $t03945139559._1
1114- let updatedDLp = $t03945139559._2
1111+ let amountAssetBalanceDelta = $t03930239651._1
1112+ let priceAssetBalanceDelta = $t03930239651._2
1113+ let $t03965439762 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1114+ let refreshDLpActions = $t03965439762._1
1115+ let updatedDLp = $t03965439762._2
11151116 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11161117 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11171118 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11181119 else throw("Strict value is not equal to itself.")
11191120 }
11201121 else throw("Strict value is not equal to itself.")
11211122 }
11221123 else throw("Strict value is not equal to itself.")
11231124 }
11241125 else throw("Strict value is not equal to itself.")
11251126 }
11261127 else throw("Strict value is not equal to itself.")
11271128 }
11281129 else throw("Strict value is not equal to itself.")
11291130 }
11301131
11311132
11321133
11331134 @Callable(i)
11341135 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11351136 then throw("Wrong slpg")
11361137 else if ((size(i.payments) != 2))
11371138 then throw("2 pmnts expd")
11381139 else {
11391140 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, "")
11401141 let state = estPut._9
11411142 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11421143 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11431144 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11441145 if ((currentDLp == currentDLp))
11451146 then {
1146- let $t04058940654 = refreshDLpInternal(0, 0, 0)
1147- let refreshDLpActions = $t04058940654._1
1148- let updatedDLp = $t04058940654._2
1147+ let $t04079240857 = refreshDLpInternal(0, 0, 0)
1148+ let refreshDLpActions = $t04079240857._1
1149+ let updatedDLp = $t04079240857._2
11491150 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11501151 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11511152 then (state ++ refreshDLpActions)
11521153 else throw("Strict value is not equal to itself.")
11531154 }
11541155 else throw("Strict value is not equal to itself.")
11551156 }
11561157
11571158
11581159
11591160 @Callable(i)
11601161 func get () = {
11611162 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
11621163 if ((currentDLp == currentDLp))
11631164 then {
11641165 let r = cg(i)
11651166 let outAmtAmt = r._1
11661167 let outPrAmt = r._2
11671168 let pmtAmt = r._3
11681169 let pmtAssetId = r._4
11691170 let state = r._5
11701171 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11711172 if ((b == b))
11721173 then {
1173- let $t04182741909 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1174- let refreshDLpActions = $t04182741909._1
1175- let updatedDLp = $t04182741909._2
1174+ let $t04203042112 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1175+ let refreshDLpActions = $t04203042112._1
1176+ let updatedDLp = $t04203042112._2
11761177 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11771178 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11781179 then (state ++ refreshDLpActions)
11791180 else throw("Strict value is not equal to itself.")
11801181 }
11811182 else throw("Strict value is not equal to itself.")
11821183 }
11831184 else throw("Strict value is not equal to itself.")
11841185 }
11851186
11861187
11871188
11881189 @Callable(i)
11891190 func getOneTknV2 (outAssetId,minOutAmount) = {
11901191 let isPoolOneTokenOperationsDisabled = {
11911192 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11921193 if ($isInstanceOf(@, "Boolean"))
11931194 then @
11941195 else throw(($getType(@) + " couldn't be cast to Boolean"))
11951196 }
11961197 let isGetDisabled = if (if (igs())
11971198 then true
11981199 else (cfgPoolStatus == PoolShutdown))
11991200 then true
12001201 else isPoolOneTokenOperationsDisabled
12011202 let checks = [if (if (!(isGetDisabled))
12021203 then true
12031204 else isManager(i))
12041205 then true
12051206 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
12061207 then true
12071208 else throwErr("exactly 1 payment are expected")]
12081209 if ((checks == checks))
12091210 then {
1210- let $t04252742682 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1211- let state = $t04252742682._1
1212- let totalAmount = $t04252742682._2
1211+ let $t04273042885 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1212+ let state = $t04273042885._1
1213+ let totalAmount = $t04273042885._2
12131214 $Tuple2(state, totalAmount)
12141215 }
12151216 else throw("Strict value is not equal to itself.")
12161217 }
12171218
12181219
12191220
12201221 @Callable(i)
12211222 func refreshDLp () = {
12221223 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12231224 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12241225 then unit
12251226 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12261227 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12271228 then {
12281229 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1229- let $t04320643270 = refreshDLpInternal(0, 0, 0)
1230- let dLpUpdateActions = $t04320643270._1
1231- let updatedDLp = $t04320643270._2
1230+ let $t04340943473 = refreshDLpInternal(0, 0, 0)
1231+ let dLpUpdateActions = $t04340943473._1
1232+ let updatedDLp = $t04340943473._2
12321233 let actions = if ((dLp != updatedDLp))
12331234 then dLpUpdateActions
12341235 else throwErr("nothing to refresh")
12351236 $Tuple2(actions, toString(updatedDLp))
12361237 }
12371238 else throw("Strict value is not equal to itself.")
12381239 }
12391240
12401241
12411242
12421243 @Callable(i)
12431244 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12441245 let amId = toBase58String(value(cfgAmountAssetId))
12451246 let prId = toBase58String(value(cfgPriceAssetId))
12461247 let lpId = toBase58String(value(cfgLpAssetId))
12471248 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12481249 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12491250 let D0 = getD(xp)
12501251 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12511252 let index = if ((outAssetId == amId))
12521253 then 0
12531254 else if ((outAssetId == prId))
12541255 then 1
12551256 else throw("invalid out asset id")
12561257 let newY = getYD(xp, index, D1)
12571258 let dy = (xp[index] - newY)
12581259 let totalGetRaw = max([0, toInt((dy - big1))])
1259- let $t04420044255 = takeFee(totalGetRaw, outFee)
1260- let totalGet = $t04420044255._1
1261- let feeAmount = $t04420044255._2
1260+ let $t04440344458 = takeFee(totalGetRaw, outFee)
1261+ let totalGet = $t04440344458._1
1262+ let feeAmount = $t04440344458._2
12621263 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12631264 }
12641265
12651266
12661267
12671268 @Callable(i)
12681269 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12691270 let amId = toBase58String(value(cfgAmountAssetId))
12701271 let prId = toBase58String(value(cfgPriceAssetId))
12711272 let lpId = toBase58String(value(cfgLpAssetId))
12721273 let amBalance = getAccBalance(amId)
12731274 let prBalance = getAccBalance(prId)
1274- let $t04463044745 = {
1275+ let $t04483344948 = {
12751276 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12761277 if ($isInstanceOf(@, "(Int, Int)"))
12771278 then @
12781279 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12791280 }
1280- let totalGet = $t04463044745._1
1281- let feeAmount = $t04463044745._2
1281+ let totalGet = $t04483344948._1
1282+ let feeAmount = $t04483344948._2
12821283 let r = ego("", lpId, lpAssetAmount, this)
12831284 let outAmAmt = r._1
12841285 let outPrAmt = r._2
12851286 let sumOfGetAssets = (outAmAmt + outPrAmt)
12861287 let bonus = if ((sumOfGetAssets == 0))
12871288 then if ((totalGet == 0))
12881289 then 0
12891290 else throw("bonus calculation error")
12901291 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
12911292 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
12921293 }
12931294
12941295
12951296
12961297 @Callable(i)
12971298 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
12981299 let r = cg(i)
12991300 let outAmAmt = r._1
13001301 let outPrAmt = r._2
13011302 let pmtAmt = r._3
13021303 let pmtAssetId = r._4
13031304 let state = r._5
13041305 if ((noLessThenAmtAsset > outAmAmt))
13051306 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
13061307 else if ((noLessThenPriceAsset > outPrAmt))
13071308 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
13081309 else {
13091310 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13101311 if ((currentDLp == currentDLp))
13111312 then {
13121313 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13131314 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13141315 then {
1315- let $t04591145992 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1316- let refreshDLpActions = $t04591145992._1
1317- let updatedDLp = $t04591145992._2
1316+ let $t04611446195 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1317+ let refreshDLpActions = $t04611446195._1
1318+ let updatedDLp = $t04611446195._2
13181319 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13191320 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13201321 then (state ++ refreshDLpActions)
13211322 else throw("Strict value is not equal to itself.")
13221323 }
13231324 else throw("Strict value is not equal to itself.")
13241325 }
13251326 else throw("Strict value is not equal to itself.")
13261327 }
13271328 }
13281329
13291330
13301331
13311332 @Callable(i)
13321333 func unstakeAndGet (amount) = {
13331334 let checkPayments = if ((size(i.payments) != 0))
13341335 then throw("No pmnts expd")
13351336 else true
13361337 if ((checkPayments == checkPayments))
13371338 then {
13381339 let factoryCfg = gfc()
13391340 let lpAssetId = cfgLpAssetId
13401341 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13411342 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13421343 if ((currentDLp == currentDLp))
13431344 then {
13441345 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13451346 if ((unstakeInv == unstakeInv))
13461347 then {
13471348 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13481349 let outAmAmt = r._1
13491350 let outPrAmt = r._2
13501351 let sts = parseIntValue(r._9)
13511352 let state = r._10
13521353 let v = if (if (igs())
13531354 then true
13541355 else (sts == PoolShutdown))
13551356 then throw(("Blocked: " + toString(sts)))
13561357 else true
13571358 if ((v == v))
13581359 then {
13591360 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13601361 if ((burnA == burnA))
13611362 then {
1362- let $t04701947100 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1363- let refreshDLpActions = $t04701947100._1
1364- let updatedDLp = $t04701947100._2
1363+ let $t04722247303 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1364+ let refreshDLpActions = $t04722247303._1
1365+ let updatedDLp = $t04722247303._2
13651366 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13661367 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13671368 then (state ++ refreshDLpActions)
13681369 else throw("Strict value is not equal to itself.")
13691370 }
13701371 else throw("Strict value is not equal to itself.")
13711372 }
13721373 else throw("Strict value is not equal to itself.")
13731374 }
13741375 else throw("Strict value is not equal to itself.")
13751376 }
13761377 else throw("Strict value is not equal to itself.")
13771378 }
13781379 else throw("Strict value is not equal to itself.")
13791380 }
13801381
13811382
13821383
13831384 @Callable(i)
13841385 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13851386 let isGetDisabled = if (igs())
13861387 then true
13871388 else (cfgPoolStatus == PoolShutdown)
13881389 let checks = [if (!(isGetDisabled))
13891390 then true
13901391 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13911392 then true
13921393 else throw("no payments are expected")]
13931394 if ((checks == checks))
13941395 then {
13951396 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13961397 if ((currentDLp == currentDLp))
13971398 then {
13981399 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
13991400 if ((unstakeInv == unstakeInv))
14001401 then {
14011402 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
14021403 let outAmAmt = res._1
14031404 let outPrAmt = res._2
14041405 let state = res._10
14051406 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
14061407 then true
14071408 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
14081409 then true
14091410 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
14101411 if ((checkAmounts == checkAmounts))
14111412 then {
14121413 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14131414 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14141415 then {
1415- let $t04835148432 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1416- let refreshDLpActions = $t04835148432._1
1417- let updatedDLp = $t04835148432._2
1416+ let $t04855448635 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1417+ let refreshDLpActions = $t04855448635._1
1418+ let updatedDLp = $t04855448635._2
14181419 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14191420 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14201421 then (state ++ refreshDLpActions)
14211422 else throw("Strict value is not equal to itself.")
14221423 }
14231424 else throw("Strict value is not equal to itself.")
14241425 }
14251426 else throw("Strict value is not equal to itself.")
14261427 }
14271428 else throw("Strict value is not equal to itself.")
14281429 }
14291430 else throw("Strict value is not equal to itself.")
14301431 }
14311432 else throw("Strict value is not equal to itself.")
14321433 }
14331434
14341435
14351436
14361437 @Callable(i)
14371438 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14381439 let isPoolOneTokenOperationsDisabled = {
14391440 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14401441 if ($isInstanceOf(@, "Boolean"))
14411442 then @
14421443 else throw(($getType(@) + " couldn't be cast to Boolean"))
14431444 }
14441445 let isGetDisabled = if (if (igs())
14451446 then true
14461447 else (cfgPoolStatus == PoolShutdown))
14471448 then true
14481449 else isPoolOneTokenOperationsDisabled
14491450 let checks = [if (if (!(isGetDisabled))
14501451 then true
14511452 else isManager(i))
14521453 then true
14531454 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14541455 then true
14551456 else throwErr("no payments are expected")]
14561457 if ((checks == checks))
14571458 then {
14581459 let factoryCfg = gfc()
14591460 let lpAssetId = cfgLpAssetId
14601461 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14611462 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14621463 if ((unstakeInv == unstakeInv))
14631464 then {
1464- let $t04932749515 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1465- let state = $t04932749515._1
1466- let totalAmount = $t04932749515._2
1465+ let $t04953049718 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1466+ let state = $t04953049718._1
1467+ let totalAmount = $t04953049718._2
14671468 $Tuple2(state, totalAmount)
14681469 }
14691470 else throw("Strict value is not equal to itself.")
14701471 }
14711472 else throw("Strict value is not equal to itself.")
14721473 }
14731474
14741475
14751476
14761477 @Callable(i)
14771478 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
1478- let $t04964349746 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1479- let lpAmount = $t04964349746._1
1480- let state = $t04964349746._2
1481- let feeAmount = $t04964349746._3
1482- let bonus = $t04964349746._4
1479+ let $t04984649949 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1480+ let lpAmount = $t04984649949._1
1481+ let state = $t04984649949._2
1482+ let feeAmount = $t04984649949._3
1483+ let bonus = $t04984649949._4
14831484 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14841485 }
14851486
14861487
14871488
14881489 @Callable(i)
14891490 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
1490- let $t04989449998 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1491- let lpAmount = $t04989449998._1
1492- let state = $t04989449998._2
1493- let feeAmount = $t04989449998._3
1494- let bonus = $t04989449998._4
1491+ let $t05009750201 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1492+ let lpAmount = $t05009750201._1
1493+ let state = $t05009750201._2
1494+ let feeAmount = $t05009750201._3
1495+ let bonus = $t05009750201._4
14951496 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14961497 }
14971498
14981499
14991500
15001501 @Callable(i)
15011502 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
15021503 then throw("denied")
15031504 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
15041505
15051506
15061507
15071508 @Callable(i)
15081509 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
15091510 then pd
15101511 else [StringEntry(k, v)]
15111512
15121513
15131514
15141515 @Callable(i)
15151516 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
15161517 then pd
15171518 else [IntegerEntry(k, v)]
15181519
15191520
15201521
15211522 @Callable(i)
15221523 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15231524
15241525
15251526
15261527 @Callable(i)
15271528 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15281529
15291530
15301531
15311532 @Callable(i)
15321533 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15331534 let pr = calcPrices(amAmt, prAmt, lpAmt)
15341535 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15351536 }
15361537
15371538
15381539
15391540 @Callable(i)
15401541 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15411542
15421543
15431544
15441545 @Callable(i)
15451546 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15461547
15471548
15481549
15491550 @Callable(i)
15501551 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15511552
15521553
15531554
15541555 @Callable(i)
15551556 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, ""))
15561557
15571558
15581559
15591560 @Callable(i)
15601561 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15611562 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15621563 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15631564 }
15641565
15651566
15661567 @Verifier(tx)
15671568 func verify () = {
15681569 let targetPublicKey = match m() {
15691570 case pk: ByteVector =>
15701571 pk
15711572 case _: Unit =>
15721573 tx.senderPublicKey
15731574 case _ =>
15741575 throw("Match error")
15751576 }
15761577 match tx {
15771578 case order: Order =>
15781579 let matcherPub = mp()
1579- let orderValid = validateMatcherOrderAllowed(order)
1580+ let $t05299353062 = validateMatcherOrderAllowed(order)
1581+ let orderValid = $t05299353062._1
1582+ let orderValidInfo = $t05299353062._2
15801583 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15811584 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15821585 if (if (if (orderValid)
15831586 then senderValid
15841587 else false)
15851588 then matcherValid
15861589 else false)
15871590 then true
1588- else toe(orderValid, senderValid, matcherValid)
1591+ else throwOrderError(orderValid, orderValidInfo, senderValid, matcherValid)
15891592 case s: SetScriptTransaction =>
15901593 if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
15911594 then true
15921595 else {
15931596 let newHash = blake2b256(value(s.script))
15941597 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15951598 let currentHash = scriptHash(this)
15961599 if ((allowedHash == newHash))
15971600 then (currentHash != newHash)
15981601 else false
15991602 }
16001603 case _ =>
16011604 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16021605 }
16031606 }
16041607

github/deemru/w8io/fabc49c 
204.58 ms