tx · 5ademvuCHnovJS5yE2WHZZR5V7Rtd6w17c6aRPSXsdTU

3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA:  -0.03600000 Waves

2023.01.19 18:15 [2411977] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
110.36 ms