tx · 28ND4mpNE8xut96V6QiYLoireEaHVaCTwQjqUsAzcFbn

3NAwbpcPsGSxuaojbBpYgdUYsGbrNauJ57J:  -0.03500000 Waves

2022.06.07 10:12 [2085626] smart account 3NAwbpcPsGSxuaojbBpYgdUYsGbrNauJ57J > SELF 0.00000000 Waves

{ "type": 13, "id": "28ND4mpNE8xut96V6QiYLoireEaHVaCTwQjqUsAzcFbn", "fee": 3500000, "feeAssetId": null, "timestamp": 1654585963195, "version": 1, "sender": "3NAwbpcPsGSxuaojbBpYgdUYsGbrNauJ57J", "senderPublicKey": "F3cz73sYXXXQegEA2JLAqUWZViMB9jmE26svEgk9PUFm", "proofs": [ "4RpU8TxEaaxBZwpXRWagauX33irSX5nQV6gsc3ThgM65EQ7Z5zdDQ7TzpCN8kLbjg3hASMGRAR7tu5DiWzk9L3Cr" ], "script": "base64:AAIFAAAAAAAAEpIIAhIECgIICBIDCgEIEgASBAoCAQQSBwoFAQEBAQQSAwoBARIAEgcKBQEBAQgBEgQKAgEBEgMKAQESBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBoKCgFBEgVkZWxheRoHCgFCEgJ0MRoMCgFDEgdvcmlnVmFsGhIKAUQSDW9yaWdTY2FsZU11bHQaBwoBRRICZjEaCAoBRhIDdmFsGhQKAUcSD3Jlc3VsdFNjYWxlTXVsdBoHCgFIEgJ0cxoICgFJEgNhbXQaDQoBShIIcmVzU2NhbGUaDQoBSxIIY3VyU2NhbGUaCAoBTBIDYWJzGgcKAU0SAmZjGggKAU4SA21waxoJCgFPEgRwbXBrGgcKAVASAnBsGgcKAVESAnBoGgYKAVISAWgaBgoBUxIBdBoICgFUEgNwYXUaBwoBVRICdWEaCQoBVhIEdHhJZBoICgFXEgNnYXUaBwoBWBICYWEaBwoBWRICcGEaCAoBWhIDYW1wGgsKAWESBnNjYWxlOBoJCgJhQRIDZ3BjGgsKAmFCEgVhb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AmVKAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZUoAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJlTztN1KE=", "chainId": 84, "height": 2085626, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H2DqrHCxwycpKw3sCRabBpAESvTwzkQ3baULK5cfwPFT Next: GmrMbXESxUPhH7mc57bNcCspdbNAVsandzdbuPJoXErr Diff:
OldNewDifferences
102102 func ada () = "%s__addonAddr"
103103
104104
105-func lgotc (caller) = makeString(["%s%s__lastGetOneTknCall", caller], SEP)
106-
107-
108-func lsotc (caller) = makeString(["%s%s__lastPutOneTknCall", caller], SEP)
105+func lgopotc (caller) = makeString(["%s%s__lastGetOrPutOneTknCall", caller], SEP)
109106
110107
111108 func fcfg () = "%s__factoryConfig"
334331 else calcLpAmt
335332 let amDiff = (inAmAmt - calcAmAssetPmt)
336333 let prDiff = (inPrAmt - calcPrAssetPmt)
337- let $t01553115876 = if (if (isOneAsset)
334+ let $t01572516070 = if (if (isOneAsset)
338335 then (pmtId == amIdStr)
339336 else false)
340337 then $Tuple2(pmtAmt, 0)
343340 else false)
344341 then $Tuple2(0, pmtAmt)
345342 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
346- let writeAmAmt = $t01553115876._1
347- let writePrAmt = $t01553115876._2
343+ let writeAmAmt = $t01572516070._1
344+ let writePrAmt = $t01572516070._2
348345 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))]
349346 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
350347 }
465462
466463
467464 @Callable(i)
468-func constructor (fc) = {
465+func constructor (fc,aa) = {
469466 let c = mm(i)
470467 if ((c == c))
471468 then [StringEntry(fc(), fc)]
586583 then i.originCaller
587584 else i.caller
588585 let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid")
589- let check = reentrantInvoke(addonContract, "ensureCanPutOneTkn", [toString(userAddress)], nil)
586+ let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil)
590587 if ((check == check))
591588 then if (if (if (if ((0 >= slippage))
592589 then true
611608 else {
612609 let amBalance = getAccBalance(amId)
613610 let prBalance = getAccBalance(prId)
614- let $t02483225212 = if ((pmtAssetId == amId))
611+ let $t02506325443 = if ((pmtAssetId == amId))
615612 then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0)
616613 else if ((pmtAssetId == prId))
617614 then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart)
618615 else throw("wrong pmtAssetId")
619- let amBalanceNow = $t02483225212._1
620- let prBalanceNow = $t02483225212._2
621- let virtSwapInAm = $t02483225212._3
622- let virtSwapOutPr = $t02483225212._4
623- let virtSwapInPr = $t02483225212._5
624- let virtSwapOutAm = $t02483225212._6
616+ let amBalanceNow = $t02506325443._1
617+ let prBalanceNow = $t02506325443._2
618+ let virtSwapInAm = $t02506325443._3
619+ let virtSwapOutPr = $t02506325443._4
620+ let virtSwapInPr = $t02506325443._5
621+ let virtSwapOutAm = $t02506325443._6
625622 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
626623 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
627624 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
628625 if ((D0vsD1 == D0vsD1))
629626 then {
630- let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId)
631- let estimLP = estPut._2
632- let lpAssetId = estPut._7
633- let state = estPut._9
634- let amDiff = estPut._10
635- let prDiff = estPut._11
636- let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
637- let emitLpAmt = toInt(lpCalcRes._2)
638- let e = invoke(fca, "emit", [emitLpAmt], nil)
639- if ((e == e))
627+ let error = throw("error before estPut")
628+ if ((error == error))
640629 then {
641- let el = match e {
642- case legacy: Address =>
643- invoke(legacy, "emit", [emitLpAmt], nil)
644- case _ =>
645- unit
646- }
647- if ((el == el))
630+ let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId)
631+ let estimLP = estPut._2
632+ let lpAssetId = estPut._7
633+ let state = estPut._9
634+ let amDiff = estPut._10
635+ let prDiff = estPut._11
636+ let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
637+ let emitLpAmt = toInt(lpCalcRes._2)
638+ let e = invoke(fca, "emit", [emitLpAmt], nil)
639+ if ((e == e))
648640 then {
649- let sa = if ((amDiff > 0))
650- then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
651- else nil
652- if ((sa == sa))
641+ let el = match e {
642+ case legacy: Address =>
643+ invoke(legacy, "emit", [emitLpAmt], nil)
644+ case _ =>
645+ unit
646+ }
647+ if ((el == el))
653648 then {
654- let sp = if ((prDiff > 0))
655- then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
649+ let sa = if ((amDiff > 0))
650+ then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
656651 else nil
657- if ((sp == sp))
652+ if ((sa == sa))
658653 then {
659- let lpTrnsfr = if (autoStake)
654+ let sp = if ((prDiff > 0))
655+ then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
656+ else nil
657+ if ((sp == sp))
660658 then {
661- let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
662- if ((ss == ss))
663- then nil
664- else throw("Strict value is not equal to itself.")
659+ let lpTrnsfr = if (autoStake)
660+ then {
661+ let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
662+ if ((ss == ss))
663+ then nil
664+ else throw("Strict value is not equal to itself.")
665+ }
666+ else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
667+ (state ++ lpTrnsfr)
665668 }
666- else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
667- (state ++ lpTrnsfr)
669+ else throw("Strict value is not equal to itself.")
668670 }
669671 else throw("Strict value is not equal to itself.")
670672 }
732734 let pmtAssetId = value(pmt.assetId)
733735 let pmtAmt = pmt.amount
734736 let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid")
735- let check = reentrantInvoke(addonContract, "ensureCanGetOneTkn", [toString(userAddress)], nil)
737+ let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil)
736738 if ((check == check))
737739 then if ((1000000000 > pmtAmt))
738740 then throw("Min pmt 10 LP")
750752 let estimPrAmt = r._2
751753 let amBalance = getAccBalance(amId)
752754 let prBalance = getAccBalance(prId)
753- let $t03024330700 = if ((outAssetId == amId))
755+ let $t03052830985 = if ((outAssetId == amId))
754756 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult))
755757 else if ((outAssetId == prId))
756758 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult))
757759 else throw("wrong outAssetId")
758- let amBalanceNow = $t03024330700._1
759- let prBalanceNow = $t03024330700._2
760- let virtSwapInAm = $t03024330700._3
761- let virtSwapOutPr = $t03024330700._4
762- let virtSwapInPr = $t03024330700._5
763- let virtSwapOutAm = $t03024330700._6
764- let totalGet = $t03024330700._7
760+ let amBalanceNow = $t03052830985._1
761+ let prBalanceNow = $t03052830985._2
762+ let virtSwapInAm = $t03052830985._3
763+ let virtSwapOutPr = $t03052830985._4
764+ let virtSwapInPr = $t03052830985._5
765+ let virtSwapOutAm = $t03052830985._6
766+ let totalGet = $t03052830985._7
765767 if (if ((0 > virtSwapInAm))
766768 then true
767769 else (0 > virtSwapInPr))
775777 let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage))
776778 if ((finalRes == finalRes))
777779 then {
778- let $t03140531509 = if ((outAssetId == amId))
780+ let $t03169031794 = if ((outAssetId == amId))
779781 then $Tuple2(toInt(finalRes._2), 0)
780782 else $Tuple2(0, toInt(finalRes._2))
781- let outAm = $t03140531509._1
782- let outPr = $t03140531509._2
783+ let outAm = $t03169031794._1
784+ let outPr = $t03169031794._2
783785 let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm))
784786 let curPr = f1(curPrX18, scale8)
785787 let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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
105-func lgotc (caller) = makeString(["%s%s__lastGetOneTknCall", caller], SEP)
106-
107-
108-func lsotc (caller) = makeString(["%s%s__lastPutOneTknCall", caller], SEP)
105+func lgopotc (caller) = makeString(["%s%s__lastGetOrPutOneTknCall", caller], SEP)
109106
110107
111108 func fcfg () = "%s__factoryConfig"
112109
113110
114111 func mtpk () = "%s%s__matcher__publicKey"
115112
116113
117114 func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
118115
119116
120117 func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
121118
122119
123120 func aps () = "%s__shutdown"
124121
125122
126123 func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV)))
127124
128125
129126 func str (val) = match val {
130127 case valStr: String =>
131128 valStr
132129 case _ =>
133130 throw("fail cast to String")
134131 }
135132
136133
137134 func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
138135
139136
140137 func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
141138
142139
143140 let fca = addressFromStringValue(strf(this, fc()))
144141
145142 let A = strf(this, amp())
146143
147144 func igs () = valueOrElse(getBoolean(fca, aps()), false)
148145
149146
150147 func mp () = fromBase58String(strf(fca, mtpk()))
151148
152149
153150 func gpc () = {
154151 let amtAs = strf(this, aa())
155152 let priceAs = strf(this, pa())
156153 let iPriceAs = intf(fca, mba(priceAs))
157154 let iAmtAs = intf(fca, mba(amtAs))
158155 split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP)
159156 }
160157
161158
162159 func gfc () = split(strf(fca, fcfg()), SEP)
163160
164161
165162 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)
166163
167164
168165 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)
169166
170167
171168 func getAccBalance (assetId) = if ((assetId == "WAVES"))
172169 then wavesBalance(this).available
173170 else assetBalance(this, fromBase58String(assetId))
174171
175172
176173 func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
177174
178175
179176 func vad (A1,A2,slippage) = {
180177 let diff = fraction((A1 - A2), scale8BigInt, A2)
181178 let pass = ((slippage - abs(diff)) > zeroBigInt)
182179 if (!(pass))
183180 then throw(("Big slpg: " + toString(diff)))
184181 else $Tuple2(pass, min([A1, A2]))
185182 }
186183
187184
188185 func vd (D1,D0,slpg) = {
189186 let diff = fraction(D0, scale8BigInt, D1)
190187 let fail = (slpg > diff)
191188 if (if (fail)
192189 then true
193190 else (D0 > D1))
194191 then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg)))
195192 else fail
196193 }
197194
198195
199196 func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
200197 let amtAsAmtX18 = t1(amAmt, amAssetDcm)
201198 let prAsAmtX18 = t1(prAmt, prAssetDcm)
202199 cpbi(prAsAmtX18, amtAsAmtX18)
203200 }
204201
205202
206203 func calcPrices (amAmt,prAmt,lpAmt) = {
207204 let cfg = gpc()
208205 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
209206 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
210207 let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt)
211208 let amAmtX18 = t1(amAmt, amtAsDcm)
212209 let prAmtX18 = t1(prAmt, prAsDcm)
213210 let lpAmtX18 = t1(lpAmt, scale8)
214211 let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18)
215212 let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18)
216213 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
217214 }
218215
219216
220217 func calculatePrices (amAmt,prAmt,lpAmt) = {
221218 let p = calcPrices(amAmt, prAmt, lpAmt)
222219 [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)]
223220 }
224221
225222
226223 func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
227224 let cfg = gpc()
228225 let lpId = cfg[idxLPAsId]
229226 let amId = cfg[idxAmAsId]
230227 let prId = cfg[idxPrAsId]
231228 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
232229 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
233230 let sts = cfg[idxPoolSt]
234231 let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity
235232 if ((lpId != pmtAssetId))
236233 then throw("Wrong pmt asset")
237234 else {
238235 let amBalance = getAccBalance(amId)
239236 let amBalanceX18 = t1(amBalance, amDcm)
240237 let prBalance = getAccBalance(prId)
241238 let prBalanceX18 = t1(prBalance, prDcm)
242239 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
243240 let curPrice = f1(curPriceX18, scale8)
244241 let pmtLpAmtX18 = t1(pmtLpAmt, scale8)
245242 let lpEmissX18 = t1(lpEmiss, scale8)
246243 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18)
247244 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18)
248245 let outAmAmt = f1(outAmAmtX18, amDcm)
249246 let outPrAmt = f1(outPrAmtX18, prDcm)
250247 let state = if ((txId58 == ""))
251248 then nil
252249 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
253250 then unit
254251 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
255252 then unit
256253 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)]
257254 $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state)
258255 }
259256 }
260257
261258
262259 func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = {
263260 let cfg = gpc()
264261 let lpId = fromBase58String(cfg[idxLPAsId])
265262 let amIdStr = cfg[idxAmAsId]
266263 let prIdStr = cfg[idxPrAsId]
267264 let inAmIdStr = cfg[idxIAmtAsId]
268265 let inPrIdStr = cfg[idxIPriceAsId]
269266 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
270267 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
271268 let sts = cfg[idxPoolSt]
272269 let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity
273270 let amBalance = if (isEval)
274271 then getAccBalance(amIdStr)
275272 else if (if (isOneAsset)
276273 then (pmtId == amIdStr)
277274 else false)
278275 then (getAccBalance(amIdStr) - pmtAmt)
279276 else if (isOneAsset)
280277 then getAccBalance(amIdStr)
281278 else (getAccBalance(amIdStr) - inAmAmt)
282279 let prBalance = if (isEval)
283280 then getAccBalance(prIdStr)
284281 else if (if (isOneAsset)
285282 then (pmtId == prIdStr)
286283 else false)
287284 then (getAccBalance(prIdStr) - pmtAmt)
288285 else if (isOneAsset)
289286 then getAccBalance(prIdStr)
290287 else (getAccBalance(prIdStr) - inPrAmt)
291288 let inAmAssetAmtX18 = t1(inAmAmt, amtDcm)
292289 let inPrAssetAmtX18 = t1(inPrAmt, priceDcm)
293290 let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18)
294291 let amBalanceX18 = t1(amBalance, amtDcm)
295292 let prBalanceX18 = t1(prBalance, priceDcm)
296293 let r = if ((lpEm == 0))
297294 then {
298295 let curPriceX18 = zeroBigInt
299296 let slippageX18 = zeroBigInt
300297 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
301298 $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
302299 }
303300 else {
304301 let curPriceX18 = cpbi(prBalanceX18, amBalanceX18)
305302 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
306303 let slippageX18 = t1(slippage, scale8)
307304 if (if ((curPriceX18 != zeroBigInt))
308305 then (slippageRealX18 > slippageX18)
309306 else false)
310307 then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18)))
311308 else {
312309 let lpEmissionX18 = t1(lpEm, scale8)
313310 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
314311 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
315312 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
316313 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
317314 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
318315 let expAmtAssetAmtX18 = expectedAmts._1
319316 let expPriceAssetAmtX18 = expectedAmts._2
320317 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
321318 $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
322319 }
323320 }
324321 let calcLpAmt = r._1
325322 let calcAmAssetPmt = r._2
326323 let calcPrAssetPmt = r._3
327324 let curPrice = f1(r._4, scale8)
328325 let slippageCalc = f1(r._5, scale8)
329326 if ((0 >= calcLpAmt))
330327 then throw("LP <= 0")
331328 else {
332329 let emitLpAmt = if (!(emitLp))
333330 then 0
334331 else calcLpAmt
335332 let amDiff = (inAmAmt - calcAmAssetPmt)
336333 let prDiff = (inPrAmt - calcPrAssetPmt)
337- let $t01553115876 = if (if (isOneAsset)
334+ let $t01572516070 = if (if (isOneAsset)
338335 then (pmtId == amIdStr)
339336 else false)
340337 then $Tuple2(pmtAmt, 0)
341338 else if (if (isOneAsset)
342339 then (pmtId == prIdStr)
343340 else false)
344341 then $Tuple2(0, pmtAmt)
345342 else $Tuple2(calcAmAssetPmt, calcPrAssetPmt)
346- let writeAmAmt = $t01553115876._1
347- let writePrAmt = $t01553115876._2
343+ let writeAmAmt = $t01572516070._1
344+ let writePrAmt = $t01572516070._2
348345 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))]
349346 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId)
350347 }
351348 }
352349
353350
354351 func moa (order) = {
355352 let cfg = gpc()
356353 let amtAsId = cfg[idxAmAsId]
357354 let prAsId = cfg[idxPrAsId]
358355 let sts = parseIntValue(cfg[idxPoolSt])
359356 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
360357 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
361358 let accAmtAsBalance = getAccBalance(amtAsId)
362359 let accPrAsBalance = getAccBalance(prAsId)
363360 let curPriceX18 = if ((order.orderType == Buy))
364361 then pcp(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance)
365362 else pcp(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance)
366363 let curPrice = f1(curPriceX18, scale8)
367364 if (if (if (igs())
368365 then true
369366 else (sts == PoolMatcherDis))
370367 then true
371368 else (sts == PoolShutdown))
372369 then throw("Admin blocked")
373370 else {
374371 let orAmtAsset = order.assetPair.amountAsset
375372 let orAmtAsStr = if ((orAmtAsset == unit))
376373 then "WAVES"
377374 else toBase58String(value(orAmtAsset))
378375 let orPrAsset = order.assetPair.priceAsset
379376 let orPrAsStr = if ((orPrAsset == unit))
380377 then "WAVES"
381378 else toBase58String(value(orPrAsset))
382379 if (if ((orAmtAsStr != amtAsId))
383380 then true
384381 else (orPrAsStr != prAsId))
385382 then throw("Wr assets")
386383 else {
387384 let orderPrice = order.price
388385 let priceDcm = fraction(scale8, prAsDcm, amtAsDcm)
389386 let castOrderPrice = ts(orderPrice, scale8, priceDcm)
390387 let isOrderPriceValid = if ((order.orderType == Buy))
391388 then (curPrice >= castOrderPrice)
392389 else (castOrderPrice >= curPrice)
393390 true
394391 }
395392 }
396393 }
397394
398395
399396 func cg (i) = if ((size(i.payments) != 1))
400397 then throw("1 pmnt exp")
401398 else {
402399 let pmt = value(i.payments[0])
403400 let pmtAssetId = value(pmt.assetId)
404401 let pmtAmt = pmt.amount
405402 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
406403 let outAmAmt = r._1
407404 let outPrAmt = r._2
408405 let sts = parseIntValue(r._9)
409406 let state = r._10
410407 if (if (igs())
411408 then true
412409 else (sts == PoolShutdown))
413410 then throw(("Admin blocked: " + toString(sts)))
414411 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
415412 }
416413
417414
418415 func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = {
419416 let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId)
420417 let sts = parseIntValue(r._8)
421418 if (if (if (igs())
422419 then true
423420 else (sts == PoolPutDis))
424421 then true
425422 else (sts == PoolShutdown))
426423 then throw(("Blocked:" + toString(sts)))
427424 else r
428425 }
429426
430427
431428 func m () = match getString(mpk()) {
432429 case s: String =>
433430 fromBase58String(s)
434431 case _: Unit =>
435432 unit
436433 case _ =>
437434 throw("Match error")
438435 }
439436
440437
441438 func pm () = match getString(pmpk()) {
442439 case s: String =>
443440 fromBase58String(s)
444441 case _: Unit =>
445442 unit
446443 case _ =>
447444 throw("Match error")
448445 }
449446
450447
451448 let pd = throw("Permission denied")
452449
453450 func mm (i) = match m() {
454451 case pk: ByteVector =>
455452 if ((i.callerPublicKey == pk))
456453 then true
457454 else pd
458455 case _: Unit =>
459456 if ((i.caller == this))
460457 then true
461458 else pd
462459 case _ =>
463460 throw("Match error")
464461 }
465462
466463
467464 @Callable(i)
468-func constructor (fc) = {
465+func constructor (fc,aa) = {
469466 let c = mm(i)
470467 if ((c == c))
471468 then [StringEntry(fc(), fc)]
472469 else throw("Strict value is not equal to itself.")
473470 }
474471
475472
476473
477474 @Callable(i)
478475 func setManager (pendingManagerPublicKey) = {
479476 let c = mm(i)
480477 if ((c == c))
481478 then {
482479 let cm = fromBase58String(pendingManagerPublicKey)
483480 if ((cm == cm))
484481 then [StringEntry(pmpk(), pendingManagerPublicKey)]
485482 else throw("Strict value is not equal to itself.")
486483 }
487484 else throw("Strict value is not equal to itself.")
488485 }
489486
490487
491488
492489 @Callable(i)
493490 func confirmManager () = {
494491 let p = pm()
495492 let hpm = if (isDefined(p))
496493 then true
497494 else throw("No pending manager")
498495 if ((hpm == hpm))
499496 then {
500497 let cpm = if ((i.callerPublicKey == value(p)))
501498 then true
502499 else throw("You are not pending manager")
503500 if ((cpm == cpm))
504501 then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())]
505502 else throw("Strict value is not equal to itself.")
506503 }
507504 else throw("Strict value is not equal to itself.")
508505 }
509506
510507
511508
512509 @Callable(i)
513510 func put (slip,autoStake) = {
514511 let factCfg = gfc()
515512 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr")
516513 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr")
517514 if ((0 > slip))
518515 then throw("Wrong slippage")
519516 else if ((size(i.payments) != 2))
520517 then throw("2 pmnts expd")
521518 else {
522519 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, "")
523520 let emitLpAmt = e._2
524521 let lpAssetId = e._7
525522 let state = e._9
526523 let amDiff = e._10
527524 let prDiff = e._11
528525 let amId = e._12
529526 let prId = e._13
530527 let r = invoke(fca, "emit", [emitLpAmt], nil)
531528 if ((r == r))
532529 then {
533530 let el = match r {
534531 case legacy: Address =>
535532 invoke(legacy, "emit", [emitLpAmt], nil)
536533 case _ =>
537534 unit
538535 }
539536 if ((el == el))
540537 then {
541538 let sa = if ((amDiff > 0))
542539 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
543540 else nil
544541 if ((sa == sa))
545542 then {
546543 let sp = if ((prDiff > 0))
547544 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
548545 else nil
549546 if ((sp == sp))
550547 then {
551548 let lpTrnsfr = if (autoStake)
552549 then {
553550 let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
554551 if ((ss == ss))
555552 then nil
556553 else throw("Strict value is not equal to itself.")
557554 }
558555 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
559556 (state ++ lpTrnsfr)
560557 }
561558 else throw("Strict value is not equal to itself.")
562559 }
563560 else throw("Strict value is not equal to itself.")
564561 }
565562 else throw("Strict value is not equal to itself.")
566563 }
567564 else throw("Strict value is not equal to itself.")
568565 }
569566 }
570567
571568
572569
573570 @Callable(i)
574571 func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = {
575572 let cfg = gfc()
576573 let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr")
577574 let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr")
578575 let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr")
579576 let poolCfg = gpc()
580577 let amId = poolCfg[idxAmAsId]
581578 let prId = poolCfg[idxPrAsId]
582579 let amDcm = parseIntValue(poolCfg[idxAmtAsDcm])
583580 let prDcm = parseIntValue(poolCfg[idxPriceAsDcm])
584581 let addon = valueOrElse(getString(this, ada()), "")
585582 let userAddress = if ((addon == toString(i.caller)))
586583 then i.originCaller
587584 else i.caller
588585 let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid")
589- let check = reentrantInvoke(addonContract, "ensureCanPutOneTkn", [toString(userAddress)], nil)
586+ let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil)
590587 if ((check == check))
591588 then if (if (if (if ((0 >= slippage))
592589 then true
593590 else (0 >= amAssetPart))
594591 then true
595592 else (0 >= prAssetPart))
596593 then true
597594 else (0 >= outLp))
598595 then throw("Wrong params")
599596 else if ((size(i.payments) != 1))
600597 then throw("1 pmnt expd")
601598 else {
602599 let pmt = value(i.payments[0])
603600 let pmtAssetId = toBase58String(value(pmt.assetId))
604601 let pmtAmt = pmt.amount
605602 if (if (if ((amAssetPart > pmtAmt))
606603 then true
607604 else (prAssetPart > pmtAmt))
608605 then true
609606 else (10000000 > pmtAmt))
610607 then throw("Wrong pmt amt")
611608 else {
612609 let amBalance = getAccBalance(amId)
613610 let prBalance = getAccBalance(prId)
614- let $t02483225212 = if ((pmtAssetId == amId))
611+ let $t02506325443 = if ((pmtAssetId == amId))
615612 then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0)
616613 else if ((pmtAssetId == prId))
617614 then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart)
618615 else throw("wrong pmtAssetId")
619- let amBalanceNow = $t02483225212._1
620- let prBalanceNow = $t02483225212._2
621- let virtSwapInAm = $t02483225212._3
622- let virtSwapOutPr = $t02483225212._4
623- let virtSwapInPr = $t02483225212._5
624- let virtSwapOutAm = $t02483225212._6
616+ let amBalanceNow = $t02506325443._1
617+ let prBalanceNow = $t02506325443._2
618+ let virtSwapInAm = $t02506325443._3
619+ let virtSwapOutPr = $t02506325443._4
620+ let virtSwapInPr = $t02506325443._5
621+ let virtSwapOutAm = $t02506325443._6
625622 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
626623 let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil)
627624 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
628625 if ((D0vsD1 == D0vsD1))
629626 then {
630- let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId)
631- let estimLP = estPut._2
632- let lpAssetId = estPut._7
633- let state = estPut._9
634- let amDiff = estPut._10
635- let prDiff = estPut._11
636- let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
637- let emitLpAmt = toInt(lpCalcRes._2)
638- let e = invoke(fca, "emit", [emitLpAmt], nil)
639- if ((e == e))
627+ let error = throw("error before estPut")
628+ if ((error == error))
640629 then {
641- let el = match e {
642- case legacy: Address =>
643- invoke(legacy, "emit", [emitLpAmt], nil)
644- case _ =>
645- unit
646- }
647- if ((el == el))
630+ let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId)
631+ let estimLP = estPut._2
632+ let lpAssetId = estPut._7
633+ let state = estPut._9
634+ let amDiff = estPut._10
635+ let prDiff = estPut._11
636+ let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage))
637+ let emitLpAmt = toInt(lpCalcRes._2)
638+ let e = invoke(fca, "emit", [emitLpAmt], nil)
639+ if ((e == e))
648640 then {
649- let sa = if ((amDiff > 0))
650- then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
651- else nil
652- if ((sa == sa))
641+ let el = match e {
642+ case legacy: Address =>
643+ invoke(legacy, "emit", [emitLpAmt], nil)
644+ case _ =>
645+ unit
646+ }
647+ if ((el == el))
653648 then {
654- let sp = if ((prDiff > 0))
655- then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
649+ let sa = if ((amDiff > 0))
650+ then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
656651 else nil
657- if ((sp == sp))
652+ if ((sa == sa))
658653 then {
659- let lpTrnsfr = if (autoStake)
654+ let sp = if ((prDiff > 0))
655+ then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
656+ else nil
657+ if ((sp == sp))
660658 then {
661- let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
662- if ((ss == ss))
663- then nil
664- else throw("Strict value is not equal to itself.")
659+ let lpTrnsfr = if (autoStake)
660+ then {
661+ let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
662+ if ((ss == ss))
663+ then nil
664+ else throw("Strict value is not equal to itself.")
665+ }
666+ else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
667+ (state ++ lpTrnsfr)
665668 }
666- else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
667- (state ++ lpTrnsfr)
669+ else throw("Strict value is not equal to itself.")
668670 }
669671 else throw("Strict value is not equal to itself.")
670672 }
671673 else throw("Strict value is not equal to itself.")
672674 }
673675 else throw("Strict value is not equal to itself.")
674676 }
675677 else throw("Strict value is not equal to itself.")
676678 }
677679 else throw("Strict value is not equal to itself.")
678680 }
679681 }
680682 else throw("Strict value is not equal to itself.")
681683 }
682684
683685
684686
685687 @Callable(i)
686688 func putForFree (maxSlpg) = if ((0 > maxSlpg))
687689 then throw("Wrong slpg")
688690 else if ((size(i.payments) != 2))
689691 then throw("2 pmnts expd")
690692 else {
691693 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, "")
692694 estPut._9
693695 }
694696
695697
696698
697699 @Callable(i)
698700 func get () = {
699701 let r = cg(i)
700702 let outAmtAmt = r._1
701703 let outPrAmt = r._2
702704 let pmtAmt = r._3
703705 let pmtAssetId = r._4
704706 let state = r._5
705707 let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
706708 if ((b == b))
707709 then state
708710 else throw("Strict value is not equal to itself.")
709711 }
710712
711713
712714
713715 @Callable(i)
714716 func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1))
715717 then throw("1 pmnt expd")
716718 else {
717719 let cfg = gpc()
718720 let lpId = cfg[idxLPAsId]
719721 let amId = cfg[idxAmAsId]
720722 let prId = cfg[idxPrAsId]
721723 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
722724 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
723725 let sts = cfg[idxPoolSt]
724726 let factCfg = gfc()
725727 let gwxCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactGwxRewCntr]), "Wr sl addr")
726728 let pmt = value(i.payments[0])
727729 let addon = valueOrElse(getString(this, ada()), "")
728730 let userAddress = if ((addon == toString(i.caller)))
729731 then i.originCaller
730732 else i.caller
731733 let txId58 = toBase58String(i.transactionId)
732734 let pmtAssetId = value(pmt.assetId)
733735 let pmtAmt = pmt.amount
734736 let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid")
735- let check = reentrantInvoke(addonContract, "ensureCanGetOneTkn", [toString(userAddress)], nil)
737+ let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil)
736738 if ((check == check))
737739 then if ((1000000000 > pmtAmt))
738740 then throw("Min pmt 10 LP")
739741 else if (if (if ((0 > slippage))
740742 then true
741743 else (0 > exchResult))
742744 then true
743745 else (0 > outAmount))
744746 then throw("Wrong params")
745747 else if ((lpId != toBase58String(pmtAssetId)))
746748 then throw("Wrong LP")
747749 else {
748750 let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
749751 let estimAmAmt = r._1
750752 let estimPrAmt = r._2
751753 let amBalance = getAccBalance(amId)
752754 let prBalance = getAccBalance(prId)
753- let $t03024330700 = if ((outAssetId == amId))
755+ let $t03052830985 = if ((outAssetId == amId))
754756 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult))
755757 else if ((outAssetId == prId))
756758 then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult))
757759 else throw("wrong outAssetId")
758- let amBalanceNow = $t03024330700._1
759- let prBalanceNow = $t03024330700._2
760- let virtSwapInAm = $t03024330700._3
761- let virtSwapOutPr = $t03024330700._4
762- let virtSwapInPr = $t03024330700._5
763- let virtSwapOutAm = $t03024330700._6
764- let totalGet = $t03024330700._7
760+ let amBalanceNow = $t03052830985._1
761+ let prBalanceNow = $t03052830985._2
762+ let virtSwapInAm = $t03052830985._3
763+ let virtSwapOutPr = $t03052830985._4
764+ let virtSwapInPr = $t03052830985._5
765+ let virtSwapOutAm = $t03052830985._6
766+ let totalGet = $t03052830985._7
765767 if (if ((0 > virtSwapInAm))
766768 then true
767769 else (0 > virtSwapInPr))
768770 then throw("Wrong calc")
769771 else {
770772 let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil)
771773 let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil)
772774 let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D)
773775 if ((D0vsD1 == D0vsD1))
774776 then {
775777 let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage))
776778 if ((finalRes == finalRes))
777779 then {
778- let $t03140531509 = if ((outAssetId == amId))
780+ let $t03169031794 = if ((outAssetId == amId))
779781 then $Tuple2(toInt(finalRes._2), 0)
780782 else $Tuple2(0, toInt(finalRes._2))
781- let outAm = $t03140531509._1
782- let outPr = $t03140531509._2
783+ let outAm = $t03169031794._1
784+ let outPr = $t03169031794._2
783785 let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm))
784786 let curPr = f1(curPrX18, scale8)
785787 let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES"))
786788 then unit
787789 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)]
788790 if ((state == state))
789791 then {
790792 let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
791793 if ((burn == burn))
792794 then state
793795 else throw("Strict value is not equal to itself.")
794796 }
795797 else throw("Strict value is not equal to itself.")
796798 }
797799 else throw("Strict value is not equal to itself.")
798800 }
799801 else throw("Strict value is not equal to itself.")
800802 }
801803 }
802804 else throw("Strict value is not equal to itself.")
803805 }
804806
805807
806808
807809 @Callable(i)
808810 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
809811 let r = cg(i)
810812 let outAmAmt = r._1
811813 let outPrAmt = r._2
812814 let pmtAmt = r._3
813815 let pmtAssetId = r._4
814816 let state = r._5
815817 if ((noLessThenAmtAsset > outAmAmt))
816818 then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
817819 else if ((noLessThenPriceAsset > outPrAmt))
818820 then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
819821 else {
820822 let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
821823 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
822824 then state
823825 else throw("Strict value is not equal to itself.")
824826 }
825827 }
826828
827829
828830
829831 @Callable(i)
830832 func unstakeAndGet (amount) = {
831833 let checkPayments = if ((size(i.payments) != 0))
832834 then throw("No pmnts expd")
833835 else true
834836 if ((checkPayments == checkPayments))
835837 then {
836838 let cfg = gpc()
837839 let factoryCfg = gfc()
838840 let lpAssetId = fromBase58String(cfg[idxLPAsId])
839841 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
840842 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
841843 if ((unstakeInv == unstakeInv))
842844 then {
843845 let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
844846 let sts = parseIntValue(r._9)
845847 let state = r._10
846848 let v = if (if (igs())
847849 then true
848850 else (sts == PoolShutdown))
849851 then throw(("Blocked: " + toString(sts)))
850852 else true
851853 if ((v == v))
852854 then {
853855 let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
854856 if ((burnA == burnA))
855857 then state
856858 else throw("Strict value is not equal to itself.")
857859 }
858860 else throw("Strict value is not equal to itself.")
859861 }
860862 else throw("Strict value is not equal to itself.")
861863 }
862864 else throw("Strict value is not equal to itself.")
863865 }
864866
865867
866868
867869 @Callable(i)
868870 func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca)))
869871 then throw("denied")
870872 else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success")
871873
872874
873875
874876 @Callable(i)
875877 func setS (k,v) = if ((toString(i.caller) != strf(this, ada())))
876878 then pd
877879 else [StringEntry(k, v)]
878880
879881
880882
881883 @Callable(i)
882884 func setI (k,v) = if ((toString(i.caller) != strf(this, ada())))
883885 then pd
884886 else [IntegerEntry(k, v)]
885887
886888
887889
888890 @Callable(i)
889891 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc())
890892
891893
892894
893895 @Callable(i)
894896 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
895897
896898
897899
898900 @Callable(i)
899901 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
900902 let pr = calcPrices(amAmt, prAmt, lpAmt)
901903 $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])])
902904 }
903905
904906
905907
906908 @Callable(i)
907909 func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult))
908910
909911
910912
911913 @Callable(i)
912914 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult)))
913915
914916
915917
916918 @Callable(i)
917919 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
918920
919921
920922
921923 @Callable(i)
922924 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, ""))
923925
924926
925927
926928 @Callable(i)
927929 func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = {
928930 let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr))
929931 $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10))
930932 }
931933
932934
933935 @Verifier(tx)
934936 func verify () = match tx {
935937 case order: Order =>
936938 let mtchPub = mp()
937939 let orV = moa(order)
938940 let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
939941 let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub)
940942 if (if (if (orV)
941943 then sndrV
942944 else false)
943945 then mtchV
944946 else false)
945947 then true
946948 else toe(orV, sndrV, mtchV)
947949 case _ =>
948950 let targetPublicKey = match m() {
949951 case pk: ByteVector =>
950952 pk
951953 case _: Unit =>
952954 tx.senderPublicKey
953955 case _ =>
954956 throw("Match error")
955957 }
956958 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
957959 }
958960

github/deemru/w8io/026f985 
114.79 ms