tx · JD8Uf5NgCtxf4VwW7HqZGBFxVrm1Jhc4j3M2P6Zcibht

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.03700000 Waves

2022.12.16 11:40 [2362630] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "JD8Uf5NgCtxf4VwW7HqZGBFxVrm1Jhc4j3M2P6Zcibht", "fee": 3700000, "feeAssetId": null, "timestamp": 1671180059631, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "61x9To1nG8TTz9GXq8KKHD7YoG9WYKigG64DW8VpmF2E1VS7RN7NB6dGgxwt8BFFiqwLmoY1rkG98GLxJq73GHh6" ], "script": "base64:BgL/KAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUFtdEFzSWQiDWlkeElQcmljZUFzSWQiD2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bHVlAQgFAmRLBnNjcmlwdAQCaFgJANsEAQkBBXZhbHVlAQkAnQgCBQJhUAkBAmF6AAQCaFkJAPEHAQUEdGhpcwMDCQAAAgUCaFgFAmhXCQECIT0CBQJoWQUCaFcHBgkA9AMDCAUCaFAJYm9keUJ5dGVzCQCRAwIIBQJoUAZwcm9vZnMAAAUCaFIJAPQDAwgFAmhQCWJvZHlCeXRlcwkAkQMCCAUCaFAGcHJvb2ZzAAAFAmhSMAMULg==", "chainId": 84, "height": 2362630, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H2TWnCioPkGbiEH5A5CRkDs42iPCS86sw4T96ZdbY3Kr Next: 9MPr2oUqcQzra19X979j66nAt9tkigNqSzj3wyDjnUVP Diff:
OldNewDifferences
959959 else {
960960 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
961961 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
962- let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
963- if ((currentDLp == currentDLp))
962+ let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
963+ if ((amountAssetBalance == amountAssetBalance))
964964 then {
965- 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, "")
966- let emitLpAmt = e._2
967- let lpAssetId = e._7
968- let state = e._9
969- let amDiff = e._10
970- let prDiff = e._11
971- let amId = e._12
972- let prId = e._13
973- let r = invoke(fca, "emit", [emitLpAmt], nil)
974- if ((r == r))
965+ let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
966+ if ((priceAssetBalance == priceAssetBalance))
975967 then {
976- let el = match r {
977- case legacy: Address =>
978- invoke(legacy, "emit", [emitLpAmt], nil)
979- case _ =>
980- unit
981- }
982- if ((el == el))
968+ let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
969+ if ((lpAssetEmission == lpAssetEmission))
983970 then {
984- let sa = if ((amDiff > 0))
985- then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
986- else nil
987- if ((sa == sa))
971+ let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
972+ if ((currentDLp == currentDLp))
988973 then {
989- let sp = if ((prDiff > 0))
990- then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
991- else nil
992- if ((sp == sp))
974+ 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, "")
975+ let emitLpAmt = e._2
976+ let lpAssetId = e._7
977+ let state = e._9
978+ let amDiff = e._10
979+ let prDiff = e._11
980+ let amId = e._12
981+ let prId = e._13
982+ let r = invoke(fca, "emit", [emitLpAmt], nil)
983+ if ((r == r))
993984 then {
994- let lpTrnsfr = if (autoStake)
985+ let el = match r {
986+ case legacy: Address =>
987+ invoke(legacy, "emit", [emitLpAmt], nil)
988+ case _ =>
989+ unit
990+ }
991+ if ((el == el))
995992 then {
996- let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
997- if ((ss == ss))
998- then nil
993+ let sa = if ((amDiff > 0))
994+ then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
995+ else nil
996+ if ((sa == sa))
997+ then {
998+ let sp = if ((prDiff > 0))
999+ then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
1000+ else nil
1001+ if ((sp == sp))
1002+ then {
1003+ let lpTrnsfr = if (autoStake)
1004+ then {
1005+ let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
1006+ if ((ss == ss))
1007+ then nil
1008+ else throw("Strict value is not equal to itself.")
1009+ }
1010+ else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1011+ let $t03629036529 = refreshDLpInternal(0, 0, 0)
1012+ let refreshDLpActions = $t03629036529._1
1013+ let updatedDLp = $t03629036529._2
1014+ let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
1015+ if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
1016+ then {
1017+ let error = 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)], " "))
1018+ if ((error == error))
1019+ then ((state ++ lpTrnsfr) ++ refreshDLpActions)
1020+ else throw("Strict value is not equal to itself.")
1021+ }
1022+ else throw("Strict value is not equal to itself.")
1023+ }
1024+ else throw("Strict value is not equal to itself.")
1025+ }
9991026 else throw("Strict value is not equal to itself.")
10001027 }
1001- else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1002- let $t03599736062 = refreshDLpInternal(0, 0, 0)
1003- let refreshDLpActions = $t03599736062._1
1004- let updatedDLp = $t03599736062._2
1005- let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1006- if ((isUpdatedDLpValid == isUpdatedDLpValid))
1007- then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10081028 else throw("Strict value is not equal to itself.")
10091029 }
10101030 else throw("Strict value is not equal to itself.")
10621082 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10631083 if ((currentDLp == currentDLp))
10641084 then {
1065- let $t03741337571 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1066- if (($t03741337571 == $t03741337571))
1085+ let $t03829538453 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1086+ if (($t03829538453 == $t03829538453))
10671087 then {
1068- let feeAmount = $t03741337571._3
1069- let state = $t03741337571._2
1070- let estimLP = $t03741337571._1
1088+ let feeAmount = $t03829538453._3
1089+ let state = $t03829538453._2
1090+ let estimLP = $t03829538453._1
10711091 let emitLpAmt = if (if ((minOutAmount > 0))
10721092 then (minOutAmount > estimLP)
10731093 else false)
10951115 let sendFeeToMatcher = if ((feeAmount > 0))
10961116 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10971117 else nil
1098- let $t03838638735 = if ((this == feeCollectorAddress))
1118+ let $t03926839617 = if ((this == feeCollectorAddress))
10991119 then $Tuple2(0, 0)
11001120 else {
11011121 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11051125 then $Tuple2(-(feeAmount), 0)
11061126 else $Tuple2(0, -(feeAmount))
11071127 }
1108- let amountAssetBalanceDelta = $t03838638735._1
1109- let priceAssetBalanceDelta = $t03838638735._2
1110- let $t03873838846 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1111- let refreshDLpActions = $t03873838846._1
1112- let updatedDLp = $t03873838846._2
1128+ let amountAssetBalanceDelta = $t03926839617._1
1129+ let priceAssetBalanceDelta = $t03926839617._2
1130+ let $t03962039728 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1131+ let refreshDLpActions = $t03962039728._1
1132+ let updatedDLp = $t03962039728._2
11131133 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11141134 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11151135 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11411161 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11421162 if ((currentDLp == currentDLp))
11431163 then {
1144- let $t03987639941 = refreshDLpInternal(0, 0, 0)
1145- let refreshDLpActions = $t03987639941._1
1146- let updatedDLp = $t03987639941._2
1164+ let $t04075840823 = refreshDLpInternal(0, 0, 0)
1165+ let refreshDLpActions = $t04075840823._1
1166+ let updatedDLp = $t04075840823._2
11471167 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11481168 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11491169 then (state ++ refreshDLpActions)
11681188 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11691189 if ((b == b))
11701190 then {
1171- let $t04075540837 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1172- let refreshDLpActions = $t04075540837._1
1173- let updatedDLp = $t04075540837._2
1191+ let $t04163741719 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1192+ let refreshDLpActions = $t04163741719._1
1193+ let updatedDLp = $t04163741719._2
11741194 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11751195 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11761196 then (state ++ refreshDLpActions)
12051225 else throwErr("exactly 1 payment are expected")]
12061226 if ((checks == checks))
12071227 then {
1208- let $t04145541610 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1209- let state = $t04145541610._1
1210- let totalAmount = $t04145541610._2
1228+ let $t04233742492 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1229+ let state = $t04233742492._1
1230+ let totalAmount = $t04233742492._2
12111231 $Tuple2(state, totalAmount)
12121232 }
12131233 else throw("Strict value is not equal to itself.")
12241244 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12251245 then {
12261246 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1227- let $t04213442198 = refreshDLpInternal(0, 0, 0)
1228- let dLpUpdateActions = $t04213442198._1
1229- let updatedDLp = $t04213442198._2
1247+ let $t04301643080 = refreshDLpInternal(0, 0, 0)
1248+ let dLpUpdateActions = $t04301643080._1
1249+ let updatedDLp = $t04301643080._2
12301250 let actions = if ((dLp != updatedDLp))
12311251 then dLpUpdateActions
12321252 else throwErr("nothing to refresh")
12551275 let newY = getYD(xp, index, D1)
12561276 let dy = (xp[index] - newY)
12571277 let totalGetRaw = max([0, toInt((dy - big1))])
1258- let $t04309843147 = takeFee(totalGetRaw)
1259- let totalGet = $t04309843147._1
1260- let feeAmount = $t04309843147._2
1278+ let $t04398044029 = takeFee(totalGetRaw)
1279+ let totalGet = $t04398044029._1
1280+ let feeAmount = $t04398044029._2
12611281 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12621282 }
12631283
12711291 let lpId = poolConfig[idxLPAsId]
12721292 let amBalance = getAccBalance(amId)
12731293 let prBalance = getAccBalance(prId)
1274- let $t04349243607 = {
1294+ let $t04437444489 = {
12751295 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12761296 if ($isInstanceOf(@, "(Int, Int)"))
12771297 then @
12781298 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12791299 }
1280- let totalGet = $t04349243607._1
1281- let feeAmount = $t04349243607._2
1300+ let totalGet = $t04437444489._1
1301+ let feeAmount = $t04437444489._2
12821302 let r = ego("", lpId, lpAssetAmount, this)
12831303 let outAmAmt = r._1
12841304 let outPrAmt = r._2
13101330 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13111331 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13121332 then {
1313- let $t04477544856 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1314- let refreshDLpActions = $t04477544856._1
1315- let updatedDLp = $t04477544856._2
1333+ let $t04565745738 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1334+ let refreshDLpActions = $t04565745738._1
1335+ let updatedDLp = $t04565745738._2
13161336 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13171337 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13181338 then (state ++ refreshDLpActions)
13541374 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13551375 if ((burnA == burnA))
13561376 then {
1357- let $t04591946000 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1358- let refreshDLpActions = $t04591946000._1
1359- let updatedDLp = $t04591946000._2
1377+ let $t04680146882 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1378+ let refreshDLpActions = $t04680146882._1
1379+ let updatedDLp = $t04680146882._2
13601380 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13611381 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13621382 then (state ++ refreshDLpActions)
14031423 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14041424 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14051425 then {
1406- let $t04724847329 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1407- let refreshDLpActions = $t04724847329._1
1408- let updatedDLp = $t04724847329._2
1426+ let $t04813048211 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1427+ let refreshDLpActions = $t04813048211._1
1428+ let updatedDLp = $t04813048211._2
14091429 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14101430 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14111431 then (state ++ refreshDLpActions)
14511471 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14521472 if ((unstakeInv == unstakeInv))
14531473 then {
1454- let $t04826348451 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1455- let state = $t04826348451._1
1456- let totalAmount = $t04826348451._2
1474+ let $t04914549333 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1475+ let state = $t04914549333._1
1476+ let totalAmount = $t04914549333._2
14571477 $Tuple2(state, totalAmount)
14581478 }
14591479 else throw("Strict value is not equal to itself.")
14691489 let amId = poolConfig[idxAmAsId]
14701490 let prId = poolConfig[idxPrAsId]
14711491 let lpId = poolConfig[idxLPAsId]
1472- let $t04871048813 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1473- let lpAmount = $t04871048813._1
1474- let state = $t04871048813._2
1475- let feeAmount = $t04871048813._3
1476- let bonus = $t04871048813._4
1492+ let $t04959249695 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1493+ let lpAmount = $t04959249695._1
1494+ let state = $t04959249695._2
1495+ let feeAmount = $t04959249695._3
1496+ let bonus = $t04959249695._4
14771497 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14781498 }
14791499
14851505 let amId = poolConfig[idxAmAsId]
14861506 let prId = poolConfig[idxPrAsId]
14871507 let lpId = poolConfig[idxLPAsId]
1488- let $t04909249196 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1489- let lpAmount = $t04909249196._1
1490- let state = $t04909249196._2
1491- let feeAmount = $t04909249196._3
1492- let bonus = $t04909249196._4
1508+ let $t04997450078 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1509+ let lpAmount = $t04997450078._1
1510+ let state = $t04997450078._2
1511+ let feeAmount = $t04997450078._3
1512+ let bonus = $t04997450078._4
14931513 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14941514 }
14951515
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, toBigInt(pmtAmt))
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 $t03028730398 = {
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 (($t03028730398 == $t03028730398))
796796 then {
797797 let feeAmount = $t03028730398._2
798798 let totalGet = $t03028730398._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 $t03058830895 = 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 = $t03058830895._1
810810 let outPr = $t03058830895._2
811811 let amBalanceNew = $t03058830895._3
812812 let prBalanceNew = $t03058830895._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 $t03168032030 = {
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 = $t03168032030._1
839839 let priceAssetBalanceDelta = $t03168032030._2
840840 let $t03203332141 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
841841 let refreshDLpActions = $t03203332141._1
842842 let updatedDLp = $t03203332141._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)
962- let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
963- if ((currentDLp == currentDLp))
962+ let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
963+ if ((amountAssetBalance == amountAssetBalance))
964964 then {
965- 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, "")
966- let emitLpAmt = e._2
967- let lpAssetId = e._7
968- let state = e._9
969- let amDiff = e._10
970- let prDiff = e._11
971- let amId = e._12
972- let prId = e._13
973- let r = invoke(fca, "emit", [emitLpAmt], nil)
974- if ((r == r))
965+ let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
966+ if ((priceAssetBalance == priceAssetBalance))
975967 then {
976- let el = match r {
977- case legacy: Address =>
978- invoke(legacy, "emit", [emitLpAmt], nil)
979- case _ =>
980- unit
981- }
982- if ((el == el))
968+ let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
969+ if ((lpAssetEmission == lpAssetEmission))
983970 then {
984- let sa = if ((amDiff > 0))
985- then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
986- else nil
987- if ((sa == sa))
971+ let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
972+ if ((currentDLp == currentDLp))
988973 then {
989- let sp = if ((prDiff > 0))
990- then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
991- else nil
992- if ((sp == sp))
974+ 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, "")
975+ let emitLpAmt = e._2
976+ let lpAssetId = e._7
977+ let state = e._9
978+ let amDiff = e._10
979+ let prDiff = e._11
980+ let amId = e._12
981+ let prId = e._13
982+ let r = invoke(fca, "emit", [emitLpAmt], nil)
983+ if ((r == r))
993984 then {
994- let lpTrnsfr = if (autoStake)
985+ let el = match r {
986+ case legacy: Address =>
987+ invoke(legacy, "emit", [emitLpAmt], nil)
988+ case _ =>
989+ unit
990+ }
991+ if ((el == el))
995992 then {
996- let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
997- if ((ss == ss))
998- then nil
993+ let sa = if ((amDiff > 0))
994+ then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
995+ else nil
996+ if ((sa == sa))
997+ then {
998+ let sp = if ((prDiff > 0))
999+ then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
1000+ else nil
1001+ if ((sp == sp))
1002+ then {
1003+ let lpTrnsfr = if (autoStake)
1004+ then {
1005+ let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
1006+ if ((ss == ss))
1007+ then nil
1008+ else throw("Strict value is not equal to itself.")
1009+ }
1010+ else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1011+ let $t03629036529 = refreshDLpInternal(0, 0, 0)
1012+ let refreshDLpActions = $t03629036529._1
1013+ let updatedDLp = $t03629036529._2
1014+ let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
1015+ if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
1016+ then {
1017+ let error = 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)], " "))
1018+ if ((error == error))
1019+ then ((state ++ lpTrnsfr) ++ refreshDLpActions)
1020+ else throw("Strict value is not equal to itself.")
1021+ }
1022+ else throw("Strict value is not equal to itself.")
1023+ }
1024+ else throw("Strict value is not equal to itself.")
1025+ }
9991026 else throw("Strict value is not equal to itself.")
10001027 }
1001- else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
1002- let $t03599736062 = refreshDLpInternal(0, 0, 0)
1003- let refreshDLpActions = $t03599736062._1
1004- let updatedDLp = $t03599736062._2
1005- let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
1006- if ((isUpdatedDLpValid == isUpdatedDLpValid))
1007- then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10081028 else throw("Strict value is not equal to itself.")
10091029 }
10101030 else throw("Strict value is not equal to itself.")
10111031 }
10121032 else throw("Strict value is not equal to itself.")
10131033 }
10141034 else throw("Strict value is not equal to itself.")
10151035 }
10161036 else throw("Strict value is not equal to itself.")
10171037 }
10181038 else throw("Strict value is not equal to itself.")
10191039 }
10201040 }
10211041
10221042
10231043
10241044 @Callable(i)
10251045 func putOneTknV2 (minOutAmount,autoStake) = {
10261046 let isPoolOneTokenOperationsDisabled = {
10271047 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10281048 if ($isInstanceOf(@, "Boolean"))
10291049 then @
10301050 else throw(($getType(@) + " couldn't be cast to Boolean"))
10311051 }
10321052 let isPutDisabled = if (if (if (igs())
10331053 then true
10341054 else (cfgPoolStatus == PoolPutDis))
10351055 then true
10361056 else (cfgPoolStatus == PoolShutdown))
10371057 then true
10381058 else isPoolOneTokenOperationsDisabled
10391059 let checks = [if (if (!(isPutDisabled))
10401060 then true
10411061 else isManager(i))
10421062 then true
10431063 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10441064 then true
10451065 else throwErr("exactly 1 payment are expected")]
10461066 if ((checks == checks))
10471067 then {
10481068 let poolConfig = gpc()
10491069 let amId = poolConfig[idxAmAsId]
10501070 let prId = poolConfig[idxPrAsId]
10511071 let lpId = fromBase58String(poolConfig[idxLPAsId])
10521072 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
10531073 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
10541074 let userAddress = if ((i.caller == this))
10551075 then i.originCaller
10561076 else i.caller
10571077 let pmt = value(i.payments[0])
10581078 let pmtAssetId = toBase58String(value(pmt.assetId))
10591079 let pmtAmt = pmt.amount
10601080 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
10611081 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
10621082 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10631083 if ((currentDLp == currentDLp))
10641084 then {
1065- let $t03741337571 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1066- if (($t03741337571 == $t03741337571))
1085+ let $t03829538453 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1086+ if (($t03829538453 == $t03829538453))
10671087 then {
1068- let feeAmount = $t03741337571._3
1069- let state = $t03741337571._2
1070- let estimLP = $t03741337571._1
1088+ let feeAmount = $t03829538453._3
1089+ let state = $t03829538453._2
1090+ let estimLP = $t03829538453._1
10711091 let emitLpAmt = if (if ((minOutAmount > 0))
10721092 then (minOutAmount > estimLP)
10731093 else false)
10741094 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10751095 else estimLP
10761096 let e = invoke(fca, "emit", [emitLpAmt], nil)
10771097 if ((e == e))
10781098 then {
10791099 let el = match e {
10801100 case legacy: Address =>
10811101 invoke(legacy, "emit", [emitLpAmt], nil)
10821102 case _ =>
10831103 unit
10841104 }
10851105 if ((el == el))
10861106 then {
10871107 let lpTrnsfr = if (autoStake)
10881108 then {
10891109 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
10901110 if ((ss == ss))
10911111 then nil
10921112 else throw("Strict value is not equal to itself.")
10931113 }
10941114 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
10951115 let sendFeeToMatcher = if ((feeAmount > 0))
10961116 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
10971117 else nil
1098- let $t03838638735 = if ((this == feeCollectorAddress))
1118+ let $t03926839617 = if ((this == feeCollectorAddress))
10991119 then $Tuple2(0, 0)
11001120 else {
11011121 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11021122 then true
11031123 else false
11041124 if (paymentInAmountAsset)
11051125 then $Tuple2(-(feeAmount), 0)
11061126 else $Tuple2(0, -(feeAmount))
11071127 }
1108- let amountAssetBalanceDelta = $t03838638735._1
1109- let priceAssetBalanceDelta = $t03838638735._2
1110- let $t03873838846 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1111- let refreshDLpActions = $t03873838846._1
1112- let updatedDLp = $t03873838846._2
1128+ let amountAssetBalanceDelta = $t03926839617._1
1129+ let priceAssetBalanceDelta = $t03926839617._2
1130+ let $t03962039728 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1131+ let refreshDLpActions = $t03962039728._1
1132+ let updatedDLp = $t03962039728._2
11131133 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11141134 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11151135 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11161136 else throw("Strict value is not equal to itself.")
11171137 }
11181138 else throw("Strict value is not equal to itself.")
11191139 }
11201140 else throw("Strict value is not equal to itself.")
11211141 }
11221142 else throw("Strict value is not equal to itself.")
11231143 }
11241144 else throw("Strict value is not equal to itself.")
11251145 }
11261146 else throw("Strict value is not equal to itself.")
11271147 }
11281148
11291149
11301150
11311151 @Callable(i)
11321152 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11331153 then throw("Wrong slpg")
11341154 else if ((size(i.payments) != 2))
11351155 then throw("2 pmnts expd")
11361156 else {
11371157 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, "")
11381158 let state = estPut._9
11391159 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11401160 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11411161 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11421162 if ((currentDLp == currentDLp))
11431163 then {
1144- let $t03987639941 = refreshDLpInternal(0, 0, 0)
1145- let refreshDLpActions = $t03987639941._1
1146- let updatedDLp = $t03987639941._2
1164+ let $t04075840823 = refreshDLpInternal(0, 0, 0)
1165+ let refreshDLpActions = $t04075840823._1
1166+ let updatedDLp = $t04075840823._2
11471167 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11481168 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11491169 then (state ++ refreshDLpActions)
11501170 else throw("Strict value is not equal to itself.")
11511171 }
11521172 else throw("Strict value is not equal to itself.")
11531173 }
11541174
11551175
11561176
11571177 @Callable(i)
11581178 func get () = {
11591179 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(value(i.payments[0]).amount))
11601180 if ((currentDLp == currentDLp))
11611181 then {
11621182 let r = cg(i)
11631183 let outAmtAmt = r._1
11641184 let outPrAmt = r._2
11651185 let pmtAmt = r._3
11661186 let pmtAssetId = r._4
11671187 let state = r._5
11681188 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11691189 if ((b == b))
11701190 then {
1171- let $t04075540837 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1172- let refreshDLpActions = $t04075540837._1
1173- let updatedDLp = $t04075540837._2
1191+ let $t04163741719 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1192+ let refreshDLpActions = $t04163741719._1
1193+ let updatedDLp = $t04163741719._2
11741194 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11751195 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11761196 then (state ++ refreshDLpActions)
11771197 else throw("Strict value is not equal to itself.")
11781198 }
11791199 else throw("Strict value is not equal to itself.")
11801200 }
11811201 else throw("Strict value is not equal to itself.")
11821202 }
11831203
11841204
11851205
11861206 @Callable(i)
11871207 func getOneTknV2 (outAssetId,minOutAmount) = {
11881208 let isPoolOneTokenOperationsDisabled = {
11891209 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11901210 if ($isInstanceOf(@, "Boolean"))
11911211 then @
11921212 else throw(($getType(@) + " couldn't be cast to Boolean"))
11931213 }
11941214 let isGetDisabled = if (if (igs())
11951215 then true
11961216 else (cfgPoolStatus == PoolShutdown))
11971217 then true
11981218 else isPoolOneTokenOperationsDisabled
11991219 let checks = [if (if (!(isGetDisabled))
12001220 then true
12011221 else isManager(i))
12021222 then true
12031223 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
12041224 then true
12051225 else throwErr("exactly 1 payment are expected")]
12061226 if ((checks == checks))
12071227 then {
1208- let $t04145541610 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1209- let state = $t04145541610._1
1210- let totalAmount = $t04145541610._2
1228+ let $t04233742492 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1229+ let state = $t04233742492._1
1230+ let totalAmount = $t04233742492._2
12111231 $Tuple2(state, totalAmount)
12121232 }
12131233 else throw("Strict value is not equal to itself.")
12141234 }
12151235
12161236
12171237
12181238 @Callable(i)
12191239 func refreshDLp () = {
12201240 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12211241 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12221242 then unit
12231243 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12241244 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12251245 then {
12261246 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1227- let $t04213442198 = refreshDLpInternal(0, 0, 0)
1228- let dLpUpdateActions = $t04213442198._1
1229- let updatedDLp = $t04213442198._2
1247+ let $t04301643080 = refreshDLpInternal(0, 0, 0)
1248+ let dLpUpdateActions = $t04301643080._1
1249+ let updatedDLp = $t04301643080._2
12301250 let actions = if ((dLp != updatedDLp))
12311251 then dLpUpdateActions
12321252 else throwErr("nothing to refresh")
12331253 $Tuple2(actions, toString(updatedDLp))
12341254 }
12351255 else throw("Strict value is not equal to itself.")
12361256 }
12371257
12381258
12391259
12401260 @Callable(i)
12411261 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12421262 let poolConfig = gpc()
12431263 let amId = poolConfig[idxAmAsId]
12441264 let prId = poolConfig[idxPrAsId]
12451265 let lpId = poolConfig[idxLPAsId]
12461266 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12471267 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12481268 let D0 = getD(xp)
12491269 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12501270 let index = if ((outAssetId == amId))
12511271 then 0
12521272 else if ((outAssetId == prId))
12531273 then 1
12541274 else throw("invalid out asset id")
12551275 let newY = getYD(xp, index, D1)
12561276 let dy = (xp[index] - newY)
12571277 let totalGetRaw = max([0, toInt((dy - big1))])
1258- let $t04309843147 = takeFee(totalGetRaw)
1259- let totalGet = $t04309843147._1
1260- let feeAmount = $t04309843147._2
1278+ let $t04398044029 = takeFee(totalGetRaw)
1279+ let totalGet = $t04398044029._1
1280+ let feeAmount = $t04398044029._2
12611281 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12621282 }
12631283
12641284
12651285
12661286 @Callable(i)
12671287 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12681288 let poolConfig = gpc()
12691289 let amId = poolConfig[idxAmAsId]
12701290 let prId = poolConfig[idxPrAsId]
12711291 let lpId = poolConfig[idxLPAsId]
12721292 let amBalance = getAccBalance(amId)
12731293 let prBalance = getAccBalance(prId)
1274- let $t04349243607 = {
1294+ let $t04437444489 = {
12751295 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12761296 if ($isInstanceOf(@, "(Int, Int)"))
12771297 then @
12781298 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12791299 }
1280- let totalGet = $t04349243607._1
1281- let feeAmount = $t04349243607._2
1300+ let totalGet = $t04437444489._1
1301+ let feeAmount = $t04437444489._2
12821302 let r = ego("", lpId, lpAssetAmount, this)
12831303 let outAmAmt = r._1
12841304 let outPrAmt = r._2
12851305 let sumOfGetAssets = (outAmAmt + outPrAmt)
12861306 let bonus = if ((sumOfGetAssets == 0))
12871307 then if ((totalGet == 0))
12881308 then 0
12891309 else throw("bonus calculation error")
12901310 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
12911311 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
12921312 }
12931313
12941314
12951315
12961316 @Callable(i)
12971317 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
12981318 let r = cg(i)
12991319 let outAmAmt = r._1
13001320 let outPrAmt = r._2
13011321 let pmtAmt = r._3
13021322 let pmtAssetId = r._4
13031323 let state = r._5
13041324 if ((noLessThenAmtAsset > outAmAmt))
13051325 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
13061326 else if ((noLessThenPriceAsset > outPrAmt))
13071327 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
13081328 else {
13091329 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
13101330 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13111331 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13121332 then {
1313- let $t04477544856 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1314- let refreshDLpActions = $t04477544856._1
1315- let updatedDLp = $t04477544856._2
1333+ let $t04565745738 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1334+ let refreshDLpActions = $t04565745738._1
1335+ let updatedDLp = $t04565745738._2
13161336 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13171337 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13181338 then (state ++ refreshDLpActions)
13191339 else throw("Strict value is not equal to itself.")
13201340 }
13211341 else throw("Strict value is not equal to itself.")
13221342 }
13231343 }
13241344
13251345
13261346
13271347 @Callable(i)
13281348 func unstakeAndGet (amount) = {
13291349 let checkPayments = if ((size(i.payments) != 0))
13301350 then throw("No pmnts expd")
13311351 else true
13321352 if ((checkPayments == checkPayments))
13331353 then {
13341354 let cfg = gpc()
13351355 let factoryCfg = gfc()
13361356 let lpAssetId = fromBase58String(cfg[idxLPAsId])
13371357 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13381358 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13391359 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13401360 if ((unstakeInv == unstakeInv))
13411361 then {
13421362 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13431363 let outAmAmt = r._1
13441364 let outPrAmt = r._2
13451365 let sts = parseIntValue(r._9)
13461366 let state = r._10
13471367 let v = if (if (igs())
13481368 then true
13491369 else (sts == PoolShutdown))
13501370 then throw(("Blocked: " + toString(sts)))
13511371 else true
13521372 if ((v == v))
13531373 then {
13541374 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13551375 if ((burnA == burnA))
13561376 then {
1357- let $t04591946000 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1358- let refreshDLpActions = $t04591946000._1
1359- let updatedDLp = $t04591946000._2
1377+ let $t04680146882 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1378+ let refreshDLpActions = $t04680146882._1
1379+ let updatedDLp = $t04680146882._2
13601380 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13611381 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13621382 then (state ++ refreshDLpActions)
13631383 else throw("Strict value is not equal to itself.")
13641384 }
13651385 else throw("Strict value is not equal to itself.")
13661386 }
13671387 else throw("Strict value is not equal to itself.")
13681388 }
13691389 else throw("Strict value is not equal to itself.")
13701390 }
13711391 else throw("Strict value is not equal to itself.")
13721392 }
13731393
13741394
13751395
13761396 @Callable(i)
13771397 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13781398 let isGetDisabled = if (igs())
13791399 then true
13801400 else (cfgPoolStatus == PoolShutdown)
13811401 let checks = [if (!(isGetDisabled))
13821402 then true
13831403 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
13841404 then true
13851405 else throw("no payments are expected")]
13861406 if ((checks == checks))
13871407 then {
13881408 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13891409 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
13901410 if ((unstakeInv == unstakeInv))
13911411 then {
13921412 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
13931413 let outAmAmt = res._1
13941414 let outPrAmt = res._2
13951415 let state = res._10
13961416 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
13971417 then true
13981418 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
13991419 then true
14001420 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
14011421 if ((checkAmounts == checkAmounts))
14021422 then {
14031423 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14041424 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14051425 then {
1406- let $t04724847329 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1407- let refreshDLpActions = $t04724847329._1
1408- let updatedDLp = $t04724847329._2
1426+ let $t04813048211 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1427+ let refreshDLpActions = $t04813048211._1
1428+ let updatedDLp = $t04813048211._2
14091429 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14101430 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14111431 then (state ++ refreshDLpActions)
14121432 else throw("Strict value is not equal to itself.")
14131433 }
14141434 else throw("Strict value is not equal to itself.")
14151435 }
14161436 else throw("Strict value is not equal to itself.")
14171437 }
14181438 else throw("Strict value is not equal to itself.")
14191439 }
14201440 else throw("Strict value is not equal to itself.")
14211441 }
14221442
14231443
14241444
14251445 @Callable(i)
14261446 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14271447 let isPoolOneTokenOperationsDisabled = {
14281448 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14291449 if ($isInstanceOf(@, "Boolean"))
14301450 then @
14311451 else throw(($getType(@) + " couldn't be cast to Boolean"))
14321452 }
14331453 let isGetDisabled = if (if (igs())
14341454 then true
14351455 else (cfgPoolStatus == PoolShutdown))
14361456 then true
14371457 else isPoolOneTokenOperationsDisabled
14381458 let checks = [if (if (!(isGetDisabled))
14391459 then true
14401460 else isManager(i))
14411461 then true
14421462 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14431463 then true
14441464 else throwErr("no payments are expected")]
14451465 if ((checks == checks))
14461466 then {
14471467 let cfg = gpc()
14481468 let factoryCfg = gfc()
14491469 let lpAssetId = fromBase58String(cfg[idxLPAsId])
14501470 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14511471 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14521472 if ((unstakeInv == unstakeInv))
14531473 then {
1454- let $t04826348451 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1455- let state = $t04826348451._1
1456- let totalAmount = $t04826348451._2
1474+ let $t04914549333 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1475+ let state = $t04914549333._1
1476+ let totalAmount = $t04914549333._2
14571477 $Tuple2(state, totalAmount)
14581478 }
14591479 else throw("Strict value is not equal to itself.")
14601480 }
14611481 else throw("Strict value is not equal to itself.")
14621482 }
14631483
14641484
14651485
14661486 @Callable(i)
14671487 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
14681488 let poolConfig = gpc()
14691489 let amId = poolConfig[idxAmAsId]
14701490 let prId = poolConfig[idxPrAsId]
14711491 let lpId = poolConfig[idxLPAsId]
1472- let $t04871048813 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1473- let lpAmount = $t04871048813._1
1474- let state = $t04871048813._2
1475- let feeAmount = $t04871048813._3
1476- let bonus = $t04871048813._4
1492+ let $t04959249695 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1493+ let lpAmount = $t04959249695._1
1494+ let state = $t04959249695._2
1495+ let feeAmount = $t04959249695._3
1496+ let bonus = $t04959249695._4
14771497 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14781498 }
14791499
14801500
14811501
14821502 @Callable(i)
14831503 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
14841504 let poolConfig = gpc()
14851505 let amId = poolConfig[idxAmAsId]
14861506 let prId = poolConfig[idxPrAsId]
14871507 let lpId = poolConfig[idxLPAsId]
1488- let $t04909249196 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1489- let lpAmount = $t04909249196._1
1490- let state = $t04909249196._2
1491- let feeAmount = $t04909249196._3
1492- let bonus = $t04909249196._4
1508+ let $t04997450078 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1509+ let lpAmount = $t04997450078._1
1510+ let state = $t04997450078._2
1511+ let feeAmount = $t04997450078._3
1512+ let bonus = $t04997450078._4
14931513 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14941514 }
14951515
14961516
14971517
14981518 @Callable(i)
14991519 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
15001520 then throw("denied")
15011521 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
15021522
15031523
15041524
15051525 @Callable(i)
15061526 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
15071527 then pd
15081528 else [StringEntry(k, v)]
15091529
15101530
15111531
15121532 @Callable(i)
15131533 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
15141534 then pd
15151535 else [IntegerEntry(k, v)]
15161536
15171537
15181538
15191539 @Callable(i)
15201540 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15211541
15221542
15231543
15241544 @Callable(i)
15251545 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15261546
15271547
15281548
15291549 @Callable(i)
15301550 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15311551 let pr = calcPrices(amAmt, prAmt, lpAmt)
15321552 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15331553 }
15341554
15351555
15361556
15371557 @Callable(i)
15381558 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15391559
15401560
15411561
15421562 @Callable(i)
15431563 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15441564
15451565
15461566
15471567 @Callable(i)
15481568 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15491569
15501570
15511571
15521572 @Callable(i)
15531573 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, ""))
15541574
15551575
15561576
15571577 @Callable(i)
15581578 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15591579 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15601580 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15611581 }
15621582
15631583
15641584
15651585 @Callable(i)
15661586 func getFeeREADONLY () = $Tuple2(nil, fee)
15671587
15681588
15691589 @Verifier(tx)
15701590 func verify () = {
15711591 let targetPublicKey = match m() {
15721592 case pk: ByteVector =>
15731593 pk
15741594 case _: Unit =>
15751595 tx.senderPublicKey
15761596 case _ =>
15771597 throw("Match error")
15781598 }
15791599 match tx {
15801600 case order: Order =>
15811601 let matcherPub = mp()
15821602 let orderValid = validateMatcherOrderAllowed(order)
15831603 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
15841604 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
15851605 if (if (if (orderValid)
15861606 then senderValid
15871607 else false)
15881608 then matcherValid
15891609 else false)
15901610 then true
15911611 else toe(orderValid, senderValid, matcherValid)
15921612 case s: SetScriptTransaction =>
15931613 let newHash = blake2b256(value(s.script))
15941614 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
15951615 let currentHash = scriptHash(this)
15961616 if (if ((allowedHash == newHash))
15971617 then (currentHash != newHash)
15981618 else false)
15991619 then true
16001620 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16011621 case _ =>
16021622 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16031623 }
16041624 }
16051625

github/deemru/w8io/169f3d6 
168.89 ms