tx · 9MPr2oUqcQzra19X979j66nAt9tkigNqSzj3wyDjnUVP

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.03700000 Waves

2022.12.16 11:44 [2362634] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "9MPr2oUqcQzra19X979j66nAt9tkigNqSzj3wyDjnUVP", "fee": 3700000, "feeAssetId": null, "timestamp": 1671180304076, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "4oJ1cEpDVH1c1MhU2vMA7vtwqVJ29inaZ8YdU75nu49wmpRmYXgLHQWToDsjoqm95b4hHqdqKRUeq2PbuPjzSNkP" ], "script": "base64:BgL/KAgCEgMKAQgSAwoBCBIAEgQKAgEEEgQKAgEEEgMKAQESABIECgIIARIAEgQKAggBEgQKAggBEgQKAgEBEgMKAQESBQoDAQEBEgUKAwEIARIECgIBCBIECgIBCBIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgRiaWczIgRiaWc0IgpzbGlwcGFnZTREIgt3YXZlc1N0cmluZyIFQW11bHQiBURjb252IgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIgpQb29sUHV0RGlzIg5Qb29sTWF0Y2hlckRpcyIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyIJaWR4UG9vbFN0IglpZHhMUEFzSWQiCWlkeEFtQXNJZCIJaWR4UHJBc0lkIgtpZHhBbXRBc0RjbSINaWR4UHJpY2VBc0RjbSILaWR4SUFtdEFzSWQiDWlkeElQcmljZUFzSWQiD2lkeEZhY3RT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AQkBBXZhbHVlAQgFAmRLBnNjcmlwdAQCaFgJANsEAQkBBXZhbHVlAQkAnQgCBQJhUAkBAmF6AAQCaFkJAPEHAQUEdGhpcwMDCQAAAgUCaFgFAmhXCQECIT0CBQJoWQUCaFcHBgkA9AMDCAUCaFAJYm9keUJ5dGVzCQCRAwIIBQJoUAZwcm9vZnMAAAUCaFIJAPQDAwgFAmhQCWJvZHlCeXRlcwkAkQMCCAUCaFAGcHJvb2ZzAAAFAmhS5QWvSQ==", "chainId": 84, "height": 2362634, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JD8Uf5NgCtxf4VwW7HqZGBFxVrm1Jhc4j3M2P6Zcibht Next: 8maJiFYcVoRkWgDVLibwg7pgx8273TM66DNavf4VEZHa Diff:
OldNewDifferences
10141014 let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
10151015 if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
10161016 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)], " "))
1017+ let error = if ((updatedDLp >= currentDLp))
1018+ 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)], " "))
10181020 if ((error == error))
10191021 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10201022 else throw("Strict value is not equal to itself.")
10821084 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10831085 if ((currentDLp == currentDLp))
10841086 then {
1085- let $t03829538453 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1086- if (($t03829538453 == $t03829538453))
1087+ let $t03832338481 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1088+ if (($t03832338481 == $t03832338481))
10871089 then {
1088- let feeAmount = $t03829538453._3
1089- let state = $t03829538453._2
1090- let estimLP = $t03829538453._1
1090+ let feeAmount = $t03832338481._3
1091+ let state = $t03832338481._2
1092+ let estimLP = $t03832338481._1
10911093 let emitLpAmt = if (if ((minOutAmount > 0))
10921094 then (minOutAmount > estimLP)
10931095 else false)
11151117 let sendFeeToMatcher = if ((feeAmount > 0))
11161118 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11171119 else nil
1118- let $t03926839617 = if ((this == feeCollectorAddress))
1120+ let $t03929639645 = if ((this == feeCollectorAddress))
11191121 then $Tuple2(0, 0)
11201122 else {
11211123 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11251127 then $Tuple2(-(feeAmount), 0)
11261128 else $Tuple2(0, -(feeAmount))
11271129 }
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
1130+ let amountAssetBalanceDelta = $t03929639645._1
1131+ let priceAssetBalanceDelta = $t03929639645._2
1132+ let $t03964839756 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1133+ let refreshDLpActions = $t03964839756._1
1134+ let updatedDLp = $t03964839756._2
11331135 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11341136 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11351137 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11611163 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11621164 if ((currentDLp == currentDLp))
11631165 then {
1164- let $t04075840823 = refreshDLpInternal(0, 0, 0)
1165- let refreshDLpActions = $t04075840823._1
1166- let updatedDLp = $t04075840823._2
1166+ let $t04078640851 = refreshDLpInternal(0, 0, 0)
1167+ let refreshDLpActions = $t04078640851._1
1168+ let updatedDLp = $t04078640851._2
11671169 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11681170 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11691171 then (state ++ refreshDLpActions)
11881190 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11891191 if ((b == b))
11901192 then {
1191- let $t04163741719 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1192- let refreshDLpActions = $t04163741719._1
1193- let updatedDLp = $t04163741719._2
1193+ let $t04166541747 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1194+ let refreshDLpActions = $t04166541747._1
1195+ let updatedDLp = $t04166541747._2
11941196 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11951197 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11961198 then (state ++ refreshDLpActions)
12251227 else throwErr("exactly 1 payment are expected")]
12261228 if ((checks == checks))
12271229 then {
1228- let $t04233742492 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1229- let state = $t04233742492._1
1230- let totalAmount = $t04233742492._2
1230+ let $t04236542520 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1231+ let state = $t04236542520._1
1232+ let totalAmount = $t04236542520._2
12311233 $Tuple2(state, totalAmount)
12321234 }
12331235 else throw("Strict value is not equal to itself.")
12441246 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12451247 then {
12461248 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1247- let $t04301643080 = refreshDLpInternal(0, 0, 0)
1248- let dLpUpdateActions = $t04301643080._1
1249- let updatedDLp = $t04301643080._2
1249+ let $t04304443108 = refreshDLpInternal(0, 0, 0)
1250+ let dLpUpdateActions = $t04304443108._1
1251+ let updatedDLp = $t04304443108._2
12501252 let actions = if ((dLp != updatedDLp))
12511253 then dLpUpdateActions
12521254 else throwErr("nothing to refresh")
12751277 let newY = getYD(xp, index, D1)
12761278 let dy = (xp[index] - newY)
12771279 let totalGetRaw = max([0, toInt((dy - big1))])
1278- let $t04398044029 = takeFee(totalGetRaw)
1279- let totalGet = $t04398044029._1
1280- let feeAmount = $t04398044029._2
1280+ let $t04400844057 = takeFee(totalGetRaw)
1281+ let totalGet = $t04400844057._1
1282+ let feeAmount = $t04400844057._2
12811283 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12821284 }
12831285
12911293 let lpId = poolConfig[idxLPAsId]
12921294 let amBalance = getAccBalance(amId)
12931295 let prBalance = getAccBalance(prId)
1294- let $t04437444489 = {
1296+ let $t04440244517 = {
12951297 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12961298 if ($isInstanceOf(@, "(Int, Int)"))
12971299 then @
12981300 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12991301 }
1300- let totalGet = $t04437444489._1
1301- let feeAmount = $t04437444489._2
1302+ let totalGet = $t04440244517._1
1303+ let feeAmount = $t04440244517._2
13021304 let r = ego("", lpId, lpAssetAmount, this)
13031305 let outAmAmt = r._1
13041306 let outPrAmt = r._2
13301332 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13311333 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13321334 then {
1333- let $t04565745738 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1334- let refreshDLpActions = $t04565745738._1
1335- let updatedDLp = $t04565745738._2
1335+ let $t04568545766 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1336+ let refreshDLpActions = $t04568545766._1
1337+ let updatedDLp = $t04568545766._2
13361338 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13371339 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13381340 then (state ++ refreshDLpActions)
13741376 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13751377 if ((burnA == burnA))
13761378 then {
1377- let $t04680146882 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1378- let refreshDLpActions = $t04680146882._1
1379- let updatedDLp = $t04680146882._2
1379+ let $t04682946910 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1380+ let refreshDLpActions = $t04682946910._1
1381+ let updatedDLp = $t04682946910._2
13801382 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13811383 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13821384 then (state ++ refreshDLpActions)
14231425 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14241426 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14251427 then {
1426- let $t04813048211 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1427- let refreshDLpActions = $t04813048211._1
1428- let updatedDLp = $t04813048211._2
1428+ let $t04815848239 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1429+ let refreshDLpActions = $t04815848239._1
1430+ let updatedDLp = $t04815848239._2
14291431 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14301432 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14311433 then (state ++ refreshDLpActions)
14711473 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14721474 if ((unstakeInv == unstakeInv))
14731475 then {
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
1476+ let $t04917349361 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1477+ let state = $t04917349361._1
1478+ let totalAmount = $t04917349361._2
14771479 $Tuple2(state, totalAmount)
14781480 }
14791481 else throw("Strict value is not equal to itself.")
14891491 let amId = poolConfig[idxAmAsId]
14901492 let prId = poolConfig[idxPrAsId]
14911493 let lpId = poolConfig[idxLPAsId]
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
1494+ let $t04962049723 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1495+ let lpAmount = $t04962049723._1
1496+ let state = $t04962049723._2
1497+ let feeAmount = $t04962049723._3
1498+ let bonus = $t04962049723._4
14971499 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14981500 }
14991501
15051507 let amId = poolConfig[idxAmAsId]
15061508 let prId = poolConfig[idxPrAsId]
15071509 let lpId = poolConfig[idxLPAsId]
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
1510+ let $t05000250106 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1511+ let lpAmount = $t05000250106._1
1512+ let state = $t05000250106._2
1513+ let feeAmount = $t05000250106._3
1514+ let bonus = $t05000250106._4
15131515 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15141516 }
15151517
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)
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)]
10111011 let $t03629036529 = refreshDLpInternal(0, 0, 0)
10121012 let refreshDLpActions = $t03629036529._1
10131013 let updatedDLp = $t03629036529._2
10141014 let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
10151015 if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
10161016 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)], " "))
1017+ let error = if ((updatedDLp >= currentDLp))
1018+ 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)], " "))
10181020 if ((error == error))
10191021 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
10201022 else throw("Strict value is not equal to itself.")
10211023 }
10221024 else throw("Strict value is not equal to itself.")
10231025 }
10241026 else throw("Strict value is not equal to itself.")
10251027 }
10261028 else throw("Strict value is not equal to itself.")
10271029 }
10281030 else throw("Strict value is not equal to itself.")
10291031 }
10301032 else throw("Strict value is not equal to itself.")
10311033 }
10321034 else throw("Strict value is not equal to itself.")
10331035 }
10341036 else throw("Strict value is not equal to itself.")
10351037 }
10361038 else throw("Strict value is not equal to itself.")
10371039 }
10381040 else throw("Strict value is not equal to itself.")
10391041 }
10401042 }
10411043
10421044
10431045
10441046 @Callable(i)
10451047 func putOneTknV2 (minOutAmount,autoStake) = {
10461048 let isPoolOneTokenOperationsDisabled = {
10471049 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
10481050 if ($isInstanceOf(@, "Boolean"))
10491051 then @
10501052 else throw(($getType(@) + " couldn't be cast to Boolean"))
10511053 }
10521054 let isPutDisabled = if (if (if (igs())
10531055 then true
10541056 else (cfgPoolStatus == PoolPutDis))
10551057 then true
10561058 else (cfgPoolStatus == PoolShutdown))
10571059 then true
10581060 else isPoolOneTokenOperationsDisabled
10591061 let checks = [if (if (!(isPutDisabled))
10601062 then true
10611063 else isManager(i))
10621064 then true
10631065 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
10641066 then true
10651067 else throwErr("exactly 1 payment are expected")]
10661068 if ((checks == checks))
10671069 then {
10681070 let poolConfig = gpc()
10691071 let amId = poolConfig[idxAmAsId]
10701072 let prId = poolConfig[idxPrAsId]
10711073 let lpId = fromBase58String(poolConfig[idxLPAsId])
10721074 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
10731075 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
10741076 let userAddress = if ((i.caller == this))
10751077 then i.originCaller
10761078 else i.caller
10771079 let pmt = value(i.payments[0])
10781080 let pmtAssetId = toBase58String(value(pmt.assetId))
10791081 let pmtAmt = pmt.amount
10801082 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
10811083 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
10821084 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
10831085 if ((currentDLp == currentDLp))
10841086 then {
1085- let $t03829538453 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1086- if (($t03829538453 == $t03829538453))
1087+ let $t03832338481 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
1088+ if (($t03832338481 == $t03832338481))
10871089 then {
1088- let feeAmount = $t03829538453._3
1089- let state = $t03829538453._2
1090- let estimLP = $t03829538453._1
1090+ let feeAmount = $t03832338481._3
1091+ let state = $t03832338481._2
1092+ let estimLP = $t03832338481._1
10911093 let emitLpAmt = if (if ((minOutAmount > 0))
10921094 then (minOutAmount > estimLP)
10931095 else false)
10941096 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
10951097 else estimLP
10961098 let e = invoke(fca, "emit", [emitLpAmt], nil)
10971099 if ((e == e))
10981100 then {
10991101 let el = match e {
11001102 case legacy: Address =>
11011103 invoke(legacy, "emit", [emitLpAmt], nil)
11021104 case _ =>
11031105 unit
11041106 }
11051107 if ((el == el))
11061108 then {
11071109 let lpTrnsfr = if (autoStake)
11081110 then {
11091111 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpId, emitLpAmt)])
11101112 if ((ss == ss))
11111113 then nil
11121114 else throw("Strict value is not equal to itself.")
11131115 }
11141116 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
11151117 let sendFeeToMatcher = if ((feeAmount > 0))
11161118 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
11171119 else nil
1118- let $t03926839617 = if ((this == feeCollectorAddress))
1120+ let $t03929639645 = if ((this == feeCollectorAddress))
11191121 then $Tuple2(0, 0)
11201122 else {
11211123 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
11221124 then true
11231125 else false
11241126 if (paymentInAmountAsset)
11251127 then $Tuple2(-(feeAmount), 0)
11261128 else $Tuple2(0, -(feeAmount))
11271129 }
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
1130+ let amountAssetBalanceDelta = $t03929639645._1
1131+ let priceAssetBalanceDelta = $t03929639645._2
1132+ let $t03964839756 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
1133+ let refreshDLpActions = $t03964839756._1
1134+ let updatedDLp = $t03964839756._2
11331135 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11341136 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11351137 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
11361138 else throw("Strict value is not equal to itself.")
11371139 }
11381140 else throw("Strict value is not equal to itself.")
11391141 }
11401142 else throw("Strict value is not equal to itself.")
11411143 }
11421144 else throw("Strict value is not equal to itself.")
11431145 }
11441146 else throw("Strict value is not equal to itself.")
11451147 }
11461148 else throw("Strict value is not equal to itself.")
11471149 }
11481150
11491151
11501152
11511153 @Callable(i)
11521154 func putForFree (maxSlpg) = if ((0 > maxSlpg))
11531155 then throw("Wrong slpg")
11541156 else if ((size(i.payments) != 2))
11551157 then throw("2 pmnts expd")
11561158 else {
11571159 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, "")
11581160 let state = estPut._9
11591161 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
11601162 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
11611163 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
11621164 if ((currentDLp == currentDLp))
11631165 then {
1164- let $t04075840823 = refreshDLpInternal(0, 0, 0)
1165- let refreshDLpActions = $t04075840823._1
1166- let updatedDLp = $t04075840823._2
1166+ let $t04078640851 = refreshDLpInternal(0, 0, 0)
1167+ let refreshDLpActions = $t04078640851._1
1168+ let updatedDLp = $t04078640851._2
11671169 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11681170 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11691171 then (state ++ refreshDLpActions)
11701172 else throw("Strict value is not equal to itself.")
11711173 }
11721174 else throw("Strict value is not equal to itself.")
11731175 }
11741176
11751177
11761178
11771179 @Callable(i)
11781180 func get () = {
11791181 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(value(i.payments[0]).amount))
11801182 if ((currentDLp == currentDLp))
11811183 then {
11821184 let r = cg(i)
11831185 let outAmtAmt = r._1
11841186 let outPrAmt = r._2
11851187 let pmtAmt = r._3
11861188 let pmtAssetId = r._4
11871189 let state = r._5
11881190 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
11891191 if ((b == b))
11901192 then {
1191- let $t04163741719 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1192- let refreshDLpActions = $t04163741719._1
1193- let updatedDLp = $t04163741719._2
1193+ let $t04166541747 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
1194+ let refreshDLpActions = $t04166541747._1
1195+ let updatedDLp = $t04166541747._2
11941196 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
11951197 if ((isUpdatedDLpValid == isUpdatedDLpValid))
11961198 then (state ++ refreshDLpActions)
11971199 else throw("Strict value is not equal to itself.")
11981200 }
11991201 else throw("Strict value is not equal to itself.")
12001202 }
12011203 else throw("Strict value is not equal to itself.")
12021204 }
12031205
12041206
12051207
12061208 @Callable(i)
12071209 func getOneTknV2 (outAssetId,minOutAmount) = {
12081210 let isPoolOneTokenOperationsDisabled = {
12091211 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
12101212 if ($isInstanceOf(@, "Boolean"))
12111213 then @
12121214 else throw(($getType(@) + " couldn't be cast to Boolean"))
12131215 }
12141216 let isGetDisabled = if (if (igs())
12151217 then true
12161218 else (cfgPoolStatus == PoolShutdown))
12171219 then true
12181220 else isPoolOneTokenOperationsDisabled
12191221 let checks = [if (if (!(isGetDisabled))
12201222 then true
12211223 else isManager(i))
12221224 then true
12231225 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
12241226 then true
12251227 else throwErr("exactly 1 payment are expected")]
12261228 if ((checks == checks))
12271229 then {
1228- let $t04233742492 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1229- let state = $t04233742492._1
1230- let totalAmount = $t04233742492._2
1230+ let $t04236542520 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
1231+ let state = $t04236542520._1
1232+ let totalAmount = $t04236542520._2
12311233 $Tuple2(state, totalAmount)
12321234 }
12331235 else throw("Strict value is not equal to itself.")
12341236 }
12351237
12361238
12371239
12381240 @Callable(i)
12391241 func refreshDLp () = {
12401242 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
12411243 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
12421244 then unit
12431245 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
12441246 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
12451247 then {
12461248 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
1247- let $t04301643080 = refreshDLpInternal(0, 0, 0)
1248- let dLpUpdateActions = $t04301643080._1
1249- let updatedDLp = $t04301643080._2
1249+ let $t04304443108 = refreshDLpInternal(0, 0, 0)
1250+ let dLpUpdateActions = $t04304443108._1
1251+ let updatedDLp = $t04304443108._2
12501252 let actions = if ((dLp != updatedDLp))
12511253 then dLpUpdateActions
12521254 else throwErr("nothing to refresh")
12531255 $Tuple2(actions, toString(updatedDLp))
12541256 }
12551257 else throw("Strict value is not equal to itself.")
12561258 }
12571259
12581260
12591261
12601262 @Callable(i)
12611263 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
12621264 let poolConfig = gpc()
12631265 let amId = poolConfig[idxAmAsId]
12641266 let prId = poolConfig[idxPrAsId]
12651267 let lpId = poolConfig[idxLPAsId]
12661268 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
12671269 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
12681270 let D0 = getD(xp)
12691271 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
12701272 let index = if ((outAssetId == amId))
12711273 then 0
12721274 else if ((outAssetId == prId))
12731275 then 1
12741276 else throw("invalid out asset id")
12751277 let newY = getYD(xp, index, D1)
12761278 let dy = (xp[index] - newY)
12771279 let totalGetRaw = max([0, toInt((dy - big1))])
1278- let $t04398044029 = takeFee(totalGetRaw)
1279- let totalGet = $t04398044029._1
1280- let feeAmount = $t04398044029._2
1280+ let $t04400844057 = takeFee(totalGetRaw)
1281+ let totalGet = $t04400844057._1
1282+ let feeAmount = $t04400844057._2
12811283 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
12821284 }
12831285
12841286
12851287
12861288 @Callable(i)
12871289 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
12881290 let poolConfig = gpc()
12891291 let amId = poolConfig[idxAmAsId]
12901292 let prId = poolConfig[idxPrAsId]
12911293 let lpId = poolConfig[idxLPAsId]
12921294 let amBalance = getAccBalance(amId)
12931295 let prBalance = getAccBalance(prId)
1294- let $t04437444489 = {
1296+ let $t04440244517 = {
12951297 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
12961298 if ($isInstanceOf(@, "(Int, Int)"))
12971299 then @
12981300 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
12991301 }
1300- let totalGet = $t04437444489._1
1301- let feeAmount = $t04437444489._2
1302+ let totalGet = $t04440244517._1
1303+ let feeAmount = $t04440244517._2
13021304 let r = ego("", lpId, lpAssetAmount, this)
13031305 let outAmAmt = r._1
13041306 let outPrAmt = r._2
13051307 let sumOfGetAssets = (outAmAmt + outPrAmt)
13061308 let bonus = if ((sumOfGetAssets == 0))
13071309 then if ((totalGet == 0))
13081310 then 0
13091311 else throw("bonus calculation error")
13101312 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
13111313 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
13121314 }
13131315
13141316
13151317
13161318 @Callable(i)
13171319 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
13181320 let r = cg(i)
13191321 let outAmAmt = r._1
13201322 let outPrAmt = r._2
13211323 let pmtAmt = r._3
13221324 let pmtAssetId = r._4
13231325 let state = r._5
13241326 if ((noLessThenAmtAsset > outAmAmt))
13251327 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
13261328 else if ((noLessThenPriceAsset > outPrAmt))
13271329 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
13281330 else {
13291331 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(pmtAmt))
13301332 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
13311333 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
13321334 then {
1333- let $t04565745738 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1334- let refreshDLpActions = $t04565745738._1
1335- let updatedDLp = $t04565745738._2
1335+ let $t04568545766 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1336+ let refreshDLpActions = $t04568545766._1
1337+ let updatedDLp = $t04568545766._2
13361338 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13371339 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13381340 then (state ++ refreshDLpActions)
13391341 else throw("Strict value is not equal to itself.")
13401342 }
13411343 else throw("Strict value is not equal to itself.")
13421344 }
13431345 }
13441346
13451347
13461348
13471349 @Callable(i)
13481350 func unstakeAndGet (amount) = {
13491351 let checkPayments = if ((size(i.payments) != 0))
13501352 then throw("No pmnts expd")
13511353 else true
13521354 if ((checkPayments == checkPayments))
13531355 then {
13541356 let cfg = gpc()
13551357 let factoryCfg = gfc()
13561358 let lpAssetId = fromBase58String(cfg[idxLPAsId])
13571359 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
13581360 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
13591361 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
13601362 if ((unstakeInv == unstakeInv))
13611363 then {
13621364 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
13631365 let outAmAmt = r._1
13641366 let outPrAmt = r._2
13651367 let sts = parseIntValue(r._9)
13661368 let state = r._10
13671369 let v = if (if (igs())
13681370 then true
13691371 else (sts == PoolShutdown))
13701372 then throw(("Blocked: " + toString(sts)))
13711373 else true
13721374 if ((v == v))
13731375 then {
13741376 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
13751377 if ((burnA == burnA))
13761378 then {
1377- let $t04680146882 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1378- let refreshDLpActions = $t04680146882._1
1379- let updatedDLp = $t04680146882._2
1379+ let $t04682946910 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1380+ let refreshDLpActions = $t04682946910._1
1381+ let updatedDLp = $t04682946910._2
13801382 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
13811383 if ((isUpdatedDLpValid == isUpdatedDLpValid))
13821384 then (state ++ refreshDLpActions)
13831385 else throw("Strict value is not equal to itself.")
13841386 }
13851387 else throw("Strict value is not equal to itself.")
13861388 }
13871389 else throw("Strict value is not equal to itself.")
13881390 }
13891391 else throw("Strict value is not equal to itself.")
13901392 }
13911393 else throw("Strict value is not equal to itself.")
13921394 }
13931395
13941396
13951397
13961398 @Callable(i)
13971399 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
13981400 let isGetDisabled = if (igs())
13991401 then true
14001402 else (cfgPoolStatus == PoolShutdown)
14011403 let checks = [if (!(isGetDisabled))
14021404 then true
14031405 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
14041406 then true
14051407 else throw("no payments are expected")]
14061408 if ((checks == checks))
14071409 then {
14081410 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
14091411 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
14101412 if ((unstakeInv == unstakeInv))
14111413 then {
14121414 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
14131415 let outAmAmt = res._1
14141416 let outPrAmt = res._2
14151417 let state = res._10
14161418 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
14171419 then true
14181420 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
14191421 then true
14201422 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
14211423 if ((checkAmounts == checkAmounts))
14221424 then {
14231425 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
14241426 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14251427 then {
1426- let $t04813048211 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1427- let refreshDLpActions = $t04813048211._1
1428- let updatedDLp = $t04813048211._2
1428+ let $t04815848239 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
1429+ let refreshDLpActions = $t04815848239._1
1430+ let updatedDLp = $t04815848239._2
14291431 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14301432 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14311433 then (state ++ refreshDLpActions)
14321434 else throw("Strict value is not equal to itself.")
14331435 }
14341436 else throw("Strict value is not equal to itself.")
14351437 }
14361438 else throw("Strict value is not equal to itself.")
14371439 }
14381440 else throw("Strict value is not equal to itself.")
14391441 }
14401442 else throw("Strict value is not equal to itself.")
14411443 }
14421444
14431445
14441446
14451447 @Callable(i)
14461448 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
14471449 let isPoolOneTokenOperationsDisabled = {
14481450 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
14491451 if ($isInstanceOf(@, "Boolean"))
14501452 then @
14511453 else throw(($getType(@) + " couldn't be cast to Boolean"))
14521454 }
14531455 let isGetDisabled = if (if (igs())
14541456 then true
14551457 else (cfgPoolStatus == PoolShutdown))
14561458 then true
14571459 else isPoolOneTokenOperationsDisabled
14581460 let checks = [if (if (!(isGetDisabled))
14591461 then true
14601462 else isManager(i))
14611463 then true
14621464 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
14631465 then true
14641466 else throwErr("no payments are expected")]
14651467 if ((checks == checks))
14661468 then {
14671469 let cfg = gpc()
14681470 let factoryCfg = gfc()
14691471 let lpAssetId = fromBase58String(cfg[idxLPAsId])
14701472 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14711473 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), unstakeAmount], nil)
14721474 if ((unstakeInv == unstakeInv))
14731475 then {
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
1476+ let $t04917349361 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
1477+ let state = $t04917349361._1
1478+ let totalAmount = $t04917349361._2
14771479 $Tuple2(state, totalAmount)
14781480 }
14791481 else throw("Strict value is not equal to itself.")
14801482 }
14811483 else throw("Strict value is not equal to itself.")
14821484 }
14831485
14841486
14851487
14861488 @Callable(i)
14871489 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
14881490 let poolConfig = gpc()
14891491 let amId = poolConfig[idxAmAsId]
14901492 let prId = poolConfig[idxPrAsId]
14911493 let lpId = poolConfig[idxLPAsId]
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
1494+ let $t04962049723 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
1495+ let lpAmount = $t04962049723._1
1496+ let state = $t04962049723._2
1497+ let feeAmount = $t04962049723._3
1498+ let bonus = $t04962049723._4
14971499 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
14981500 }
14991501
15001502
15011503
15021504 @Callable(i)
15031505 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
15041506 let poolConfig = gpc()
15051507 let amId = poolConfig[idxAmAsId]
15061508 let prId = poolConfig[idxPrAsId]
15071509 let lpId = poolConfig[idxLPAsId]
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
1510+ let $t05000250106 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
1511+ let lpAmount = $t05000250106._1
1512+ let state = $t05000250106._2
1513+ let feeAmount = $t05000250106._3
1514+ let bonus = $t05000250106._4
15131515 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15141516 }
15151517
15161518
15171519
15181520 @Callable(i)
15191521 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
15201522 then throw("denied")
15211523 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
15221524
15231525
15241526
15251527 @Callable(i)
15261528 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
15271529 then pd
15281530 else [StringEntry(k, v)]
15291531
15301532
15311533
15321534 @Callable(i)
15331535 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
15341536 then pd
15351537 else [IntegerEntry(k, v)]
15361538
15371539
15381540
15391541 @Callable(i)
15401542 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
15411543
15421544
15431545
15441546 @Callable(i)
15451547 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
15461548
15471549
15481550
15491551 @Callable(i)
15501552 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
15511553 let pr = calcPrices(amAmt, prAmt, lpAmt)
15521554 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
15531555 }
15541556
15551557
15561558
15571559 @Callable(i)
15581560 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
15591561
15601562
15611563
15621564 @Callable(i)
15631565 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
15641566
15651567
15661568
15671569 @Callable(i)
15681570 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
15691571
15701572
15711573
15721574 @Callable(i)
15731575 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, ""))
15741576
15751577
15761578
15771579 @Callable(i)
15781580 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
15791581 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
15801582 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
15811583 }
15821584
15831585
15841586
15851587 @Callable(i)
15861588 func getFeeREADONLY () = $Tuple2(nil, fee)
15871589
15881590
15891591 @Verifier(tx)
15901592 func verify () = {
15911593 let targetPublicKey = match m() {
15921594 case pk: ByteVector =>
15931595 pk
15941596 case _: Unit =>
15951597 tx.senderPublicKey
15961598 case _ =>
15971599 throw("Match error")
15981600 }
15991601 match tx {
16001602 case order: Order =>
16011603 let matcherPub = mp()
16021604 let orderValid = validateMatcherOrderAllowed(order)
16031605 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
16041606 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
16051607 if (if (if (orderValid)
16061608 then senderValid
16071609 else false)
16081610 then matcherValid
16091611 else false)
16101612 then true
16111613 else toe(orderValid, senderValid, matcherValid)
16121614 case s: SetScriptTransaction =>
16131615 let newHash = blake2b256(value(s.script))
16141616 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
16151617 let currentHash = scriptHash(this)
16161618 if (if ((allowedHash == newHash))
16171619 then (currentHash != newHash)
16181620 else false)
16191621 then true
16201622 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16211623 case _ =>
16221624 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
16231625 }
16241626 }
16251627

github/deemru/w8io/169f3d6 
218.74 ms