tx · 8fDPDeWMp6dV65kqM4o7gtiMPZFsAg8nwDfBrNTwKv4j

3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA:  -0.03400000 Waves

2022.09.14 17:49 [2228914] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves

{ "type": 13, "id": "8fDPDeWMp6dV65kqM4o7gtiMPZFsAg8nwDfBrNTwKv4j", "fee": 3400000, "feeAssetId": null, "timestamp": 1663166988521, "version": 2, "chainId": 84, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "3dP7xNoYRbP83DWWsegBqQgLnykk8VbR8pz9pErUpTZQ96DYsHT5VYyKDNhfJHE6Nu85v2jNA4hXoCR9Uett2bf" ], "script": "base64:BgKcAQgCEgMKAQgSAwoBCBIAEgQKAgEEEgcKBQEBAQEEEgQKAgEEEgQKAgEIEgQKAgEIEgMKAQESABIECgIIARIECgIIARIECgIBARIDCgEBEgYKBAEBCAESBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCFMABnNjYWxlOACAwtcvAAxzY2FsZThCaWdJbnQJALYCAQCAwtcvAAdzY2FsZTE4CQC2AgEAgICQu7rWrfANAAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQAKc2xpcHBhZ2U0RAkAtgIBCQBlAgUGc2NhbGU4CQBpAgkAaAIFBnNjYWxlOAABBQZzY2FsZTgABUFtdWx0AgMxMDAABURjb252AgExAANTRVACAl9fAAVFTVBUWQIAAApQb29sQWN0aXZlAAEAClBvb2xQdXREaXMAAgAOUG9vbE1hdGNoZXJEaXMAAwAMUG9vbFNodXRkb3duAAQADmlkeFBvb2xBZGRyZXNzAAEACWlkeFBvb2xTdAACAAlpZHhMUEFzSWQAAw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JQdWJsaWNLZXkEDG1hdGNoZXJWYWxpZAkA9AMDCAUFb3JkZXIJYm9keUJ5dGVzCQCRAwIIBQVvcmRlcgZwcm9vZnMAAQUKbWF0Y2hlclB1YgMDAwUKb3JkZXJWYWxpZAULc2VuZGVyVmFsaWQHBQxtYXRjaGVyVmFsaWQHBgkBA3RvZQMFCm9yZGVyVmFsaWQFC3NlbmRlclZhbGlkBQxtYXRjaGVyVmFsaWQDCQABAgUHJG1hdGNoMAIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAXMFByRtYXRjaDAEB25ld0hhc2gJAPYDAQkBBXZhbHVlAQgFAXMGc2NyaXB0BAthbGxvd2VkSGFzaAkA2wQBCQEFdmFsdWUBCQCdCAIFA2ZjYQkBHGtleUFsbG93ZWRMcFN0YWJsZVNjcmlwdEhhc2gABAtjdXJyZW50SGFzaAkA8QcBBQR0aGlzAwMJAAACBQthbGxvd2VkSGFzaAUHbmV3SGFzaAkBAiE9AgULY3VycmVudEhhc2gFB25ld0hhc2gHBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXmkyHSu", "height": 2228914, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FWRCYY4zue6snFDicJRebUw6dB8rWpyb7KNVM8TUAQR3 Next: 4XM7x2UoFYqjdbEK5qAuH3vromHThVdSG39uBJCAqx7L Diff:
OldNewDifferences
842842 let curPrice = r._3
843843 let lpAssetEmission = r._6
844844 let lpAssetId = r._7
845- let $t03251532824 = if ((paymentAssetId == amId))
845+ let $t03251532790 = if ((paymentAssetId == amId))
846846 then {
847- let priceAssetAmount = fraction(paymentAmount, curPrice, scale8)
847+ let priceAssetAmount = (paymentAmount * curPrice)
848848 $Tuple2(paymentAmount, priceAssetAmount)
849849 }
850850 else {
851- let amountAssetAmount = fraction(paymentAmount, scale8, curPrice)
851+ let amountAssetAmount = (paymentAmount / curPrice)
852852 $Tuple2(amountAssetAmount, paymentAmount)
853853 }
854- let amountAssetAmount = $t03251532824._1
855- let priceAssetAmount = $t03251532824._2
854+ let amountAssetAmount = $t03251532790._1
855+ let priceAssetAmount = $t03251532790._2
856856 let lpAmtBoth = fraction(lpAssetEmission, priceAssetAmount, prBalance)
857857 let lpAssetPriceOne = if ((paymentAssetId == amId))
858858 then (amountAssetAmount / estimLP)
929929 else false)
930930 then throw(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
931931 else totalGet
932- let $t03575935846 = if ((outAssetId == amId))
932+ let $t03572535812 = if ((outAssetId == amId))
933933 then $Tuple2(totalAmount, 0)
934934 else $Tuple2(0, totalAmount)
935- let outAm = $t03575935846._1
936- let outPr = $t03575935846._2
935+ let outAm = $t03572535812._1
936+ let outPr = $t03572535812._2
937937 let curPrX18 = cpbi(t1(prBalance, prDecimals), t1(amBalance, amDecimals))
938938 let curPr = f1(curPrX18, scale8)
939939 let state = [ScriptTransfer(userAddress, totalAmount, if ((outAssetId == "WAVES"))
966966 let prBalance = getAccBalance(prId)
967967 let amBalanceNow = (amBalance - estimAmAmt)
968968 let prBalanceNow = (prBalance - estimPrAmt)
969- let $t03694037211 = if ((outAssetId == amId))
969+ let $t03690637177 = if ((outAssetId == amId))
970970 then $Tuple3(prBalanceNow, amBalanceNow, estimPrAmt)
971971 else if ((outAssetId == prId))
972972 then $Tuple3(amBalanceNow, prBalanceNow, estimAmAmt)
973973 else throw("wrong outAssetId")
974- let amountBalanceForSwap = $t03694037211._1
975- let priceBalanceForSwap = $t03694037211._2
976- let amountToSwap = $t03694037211._3
974+ let amountBalanceForSwap = $t03690637177._1
975+ let priceBalanceForSwap = $t03690637177._2
976+ let amountToSwap = $t03690637177._3
977977 let yPrecision = 1
978978 let exchResult = {
979979 let @ = invoke(gwxContract, "calcSwapXToY", [toString(amountToSwap), toString(amountBalanceForSwap), toString(priceBalanceForSwap), "", A, Amult, toString(yPrecision), Dconv], nil)
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 oneBigInt = toBigInt(1)
1313
1414 let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8)))
1515
1616 let Amult = "100"
1717
1818 let Dconv = "1"
1919
2020 let SEP = "__"
2121
2222 let EMPTY = ""
2323
2424 let PoolActive = 1
2525
2626 let PoolPutDis = 2
2727
2828 let PoolMatcherDis = 3
2929
3030 let PoolShutdown = 4
3131
3232 let idxPoolAddress = 1
3333
3434 let idxPoolSt = 2
3535
3636 let idxLPAsId = 3
3737
3838 let idxAmAsId = 4
3939
4040 let idxPrAsId = 5
4141
4242 let idxAmtAsDcm = 6
4343
4444 let idxPriceAsDcm = 7
4545
4646 let idxIAmtAsId = 8
4747
4848 let idxIPriceAsId = 9
4949
5050 let idxFactStakCntr = 1
5151
5252 let idxFactSlippCntr = 7
5353
5454 let idxFactGwxRewCntr = 10
5555
5656 let delay = "%s__delay"
5757
5858 func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
5959
6060
6161 func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
6262
6363
6464 func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale)
6565
6666
6767 func abs (val) = if ((zeroBigInt > val))
6868 then -(val)
6969 else val
7070
7171
7272 func fc () = "%s__factoryContract"
7373
7474
7575 func mpk () = "%s__managerPublicKey"
7676
7777
7878 func pmpk () = "%s__pendingManagerPublicKey"
7979
8080
8181 func pl () = "%s%s__price__last"
8282
8383
8484 func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP)
8585
8686
8787 func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId)
8888
8989
9090 func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId)
9191
9292
9393 func aa () = "%s__amountAsset"
9494
9595
9696 func pa () = "%s__priceAsset"
9797
9898
9999 func amp () = "%s__amp"
100100
101101
102102 func ada () = "%s__addonAddr"
103103
104104
105105 func lgotc (caller) = makeString(["%s%s__lastGetOneTknCall", caller], SEP)
106106
107107
108108 func lsotc (caller) = makeString(["%s%s__lastPutOneTknCall", caller], SEP)
109109
110110
111111 func fcfg () = "%s__factoryConfig"
112112
113113
114114 func mtpk () = "%s%s__matcher__publicKey"
115115
116116
117117 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
118118
119119
120120 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
121121
122122
123123 func aps () = "%s__shutdown"
124124
125125
126126 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
127127
128128
129129 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
130130
131131
132132 func str (val) = match val {
133133 case valStr: String =>
134134 valStr
135135 case _ =>
136136 throw("fail cast to String")
137137 }
138138
139139
140140 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
141141
142142
143143 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
144144
145145
146146 let fca = addressFromStringValue(strf(this, fc()))
147147
148148 let A = strf(this, amp())
149149
150150 func igs () = valueOrElse(getBoolean(fca, aps()), false)
151151
152152
153153 func mp () = fromBase58String(strf(fca, mtpk()))
154154
155155
156156 func gpc () = {
157157 let amtAs = strf(this, aa())
158158 let priceAs = strf(this, pa())
159159 let iPriceAs = intf(fca, mba(priceAs))
160160 let iAmtAs = intf(fca, mba(amtAs))
161161 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
162162 }
163163
164164
165165 func gfc () = split(strf(fca, fcfg()), SEP)
166166
167167
168168 let factoryConfig = gfc()
169169
170170 let stakingContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactStakCntr]), "Invalid staking contract address")
171171
172172 let slipageContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactSlippCntr]), "Invalid slipage contract address")
173173
174174 let gwxContract = valueOrErrorMessage(addressFromString(factoryConfig[idxFactGwxRewCntr]), "Invalid gwx contract address")
175175
176176 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)
177177
178178
179179 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)
180180
181181
182182 func getAccBalance (assetId) = if ((assetId == "WAVES"))
183183 then wavesBalance(this).available
184184 else assetBalance(this, fromBase58String(assetId))
185185
186186
187187 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
188188
189189
190190 func vad (A1,A2,slippage) = {
191191 let diff = fraction((A1 - A2), scale8BigInt, A2)
192192 let pass = ((slippage - abs(diff)) > zeroBigInt)
193193 if (!(pass))
194194 then throw(("Big slpg: " + toString(diff)))
195195 else $Tuple2(pass, min([A1, A2]))
196196 }
197197
198198
199199 func vd (D1,D0,slpg) = {
200200 let diff = fraction(D0, scale8BigInt, D1)
201201 let fail = (slpg > diff)
202202 if (if (fail)
203203 then true
204204 else (D0 > D1))
205205 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
206206 else fail
207207 }
208208
209209
210210 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
211211 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
212212 let prAsAmtX18 = t1(prAmt, prAssetDcm)
213213 cpbi(prAsAmtX18, amtAsAmtX18)
214214 }
215215
216216
217217 func calcPrices (amAmt,prAmt,lpAmt) = {
218218 let cfg = gpc()
219219 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
220220 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
221221 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
222222 let amAmtX18 = t1(amAmt, amtAsDcm)
223223 let prAmtX18 = t1(prAmt, prAsDcm)
224224 let lpAmtX18 = t1(lpAmt, scale8)
225225 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
226226 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
227227 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
228228 }
229229
230230
231231 func calculatePrices (amAmt,prAmt,lpAmt) = {
232232 let p = calcPrices(amAmt, prAmt, lpAmt)
233233 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
234234 }
235235
236236
237237 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
238238 let cfg = gpc()
239239 let lpId = cfg[idxLPAsId]
240240 let amId = cfg[idxAmAsId]
241241 let prId = cfg[idxPrAsId]
242242 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
243243 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
244244 let sts = cfg[idxPoolSt]
245245 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
246246 if ((lpId != pmtAssetId))
247247 then throw("Wrong pmt asset")
248248 else {
249249 let amBalance = getAccBalance(amId)
250250 let amBalanceX18 = t1(amBalance, amDcm)
251251 let prBalance = getAccBalance(prId)
252252 let prBalanceX18 = t1(prBalance, prDcm)
253253 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
254254 let curPrice = f1(curPriceX18, scale8)
255255 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
256256 let lpEmissX18 = t1(lpEmiss, scale8)
257257 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
258258 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
259259 let outAmAmt = f1(outAmAmtX18, amDcm)
260260 let outPrAmt = f1(outPrAmtX18, prDcm)
261261 let state = if ((txId58 == ""))
262262 then nil
263263 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
264264 then unit
265265 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
266266 then unit
267267 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)]
268268 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
269269 }
270270 }
271271
272272
273273 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,validateSlippage,pmtAmt,pmtId) = {
274274 let cfg = gpc()
275275 let lpId = fromBase58String(cfg[idxLPAsId])
276276 let amIdStr = cfg[idxAmAsId]
277277 let prIdStr = cfg[idxPrAsId]
278278 let inAmIdStr = cfg[idxIAmtAsId]
279279 let inPrIdStr = cfg[idxIPriceAsId]
280280 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
281281 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
282282 let sts = cfg[idxPoolSt]
283283 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
284284 let amBalance = if (isEval)
285285 then getAccBalance(amIdStr)
286286 else if (if (isOneAsset)
287287 then (pmtId == amIdStr)
288288 else false)
289289 then (getAccBalance(amIdStr) - pmtAmt)
290290 else if (isOneAsset)
291291 then getAccBalance(amIdStr)
292292 else (getAccBalance(amIdStr) - inAmAmt)
293293 let prBalance = if (isEval)
294294 then getAccBalance(prIdStr)
295295 else if (if (isOneAsset)
296296 then (pmtId == prIdStr)
297297 else false)
298298 then (getAccBalance(prIdStr) - pmtAmt)
299299 else if (isOneAsset)
300300 then getAccBalance(prIdStr)
301301 else (getAccBalance(prIdStr) - inPrAmt)
302302 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
303303 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
304304 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
305305 let amBalanceX18 = t1(amBalance, amtDcm)
306306 let prBalanceX18 = t1(prBalance, priceDcm)
307307 let r = if ((lpEm == 0))
308308 then {
309309 let curPriceX18 = zeroBigInt
310310 let slippageX18 = zeroBigInt
311311 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
312312 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
313313 }
314314 else {
315315 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
316316 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
317317 let slippageX18 = t1(slippage, scale8)
318318 if (if (if (validateSlippage)
319319 then (curPriceX18 != zeroBigInt)
320320 else false)
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, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
335335 }
336336 }
337337 let calcLpAmt = r._1
338338 let calcAmAssetPmt = r._2
339339 let calcPrAssetPmt = r._3
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)
350350 let $t01608316428 = 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)
359359 let writeAmAmt = $t01608316428._1
360360 let writePrAmt = $t01608316428._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,validateSlippage,pmtAmt,pmtId) = {
432432 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, validateSlippage, 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 estimatePutOneTknV2 (pmtAmt,pmtAssetId,userAddress,txId) = {
445445 let poolConfig = gpc()
446446 let amId = poolConfig[idxAmAsId]
447447 let prId = poolConfig[idxPrAsId]
448448 let amBalance = getAccBalance(amId)
449449 let prBalance = getAccBalance(prId)
450450 let $t02075121200 = if ((txId == ""))
451451 then $Tuple2(amBalance, prBalance)
452452 else if ((pmtAssetId == amId))
453453 then if ((pmtAmt > amBalance))
454454 then throw("invalid payment amount")
455455 else $Tuple2((amBalance - pmtAmt), prBalance)
456456 else if ((pmtAssetId == prId))
457457 then if ((pmtAmt > prBalance))
458458 then throw("invalid payment amount")
459459 else $Tuple2(amBalance, (prBalance - pmtAmt))
460460 else throw("wrong pmtAssetId")
461461 let amBalanceNow = $t02075121200._1
462462 let prBalanceNow = $t02075121200._2
463463 let $t02120421338 = if ((pmtAssetId == amId))
464464 then $Tuple2(amBalanceNow, prBalanceNow)
465465 else $Tuple2(prBalanceNow, amBalanceNow)
466466 let amBalanceForCalc = $t02120421338._1
467467 let prBalanceForCalc = $t02120421338._2
468468 let xPrecision = 1
469469 let result = {
470470 let @ = invoke(gwxContract, "calcPutXOnly", [toString(pmtAmt), toString(amBalanceForCalc), toString(prBalanceForCalc), "", A, Amult, toString(xPrecision), Dconv], nil)
471471 if ($isInstanceOf(@, "(Int, Int)"))
472472 then @
473473 else throw(($getType(invoke(gwxContract, "calcPutXOnly", [toString(pmtAmt), toString(amBalanceForCalc), toString(prBalanceForCalc), "", A, Amult, toString(xPrecision), Dconv], nil)) + " couldn't be cast to (Int, Int)"))
474474 }
475475 let $t02180721903 = if ((pmtAssetId == amId))
476476 then result
477477 else $Tuple2(result._2, result._1)
478478 let amAssetPart = $t02180721903._1
479479 let prAssetPart = $t02180721903._2
480480 let estPut = cp(userAddress, txId, AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), 0, true, true, false, pmtAmt, pmtAssetId)
481481 let estimLP = estPut._2
482482 let lpAssetId = estPut._7
483483 let state = estPut._9
484484 let amDiff = estPut._10
485485 let prDiff = estPut._11
486486 estPut
487487 }
488488
489489
490490 func m () = match getString(mpk()) {
491491 case s: String =>
492492 fromBase58String(s)
493493 case _: Unit =>
494494 unit
495495 case _ =>
496496 throw("Match error")
497497 }
498498
499499
500500 func pm () = match getString(pmpk()) {
501501 case s: String =>
502502 fromBase58String(s)
503503 case _: Unit =>
504504 unit
505505 case _ =>
506506 throw("Match error")
507507 }
508508
509509
510510 let pd = throw("Permission denied")
511511
512512 func mm (i) = match m() {
513513 case pk: ByteVector =>
514514 if ((i.callerPublicKey == pk))
515515 then true
516516 else pd
517517 case _: Unit =>
518518 if ((i.caller == this))
519519 then true
520520 else pd
521521 case _ =>
522522 throw("Match error")
523523 }
524524
525525
526526 @Callable(i)
527527 func constructor (fc) = {
528528 let c = mm(i)
529529 if ((c == c))
530530 then [StringEntry(fc(), fc)]
531531 else throw("Strict value is not equal to itself.")
532532 }
533533
534534
535535
536536 @Callable(i)
537537 func setManager (pendingManagerPublicKey) = {
538538 let c = mm(i)
539539 if ((c == c))
540540 then {
541541 let cm = fromBase58String(pendingManagerPublicKey)
542542 if ((cm == cm))
543543 then [StringEntry(pmpk(), pendingManagerPublicKey)]
544544 else throw("Strict value is not equal to itself.")
545545 }
546546 else throw("Strict value is not equal to itself.")
547547 }
548548
549549
550550
551551 @Callable(i)
552552 func confirmManager () = {
553553 let p = pm()
554554 let hpm = if (isDefined(p))
555555 then true
556556 else throw("No pending manager")
557557 if ((hpm == hpm))
558558 then {
559559 let cpm = if ((i.callerPublicKey == value(p)))
560560 then true
561561 else throw("You are not pending manager")
562562 if ((cpm == cpm))
563563 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
564564 else throw("Strict value is not equal to itself.")
565565 }
566566 else throw("Strict value is not equal to itself.")
567567 }
568568
569569
570570
571571 @Callable(i)
572572 func put (slip,autoStake) = {
573573 let factCfg = gfc()
574574 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
575575 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
576576 if ((0 > slip))
577577 then throw("Wrong slippage")
578578 else if ((size(i.payments) != 2))
579579 then throw("2 pmnts expd")
580580 else {
581581 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, "")
582582 let emitLpAmt = e._2
583583 let lpAssetId = e._7
584584 let state = e._9
585585 let amDiff = e._10
586586 let prDiff = e._11
587587 let amId = e._12
588588 let prId = e._13
589589 let r = invoke(fca, "emit", [emitLpAmt], nil)
590590 if ((r == r))
591591 then {
592592 let el = match r {
593593 case legacy: Address =>
594594 invoke(legacy, "emit", [emitLpAmt], nil)
595595 case _ =>
596596 unit
597597 }
598598 if ((el == el))
599599 then {
600600 let sa = if ((amDiff > 0))
601601 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
602602 else nil
603603 if ((sa == sa))
604604 then {
605605 let sp = if ((prDiff > 0))
606606 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
607607 else nil
608608 if ((sp == sp))
609609 then {
610610 let lpTrnsfr = if (autoStake)
611611 then {
612612 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
613613 if ((ss == ss))
614614 then nil
615615 else throw("Strict value is not equal to itself.")
616616 }
617617 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
618618 (state ++ lpTrnsfr)
619619 }
620620 else throw("Strict value is not equal to itself.")
621621 }
622622 else throw("Strict value is not equal to itself.")
623623 }
624624 else throw("Strict value is not equal to itself.")
625625 }
626626 else throw("Strict value is not equal to itself.")
627627 }
628628 }
629629
630630
631631
632632 @Callable(i)
633633 func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = {
634634 let cfg = gfc()
635635 let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr")
636636 let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr")
637637 let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr")
638638 let poolCfg = gpc()
639639 let amId = poolCfg[idxAmAsId]
640640 let prId = poolCfg[idxPrAsId]
641641 let amDcm = parseIntValue(poolCfg[idxAmtAsDcm])
642642 let prDcm = parseIntValue(poolCfg[idxPriceAsDcm])
643643 let addon = valueOrElse(getString(this, ada()), "")
644644 let userAddress = if ((addon == toString(i.caller)))
645645 then i.originCaller
646646 else i.caller
647647 let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid")
648648 let check = reentrantInvoke(addonContract, "ensureCanPutOneTkn", [toString(userAddress)], nil)
649649 if ((check == check))
650650 then if (if (if (if ((0 >= slippage))
651651 then true
652652 else (0 >= amAssetPart))
653653 then true
654654 else (0 >= prAssetPart))
655655 then true
656656 else (0 >= outLp))
657657 then throw("Wrong params")
658658 else if ((size(i.payments) != 1))
659659 then throw("1 pmnt expd")
660660 else {
661661 let pmt = value(i.payments[0])
662662 let pmtAssetId = toBase58String(value(pmt.assetId))
663663 let pmtAmt = pmt.amount
664664 if ((10000000 > pmtAmt))
665665 then throw("Wrong pmt amt")
666666 else {
667667 let amBalance = getAccBalance(amId)
668668 let prBalance = getAccBalance(prId)
669669 let $t02727627852 = if ((pmtAssetId == amId))
670670 then if (if ((pmtAmt > amBalance))
671671 then true
672672 else (amAssetPart > pmtAmt))
673673 then throw("invalid payment amount")
674674 else $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0)
675675 else if ((pmtAssetId == prId))
676676 then if (if ((pmtAmt > prBalance))
677677 then true
678678 else (prAssetPart > pmtAmt))
679679 then throw("invalid payment amount")
680680 else $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart)
681681 else throw("wrong pmtAssetId")
682682 let amBalanceNow = $t02727627852._1
683683 let prBalanceNow = $t02727627852._2
684684 let virtSwapInAm = $t02727627852._3
685685 let virtSwapOutPr = $t02727627852._4
686686 let virtSwapInPr = $t02727627852._5
687687 let virtSwapOutAm = $t02727627852._6
688688 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
689689 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
690690 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
691691 if ((D0vsD1 == D0vsD1))
692692 then {
693693 let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, true, pmtAmt, pmtAssetId)
694694 let estimLP = estPut._2
695695 let lpAssetId = estPut._7
696696 let state = estPut._9
697697 let amDiff = estPut._10
698698 let prDiff = estPut._11
699699 let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
700700 let emitLpAmt = toInt(lpCalcRes._2)
701701 let e = invoke(fca, "emit", [emitLpAmt], nil)
702702 if ((e == e))
703703 then {
704704 let el = match e {
705705 case legacy: Address =>
706706 invoke(legacy, "emit", [emitLpAmt], nil)
707707 case _ =>
708708 unit
709709 }
710710 if ((el == el))
711711 then {
712712 let sa = if ((amDiff > 0))
713713 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
714714 else nil
715715 if ((sa == sa))
716716 then {
717717 let sp = if ((prDiff > 0))
718718 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
719719 else nil
720720 if ((sp == sp))
721721 then {
722722 let lpTrnsfr = if (autoStake)
723723 then {
724724 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
725725 if ((ss == ss))
726726 then nil
727727 else throw("Strict value is not equal to itself.")
728728 }
729729 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
730730 (state ++ lpTrnsfr)
731731 }
732732 else throw("Strict value is not equal to itself.")
733733 }
734734 else throw("Strict value is not equal to itself.")
735735 }
736736 else throw("Strict value is not equal to itself.")
737737 }
738738 else throw("Strict value is not equal to itself.")
739739 }
740740 else throw("Strict value is not equal to itself.")
741741 }
742742 }
743743 else throw("Strict value is not equal to itself.")
744744 }
745745
746746
747747
748748 @Callable(i)
749749 func putOneTknV2 (minOutAmount,autoStake) = if ((size(i.payments) != 1))
750750 then throw("1 pmnt expd")
751751 else {
752752 let poolConfig = gpc()
753753 let amId = poolConfig[idxAmAsId]
754754 let prId = poolConfig[idxPrAsId]
755755 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
756756 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
757757 let userAddress = if ((i.caller == this))
758758 then i.originCaller
759759 else i.caller
760760 let pmt = value(i.payments[0])
761761 let pmtAssetId = toBase58String(value(pmt.assetId))
762762 let pmtAmt = pmt.amount
763763 if ((10000000 > pmtAmt))
764764 then throw("Wrong pmt amt")
765765 else {
766766 let r = estimatePutOneTknV2(pmtAmt, pmtAssetId, toString(userAddress), toBase58String(i.transactionId))
767767 let estimLP = r._2
768768 let lpAssetId = r._7
769769 let state = r._9
770770 let amDiff = r._10
771771 let prDiff = r._11
772772 let emitLpAmt = if (if ((minOutAmount > 0))
773773 then (minOutAmount > estimLP)
774774 else false)
775775 then throw(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
776776 else estimLP
777777 let e = invoke(fca, "emit", [emitLpAmt], nil)
778778 if ((e == e))
779779 then {
780780 let el = match e {
781781 case legacy: Address =>
782782 invoke(legacy, "emit", [emitLpAmt], nil)
783783 case _ =>
784784 unit
785785 }
786786 if ((el == el))
787787 then {
788788 let sa = if ((amDiff > 0))
789789 then invoke(slipageContract, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
790790 else nil
791791 if ((sa == sa))
792792 then {
793793 let sp = if ((prDiff > 0))
794794 then invoke(slipageContract, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
795795 else nil
796796 if ((sp == sp))
797797 then {
798798 let lpTrnsfr = if (autoStake)
799799 then {
800800 let ss = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
801801 if ((ss == ss))
802802 then nil
803803 else throw("Strict value is not equal to itself.")
804804 }
805805 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
806806 $Tuple2((state ++ lpTrnsfr), emitLpAmt)
807807 }
808808 else throw("Strict value is not equal to itself.")
809809 }
810810 else throw("Strict value is not equal to itself.")
811811 }
812812 else throw("Strict value is not equal to itself.")
813813 }
814814 else throw("Strict value is not equal to itself.")
815815 }
816816 }
817817
818818
819819
820820 @Callable(i)
821821 func putOneTknV2READONLY (paymentAmount,paymentAssetId) = {
822822 let r = estimatePutOneTknV2(paymentAmount, paymentAssetId, "", "")
823823 let estimLP = r._2
824824 let lpAssetId = r._7
825825 let state = r._9
826826 let amDiff = r._10
827827 let prDiff = r._11
828828 $Tuple2(nil, estimLP)
829829 }
830830
831831
832832
833833 @Callable(i)
834834 func putOneTknV2WithBonusREADONLY (paymentAmount,paymentAssetId) = {
835835 let poolConfig = gpc()
836836 let amId = poolConfig[idxAmAsId]
837837 let prId = poolConfig[idxPrAsId]
838838 let amBalance = getAccBalance(amId)
839839 let prBalance = getAccBalance(prId)
840840 let r = estimatePutOneTknV2(paymentAmount, paymentAssetId, "", "")
841841 let estimLP = r._2
842842 let curPrice = r._3
843843 let lpAssetEmission = r._6
844844 let lpAssetId = r._7
845- let $t03251532824 = if ((paymentAssetId == amId))
845+ let $t03251532790 = if ((paymentAssetId == amId))
846846 then {
847- let priceAssetAmount = fraction(paymentAmount, curPrice, scale8)
847+ let priceAssetAmount = (paymentAmount * curPrice)
848848 $Tuple2(paymentAmount, priceAssetAmount)
849849 }
850850 else {
851- let amountAssetAmount = fraction(paymentAmount, scale8, curPrice)
851+ let amountAssetAmount = (paymentAmount / curPrice)
852852 $Tuple2(amountAssetAmount, paymentAmount)
853853 }
854- let amountAssetAmount = $t03251532824._1
855- let priceAssetAmount = $t03251532824._2
854+ let amountAssetAmount = $t03251532790._1
855+ let priceAssetAmount = $t03251532790._2
856856 let lpAmtBoth = fraction(lpAssetEmission, priceAssetAmount, prBalance)
857857 let lpAssetPriceOne = if ((paymentAssetId == amId))
858858 then (amountAssetAmount / estimLP)
859859 else (priceAssetAmount / estimLP)
860860 let lpAssetPriceBoth = ((priceAssetAmount + amountAssetAmount) / lpAmtBoth)
861861 let bonus = ((lpAssetPriceOne - lpAssetPriceBoth) / lpAssetPriceOne)
862862 $Tuple2(nil, lpAssetPriceOne)
863863 }
864864
865865
866866
867867 @Callable(i)
868868 func putForFree (maxSlpg) = if ((0 > maxSlpg))
869869 then throw("Wrong slpg")
870870 else if ((size(i.payments) != 2))
871871 then throw("2 pmnts expd")
872872 else {
873873 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, "")
874874 estPut._9
875875 }
876876
877877
878878
879879 @Callable(i)
880880 func get () = {
881881 let r = cg(i)
882882 let outAmtAmt = r._1
883883 let outPrAmt = r._2
884884 let pmtAmt = r._3
885885 let pmtAssetId = r._4
886886 let state = r._5
887887 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
888888 if ((b == b))
889889 then state
890890 else throw("Strict value is not equal to itself.")
891891 }
892892
893893
894894
895895 @Callable(i)
896896 func getOneTknV2 (outAssetId,minOutAmount) = if ((size(i.payments) != 1))
897897 then throw("1 pmnt expd")
898898 else {
899899 let poolConfig = gpc()
900900 let lpId = poolConfig[idxLPAsId]
901901 let amId = poolConfig[idxAmAsId]
902902 let prId = poolConfig[idxPrAsId]
903903 let amDecimals = parseIntValue(poolConfig[idxAmtAsDcm])
904904 let prDecimals = parseIntValue(poolConfig[idxPriceAsDcm])
905905 let poolStatus = poolConfig[idxPoolSt]
906906 let userAddress = if ((i.caller == this))
907907 then i.originCaller
908908 else i.caller
909909 let pmt = value(i.payments[0])
910910 let pmtAssetId = value(pmt.assetId)
911911 let pmtAmt = pmt.amount
912912 if ((1000000000 > pmtAmt))
913913 then throw("Min pmt 10 LP")
914914 else {
915915 let txId58 = toBase58String(i.transactionId)
916916 if ((lpId != toBase58String(pmtAssetId)))
917917 then throw("Wrong LP")
918918 else {
919919 let amBalance = getAccBalance(amId)
920920 let prBalance = getAccBalance(prId)
921921 let totalGet = {
922922 let @ = invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)
923923 if ($isInstanceOf(@, "Int"))
924924 then @
925925 else throw(($getType(invoke(this, "getOneTknV2READONLY", [outAssetId, pmtAmt], nil)) + " couldn't be cast to Int"))
926926 }
927927 let totalAmount = if (if ((minOutAmount > 0))
928928 then (minOutAmount > totalGet)
929929 else false)
930930 then throw(makeString(["amount to receive is less than ", toString(minOutAmount)], ""))
931931 else totalGet
932- let $t03575935846 = if ((outAssetId == amId))
932+ let $t03572535812 = if ((outAssetId == amId))
933933 then $Tuple2(totalAmount, 0)
934934 else $Tuple2(0, totalAmount)
935- let outAm = $t03575935846._1
936- let outPr = $t03575935846._2
935+ let outAm = $t03572535812._1
936+ let outPr = $t03572535812._2
937937 let curPrX18 = cpbi(t1(prBalance, prDecimals), t1(amBalance, amDecimals))
938938 let curPr = f1(curPrX18, scale8)
939939 let state = [ScriptTransfer(userAddress, totalAmount, if ((outAssetId == "WAVES"))
940940 then unit
941941 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)]
942942 if ((state == state))
943943 then {
944944 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
945945 if ((burn == burn))
946946 then $Tuple2(state, totalAmount)
947947 else throw("Strict value is not equal to itself.")
948948 }
949949 else throw("Strict value is not equal to itself.")
950950 }
951951 }
952952 }
953953
954954
955955
956956 @Callable(i)
957957 func getOneTknV2READONLY (outAssetId,lpAssetAmount) = {
958958 let poolConfig = gpc()
959959 let lpId = poolConfig[idxLPAsId]
960960 let amId = poolConfig[idxAmAsId]
961961 let prId = poolConfig[idxPrAsId]
962962 let r = ego("", lpId, lpAssetAmount, this)
963963 let estimAmAmt = r._1
964964 let estimPrAmt = r._2
965965 let amBalance = getAccBalance(amId)
966966 let prBalance = getAccBalance(prId)
967967 let amBalanceNow = (amBalance - estimAmAmt)
968968 let prBalanceNow = (prBalance - estimPrAmt)
969- let $t03694037211 = if ((outAssetId == amId))
969+ let $t03690637177 = if ((outAssetId == amId))
970970 then $Tuple3(prBalanceNow, amBalanceNow, estimPrAmt)
971971 else if ((outAssetId == prId))
972972 then $Tuple3(amBalanceNow, prBalanceNow, estimAmAmt)
973973 else throw("wrong outAssetId")
974- let amountBalanceForSwap = $t03694037211._1
975- let priceBalanceForSwap = $t03694037211._2
976- let amountToSwap = $t03694037211._3
974+ let amountBalanceForSwap = $t03690637177._1
975+ let priceBalanceForSwap = $t03690637177._2
976+ let amountToSwap = $t03690637177._3
977977 let yPrecision = 1
978978 let exchResult = {
979979 let @ = invoke(gwxContract, "calcSwapXToY", [toString(amountToSwap), toString(amountBalanceForSwap), toString(priceBalanceForSwap), "", A, Amult, toString(yPrecision), Dconv], nil)
980980 if ($isInstanceOf(@, "Int"))
981981 then @
982982 else throw(($getType(invoke(gwxContract, "calcSwapXToY", [toString(amountToSwap), toString(amountBalanceForSwap), toString(priceBalanceForSwap), "", A, Amult, toString(yPrecision), Dconv], nil)) + " couldn't be cast to Int"))
983983 }
984984 let totalGet = (exchResult + (if ((outAssetId == amId))
985985 then estimAmAmt
986986 else estimPrAmt))
987987 $Tuple2(nil, totalGet)
988988 }
989989
990990
991991
992992 @Callable(i)
993993 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
994994 let r = cg(i)
995995 let outAmAmt = r._1
996996 let outPrAmt = r._2
997997 let pmtAmt = r._3
998998 let pmtAssetId = r._4
999999 let state = r._5
10001000 if ((noLessThenAmtAsset > outAmAmt))
10011001 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
10021002 else if ((noLessThenPriceAsset > outPrAmt))
10031003 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
10041004 else {
10051005 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
10061006 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
10071007 then state
10081008 else throw("Strict value is not equal to itself.")
10091009 }
10101010 }
10111011
10121012
10131013
10141014 @Callable(i)
10151015 func unstakeAndGet (amount) = {
10161016 let checkPayments = if ((size(i.payments) != 0))
10171017 then throw("No pmnts expd")
10181018 else true
10191019 if ((checkPayments == checkPayments))
10201020 then {
10211021 let cfg = gpc()
10221022 let factoryCfg = gfc()
10231023 let lpAssetId = fromBase58String(cfg[idxLPAsId])
10241024 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
10251025 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
10261026 if ((unstakeInv == unstakeInv))
10271027 then {
10281028 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
10291029 let sts = parseIntValue(r._9)
10301030 let state = r._10
10311031 let v = if (if (igs())
10321032 then true
10331033 else (sts == PoolShutdown))
10341034 then throw(("Blocked: " + toString(sts)))
10351035 else true
10361036 if ((v == v))
10371037 then {
10381038 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
10391039 if ((burnA == burnA))
10401040 then state
10411041 else throw("Strict value is not equal to itself.")
10421042 }
10431043 else throw("Strict value is not equal to itself.")
10441044 }
10451045 else throw("Strict value is not equal to itself.")
10461046 }
10471047 else throw("Strict value is not equal to itself.")
10481048 }
10491049
10501050
10511051
10521052 @Callable(i)
10531053 func unstakeAndGetOneTkn (amount,outAmount,outAssetId,slippage) = {
10541054 let checkPayments = if ((size(i.payments) != 0))
10551055 then throw("No pmnts expd")
10561056 else true
10571057 if ((checkPayments == checkPayments))
10581058 then {
10591059 let cfg = gpc()
10601060 let factoryCfg = gfc()
10611061 let lpAssetId = fromBase58String(cfg[idxLPAsId])
10621062 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
10631063 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
10641064 if ((unstakeInv == unstakeInv))
10651065 then {
10661066 let outAmountResult = {
10671067 let @ = invoke(this, "getOneTknV2", [outAmount, outAssetId, slippage], [AttachedPayment(lpAssetId, amount)])
10681068 if ($isInstanceOf(@, "Int"))
10691069 then @
10701070 else unit
10711071 }
10721072 if ((outAmountResult == outAmountResult))
10731073 then $Tuple2(nil, outAmountResult)
10741074 else throw("Strict value is not equal to itself.")
10751075 }
10761076 else throw("Strict value is not equal to itself.")
10771077 }
10781078 else throw("Strict value is not equal to itself.")
10791079 }
10801080
10811081
10821082
10831083 @Callable(i)
10841084 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
10851085 then throw("denied")
10861086 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
10871087
10881088
10891089
10901090 @Callable(i)
10911091 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
10921092 then pd
10931093 else [StringEntry(k, v)]
10941094
10951095
10961096
10971097 @Callable(i)
10981098 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
10991099 then pd
11001100 else [IntegerEntry(k, v)]
11011101
11021102
11031103
11041104 @Callable(i)
11051105 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
11061106
11071107
11081108
11091109 @Callable(i)
11101110 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
11111111
11121112
11131113
11141114 @Callable(i)
11151115 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
11161116 let pr = calcPrices(amAmt, prAmt, lpAmt)
11171117 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
11181118 }
11191119
11201120
11211121
11221122 @Callable(i)
11231123 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
11241124
11251125
11261126
11271127 @Callable(i)
11281128 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
11291129
11301130
11311131
11321132 @Callable(i)
11331133 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
11341134
11351135
11361136
11371137 @Callable(i)
11381138 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, ""))
11391139
11401140
11411141
11421142 @Callable(i)
11431143 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
11441144 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
11451145 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
11461146 }
11471147
11481148
11491149 @Verifier(tx)
11501150 func verify () = {
11511151 let targetPublicKey = match m() {
11521152 case pk: ByteVector =>
11531153 pk
11541154 case _: Unit =>
11551155 tx.senderPublicKey
11561156 case _ =>
11571157 throw("Match error")
11581158 }
11591159 match tx {
11601160 case order: Order =>
11611161 let matcherPub = mp()
11621162 let orderValid = moa(order)
11631163 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
11641164 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
11651165 if (if (if (orderValid)
11661166 then senderValid
11671167 else false)
11681168 then matcherValid
11691169 else false)
11701170 then true
11711171 else toe(orderValid, senderValid, matcherValid)
11721172 case s: SetScriptTransaction =>
11731173 let newHash = blake2b256(value(s.script))
11741174 let allowedHash = fromBase64String(value(getString(fca, keyAllowedLpStableScriptHash())))
11751175 let currentHash = scriptHash(this)
11761176 if (if ((allowedHash == newHash))
11771177 then (currentHash != newHash)
11781178 else false)
11791179 then true
11801180 else sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
11811181 case _ =>
11821182 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
11831183 }
11841184 }
11851185

github/deemru/w8io/026f985 
106.61 ms