tx · EexXMNCZjYzVGqCCCxyZ2G51KzCiNu5UPTgjj1LCVVJ9

3N29w4u1KAEydahgLZBbjxRvu2Hx6k727EF:  -0.02900000 Waves

2022.09.12 14:02 [2225791] smart account 3N29w4u1KAEydahgLZBbjxRvu2Hx6k727EF > SELF 0.00000000 Waves

{ "type": 13, "id": "EexXMNCZjYzVGqCCCxyZ2G51KzCiNu5UPTgjj1LCVVJ9", "fee": 2900000, "feeAssetId": null, "timestamp": 1662980515535, "version": 2, "chainId": 84, "sender": "3N29w4u1KAEydahgLZBbjxRvu2Hx6k727EF", "senderPublicKey": "4g6gkRwdYwZxyU3tnN69rJgbeuGRc131ENTwcPoZW7v1", "proofs": [ "HnvvvN9PPq7t8pECmt7sQyswND5hjauXxHC9baU3XruzipDjCJfR6Sm7MEcLv7vE1dRGTE4rXhaeRRHxmcXpCDe" ], "script": "base64:BgJ/CAISAwoBCBIDCgEIEgASBAoCAQQSBwoFAQEBAQQSAwoBARIAEgcKBQEBAQgBEgQKAgEBEgMKAQESBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCE8AD2RlZmF1bHREZWNpbWFscwDAhD0ABnNjYWxlOACAwtcvAAxzY2FsZThCaWdJbnQJALYCAQCAwtcvAAdzY2FsZTE4CQC2AgEAgICQu7rWrfANAAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQAKc2xpcHBhZ2U0RAkAtgIBCQBlAgUGc2NhbGU4CQBpAgkAaAIFBnNjYWxlOAABBQZzY2FsZTgABUFtdWx0AgMxMDAABURjb252AgExAANTRVACAl9fAAVFTVBUWQIAAApQb29sQWN0aXZlAAEAClBvb2xQdXREaXMAAgAOUG9vbE1hdGNoZXJEaXMAAwAMUG9vbFNodXRkb3duAAQADmlkeFBvb2xBZGRyZXNzAAEACWlkeFBvb2xTdAACAAlpZHhMUEFzSWQAAwAJaWR4QW1Bc0l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m9keUJ5dGVzCQCRAwIIBQVvcmRlcgZwcm9vZnMAAQUKbWF0Y2hlclB1YgMDAwUKb3JkZXJWYWxpZAULc2VuZGVyVmFsaWQHBQxtYXRjaGVyVmFsaWQHBgkBA3RvZQMFCm9yZGVyVmFsaWQFC3NlbmRlclZhbGlkBQxtYXRjaGVyVmFsaWQDCQABAgUHJG1hdGNoMAIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAXMFByRtYXRjaDAEB25ld0hhc2gJAPYDAQkBBXZhbHVlAQgFAXMGc2NyaXB0BAthbGxvd2VkSGFzaAkA2wQBCQEFdmFsdWUBCQCdCAIFA2ZjYQkBHGtleUFsbG93ZWRMcFN0YWJsZVNjcmlwdEhhc2gABAtjdXJyZW50SGFzaAkA8QcBBQR0aGlzAwMJAAACBQthbGxvd2VkSGFzaAUHbmV3SGFzaAkBAiE9AgULY3VycmVudEhhc2gFB25ld0hhc2gHBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXm6t80v", "height": 2225791, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5ZS2TmdBCHygbM2jBNrfLb8znBahFWakg1Ks7z76PKX4 Next: AeiZHZ594HzgBeRLV8N1TyGz2xGAULjEAEYRNgDyVqXW 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 }
619619 else {
620620 let amBalance = getAccBalance(amId)
621621 let prBalance = getAccBalance(prId)
622- let $t02583826534 = if ((pmtAssetId == amId))
622+ let $t02583626532 = if ((pmtAssetId == amId))
623623 then if (if ((pmtAmtDefaultDecimals > amBalance))
624624 then true
625625 else (amAssetPart > pmtAmtDefaultDecimals))
632632 then throw("invalid payment amount")
633633 else $Tuple6(amBalance, (prBalance - pmtAmtDefaultDecimals), 0, 0, (pmtAmtDefaultDecimals - prAssetPart), amAssetPart)
634634 else throw("wrong pmtAssetId")
635- let amBalanceNow = $t02583826534._1
636- let prBalanceNow = $t02583826534._2
637- let virtSwapInAm = $t02583826534._3
638- let virtSwapOutPr = $t02583826534._4
639- let virtSwapInPr = $t02583826534._5
640- let virtSwapOutAm = $t02583826534._6
635+ let amBalanceNow = $t02583626532._1
636+ let prBalanceNow = $t02583626532._2
637+ let virtSwapInAm = $t02583626532._3
638+ let virtSwapOutPr = $t02583626532._4
639+ let virtSwapInPr = $t02583626532._5
640+ let virtSwapOutAm = $t02583626532._6
641641 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
642642 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
643643 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
762762 let estimPrAmt = r._2
763763 let amBalance = getAccBalance(amId)
764764 let prBalance = getAccBalance(prId)
765- let $t03131331770 = if ((outAssetId == amId))
765+ let $t03131131768 = if ((outAssetId == amId))
766766 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult))
767767 else if ((outAssetId == prId))
768768 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult))
769769 else throw("wrong outAssetId")
770- let amBalanceNow = $t03131331770._1
771- let prBalanceNow = $t03131331770._2
772- let virtSwapInAm = $t03131331770._3
773- let virtSwapOutPr = $t03131331770._4
774- let virtSwapInPr = $t03131331770._5
775- let virtSwapOutAm = $t03131331770._6
776- let totalGet = $t03131331770._7
770+ let amBalanceNow = $t03131131768._1
771+ let prBalanceNow = $t03131131768._2
772+ let virtSwapInAm = $t03131131768._3
773+ let virtSwapOutPr = $t03131131768._4
774+ let virtSwapInPr = $t03131131768._5
775+ let virtSwapOutAm = $t03131131768._6
776+ let totalGet = $t03131131768._7
777777 if (if ((0 > virtSwapInAm))
778778 then true
779779 else (0 > virtSwapInPr))
787787 let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage))
788788 if ((finalRes == finalRes))
789789 then {
790- let $t03247532579 = if ((outAssetId == amId))
790+ let $t03247332577 = if ((outAssetId == amId))
791791 then $Tuple2(toInt(finalRes._2), 0)
792792 else $Tuple2(0, toInt(finalRes._2))
793- let outAm = $t03247532579._1
794- let outPr = $t03247532579._2
793+ let outAm = $t03247332577._1
794+ let outPr = $t03247332577._2
795795 let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm))
796796 let curPr = f1(curPrX18, scale8)
797797 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)
622- let $t02583826534 = if ((pmtAssetId == amId))
622+ let $t02583626532 = if ((pmtAssetId == amId))
623623 then if (if ((pmtAmtDefaultDecimals > amBalance))
624624 then true
625625 else (amAssetPart > pmtAmtDefaultDecimals))
626626 then throw("invalid payment amount")
627627 else $Tuple6((amBalance - pmtAmtDefaultDecimals), prBalance, (pmtAmtDefaultDecimals - amAssetPart), prAssetPart, 0, 0)
628628 else if ((pmtAssetId == prId))
629629 then if (if ((pmtAmtDefaultDecimals > prBalance))
630630 then true
631631 else (prAssetPart > pmtAmtDefaultDecimals))
632632 then throw("invalid payment amount")
633633 else $Tuple6(amBalance, (prBalance - pmtAmtDefaultDecimals), 0, 0, (pmtAmtDefaultDecimals - prAssetPart), amAssetPart)
634634 else throw("wrong pmtAssetId")
635- let amBalanceNow = $t02583826534._1
636- let prBalanceNow = $t02583826534._2
637- let virtSwapInAm = $t02583826534._3
638- let virtSwapOutPr = $t02583826534._4
639- let virtSwapInPr = $t02583826534._5
640- let virtSwapOutAm = $t02583826534._6
635+ let amBalanceNow = $t02583626532._1
636+ let prBalanceNow = $t02583626532._2
637+ let virtSwapInAm = $t02583626532._3
638+ let virtSwapOutPr = $t02583626532._4
639+ let virtSwapInPr = $t02583626532._5
640+ let virtSwapOutAm = $t02583626532._6
641641 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
642642 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
643643 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
644644 if ((D0vsD1 == D0vsD1))
645645 then {
646646 let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId)
647647 let estimLP = estPut._2
648648 let lpAssetId = estPut._7
649649 let state = estPut._9
650650 let amDiff = estPut._10
651651 let prDiff = estPut._11
652652 let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
653653 let emitLpAmt = toInt(lpCalcRes._2)
654654 let e = invoke(fca, "emit", [emitLpAmt], nil)
655655 if ((e == e))
656656 then {
657657 let el = match e {
658658 case legacy: Address =>
659659 invoke(legacy, "emit", [emitLpAmt], nil)
660660 case _ =>
661661 unit
662662 }
663663 if ((el == el))
664664 then {
665665 let sa = if ((amDiff > 0))
666666 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
667667 else nil
668668 if ((sa == sa))
669669 then {
670670 let sp = if ((prDiff > 0))
671671 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
672672 else nil
673673 if ((sp == sp))
674674 then {
675675 let lpTrnsfr = if (autoStake)
676676 then {
677677 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
678678 if ((ss == ss))
679679 then nil
680680 else throw("Strict value is not equal to itself.")
681681 }
682682 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
683683 (state ++ lpTrnsfr)
684684 }
685685 else throw("Strict value is not equal to itself.")
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 }
696696 }
697697
698698
699699
700700 @Callable(i)
701701 func putForFree (maxSlpg) = if ((0 > maxSlpg))
702702 then throw("Wrong slpg")
703703 else if ((size(i.payments) != 2))
704704 then throw("2 pmnts expd")
705705 else {
706706 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, "")
707707 estPut._9
708708 }
709709
710710
711711
712712 @Callable(i)
713713 func get () = {
714714 let r = cg(i)
715715 let outAmtAmt = r._1
716716 let outPrAmt = r._2
717717 let pmtAmt = r._3
718718 let pmtAssetId = r._4
719719 let state = r._5
720720 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
721721 if ((b == b))
722722 then state
723723 else throw("Strict value is not equal to itself.")
724724 }
725725
726726
727727
728728 @Callable(i)
729729 func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1))
730730 then throw("1 pmnt expd")
731731 else {
732732 let cfg = gpc()
733733 let lpId = cfg[idxLPAsId]
734734 let amId = cfg[idxAmAsId]
735735 let prId = cfg[idxPrAsId]
736736 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
737737 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
738738 let sts = cfg[idxPoolSt]
739739 let factCfg = gfc()
740740 let gwxCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactGwxRewCntr]), "Wr sl addr")
741741 let pmt = value(i.payments[0])
742742 let addon = valueOrElse(getString(this, ada()), "")
743743 let userAddress = if ((addon == toString(i.caller)))
744744 then i.originCaller
745745 else i.caller
746746 let txId58 = toBase58String(i.transactionId)
747747 let pmtAssetId = value(pmt.assetId)
748748 let pmtAmt = pmt.amount
749749 if ((1000000000 > pmtAmt))
750750 then throw("Min pmt 10 LP")
751751 else if (if (if ((0 > slippage))
752752 then true
753753 else (0 > exchResult))
754754 then true
755755 else (0 > outAmount))
756756 then throw("Wrong params")
757757 else if ((lpId != toBase58String(pmtAssetId)))
758758 then throw("Wrong LP")
759759 else {
760760 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
761761 let estimAmAmt = r._1
762762 let estimPrAmt = r._2
763763 let amBalance = getAccBalance(amId)
764764 let prBalance = getAccBalance(prId)
765- let $t03131331770 = if ((outAssetId == amId))
765+ let $t03131131768 = if ((outAssetId == amId))
766766 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult))
767767 else if ((outAssetId == prId))
768768 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult))
769769 else throw("wrong outAssetId")
770- let amBalanceNow = $t03131331770._1
771- let prBalanceNow = $t03131331770._2
772- let virtSwapInAm = $t03131331770._3
773- let virtSwapOutPr = $t03131331770._4
774- let virtSwapInPr = $t03131331770._5
775- let virtSwapOutAm = $t03131331770._6
776- let totalGet = $t03131331770._7
770+ let amBalanceNow = $t03131131768._1
771+ let prBalanceNow = $t03131131768._2
772+ let virtSwapInAm = $t03131131768._3
773+ let virtSwapOutPr = $t03131131768._4
774+ let virtSwapInPr = $t03131131768._5
775+ let virtSwapOutAm = $t03131131768._6
776+ let totalGet = $t03131131768._7
777777 if (if ((0 > virtSwapInAm))
778778 then true
779779 else (0 > virtSwapInPr))
780780 then throw("Wrong calc")
781781 else {
782782 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
783783 let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil)
784784 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
785785 if ((D0vsD1 == D0vsD1))
786786 then {
787787 let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage))
788788 if ((finalRes == finalRes))
789789 then {
790- let $t03247532579 = if ((outAssetId == amId))
790+ let $t03247332577 = if ((outAssetId == amId))
791791 then $Tuple2(toInt(finalRes._2), 0)
792792 else $Tuple2(0, toInt(finalRes._2))
793- let outAm = $t03247532579._1
794- let outPr = $t03247532579._2
793+ let outAm = $t03247332577._1
794+ let outPr = $t03247332577._2
795795 let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm))
796796 let curPr = f1(curPrX18, scale8)
797797 let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES"))
798798 then unit
799799 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)]
800800 if ((state == state))
801801 then {
802802 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
803803 if ((burn == burn))
804804 then state
805805 else throw("Strict value is not equal to itself.")
806806 }
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 }
814814 }
815815
816816
817817
818818 @Callable(i)
819819 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
820820 let r = cg(i)
821821 let outAmAmt = r._1
822822 let outPrAmt = r._2
823823 let pmtAmt = r._3
824824 let pmtAssetId = r._4
825825 let state = r._5
826826 if ((noLessThenAmtAsset > outAmAmt))
827827 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
828828 else if ((noLessThenPriceAsset > outPrAmt))
829829 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
830830 else {
831831 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
832832 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
833833 then state
834834 else throw("Strict value is not equal to itself.")
835835 }
836836 }
837837
838838
839839
840840 @Callable(i)
841841 func unstakeAndGet (amount) = {
842842 let checkPayments = if ((size(i.payments) != 0))
843843 then throw("No pmnts expd")
844844 else true
845845 if ((checkPayments == checkPayments))
846846 then {
847847 let cfg = gpc()
848848 let factoryCfg = gfc()
849849 let lpAssetId = fromBase58String(cfg[idxLPAsId])
850850 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
851851 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
852852 if ((unstakeInv == unstakeInv))
853853 then {
854854 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
855855 let sts = parseIntValue(r._9)
856856 let state = r._10
857857 let v = if (if (igs())
858858 then true
859859 else (sts == PoolShutdown))
860860 then throw(("Blocked: " + toString(sts)))
861861 else true
862862 if ((v == v))
863863 then {
864864 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
865865 if ((burnA == burnA))
866866 then state
867867 else throw("Strict value is not equal to itself.")
868868 }
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
876876
877877
878878 @Callable(i)
879879 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
880880 then throw("denied")
881881 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
882882
883883
884884
885885 @Callable(i)
886886 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
887887 then pd
888888 else [StringEntry(k, v)]
889889
890890
891891
892892 @Callable(i)
893893 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
894894 then pd
895895 else [IntegerEntry(k, v)]
896896
897897
898898
899899 @Callable(i)
900900 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
901901
902902
903903
904904 @Callable(i)
905905 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
906906
907907
908908
909909 @Callable(i)
910910 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
911911 let pr = calcPrices(amAmt, prAmt, lpAmt)
912912 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
913913 }
914914
915915
916916
917917 @Callable(i)
918918 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
919919
920920
921921
922922 @Callable(i)
923923 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
924924
925925
926926
927927 @Callable(i)
928928 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
929929
930930
931931
932932 @Callable(i)
933933 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, ""))
934934
935935
936936
937937 @Callable(i)
938938 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
939939 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
940940 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
941941 }
942942
943943
944944 @Verifier(tx)
945945 func verify () = {
946946 let targetPublicKey = match m() {
947947 case pk: ByteVector =>
948948 pk
949949 case _: Unit =>
950950 tx.senderPublicKey
951951 case _ =>
952952 throw("Match error")
953953 }
954954 match tx {
955955 case order: Order =>
956956 let matcherPub = mp()
957957 let orderValid = moa(order)
958958 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
959959 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
960960 if (if (if (orderValid)
961961 then senderValid
962962 else false)
963963 then matcherValid
964964 else false)
965965 then true
966966 else toe(orderValid, senderValid, matcherValid)
967967 case s: SetScriptTransaction =>
968968 let newHash = blake2b256(value(s.script))
969969 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
970970 let currentHash = scriptHash(this)
971971 if (if ((allowedHash == newHash))
972972 then (currentHash != newHash)
973973 else false)
974974 then true
975975 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
976976 case _ =>
977977 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
978978 }
979979 }
980980

github/deemru/w8io/026f985 
128.60 ms