tx · 8C89DQdGAq2zYL1opkyKEFnEfWauNzuqVwTM4c6FbQCZ

3N4nTJ5sSp5X5ChS2bBBmwNMn1eeRzT1FoP:  -0.04000000 Waves

2023.05.04 14:23 [2562945] smart account 3N4nTJ5sSp5X5ChS2bBBmwNMn1eeRzT1FoP > SELF 0.00000000 Waves

{ "type": 13, "id": "8C89DQdGAq2zYL1opkyKEFnEfWauNzuqVwTM4c6FbQCZ", "fee": 4000000, "feeAssetId": null, "timestamp": 1683199393055, "version": 2, "chainId": 84, "sender": "3N4nTJ5sSp5X5ChS2bBBmwNMn1eeRzT1FoP", "senderPublicKey": "EsqRXDXnACFAdXz6EPhF1SbKyeV7MVuoyDqmXsMz7ySv", "proofs": [ "25c7dsnRo8eiTzPyoDe2h4ZkYRX989UfXQ7sxmzQLAZiBfLQaLQbfEfoSnU6hNmP4qvKDYTT8Szmf1S9onnbuQKS" ], "script": "base64:BgKlKggCEgUKAwEEARIHCgUBBAEIARIDCgEIEgMKAQgSABIECgIBBBIECgIBBBIDCgEBEgASBAoCCAESABIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEBARIFCgMBCAESBAoCAQgSBAoCAQgSBAoCCAgSABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCILd2F2ZXNTdHJpbmciCmFtcEluaXRpYWwiBUFtdWx0IgNTRVAiClBvb2xQdXREaXMiDlBvb2xNYXRjaGVyRGlzIgxQb29sU2h1dGRvd24iDmlkeFBvb2xBZGRyZXNzIglpZHhQb29sU3QiCWlkeExQQXNJZCIJaWR4QW1Bc0lkIglpZHhQckFzSWQiC2lkeEFtdEFzRGNtIg1pZHhQcmljZUFzRGNtIg9pZHhGYWN0U3Rha0NudHIiEmlkeEZhY3RvcnlSZXN0Q250ci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FkJAQJhTwAEAmhaAwkBAmZZAAkAlAoCBgIACQECZUEBBQJlQgQCYXgIBQJoWgJfMQQCYXkIBQJoWgJfMgQCYXoJAPQDAwgFAmVCCWJvZHlCeXRlcwkAkQMCCAUCZUIGcHJvb2ZzAAAIBQJlQg9zZW5kZXJQdWJsaWNLZXkEAmFBCQD0AwMIBQJlQglib2R5Qnl0ZXMJAJEDAggFAmVCBnByb29mcwABBQJoWQMDAwUCYXgFAmF6BwUCYUEHBgkBAmF3BAUCYXgFAmF5BQJhegUCYUEDCQABAgUCZk4CFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJjYwUCZk4DCQD0AwMIBQJoVglib2R5Qnl0ZXMJAJEDAggFAmhWBnByb29mcwAABQJoWAYEAmlhCQD2AwEJAQV2YWx1ZQEIBQJjYwZzY3JpcHQEAmliCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYUkJAQJhcwAEAmljCQDxBwEFBHRoaXMDCQAAAgUCaWIFAmlhCQECIT0CBQJpYwUCaWEHCQD0AwMIBQJoVglib2R5Qnl0ZXMJAJEDAggFAmhWBnByb29mcwAABQJoWKTIBrQ=", "height": 2562945, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HgfTatQtDLFsSdWqvXGPqP5E69XUJ383yz5mdLuxxnAx Next: DJtL4wPFzS7SscXythACbzdqakEZnsvZ7NxxjYDjQ46m 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 wavesString = "WAVES"
2323
2424 let ampInitial = 50
2525
2626 let Amult = "100"
2727
2828 let SEP = "__"
2929
3030 let PoolPutDis = 2
3131
3232 let PoolMatcherDis = 3
3333
3434 let PoolShutdown = 4
3535
3636 let idxPoolAddress = 1
3737
3838 let idxPoolSt = 2
3939
4040 let idxLPAsId = 3
4141
4242 let idxAmAsId = 4
4343
4444 let idxPrAsId = 5
4545
4646 let idxAmtAsDcm = 6
4747
4848 let idxPriceAsDcm = 7
4949
5050 let idxFactStakCntr = 1
5151
5252 let idxFactoryRestCntr = 6
5353
5454 let idxFactSlippCntr = 7
5555
5656 let feeDefault = fraction(10, scale8, 10000)
5757
5858 func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
5959
6060
6161 func t1BigInt (origVal,origScaleMult) = fraction(origVal, scale18, origScaleMult)
6262
6363
6464 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
6565
6666
6767 func fromX18Round (val,resultScaleMult,round) = toInt(fraction(val, toBigInt(resultScaleMult), scale18, round))
6868
6969
7070 func abs (val) = if ((zeroBigInt > val))
7171 then -(val)
7272 else val
7373
7474
7575 func absBigInt (val) = if ((zeroBigInt > val))
7676 then -(val)
7777 else val
7878
7979
8080 func fc () = "%s__factoryContract"
8181
8282
8383 func mpk () = "%s__managerPublicKey"
8484
8585
8686 func pmpk () = "%s__pendingManagerPublicKey"
8787
8888
8989 func pl () = "%s%s__price__last"
9090
9191
9292 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
9393
9494
9595 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
9696
9797
9898 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
9999
100100
101101 func aa () = "%s__amountAsset"
102102
103103
104104 func pa () = "%s__priceAsset"
105105
106106
107107 func amp () = "%s__amp"
108108
109109
110110 func keyAmpHistory (heightBlocks) = ("%s%d__amp__" + toString(heightBlocks))
111111
112112
113113 func keyChangeAmpLastCall () = "%s__changeAmpLastCall"
114114
115115
116116 let keyFee = "%s__fee"
117117
118118 let fee = valueOrElse(getInteger(this, keyFee), feeDefault)
119119
120120 let keyDLp = makeString(["%s", "dLp"], SEP)
121121
122122 let keyDLpRefreshedHeight = makeString(["%s", "dLpRefreshedHeight"], SEP)
123123
124124 let keyDLpRefreshDelay = makeString(["%s", "refreshDLpDelay"], SEP)
125125
126126 let dLpRefreshDelayDefault = 30
127127
128128 let dLpRefreshDelay = valueOrElse(getInteger(this, keyDLpRefreshDelay), dLpRefreshDelayDefault)
129129
130130 func fcfg () = "%s__factoryConfig"
131131
132132
133133 func mtpk () = "%s%s__matcher__publicKey"
134134
135135
136136 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
137137
138138
139139 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
140140
141141
142142 func aps () = "%s__shutdown"
143143
144144
145145 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
146146
147147
148148 func keyFeeCollectorAddress () = "%s__feeCollectorAddress"
149149
150150
151151 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
152152
153153
154154 func throwOrderError (orderValid,orderValidInfo,senderValid,matcherValid) = throw((((((((("order validation failed: orderValid=" + toString(orderValid)) + " (") + orderValidInfo) + ")") + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid)))
155155
156156
157157 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
158158
159159
160160 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
161161
162162
163163 func throwErr (msg) = throw(makeString(["lp_stable.ride:", msg], " "))
164164
165165
166166 func fmtErr (msg) = makeString(["lp_stable.ride:", msg], " ")
167167
168168
169169 let fca = addressFromStringValue(strf(this, fc()))
170170
171171 let inFee = {
172172 let @ = invoke(fca, "getInFeeREADONLY", [toString(this)], nil)
173173 if ($isInstanceOf(@, "Int"))
174174 then @
175175 else throw(($getType(@) + " couldn't be cast to Int"))
176176 }
177177
178178 let outFee = {
179179 let @ = invoke(fca, "getOutFeeREADONLY", [toString(this)], nil)
180180 if ($isInstanceOf(@, "Int"))
181181 then @
182182 else throw(($getType(@) + " couldn't be cast to Int"))
183183 }
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 $t080878273 = poolConfigParsed
220220
221221 let cfgPoolStatus = $t080878273._2
222222
223223 let cfgLpAssetId = $t080878273._3
224224
225225 let cfgAmountAssetId = $t080878273._4
226226
227227 let cfgPriceAssetId = $t080878273._5
228228
229229 let cfgAmountAssetDecimals = $t080878273._6
230230
231231 let cfgPriceAssetDecimals = $t080878273._7
232232
233233 func gfc () = split(strf(fca, fcfg()), SEP)
234234
235235
236236 let factoryConfig = gfc()
237237
238238 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
239239
240240 let restContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactoryRestCntr]), "Invalid gwx contract address")
241241
242242 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)
243243
244244
245245 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)
246246
247247
248248 func getAccBalance (assetId) = if ((assetId == "WAVES"))
249249 then wavesBalance(this).available
250250 else assetBalance(this, fromBase58String(assetId))
251251
252252
253253 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
254254
255255
256256 func cpbir (prAmtX18,amAmtX18,round) = fraction(prAmtX18, scale18, amAmtX18, round)
257257
258258
259259 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
260260 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
261261 let prAsAmtX18 = t1(prAmt, prAssetDcm)
262262 cpbi(prAsAmtX18, amtAsAmtX18)
263263 }
264264
265265
266266 func calcPrices (amAmt,prAmt,lpAmt) = {
267267 let amtAsDcm = cfgAmountAssetDecimals
268268 let prAsDcm = cfgPriceAssetDecimals
269269 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
270270 let amAmtX18 = t1(amAmt, amtAsDcm)
271271 let prAmtX18 = t1(prAmt, prAsDcm)
272272 let lpAmtX18 = t1(lpAmt, scale8)
273273 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
274274 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
275275 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
276276 }
277277
278278
279279 func takeFee (amount,fee) = {
280280 let feeAmount = if ((fee == 0))
281281 then 0
282282 else fraction(amount, fee, scale8)
283283 $Tuple2((amount - feeAmount), feeAmount)
284284 }
285285
286286
287287 func getD (xp) = {
288288 let xp0 = xp[0]
289289 let xp1 = xp[1]
290290 let s = (xp0 + xp1)
291291 if ((s == big0))
292292 then big0
293293 else {
294294 let a = parseIntValue(A)
295295 let ann = (a * 2)
296296 let p = fraction(xp0, xp1, big1)
297297 let xp0_xp1_n_n = fraction(p, big4, big1)
298298 let ann_s = fraction(toBigInt(ann), s, big1)
299299 let ann_1 = toBigInt((ann - 1))
300300 func calcDNext (d) = {
301301 let dd = fraction(d, d, big1)
302302 let ddd = fraction(dd, d, big1)
303303 let dp = fraction(ddd, big1, xp0_xp1_n_n)
304304 fraction((ann_s + fraction(dp, big2, big1)), d, (fraction(ann_1, d, big1) + fraction(big3, dp, big1)))
305305 }
306306
307307 func calc (acc,i) = if (acc._2)
308308 then acc
309309 else {
310310 let d = acc._1
311311 let dNext = calcDNext(d)
312312 let dDiffRaw = (dNext - value(d))
313313 let dDiff = if ((big0 > dDiffRaw))
314314 then -(dDiffRaw)
315315 else dDiffRaw
316316 if ((big1 >= dDiff))
317317 then $Tuple2(dNext, true)
318318 else $Tuple2(dNext, false)
319319 }
320320
321321 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
322322 let $t01277812826 = {
323323 let $l = arr
324324 let $s = size($l)
325325 let $acc0 = $Tuple2(s, false)
326326 func $f0_1 ($a,$i) = if (($i >= $s))
327327 then $a
328328 else calc($a, $l[$i])
329329
330330 func $f0_2 ($a,$i) = if (($i >= $s))
331331 then $a
332332 else throw("List size exceeds 17")
333333
334334 $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($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17)
335335 }
336336 let d = $t01277812826._1
337337 let found = $t01277812826._2
338338 if (found)
339339 then d
340340 else throw(("D calculation error, D = " + toString(d)))
341341 }
342342 }
343343
344344
345345 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
346346 let lpId = cfgLpAssetId
347347 let amId = toBase58String(value(cfgAmountAssetId))
348348 let prId = toBase58String(value(cfgPriceAssetId))
349349 let amDcm = cfgAmountAssetDecimals
350350 let prDcm = cfgPriceAssetDecimals
351351 let sts = toString(cfgPoolStatus)
352352 let lpEmiss = valueOrErrorMessage(assetInfo(lpId), "Wrong LP id").quantity
353353 if ((toBase58String(lpId) != pmtAssetId))
354354 then throw("Wrong pmt asset")
355355 else {
356356 let amBalance = getAccBalance(amId)
357357 let amBalanceX18 = t1(amBalance, amDcm)
358358 let prBalance = getAccBalance(prId)
359359 let prBalanceX18 = t1(prBalance, prDcm)
360360 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
361361 let curPrice = f1(curPriceX18, scale8)
362362 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
363363 let lpEmissX18 = t1(lpEmiss, scale8)
364364 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
365365 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
366366 let outAmAmt = fromX18Round(outAmAmtX18, amDcm, FLOOR)
367367 let outPrAmt = fromX18Round(outPrAmtX18, prDcm, FLOOR)
368368 let state = if ((txId58 == ""))
369369 then nil
370370 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
371371 then unit
372372 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
373373 then unit
374374 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)]
375375 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
376376 }
377377 }
378378
379379
380380 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
381381 let lpId = cfgLpAssetId
382382 let amIdStr = toBase58String(value(cfgAmountAssetId))
383383 let prIdStr = toBase58String(value(cfgPriceAssetId))
384384 let amtDcm = cfgAmountAssetDecimals
385385 let priceDcm = cfgPriceAssetDecimals
386386 let sts = toString(cfgPoolStatus)
387387 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
388388 let amBalance = if (isEval)
389389 then getAccBalance(amIdStr)
390390 else if (if (isOneAsset)
391391 then (pmtId == amIdStr)
392392 else false)
393393 then (getAccBalance(amIdStr) - pmtAmt)
394394 else if (isOneAsset)
395395 then getAccBalance(amIdStr)
396396 else (getAccBalance(amIdStr) - inAmAmt)
397397 let prBalance = if (isEval)
398398 then getAccBalance(prIdStr)
399399 else if (if (isOneAsset)
400400 then (pmtId == prIdStr)
401401 else false)
402402 then (getAccBalance(prIdStr) - pmtAmt)
403403 else if (isOneAsset)
404404 then getAccBalance(prIdStr)
405405 else (getAccBalance(prIdStr) - inPrAmt)
406406 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
407407 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
408408 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
409409 let amBalanceX18 = t1(amBalance, amtDcm)
410410 let prBalanceX18 = t1(prBalance, priceDcm)
411411 let D0 = getD([amBalanceX18, prBalanceX18])
412412 let r = if ((lpEm == 0))
413413 then {
414414 let D1 = getD([(amBalanceX18 + inAmAssetAmtX18), (prBalanceX18 + inPrAssetAmtX18)])
415415 let checkD = if ((D1 > D0))
416416 then true
417417 else throw("D1 should be greater than D0")
418418 if ((checkD == checkD))
419419 then {
420420 let curPriceX18 = zeroBigInt
421421 let slippageX18 = zeroBigInt
422422 let lpAmtX18 = D1
423423 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
424424 }
425425 else throw("Strict value is not equal to itself.")
426426 }
427427 else {
428428 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
429429 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
430430 let slippageX18 = t1(slippage, scale8)
431431 if (if (if (validateSlippage)
432432 then (curPriceX18 != zeroBigInt)
433433 else false)
434434 then (slippageRealX18 > slippageX18)
435435 else false)
436436 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
437437 else {
438438 let lpEmissionX18 = t1(lpEm, scale8)
439439 let prViaAmX18 = fraction(inAmAssetAmtX18, cpbir(prBalanceX18, amBalanceX18, CEILING), scale18, CEILING)
440440 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, cpbir(prBalanceX18, amBalanceX18, FLOOR), CEILING)
441441 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
442442 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
443443 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
444444 let expAmtAssetAmtX18 = expectedAmts._1
445445 let expPriceAssetAmtX18 = expectedAmts._2
446446 let D1 = getD([(amBalanceX18 + expAmtAssetAmtX18), (prBalanceX18 + expPriceAssetAmtX18)])
447447 let checkD = if ((D1 > D0))
448448 then true
449449 else throw("D1 should be greater than D0")
450450 if ((checkD == checkD))
451451 then {
452452 let lpAmtX18 = fraction(lpEmissionX18, (D1 - D0), D0)
453453 $Tuple5(fromX18Round(lpAmtX18, scale8, FLOOR), fromX18Round(expAmtAssetAmtX18, amtDcm, CEILING), fromX18Round(expPriceAssetAmtX18, priceDcm, CEILING), curPriceX18, slippageX18)
454454 }
455455 else throw("Strict value is not equal to itself.")
456456 }
457457 }
458458 let calcLpAmt = r._1
459459 let calcAmAssetPmt = r._2
460460 let calcPrAssetPmt = r._3
461461 let curPrice = f1(r._4, scale8)
462462 let slippageCalc = f1(r._5, scale8)
463463 if ((0 >= calcLpAmt))
464464 then throw("LP <= 0")
465465 else {
466466 let emitLpAmt = if (!(emitLp))
467467 then 0
468468 else calcLpAmt
469469 let amDiff = (inAmAmt - calcAmAssetPmt)
470470 let prDiff = (inPrAmt - calcPrAssetPmt)
471471 let $t02058820933 = if (if (isOneAsset)
472472 then (pmtId == amIdStr)
473473 else false)
474474 then $Tuple2(pmtAmt, 0)
475475 else if (if (isOneAsset)
476476 then (pmtId == prIdStr)
477477 else false)
478478 then $Tuple2(0, pmtAmt)
479479 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
480480 let writeAmAmt = $t02058820933._1
481481 let writePrAmt = $t02058820933._2
482482 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))]
483483 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
484484 }
485485 }
486486
487487
488488 func getYD (xp,i,D) = {
489489 let n = big2
490490 let x = xp[if ((i == 0))
491491 then 1
492492 else 0]
493493 let aPrecision = parseBigIntValue(Amult)
494494 let a = (parseBigIntValue(A) * aPrecision)
495495 let s = x
496496 let ann = (a * n)
497497 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
498498 let b = ((s + ((D * aPrecision) / ann)) - D)
499499 func calc (acc,cur) = {
500500 let $t02212822148 = acc
501501 let y = $t02212822148._1
502502 let found = $t02212822148._2
503503 if ((found != unit))
504504 then acc
505505 else {
506506 let yNext = (((y * y) + c) / ((big2 * y) + b))
507507 let yDiff = absBigInt((yNext - value(y)))
508508 if ((big1 >= yDiff))
509509 then $Tuple2(yNext, cur)
510510 else $Tuple2(yNext, unit)
511511 }
512512 }
513513
514514 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
515515 let $t02245522502 = {
516516 let $l = arr
517517 let $s = size($l)
518518 let $acc0 = $Tuple2(D, unit)
519519 func $f0_1 ($a,$i) = if (($i >= $s))
520520 then $a
521521 else calc($a, $l[$i])
522522
523523 func $f0_2 ($a,$i) = if (($i >= $s))
524524 then $a
525525 else throw("List size exceeds 15")
526526
527527 $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)
528528 }
529529 let y = $t02245522502._1
530530 let found = $t02245522502._2
531531 if ((found != unit))
532532 then y
533533 else throw(("Y calculation error, Y = " + toString(y)))
534534 }
535535
536536
537537 func calcDLp (amountBalance,priceBalance,lpEmission) = {
538538 let updatedDLp = fraction(getD([t1BigInt(amountBalance, toBigInt(cfgAmountAssetDecimals)), t1BigInt(priceBalance, toBigInt(cfgPriceAssetDecimals))]), scale18, lpEmission)
539539 if ((lpEmission == big0))
540540 then big0
541541 else updatedDLp
542542 }
543543
544544
545545 func calcCurrentDLp (amountAssetDelta,priceAssetDelta,lpAssetEmissionDelta) = {
546546 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amountAssetDelta)
547547 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - priceAssetDelta)
548548 let lpAssetEmission = (toBigInt(value(assetInfo(cfgLpAssetId)).quantity) - lpAssetEmissionDelta)
549549 let currentDLp = calcDLp(amountAssetBalance, priceAssetBalance, lpAssetEmission)
550550 currentDLp
551551 }
552552
553553
554554 func refreshDLpInternal (amountAssetBalanceDelta,priceAssetBalanceDelta,lpAssetEmissionDelta) = {
555555 let amountAssetBalance = (getAccBalance(assetIdToString(cfgAmountAssetId)) + amountAssetBalanceDelta)
556556 let priceAssetBalance = (getAccBalance(assetIdToString(cfgPriceAssetId)) + priceAssetBalanceDelta)
557557 let lpAssetEmission = (value(assetInfo(cfgLpAssetId)).quantity + lpAssetEmissionDelta)
558558 let updatedDLp = calcDLp(toBigInt(amountAssetBalance), toBigInt(priceAssetBalance), toBigInt(lpAssetEmission))
559559 let actions = [IntegerEntry(keyDLpRefreshedHeight, height), StringEntry(keyDLp, toString(updatedDLp))]
560560 $Tuple2(actions, updatedDLp)
561561 }
562562
563563
564564 func validateUpdatedDLp (oldDLp,updatedDLp) = if ((updatedDLp >= oldDLp))
565565 then true
566566 else throwErr("updated DLp lower than current DLp")
567567
568568
569569 func validateMatcherOrderAllowed (order) = {
570570 let amountAssetBalance = getAccBalance(assetIdToString(cfgAmountAssetId))
571571 let priceAssetBalance = getAccBalance(assetIdToString(cfgPriceAssetId))
572572 let amountAssetAmount = order.amount
573573 let priceAssetAmount = fraction(order.amount, order.price, scale8, FLOOR)
574574 let $t02470024912 = if ((order.orderType == Buy))
575575 then $Tuple2(amountAssetAmount, -(priceAssetAmount))
576576 else $Tuple2(-(amountAssetAmount), priceAssetAmount)
577577 let amountAssetBalanceDelta = $t02470024912._1
578578 let priceAssetBalanceDelta = $t02470024912._2
579579 if (if (if (igs())
580580 then true
581581 else (cfgPoolStatus == PoolMatcherDis))
582582 then true
583583 else (cfgPoolStatus == PoolShutdown))
584584 then throw("Admin blocked")
585585 else if (if ((order.assetPair.amountAsset != cfgAmountAssetId))
586586 then true
587587 else (order.assetPair.priceAsset != cfgPriceAssetId))
588588 then throw("Wr assets")
589589 else {
590590 let dLp = parseBigIntValue(valueOrElse(getString(this, keyDLp), "0"))
591591 let $t02525425354 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
592592 let unusedActions = $t02525425354._1
593593 let dLpNew = $t02525425354._2
594594 let isOrderValid = (dLpNew >= dLp)
595595 let info = makeString(["dLp=", toString(dLp), " dLpNew=", toString(dLpNew), " amountAssetBalance=", toString(amountAssetBalance), " priceAssetBalance=", toString(priceAssetBalance), " amountAssetBalanceDelta=", toString(amountAssetBalanceDelta), " priceAssetBalanceDelta=", toString(priceAssetBalanceDelta), " height=", toString(height)], "")
596596 $Tuple2(isOrderValid, info)
597597 }
598598 }
599599
600600
601601 func cg (i) = if ((size(i.payments) != 1))
602602 then throw("1 pmnt exp")
603603 else {
604604 let pmt = value(i.payments[0])
605605 let pmtAssetId = value(pmt.assetId)
606606 let pmtAmt = pmt.amount
607607 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
608608 let outAmAmt = r._1
609609 let outPrAmt = r._2
610610 let sts = parseIntValue(r._9)
611611 let state = r._10
612612 if (if (igs())
613613 then true
614614 else (sts == PoolShutdown))
615615 then throw(("Admin blocked: " + toString(sts)))
616616 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
617617 }
618618
619619
620620 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
621621 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, (txId == ""), emitLp, isOneAsset, validateSlippage, pmtAmt, pmtId)
622622 let sts = parseIntValue(r._8)
623623 if (if (if (igs())
624624 then true
625625 else (sts == PoolPutDis))
626626 then true
627627 else (sts == PoolShutdown))
628628 then throw(("Blocked:" + toString(sts)))
629629 else r
630630 }
631631
632632
633633 func calcPutOneTkn (pmtAmtRaw,pmtAssetId,userAddress,txId,withTakeFee) = {
634634 let amId = toBase58String(value(cfgAmountAssetId))
635635 let prId = toBase58String(value(cfgPriceAssetId))
636636 let lpId = cfgLpAssetId
637637 let amtDcm = cfgAmountAssetDecimals
638638 let priceDcm = cfgPriceAssetDecimals
639639 let lpAssetEmission = toBigInt(valueOrErrorMessage(assetInfo(lpId), "invalid lp asset").quantity)
640640 let chechEmission = if ((lpAssetEmission > big0))
641641 then true
642642 else throw("initial deposit requires all coins")
643643 if ((chechEmission == chechEmission))
644644 then {
645645 let amBalance = getAccBalance(amId)
646646 let prBalance = getAccBalance(prId)
647647 let $t02801028472 = if ((txId == ""))
648648 then $Tuple2(amBalance, prBalance)
649649 else if ((pmtAssetId == amId))
650650 then if ((pmtAmtRaw > amBalance))
651651 then throw("invalid payment amount")
652652 else $Tuple2((amBalance - pmtAmtRaw), prBalance)
653653 else if ((pmtAssetId == prId))
654654 then if ((pmtAmtRaw > prBalance))
655655 then throw("invalid payment amount")
656656 else $Tuple2(amBalance, (prBalance - pmtAmtRaw))
657657 else throw("wrong pmtAssetId")
658658 let amBalanceOld = $t02801028472._1
659659 let prBalanceOld = $t02801028472._2
660660 let $t02847828654 = if ((pmtAssetId == amId))
661661 then $Tuple2(pmtAmtRaw, 0)
662662 else if ((pmtAssetId == prId))
663663 then $Tuple2(0, pmtAmtRaw)
664664 else throw("invalid payment")
665665 let amAmountRaw = $t02847828654._1
666666 let prAmountRaw = $t02847828654._2
667667 let $t02865828912 = if (withTakeFee)
668668 then $Tuple3(takeFee(amAmountRaw, inFee)._1, takeFee(prAmountRaw, inFee)._1, takeFee(pmtAmtRaw, inFee)._2)
669669 else $Tuple3(amAmountRaw, prAmountRaw, 0)
670670 let amAmount = $t02865828912._1
671671 let prAmount = $t02865828912._2
672672 let feeAmount = $t02865828912._3
673673 let amBalanceNew = (amBalanceOld + amAmount)
674674 let prBalanceNew = (prBalanceOld + prAmount)
675675 let D0 = getD([t1(amBalanceOld, cfgAmountAssetDecimals), t1(prBalanceOld, cfgPriceAssetDecimals)])
676676 let D1 = getD([t1(amBalanceNew, cfgAmountAssetDecimals), t1(prBalanceNew, cfgPriceAssetDecimals)])
677677 let checkD = if ((D1 > D0))
678678 then true
679679 else throw()
680680 if ((checkD == checkD))
681681 then {
682682 let lpAmount = fraction(lpAssetEmission, (D1 - D0), D0, FLOOR)
683683 let curPrice = f1(cpbi(t1(prBalanceNew, priceDcm), t1(amBalanceNew, amtDcm)), scale8)
684684 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))]
685685 let poolProportion = fraction(prBalanceOld, scale8, amBalanceOld)
686686 let amountAssetPart = fraction(pmtAmtRaw, scale8, (poolProportion + scale8))
687687 let priceAssetPart = (pmtAmtRaw - amountAssetPart)
688688 let lpAmtBoth = fraction(lpAssetEmission, toBigInt(priceAssetPart), toBigInt(prBalanceOld))
689689 let bonus = toInt(fraction((lpAmount - lpAmtBoth), scale8BigInt, lpAmtBoth))
690690 $Tuple4(toInt(lpAmount), commonState, feeAmount, bonus)
691691 }
692692 else throw("Strict value is not equal to itself.")
693693 }
694694 else throw("Strict value is not equal to itself.")
695695 }
696696
697697
698698 func getOneTknV2Internal (outAssetId,minOutAmount,payments,caller,originCaller,transactionId) = {
699699 let lpId = toBase58String(value(cfgLpAssetId))
700700 let amId = toBase58String(value(cfgAmountAssetId))
701701 let prId = toBase58String(value(cfgPriceAssetId))
702702 let amDecimals = cfgAmountAssetDecimals
703703 let prDecimals = cfgPriceAssetDecimals
704704 let poolStatus = cfgPoolStatus
705705 let userAddress = if ((caller == restContract))
706706 then originCaller
707707 else caller
708708 let pmt = value(payments[0])
709709 let pmtAssetId = value(pmt.assetId)
710710 let pmtAmt = pmt.amount
711711 let currentDLp = calcCurrentDLp(big0, big0, big0)
712712 if ((currentDLp == currentDLp))
713713 then {
714714 let txId58 = toBase58String(transactionId)
715715 if ((lpId != toBase58String(pmtAssetId)))
716716 then throw("Wrong LP")
717717 else {
718718 let amBalance = getAccBalance(amId)
719719 let prBalance = getAccBalance(prId)
720720 let $t03102431135 = {
721721 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
722722 if ($isInstanceOf(@, "(Int, Int)"))
723723 then @
724724 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
725725 }
726726 if (($t03102431135 == $t03102431135))
727727 then {
728728 let feeAmount = $t03102431135._2
729729 let totalGet = $t03102431135._1
730730 let totalAmount = if (if ((minOutAmount > 0))
731731 then (minOutAmount > totalGet)
732732 else false)
733733 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
734734 else totalGet
735735 let $t03132531632 = if ((outAssetId == amId))
736736 then $Tuple4(totalAmount, 0, ((amBalance - totalAmount) - feeAmount), prBalance)
737737 else if ((outAssetId == prId))
738738 then $Tuple4(0, totalAmount, amBalance, ((prBalance - totalAmount) - feeAmount))
739739 else throw("invalid out asset id")
740740 let outAm = $t03132531632._1
741741 let outPr = $t03132531632._2
742742 let amBalanceNew = $t03132531632._3
743743 let prBalanceNew = $t03132531632._4
744744 let curPrX18 = cpbi(t1(prBalanceNew, prDecimals), t1(amBalanceNew, amDecimals))
745745 let curPr = f1(curPrX18, scale8)
746746 let outAssetIdOrWaves = if ((outAssetId == "WAVES"))
747747 then unit
748748 else fromBase58String(outAssetId)
749749 let sendFeeToMatcher = if ((feeAmount > 0))
750750 then [ScriptTransfer(feeCollectorAddress, feeAmount, outAssetIdOrWaves)]
751751 else nil
752752 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)
753753 if ((state == state))
754754 then {
755755 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
756756 if ((burn == burn))
757757 then {
758758 let $t03241732767 = {
759759 let feeAmountForCalc = if ((this == feeCollectorAddress))
760760 then 0
761761 else feeAmount
762762 let outInAmountAsset = if ((parseAssetId(outAssetId) == cfgAmountAssetId))
763763 then true
764764 else false
765765 if (outInAmountAsset)
766766 then $Tuple2(-((totalGet + feeAmountForCalc)), 0)
767767 else $Tuple2(0, -((totalGet + feeAmountForCalc)))
768768 }
769769 let amountAssetBalanceDelta = $t03241732767._1
770770 let priceAssetBalanceDelta = $t03241732767._2
771771 let $t03277032878 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
772772 let refreshDLpActions = $t03277032878._1
773773 let updatedDLp = $t03277032878._2
774774 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
775775 if ((isUpdatedDLpValid == isUpdatedDLpValid))
776776 then $Tuple2((state ++ refreshDLpActions), totalAmount)
777777 else throw("Strict value is not equal to itself.")
778778 }
779779 else throw("Strict value is not equal to itself.")
780780 }
781781 else throw("Strict value is not equal to itself.")
782782 }
783783 else throw("Strict value is not equal to itself.")
784784 }
785785 }
786786 else throw("Strict value is not equal to itself.")
787787 }
788788
789789
790790 func m () = match getString(mpk()) {
791791 case s: String =>
792792 fromBase58String(s)
793793 case _: Unit =>
794794 unit
795795 case _ =>
796796 throw("Match error")
797797 }
798798
799799
800800 func pm () = match getString(pmpk()) {
801801 case s: String =>
802802 fromBase58String(s)
803803 case _: Unit =>
804804 unit
805805 case _ =>
806806 throw("Match error")
807807 }
808808
809809
810810 let pd = throw("Permission denied")
811811
812812 func isManager (i) = match m() {
813813 case pk: ByteVector =>
814814 (i.callerPublicKey == pk)
815815 case _: Unit =>
816816 (i.caller == this)
817817 case _ =>
818818 throw("Match error")
819819 }
820820
821821
822822 func mm (i) = match m() {
823823 case pk: ByteVector =>
824824 if ((i.callerPublicKey == pk))
825825 then true
826826 else pd
827827 case _: Unit =>
828828 if ((i.caller == this))
829829 then true
830830 else pd
831831 case _ =>
832832 throw("Match error")
833833 }
834834
835835
836836 func getY (isReverse,D,poolAmountInBalance) = {
837837 let poolConfig = gpc()
838838 let amId = poolConfig[idxAmAsId]
839839 let prId = poolConfig[idxPrAsId]
840840 let n = big2
841841 let aPrecision = parseBigIntValue(Amult)
842842 let a = (parseBigIntValue(A) * aPrecision)
843843 let xp = if ((isReverse == false))
844844 then [(toBigInt(getAccBalance(amId)) + poolAmountInBalance), toBigInt(getAccBalance(prId))]
845845 else [(toBigInt(getAccBalance(prId)) + poolAmountInBalance), toBigInt(getAccBalance(amId))]
846846 let x = xp[0]
847847 let s = x
848848 let ann = (a * n)
849849 let c = (((((D * D) / (x * n)) * D) * aPrecision) / (ann * n))
850850 let b = ((s + ((D * aPrecision) / ann)) - D)
851851 func calc (acc,cur) = {
852852 let $t03432534345 = acc
853853 let y = $t03432534345._1
854854 let found = $t03432534345._2
855855 if ((found != unit))
856856 then acc
857857 else {
858858 let yNext = (((y * y) + c) / ((big2 * y) + b))
859859 let yDiff = absBigInt((yNext - value(y)))
860860 if ((big1 >= yDiff))
861861 then $Tuple2(yNext, cur)
862862 else $Tuple2(yNext, unit)
863863 }
864864 }
865865
866866 let arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
867867 let $t03467634723 = {
868868 let $l = arr
869869 let $s = size($l)
870870 let $acc0 = $Tuple2(D, unit)
871871 func $f0_1 ($a,$i) = if (($i >= $s))
872872 then $a
873873 else calc($a, $l[$i])
874874
875875 func $f0_2 ($a,$i) = if (($i >= $s))
876876 then $a
877877 else throw("List size exceeds 15")
878878
879879 $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)
880880 }
881881 let y = $t03467634723._1
882882 let found = $t03467634723._2
883883 if ((found != unit))
884884 then y
885885 else throw(("Y calculation error, Y = " + toString(y)))
886886 }
887887
888888
889889 func skipOrderValidation () = valueOrElse(getBoolean(fca, keySkipOrderValidation(toString(this))), false)
890890
891891
892892 @Callable(i)
893893 func calculateAmountOutForSwapREADONLY (cleanAmountIn,isReverse,feePoolAmount) = {
894894 let $t03507535499 = if ((isReverse == false))
895895 then {
896896 let assetOut = strf(this, pa())
897897 let poolAmountInBalance = (toBigInt(getAccBalance(strf(this, aa()))) + toBigInt(cleanAmountIn))
898898 $Tuple2(assetOut, poolAmountInBalance)
899899 }
900900 else {
901901 let assetOut = strf(this, aa())
902902 let poolAmountInBalance = (toBigInt(getAccBalance(strf(this, pa()))) + toBigInt(cleanAmountIn))
903903 $Tuple2(assetOut, poolAmountInBalance)
904904 }
905905 let assetOut = $t03507535499._1
906906 let poolAmountInBalance = $t03507535499._2
907907 let poolConfig = gpc()
908908 let amId = poolConfig[idxAmAsId]
909909 let prId = poolConfig[idxPrAsId]
910910 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
911911 let D = getD(xp)
912912 let y = getY(isReverse, D, toBigInt(cleanAmountIn))
913913 let dy = ((toBigInt(getAccBalance(assetOut)) - y) - toBigInt(1))
914914 let totalGetRaw = max([0, toInt(dy)])
915915 let newXp = if ((isReverse == false))
916916 then [((toBigInt(getAccBalance(amId)) + toBigInt(cleanAmountIn)) + toBigInt(feePoolAmount)), (toBigInt(getAccBalance(prId)) - dy)]
917917 else [(toBigInt(getAccBalance(amId)) - dy), ((toBigInt(getAccBalance(prId)) + toBigInt(cleanAmountIn)) + toBigInt(feePoolAmount))]
918918 let newD = getD(newXp)
919919 let checkD = if ((newD >= D))
920920 then true
921921 else throw(makeString(["new D is fewer error", toString(D), toString(newD)], "__"))
922922 if ((checkD == checkD))
923923 then $Tuple2(nil, totalGetRaw)
924924 else throw("Strict value is not equal to itself.")
925925 }
926926
927927
928928
929929 @Callable(i)
930930 func calculateAmountOutForSwapAndSendTokens (cleanAmountIn,isReverse,amountOutMin,addressTo,feePoolAmount) = {
931931 let swapContact = {
932932 let @ = invoke(fca, "getSwapContractREADONLY", nil, nil)
933933 if ($isInstanceOf(@, "String"))
934934 then @
935935 else throw(($getType(@) + " couldn't be cast to String"))
936936 }
937937 let checks = [if ((value(i.payments[0]).amount >= cleanAmountIn))
938938 then true
939939 else throwErr("Wrong amount"), if ((i.caller == addressFromStringValue(swapContact)))
940940 then true
941941 else throwErr("Permission denied")]
942942 if ((checks == checks))
943943 then {
944944 let pmt = value(i.payments[0])
945945 let assetIn = assetIdToString(pmt.assetId)
946946 let $t03693537329 = if ((isReverse == false))
947947 then {
948948 let assetOut = strf(this, pa())
949949 let poolAmountInBalance = (getAccBalance(assetIn) - value(i.payments[0]).amount)
950950 $Tuple2(assetOut, poolAmountInBalance)
951951 }
952952 else {
953953 let assetOut = strf(this, aa())
954954 let poolAmountInBalance = (getAccBalance(assetIn) - value(i.payments[0]).amount)
955955 $Tuple2(assetOut, poolAmountInBalance)
956956 }
957957 let assetOut = $t03693537329._1
958958 let poolAmountInBalance = $t03693537329._2
959959 let poolConfig = gpc()
960960 let amId = poolConfig[idxAmAsId]
961961 let prId = poolConfig[idxPrAsId]
962962 let xp = if ((isReverse == false))
963963 then [(toBigInt(getAccBalance(amId)) - toBigInt(value(i.payments[0]).amount)), toBigInt(getAccBalance(prId))]
964964 else [toBigInt(getAccBalance(amId)), (toBigInt(getAccBalance(prId)) - toBigInt(value(i.payments[0]).amount))]
965965 let D = getD(xp)
966966 let y = getY(isReverse, D, toBigInt(0))
967967 let dy = ((toBigInt(getAccBalance(assetOut)) - y) - toBigInt(1))
968968 let totalGetRaw = max([0, toInt(dy)])
969969 let checkMin = if ((totalGetRaw >= amountOutMin))
970970 then true
971971 else throw("Exchange result is fewer coins than expected")
972972 if ((checkMin == checkMin))
973973 then {
974974 let newXp = if ((isReverse == false))
975975 then [(toBigInt(getAccBalance(amId)) + toBigInt(feePoolAmount)), (toBigInt(getAccBalance(prId)) - dy)]
976976 else [(toBigInt(getAccBalance(amId)) - dy), (toBigInt(getAccBalance(prId)) + toBigInt(feePoolAmount))]
977977 let newD = getD(newXp)
978978 let checkD = if ((newD >= D))
979979 then true
980980 else throw("new D is fewer error")
981981 if ((checkD == checkD))
982982 then $Tuple2([ScriptTransfer(addressFromStringValue(addressTo), totalGetRaw, parseAssetId(assetOut))], totalGetRaw)
983983 else throw("Strict value is not equal to itself.")
984984 }
985985 else throw("Strict value is not equal to itself.")
986986 }
987987 else throw("Strict value is not equal to itself.")
988988 }
989989
990990
991991
992992 @Callable(i)
993993 func constructor (fc) = {
994994 let c = mm(i)
995995 if ((c == c))
996996 then [StringEntry(fc(), fc)]
997997 else throw("Strict value is not equal to itself.")
998998 }
999999
10001000
10011001
10021002 @Callable(i)
10031003 func setManager (pendingManagerPublicKey) = {
10041004 let c = mm(i)
10051005 if ((c == c))
10061006 then {
10071007 let cm = fromBase58String(pendingManagerPublicKey)
10081008 if ((cm == cm))
10091009 then [StringEntry(pmpk(), pendingManagerPublicKey)]
10101010 else throw("Strict value is not equal to itself.")
10111011 }
10121012 else throw("Strict value is not equal to itself.")
10131013 }
10141014
10151015
10161016
10171017 @Callable(i)
10181018 func confirmManager () = {
10191019 let p = pm()
10201020 let hpm = if (isDefined(p))
10211021 then true
10221022 else throw("No pending manager")
10231023 if ((hpm == hpm))
10241024 then {
10251025 let cpm = if ((i.callerPublicKey == value(p)))
10261026 then true
10271027 else throw("You are not pending manager")
10281028 if ((cpm == cpm))
10291029 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
10301030 else throw("Strict value is not equal to itself.")
10311031 }
10321032 else throw("Strict value is not equal to itself.")
10331033 }
10341034
10351035
10361036
10371037 @Callable(i)
10381038 func put (slip,autoStake) = {
10391039 let factCfg = gfc()
10401040 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
10411041 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
10421042 if ((0 > slip))
10431043 then throw("Wrong slippage")
10441044 else if ((size(i.payments) != 2))
10451045 then throw("2 pmnts expd")
10461046 else {
10471047 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
10481048 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
10491049 let amountAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgAmountAssetId))) - amAssetPmt)
10501050 if ((amountAssetBalance == amountAssetBalance))
10511051 then {
10521052 let priceAssetBalance = (toBigInt(getAccBalance(assetIdToString(cfgPriceAssetId))) - prAssetPmt)
10531053 if ((priceAssetBalance == priceAssetBalance))
10541054 then {
10551055 let lpAssetEmission = toBigInt(value(assetInfo(cfgLpAssetId)).quantity)
10561056 if ((lpAssetEmission == lpAssetEmission))
10571057 then {
10581058 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
10591059 if ((currentDLp == currentDLp))
10601060 then {
10611061 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, "")
10621062 let emitLpAmt = e._2
10631063 let lpAssetId = e._7
10641064 let state = e._9
10651065 let amDiff = e._10
10661066 let prDiff = e._11
10671067 let amId = e._12
10681068 let prId = e._13
10691069 let r = invoke(fca, "emit", [emitLpAmt], nil)
10701070 if ((r == r))
10711071 then {
10721072 let el = match r {
10731073 case legacy: Address =>
10741074 invoke(legacy, "emit", [emitLpAmt], nil)
10751075 case _ =>
10761076 unit
10771077 }
10781078 if ((el == el))
10791079 then {
10801080 let sa = if ((amDiff > 0))
10811081 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
10821082 else nil
10831083 if ((sa == sa))
10841084 then {
10851085 let sp = if ((prDiff > 0))
10861086 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
10871087 else nil
10881088 if ((sp == sp))
10891089 then {
10901090 let lpTrnsfr = if (autoStake)
10911091 then {
10921092 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
10931093 if ((ss == ss))
10941094 then nil
10951095 else throw("Strict value is not equal to itself.")
10961096 }
10971097 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
10981098 let $t04194842090 = refreshDLpInternal(0, 0, 0)
10991099 let refreshDLpActions = $t04194842090._1
11001100 let updatedDLp = $t04194842090._2
11011101 let check = if ((updatedDLp >= currentDLp))
11021102 then true
11031103 else throwErr(makeString(["updated DLp lower than current DLp", toString(amountAssetBalance), toString(priceAssetBalance), toString(lpAssetEmission), toString(currentDLp), toString(updatedDLp), toString(amDiff), toString(prDiff)], " "))
11041104 if ((check == check))
11051105 then {
11061106 let lpAssetEmissionAfter = value(assetInfo(cfgLpAssetId)).quantity
11071107 if ((lpAssetEmissionAfter == lpAssetEmissionAfter))
11081108 then ((state ++ lpTrnsfr) ++ refreshDLpActions)
11091109 else throw("Strict value is not equal to itself.")
11101110 }
11111111 else throw("Strict value is not equal to itself.")
11121112 }
11131113 else throw("Strict value is not equal to itself.")
11141114 }
11151115 else throw("Strict value is not equal to itself.")
11161116 }
11171117 else throw("Strict value is not equal to itself.")
11181118 }
11191119 else throw("Strict value is not equal to itself.")
11201120 }
11211121 else throw("Strict value is not equal to itself.")
11221122 }
11231123 else throw("Strict value is not equal to itself.")
11241124 }
11251125 else throw("Strict value is not equal to itself.")
11261126 }
11271127 else throw("Strict value is not equal to itself.")
11281128 }
11291129 }
11301130
11311131
11321132
11331133 @Callable(i)
11341134 func putOneTknV2 (minOutAmount,autoStake) = {
11351135 let isPoolOneTokenOperationsDisabled = {
11361136 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
11371137 if ($isInstanceOf(@, "Boolean"))
11381138 then @
11391139 else throw(($getType(@) + " couldn't be cast to Boolean"))
11401140 }
11411141 let isPutDisabled = if (if (if (igs())
11421142 then true
11431143 else (cfgPoolStatus == PoolPutDis))
11441144 then true
11451145 else (cfgPoolStatus == PoolShutdown))
11461146 then true
11471147 else isPoolOneTokenOperationsDisabled
11481148 let checks = [if (if (!(isPutDisabled))
11491149 then true
11501150 else isManager(i))
11511151 then true
11521152 else throwErr("put operation is blocked by admin"), if ((size(i.payments) == 1))
11531153 then true
11541154 else throwErr("exactly 1 payment are expected")]
11551155 if ((checks == checks))
11561156 then {
11571157 let amId = toBase58String(value(cfgAmountAssetId))
11581158 let prId = toBase58String(value(cfgPriceAssetId))
11591159 let lpId = cfgLpAssetId
11601160 let amDecimals = cfgAmountAssetDecimals
11611161 let prDecimals = cfgPriceAssetDecimals
11621162 let userAddress = if ((i.caller == this))
11631163 then i.originCaller
11641164 else i.caller
11651165 let pmt = value(i.payments[0])
11661166 let pmtAssetId = toBase58String(value(pmt.assetId))
11671167 let pmtAmt = pmt.amount
11681168 let currentDLp = if ((pmt.assetId == cfgAmountAssetId))
11691169 then calcCurrentDLp(toBigInt(pmtAmt), toBigInt(0), toBigInt(0))
11701170 else calcCurrentDLp(toBigInt(0), toBigInt(pmtAmt), toBigInt(0))
11711171 if ((currentDLp == currentDLp))
11721172 then {
11731173 let $t04373143889 = calcPutOneTkn(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId), true)
11741174 if (($t04373143889 == $t04373143889))
11751175 then {
11761176 let feeAmount = $t04373143889._3
11771177 let state = $t04373143889._2
11781178 let estimLP = $t04373143889._1
11791179 let emitLpAmt = if (if ((minOutAmount > 0))
11801180 then (minOutAmount > estimLP)
11811181 else false)
11821182 then throwErr(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
11831183 else estimLP
11841184 let e = invoke(fca, "emit", [emitLpAmt], nil)
11851185 if ((e == e))
11861186 then {
11871187 let el = match e {
11881188 case legacy: Address =>
11891189 invoke(legacy, "emit", [emitLpAmt], nil)
11901190 case _ =>
11911191 unit
11921192 }
11931193 if ((el == el))
11941194 then {
11951195 let lpTrnsfr = if (autoStake)
11961196 then {
11971197 let ss = invoke(stakingContract, "stakeFor", [toString(i.caller)], [AttachedPayment(lpId, emitLpAmt)])
11981198 if ((ss == ss))
11991199 then nil
12001200 else throw("Strict value is not equal to itself.")
12011201 }
12021202 else [ScriptTransfer(i.caller, emitLpAmt, lpId)]
12031203 let sendFeeToMatcher = if ((feeAmount > 0))
12041204 then [ScriptTransfer(feeCollectorAddress, feeAmount, fromBase58String(pmtAssetId))]
12051205 else nil
12061206 let $t04477445123 = if ((this == feeCollectorAddress))
12071207 then $Tuple2(0, 0)
12081208 else {
12091209 let paymentInAmountAsset = if ((pmt.assetId == cfgAmountAssetId))
12101210 then true
12111211 else false
12121212 if (paymentInAmountAsset)
12131213 then $Tuple2(-(feeAmount), 0)
12141214 else $Tuple2(0, -(feeAmount))
12151215 }
12161216 let amountAssetBalanceDelta = $t04477445123._1
12171217 let priceAssetBalanceDelta = $t04477445123._2
12181218 let $t04512645234 = refreshDLpInternal(amountAssetBalanceDelta, priceAssetBalanceDelta, 0)
12191219 let refreshDLpActions = $t04512645234._1
12201220 let updatedDLp = $t04512645234._2
12211221 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
12221222 if ((isUpdatedDLpValid == isUpdatedDLpValid))
12231223 then $Tuple2((((state ++ lpTrnsfr) ++ sendFeeToMatcher) ++ refreshDLpActions), emitLpAmt)
12241224 else throw("Strict value is not equal to itself.")
12251225 }
12261226 else throw("Strict value is not equal to itself.")
12271227 }
12281228 else throw("Strict value is not equal to itself.")
12291229 }
12301230 else throw("Strict value is not equal to itself.")
12311231 }
12321232 else throw("Strict value is not equal to itself.")
12331233 }
12341234 else throw("Strict value is not equal to itself.")
12351235 }
12361236
12371237
12381238
12391239 @Callable(i)
12401240 func putForFree (maxSlpg) = if ((0 > maxSlpg))
12411241 then throw("Wrong slpg")
12421242 else if ((size(i.payments) != 2))
12431243 then throw("2 pmnts expd")
12441244 else {
12451245 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, "")
12461246 let state = estPut._9
12471247 let amAssetPmt = toBigInt(value(i.payments[0]).amount)
12481248 let prAssetPmt = toBigInt(value(i.payments[1]).amount)
12491249 let currentDLp = calcCurrentDLp(amAssetPmt, prAssetPmt, toBigInt(0))
12501250 if ((currentDLp == currentDLp))
12511251 then {
12521252 let $t04626446329 = refreshDLpInternal(0, 0, 0)
12531253 let refreshDLpActions = $t04626446329._1
12541254 let updatedDLp = $t04626446329._2
12551255 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
12561256 if ((isUpdatedDLpValid == isUpdatedDLpValid))
12571257 then (state ++ refreshDLpActions)
12581258 else throw("Strict value is not equal to itself.")
12591259 }
12601260 else throw("Strict value is not equal to itself.")
12611261 }
12621262
12631263
12641264
12651265 @Callable(i)
12661266 func get () = {
12671267 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
12681268 if ((currentDLp == currentDLp))
12691269 then {
12701270 let r = cg(i)
12711271 let outAmtAmt = r._1
12721272 let outPrAmt = r._2
12731273 let pmtAmt = r._3
12741274 let pmtAssetId = r._4
12751275 let state = r._5
12761276 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
12771277 if ((b == b))
12781278 then {
12791279 let $t04750247584 = refreshDLpInternal(-(outAmtAmt), -(outPrAmt), 0)
12801280 let refreshDLpActions = $t04750247584._1
12811281 let updatedDLp = $t04750247584._2
12821282 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
12831283 if ((isUpdatedDLpValid == isUpdatedDLpValid))
12841284 then (state ++ refreshDLpActions)
12851285 else throw("Strict value is not equal to itself.")
12861286 }
12871287 else throw("Strict value is not equal to itself.")
12881288 }
12891289 else throw("Strict value is not equal to itself.")
12901290 }
12911291
12921292
12931293
12941294 @Callable(i)
12951295 func getOneTknV2 (outAssetId,minOutAmount) = {
12961296 let isPoolOneTokenOperationsDisabled = {
12971297 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
12981298 if ($isInstanceOf(@, "Boolean"))
12991299 then @
13001300 else throw(($getType(@) + " couldn't be cast to Boolean"))
13011301 }
13021302 let isGetDisabled = if (if (igs())
13031303 then true
13041304 else (cfgPoolStatus == PoolShutdown))
13051305 then true
13061306 else isPoolOneTokenOperationsDisabled
13071307 let checks = [if (if (!(isGetDisabled))
13081308 then true
13091309 else isManager(i))
13101310 then true
13111311 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 1))
13121312 then true
13131313 else throwErr("exactly 1 payment are expected")]
13141314 if ((checks == checks))
13151315 then {
13161316 let $t04820248357 = getOneTknV2Internal(outAssetId, minOutAmount, i.payments, i.caller, i.originCaller, i.transactionId)
13171317 let state = $t04820248357._1
13181318 let totalAmount = $t04820248357._2
13191319 $Tuple2(state, totalAmount)
13201320 }
13211321 else throw("Strict value is not equal to itself.")
13221322 }
13231323
13241324
13251325
13261326 @Callable(i)
13271327 func refreshDLp () = {
13281328 let lastRefreshedBlockHeight = valueOrElse(getInteger(keyDLpRefreshedHeight), 0)
13291329 let checkLastRefreshedBlockHeight = if (((height - lastRefreshedBlockHeight) >= dLpRefreshDelay))
13301330 then unit
13311331 else throwErr(makeString([toString(dLpRefreshDelay), " blocks have not passed since the previous call"], ""))
13321332 if ((checkLastRefreshedBlockHeight == checkLastRefreshedBlockHeight))
13331333 then {
13341334 let dLp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, keyDLp), "0")), fmtErr("invalid dLp"))
13351335 let $t04888148945 = refreshDLpInternal(0, 0, 0)
13361336 let dLpUpdateActions = $t04888148945._1
13371337 let updatedDLp = $t04888148945._2
13381338 let actions = if ((dLp != updatedDLp))
13391339 then dLpUpdateActions
13401340 else throwErr("nothing to refresh")
13411341 $Tuple2(actions, toString(updatedDLp))
13421342 }
13431343 else throw("Strict value is not equal to itself.")
13441344 }
13451345
13461346
13471347
13481348 @Callable(i)
13491349 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
13501350 let amId = toBase58String(value(cfgAmountAssetId))
13511351 let prId = toBase58String(value(cfgPriceAssetId))
13521352 let lpId = toBase58String(value(cfgLpAssetId))
13531353 let xp = [toBigInt(getAccBalance(amId)), toBigInt(getAccBalance(prId))]
13541354 let lpEmission = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "invalid lp asset").quantity)
13551355 let D0 = getD(xp)
13561356 let D1 = (D0 - fraction(toBigInt(lpAssetAmount), D0, lpEmission))
13571357 let index = if ((outAssetId == amId))
13581358 then 0
13591359 else if ((outAssetId == prId))
13601360 then 1
13611361 else throw("invalid out asset id")
13621362 let newY = getYD(xp, index, D1)
13631363 let dy = (xp[index] - newY)
13641364 let totalGetRaw = max([0, toInt((dy - big1))])
13651365 let $t04995550010 = takeFee(totalGetRaw, outFee)
13661366 let totalGet = $t04995550010._1
13671367 let feeAmount = $t04995550010._2
13681368 $Tuple2(nil, $Tuple2(totalGet, feeAmount))
13691369 }
13701370
13711371
13721372
13731373 @Callable(i)
13741374 func getOneTknV2WithBonusREADONLY (outAssetId,lpAssetAmount) = {
13751375 let amId = toBase58String(value(cfgAmountAssetId))
13761376 let prId = toBase58String(value(cfgPriceAssetId))
13771377 let lpId = toBase58String(value(cfgLpAssetId))
13781378 let amBalance = getAccBalance(amId)
13791379 let prBalance = getAccBalance(prId)
13801380 let $t05038550500 = {
13811381 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, lpAssetAmount], nil)
13821382 if ($isInstanceOf(@, "(Int, Int)"))
13831383 then @
13841384 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
13851385 }
13861386 let totalGet = $t05038550500._1
13871387 let feeAmount = $t05038550500._2
13881388 let r = ego("", lpId, lpAssetAmount, this)
13891389 let outAmAmt = r._1
13901390 let outPrAmt = r._2
13911391 let sumOfGetAssets = (outAmAmt + outPrAmt)
13921392 let bonus = if ((sumOfGetAssets == 0))
13931393 then if ((totalGet == 0))
13941394 then 0
13951395 else throw("bonus calculation error")
13961396 else fraction((totalGet - sumOfGetAssets), scale8, sumOfGetAssets)
13971397 $Tuple2(nil, $Tuple3(totalGet, feeAmount, bonus))
13981398 }
13991399
14001400
14011401
14021402 @Callable(i)
14031403 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
14041404 let r = cg(i)
14051405 let outAmAmt = r._1
14061406 let outPrAmt = r._2
14071407 let pmtAmt = r._3
14081408 let pmtAssetId = r._4
14091409 let state = r._5
14101410 if ((noLessThenAmtAsset > outAmAmt))
14111411 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
14121412 else if ((noLessThenPriceAsset > outPrAmt))
14131413 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
14141414 else {
14151415 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
14161416 if ((currentDLp == currentDLp))
14171417 then {
14181418 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
14191419 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
14201420 then {
14211421 let $t05166651747 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
14221422 let refreshDLpActions = $t05166651747._1
14231423 let updatedDLp = $t05166651747._2
14241424 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14251425 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14261426 then (state ++ refreshDLpActions)
14271427 else throw("Strict value is not equal to itself.")
14281428 }
14291429 else throw("Strict value is not equal to itself.")
14301430 }
14311431 else throw("Strict value is not equal to itself.")
14321432 }
14331433 }
14341434
14351435
14361436
14371437 @Callable(i)
14381438 func unstakeAndGet (amount) = {
14391439 let checkPayments = if ((size(i.payments) != 0))
14401440 then throw("No pmnts expd")
14411441 else true
14421442 if ((checkPayments == checkPayments))
14431443 then {
14441444 let factoryCfg = gfc()
14451445 let lpAssetId = cfgLpAssetId
14461446 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
14471447 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
14481448 if ((currentDLp == currentDLp))
14491449 then {
14501450 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
14511451 if ((unstakeInv == unstakeInv))
14521452 then {
14531453 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
14541454 let outAmAmt = r._1
14551455 let outPrAmt = r._2
14561456 let sts = parseIntValue(r._9)
14571457 let state = r._10
14581458 let v = if (if (igs())
14591459 then true
14601460 else (sts == PoolShutdown))
14611461 then throw(("Blocked: " + toString(sts)))
14621462 else true
14631463 if ((v == v))
14641464 then {
14651465 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
14661466 if ((burnA == burnA))
14671467 then {
14681468 let $t05277452855 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
14691469 let refreshDLpActions = $t05277452855._1
14701470 let updatedDLp = $t05277452855._2
14711471 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
14721472 if ((isUpdatedDLpValid == isUpdatedDLpValid))
14731473 then (state ++ refreshDLpActions)
14741474 else throw("Strict value is not equal to itself.")
14751475 }
14761476 else throw("Strict value is not equal to itself.")
14771477 }
14781478 else throw("Strict value is not equal to itself.")
14791479 }
14801480 else throw("Strict value is not equal to itself.")
14811481 }
14821482 else throw("Strict value is not equal to itself.")
14831483 }
14841484 else throw("Strict value is not equal to itself.")
14851485 }
14861486
14871487
14881488
14891489 @Callable(i)
14901490 func unstakeAndGetNoLess (unstakeAmount,noLessThenAmountAsset,noLessThenPriceAsset) = {
14911491 let isGetDisabled = if (igs())
14921492 then true
14931493 else (cfgPoolStatus == PoolShutdown)
14941494 let checks = [if (!(isGetDisabled))
14951495 then true
14961496 else throw("get operation is blocked by admin"), if ((size(i.payments) == 0))
14971497 then true
14981498 else throw("no payments are expected")]
14991499 if ((checks == checks))
15001500 then {
15011501 let currentDLp = calcCurrentDLp(toBigInt(0), toBigInt(0), toBigInt(0))
15021502 if ((currentDLp == currentDLp))
15031503 then {
15041504 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(cfgLpAssetId), unstakeAmount], nil)
15051505 if ((unstakeInv == unstakeInv))
15061506 then {
15071507 let res = ego(toBase58String(i.transactionId), toBase58String(cfgLpAssetId), unstakeAmount, i.caller)
15081508 let outAmAmt = res._1
15091509 let outPrAmt = res._2
15101510 let state = res._10
15111511 let checkAmounts = [if ((outAmAmt >= noLessThenAmountAsset))
15121512 then true
15131513 else throw(makeString(["amount asset amount to receive is less than ", toString(noLessThenAmountAsset)], "")), if ((outPrAmt >= noLessThenPriceAsset))
15141514 then true
15151515 else throw(makeString(["price asset amount to receive is less than ", toString(noLessThenPriceAsset)], ""))]
15161516 if ((checkAmounts == checkAmounts))
15171517 then {
15181518 let burnLPAssetOnFactory = invoke(fca, "burn", [unstakeAmount], [AttachedPayment(cfgLpAssetId, unstakeAmount)])
15191519 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
15201520 then {
15211521 let $t05410654187 = refreshDLpInternal(-(outAmAmt), -(outPrAmt), 0)
15221522 let refreshDLpActions = $t05410654187._1
15231523 let updatedDLp = $t05410654187._2
15241524 let isUpdatedDLpValid = validateUpdatedDLp(currentDLp, updatedDLp)
15251525 if ((isUpdatedDLpValid == isUpdatedDLpValid))
15261526 then (state ++ refreshDLpActions)
15271527 else throw("Strict value is not equal to itself.")
15281528 }
15291529 else throw("Strict value is not equal to itself.")
15301530 }
15311531 else throw("Strict value is not equal to itself.")
15321532 }
15331533 else throw("Strict value is not equal to itself.")
15341534 }
15351535 else throw("Strict value is not equal to itself.")
15361536 }
15371537 else throw("Strict value is not equal to itself.")
15381538 }
15391539
15401540
15411541
15421542 @Callable(i)
15431543 func unstakeAndGetOneTknV2 (unstakeAmount,outAssetId,minOutAmount) = {
15441544 let isPoolOneTokenOperationsDisabled = {
15451545 let @ = invoke(fca, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
15461546 if ($isInstanceOf(@, "Boolean"))
15471547 then @
15481548 else throw(($getType(@) + " couldn't be cast to Boolean"))
15491549 }
15501550 let isGetDisabled = if (if (igs())
15511551 then true
15521552 else (cfgPoolStatus == PoolShutdown))
15531553 then true
15541554 else isPoolOneTokenOperationsDisabled
15551555 let checks = [if (if (!(isGetDisabled))
15561556 then true
15571557 else isManager(i))
15581558 then true
15591559 else throwErr("get operation is blocked by admin"), if ((size(i.payments) == 0))
15601560 then true
15611561 else throwErr("no payments are expected")]
15621562 if ((checks == checks))
15631563 then {
15641564 let factoryCfg = gfc()
15651565 let lpAssetId = cfgLpAssetId
15661566 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
15671567 let userAddress = i.caller
15681568 let lpAssetRecipientAddress = this
15691569 let unstakeInv = invoke(staking, "unstakeINTERNAL", [lpAssetId, unstakeAmount, userAddress.bytes, lpAssetRecipientAddress.bytes], nil)
15701570 if ((unstakeInv == unstakeInv))
15711571 then {
15721572 let $t05520955397 = getOneTknV2Internal(outAssetId, minOutAmount, [AttachedPayment(lpAssetId, unstakeAmount)], i.caller, i.originCaller, i.transactionId)
15731573 let state = $t05520955397._1
15741574 let totalAmount = $t05520955397._2
15751575 $Tuple2(state, totalAmount)
15761576 }
15771577 else throw("Strict value is not equal to itself.")
15781578 }
15791579 else throw("Strict value is not equal to itself.")
15801580 }
15811581
15821582
15831583
15841584 @Callable(i)
15851585 func putOneTknV2WithBonusREADONLY (paymentAmountRaw,paymentAssetId) = {
15861586 let $t05552555628 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", true)
15871587 let lpAmount = $t05552555628._1
15881588 let state = $t05552555628._2
15891589 let feeAmount = $t05552555628._3
15901590 let bonus = $t05552555628._4
15911591 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
15921592 }
15931593
15941594
15951595
15961596 @Callable(i)
15971597 func putOneTknV2WithoutTakeFeeREADONLY (paymentAmountRaw,paymentAssetId) = {
15981598 let $t05577655880 = calcPutOneTkn(paymentAmountRaw, paymentAssetId, "", "", false)
15991599 let lpAmount = $t05577655880._1
16001600 let state = $t05577655880._2
16011601 let feeAmount = $t05577655880._3
16021602 let bonus = $t05577655880._4
16031603 $Tuple2(nil, $Tuple3(lpAmount, feeAmount, bonus))
16041604 }
16051605
16061606
16071607
16081608 @Callable(i)
16091609 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
16101610 then throw("denied")
16111611 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr), StringEntry(amp(), toString(ampInitial))], "success")
16121612
16131613
16141614
16151615 @Callable(i)
16161616 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
16171617
16181618
16191619
16201620 @Callable(i)
16211621 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
16221622
16231623
16241624
16251625 @Callable(i)
16261626 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
16271627 let pr = calcPrices(amAmt, prAmt, lpAmt)
16281628 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
16291629 }
16301630
16311631
16321632
16331633 @Callable(i)
16341634 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
16351635
16361636
16371637
16381638 @Callable(i)
16391639 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
16401640
16411641
16421642
16431643 @Callable(i)
16441644 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
16451645
16461646
16471647
16481648 @Callable(i)
16491649 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, ""))
16501650
16511651
16521652
16531653 @Callable(i)
16541654 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
16551655 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
16561656 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
16571657 }
16581658
16591659
16601660
16611661 @Callable(i)
16621662 func changeAmp () = {
16631663 let cfg = invoke(fca, "getChangeAmpConfigREADONLY", [toString(this)], nil)
16641664 let $t05828958488 = match cfg {
16651665 case list: List[Any] =>
16661666 $Tuple3({
16671667 let @ = list[0]
16681668 if ($isInstanceOf(@, "Int"))
16691669 then @
16701670 else throw(($getType(@) + " couldn't be cast to Int"))
16711671 }, {
16721672 let @ = list[1]
16731673 if ($isInstanceOf(@, "Int"))
16741674 then @
16751675 else throw(($getType(@) + " couldn't be cast to Int"))
16761676 }, {
16771677 let @ = list[2]
16781678 if ($isInstanceOf(@, "Int"))
16791679 then @
16801680 else throw(($getType(@) + " couldn't be cast to Int"))
16811681 })
16821682 case _ =>
16831683 throwErr("invalid entry type")
16841684 }
16851685 let delay = $t05828958488._1
16861686 let delta = $t05828958488._2
16871687 let target = $t05828958488._3
16881688 let curAmp = parseIntValue(getStringValue(amp()))
16891689 let newAmpRaw = (curAmp + delta)
16901690 let newAmp = if ((0 > delta))
16911691 then if ((target > newAmpRaw))
16921692 then target
16931693 else newAmpRaw
16941694 else if ((newAmpRaw > target))
16951695 then target
16961696 else newAmpRaw
16971697 let lastCall = valueOrElse(getInteger(keyChangeAmpLastCall()), 0)
16981698 let wait = (lastCall + delay)
16991699 let checks = [if ((height > wait))
17001700 then true
17011701 else throwErr("try again in few blocks"), if ((curAmp != newAmp))
17021702 then true
17031703 else throwErr("already reached target")]
17041704 if ((checks == checks))
17051705 then [IntegerEntry(keyChangeAmpLastCall(), height), StringEntry(amp(), toString(newAmp)), StringEntry(keyAmpHistory(height), toString(newAmp))]
17061706 else throw("Strict value is not equal to itself.")
17071707 }
17081708
17091709
17101710 @Verifier(tx)
17111711 func verify () = {
17121712 let targetPublicKey = match m() {
17131713 case pk: ByteVector =>
17141714 pk
17151715 case _: Unit =>
17161716 tx.senderPublicKey
17171717 case _ =>
17181718 throw("Match error")
17191719 }
17201720 match tx {
17211721 case order: Order =>
17221722 let matcherPub = mp()
17231723 let $t05940059517 = if (skipOrderValidation())
17241724 then $Tuple2(true, "")
17251725 else validateMatcherOrderAllowed(order)
17261726 let orderValid = $t05940059517._1
17271727 let orderValidInfo = $t05940059517._2
17281728 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
17291729 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
17301730 if (if (if (orderValid)
17311731 then senderValid
17321732 else false)
17331733 then matcherValid
17341734 else false)
17351735 then true
17361736 else throwOrderError(orderValid, orderValidInfo, senderValid, matcherValid)
17371737 case s: SetScriptTransaction =>
17381738 if (sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey))
17391739 then true
17401740 else {
17411741 let newHash = blake2b256(value(s.script))
17421742 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
17431743 let currentHash = scriptHash(this)
17441744 if ((allowedHash == newHash))
17451745 then (currentHash != newHash)
17461746 else false
17471747 }
17481748 case _ =>
17491749 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
17501750 }
17511751 }
17521752

github/deemru/w8io/026f985 
140.66 ms