tx · 2icez2g867thjogz3SFHVGVtZqNGm74UWCEj7rDwojR3

3MyeMZm2BLBkcgK2VBeTU8h1n562iB3zA2Z:  -0.02900000 Waves

2022.09.13 00:26 [2226437] smart account 3MyeMZm2BLBkcgK2VBeTU8h1n562iB3zA2Z > SELF 0.00000000 Waves

{ "type": 13, "id": "2icez2g867thjogz3SFHVGVtZqNGm74UWCEj7rDwojR3", "fee": 2900000, "feeAssetId": null, "timestamp": 1663017988210, "version": 2, "chainId": 84, "sender": "3MyeMZm2BLBkcgK2VBeTU8h1n562iB3zA2Z", "senderPublicKey": "5bHbDgAVwbyzkor8HrHKU8zcg5RfwKy3rNihVqk8YUvP", "proofs": [ "2rYD6DqE3HknfQo4CMLzbjTRZCc8nYYVRM1gJcL8wok8XWj2sRBuXByt5J3PEHVTorK9ectQcQPPUNcGkGrquo3b" ], "script": "base64:BgJ/CAISAwoBCBIDCgEIEgASBAoCAQQSBwoFAQEBAQQSAwoBARIAEgcKBQEBAQgBEgQKAgEBEgMKAQESBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCE8AD2RlZmF1bHREZWNpbWFscwDAhD0ABnNjYWxlOACAwtcvAAxzY2FsZThCaWdJbnQJALYCAQCAwtcvAAdzY2FsZTE4CQC2AgEAgICQu7rWrfANAAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQAKc2xpcHBhZ2U0RAkAtgIBCQBlAgUGc2NhbGU4CQBpAgkAaAIFBnNjYWxlOAABBQZzY2FsZTgABUFtdWx0AgMxMDAABURjb252AgExAANTRVACAl9fAAVFTVBUWQIAAApQb29sQWN0aXZlAAEAClBvb2xQdXREaXMAAgAOUG9vbE1hdGNoZXJEaXMAAwAMUG9vbFNodXRkb3duAAQADmlkeFBvb2xBZGRyZXNzAAEACWlkeFBvb2xTdAACAAlpZHhMUEFzSWQAAwAJaWR4QW1Bc0lkAAQ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KnDhiTtQpxAfY6YBNnHbAwdU Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let defaultDecimals = 100000000
4+let defaultDecimals = 1000000
55
66 let scale8 = 100000000
77
347347 else calcLpAmt
348348 let amDiff = (inAmAmt - calcAmAssetPmt)
349349 let prDiff = (inPrAmt - calcPrAssetPmt)
350- let $t01664916994 = if (if (isOneAsset)
350+ let $t01664716992 = if (if (isOneAsset)
351351 then (pmtId == amIdStr)
352352 else false)
353353 then $Tuple2(pmtAmt, 0)
356356 else false)
357357 then $Tuple2(0, pmtAmt)
358358 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
359- let writeAmAmt = $t01664916994._1
360- let writePrAmt = $t01664916994._2
359+ let writeAmAmt = $t01664716992._1
360+ let writePrAmt = $t01664716992._2
361361 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))]
362362 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
363363 }
621621 let prBalance = getAccBalance(prId)
622622 let amBalanceDefaultDecimals = ((amBalance * defaultDecimals) / amDcm)
623623 let prBalanceDefaultDecimals = ((prBalance * defaultDecimals) / prDcm)
624- let $t02598126767 = if ((pmtAssetId == amId))
624+ let $t02597926765 = if ((pmtAssetId == amId))
625625 then if (if ((pmtAmtDefaultDecimals > amBalanceDefaultDecimals))
626626 then true
627627 else (amAssetPart > pmtAmtDefaultDecimals))
634634 then throw("invalid payment amount")
635635 else $Tuple6(amBalanceDefaultDecimals, (prBalanceDefaultDecimals - pmtAmtDefaultDecimals), 0, 0, (pmtAmtDefaultDecimals - prAssetPart), amAssetPart)
636636 else throw("wrong pmtAssetId")
637- let amBalanceNow = $t02598126767._1
638- let prBalanceNow = $t02598126767._2
639- let virtSwapInAm = $t02598126767._3
640- let virtSwapOutPr = $t02598126767._4
641- let virtSwapInPr = $t02598126767._5
642- let virtSwapOutAm = $t02598126767._6
637+ let amBalanceNow = $t02597926765._1
638+ let prBalanceNow = $t02597926765._2
639+ let virtSwapInAm = $t02597926765._3
640+ let virtSwapOutPr = $t02597926765._4
641+ let virtSwapInPr = $t02597926765._5
642+ let virtSwapOutAm = $t02597926765._6
643643 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
644644 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
645645 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
764764 let estimPrAmt = r._2
765765 let amBalance = getAccBalance(amId)
766766 let prBalance = getAccBalance(prId)
767- let $t03154632003 = if ((outAssetId == amId))
767+ let $t03154432001 = if ((outAssetId == amId))
768768 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult))
769769 else if ((outAssetId == prId))
770770 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult))
771771 else throw("wrong outAssetId")
772- let amBalanceNow = $t03154632003._1
773- let prBalanceNow = $t03154632003._2
774- let virtSwapInAm = $t03154632003._3
775- let virtSwapOutPr = $t03154632003._4
776- let virtSwapInPr = $t03154632003._5
777- let virtSwapOutAm = $t03154632003._6
778- let totalGet = $t03154632003._7
772+ let amBalanceNow = $t03154432001._1
773+ let prBalanceNow = $t03154432001._2
774+ let virtSwapInAm = $t03154432001._3
775+ let virtSwapOutPr = $t03154432001._4
776+ let virtSwapInPr = $t03154432001._5
777+ let virtSwapOutAm = $t03154432001._6
778+ let totalGet = $t03154432001._7
779779 if (if ((0 > virtSwapInAm))
780780 then true
781781 else (0 > virtSwapInPr))
789789 let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage))
790790 if ((finalRes == finalRes))
791791 then {
792- let $t03270832812 = if ((outAssetId == amId))
792+ let $t03270632810 = if ((outAssetId == amId))
793793 then $Tuple2(toInt(finalRes._2), 0)
794794 else $Tuple2(0, toInt(finalRes._2))
795- let outAm = $t03270832812._1
796- let outPr = $t03270832812._2
795+ let outAm = $t03270632810._1
796+ let outPr = $t03270632810._2
797797 let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm))
798798 let curPr = f1(curPrX18, scale8)
799799 let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let defaultDecimals = 100000000
4+let defaultDecimals = 1000000
55
66 let scale8 = 100000000
77
88 let scale8BigInt = toBigInt(100000000)
99
1010 let scale18 = toBigInt(1000000000000000000)
1111
1212 let zeroBigInt = toBigInt(0)
1313
1414 let oneBigInt = toBigInt(1)
1515
1616 let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8)))
1717
1818 let Amult = "100"
1919
2020 let Dconv = "1"
2121
2222 let SEP = "__"
2323
2424 let EMPTY = ""
2525
2626 let PoolActive = 1
2727
2828 let PoolPutDis = 2
2929
3030 let PoolMatcherDis = 3
3131
3232 let PoolShutdown = 4
3333
3434 let idxPoolAddress = 1
3535
3636 let idxPoolSt = 2
3737
3838 let idxLPAsId = 3
3939
4040 let idxAmAsId = 4
4141
4242 let idxPrAsId = 5
4343
4444 let idxAmtAsDcm = 6
4545
4646 let idxPriceAsDcm = 7
4747
4848 let idxIAmtAsId = 8
4949
5050 let idxIPriceAsId = 9
5151
5252 let idxFactStakCntr = 1
5353
5454 let idxFactSlippCntr = 7
5555
5656 let idxFactGwxRewCntr = 10
5757
5858 let delay = "%s__delay"
5959
6060 func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
6161
6262
6363 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
6464
6565
6666 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
6767
6868
6969 func abs (val) = if ((zeroBigInt > val))
7070 then -(val)
7171 else val
7272
7373
7474 func fc () = "%s__factoryContract"
7575
7676
7777 func mpk () = "%s__managerPublicKey"
7878
7979
8080 func pmpk () = "%s__pendingManagerPublicKey"
8181
8282
8383 func pl () = "%s%s__price__last"
8484
8585
8686 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
8787
8888
8989 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
9090
9191
9292 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
9393
9494
9595 func aa () = "%s__amountAsset"
9696
9797
9898 func pa () = "%s__priceAsset"
9999
100100
101101 func amp () = "%s__amp"
102102
103103
104104 func ada () = "%s__addonAddr"
105105
106106
107107 func lgotc (caller) = makeString(["%s%s__lastGetOneTknCall", caller], SEP)
108108
109109
110110 func lsotc (caller) = makeString(["%s%s__lastPutOneTknCall", caller], SEP)
111111
112112
113113 func fcfg () = "%s__factoryConfig"
114114
115115
116116 func mtpk () = "%s%s__matcher__publicKey"
117117
118118
119119 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
120120
121121
122122 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
123123
124124
125125 func aps () = "%s__shutdown"
126126
127127
128128 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
129129
130130
131131 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
132132
133133
134134 func str (val) = match val {
135135 case valStr: String =>
136136 valStr
137137 case _ =>
138138 throw("fail cast to String")
139139 }
140140
141141
142142 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
143143
144144
145145 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
146146
147147
148148 let fca = addressFromStringValue(strf(this, fc()))
149149
150150 let A = strf(this, amp())
151151
152152 func igs () = valueOrElse(getBoolean(fca, aps()), false)
153153
154154
155155 func mp () = fromBase58String(strf(fca, mtpk()))
156156
157157
158158 func gpc () = {
159159 let amtAs = strf(this, aa())
160160 let priceAs = strf(this, pa())
161161 let iPriceAs = intf(fca, mba(priceAs))
162162 let iAmtAs = intf(fca, mba(amtAs))
163163 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
164164 }
165165
166166
167167 func gfc () = split(strf(fca, fcfg()), SEP)
168168
169169
170170 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)
171171
172172
173173 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)
174174
175175
176176 func getAccBalance (assetId) = if ((assetId == "WAVES"))
177177 then wavesBalance(this).available
178178 else assetBalance(this, fromBase58String(assetId))
179179
180180
181181 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
182182
183183
184184 func vad (A1,A2,slippage) = {
185185 let diff = fraction((A1 - A2), scale8BigInt, A2)
186186 let pass = ((slippage - abs(diff)) > zeroBigInt)
187187 if (!(pass))
188188 then throw(("Big slpg: " + toString(diff)))
189189 else $Tuple2(pass, min([A1, A2]))
190190 }
191191
192192
193193 func vd (D1,D0,slpg) = {
194194 let diff = fraction(D0, scale8BigInt, D1)
195195 let fail = (slpg > diff)
196196 if (if (fail)
197197 then true
198198 else (D0 > D1))
199199 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
200200 else fail
201201 }
202202
203203
204204 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
205205 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
206206 let prAsAmtX18 = t1(prAmt, prAssetDcm)
207207 cpbi(prAsAmtX18, amtAsAmtX18)
208208 }
209209
210210
211211 func calcPrices (amAmt,prAmt,lpAmt) = {
212212 let cfg = gpc()
213213 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
214214 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
215215 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
216216 let amAmtX18 = t1(amAmt, amtAsDcm)
217217 let prAmtX18 = t1(prAmt, prAsDcm)
218218 let lpAmtX18 = t1(lpAmt, scale8)
219219 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
220220 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
221221 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
222222 }
223223
224224
225225 func calculatePrices (amAmt,prAmt,lpAmt) = {
226226 let p = calcPrices(amAmt, prAmt, lpAmt)
227227 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
228228 }
229229
230230
231231 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
232232 let cfg = gpc()
233233 let lpId = cfg[idxLPAsId]
234234 let amId = cfg[idxAmAsId]
235235 let prId = cfg[idxPrAsId]
236236 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
237237 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
238238 let sts = cfg[idxPoolSt]
239239 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
240240 if ((lpId != pmtAssetId))
241241 then throw("Wrong pmt asset")
242242 else {
243243 let amBalance = getAccBalance(amId)
244244 let prBalance = getAccBalance(prId)
245245 let amountBalanceDefaultDecimals = fraction(amBalance, defaultDecimals, amDcm)
246246 let priceBalanceDefaultDecimals = fraction(prBalance, defaultDecimals, prDcm)
247247 let amBalanceX18 = t1(amountBalanceDefaultDecimals, defaultDecimals)
248248 let prBalanceX18 = t1(priceBalanceDefaultDecimals, defaultDecimals)
249249 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
250250 let curPrice = f1(curPriceX18, scale8)
251251 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
252252 let lpEmissX18 = t1(lpEmiss, scale8)
253253 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
254254 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
255255 let outAmountAmountDefaultDecimals = f1(outAmAmtX18, defaultDecimals)
256256 let outPriceAmountDefaultDecimals = f1(outPrAmtX18, defaultDecimals)
257257 let outAmAmt = fraction(outAmountAmountDefaultDecimals, amDcm, defaultDecimals)
258258 let outPrAmt = fraction(outPriceAmountDefaultDecimals, prDcm, defaultDecimals)
259259 let state = if ((txId58 == ""))
260260 then nil
261261 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
262262 then unit
263263 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
264264 then unit
265265 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)]
266266 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
267267 }
268268 }
269269
270270
271271 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = {
272272 let cfg = gpc()
273273 let lpId = fromBase58String(cfg[idxLPAsId])
274274 let amIdStr = cfg[idxAmAsId]
275275 let prIdStr = cfg[idxPrAsId]
276276 let inAmIdStr = cfg[idxIAmtAsId]
277277 let inPrIdStr = cfg[idxIPriceAsId]
278278 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
279279 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
280280 let sts = cfg[idxPoolSt]
281281 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
282282 let amBalance = if (isEval)
283283 then getAccBalance(amIdStr)
284284 else if (if (isOneAsset)
285285 then (pmtId == amIdStr)
286286 else false)
287287 then (getAccBalance(amIdStr) - pmtAmt)
288288 else if (isOneAsset)
289289 then getAccBalance(amIdStr)
290290 else (getAccBalance(amIdStr) - inAmAmt)
291291 let prBalance = if (isEval)
292292 then getAccBalance(prIdStr)
293293 else if (if (isOneAsset)
294294 then (pmtId == prIdStr)
295295 else false)
296296 then (getAccBalance(prIdStr) - pmtAmt)
297297 else if (isOneAsset)
298298 then getAccBalance(prIdStr)
299299 else (getAccBalance(prIdStr) - inPrAmt)
300300 let amountBalanceDefaultDecimals = fraction(amBalance, defaultDecimals, amtDcm)
301301 let priceBalanceDefaultDecimals = fraction(prBalance, defaultDecimals, priceDcm)
302302 let inAmountAssetAmountDefaultDecimals = fraction(inAmAmt, defaultDecimals, amtDcm)
303303 let inPriceAssetAmountDefaultDecimals = fraction(inPrAmt, defaultDecimals, priceDcm)
304304 let inAmAssetAmtX18 = t1(inAmountAssetAmountDefaultDecimals, defaultDecimals)
305305 let inPrAssetAmtX18 = t1(inPriceAssetAmountDefaultDecimals, defaultDecimals)
306306 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
307307 let amBalanceX18 = t1(amountBalanceDefaultDecimals, defaultDecimals)
308308 let prBalanceX18 = t1(priceBalanceDefaultDecimals, defaultDecimals)
309309 let r = if ((lpEm == 0))
310310 then {
311311 let curPriceX18 = zeroBigInt
312312 let slippageX18 = zeroBigInt
313313 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
314314 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, defaultDecimals), f1(inPrAssetAmtX18, defaultDecimals), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
315315 }
316316 else {
317317 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
318318 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
319319 let slippageX18 = t1(slippage, scale8)
320320 if (if ((curPriceX18 != zeroBigInt))
321321 then (slippageRealX18 > slippageX18)
322322 else false)
323323 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
324324 else {
325325 let lpEmissionX18 = t1(lpEm, scale8)
326326 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
327327 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
328328 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
329329 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
330330 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
331331 let expAmtAssetAmtX18 = expectedAmts._1
332332 let expPriceAssetAmtX18 = expectedAmts._2
333333 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
334334 $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, defaultDecimals), f1(expPriceAssetAmtX18, defaultDecimals), curPriceX18, slippageX18)
335335 }
336336 }
337337 let calcLpAmt = r._1
338338 let calcAmAssetPmt = fraction(r._2, amtDcm, defaultDecimals)
339339 let calcPrAssetPmt = fraction(r._3, priceDcm, defaultDecimals)
340340 let curPrice = f1(r._4, scale8)
341341 let slippageCalc = f1(r._5, scale8)
342342 if ((0 >= calcLpAmt))
343343 then throw("LP <= 0")
344344 else {
345345 let emitLpAmt = if (!(emitLp))
346346 then 0
347347 else calcLpAmt
348348 let amDiff = (inAmAmt - calcAmAssetPmt)
349349 let prDiff = (inPrAmt - calcPrAssetPmt)
350- let $t01664916994 = if (if (isOneAsset)
350+ let $t01664716992 = if (if (isOneAsset)
351351 then (pmtId == amIdStr)
352352 else false)
353353 then $Tuple2(pmtAmt, 0)
354354 else if (if (isOneAsset)
355355 then (pmtId == prIdStr)
356356 else false)
357357 then $Tuple2(0, pmtAmt)
358358 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
359- let writeAmAmt = $t01664916994._1
360- let writePrAmt = $t01664916994._2
359+ let writeAmAmt = $t01664716992._1
360+ let writePrAmt = $t01664716992._2
361361 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))]
362362 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
363363 }
364364 }
365365
366366
367367 func moa (order) = {
368368 let cfg = gpc()
369369 let amtAsId = cfg[idxAmAsId]
370370 let prAsId = cfg[idxPrAsId]
371371 let sts = parseIntValue(cfg[idxPoolSt])
372372 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
373373 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
374374 let accAmtAsBalance = getAccBalance(amtAsId)
375375 let accPrAsBalance = getAccBalance(prAsId)
376376 let curPriceX18 = if ((order.orderType == Buy))
377377 then pcp(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance)
378378 else pcp(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance)
379379 let curPrice = f1(curPriceX18, scale8)
380380 if (if (if (igs())
381381 then true
382382 else (sts == PoolMatcherDis))
383383 then true
384384 else (sts == PoolShutdown))
385385 then throw("Admin blocked")
386386 else {
387387 let orAmtAsset = order.assetPair.amountAsset
388388 let orAmtAsStr = if ((orAmtAsset == unit))
389389 then "WAVES"
390390 else toBase58String(value(orAmtAsset))
391391 let orPrAsset = order.assetPair.priceAsset
392392 let orPrAsStr = if ((orPrAsset == unit))
393393 then "WAVES"
394394 else toBase58String(value(orPrAsset))
395395 if (if ((orAmtAsStr != amtAsId))
396396 then true
397397 else (orPrAsStr != prAsId))
398398 then throw("Wr assets")
399399 else {
400400 let orderPrice = order.price
401401 let priceDcm = fraction(scale8, prAsDcm, amtAsDcm)
402402 let castOrderPrice = ts(orderPrice, scale8, priceDcm)
403403 let isOrderPriceValid = if ((order.orderType == Buy))
404404 then (curPrice >= castOrderPrice)
405405 else (castOrderPrice >= curPrice)
406406 true
407407 }
408408 }
409409 }
410410
411411
412412 func cg (i) = if ((size(i.payments) != 1))
413413 then throw("1 pmnt exp")
414414 else {
415415 let pmt = value(i.payments[0])
416416 let pmtAssetId = value(pmt.assetId)
417417 let pmtAmt = pmt.amount
418418 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
419419 let outAmAmt = r._1
420420 let outPrAmt = r._2
421421 let sts = parseIntValue(r._9)
422422 let state = r._10
423423 if (if (igs())
424424 then true
425425 else (sts == PoolShutdown))
426426 then throw(("Admin blocked: " + toString(sts)))
427427 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
428428 }
429429
430430
431431 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = {
432432 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId)
433433 let sts = parseIntValue(r._8)
434434 if (if (if (igs())
435435 then true
436436 else (sts == PoolPutDis))
437437 then true
438438 else (sts == PoolShutdown))
439439 then throw(("Blocked:" + toString(sts)))
440440 else r
441441 }
442442
443443
444444 func m () = match getString(mpk()) {
445445 case s: String =>
446446 fromBase58String(s)
447447 case _: Unit =>
448448 unit
449449 case _ =>
450450 throw("Match error")
451451 }
452452
453453
454454 func pm () = match getString(pmpk()) {
455455 case s: String =>
456456 fromBase58String(s)
457457 case _: Unit =>
458458 unit
459459 case _ =>
460460 throw("Match error")
461461 }
462462
463463
464464 let pd = throw("Permission denied")
465465
466466 func mm (i) = match m() {
467467 case pk: ByteVector =>
468468 if ((i.callerPublicKey == pk))
469469 then true
470470 else pd
471471 case _: Unit =>
472472 if ((i.caller == this))
473473 then true
474474 else pd
475475 case _ =>
476476 throw("Match error")
477477 }
478478
479479
480480 @Callable(i)
481481 func constructor (fc) = {
482482 let c = mm(i)
483483 if ((c == c))
484484 then [StringEntry(fc(), fc)]
485485 else throw("Strict value is not equal to itself.")
486486 }
487487
488488
489489
490490 @Callable(i)
491491 func setManager (pendingManagerPublicKey) = {
492492 let c = mm(i)
493493 if ((c == c))
494494 then {
495495 let cm = fromBase58String(pendingManagerPublicKey)
496496 if ((cm == cm))
497497 then [StringEntry(pmpk(), pendingManagerPublicKey)]
498498 else throw("Strict value is not equal to itself.")
499499 }
500500 else throw("Strict value is not equal to itself.")
501501 }
502502
503503
504504
505505 @Callable(i)
506506 func confirmManager () = {
507507 let p = pm()
508508 let hpm = if (isDefined(p))
509509 then true
510510 else throw("No pending manager")
511511 if ((hpm == hpm))
512512 then {
513513 let cpm = if ((i.callerPublicKey == value(p)))
514514 then true
515515 else throw("You are not pending manager")
516516 if ((cpm == cpm))
517517 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
518518 else throw("Strict value is not equal to itself.")
519519 }
520520 else throw("Strict value is not equal to itself.")
521521 }
522522
523523
524524
525525 @Callable(i)
526526 func put (slip,autoStake) = {
527527 let factCfg = gfc()
528528 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
529529 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
530530 if ((0 > slip))
531531 then throw("Wrong slippage")
532532 else if ((size(i.payments) != 2))
533533 then throw("2 pmnts expd")
534534 else {
535535 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, 0, "")
536536 let emitLpAmt = e._2
537537 let lpAssetId = e._7
538538 let state = e._9
539539 let amDiff = e._10
540540 let prDiff = e._11
541541 let amId = e._12
542542 let prId = e._13
543543 let r = invoke(fca, "emit", [emitLpAmt], nil)
544544 if ((r == r))
545545 then {
546546 let el = match r {
547547 case legacy: Address =>
548548 invoke(legacy, "emit", [emitLpAmt], nil)
549549 case _ =>
550550 unit
551551 }
552552 if ((el == el))
553553 then {
554554 let sa = if ((amDiff > 0))
555555 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
556556 else nil
557557 if ((sa == sa))
558558 then {
559559 let sp = if ((prDiff > 0))
560560 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
561561 else nil
562562 if ((sp == sp))
563563 then {
564564 let lpTrnsfr = if (autoStake)
565565 then {
566566 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
567567 if ((ss == ss))
568568 then nil
569569 else throw("Strict value is not equal to itself.")
570570 }
571571 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
572572 (state ++ lpTrnsfr)
573573 }
574574 else throw("Strict value is not equal to itself.")
575575 }
576576 else throw("Strict value is not equal to itself.")
577577 }
578578 else throw("Strict value is not equal to itself.")
579579 }
580580 else throw("Strict value is not equal to itself.")
581581 }
582582 }
583583
584584
585585
586586 @Callable(i)
587587 func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = {
588588 let cfg = gfc()
589589 let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr")
590590 let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr")
591591 let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr")
592592 let poolCfg = gpc()
593593 let amId = poolCfg[idxAmAsId]
594594 let prId = poolCfg[idxPrAsId]
595595 let amDcm = parseIntValue(poolCfg[idxAmtAsDcm])
596596 let prDcm = parseIntValue(poolCfg[idxPriceAsDcm])
597597 let addon = valueOrElse(getString(this, ada()), "")
598598 let userAddress = if ((addon == toString(i.caller)))
599599 then i.originCaller
600600 else i.caller
601601 if (if (if (if ((0 >= slippage))
602602 then true
603603 else (0 >= amAssetPart))
604604 then true
605605 else (0 >= prAssetPart))
606606 then true
607607 else (0 >= outLp))
608608 then throw("Wrong params")
609609 else if ((size(i.payments) != 1))
610610 then throw("1 pmnt expd")
611611 else {
612612 let pmt = value(i.payments[0])
613613 let pmtAssetId = toBase58String(value(pmt.assetId))
614614 let pmtDecimals = value(assetInfo(value(i.payments[0].assetId))).decimals
615615 let pmtAmt = pmt.amount
616616 let pmtAmtDefaultDecimals = ((pmtAmt * defaultDecimals) / pow(10, 0, pmtDecimals, 0, 0, DOWN))
617617 if ((10000000 > pmtAmtDefaultDecimals))
618618 then throw("Wrong pmt amt")
619619 else {
620620 let amBalance = getAccBalance(amId)
621621 let prBalance = getAccBalance(prId)
622622 let amBalanceDefaultDecimals = ((amBalance * defaultDecimals) / amDcm)
623623 let prBalanceDefaultDecimals = ((prBalance * defaultDecimals) / prDcm)
624- let $t02598126767 = if ((pmtAssetId == amId))
624+ let $t02597926765 = if ((pmtAssetId == amId))
625625 then if (if ((pmtAmtDefaultDecimals > amBalanceDefaultDecimals))
626626 then true
627627 else (amAssetPart > pmtAmtDefaultDecimals))
628628 then throw("invalid payment amount")
629629 else $Tuple6((amBalanceDefaultDecimals - pmtAmtDefaultDecimals), prBalanceDefaultDecimals, (pmtAmtDefaultDecimals - amAssetPart), prAssetPart, 0, 0)
630630 else if ((pmtAssetId == prId))
631631 then if (if ((pmtAmtDefaultDecimals > prBalanceDefaultDecimals))
632632 then true
633633 else (prAssetPart > pmtAmtDefaultDecimals))
634634 then throw("invalid payment amount")
635635 else $Tuple6(amBalanceDefaultDecimals, (prBalanceDefaultDecimals - pmtAmtDefaultDecimals), 0, 0, (pmtAmtDefaultDecimals - prAssetPart), amAssetPart)
636636 else throw("wrong pmtAssetId")
637- let amBalanceNow = $t02598126767._1
638- let prBalanceNow = $t02598126767._2
639- let virtSwapInAm = $t02598126767._3
640- let virtSwapOutPr = $t02598126767._4
641- let virtSwapInPr = $t02598126767._5
642- let virtSwapOutAm = $t02598126767._6
637+ let amBalanceNow = $t02597926765._1
638+ let prBalanceNow = $t02597926765._2
639+ let virtSwapInAm = $t02597926765._3
640+ let virtSwapOutPr = $t02597926765._4
641+ let virtSwapInPr = $t02597926765._5
642+ let virtSwapOutAm = $t02597926765._6
643643 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
644644 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
645645 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
646646 if ((D0vsD1 == D0vsD1))
647647 then {
648648 let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId)
649649 let estimLP = estPut._2
650650 let lpAssetId = estPut._7
651651 let state = estPut._9
652652 let amDiff = estPut._10
653653 let prDiff = estPut._11
654654 let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
655655 let emitLpAmt = toInt(lpCalcRes._2)
656656 let e = invoke(fca, "emit", [emitLpAmt], nil)
657657 if ((e == e))
658658 then {
659659 let el = match e {
660660 case legacy: Address =>
661661 invoke(legacy, "emit", [emitLpAmt], nil)
662662 case _ =>
663663 unit
664664 }
665665 if ((el == el))
666666 then {
667667 let sa = if ((amDiff > 0))
668668 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
669669 else nil
670670 if ((sa == sa))
671671 then {
672672 let sp = if ((prDiff > 0))
673673 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
674674 else nil
675675 if ((sp == sp))
676676 then {
677677 let lpTrnsfr = if (autoStake)
678678 then {
679679 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
680680 if ((ss == ss))
681681 then nil
682682 else throw("Strict value is not equal to itself.")
683683 }
684684 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
685685 (state ++ lpTrnsfr)
686686 }
687687 else throw("Strict value is not equal to itself.")
688688 }
689689 else throw("Strict value is not equal to itself.")
690690 }
691691 else throw("Strict value is not equal to itself.")
692692 }
693693 else throw("Strict value is not equal to itself.")
694694 }
695695 else throw("Strict value is not equal to itself.")
696696 }
697697 }
698698 }
699699
700700
701701
702702 @Callable(i)
703703 func putForFree (maxSlpg) = if ((0 > maxSlpg))
704704 then throw("Wrong slpg")
705705 else if ((size(i.payments) != 2))
706706 then throw("2 pmnts expd")
707707 else {
708708 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, 0, "")
709709 estPut._9
710710 }
711711
712712
713713
714714 @Callable(i)
715715 func get () = {
716716 let r = cg(i)
717717 let outAmtAmt = r._1
718718 let outPrAmt = r._2
719719 let pmtAmt = r._3
720720 let pmtAssetId = r._4
721721 let state = r._5
722722 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
723723 if ((b == b))
724724 then state
725725 else throw("Strict value is not equal to itself.")
726726 }
727727
728728
729729
730730 @Callable(i)
731731 func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1))
732732 then throw("1 pmnt expd")
733733 else {
734734 let cfg = gpc()
735735 let lpId = cfg[idxLPAsId]
736736 let amId = cfg[idxAmAsId]
737737 let prId = cfg[idxPrAsId]
738738 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
739739 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
740740 let sts = cfg[idxPoolSt]
741741 let factCfg = gfc()
742742 let gwxCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactGwxRewCntr]), "Wr sl addr")
743743 let pmt = value(i.payments[0])
744744 let addon = valueOrElse(getString(this, ada()), "")
745745 let userAddress = if ((addon == toString(i.caller)))
746746 then i.originCaller
747747 else i.caller
748748 let txId58 = toBase58String(i.transactionId)
749749 let pmtAssetId = value(pmt.assetId)
750750 let pmtAmt = pmt.amount
751751 if ((1000000000 > pmtAmt))
752752 then throw("Min pmt 10 LP")
753753 else if (if (if ((0 > slippage))
754754 then true
755755 else (0 > exchResult))
756756 then true
757757 else (0 > outAmount))
758758 then throw("Wrong params")
759759 else if ((lpId != toBase58String(pmtAssetId)))
760760 then throw("Wrong LP")
761761 else {
762762 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
763763 let estimAmAmt = r._1
764764 let estimPrAmt = r._2
765765 let amBalance = getAccBalance(amId)
766766 let prBalance = getAccBalance(prId)
767- let $t03154632003 = if ((outAssetId == amId))
767+ let $t03154432001 = if ((outAssetId == amId))
768768 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult))
769769 else if ((outAssetId == prId))
770770 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult))
771771 else throw("wrong outAssetId")
772- let amBalanceNow = $t03154632003._1
773- let prBalanceNow = $t03154632003._2
774- let virtSwapInAm = $t03154632003._3
775- let virtSwapOutPr = $t03154632003._4
776- let virtSwapInPr = $t03154632003._5
777- let virtSwapOutAm = $t03154632003._6
778- let totalGet = $t03154632003._7
772+ let amBalanceNow = $t03154432001._1
773+ let prBalanceNow = $t03154432001._2
774+ let virtSwapInAm = $t03154432001._3
775+ let virtSwapOutPr = $t03154432001._4
776+ let virtSwapInPr = $t03154432001._5
777+ let virtSwapOutAm = $t03154432001._6
778+ let totalGet = $t03154432001._7
779779 if (if ((0 > virtSwapInAm))
780780 then true
781781 else (0 > virtSwapInPr))
782782 then throw("Wrong calc")
783783 else {
784784 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
785785 let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil)
786786 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
787787 if ((D0vsD1 == D0vsD1))
788788 then {
789789 let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage))
790790 if ((finalRes == finalRes))
791791 then {
792- let $t03270832812 = if ((outAssetId == amId))
792+ let $t03270632810 = if ((outAssetId == amId))
793793 then $Tuple2(toInt(finalRes._2), 0)
794794 else $Tuple2(0, toInt(finalRes._2))
795- let outAm = $t03270832812._1
796- let outPr = $t03270832812._2
795+ let outAm = $t03270632810._1
796+ let outPr = $t03270632810._2
797797 let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm))
798798 let curPr = f1(curPrX18, scale8)
799799 let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES"))
800800 then unit
801801 else fromBase58String(outAssetId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(pl(), curPr), IntegerEntry(ph(height, lastBlock.timestamp), curPr)]
802802 if ((state == state))
803803 then {
804804 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
805805 if ((burn == burn))
806806 then state
807807 else throw("Strict value is not equal to itself.")
808808 }
809809 else throw("Strict value is not equal to itself.")
810810 }
811811 else throw("Strict value is not equal to itself.")
812812 }
813813 else throw("Strict value is not equal to itself.")
814814 }
815815 }
816816 }
817817
818818
819819
820820 @Callable(i)
821821 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
822822 let r = cg(i)
823823 let outAmAmt = r._1
824824 let outPrAmt = r._2
825825 let pmtAmt = r._3
826826 let pmtAssetId = r._4
827827 let state = r._5
828828 if ((noLessThenAmtAsset > outAmAmt))
829829 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
830830 else if ((noLessThenPriceAsset > outPrAmt))
831831 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
832832 else {
833833 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
834834 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
835835 then state
836836 else throw("Strict value is not equal to itself.")
837837 }
838838 }
839839
840840
841841
842842 @Callable(i)
843843 func unstakeAndGet (amount) = {
844844 let checkPayments = if ((size(i.payments) != 0))
845845 then throw("No pmnts expd")
846846 else true
847847 if ((checkPayments == checkPayments))
848848 then {
849849 let cfg = gpc()
850850 let factoryCfg = gfc()
851851 let lpAssetId = fromBase58String(cfg[idxLPAsId])
852852 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
853853 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
854854 if ((unstakeInv == unstakeInv))
855855 then {
856856 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
857857 let sts = parseIntValue(r._9)
858858 let state = r._10
859859 let v = if (if (igs())
860860 then true
861861 else (sts == PoolShutdown))
862862 then throw(("Blocked: " + toString(sts)))
863863 else true
864864 if ((v == v))
865865 then {
866866 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
867867 if ((burnA == burnA))
868868 then state
869869 else throw("Strict value is not equal to itself.")
870870 }
871871 else throw("Strict value is not equal to itself.")
872872 }
873873 else throw("Strict value is not equal to itself.")
874874 }
875875 else throw("Strict value is not equal to itself.")
876876 }
877877
878878
879879
880880 @Callable(i)
881881 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
882882 then throw("denied")
883883 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
884884
885885
886886
887887 @Callable(i)
888888 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
889889 then pd
890890 else [StringEntry(k, v)]
891891
892892
893893
894894 @Callable(i)
895895 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
896896 then pd
897897 else [IntegerEntry(k, v)]
898898
899899
900900
901901 @Callable(i)
902902 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
903903
904904
905905
906906 @Callable(i)
907907 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
908908
909909
910910
911911 @Callable(i)
912912 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
913913 let pr = calcPrices(amAmt, prAmt, lpAmt)
914914 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
915915 }
916916
917917
918918
919919 @Callable(i)
920920 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
921921
922922
923923
924924 @Callable(i)
925925 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
926926
927927
928928
929929 @Callable(i)
930930 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
931931
932932
933933
934934 @Callable(i)
935935 func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, epo(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, false, 0, ""))
936936
937937
938938
939939 @Callable(i)
940940 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
941941 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
942942 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
943943 }
944944
945945
946946 @Verifier(tx)
947947 func verify () = {
948948 let targetPublicKey = match m() {
949949 case pk: ByteVector =>
950950 pk
951951 case _: Unit =>
952952 tx.senderPublicKey
953953 case _ =>
954954 throw("Match error")
955955 }
956956 match tx {
957957 case order: Order =>
958958 let matcherPub = mp()
959959 let orderValid = moa(order)
960960 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
961961 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
962962 if (if (if (orderValid)
963963 then senderValid
964964 else false)
965965 then matcherValid
966966 else false)
967967 then true
968968 else toe(orderValid, senderValid, matcherValid)
969969 case s: SetScriptTransaction =>
970970 let newHash = blake2b256(value(s.script))
971971 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
972972 let currentHash = scriptHash(this)
973973 if (if ((allowedHash == newHash))
974974 then (currentHash != newHash)
975975 else false)
976976 then true
977977 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
978978 case _ =>
979979 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
980980 }
981981 }
982982

github/deemru/w8io/169f3d6 
312.88 ms