tx · 4fqMMhfmDYkLB5AgNKBfUefnLTX5cmRyGZJyGErAz2aF

3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA:  -0.03700000 Waves

2022.12.20 11:05 [2368350] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves

{ "type": 13, "id": "4fqMMhfmDYkLB5AgNKBfUefnLTX5cmRyGZJyGErAz2aF", "fee": 3700000, "feeAssetId": null, "timestamp": 1671523535034, "version": 1, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "2cz5tJYYRYBTpWBgCGecERtLNhe3sYEUoPRbwfQ9DEPHWRPjHA9Jc3zfCMqpvwxv42zKB3R2tunAduMUYZUBr5pm" ], "script": "base64:BgL2KAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgASBAoCCAESABIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEBARIFCgMBCAESBAoCAQgSBAoCAQgSBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJUHJpY2VBc0lkIg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ainId": 84, "height": 2368350, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5YqmQs9LJgvf7CqAUrmjmKwzHDu7sfBp3M44qepzouva Next: 5gCUdNqJQU8GRpiae2f7s2UiZDKZ84GKZTGScAVf3Dti Diff:
OldNewDifferences
10081008 else throw("Strict value is not equal to itself.")
10091009 }
10101010 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1011- let $t03627736516 = refreshDLpInternal(0, 0, 0)
1012- let refreshDLpActions = $t03627736516._1
1013- let updatedDLp = $t03627736516._2
1014- let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
1015- if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
1011+ let $t03627736342 = refreshDLpInternal(0, 0, 0)
1012+ let refreshDLpActions = $t03627736342._1
1013+ let updatedDLp = $t03627736342._2
1014+ let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1015+ if ((isUpdatedDLpValid == isUpdatedDLpValid))
10161016 then {
1017- let error = if ((updatedDLp >= currentDLp))
1017+ let check = if ((updatedDLp >= currentDLp))
10181018 then true
1019- else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(emitLpAmt), toString(amDiff), toString(prDiff), toString(lpAssetEmission), toString(lpAssetEmissionAfter)], " "))
1020- if ((error == error))
1021- then ((state ++ lpTrnsfr) ++ refreshDLpActions)
1019+ else throwErr("updated DLp lower than current DLp")
1020+ if ((check == check))
1021+ then {
1022+ let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
1023+ if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
1024+ then ((state ++ lpTrnsfr) ++ refreshDLpActions)
1025+ else throw("Strict value is not equal to itself.")
1026+ }
10221027 else throw("Strict value is not equal to itself.")
10231028 }
10241029 else throw("Strict value is not equal to itself.")
10841089 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10851090 if ((currentDLp == currentDLp))
10861091 then {
1087- let $t03831038468 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1088- if (($t03831038468 == $t03831038468))
1092+ let $t03786438022 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1093+ if (($t03786438022 == $t03786438022))
10891094 then {
1090- let feeAmount = $t03831038468._3
1091- let state = $t03831038468._2
1092- let estimLP = $t03831038468._1
1095+ let feeAmount = $t03786438022._3
1096+ let state = $t03786438022._2
1097+ let estimLP = $t03786438022._1
10931098 let emitLpAmt = if (if ((minOutAmount > 0))
10941099 then (minOutAmount > estimLP)
10951100 else false)
11171122 let sendFeeToMatcher = if ((feeAmount > 0))
11181123 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11191124 else nil
1120- let $t03928339632 = if ((this == feeCollectorAddress))
1125+ let $t03883739186 = if ((this == feeCollectorAddress))
11211126 then $Tuple2(0, 0)
11221127 else {
11231128 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11271132 then $Tuple2(-(feeAmount), 0)
11281133 else $Tuple2(0, -(feeAmount))
11291134 }
1130- let amountAssetBalanceDelta = $t03928339632._1
1131- let priceAssetBalanceDelta = $t03928339632._2
1132- let $t03963539743 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1133- let refreshDLpActions = $t03963539743._1
1134- let updatedDLp = $t03963539743._2
1135+ let amountAssetBalanceDelta = $t03883739186._1
1136+ let priceAssetBalanceDelta = $t03883739186._2
1137+ let $t03918939297 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1138+ let refreshDLpActions = $t03918939297._1
1139+ let updatedDLp = $t03918939297._2
11351140 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11361141 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11371142 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11511156
11521157
11531158 @Callable(i)
1154-func putForFree (maxSlpg) = if ((0 > maxSlpg))
1155- then throw("Wrong slpg")
1156- else if ((size(i.payments) != 2))
1157- then throw("2 pmnts expd")
1158- else {
1159- 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, "")
1160- let state = estPut._9
1161- let amAssetPmt = toBigInt(value(i.payments[0]).amount)
1162- let prAssetPmt = toBigInt(value(i.payments[1]).amount)
1163- let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
1164- if ((currentDLp == currentDLp))
1159+func get () = {
1160+ let aab = toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId)))
1161+ if ((aab == aab))
1162+ then {
1163+ let pab = toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId)))
1164+ if ((pab == pab))
11651165 then {
1166- let $t04077340838 = refreshDLpInternal(0, 0, 0)
1167- let refreshDLpActions = $t04077340838._1
1168- let updatedDLp = $t04077340838._2
1169- let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1170- if ((isUpdatedDLpValid == isUpdatedDLpValid))
1171- then (state ++ refreshDLpActions)
1172- else throw("Strict value is not equal to itself.")
1173- }
1174- else throw("Strict value is not equal to itself.")
1175- }
1176-
1177-
1178-
1179-@Callable(i)
1180-func get () = {
1181- let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
1182- if ((currentDLp == currentDLp))
1183- then {
1184- let r = cg(i)
1185- let outAmtAmt = r._1
1186- let outPrAmt = r._2
1187- let pmtAmt = r._3
1188- let pmtAssetId = r._4
1189- let state = r._5
1190- let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
1191- if ((b == b))
1192- then {
1193- let $t04162541707 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1194- let refreshDLpActions = $t04162541707._1
1195- let updatedDLp = $t04162541707._2
1196- let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1197- if ((isUpdatedDLpValid == isUpdatedDLpValid))
1198- then (state ++ refreshDLpActions)
1166+ let lae = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
1167+ if ((lae == lae))
1168+ then {
1169+ let laea = (lae - toBigInt(value(i.payments[0]).amount))
1170+ if ((laea == laea))
1171+ then {
1172+ let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
1173+ if ((currentDLp == currentDLp))
1174+ then {
1175+ let r = cg(i)
1176+ let outAmtAmt = r._1
1177+ let outPrAmt = r._2
1178+ let pmtAmt = r._3
1179+ let pmtAssetId = r._4
1180+ let state = r._5
1181+ let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
1182+ if ((b == b))
1183+ then {
1184+ let $t04159541752 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1185+ let refreshDLpActions = $t04159541752._1
1186+ let updatedDLp = $t04159541752._2
1187+ let error = if ((updatedDLp >= currentDLp))
1188+ then true
1189+ else throwErr(makeString(["updated DLp lower than current DLp", toString(aab), toString(pab), toString(currentDLp), toString(updatedDLp), toString(lae), toString(laea)], " "))
1190+ if ((error == error))
1191+ then (state ++ refreshDLpActions)
1192+ else throw("Strict value is not equal to itself.")
1193+ }
1194+ else throw("Strict value is not equal to itself.")
1195+ }
1196+ else throw("Strict value is not equal to itself.")
1197+ }
1198+ else throw("Strict value is not equal to itself.")
1199+ }
11991200 else throw("Strict value is not equal to itself.")
12001201 }
12011202 else throw("Strict value is not equal to itself.")
12271228 else throwErr("exactly 1 payment are expected")]
12281229 if ((checks == checks))
12291230 then {
1230- let $t04232542480 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1231- let state = $t04232542480._1
1232- let totalAmount = $t04232542480._2
1231+ let $t04255142706 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1232+ let state = $t04255142706._1
1233+ let totalAmount = $t04255142706._2
12331234 $Tuple2(state, totalAmount)
12341235 }
12351236 else throw("Strict value is not equal to itself.")
12461247 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12471248 then {
12481249 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1249- let $t04300443068 = refreshDLpInternal(0, 0, 0)
1250- let dLpUpdateActions = $t04300443068._1
1251- let updatedDLp = $t04300443068._2
1250+ let $t04323043294 = refreshDLpInternal(0, 0, 0)
1251+ let dLpUpdateActions = $t04323043294._1
1252+ let updatedDLp = $t04323043294._2
12521253 let actions = if ((dLp != updatedDLp))
12531254 then dLpUpdateActions
12541255 else throwErr("nothing to refresh")
12771278 let newY = getYD(xp, index, D1)
12781279 let dy = (xp[index] - newY)
12791280 let totalGetRaw = max([0, toInt((dy - big1))])
1280- let $t04396844017 = takeFee(totalGetRaw)
1281- let totalGet = $t04396844017._1
1282- let feeAmount = $t04396844017._2
1281+ let $t04419444243 = takeFee(totalGetRaw)
1282+ let totalGet = $t04419444243._1
1283+ let feeAmount = $t04419444243._2
12831284 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12841285 }
12851286
12931294 let lpId = poolConfig[idxLPAsId]
12941295 let amBalance = getAccBalance(amId)
12951296 let prBalance = getAccBalance(prId)
1296- let $t04436244477 = {
1297+ let $t04458844703 = {
12971298 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12981299 if ($isInstanceOf(@, "(Int, Int)"))
12991300 then @
13001301 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
13011302 }
1302- let totalGet = $t04436244477._1
1303- let feeAmount = $t04436244477._2
1303+ let totalGet = $t04458844703._1
1304+ let feeAmount = $t04458844703._2
13041305 let r = ego("", lpId, lpAssetAmount, this)
13051306 let outAmAmt = r._1
13061307 let outPrAmt = r._2
13321333 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13331334 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13341335 then {
1335- let $t04564545726 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1336- let refreshDLpActions = $t04564545726._1
1337- let updatedDLp = $t04564545726._2
1336+ let $t04587145952 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1337+ let refreshDLpActions = $t04587145952._1
1338+ let updatedDLp = $t04587145952._2
13381339 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13391340 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13401341 then (state ++ refreshDLpActions)
13761377 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13771378 if ((burnA == burnA))
13781379 then {
1379- let $t04678946870 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1380- let refreshDLpActions = $t04678946870._1
1381- let updatedDLp = $t04678946870._2
1380+ let $t04701547096 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1381+ let refreshDLpActions = $t04701547096._1
1382+ let updatedDLp = $t04701547096._2
13821383 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13831384 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13841385 then (state ++ refreshDLpActions)
14251426 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14261427 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14271428 then {
1428- let $t04811848199 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1429- let refreshDLpActions = $t04811848199._1
1430- let updatedDLp = $t04811848199._2
1429+ let $t04834448425 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1430+ let refreshDLpActions = $t04834448425._1
1431+ let updatedDLp = $t04834448425._2
14311432 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14321433 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14331434 then (state ++ refreshDLpActions)
14731474 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14741475 if ((unstakeInv == unstakeInv))
14751476 then {
1476- let $t04913349321 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1477- let state = $t04913349321._1
1478- let totalAmount = $t04913349321._2
1477+ let $t04935949547 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1478+ let state = $t04935949547._1
1479+ let totalAmount = $t04935949547._2
14791480 $Tuple2(state, totalAmount)
14801481 }
14811482 else throw("Strict value is not equal to itself.")
14911492 let amId = poolConfig[idxAmAsId]
14921493 let prId = poolConfig[idxPrAsId]
14931494 let lpId = poolConfig[idxLPAsId]
1494- let $t04958049683 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1495- let lpAmount = $t04958049683._1
1496- let state = $t04958049683._2
1497- let feeAmount = $t04958049683._3
1498- let bonus = $t04958049683._4
1495+ let $t04980649909 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1496+ let lpAmount = $t04980649909._1
1497+ let state = $t04980649909._2
1498+ let feeAmount = $t04980649909._3
1499+ let bonus = $t04980649909._4
14991500 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15001501 }
15011502
15071508 let amId = poolConfig[idxAmAsId]
15081509 let prId = poolConfig[idxPrAsId]
15091510 let lpId = poolConfig[idxLPAsId]
1510- let $t04996250066 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1511- let lpAmount = $t04996250066._1
1512- let state = $t04996250066._2
1513- let feeAmount = $t04996250066._3
1514- let bonus = $t04996250066._4
1511+ let $t05018850292 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1512+ let lpAmount = $t05018850292._1
1513+ let state = $t05018850292._2
1514+ let feeAmount = $t05018850292._3
1515+ let bonus = $t05018850292._4
15151516 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15161517 }
15171518
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 fromX18Round (val,resultScaleMult,round) = toInt(fraction(val, toBigInt(resultScaleMult), scale18, round))
7777
7878
7979 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
8080
8181
8282 func abs (val) = if ((zeroBigInt > val))
8383 then -(val)
8484 else val
8585
8686
8787 func absBigInt (val) = if ((zeroBigInt > val))
8888 then -(val)
8989 else val
9090
9191
9292 func fc () = "%s__factoryContract"
9393
9494
9595 func mpk () = "%s__managerPublicKey"
9696
9797
9898 func pmpk () = "%s__pendingManagerPublicKey"
9999
100100
101101 func pl () = "%s%s__price__last"
102102
103103
104104 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
105105
106106
107107 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
108108
109109
110110 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
111111
112112
113113 func aa () = "%s__amountAsset"
114114
115115
116116 func pa () = "%s__priceAsset"
117117
118118
119119 func amp () = "%s__amp"
120120
121121
122122 func ada () = "%s__addonAddr"
123123
124124
125125 let keyFee = "%s__fee"
126126
127127 let fee = valueOrElse(getInteger(this, keyFee), feeDefault)
128128
129129 let keyDLp = makeString(["%s", "dLp"], SEP)
130130
131131 let keyDLpRefreshedHeight = makeString(["%s", "dLpRefreshedHeight"], SEP)
132132
133133 let keyDLpRefreshDelay = makeString(["%s", "refreshDLpDelay"], SEP)
134134
135135 let dLpRefreshDelayDefault = 1
136136
137137 let dLpRefreshDelay = valueOrElse(getInteger(this, keyDLpRefreshDelay), dLpRefreshDelayDefault)
138138
139139 func fcfg () = "%s__factoryConfig"
140140
141141
142142 func mtpk () = "%s%s__matcher__publicKey"
143143
144144
145145 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
146146
147147
148148 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
149149
150150
151151 func aps () = "%s__shutdown"
152152
153153
154154 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
155155
156156
157157 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
158158
159159
160160 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
161161
162162
163163 func str (val) = match val {
164164 case valStr: String =>
165165 valStr
166166 case _ =>
167167 throw("fail cast to String")
168168 }
169169
170170
171171 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
172172
173173
174174 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
175175
176176
177177 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
178178
179179
180180 func fmtErr (msg) = makeString(["lp_stable.ride:", msg], " ")
181181
182182
183183 let fca = addressFromStringValue(strf(this, fc()))
184184
185185 let A = strf(this, amp())
186186
187187 func igs () = valueOrElse(getBoolean(fca, aps()), false)
188188
189189
190190 func mp () = fromBase58String(strf(fca, mtpk()))
191191
192192
193193 let feeCollectorAddress = addressFromStringValue(strf(fca, keyFeeCollectorAddress()))
194194
195195 func gpc () = {
196196 let amtAs = strf(this, aa())
197197 let priceAs = strf(this, pa())
198198 let iPriceAs = intf(fca, mba(priceAs))
199199 let iAmtAs = intf(fca, mba(amtAs))
200200 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
201201 }
202202
203203
204204 func parseAssetId (input) = if ((input == wavesString))
205205 then unit
206206 else fromBase58String(input)
207207
208208
209209 func assetIdToString (input) = if ((input == unit))
210210 then wavesString
211211 else toBase58String(value(input))
212212
213213
214214 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]))
215215
216216
217217 let poolConfigParsed = parsePoolConfig(gpc())
218218
219219 let $t074067592 = poolConfigParsed
220220
221221 let cfgPoolAddress = $t074067592._1
222222
223223 let cfgPoolStatus = $t074067592._2
224224
225225 let cfgLpAssetId = $t074067592._3
226226
227227 let cfgAmountAssetId = $t074067592._4
228228
229229 let cfgPriceAssetId = $t074067592._5
230230
231231 let cfgAmountAssetDecimals = $t074067592._6
232232
233233 let cfgPriceAssetDecimals = $t074067592._7
234234
235235 func gfc () = split(strf(fca, fcfg()), SEP)
236236
237237
238238 let factoryConfig = gfc()
239239
240240 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
241241
242242 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
243243
244244 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
245245
246246 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
247247
248248 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)
249249
250250
251251 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)
252252
253253
254254 func getAccBalance (assetId) = if ((assetId == "WAVES"))
255255 then wavesBalance(this).available
256256 else assetBalance(this, fromBase58String(assetId))
257257
258258
259259 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
260260
261261
262262 func vad (A1,A2,slippage) = {
263263 let diff = fraction((A1 - A2), scale8BigInt, A2)
264264 let pass = ((slippage - abs(diff)) > zeroBigInt)
265265 if (!(pass))
266266 then throw(("Big slpg: " + toString(diff)))
267267 else $Tuple2(pass, min([A1, A2]))
268268 }
269269
270270
271271 func vd (D1,D0,slpg) = {
272272 let diff = fraction(D0, scale8BigInt, D1)
273273 let fail = (slpg > diff)
274274 if (if (fail)
275275 then true
276276 else (D0 > D1))
277277 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
278278 else fail
279279 }
280280
281281
282282 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
283283 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
284284 let prAsAmtX18 = t1(prAmt, prAssetDcm)
285285 cpbi(prAsAmtX18, amtAsAmtX18)
286286 }
287287
288288
289289 func calcPrices (amAmt,prAmt,lpAmt) = {
290290 let cfg = gpc()
291291 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
292292 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
293293 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
294294 let amAmtX18 = t1(amAmt, amtAsDcm)
295295 let prAmtX18 = t1(prAmt, prAsDcm)
296296 let lpAmtX18 = t1(lpAmt, scale8)
297297 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
298298 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
299299 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
300300 }
301301
302302
303303 func calculatePrices (amAmt,prAmt,lpAmt) = {
304304 let p = calcPrices(amAmt, prAmt, lpAmt)
305305 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
306306 }
307307
308308
309309 func takeFee (amount) = {
310310 let feeAmount = fraction(amount, fee, scale8)
311311 $Tuple2((amount - feeAmount), feeAmount)
312312 }
313313
314314
315315 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
316316 let cfg = gpc()
317317 let lpId = cfg[idxLPAsId]
318318 let amId = cfg[idxAmAsId]
319319 let prId = cfg[idxPrAsId]
320320 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
321321 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
322322 let sts = cfg[idxPoolSt]
323323 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
324324 if ((lpId != pmtAssetId))
325325 then throw("Wrong pmt asset")
326326 else {
327327 let amBalance = getAccBalance(amId)
328328 let amBalanceX18 = t1(amBalance, amDcm)
329329 let prBalance = getAccBalance(prId)
330330 let prBalanceX18 = t1(prBalance, prDcm)
331331 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
332332 let curPrice = f1(curPriceX18, scale8)
333333 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
334334 let lpEmissX18 = t1(lpEmiss, scale8)
335335 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
336336 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
337337 let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
338338 let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
339339 let state = if ((txId58 == ""))
340340 then nil
341341 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
342342 then unit
343343 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
344344 then unit
345345 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)]
346346 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
347347 }
348348 }
349349
350350
351351 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
352352 let cfg = gpc()
353353 let lpId = fromBase58String(cfg[idxLPAsId])
354354 let amIdStr = cfg[idxAmAsId]
355355 let prIdStr = cfg[idxPrAsId]
356356 let inAmIdStr = cfg[idxIAmtAsId]
357357 let inPrIdStr = cfg[idxIPriceAsId]
358358 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
359359 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
360360 let sts = cfg[idxPoolSt]
361361 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
362362 let amBalance = if (isEval)
363363 then getAccBalance(amIdStr)
364364 else if (if (isOneAsset)
365365 then (pmtId == amIdStr)
366366 else false)
367367 then (getAccBalance(amIdStr) - pmtAmt)
368368 else if (isOneAsset)
369369 then getAccBalance(amIdStr)
370370 else (getAccBalance(amIdStr) - inAmAmt)
371371 let prBalance = if (isEval)
372372 then getAccBalance(prIdStr)
373373 else if (if (isOneAsset)
374374 then (pmtId == prIdStr)
375375 else false)
376376 then (getAccBalance(prIdStr) - pmtAmt)
377377 else if (isOneAsset)
378378 then getAccBalance(prIdStr)
379379 else (getAccBalance(prIdStr) - inPrAmt)
380380 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
381381 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
382382 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
383383 let amBalanceX18 = t1(amBalance, amtDcm)
384384 let prBalanceX18 = t1(prBalance, priceDcm)
385385 let r = if ((lpEm == 0))
386386 then {
387387 let curPriceX18 = zeroBigInt
388388 let slippageX18 = zeroBigInt
389389 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
390390 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
391391 }
392392 else {
393393 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
394394 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
395395 let slippageX18 = t1(slippage, scale8)
396396 if (if (if (validateSlippage)
397397 then (curPriceX18 != zeroBigInt)
398398 else false)
399399 then (slippageRealX18 > slippageX18)
400400 else false)
401401 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
402402 else {
403403 let lpEmissionX18 = t1(lpEm, scale8)
404404 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
405405 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
406406 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
407407 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
408408 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
409409 let expAmtAssetAmtX18 = expectedAmts._1
410410 let expPriceAssetAmtX18 = expectedAmts._2
411411 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
412412 $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
413413 }
414414 }
415415 let calcLpAmt = r._1
416416 let calcAmAssetPmt = r._2
417417 let calcPrAssetPmt = r._3
418418 let curPrice = f1(r._4, scale8)
419419 let slippageCalc = f1(r._5, scale8)
420420 if ((0 >= calcLpAmt))
421421 then throw("LP <= 0")
422422 else {
423423 let emitLpAmt = if (!(emitLp))
424424 then 0
425425 else calcLpAmt
426426 let amDiff = (inAmAmt - calcAmAssetPmt)
427427 let prDiff = (inPrAmt - calcPrAssetPmt)
428428 let $t01811218457 = if (if (isOneAsset)
429429 then (pmtId == amIdStr)
430430 else false)
431431 then $Tuple2(pmtAmt, 0)
432432 else if (if (isOneAsset)
433433 then (pmtId == prIdStr)
434434 else false)
435435 then $Tuple2(0, pmtAmt)
436436 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
437437 let writeAmAmt = $t01811218457._1
438438 let writePrAmt = $t01811218457._2
439439 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))]
440440 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
441441 }
442442 }
443443
444444
445445 func getD (xp) = {
446446 let xp0 = xp[0]
447447 let xp1 = xp[1]
448448 let s = (xp0 + xp1)
449449 if ((s == big0))
450450 then big0
451451 else {
452452 let a = parseIntValue(A)
453453 let ann = (a * 2)
454454 let p = fraction(xp0, xp1, big1)
455455 let xp0_xp1_n_n = fraction(p, big4, big1)
456456 let ann_s = fraction(toBigInt(ann), s, big1)
457457 let ann_1 = toBigInt((ann - 1))
458458 func calcDNext (d) = {
459459 let dd = fraction(d, d, big1)
460460 let ddd = fraction(dd, d, big1)
461461 let dp = fraction(ddd, big1, xp0_xp1_n_n)
462462 fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)), CEILING)
463463 }
464464
465465 func calc (acc,i) = if (acc._2)
466466 then acc
467467 else {
468468 let d = acc._1
469469 let dNext = calcDNext(d)
470470 let dDiffRaw = toInt((dNext - value(d)))
471471 let dDiff = if ((0 > dDiffRaw))
472472 then -(dDiffRaw)
473473 else dDiffRaw
474474 if ((1 >= dDiff))
475475 then $Tuple2(dNext, true)
476476 else $Tuple2(dNext, false)
477477 }
478478
479479 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
480480 let $t02038520433 = {
481481 let $l = arr
482482 let $s = size($l)
483483 let $acc0 = $Tuple2(s, false)
484484 func $f0_1 ($a,$i) = if (($i >= $s))
485485 then $a
486486 else calc($a, $l[$i])
487487
488488 func $f0_2 ($a,$i) = if (($i >= $s))
489489 then $a
490490 else throw("List size exceeds 15")
491491
492492 $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)
493493 }
494494 let d = $t02038520433._1
495495 let found = $t02038520433._2
496496 if (found)
497497 then d
498498 else throw(("D calculation error, D = " + toString(d)))
499499 }
500500 }
501501
502502
503503 func getDOld (xp) = {
504504 let n = big2
505505 let xp0 = xp[0]
506506 let xp1 = xp[1]
507507 let aPrecision = parseBigIntValue(Amult)
508508 let a = (parseBigIntValue(A) * aPrecision)
509509 let s = (xp0 + xp1)
510510 if ((s == big0))
511511 then big0
512512 else {
513513 let ann = (a * n)
514514 let xp0_xp1_n_n = (((xp0 * xp1) * n) * n)
515515 let ann_s_aPrecision = ((ann * s) / aPrecision)
516516 let ann_aPrecision = (ann - aPrecision)
517517 let n1 = (n + big1)
518518 func calc (acc,cur) = {
519519 let $t02106221082 = acc
520520 let d = $t02106221082._1
521521 let found = $t02106221082._2
522522 if ((found != unit))
523523 then acc
524524 else {
525525 let dp = (((d * d) * d) / xp0_xp1_n_n)
526526 let dNext = (((ann_s_aPrecision + (dp * n)) * d) / (((ann_aPrecision * d) / aPrecision) + (n1 * dp)))
527527 let dDiff = absBigInt((dNext - value(d)))
528528 if ((big1 >= dDiff))
529529 then $Tuple2(dNext, cur)
530530 else $Tuple2(dNext, unit)
531531 }
532532 }
533533
534534 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
535535 let $t02150321550 = {
536536 let $l = arr
537537 let $s = size($l)
538538 let $acc0 = $Tuple2(s, unit)
539539 func $f0_1 ($a,$i) = if (($i >= $s))
540540 then $a
541541 else calc($a, $l[$i])
542542
543543 func $f0_2 ($a,$i) = if (($i >= $s))
544544 then $a
545545 else throw("List size exceeds 15")
546546
547547 $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)
548548 }
549549 let d = $t02150321550._1
550550 let found = $t02150321550._2
551551 if ((found != unit))
552552 then d
553553 else throw(("D calculation error, D = " + toString(d)))
554554 }
555555 }
556556
557557
558558 func getYD (xp,i,D) = {
559559 let n = big2
560560 let x = xp[if ((i == 0))
561561 then 1
562562 else 0]
563563 let aPrecision = parseBigIntValue(Amult)
564564 let a = (parseBigIntValue(A) * aPrecision)
565565 let s = x
566566 let ann = (a * n)
567567 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
568568 let b = ((s + ((D * aPrecision) / ann)) - D)
569569 func calc (acc,cur) = {
570570 let $t02205022070 = acc
571571 let y = $t02205022070._1
572572 let found = $t02205022070._2
573573 if ((found != unit))
574574 then acc
575575 else {
576576 let yNext = (((y * y) + c) / ((big2 * y) + b))
577577 let yDiff = absBigInt((yNext - value(y)))
578578 if ((big1 >= yDiff))
579579 then $Tuple2(yNext, cur)
580580 else $Tuple2(yNext, unit)
581581 }
582582 }
583583
584584 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
585585 let $t02237722424 = {
586586 let $l = arr
587587 let $s = size($l)
588588 let $acc0 = $Tuple2(D, unit)
589589 func $f0_1 ($a,$i) = if (($i >= $s))
590590 then $a
591591 else calc($a, $l[$i])
592592
593593 func $f0_2 ($a,$i) = if (($i >= $s))
594594 then $a
595595 else throw("List size exceeds 15")
596596
597597 $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)
598598 }
599599 let y = $t02237722424._1
600600 let found = $t02237722424._2
601601 if ((found != unit))
602602 then y
603603 else throw(("Y calculation error, Y = " + toString(y)))
604604 }
605605
606606
607607 func calcDLp (amountBalance,priceBalance,lpEmission) = {
608608 let updatedDLp = fraction(getD([amountBalance, priceBalance]), scale18, lpEmission)
609609 if ((lpEmission == big0))
610610 then big0
611611 else updatedDLp
612612 }
613613
614614
615615 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
616616 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
617617 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
618618 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
619619 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
620620 currentDLp
621621 }
622622
623623
624624 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
625625 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
626626 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
627627 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
628628 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
629629 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
630630 $Tuple2(actions, updatedDLp)
631631 }
632632
633633
634634 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
635635 then true
636636 else throwErr("updated DLp lower than current DLp")
637637
638638
639639 func validateMatcherOrderAllowed (order) = {
640640 let amountAssetAmount = order.amount
641641 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
642642 let $t02436324575 = if ((order.orderType == Buy))
643643 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
644644 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
645645 let amountAssetBalanceDelta = $t02436324575._1
646646 let priceAssetBalanceDelta = $t02436324575._2
647647 if (if (if (igs())
648648 then true
649649 else (cfgPoolStatus == PoolMatcherDis))
650650 then true
651651 else (cfgPoolStatus == PoolShutdown))
652652 then throw("Admin blocked")
653653 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
654654 then true
655655 else (order.assetPair.priceAsset != cfgPriceAssetId))
656656 then throw("Wr assets")
657657 else {
658658 let dLp = parseBigIntValue(getStringValue(this, keyDLp))
659659 let $t02490525005 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
660660 let unusedActions = $t02490525005._1
661661 let dLpNew = $t02490525005._2
662662 let isOrderValid = (dLpNew >= dLp)
663663 isOrderValid
664664 }
665665 }
666666
667667
668668 func cg (i) = if ((size(i.payments) != 1))
669669 then throw("1 pmnt exp")
670670 else {
671671 let pmt = value(i.payments[0])
672672 let pmtAssetId = value(pmt.assetId)
673673 let pmtAmt = pmt.amount
674674 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
675675 let outAmAmt = r._1
676676 let outPrAmt = r._2
677677 let sts = parseIntValue(r._9)
678678 let state = r._10
679679 if (if (igs())
680680 then true
681681 else (sts == PoolShutdown))
682682 then throw(("Admin blocked: " + toString(sts)))
683683 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
684684 }
685685
686686
687687 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
688688 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
689689 let sts = parseIntValue(r._8)
690690 if (if (if (igs())
691691 then true
692692 else (sts == PoolPutDis))
693693 then true
694694 else (sts == PoolShutdown))
695695 then throw(("Blocked:" + toString(sts)))
696696 else r
697697 }
698698
699699
700700 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
701701 let poolConfig = gpc()
702702 let amId = poolConfig[idxAmAsId]
703703 let prId = poolConfig[idxPrAsId]
704704 let lpId = poolConfig[idxLPAsId]
705705 let amtDcm = parseIntValue(poolConfig[idxAmtAsDcm])
706706 let priceDcm = parseIntValue(poolConfig[idxPriceAsDcm])
707707 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
708708 let chechEmission = if ((lpAssetEmission > big0))
709709 then true
710710 else throw("initial deposit requires all coins")
711711 if ((chechEmission == chechEmission))
712712 then {
713713 let amBalance = getAccBalance(amId)
714714 let prBalance = getAccBalance(prId)
715715 let $t02732227784 = if ((txId == ""))
716716 then $Tuple2(amBalance, prBalance)
717717 else if ((pmtAssetId == amId))
718718 then if ((pmtAmtRaw > amBalance))
719719 then throw("invalid payment amount")
720720 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
721721 else if ((pmtAssetId == prId))
722722 then if ((pmtAmtRaw > prBalance))
723723 then throw("invalid payment amount")
724724 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
725725 else throw("wrong pmtAssetId")
726726 let amBalanceOld = $t02732227784._1
727727 let prBalanceOld = $t02732227784._2
728728 let $t02779027966 = if ((pmtAssetId == amId))
729729 then $Tuple2(pmtAmtRaw, 0)
730730 else if ((pmtAssetId == prId))
731731 then $Tuple2(0, pmtAmtRaw)
732732 else throw("invalid payment")
733733 let amAmountRaw = $t02779027966._1
734734 let prAmountRaw = $t02779027966._2
735735 let $t02797028209 = if (withTakeFee)
736736 then $Tuple3(takeFee(amAmountRaw)._1, takeFee(prAmountRaw)._1, takeFee(pmtAmtRaw)._2)
737737 else $Tuple3(amAmountRaw, prAmountRaw, 0)
738738 let amAmount = $t02797028209._1
739739 let prAmount = $t02797028209._2
740740 let feeAmount = $t02797028209._3
741741 let amBalanceNew = (amBalanceOld + amAmount)
742742 let prBalanceNew = (prBalanceOld + prAmount)
743743 let D0 = getD([toBigInt(amBalanceOld), toBigInt(prBalanceOld)])
744744 let D1 = getD([toBigInt(amBalanceNew), toBigInt(prBalanceNew)])
745745 let checkD = if ((D1 > D0))
746746 then true
747747 else throw()
748748 if ((checkD == checkD))
749749 then {
750750 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
751751 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
752752 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))]
753753 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
754754 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
755755 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
756756 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
757757 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
758758 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
759759 }
760760 else throw("Strict value is not equal to itself.")
761761 }
762762 else throw("Strict value is not equal to itself.")
763763 }
764764
765765
766766 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
767767 let poolConfig = gpc()
768768 let lpId = poolConfig[idxLPAsId]
769769 let amId = poolConfig[idxAmAsId]
770770 let prId = poolConfig[idxPrAsId]
771771 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
772772 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
773773 let poolStatus = poolConfig[idxPoolSt]
774774 let userAddress = if ((caller == restContract))
775775 then originCaller
776776 else caller
777777 let pmt = value(payments[0])
778778 let pmtAssetId = value(pmt.assetId)
779779 let pmtAmt = pmt.amount
780780 let currentDLp = calcCurrentDLp(big0, big0, big0)
781781 if ((currentDLp == currentDLp))
782782 then {
783783 let txId58 = toBase58String(transactionId)
784784 if ((lpId != toBase58String(pmtAssetId)))
785785 then throw("Wrong LP")
786786 else {
787787 let amBalance = getAccBalance(amId)
788788 let prBalance = getAccBalance(prId)
789789 let $t03027430385 = {
790790 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
791791 if ($isInstanceOf(@, "(Int, Int)"))
792792 then @
793793 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
794794 }
795795 if (($t03027430385 == $t03027430385))
796796 then {
797797 let feeAmount = $t03027430385._2
798798 let totalGet = $t03027430385._1
799799 let totalAmount = if (if ((minOutAmount > 0))
800800 then (minOutAmount > totalGet)
801801 else false)
802802 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
803803 else totalGet
804804 let $t03057530882 = if ((outAssetId == amId))
805805 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
806806 else if ((outAssetId == prId))
807807 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
808808 else throw("invalid out asset id")
809809 let outAm = $t03057530882._1
810810 let outPr = $t03057530882._2
811811 let amBalanceNew = $t03057530882._3
812812 let prBalanceNew = $t03057530882._4
813813 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
814814 let curPr = f1(curPrX18, scale8)
815815 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
816816 then unit
817817 else fromBase58String(outAssetId)
818818 let sendFeeToMatcher = if ((feeAmount > 0))
819819 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
820820 else nil
821821 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)
822822 if ((state == state))
823823 then {
824824 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
825825 if ((burn == burn))
826826 then {
827827 let $t03166732017 = {
828828 let feeAmountForCalc = if ((this == feeCollectorAddress))
829829 then 0
830830 else feeAmount
831831 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
832832 then true
833833 else false
834834 if (outInAmountAsset)
835835 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
836836 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
837837 }
838838 let amountAssetBalanceDelta = $t03166732017._1
839839 let priceAssetBalanceDelta = $t03166732017._2
840840 let $t03202032128 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
841841 let refreshDLpActions = $t03202032128._1
842842 let updatedDLp = $t03202032128._2
843843 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
844844 if ((isUpdatedDLpValid == isUpdatedDLpValid))
845845 then $Tuple2((state ++ refreshDLpActions), totalAmount)
846846 else throw("Strict value is not equal to itself.")
847847 }
848848 else throw("Strict value is not equal to itself.")
849849 }
850850 else throw("Strict value is not equal to itself.")
851851 }
852852 else throw("Strict value is not equal to itself.")
853853 }
854854 }
855855 else throw("Strict value is not equal to itself.")
856856 }
857857
858858
859859 func m () = match getString(mpk()) {
860860 case s: String =>
861861 fromBase58String(s)
862862 case _: Unit =>
863863 unit
864864 case _ =>
865865 throw("Match error")
866866 }
867867
868868
869869 func pm () = match getString(pmpk()) {
870870 case s: String =>
871871 fromBase58String(s)
872872 case _: Unit =>
873873 unit
874874 case _ =>
875875 throw("Match error")
876876 }
877877
878878
879879 let pd = throw("Permission denied")
880880
881881 func isManager (i) = match m() {
882882 case pk: ByteVector =>
883883 (i.callerPublicKey == pk)
884884 case _: Unit =>
885885 (i.caller == this)
886886 case _ =>
887887 throw("Match error")
888888 }
889889
890890
891891 func mm (i) = match m() {
892892 case pk: ByteVector =>
893893 if ((i.callerPublicKey == pk))
894894 then true
895895 else pd
896896 case _: Unit =>
897897 if ((i.caller == this))
898898 then true
899899 else pd
900900 case _ =>
901901 throw("Match error")
902902 }
903903
904904
905905 @Callable(i)
906906 func constructor (fc) = {
907907 let c = mm(i)
908908 if ((c == c))
909909 then [StringEntry(fc(), fc)]
910910 else throw("Strict value is not equal to itself.")
911911 }
912912
913913
914914
915915 @Callable(i)
916916 func setManager (pendingManagerPublicKey) = {
917917 let c = mm(i)
918918 if ((c == c))
919919 then {
920920 let cm = fromBase58String(pendingManagerPublicKey)
921921 if ((cm == cm))
922922 then [StringEntry(pmpk(), pendingManagerPublicKey)]
923923 else throw("Strict value is not equal to itself.")
924924 }
925925 else throw("Strict value is not equal to itself.")
926926 }
927927
928928
929929
930930 @Callable(i)
931931 func confirmManager () = {
932932 let p = pm()
933933 let hpm = if (isDefined(p))
934934 then true
935935 else throw("No pending manager")
936936 if ((hpm == hpm))
937937 then {
938938 let cpm = if ((i.callerPublicKey == value(p)))
939939 then true
940940 else throw("You are not pending manager")
941941 if ((cpm == cpm))
942942 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
943943 else throw("Strict value is not equal to itself.")
944944 }
945945 else throw("Strict value is not equal to itself.")
946946 }
947947
948948
949949
950950 @Callable(i)
951951 func put (slip,autoStake) = {
952952 let factCfg = gfc()
953953 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
954954 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
955955 if ((0 > slip))
956956 then throw("Wrong slippage")
957957 else if ((size(i.payments) != 2))
958958 then throw("2 pmnts expd")
959959 else {
960960 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
961961 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
962962 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
963963 if ((amountAssetBalance == amountAssetBalance))
964964 then {
965965 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
966966 if ((priceAssetBalance == priceAssetBalance))
967967 then {
968968 let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
969969 if ((lpAssetEmission == lpAssetEmission))
970970 then {
971971 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
972972 if ((currentDLp == currentDLp))
973973 then {
974974 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, "")
975975 let emitLpAmt = e._2
976976 let lpAssetId = e._7
977977 let state = e._9
978978 let amDiff = e._10
979979 let prDiff = e._11
980980 let amId = e._12
981981 let prId = e._13
982982 let r = invoke(fca, "emit", [emitLpAmt], nil)
983983 if ((r == r))
984984 then {
985985 let el = match r {
986986 case legacy: Address =>
987987 invoke(legacy, "emit", [emitLpAmt], nil)
988988 case _ =>
989989 unit
990990 }
991991 if ((el == el))
992992 then {
993993 let sa = if ((amDiff > 0))
994994 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
995995 else nil
996996 if ((sa == sa))
997997 then {
998998 let sp = if ((prDiff > 0))
999999 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
10001000 else nil
10011001 if ((sp == sp))
10021002 then {
10031003 let lpTrnsfr = if (autoStake)
10041004 then {
10051005 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
10061006 if ((ss == ss))
10071007 then nil
10081008 else throw("Strict value is not equal to itself.")
10091009 }
10101010 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1011- let $t03627736516 = refreshDLpInternal(0, 0, 0)
1012- let refreshDLpActions = $t03627736516._1
1013- let updatedDLp = $t03627736516._2
1014- let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
1015- if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
1011+ let $t03627736342 = refreshDLpInternal(0, 0, 0)
1012+ let refreshDLpActions = $t03627736342._1
1013+ let updatedDLp = $t03627736342._2
1014+ let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1015+ if ((isUpdatedDLpValid == isUpdatedDLpValid))
10161016 then {
1017- let error = if ((updatedDLp >= currentDLp))
1017+ let check = if ((updatedDLp >= currentDLp))
10181018 then true
1019- else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(emitLpAmt), toString(amDiff), toString(prDiff), toString(lpAssetEmission), toString(lpAssetEmissionAfter)], " "))
1020- if ((error == error))
1021- then ((state ++ lpTrnsfr) ++ refreshDLpActions)
1019+ else throwErr("updated DLp lower than current DLp")
1020+ if ((check == check))
1021+ then {
1022+ let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
1023+ if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
1024+ then ((state ++ lpTrnsfr) ++ refreshDLpActions)
1025+ else throw("Strict value is not equal to itself.")
1026+ }
10221027 else throw("Strict value is not equal to itself.")
10231028 }
10241029 else throw("Strict value is not equal to itself.")
10251030 }
10261031 else throw("Strict value is not equal to itself.")
10271032 }
10281033 else throw("Strict value is not equal to itself.")
10291034 }
10301035 else throw("Strict value is not equal to itself.")
10311036 }
10321037 else throw("Strict value is not equal to itself.")
10331038 }
10341039 else throw("Strict value is not equal to itself.")
10351040 }
10361041 else throw("Strict value is not equal to itself.")
10371042 }
10381043 else throw("Strict value is not equal to itself.")
10391044 }
10401045 else throw("Strict value is not equal to itself.")
10411046 }
10421047 }
10431048
10441049
10451050
10461051 @Callable(i)
10471052 func putOneTknV2 (minOutAmount,autoStake) = {
10481053 let isPoolOneTokenOperationsDisabled = {
10491054 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10501055 if ($isInstanceOf(@, "Boolean"))
10511056 then @
10521057 else throw(($getType(@) + " couldn't be cast to Boolean"))
10531058 }
10541059 let isPutDisabled = if (if (if (igs())
10551060 then true
10561061 else (cfgPoolStatus == PoolPutDis))
10571062 then true
10581063 else (cfgPoolStatus == PoolShutdown))
10591064 then true
10601065 else isPoolOneTokenOperationsDisabled
10611066 let checks = [if (if (!(isPutDisabled))
10621067 then true
10631068 else isManager(i))
10641069 then true
10651070 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10661071 then true
10671072 else throwErr("exactly 1 payment are expected")]
10681073 if ((checks == checks))
10691074 then {
10701075 let poolConfig = gpc()
10711076 let amId = poolConfig[idxAmAsId]
10721077 let prId = poolConfig[idxPrAsId]
10731078 let lpId = fromBase58String(poolConfig[idxLPAsId])
10741079 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
10751080 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
10761081 let userAddress = if ((i.caller == this))
10771082 then i.originCaller
10781083 else i.caller
10791084 let pmt = value(i.payments[0])
10801085 let pmtAssetId = toBase58String(value(pmt.assetId))
10811086 let pmtAmt = pmt.amount
10821087 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
10831088 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
10841089 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10851090 if ((currentDLp == currentDLp))
10861091 then {
1087- let $t03831038468 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1088- if (($t03831038468 == $t03831038468))
1092+ let $t03786438022 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1093+ if (($t03786438022 == $t03786438022))
10891094 then {
1090- let feeAmount = $t03831038468._3
1091- let state = $t03831038468._2
1092- let estimLP = $t03831038468._1
1095+ let feeAmount = $t03786438022._3
1096+ let state = $t03786438022._2
1097+ let estimLP = $t03786438022._1
10931098 let emitLpAmt = if (if ((minOutAmount > 0))
10941099 then (minOutAmount > estimLP)
10951100 else false)
10961101 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10971102 else estimLP
10981103 let e = invoke(fca, "emit", [emitLpAmt], nil)
10991104 if ((e == e))
11001105 then {
11011106 let el = match e {
11021107 case legacy: Address =>
11031108 invoke(legacy, "emit", [emitLpAmt], nil)
11041109 case _ =>
11051110 unit
11061111 }
11071112 if ((el == el))
11081113 then {
11091114 let lpTrnsfr = if (autoStake)
11101115 then {
11111116 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
11121117 if ((ss == ss))
11131118 then nil
11141119 else throw("Strict value is not equal to itself.")
11151120 }
11161121 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
11171122 let sendFeeToMatcher = if ((feeAmount > 0))
11181123 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11191124 else nil
1120- let $t03928339632 = if ((this == feeCollectorAddress))
1125+ let $t03883739186 = if ((this == feeCollectorAddress))
11211126 then $Tuple2(0, 0)
11221127 else {
11231128 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11241129 then true
11251130 else false
11261131 if (paymentInAmountAsset)
11271132 then $Tuple2(-(feeAmount), 0)
11281133 else $Tuple2(0, -(feeAmount))
11291134 }
1130- let amountAssetBalanceDelta = $t03928339632._1
1131- let priceAssetBalanceDelta = $t03928339632._2
1132- let $t03963539743 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1133- let refreshDLpActions = $t03963539743._1
1134- let updatedDLp = $t03963539743._2
1135+ let amountAssetBalanceDelta = $t03883739186._1
1136+ let priceAssetBalanceDelta = $t03883739186._2
1137+ let $t03918939297 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1138+ let refreshDLpActions = $t03918939297._1
1139+ let updatedDLp = $t03918939297._2
11351140 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11361141 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11371142 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11381143 else throw("Strict value is not equal to itself.")
11391144 }
11401145 else throw("Strict value is not equal to itself.")
11411146 }
11421147 else throw("Strict value is not equal to itself.")
11431148 }
11441149 else throw("Strict value is not equal to itself.")
11451150 }
11461151 else throw("Strict value is not equal to itself.")
11471152 }
11481153 else throw("Strict value is not equal to itself.")
11491154 }
11501155
11511156
11521157
11531158 @Callable(i)
1154-func putForFree (maxSlpg) = if ((0 > maxSlpg))
1155- then throw("Wrong slpg")
1156- else if ((size(i.payments) != 2))
1157- then throw("2 pmnts expd")
1158- else {
1159- 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, "")
1160- let state = estPut._9
1161- let amAssetPmt = toBigInt(value(i.payments[0]).amount)
1162- let prAssetPmt = toBigInt(value(i.payments[1]).amount)
1163- let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
1164- if ((currentDLp == currentDLp))
1159+func get () = {
1160+ let aab = toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId)))
1161+ if ((aab == aab))
1162+ then {
1163+ let pab = toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId)))
1164+ if ((pab == pab))
11651165 then {
1166- let $t04077340838 = refreshDLpInternal(0, 0, 0)
1167- let refreshDLpActions = $t04077340838._1
1168- let updatedDLp = $t04077340838._2
1169- let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1170- if ((isUpdatedDLpValid == isUpdatedDLpValid))
1171- then (state ++ refreshDLpActions)
1172- else throw("Strict value is not equal to itself.")
1173- }
1174- else throw("Strict value is not equal to itself.")
1175- }
1176-
1177-
1178-
1179-@Callable(i)
1180-func get () = {
1181- let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
1182- if ((currentDLp == currentDLp))
1183- then {
1184- let r = cg(i)
1185- let outAmtAmt = r._1
1186- let outPrAmt = r._2
1187- let pmtAmt = r._3
1188- let pmtAssetId = r._4
1189- let state = r._5
1190- let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
1191- if ((b == b))
1192- then {
1193- let $t04162541707 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1194- let refreshDLpActions = $t04162541707._1
1195- let updatedDLp = $t04162541707._2
1196- let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1197- if ((isUpdatedDLpValid == isUpdatedDLpValid))
1198- then (state ++ refreshDLpActions)
1166+ let lae = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
1167+ if ((lae == lae))
1168+ then {
1169+ let laea = (lae - toBigInt(value(i.payments[0]).amount))
1170+ if ((laea == laea))
1171+ then {
1172+ let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
1173+ if ((currentDLp == currentDLp))
1174+ then {
1175+ let r = cg(i)
1176+ let outAmtAmt = r._1
1177+ let outPrAmt = r._2
1178+ let pmtAmt = r._3
1179+ let pmtAssetId = r._4
1180+ let state = r._5
1181+ let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
1182+ if ((b == b))
1183+ then {
1184+ let $t04159541752 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1185+ let refreshDLpActions = $t04159541752._1
1186+ let updatedDLp = $t04159541752._2
1187+ let error = if ((updatedDLp >= currentDLp))
1188+ then true
1189+ else throwErr(makeString(["updated DLp lower than current DLp", toString(aab), toString(pab), toString(currentDLp), toString(updatedDLp), toString(lae), toString(laea)], " "))
1190+ if ((error == error))
1191+ then (state ++ refreshDLpActions)
1192+ else throw("Strict value is not equal to itself.")
1193+ }
1194+ else throw("Strict value is not equal to itself.")
1195+ }
1196+ else throw("Strict value is not equal to itself.")
1197+ }
1198+ else throw("Strict value is not equal to itself.")
1199+ }
11991200 else throw("Strict value is not equal to itself.")
12001201 }
12011202 else throw("Strict value is not equal to itself.")
12021203 }
12031204 else throw("Strict value is not equal to itself.")
12041205 }
12051206
12061207
12071208
12081209 @Callable(i)
12091210 func getOneTknV2 (outAssetId,minOutAmount) = {
12101211 let isPoolOneTokenOperationsDisabled = {
12111212 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
12121213 if ($isInstanceOf(@, "Boolean"))
12131214 then @
12141215 else throw(($getType(@) + " couldn't be cast to Boolean"))
12151216 }
12161217 let isGetDisabled = if (if (igs())
12171218 then true
12181219 else (cfgPoolStatus == PoolShutdown))
12191220 then true
12201221 else isPoolOneTokenOperationsDisabled
12211222 let checks = [if (if (!(isGetDisabled))
12221223 then true
12231224 else isManager(i))
12241225 then true
12251226 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
12261227 then true
12271228 else throwErr("exactly 1 payment are expected")]
12281229 if ((checks == checks))
12291230 then {
1230- let $t04232542480 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1231- let state = $t04232542480._1
1232- let totalAmount = $t04232542480._2
1231+ let $t04255142706 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1232+ let state = $t04255142706._1
1233+ let totalAmount = $t04255142706._2
12331234 $Tuple2(state, totalAmount)
12341235 }
12351236 else throw("Strict value is not equal to itself.")
12361237 }
12371238
12381239
12391240
12401241 @Callable(i)
12411242 func refreshDLp () = {
12421243 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12431244 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12441245 then unit
12451246 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12461247 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12471248 then {
12481249 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1249- let $t04300443068 = refreshDLpInternal(0, 0, 0)
1250- let dLpUpdateActions = $t04300443068._1
1251- let updatedDLp = $t04300443068._2
1250+ let $t04323043294 = refreshDLpInternal(0, 0, 0)
1251+ let dLpUpdateActions = $t04323043294._1
1252+ let updatedDLp = $t04323043294._2
12521253 let actions = if ((dLp != updatedDLp))
12531254 then dLpUpdateActions
12541255 else throwErr("nothing to refresh")
12551256 $Tuple2(actions, toString(updatedDLp))
12561257 }
12571258 else throw("Strict value is not equal to itself.")
12581259 }
12591260
12601261
12611262
12621263 @Callable(i)
12631264 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12641265 let poolConfig = gpc()
12651266 let amId = poolConfig[idxAmAsId]
12661267 let prId = poolConfig[idxPrAsId]
12671268 let lpId = poolConfig[idxLPAsId]
12681269 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12691270 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12701271 let D0 = getD(xp)
12711272 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12721273 let index = if ((outAssetId == amId))
12731274 then 0
12741275 else if ((outAssetId == prId))
12751276 then 1
12761277 else throw("invalid out asset id")
12771278 let newY = getYD(xp, index, D1)
12781279 let dy = (xp[index] - newY)
12791280 let totalGetRaw = max([0, toInt((dy - big1))])
1280- let $t04396844017 = takeFee(totalGetRaw)
1281- let totalGet = $t04396844017._1
1282- let feeAmount = $t04396844017._2
1281+ let $t04419444243 = takeFee(totalGetRaw)
1282+ let totalGet = $t04419444243._1
1283+ let feeAmount = $t04419444243._2
12831284 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12841285 }
12851286
12861287
12871288
12881289 @Callable(i)
12891290 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12901291 let poolConfig = gpc()
12911292 let amId = poolConfig[idxAmAsId]
12921293 let prId = poolConfig[idxPrAsId]
12931294 let lpId = poolConfig[idxLPAsId]
12941295 let amBalance = getAccBalance(amId)
12951296 let prBalance = getAccBalance(prId)
1296- let $t04436244477 = {
1297+ let $t04458844703 = {
12971298 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12981299 if ($isInstanceOf(@, "(Int, Int)"))
12991300 then @
13001301 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
13011302 }
1302- let totalGet = $t04436244477._1
1303- let feeAmount = $t04436244477._2
1303+ let totalGet = $t04458844703._1
1304+ let feeAmount = $t04458844703._2
13041305 let r = ego("", lpId, lpAssetAmount, this)
13051306 let outAmAmt = r._1
13061307 let outPrAmt = r._2
13071308 let sumOfGetAssets = (outAmAmt + outPrAmt)
13081309 let bonus = if ((sumOfGetAssets == 0))
13091310 then if ((totalGet == 0))
13101311 then 0
13111312 else throw("bonus calculation error")
13121313 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
13131314 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
13141315 }
13151316
13161317
13171318
13181319 @Callable(i)
13191320 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
13201321 let r = cg(i)
13211322 let outAmAmt = r._1
13221323 let outPrAmt = r._2
13231324 let pmtAmt = r._3
13241325 let pmtAssetId = r._4
13251326 let state = r._5
13261327 if ((noLessThenAmtAsset > outAmAmt))
13271328 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
13281329 else if ((noLessThenPriceAsset > outPrAmt))
13291330 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
13301331 else {
13311332 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
13321333 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13331334 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13341335 then {
1335- let $t04564545726 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1336- let refreshDLpActions = $t04564545726._1
1337- let updatedDLp = $t04564545726._2
1336+ let $t04587145952 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1337+ let refreshDLpActions = $t04587145952._1
1338+ let updatedDLp = $t04587145952._2
13381339 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13391340 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13401341 then (state ++ refreshDLpActions)
13411342 else throw("Strict value is not equal to itself.")
13421343 }
13431344 else throw("Strict value is not equal to itself.")
13441345 }
13451346 }
13461347
13471348
13481349
13491350 @Callable(i)
13501351 func unstakeAndGet (amount) = {
13511352 let checkPayments = if ((size(i.payments) != 0))
13521353 then throw("No pmnts expd")
13531354 else true
13541355 if ((checkPayments == checkPayments))
13551356 then {
13561357 let cfg = gpc()
13571358 let factoryCfg = gfc()
13581359 let lpAssetId = fromBase58String(cfg[idxLPAsId])
13591360 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13601361 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13611362 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13621363 if ((unstakeInv == unstakeInv))
13631364 then {
13641365 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13651366 let outAmAmt = r._1
13661367 let outPrAmt = r._2
13671368 let sts = parseIntValue(r._9)
13681369 let state = r._10
13691370 let v = if (if (igs())
13701371 then true
13711372 else (sts == PoolShutdown))
13721373 then throw(("Blocked: " + toString(sts)))
13731374 else true
13741375 if ((v == v))
13751376 then {
13761377 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13771378 if ((burnA == burnA))
13781379 then {
1379- let $t04678946870 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1380- let refreshDLpActions = $t04678946870._1
1381- let updatedDLp = $t04678946870._2
1380+ let $t04701547096 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1381+ let refreshDLpActions = $t04701547096._1
1382+ let updatedDLp = $t04701547096._2
13821383 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13831384 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13841385 then (state ++ refreshDLpActions)
13851386 else throw("Strict value is not equal to itself.")
13861387 }
13871388 else throw("Strict value is not equal to itself.")
13881389 }
13891390 else throw("Strict value is not equal to itself.")
13901391 }
13911392 else throw("Strict value is not equal to itself.")
13921393 }
13931394 else throw("Strict value is not equal to itself.")
13941395 }
13951396
13961397
13971398
13981399 @Callable(i)
13991400 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
14001401 let isGetDisabled = if (igs())
14011402 then true
14021403 else (cfgPoolStatus == PoolShutdown)
14031404 let checks = [if (!(isGetDisabled))
14041405 then true
14051406 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
14061407 then true
14071408 else throw("no payments are expected")]
14081409 if ((checks == checks))
14091410 then {
14101411 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
14111412 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
14121413 if ((unstakeInv == unstakeInv))
14131414 then {
14141415 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
14151416 let outAmAmt = res._1
14161417 let outPrAmt = res._2
14171418 let state = res._10
14181419 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
14191420 then true
14201421 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
14211422 then true
14221423 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
14231424 if ((checkAmounts == checkAmounts))
14241425 then {
14251426 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14261427 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14271428 then {
1428- let $t04811848199 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1429- let refreshDLpActions = $t04811848199._1
1430- let updatedDLp = $t04811848199._2
1429+ let $t04834448425 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1430+ let refreshDLpActions = $t04834448425._1
1431+ let updatedDLp = $t04834448425._2
14311432 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14321433 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14331434 then (state ++ refreshDLpActions)
14341435 else throw("Strict value is not equal to itself.")
14351436 }
14361437 else throw("Strict value is not equal to itself.")
14371438 }
14381439 else throw("Strict value is not equal to itself.")
14391440 }
14401441 else throw("Strict value is not equal to itself.")
14411442 }
14421443 else throw("Strict value is not equal to itself.")
14431444 }
14441445
14451446
14461447
14471448 @Callable(i)
14481449 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14491450 let isPoolOneTokenOperationsDisabled = {
14501451 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14511452 if ($isInstanceOf(@, "Boolean"))
14521453 then @
14531454 else throw(($getType(@) + " couldn't be cast to Boolean"))
14541455 }
14551456 let isGetDisabled = if (if (igs())
14561457 then true
14571458 else (cfgPoolStatus == PoolShutdown))
14581459 then true
14591460 else isPoolOneTokenOperationsDisabled
14601461 let checks = [if (if (!(isGetDisabled))
14611462 then true
14621463 else isManager(i))
14631464 then true
14641465 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14651466 then true
14661467 else throwErr("no payments are expected")]
14671468 if ((checks == checks))
14681469 then {
14691470 let cfg = gpc()
14701471 let factoryCfg = gfc()
14711472 let lpAssetId = fromBase58String(cfg[idxLPAsId])
14721473 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14731474 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14741475 if ((unstakeInv == unstakeInv))
14751476 then {
1476- let $t04913349321 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1477- let state = $t04913349321._1
1478- let totalAmount = $t04913349321._2
1477+ let $t04935949547 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1478+ let state = $t04935949547._1
1479+ let totalAmount = $t04935949547._2
14791480 $Tuple2(state, totalAmount)
14801481 }
14811482 else throw("Strict value is not equal to itself.")
14821483 }
14831484 else throw("Strict value is not equal to itself.")
14841485 }
14851486
14861487
14871488
14881489 @Callable(i)
14891490 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
14901491 let poolConfig = gpc()
14911492 let amId = poolConfig[idxAmAsId]
14921493 let prId = poolConfig[idxPrAsId]
14931494 let lpId = poolConfig[idxLPAsId]
1494- let $t04958049683 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1495- let lpAmount = $t04958049683._1
1496- let state = $t04958049683._2
1497- let feeAmount = $t04958049683._3
1498- let bonus = $t04958049683._4
1495+ let $t04980649909 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1496+ let lpAmount = $t04980649909._1
1497+ let state = $t04980649909._2
1498+ let feeAmount = $t04980649909._3
1499+ let bonus = $t04980649909._4
14991500 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15001501 }
15011502
15021503
15031504
15041505 @Callable(i)
15051506 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
15061507 let poolConfig = gpc()
15071508 let amId = poolConfig[idxAmAsId]
15081509 let prId = poolConfig[idxPrAsId]
15091510 let lpId = poolConfig[idxLPAsId]
1510- let $t04996250066 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1511- let lpAmount = $t04996250066._1
1512- let state = $t04996250066._2
1513- let feeAmount = $t04996250066._3
1514- let bonus = $t04996250066._4
1511+ let $t05018850292 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1512+ let lpAmount = $t05018850292._1
1513+ let state = $t05018850292._2
1514+ let feeAmount = $t05018850292._3
1515+ let bonus = $t05018850292._4
15151516 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15161517 }
15171518
15181519
15191520
15201521 @Callable(i)
15211522 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
15221523 then throw("denied")
15231524 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
15241525
15251526
15261527
15271528 @Callable(i)
15281529 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
15291530 then pd
15301531 else [StringEntry(k, v)]
15311532
15321533
15331534
15341535 @Callable(i)
15351536 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
15361537 then pd
15371538 else [IntegerEntry(k, v)]
15381539
15391540
15401541
15411542 @Callable(i)
15421543 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15431544
15441545
15451546
15461547 @Callable(i)
15471548 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15481549
15491550
15501551
15511552 @Callable(i)
15521553 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15531554 let pr = calcPrices(amAmt, prAmt, lpAmt)
15541555 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15551556 }
15561557
15571558
15581559
15591560 @Callable(i)
15601561 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15611562
15621563
15631564
15641565 @Callable(i)
15651566 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15661567
15671568
15681569
15691570 @Callable(i)
15701571 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15711572
15721573
15731574
15741575 @Callable(i)
15751576 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, ""))
15761577
15771578
15781579
15791580 @Callable(i)
15801581 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15811582 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15821583 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15831584 }
15841585
15851586
15861587
15871588 @Callable(i)
15881589 func getFeeREADONLY () = $Tuple2(nil, fee)
15891590
15901591
15911592 @Verifier(tx)
15921593 func verify () = {
15931594 let targetPublicKey = match m() {
15941595 case pk: ByteVector =>
15951596 pk
15961597 case _: Unit =>
15971598 tx.senderPublicKey
15981599 case _ =>
15991600 throw("Match error")
16001601 }
16011602 match tx {
16021603 case order: Order =>
16031604 let matcherPub = mp()
16041605 let orderValid = validateMatcherOrderAllowed(order)
16051606 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
16061607 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
16071608 if (if (if (orderValid)
16081609 then senderValid
16091610 else false)
16101611 then matcherValid
16111612 else false)
16121613 then true
16131614 else toe(orderValid, senderValid, matcherValid)
16141615 case s: SetScriptTransaction =>
16151616 let newHash = blake2b256(value(s.script))
16161617 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
16171618 let currentHash = scriptHash(this)
16181619 if (if ((allowedHash == newHash))
16191620 then (currentHash != newHash)
16201621 else false)
16211622 then true
16221623 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16231624 case _ =>
16241625 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16251626 }
16261627 }
16271628

github/deemru/w8io/169f3d6 
200.01 ms