tx · GxjWgaYVUqufYJx2KUDasBhB8BnQ6VRBEYk4rQXfSt4S 3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt: -0.03500000 Waves 2022.06.06 23:58 [2085003] smart account 3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt > SELF 0.00000000 Waves
{ "type": 13, "id": "GxjWgaYVUqufYJx2KUDasBhB8BnQ6VRBEYk4rQXfSt4S", "fee": 3500000, "feeAssetId": null, "timestamp": 1654549135005, "version": 1, "sender": "3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt", "senderPublicKey": "8RPibCyjGbPr7troJPW7WTXkrbynj8HwkrckopSZoYVn", "proofs": [ "4c52Z1LJA1f7bmAZAmmMEs3KSz1wiQoCKMMY84GfG9zXUhRGueJLeouXH9LT1236gySe7ZWLe2RfLFKQp4vZWyrf" ], "script": "base64:AAIFAAAAAAAAEpEIAhIDCgEIEgMKAQgSABIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIGgoKAUESBWRlbGF5GgcKAUISAnQxGgwKAUMSB29yaWdWYWwaEgoBRBINb3JpZ1NjYWxlTXVsdBoHCgFFEgJmMRoICgFGEgN2YWwaFAoBRxIPcmVzdWx0U2NhbGVNdWx0GgcKAUgSAnRzGggKAUkSA2FtdBoNCgFKEghyZXNTY2FsZRoNCgFLEghjdXJTY2FsZRoICgFMEgNhYnMaBwoBTRICZmMaCAoBThIDbXBrGgkKAU8SBHBtcGsaBwoBUBICcGwaBwoBURICcGgaBgoBUhIBaBoGCgFTEgF0GggKAVQSA3BhdRoHCgFVEgJ1YRoJCgFWEgR0eElkGggKAVcSA2dhdRoHCgFYEgJhYRoHCgFZEgJwYRoICgFaEgNhbXAaCwoBYRIGc2NhbGU4GgkKAmFBEgNncGMaCwoCYUISBWFtdEFzGg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AAAJlSgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmVPr7ue8Q==", "chainId": 84, "height": 2085003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 62d83Zvmpq7eF9FjcGYKqtzQkVeTziJzH9mqowoE4Zuk Next: 43vkL3G74hfCY2wob9C7MJF9nMsBeD6biqAuFkcHuU5b Diff:
Old | New | Differences | |
---|---|---|---|
102 | 102 | func ada () = "%s__addonAddr" | |
103 | 103 | ||
104 | 104 | ||
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) | |
109 | 106 | ||
110 | 107 | ||
111 | 108 | func fcfg () = "%s__factoryConfig" | |
186 | 183 | ||
187 | 184 | ||
188 | 185 | func vd (D1,D0,slpg) = { | |
189 | - | let diff = fraction(D0, scale8BigInt, D1) | |
190 | - | let fail = (slpg > diff) | |
191 | - | if (if (fail) | |
192 | - | then true | |
193 | - | else (D0 > D1)) | |
194 | - | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
195 | - | else fail | |
186 | + | let error = throw("error 123") | |
187 | + | if ((error == error)) | |
188 | + | then { | |
189 | + | let diff = fraction(D0, scale8BigInt, D1) | |
190 | + | let fail = (slpg > diff) | |
191 | + | if (if (fail) | |
192 | + | then true | |
193 | + | else (D0 > D1)) | |
194 | + | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
195 | + | else fail | |
196 | + | } | |
197 | + | else throw("Strict value is not equal to itself.") | |
196 | 198 | } | |
197 | 199 | ||
198 | 200 | ||
334 | 336 | else calcLpAmt | |
335 | 337 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
336 | 338 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
337 | - | let $ | |
339 | + | let $t01547615821 = if (if (isOneAsset) | |
338 | 340 | then (pmtId == amIdStr) | |
339 | 341 | else false) | |
340 | 342 | then $Tuple2(pmtAmt, 0) | |
343 | 345 | else false) | |
344 | 346 | then $Tuple2(0, pmtAmt) | |
345 | 347 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
346 | - | let writeAmAmt = $ | |
347 | - | let writePrAmt = $ | |
348 | + | let writeAmAmt = $t01547615821._1 | |
349 | + | let writePrAmt = $t01547615821._2 | |
348 | 350 | 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))] | |
349 | 351 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
350 | 352 | } | |
611 | 613 | else { | |
612 | 614 | let amBalance = getAccBalance(amId) | |
613 | 615 | let prBalance = getAccBalance(prId) | |
614 | - | let $ | |
616 | + | let $t02478225162 = if ((pmtAssetId == amId)) | |
615 | 617 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
616 | 618 | else if ((pmtAssetId == prId)) | |
617 | 619 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
618 | 620 | else throw("wrong pmtAssetId") | |
619 | - | let amBalanceNow = $ | |
620 | - | let prBalanceNow = $ | |
621 | - | let virtSwapInAm = $ | |
622 | - | let virtSwapOutPr = $ | |
623 | - | let virtSwapInPr = $ | |
624 | - | let virtSwapOutAm = $ | |
621 | + | let amBalanceNow = $t02478225162._1 | |
622 | + | let prBalanceNow = $t02478225162._2 | |
623 | + | let virtSwapInAm = $t02478225162._3 | |
624 | + | let virtSwapOutPr = $t02478225162._4 | |
625 | + | let virtSwapInPr = $t02478225162._5 | |
626 | + | let virtSwapOutAm = $t02478225162._6 | |
625 | 627 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
626 | 628 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
627 | 629 | let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D) | |
750 | 752 | let estimPrAmt = r._2 | |
751 | 753 | let amBalance = getAccBalance(amId) | |
752 | 754 | let prBalance = getAccBalance(prId) | |
753 | - | let $ | |
755 | + | let $t03019830655 = if ((outAssetId == amId)) | |
754 | 756 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult)) | |
755 | 757 | else if ((outAssetId == prId)) | |
756 | 758 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult)) | |
757 | 759 | else throw("wrong outAssetId") | |
758 | - | let amBalanceNow = $ | |
759 | - | let prBalanceNow = $ | |
760 | - | let virtSwapInAm = $ | |
761 | - | let virtSwapOutPr = $ | |
762 | - | let virtSwapInPr = $ | |
763 | - | let virtSwapOutAm = $ | |
764 | - | let totalGet = $ | |
760 | + | let amBalanceNow = $t03019830655._1 | |
761 | + | let prBalanceNow = $t03019830655._2 | |
762 | + | let virtSwapInAm = $t03019830655._3 | |
763 | + | let virtSwapOutPr = $t03019830655._4 | |
764 | + | let virtSwapInPr = $t03019830655._5 | |
765 | + | let virtSwapOutAm = $t03019830655._6 | |
766 | + | let totalGet = $t03019830655._7 | |
765 | 767 | if (if ((0 > virtSwapInAm)) | |
766 | 768 | then true | |
767 | 769 | else (0 > virtSwapInPr)) | |
775 | 777 | let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
776 | 778 | if ((finalRes == finalRes)) | |
777 | 779 | then { | |
778 | - | let $ | |
780 | + | let $t03136031464 = if ((outAssetId == amId)) | |
779 | 781 | then $Tuple2(toInt(finalRes._2), 0) | |
780 | 782 | else $Tuple2(0, toInt(finalRes._2)) | |
781 | - | let outAm = $ | |
782 | - | let outPr = $ | |
783 | + | let outAm = $t03136031464._1 | |
784 | + | let outPr = $t03136031464._2 | |
783 | 785 | let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm)) | |
784 | 786 | let curPr = f1(curPrX18, scale8) | |
785 | 787 | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let scale8 = 100000000 | |
5 | 5 | ||
6 | 6 | let scale8BigInt = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let scale18 = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let zeroBigInt = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let oneBigInt = toBigInt(1) | |
13 | 13 | ||
14 | 14 | let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8))) | |
15 | 15 | ||
16 | 16 | let Amult = "100" | |
17 | 17 | ||
18 | 18 | let Dconv = "1" | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let EMPTY = "" | |
23 | 23 | ||
24 | 24 | let PoolActive = 1 | |
25 | 25 | ||
26 | 26 | let PoolPutDis = 2 | |
27 | 27 | ||
28 | 28 | let PoolMatcherDis = 3 | |
29 | 29 | ||
30 | 30 | let PoolShutdown = 4 | |
31 | 31 | ||
32 | 32 | let idxPoolAddress = 1 | |
33 | 33 | ||
34 | 34 | let idxPoolSt = 2 | |
35 | 35 | ||
36 | 36 | let idxLPAsId = 3 | |
37 | 37 | ||
38 | 38 | let idxAmAsId = 4 | |
39 | 39 | ||
40 | 40 | let idxPrAsId = 5 | |
41 | 41 | ||
42 | 42 | let idxAmtAsDcm = 6 | |
43 | 43 | ||
44 | 44 | let idxPriceAsDcm = 7 | |
45 | 45 | ||
46 | 46 | let idxIAmtAsId = 8 | |
47 | 47 | ||
48 | 48 | let idxIPriceAsId = 9 | |
49 | 49 | ||
50 | 50 | let idxFactStakCntr = 1 | |
51 | 51 | ||
52 | 52 | let idxFactSlippCntr = 7 | |
53 | 53 | ||
54 | 54 | let idxFactGwxRewCntr = 10 | |
55 | 55 | ||
56 | 56 | let delay = "%s__delay" | |
57 | 57 | ||
58 | 58 | func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func abs (val) = if ((zeroBigInt > val)) | |
68 | 68 | then -(val) | |
69 | 69 | else val | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func fc () = "%s__factoryContract" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func mpk () = "%s__managerPublicKey" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func pmpk () = "%s__pendingManagerPublicKey" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func pl () = "%s%s__price__last" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func aa () = "%s__amountAsset" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func pa () = "%s__priceAsset" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func amp () = "%s__amp" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ada () = "%s__addonAddr" | |
103 | 103 | ||
104 | 104 | ||
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) | |
109 | 106 | ||
110 | 107 | ||
111 | 108 | func fcfg () = "%s__factoryConfig" | |
112 | 109 | ||
113 | 110 | ||
114 | 111 | func mtpk () = "%s%s__matcher__publicKey" | |
115 | 112 | ||
116 | 113 | ||
117 | 114 | func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config") | |
118 | 115 | ||
119 | 116 | ||
120 | 117 | func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr) | |
121 | 118 | ||
122 | 119 | ||
123 | 120 | func aps () = "%s__shutdown" | |
124 | 121 | ||
125 | 122 | ||
126 | 123 | func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV))) | |
127 | 124 | ||
128 | 125 | ||
129 | 126 | func str (val) = match val { | |
130 | 127 | case valStr: String => | |
131 | 128 | valStr | |
132 | 129 | case _ => | |
133 | 130 | throw("fail cast to String") | |
134 | 131 | } | |
135 | 132 | ||
136 | 133 | ||
137 | 134 | func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
138 | 135 | ||
139 | 136 | ||
140 | 137 | func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
141 | 138 | ||
142 | 139 | ||
143 | 140 | let fca = addressFromStringValue(strf(this, fc())) | |
144 | 141 | ||
145 | 142 | let A = strf(this, amp()) | |
146 | 143 | ||
147 | 144 | func igs () = valueOrElse(getBoolean(fca, aps()), false) | |
148 | 145 | ||
149 | 146 | ||
150 | 147 | func mp () = fromBase58String(strf(fca, mtpk())) | |
151 | 148 | ||
152 | 149 | ||
153 | 150 | func gpc () = { | |
154 | 151 | let amtAs = strf(this, aa()) | |
155 | 152 | let priceAs = strf(this, pa()) | |
156 | 153 | let iPriceAs = intf(fca, mba(priceAs)) | |
157 | 154 | let iAmtAs = intf(fca, mba(amtAs)) | |
158 | 155 | split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP) | |
159 | 156 | } | |
160 | 157 | ||
161 | 158 | ||
162 | 159 | func gfc () = split(strf(fca, fcfg()), SEP) | |
163 | 160 | ||
164 | 161 | ||
165 | 162 | 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) | |
166 | 163 | ||
167 | 164 | ||
168 | 165 | 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) | |
169 | 166 | ||
170 | 167 | ||
171 | 168 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
172 | 169 | then wavesBalance(this).available | |
173 | 170 | else assetBalance(this, fromBase58String(assetId)) | |
174 | 171 | ||
175 | 172 | ||
176 | 173 | func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
177 | 174 | ||
178 | 175 | ||
179 | 176 | func vad (A1,A2,slippage) = { | |
180 | 177 | let diff = fraction((A1 - A2), scale8BigInt, A2) | |
181 | 178 | let pass = ((slippage - abs(diff)) > zeroBigInt) | |
182 | 179 | if (!(pass)) | |
183 | 180 | then throw(("Big slpg: " + toString(diff))) | |
184 | 181 | else $Tuple2(pass, min([A1, A2])) | |
185 | 182 | } | |
186 | 183 | ||
187 | 184 | ||
188 | 185 | func vd (D1,D0,slpg) = { | |
189 | - | let diff = fraction(D0, scale8BigInt, D1) | |
190 | - | let fail = (slpg > diff) | |
191 | - | if (if (fail) | |
192 | - | then true | |
193 | - | else (D0 > D1)) | |
194 | - | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
195 | - | else fail | |
186 | + | let error = throw("error 123") | |
187 | + | if ((error == error)) | |
188 | + | then { | |
189 | + | let diff = fraction(D0, scale8BigInt, D1) | |
190 | + | let fail = (slpg > diff) | |
191 | + | if (if (fail) | |
192 | + | then true | |
193 | + | else (D0 > D1)) | |
194 | + | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
195 | + | else fail | |
196 | + | } | |
197 | + | else throw("Strict value is not equal to itself.") | |
196 | 198 | } | |
197 | 199 | ||
198 | 200 | ||
199 | 201 | func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
200 | 202 | let amtAsAmtX18 = t1(amAmt, amAssetDcm) | |
201 | 203 | let prAsAmtX18 = t1(prAmt, prAssetDcm) | |
202 | 204 | cpbi(prAsAmtX18, amtAsAmtX18) | |
203 | 205 | } | |
204 | 206 | ||
205 | 207 | ||
206 | 208 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
207 | 209 | let cfg = gpc() | |
208 | 210 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
209 | 211 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
210 | 212 | let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt) | |
211 | 213 | let amAmtX18 = t1(amAmt, amtAsDcm) | |
212 | 214 | let prAmtX18 = t1(prAmt, prAsDcm) | |
213 | 215 | let lpAmtX18 = t1(lpAmt, scale8) | |
214 | 216 | let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18) | |
215 | 217 | let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18) | |
216 | 218 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
217 | 219 | } | |
218 | 220 | ||
219 | 221 | ||
220 | 222 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
221 | 223 | let p = calcPrices(amAmt, prAmt, lpAmt) | |
222 | 224 | [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)] | |
223 | 225 | } | |
224 | 226 | ||
225 | 227 | ||
226 | 228 | func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
227 | 229 | let cfg = gpc() | |
228 | 230 | let lpId = cfg[idxLPAsId] | |
229 | 231 | let amId = cfg[idxAmAsId] | |
230 | 232 | let prId = cfg[idxPrAsId] | |
231 | 233 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
232 | 234 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
233 | 235 | let sts = cfg[idxPoolSt] | |
234 | 236 | let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity | |
235 | 237 | if ((lpId != pmtAssetId)) | |
236 | 238 | then throw("Wrong pmt asset") | |
237 | 239 | else { | |
238 | 240 | let amBalance = getAccBalance(amId) | |
239 | 241 | let amBalanceX18 = t1(amBalance, amDcm) | |
240 | 242 | let prBalance = getAccBalance(prId) | |
241 | 243 | let prBalanceX18 = t1(prBalance, prDcm) | |
242 | 244 | let curPriceX18 = cpbi(prBalanceX18, amBalanceX18) | |
243 | 245 | let curPrice = f1(curPriceX18, scale8) | |
244 | 246 | let pmtLpAmtX18 = t1(pmtLpAmt, scale8) | |
245 | 247 | let lpEmissX18 = t1(lpEmiss, scale8) | |
246 | 248 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18) | |
247 | 249 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18) | |
248 | 250 | let outAmAmt = f1(outAmAmtX18, amDcm) | |
249 | 251 | let outPrAmt = f1(outPrAmtX18, prDcm) | |
250 | 252 | let state = if ((txId58 == "")) | |
251 | 253 | then nil | |
252 | 254 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
253 | 255 | then unit | |
254 | 256 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
255 | 257 | then unit | |
256 | 258 | 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)] | |
257 | 259 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state) | |
258 | 260 | } | |
259 | 261 | } | |
260 | 262 | ||
261 | 263 | ||
262 | 264 | func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
263 | 265 | let cfg = gpc() | |
264 | 266 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
265 | 267 | let amIdStr = cfg[idxAmAsId] | |
266 | 268 | let prIdStr = cfg[idxPrAsId] | |
267 | 269 | let inAmIdStr = cfg[idxIAmtAsId] | |
268 | 270 | let inPrIdStr = cfg[idxIPriceAsId] | |
269 | 271 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
270 | 272 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
271 | 273 | let sts = cfg[idxPoolSt] | |
272 | 274 | let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity | |
273 | 275 | let amBalance = if (isEval) | |
274 | 276 | then getAccBalance(amIdStr) | |
275 | 277 | else if (if (isOneAsset) | |
276 | 278 | then (pmtId == amIdStr) | |
277 | 279 | else false) | |
278 | 280 | then (getAccBalance(amIdStr) - pmtAmt) | |
279 | 281 | else if (isOneAsset) | |
280 | 282 | then getAccBalance(amIdStr) | |
281 | 283 | else (getAccBalance(amIdStr) - inAmAmt) | |
282 | 284 | let prBalance = if (isEval) | |
283 | 285 | then getAccBalance(prIdStr) | |
284 | 286 | else if (if (isOneAsset) | |
285 | 287 | then (pmtId == prIdStr) | |
286 | 288 | else false) | |
287 | 289 | then (getAccBalance(prIdStr) - pmtAmt) | |
288 | 290 | else if (isOneAsset) | |
289 | 291 | then getAccBalance(prIdStr) | |
290 | 292 | else (getAccBalance(prIdStr) - inPrAmt) | |
291 | 293 | let inAmAssetAmtX18 = t1(inAmAmt, amtDcm) | |
292 | 294 | let inPrAssetAmtX18 = t1(inPrAmt, priceDcm) | |
293 | 295 | let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18) | |
294 | 296 | let amBalanceX18 = t1(amBalance, amtDcm) | |
295 | 297 | let prBalanceX18 = t1(prBalance, priceDcm) | |
296 | 298 | let r = if ((lpEm == 0)) | |
297 | 299 | then { | |
298 | 300 | let curPriceX18 = zeroBigInt | |
299 | 301 | let slippageX18 = zeroBigInt | |
300 | 302 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
301 | 303 | $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
302 | 304 | } | |
303 | 305 | else { | |
304 | 306 | let curPriceX18 = cpbi(prBalanceX18, amBalanceX18) | |
305 | 307 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
306 | 308 | let slippageX18 = t1(slippage, scale8) | |
307 | 309 | if (if ((curPriceX18 != zeroBigInt)) | |
308 | 310 | then (slippageRealX18 > slippageX18) | |
309 | 311 | else false) | |
310 | 312 | then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18))) | |
311 | 313 | else { | |
312 | 314 | let lpEmissionX18 = t1(lpEm, scale8) | |
313 | 315 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
314 | 316 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
315 | 317 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
316 | 318 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
317 | 319 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
318 | 320 | let expAmtAssetAmtX18 = expectedAmts._1 | |
319 | 321 | let expPriceAssetAmtX18 = expectedAmts._2 | |
320 | 322 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
321 | 323 | $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
322 | 324 | } | |
323 | 325 | } | |
324 | 326 | let calcLpAmt = r._1 | |
325 | 327 | let calcAmAssetPmt = r._2 | |
326 | 328 | let calcPrAssetPmt = r._3 | |
327 | 329 | let curPrice = f1(r._4, scale8) | |
328 | 330 | let slippageCalc = f1(r._5, scale8) | |
329 | 331 | if ((0 >= calcLpAmt)) | |
330 | 332 | then throw("LP <= 0") | |
331 | 333 | else { | |
332 | 334 | let emitLpAmt = if (!(emitLp)) | |
333 | 335 | then 0 | |
334 | 336 | else calcLpAmt | |
335 | 337 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
336 | 338 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
337 | - | let $ | |
339 | + | let $t01547615821 = if (if (isOneAsset) | |
338 | 340 | then (pmtId == amIdStr) | |
339 | 341 | else false) | |
340 | 342 | then $Tuple2(pmtAmt, 0) | |
341 | 343 | else if (if (isOneAsset) | |
342 | 344 | then (pmtId == prIdStr) | |
343 | 345 | else false) | |
344 | 346 | then $Tuple2(0, pmtAmt) | |
345 | 347 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
346 | - | let writeAmAmt = $ | |
347 | - | let writePrAmt = $ | |
348 | + | let writeAmAmt = $t01547615821._1 | |
349 | + | let writePrAmt = $t01547615821._2 | |
348 | 350 | 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))] | |
349 | 351 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
350 | 352 | } | |
351 | 353 | } | |
352 | 354 | ||
353 | 355 | ||
354 | 356 | func moa (order) = { | |
355 | 357 | let cfg = gpc() | |
356 | 358 | let amtAsId = cfg[idxAmAsId] | |
357 | 359 | let prAsId = cfg[idxPrAsId] | |
358 | 360 | let sts = parseIntValue(cfg[idxPoolSt]) | |
359 | 361 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
360 | 362 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
361 | 363 | let accAmtAsBalance = getAccBalance(amtAsId) | |
362 | 364 | let accPrAsBalance = getAccBalance(prAsId) | |
363 | 365 | let curPriceX18 = if ((order.orderType == Buy)) | |
364 | 366 | then pcp(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
365 | 367 | else pcp(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
366 | 368 | let curPrice = f1(curPriceX18, scale8) | |
367 | 369 | if (if (if (igs()) | |
368 | 370 | then true | |
369 | 371 | else (sts == PoolMatcherDis)) | |
370 | 372 | then true | |
371 | 373 | else (sts == PoolShutdown)) | |
372 | 374 | then throw("Admin blocked") | |
373 | 375 | else { | |
374 | 376 | let orAmtAsset = order.assetPair.amountAsset | |
375 | 377 | let orAmtAsStr = if ((orAmtAsset == unit)) | |
376 | 378 | then "WAVES" | |
377 | 379 | else toBase58String(value(orAmtAsset)) | |
378 | 380 | let orPrAsset = order.assetPair.priceAsset | |
379 | 381 | let orPrAsStr = if ((orPrAsset == unit)) | |
380 | 382 | then "WAVES" | |
381 | 383 | else toBase58String(value(orPrAsset)) | |
382 | 384 | if (if ((orAmtAsStr != amtAsId)) | |
383 | 385 | then true | |
384 | 386 | else (orPrAsStr != prAsId)) | |
385 | 387 | then throw("Wr assets") | |
386 | 388 | else { | |
387 | 389 | let orderPrice = order.price | |
388 | 390 | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
389 | 391 | let castOrderPrice = ts(orderPrice, scale8, priceDcm) | |
390 | 392 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
391 | 393 | then (curPrice >= castOrderPrice) | |
392 | 394 | else (castOrderPrice >= curPrice) | |
393 | 395 | true | |
394 | 396 | } | |
395 | 397 | } | |
396 | 398 | } | |
397 | 399 | ||
398 | 400 | ||
399 | 401 | func cg (i) = if ((size(i.payments) != 1)) | |
400 | 402 | then throw("1 pmnt exp") | |
401 | 403 | else { | |
402 | 404 | let pmt = value(i.payments[0]) | |
403 | 405 | let pmtAssetId = value(pmt.assetId) | |
404 | 406 | let pmtAmt = pmt.amount | |
405 | 407 | let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
406 | 408 | let outAmAmt = r._1 | |
407 | 409 | let outPrAmt = r._2 | |
408 | 410 | let sts = parseIntValue(r._9) | |
409 | 411 | let state = r._10 | |
410 | 412 | if (if (igs()) | |
411 | 413 | then true | |
412 | 414 | else (sts == PoolShutdown)) | |
413 | 415 | then throw(("Admin blocked: " + toString(sts))) | |
414 | 416 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
415 | 417 | } | |
416 | 418 | ||
417 | 419 | ||
418 | 420 | func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
419 | 421 | let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId) | |
420 | 422 | let sts = parseIntValue(r._8) | |
421 | 423 | if (if (if (igs()) | |
422 | 424 | then true | |
423 | 425 | else (sts == PoolPutDis)) | |
424 | 426 | then true | |
425 | 427 | else (sts == PoolShutdown)) | |
426 | 428 | then throw(("Blocked:" + toString(sts))) | |
427 | 429 | else r | |
428 | 430 | } | |
429 | 431 | ||
430 | 432 | ||
431 | 433 | func m () = match getString(mpk()) { | |
432 | 434 | case s: String => | |
433 | 435 | fromBase58String(s) | |
434 | 436 | case _: Unit => | |
435 | 437 | unit | |
436 | 438 | case _ => | |
437 | 439 | throw("Match error") | |
438 | 440 | } | |
439 | 441 | ||
440 | 442 | ||
441 | 443 | func pm () = match getString(pmpk()) { | |
442 | 444 | case s: String => | |
443 | 445 | fromBase58String(s) | |
444 | 446 | case _: Unit => | |
445 | 447 | unit | |
446 | 448 | case _ => | |
447 | 449 | throw("Match error") | |
448 | 450 | } | |
449 | 451 | ||
450 | 452 | ||
451 | 453 | let pd = throw("Permission denied") | |
452 | 454 | ||
453 | 455 | func mm (i) = match m() { | |
454 | 456 | case pk: ByteVector => | |
455 | 457 | if ((i.callerPublicKey == pk)) | |
456 | 458 | then true | |
457 | 459 | else pd | |
458 | 460 | case _: Unit => | |
459 | 461 | if ((i.caller == this)) | |
460 | 462 | then true | |
461 | 463 | else pd | |
462 | 464 | case _ => | |
463 | 465 | throw("Match error") | |
464 | 466 | } | |
465 | 467 | ||
466 | 468 | ||
467 | 469 | @Callable(i) | |
468 | 470 | func constructor (fc) = { | |
469 | 471 | let c = mm(i) | |
470 | 472 | if ((c == c)) | |
471 | 473 | then [StringEntry(fc(), fc)] | |
472 | 474 | else throw("Strict value is not equal to itself.") | |
473 | 475 | } | |
474 | 476 | ||
475 | 477 | ||
476 | 478 | ||
477 | 479 | @Callable(i) | |
478 | 480 | func setManager (pendingManagerPublicKey) = { | |
479 | 481 | let c = mm(i) | |
480 | 482 | if ((c == c)) | |
481 | 483 | then { | |
482 | 484 | let cm = fromBase58String(pendingManagerPublicKey) | |
483 | 485 | if ((cm == cm)) | |
484 | 486 | then [StringEntry(pmpk(), pendingManagerPublicKey)] | |
485 | 487 | else throw("Strict value is not equal to itself.") | |
486 | 488 | } | |
487 | 489 | else throw("Strict value is not equal to itself.") | |
488 | 490 | } | |
489 | 491 | ||
490 | 492 | ||
491 | 493 | ||
492 | 494 | @Callable(i) | |
493 | 495 | func confirmManager () = { | |
494 | 496 | let p = pm() | |
495 | 497 | let hpm = if (isDefined(p)) | |
496 | 498 | then true | |
497 | 499 | else throw("No pending manager") | |
498 | 500 | if ((hpm == hpm)) | |
499 | 501 | then { | |
500 | 502 | let cpm = if ((i.callerPublicKey == value(p))) | |
501 | 503 | then true | |
502 | 504 | else throw("You are not pending manager") | |
503 | 505 | if ((cpm == cpm)) | |
504 | 506 | then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())] | |
505 | 507 | else throw("Strict value is not equal to itself.") | |
506 | 508 | } | |
507 | 509 | else throw("Strict value is not equal to itself.") | |
508 | 510 | } | |
509 | 511 | ||
510 | 512 | ||
511 | 513 | ||
512 | 514 | @Callable(i) | |
513 | 515 | func put (slip,autoStake) = { | |
514 | 516 | let factCfg = gfc() | |
515 | 517 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
516 | 518 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
517 | 519 | if ((0 > slip)) | |
518 | 520 | then throw("Wrong slippage") | |
519 | 521 | else if ((size(i.payments) != 2)) | |
520 | 522 | then throw("2 pmnts expd") | |
521 | 523 | else { | |
522 | 524 | 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, "") | |
523 | 525 | let emitLpAmt = e._2 | |
524 | 526 | let lpAssetId = e._7 | |
525 | 527 | let state = e._9 | |
526 | 528 | let amDiff = e._10 | |
527 | 529 | let prDiff = e._11 | |
528 | 530 | let amId = e._12 | |
529 | 531 | let prId = e._13 | |
530 | 532 | let r = invoke(fca, "emit", [emitLpAmt], nil) | |
531 | 533 | if ((r == r)) | |
532 | 534 | then { | |
533 | 535 | let el = match r { | |
534 | 536 | case legacy: Address => | |
535 | 537 | invoke(legacy, "emit", [emitLpAmt], nil) | |
536 | 538 | case _ => | |
537 | 539 | unit | |
538 | 540 | } | |
539 | 541 | if ((el == el)) | |
540 | 542 | then { | |
541 | 543 | let sa = if ((amDiff > 0)) | |
542 | 544 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
543 | 545 | else nil | |
544 | 546 | if ((sa == sa)) | |
545 | 547 | then { | |
546 | 548 | let sp = if ((prDiff > 0)) | |
547 | 549 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
548 | 550 | else nil | |
549 | 551 | if ((sp == sp)) | |
550 | 552 | then { | |
551 | 553 | let lpTrnsfr = if (autoStake) | |
552 | 554 | then { | |
553 | 555 | let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
554 | 556 | if ((ss == ss)) | |
555 | 557 | then nil | |
556 | 558 | else throw("Strict value is not equal to itself.") | |
557 | 559 | } | |
558 | 560 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
559 | 561 | (state ++ lpTrnsfr) | |
560 | 562 | } | |
561 | 563 | else throw("Strict value is not equal to itself.") | |
562 | 564 | } | |
563 | 565 | else throw("Strict value is not equal to itself.") | |
564 | 566 | } | |
565 | 567 | else throw("Strict value is not equal to itself.") | |
566 | 568 | } | |
567 | 569 | else throw("Strict value is not equal to itself.") | |
568 | 570 | } | |
569 | 571 | } | |
570 | 572 | ||
571 | 573 | ||
572 | 574 | ||
573 | 575 | @Callable(i) | |
574 | 576 | func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = { | |
575 | 577 | let cfg = gfc() | |
576 | 578 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr") | |
577 | 579 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr") | |
578 | 580 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr") | |
579 | 581 | let poolCfg = gpc() | |
580 | 582 | let amId = poolCfg[idxAmAsId] | |
581 | 583 | let prId = poolCfg[idxPrAsId] | |
582 | 584 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
583 | 585 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
584 | 586 | let addon = valueOrElse(getString(this, ada()), "") | |
585 | 587 | let userAddress = if ((addon == toString(i.caller))) | |
586 | 588 | then i.originCaller | |
587 | 589 | else i.caller | |
588 | 590 | let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid") | |
589 | 591 | let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil) | |
590 | 592 | if ((check == check)) | |
591 | 593 | then if (if (if (if ((0 >= slippage)) | |
592 | 594 | then true | |
593 | 595 | else (0 >= amAssetPart)) | |
594 | 596 | then true | |
595 | 597 | else (0 >= prAssetPart)) | |
596 | 598 | then true | |
597 | 599 | else (0 >= outLp)) | |
598 | 600 | then throw("Wrong params") | |
599 | 601 | else if ((size(i.payments) != 1)) | |
600 | 602 | then throw("1 pmnt expd") | |
601 | 603 | else { | |
602 | 604 | let pmt = value(i.payments[0]) | |
603 | 605 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
604 | 606 | let pmtAmt = pmt.amount | |
605 | 607 | if (if (if ((amAssetPart > pmtAmt)) | |
606 | 608 | then true | |
607 | 609 | else (prAssetPart > pmtAmt)) | |
608 | 610 | then true | |
609 | 611 | else (10000000 > pmtAmt)) | |
610 | 612 | then throw("Wrong pmt amt") | |
611 | 613 | else { | |
612 | 614 | let amBalance = getAccBalance(amId) | |
613 | 615 | let prBalance = getAccBalance(prId) | |
614 | - | let $ | |
616 | + | let $t02478225162 = if ((pmtAssetId == amId)) | |
615 | 617 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
616 | 618 | else if ((pmtAssetId == prId)) | |
617 | 619 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
618 | 620 | else throw("wrong pmtAssetId") | |
619 | - | let amBalanceNow = $ | |
620 | - | let prBalanceNow = $ | |
621 | - | let virtSwapInAm = $ | |
622 | - | let virtSwapOutPr = $ | |
623 | - | let virtSwapInPr = $ | |
624 | - | let virtSwapOutAm = $ | |
621 | + | let amBalanceNow = $t02478225162._1 | |
622 | + | let prBalanceNow = $t02478225162._2 | |
623 | + | let virtSwapInAm = $t02478225162._3 | |
624 | + | let virtSwapOutPr = $t02478225162._4 | |
625 | + | let virtSwapInPr = $t02478225162._5 | |
626 | + | let virtSwapOutAm = $t02478225162._6 | |
625 | 627 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
626 | 628 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
627 | 629 | let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D) | |
628 | 630 | if ((D0vsD1 == D0vsD1)) | |
629 | 631 | then { | |
630 | 632 | let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId) | |
631 | 633 | let estimLP = estPut._2 | |
632 | 634 | let lpAssetId = estPut._7 | |
633 | 635 | let state = estPut._9 | |
634 | 636 | let amDiff = estPut._10 | |
635 | 637 | let prDiff = estPut._11 | |
636 | 638 | let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
637 | 639 | let emitLpAmt = toInt(lpCalcRes._2) | |
638 | 640 | let e = invoke(fca, "emit", [emitLpAmt], nil) | |
639 | 641 | if ((e == e)) | |
640 | 642 | then { | |
641 | 643 | let el = match e { | |
642 | 644 | case legacy: Address => | |
643 | 645 | invoke(legacy, "emit", [emitLpAmt], nil) | |
644 | 646 | case _ => | |
645 | 647 | unit | |
646 | 648 | } | |
647 | 649 | if ((el == el)) | |
648 | 650 | then { | |
649 | 651 | let sa = if ((amDiff > 0)) | |
650 | 652 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
651 | 653 | else nil | |
652 | 654 | if ((sa == sa)) | |
653 | 655 | then { | |
654 | 656 | let sp = if ((prDiff > 0)) | |
655 | 657 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
656 | 658 | else nil | |
657 | 659 | if ((sp == sp)) | |
658 | 660 | then { | |
659 | 661 | let lpTrnsfr = if (autoStake) | |
660 | 662 | then { | |
661 | 663 | let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
662 | 664 | if ((ss == ss)) | |
663 | 665 | then nil | |
664 | 666 | else throw("Strict value is not equal to itself.") | |
665 | 667 | } | |
666 | 668 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
667 | 669 | (state ++ lpTrnsfr) | |
668 | 670 | } | |
669 | 671 | else throw("Strict value is not equal to itself.") | |
670 | 672 | } | |
671 | 673 | else throw("Strict value is not equal to itself.") | |
672 | 674 | } | |
673 | 675 | else throw("Strict value is not equal to itself.") | |
674 | 676 | } | |
675 | 677 | else throw("Strict value is not equal to itself.") | |
676 | 678 | } | |
677 | 679 | else throw("Strict value is not equal to itself.") | |
678 | 680 | } | |
679 | 681 | } | |
680 | 682 | else throw("Strict value is not equal to itself.") | |
681 | 683 | } | |
682 | 684 | ||
683 | 685 | ||
684 | 686 | ||
685 | 687 | @Callable(i) | |
686 | 688 | func putForFree (maxSlpg) = if ((0 > maxSlpg)) | |
687 | 689 | then throw("Wrong slpg") | |
688 | 690 | else if ((size(i.payments) != 2)) | |
689 | 691 | then throw("2 pmnts expd") | |
690 | 692 | else { | |
691 | 693 | 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, "") | |
692 | 694 | estPut._9 | |
693 | 695 | } | |
694 | 696 | ||
695 | 697 | ||
696 | 698 | ||
697 | 699 | @Callable(i) | |
698 | 700 | func get () = { | |
699 | 701 | let r = cg(i) | |
700 | 702 | let outAmtAmt = r._1 | |
701 | 703 | let outPrAmt = r._2 | |
702 | 704 | let pmtAmt = r._3 | |
703 | 705 | let pmtAssetId = r._4 | |
704 | 706 | let state = r._5 | |
705 | 707 | let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
706 | 708 | if ((b == b)) | |
707 | 709 | then state | |
708 | 710 | else throw("Strict value is not equal to itself.") | |
709 | 711 | } | |
710 | 712 | ||
711 | 713 | ||
712 | 714 | ||
713 | 715 | @Callable(i) | |
714 | 716 | func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
715 | 717 | then throw("1 pmnt expd") | |
716 | 718 | else { | |
717 | 719 | let cfg = gpc() | |
718 | 720 | let lpId = cfg[idxLPAsId] | |
719 | 721 | let amId = cfg[idxAmAsId] | |
720 | 722 | let prId = cfg[idxPrAsId] | |
721 | 723 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
722 | 724 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
723 | 725 | let sts = cfg[idxPoolSt] | |
724 | 726 | let factCfg = gfc() | |
725 | 727 | let gwxCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactGwxRewCntr]), "Wr sl addr") | |
726 | 728 | let pmt = value(i.payments[0]) | |
727 | 729 | let addon = valueOrElse(getString(this, ada()), "") | |
728 | 730 | let userAddress = if ((addon == toString(i.caller))) | |
729 | 731 | then i.originCaller | |
730 | 732 | else i.caller | |
731 | 733 | let txId58 = toBase58String(i.transactionId) | |
732 | 734 | let pmtAssetId = value(pmt.assetId) | |
733 | 735 | let pmtAmt = pmt.amount | |
734 | 736 | let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid") | |
735 | 737 | let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil) | |
736 | 738 | if ((check == check)) | |
737 | 739 | then if ((1000000000 > pmtAmt)) | |
738 | 740 | then throw("Min pmt 10 LP") | |
739 | 741 | else if (if (if ((0 > slippage)) | |
740 | 742 | then true | |
741 | 743 | else (0 > exchResult)) | |
742 | 744 | then true | |
743 | 745 | else (0 > outAmount)) | |
744 | 746 | then throw("Wrong params") | |
745 | 747 | else if ((lpId != toBase58String(pmtAssetId))) | |
746 | 748 | then throw("Wrong LP") | |
747 | 749 | else { | |
748 | 750 | let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
749 | 751 | let estimAmAmt = r._1 | |
750 | 752 | let estimPrAmt = r._2 | |
751 | 753 | let amBalance = getAccBalance(amId) | |
752 | 754 | let prBalance = getAccBalance(prId) | |
753 | - | let $ | |
755 | + | let $t03019830655 = if ((outAssetId == amId)) | |
754 | 756 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult)) | |
755 | 757 | else if ((outAssetId == prId)) | |
756 | 758 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult)) | |
757 | 759 | else throw("wrong outAssetId") | |
758 | - | let amBalanceNow = $ | |
759 | - | let prBalanceNow = $ | |
760 | - | let virtSwapInAm = $ | |
761 | - | let virtSwapOutPr = $ | |
762 | - | let virtSwapInPr = $ | |
763 | - | let virtSwapOutAm = $ | |
764 | - | let totalGet = $ | |
760 | + | let amBalanceNow = $t03019830655._1 | |
761 | + | let prBalanceNow = $t03019830655._2 | |
762 | + | let virtSwapInAm = $t03019830655._3 | |
763 | + | let virtSwapOutPr = $t03019830655._4 | |
764 | + | let virtSwapInPr = $t03019830655._5 | |
765 | + | let virtSwapOutAm = $t03019830655._6 | |
766 | + | let totalGet = $t03019830655._7 | |
765 | 767 | if (if ((0 > virtSwapInAm)) | |
766 | 768 | then true | |
767 | 769 | else (0 > virtSwapInPr)) | |
768 | 770 | then throw("Wrong calc") | |
769 | 771 | else { | |
770 | 772 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
771 | 773 | let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
772 | 774 | let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D) | |
773 | 775 | if ((D0vsD1 == D0vsD1)) | |
774 | 776 | then { | |
775 | 777 | let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
776 | 778 | if ((finalRes == finalRes)) | |
777 | 779 | then { | |
778 | - | let $ | |
780 | + | let $t03136031464 = if ((outAssetId == amId)) | |
779 | 781 | then $Tuple2(toInt(finalRes._2), 0) | |
780 | 782 | else $Tuple2(0, toInt(finalRes._2)) | |
781 | - | let outAm = $ | |
782 | - | let outPr = $ | |
783 | + | let outAm = $t03136031464._1 | |
784 | + | let outPr = $t03136031464._2 | |
783 | 785 | let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm)) | |
784 | 786 | let curPr = f1(curPrX18, scale8) | |
785 | 787 | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) | |
786 | 788 | then unit | |
787 | 789 | 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)] | |
788 | 790 | if ((state == state)) | |
789 | 791 | then { | |
790 | 792 | let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
791 | 793 | if ((burn == burn)) | |
792 | 794 | then state | |
793 | 795 | else throw("Strict value is not equal to itself.") | |
794 | 796 | } | |
795 | 797 | else throw("Strict value is not equal to itself.") | |
796 | 798 | } | |
797 | 799 | else throw("Strict value is not equal to itself.") | |
798 | 800 | } | |
799 | 801 | else throw("Strict value is not equal to itself.") | |
800 | 802 | } | |
801 | 803 | } | |
802 | 804 | else throw("Strict value is not equal to itself.") | |
803 | 805 | } | |
804 | 806 | ||
805 | 807 | ||
806 | 808 | ||
807 | 809 | @Callable(i) | |
808 | 810 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
809 | 811 | let r = cg(i) | |
810 | 812 | let outAmAmt = r._1 | |
811 | 813 | let outPrAmt = r._2 | |
812 | 814 | let pmtAmt = r._3 | |
813 | 815 | let pmtAssetId = r._4 | |
814 | 816 | let state = r._5 | |
815 | 817 | if ((noLessThenAmtAsset > outAmAmt)) | |
816 | 818 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
817 | 819 | else if ((noLessThenPriceAsset > outPrAmt)) | |
818 | 820 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
819 | 821 | else { | |
820 | 822 | let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
821 | 823 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
822 | 824 | then state | |
823 | 825 | else throw("Strict value is not equal to itself.") | |
824 | 826 | } | |
825 | 827 | } | |
826 | 828 | ||
827 | 829 | ||
828 | 830 | ||
829 | 831 | @Callable(i) | |
830 | 832 | func unstakeAndGet (amount) = { | |
831 | 833 | let checkPayments = if ((size(i.payments) != 0)) | |
832 | 834 | then throw("No pmnts expd") | |
833 | 835 | else true | |
834 | 836 | if ((checkPayments == checkPayments)) | |
835 | 837 | then { | |
836 | 838 | let cfg = gpc() | |
837 | 839 | let factoryCfg = gfc() | |
838 | 840 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
839 | 841 | let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr") | |
840 | 842 | let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil) | |
841 | 843 | if ((unstakeInv == unstakeInv)) | |
842 | 844 | then { | |
843 | 845 | let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
844 | 846 | let sts = parseIntValue(r._9) | |
845 | 847 | let state = r._10 | |
846 | 848 | let v = if (if (igs()) | |
847 | 849 | then true | |
848 | 850 | else (sts == PoolShutdown)) | |
849 | 851 | then throw(("Blocked: " + toString(sts))) | |
850 | 852 | else true | |
851 | 853 | if ((v == v)) | |
852 | 854 | then { | |
853 | 855 | let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
854 | 856 | if ((burnA == burnA)) | |
855 | 857 | then state | |
856 | 858 | else throw("Strict value is not equal to itself.") | |
857 | 859 | } | |
858 | 860 | else throw("Strict value is not equal to itself.") | |
859 | 861 | } | |
860 | 862 | else throw("Strict value is not equal to itself.") | |
861 | 863 | } | |
862 | 864 | else throw("Strict value is not equal to itself.") | |
863 | 865 | } | |
864 | 866 | ||
865 | 867 | ||
866 | 868 | ||
867 | 869 | @Callable(i) | |
868 | 870 | func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca))) | |
869 | 871 | then throw("denied") | |
870 | 872 | else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success") | |
871 | 873 | ||
872 | 874 | ||
873 | 875 | ||
874 | 876 | @Callable(i) | |
875 | 877 | func setS (k,v) = if ((toString(i.caller) != strf(this, ada()))) | |
876 | 878 | then pd | |
877 | 879 | else [StringEntry(k, v)] | |
878 | 880 | ||
879 | 881 | ||
880 | 882 | ||
881 | 883 | @Callable(i) | |
882 | 884 | func setI (k,v) = if ((toString(i.caller) != strf(this, ada()))) | |
883 | 885 | then pd | |
884 | 886 | else [IntegerEntry(k, v)] | |
885 | 887 | ||
886 | 888 | ||
887 | 889 | ||
888 | 890 | @Callable(i) | |
889 | 891 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc()) | |
890 | 892 | ||
891 | 893 | ||
892 | 894 | ||
893 | 895 | @Callable(i) | |
894 | 896 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
895 | 897 | ||
896 | 898 | ||
897 | 899 | ||
898 | 900 | @Callable(i) | |
899 | 901 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
900 | 902 | let pr = calcPrices(amAmt, prAmt, lpAmt) | |
901 | 903 | $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])]) | |
902 | 904 | } | |
903 | 905 | ||
904 | 906 | ||
905 | 907 | ||
906 | 908 | @Callable(i) | |
907 | 909 | func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult)) | |
908 | 910 | ||
909 | 911 | ||
910 | 912 | ||
911 | 913 | @Callable(i) | |
912 | 914 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult))) | |
913 | 915 | ||
914 | 916 | ||
915 | 917 | ||
916 | 918 | @Callable(i) | |
917 | 919 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
918 | 920 | ||
919 | 921 | ||
920 | 922 | ||
921 | 923 | @Callable(i) | |
922 | 924 | 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, "")) | |
923 | 925 | ||
924 | 926 | ||
925 | 927 | ||
926 | 928 | @Callable(i) | |
927 | 929 | func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = { | |
928 | 930 | let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr)) | |
929 | 931 | $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10)) | |
930 | 932 | } | |
931 | 933 | ||
932 | 934 | ||
933 | 935 | @Verifier(tx) | |
934 | 936 | func verify () = match tx { | |
935 | 937 | case order: Order => | |
936 | 938 | let mtchPub = mp() | |
937 | 939 | let orV = moa(order) | |
938 | 940 | let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
939 | 941 | let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub) | |
940 | 942 | if (if (if (orV) | |
941 | 943 | then sndrV | |
942 | 944 | else false) | |
943 | 945 | then mtchV | |
944 | 946 | else false) | |
945 | 947 | then true | |
946 | 948 | else toe(orV, sndrV, mtchV) | |
947 | 949 | case _ => | |
948 | 950 | let targetPublicKey = match m() { | |
949 | 951 | case pk: ByteVector => | |
950 | 952 | pk | |
951 | 953 | case _: Unit => | |
952 | 954 | tx.senderPublicKey | |
953 | 955 | case _ => | |
954 | 956 | throw("Match error") | |
955 | 957 | } | |
956 | 958 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
957 | 959 | } | |
958 | 960 |
github/deemru/w8io/169f3d6 131.36 ms ◑