tx · BmDbqDcii4DuYXKGDirE8GrhnHc2JThSMNAaLeGXyP8L 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.29 23:40 [1855997] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "BmDbqDcii4DuYXKGDirE8GrhnHc2JThSMNAaLeGXyP8L", "fee": 1400000, "feeAssetId": null, "timestamp": 1640810466217, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5eanEWv8QAMa13mdMd9sMjozMmogvU1ieZY2bJSCfANja52CW3rD6oRdfm2e4DUasYJn4bAXUUWmNPtodebL1dtx" ], "script": "base64:AAIFAAAAAAAAAG0IAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAARQAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAAAAAApzbGlwcGFnZTRECQABNgAAAAEJAABlAAAAAgUAAAAGc2NhbGU4CQAAaQAAAAIJAABoAAAAAgUAAAAGc2NhbGU4AAAAAAAAAAABBQAAAAZzY2FsZTgAAAAABUFtdWx0AgAAAAMxMDAAAAAABURjb252AgAAAAExAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAApQb29sUHV0RGlzAAAAAAAAAAACAAAAAA5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AQAAAADb3JWCQEAAAAbdmFsaWRhdGVNYXRjaGVyT3JkZXJBbGxvd2VkAAAAAQUAAAAFb3JkZXIEAAAABXNuZHJWCQAB9AAAAAMIBQAAAAVvcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAABW9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgFAAAABW9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAFbXRjaFYJAAH0AAAAAwgFAAAABW9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAAFb3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAdtdGNoUHViAwMDBQAAAANvclYFAAAABXNuZHJWBwUAAAAFbXRjaFYHBgkBAAAAD3Rocm93T3JkZXJFcnJvcgAAAAMFAAAAA29yVgUAAAAFc25kclYFAAAABW10Y2hWBAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAAMa2V5TWFuUHViS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAABWFkbWluBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAABWFkbWluRvntgw==", "chainId": 84, "height": 1855997, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cr2hSsru69Kqjj8vPAssGrwFKhnjLBhTuk7BFagJPDfE Next: 64s5FeBxUQTDRk72ghvDti8uTwaY3dXHAdjgHfTUVSg6 Diff:
Old | New | Differences | |
---|---|---|---|
176 | 176 | ||
177 | 177 | func validateD (D1,D0,slpg) = { | |
178 | 178 | let diff = fraction(D0, scale8BigInt, D1) | |
179 | - | let | |
180 | - | if (if ( | |
179 | + | let fail = (slpg > diff) | |
180 | + | if (if (fail) | |
181 | 181 | then true | |
182 | 182 | else (D0 > D1)) | |
183 | 183 | then throw(((((((toString(D0) + " : ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
184 | - | else | |
184 | + | else fail | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
323 | 323 | else calcLpAmt | |
324 | 324 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
325 | 325 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
326 | - | let $ | |
326 | + | let $t01582216167 = if (if (isOneAsset) | |
327 | 327 | then (pmtId == amIdStr) | |
328 | 328 | else false) | |
329 | 329 | then $Tuple2(pmtAmt, 0) | |
332 | 332 | else false) | |
333 | 333 | then $Tuple2(0, pmtAmt) | |
334 | 334 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
335 | - | let writeAmAmt = $ | |
336 | - | let writePrAmt = $ | |
335 | + | let writeAmAmt = $t01582216167._1 | |
336 | + | let writePrAmt = $t01582216167._2 | |
337 | 337 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
338 | 338 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
339 | 339 | } | |
509 | 509 | else { | |
510 | 510 | let amBalance = getAccBalance(amId) | |
511 | 511 | let prBalance = getAccBalance(prId) | |
512 | - | let $ | |
512 | + | let $t02390824288 = if ((pmtAssetId == amId)) | |
513 | 513 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
514 | 514 | else if ((pmtAssetId == prId)) | |
515 | 515 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
516 | 516 | else throw("wrong pmtAssetId") | |
517 | - | let amBalanceNow = $ | |
518 | - | let prBalanceNow = $ | |
519 | - | let virtSwapInAm = $ | |
520 | - | let virtSwapOutPr = $ | |
521 | - | let virtSwapInPr = $ | |
522 | - | let virtSwapOutAm = $ | |
517 | + | let amBalanceNow = $t02390824288._1 | |
518 | + | let prBalanceNow = $t02390824288._2 | |
519 | + | let virtSwapInAm = $t02390824288._3 | |
520 | + | let virtSwapOutPr = $t02390824288._4 | |
521 | + | let virtSwapInPr = $t02390824288._5 | |
522 | + | let virtSwapOutAm = $t02390824288._6 | |
523 | 523 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
524 | 524 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
525 | 525 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
631 | 631 | let estimPrAmt = r._2 | |
632 | 632 | let amBalance = getAccBalance(amId) | |
633 | 633 | let prBalance = getAccBalance(prId) | |
634 | - | let $ | |
634 | + | let $t02873329217 = if ((outAssetId == amId)) | |
635 | 635 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), (outAmount - estimAmAmt), prAssetSwap, 0, 0, (estimAmAmt + amAssetSwap)) | |
636 | 636 | else if ((outAssetId == prId)) | |
637 | 637 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, (outAmount - estimPrAmt), amAssetSwap, (estimPrAmt + prAssetSwap)) | |
638 | 638 | else throw("wrong outAssetId") | |
639 | - | let amBalanceNow = $ | |
640 | - | let prBalanceNow = $ | |
641 | - | let virtSwapInAm = $ | |
642 | - | let virtSwapOutPr = $ | |
643 | - | let virtSwapInPr = $ | |
644 | - | let virtSwapOutAm = $ | |
645 | - | let totalGet = $ | |
639 | + | let amBalanceNow = $t02873329217._1 | |
640 | + | let prBalanceNow = $t02873329217._2 | |
641 | + | let virtSwapInAm = $t02873329217._3 | |
642 | + | let virtSwapOutPr = $t02873329217._4 | |
643 | + | let virtSwapInPr = $t02873329217._5 | |
644 | + | let virtSwapOutAm = $t02873329217._6 | |
645 | + | let totalGet = $t02873329217._7 | |
646 | 646 | if (if ((0 > virtSwapInAm)) | |
647 | 647 | then true | |
648 | 648 | else (0 > virtSwapInPr)) | |
656 | 656 | let amount2Return = validateAbsDiff(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
657 | 657 | if ((amount2Return == amount2Return)) | |
658 | 658 | then { | |
659 | - | let $ | |
659 | + | let $t02995630070 = if ((outAssetId == amId)) | |
660 | 660 | then $Tuple2(toInt(amount2Return._2), 0) | |
661 | 661 | else $Tuple2(0, toInt(amount2Return._2)) | |
662 | - | let outAm = $ | |
663 | - | let outPr = $ | |
662 | + | let outAm = $t02995630070._1 | |
663 | + | let outPr = $t02995630070._2 | |
664 | 664 | let curPriceX18 = calcPriceBigInt(toX18(prBalance, prDcm), toX18(amBalance, amDcm)) | |
665 | 665 | let curPrice = fromX18(curPriceX18, scale8) | |
666 | 666 | 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 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func abs (val) = if ((zeroBigInt > val)) | |
66 | 66 | then -(val) | |
67 | 67 | else val | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func keyFactCntr () = "%s__factoryContract" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyManPubKey () = "%s__managerPublicKey" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyPriceLast () = "%s%s__price__last" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyPriceHistory (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyPutActionByUser (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyGetActionByUser (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyAmtAsset () = "%s__amountAsset" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyPriceAsset () = "%s__priceAsset" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyAmplificator () = "%s__amp" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyFactoryConfig () = "%s__factoryConfig" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyPoolConfig (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config") | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyMappingsBaseAsset2internalId (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyAllPoolsShutdown () = "%s__shutdown" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyPoolWeight (p) = ("%s%s__poolWeight__" + p) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func throwOrderError (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV))) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func asString (val) = match val { | |
119 | 119 | case valStr: String => | |
120 | 120 | valStr | |
121 | 121 | case _ => | |
122 | 122 | throw("fail cast to String") | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getStringOrFail (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getIntOrFail (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactCntr())) | |
133 | 133 | ||
134 | 134 | let A = getStringOrFail(this, keyAmplificator()) | |
135 | 135 | ||
136 | 136 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getPoolConfig () = { | |
143 | 143 | let amtAs = getStringOrFail(this, keyAmtAsset()) | |
144 | 144 | let priceAs = getStringOrFail(this, keyPriceAsset()) | |
145 | 145 | let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs)) | |
146 | 146 | let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs)) | |
147 | 147 | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP) | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | 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) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | 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) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
161 | 161 | then wavesBalance(this).available | |
162 | 162 | else assetBalance(this, fromBase58String(assetId)) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func validateAbsDiff (A1,A2,slippage) = { | |
169 | 169 | let diff = fraction((A1 - A2), scale8BigInt, A2) | |
170 | 170 | let pass = ((slippage - abs(diff)) > zeroBigInt) | |
171 | 171 | if (!(pass)) | |
172 | 172 | then throw(("Big slpg: " + toString(diff))) | |
173 | 173 | else $Tuple2(pass, min([A1, A2])) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func validateD (D1,D0,slpg) = { | |
178 | 178 | let diff = fraction(D0, scale8BigInt, D1) | |
179 | - | let | |
180 | - | if (if ( | |
179 | + | let fail = (slpg > diff) | |
180 | + | if (if (fail) | |
181 | 181 | then true | |
182 | 182 | else (D0 > D1)) | |
183 | 183 | then throw(((((((toString(D0) + " : ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
184 | - | else | |
184 | + | else fail | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
189 | 189 | let amtAsAmtX18 = toX18(amAmt, amAssetDcm) | |
190 | 190 | let prAsAmtX18 = toX18(prAmt, prAssetDcm) | |
191 | 191 | calcPriceBigInt(prAsAmtX18, amtAsAmtX18) | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
196 | 196 | let cfg = getPoolConfig() | |
197 | 197 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
198 | 198 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
199 | 199 | let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt) | |
200 | 200 | let amAmtX18 = toX18(amAmt, amtAsDcm) | |
201 | 201 | let prAmtX18 = toX18(prAmt, prAsDcm) | |
202 | 202 | let lpAmtX18 = toX18(lpAmt, scale8) | |
203 | 203 | let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
204 | 204 | let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
205 | 205 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
210 | 210 | let p = calcPrices(amAmt, prAmt, lpAmt) | |
211 | 211 | [fromX18(p[0], scale8), fromX18(p[1], scale8), fromX18(p[2], scale8)] | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
216 | 216 | let cfg = getPoolConfig() | |
217 | 217 | let lpId = cfg[idxLPAsId] | |
218 | 218 | let amId = cfg[idxAmAsId] | |
219 | 219 | let prId = cfg[idxPrAsId] | |
220 | 220 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
221 | 221 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
222 | 222 | let sts = cfg[idxPoolSt] | |
223 | 223 | let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity | |
224 | 224 | if ((lpId != pmtAssetId)) | |
225 | 225 | then throw("Wrong pmt asset") | |
226 | 226 | else { | |
227 | 227 | let amBalance = getAccBalance(amId) | |
228 | 228 | let amBalanceX18 = toX18(amBalance, amDcm) | |
229 | 229 | let prBalance = getAccBalance(prId) | |
230 | 230 | let prBalanceX18 = toX18(prBalance, prDcm) | |
231 | 231 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
232 | 232 | let curPrice = fromX18(curPriceX18, scale8) | |
233 | 233 | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
234 | 234 | let lpEmissX18 = toX18(lpEmiss, scale8) | |
235 | 235 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18) | |
236 | 236 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18) | |
237 | 237 | let outAmAmt = fromX18(outAmAmtX18, amDcm) | |
238 | 238 | let outPrAmt = fromX18(outPrAmtX18, prDcm) | |
239 | 239 | let state = if ((txId58 == "")) | |
240 | 240 | then nil | |
241 | 241 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
242 | 242 | then unit | |
243 | 243 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
244 | 244 | then unit | |
245 | 245 | else fromBase58String(prId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)] | |
246 | 246 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state) | |
247 | 247 | } | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
252 | 252 | let cfg = getPoolConfig() | |
253 | 253 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
254 | 254 | let amIdStr = cfg[idxAmAsId] | |
255 | 255 | let prIdStr = cfg[idxPrAsId] | |
256 | 256 | let inAmIdStr = cfg[idxIAmtAsId] | |
257 | 257 | let inPrIdStr = cfg[idxIPriceAsId] | |
258 | 258 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
259 | 259 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
260 | 260 | let sts = cfg[idxPoolSt] | |
261 | 261 | let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity | |
262 | 262 | let amBalance = if (isEval) | |
263 | 263 | then getAccBalance(amIdStr) | |
264 | 264 | else if (if (isOneAsset) | |
265 | 265 | then (pmtId == amIdStr) | |
266 | 266 | else false) | |
267 | 267 | then (getAccBalance(amIdStr) - pmtAmt) | |
268 | 268 | else if (isOneAsset) | |
269 | 269 | then getAccBalance(amIdStr) | |
270 | 270 | else (getAccBalance(amIdStr) - inAmAmt) | |
271 | 271 | let prBalance = if (isEval) | |
272 | 272 | then getAccBalance(prIdStr) | |
273 | 273 | else if (if (isOneAsset) | |
274 | 274 | then (pmtId == prIdStr) | |
275 | 275 | else false) | |
276 | 276 | then (getAccBalance(prIdStr) - pmtAmt) | |
277 | 277 | else if (isOneAsset) | |
278 | 278 | then getAccBalance(prIdStr) | |
279 | 279 | else (getAccBalance(prIdStr) - inPrAmt) | |
280 | 280 | let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm) | |
281 | 281 | let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm) | |
282 | 282 | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
283 | 283 | let amBalanceX18 = toX18(amBalance, amtDcm) | |
284 | 284 | let prBalanceX18 = toX18(prBalance, priceDcm) | |
285 | 285 | let res = if ((lpEm == 0)) | |
286 | 286 | then { | |
287 | 287 | let curPriceX18 = zeroBigInt | |
288 | 288 | let slippageX18 = zeroBigInt | |
289 | 289 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
290 | 290 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
291 | 291 | } | |
292 | 292 | else { | |
293 | 293 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
294 | 294 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
295 | 295 | let slippageX18 = toX18(slippage, scale8) | |
296 | 296 | if (if ((curPriceX18 != zeroBigInt)) | |
297 | 297 | then (slippageRealX18 > slippageX18) | |
298 | 298 | else false) | |
299 | 299 | then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18))) | |
300 | 300 | else { | |
301 | 301 | let lpEmissionX18 = toX18(lpEm, scale8) | |
302 | 302 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
303 | 303 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
304 | 304 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
305 | 305 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
306 | 306 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
307 | 307 | let expAmtAssetAmtX18 = expectedAmts._1 | |
308 | 308 | let expPriceAssetAmtX18 = expectedAmts._2 | |
309 | 309 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
310 | 310 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
311 | 311 | } | |
312 | 312 | } | |
313 | 313 | let calcLpAmt = res._1 | |
314 | 314 | let calcAmAssetPmt = res._2 | |
315 | 315 | let calcPrAssetPmt = res._3 | |
316 | 316 | let curPrice = fromX18(res._4, scale8) | |
317 | 317 | let slippageCalc = fromX18(res._5, scale8) | |
318 | 318 | if ((0 >= calcLpAmt)) | |
319 | 319 | then throw("LP <= 0") | |
320 | 320 | else { | |
321 | 321 | let emitLpAmt = if (!(emitLp)) | |
322 | 322 | then 0 | |
323 | 323 | else calcLpAmt | |
324 | 324 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
325 | 325 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
326 | - | let $ | |
326 | + | let $t01582216167 = if (if (isOneAsset) | |
327 | 327 | then (pmtId == amIdStr) | |
328 | 328 | else false) | |
329 | 329 | then $Tuple2(pmtAmt, 0) | |
330 | 330 | else if (if (isOneAsset) | |
331 | 331 | then (pmtId == prIdStr) | |
332 | 332 | else false) | |
333 | 333 | then $Tuple2(0, pmtAmt) | |
334 | 334 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
335 | - | let writeAmAmt = $ | |
336 | - | let writePrAmt = $ | |
335 | + | let writeAmAmt = $t01582216167._1 | |
336 | + | let writePrAmt = $t01582216167._2 | |
337 | 337 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
338 | 338 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
339 | 339 | } | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func validateMatcherOrderAllowed (order) = { | |
344 | 344 | let cfg = getPoolConfig() | |
345 | 345 | let amtAsId = cfg[idxAmAsId] | |
346 | 346 | let prAsId = cfg[idxPrAsId] | |
347 | 347 | let sts = parseIntValue(cfg[idxPoolSt]) | |
348 | 348 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
349 | 349 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
350 | 350 | let accAmtAsBalance = getAccBalance(amtAsId) | |
351 | 351 | let accPrAsBalance = getAccBalance(prAsId) | |
352 | 352 | let curPriceX18 = if ((order.orderType == Buy)) | |
353 | 353 | then privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
354 | 354 | else privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
355 | 355 | let curPrice = fromX18(curPriceX18, scale8) | |
356 | 356 | if (if (if (isGlobalShutdown()) | |
357 | 357 | then true | |
358 | 358 | else (sts == PoolMatcherDis)) | |
359 | 359 | then true | |
360 | 360 | else (sts == PoolShutdown)) | |
361 | 361 | then throw("Admin blocked") | |
362 | 362 | else { | |
363 | 363 | let orAmtAsset = order.assetPair.amountAsset | |
364 | 364 | let orAmtAsStr = if ((orAmtAsset == unit)) | |
365 | 365 | then "WAVES" | |
366 | 366 | else toBase58String(value(orAmtAsset)) | |
367 | 367 | let orPrAsset = order.assetPair.priceAsset | |
368 | 368 | let orPrAsStr = if ((orPrAsset == unit)) | |
369 | 369 | then "WAVES" | |
370 | 370 | else toBase58String(value(orPrAsset)) | |
371 | 371 | if (if ((orAmtAsStr != amtAsId)) | |
372 | 372 | then true | |
373 | 373 | else (orPrAsStr != prAsId)) | |
374 | 374 | then throw("Wr assets") | |
375 | 375 | else { | |
376 | 376 | let orderPrice = order.price | |
377 | 377 | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
378 | 378 | let castOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
379 | 379 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
380 | 380 | then (curPrice >= castOrderPrice) | |
381 | 381 | else (castOrderPrice >= curPrice) | |
382 | 382 | true | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | func commonGet (i) = if ((size(i.payments) != 1)) | |
389 | 389 | then throw("1 pmnt exp") | |
390 | 390 | else { | |
391 | 391 | let pmt = value(i.payments[0]) | |
392 | 392 | let pmtAssetId = value(pmt.assetId) | |
393 | 393 | let pmtAmt = pmt.amount | |
394 | 394 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
395 | 395 | let outAmAmt = res._1 | |
396 | 396 | let outPrAmt = res._2 | |
397 | 397 | let sts = parseIntValue(res._9) | |
398 | 398 | let state = res._10 | |
399 | 399 | if (if (isGlobalShutdown()) | |
400 | 400 | then true | |
401 | 401 | else (sts == PoolShutdown)) | |
402 | 402 | then throw(("Admin blocked: " + toString(sts))) | |
403 | 403 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
408 | 408 | let r = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId) | |
409 | 409 | let sts = parseIntValue(r._8) | |
410 | 410 | if (if (if (isGlobalShutdown()) | |
411 | 411 | then true | |
412 | 412 | else (sts == PoolPutDis)) | |
413 | 413 | then true | |
414 | 414 | else (sts == PoolShutdown)) | |
415 | 415 | then throw(("Blocked:" + toString(sts))) | |
416 | 416 | else r | |
417 | 417 | } | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | @Callable(i) | |
421 | 421 | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
422 | 422 | then throw("denied") | |
423 | 423 | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManPubKey(), managerPublicKey)] | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | ||
427 | 427 | @Callable(i) | |
428 | 428 | func put (slip,autoStake) = { | |
429 | 429 | let factCfg = getFactoryConfig() | |
430 | 430 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
431 | 431 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
432 | 432 | if ((0 > slip)) | |
433 | 433 | then throw("Wrong slippage") | |
434 | 434 | else if ((size(i.payments) != 2)) | |
435 | 435 | then throw("2 pmnts expd") | |
436 | 436 | else { | |
437 | 437 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, 0, "") | |
438 | 438 | let emitLpAmt = estPut._2 | |
439 | 439 | let lpAssetId = estPut._7 | |
440 | 440 | let state = estPut._9 | |
441 | 441 | let amDiff = estPut._10 | |
442 | 442 | let prDiff = estPut._11 | |
443 | 443 | let amId = estPut._12 | |
444 | 444 | let prId = estPut._13 | |
445 | 445 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
446 | 446 | if ((emitInv == emitInv)) | |
447 | 447 | then { | |
448 | 448 | let slippageAInv = if ((amDiff > 0)) | |
449 | 449 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
450 | 450 | else nil | |
451 | 451 | if ((slippageAInv == slippageAInv)) | |
452 | 452 | then { | |
453 | 453 | let slippagePInv = if ((prDiff > 0)) | |
454 | 454 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
455 | 455 | else nil | |
456 | 456 | if ((slippagePInv == slippagePInv)) | |
457 | 457 | then { | |
458 | 458 | let lpTrnsfr = if (autoStake) | |
459 | 459 | then { | |
460 | 460 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
461 | 461 | if ((slpStakeInv == slpStakeInv)) | |
462 | 462 | then nil | |
463 | 463 | else throw("Strict value is not equal to itself.") | |
464 | 464 | } | |
465 | 465 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
466 | 466 | (state ++ lpTrnsfr) | |
467 | 467 | } | |
468 | 468 | else throw("Strict value is not equal to itself.") | |
469 | 469 | } | |
470 | 470 | else throw("Strict value is not equal to itself.") | |
471 | 471 | } | |
472 | 472 | else throw("Strict value is not equal to itself.") | |
473 | 473 | } | |
474 | 474 | } | |
475 | 475 | ||
476 | 476 | ||
477 | 477 | ||
478 | 478 | @Callable(i) | |
479 | 479 | func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = { | |
480 | 480 | let cfg = getFactoryConfig() | |
481 | 481 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr") | |
482 | 482 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr") | |
483 | 483 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr") | |
484 | 484 | let poolCfg = getPoolConfig() | |
485 | 485 | let amId = poolCfg[idxAmAsId] | |
486 | 486 | let prId = poolCfg[idxPrAsId] | |
487 | 487 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
488 | 488 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
489 | 489 | if (if (if (if ((0 >= slippage)) | |
490 | 490 | then true | |
491 | 491 | else (0 >= amAssetPart)) | |
492 | 492 | then true | |
493 | 493 | else (0 >= prAssetPart)) | |
494 | 494 | then true | |
495 | 495 | else (0 >= outLp)) | |
496 | 496 | then throw("Wrong params") | |
497 | 497 | else if ((size(i.payments) != 1)) | |
498 | 498 | then throw("1 pmnt expd") | |
499 | 499 | else { | |
500 | 500 | let pmt = value(i.payments[0]) | |
501 | 501 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
502 | 502 | let pmtAmt = pmt.amount | |
503 | 503 | if (if (if ((amAssetPart > pmtAmt)) | |
504 | 504 | then true | |
505 | 505 | else (prAssetPart > pmtAmt)) | |
506 | 506 | then true | |
507 | 507 | else (10000000 > pmtAmt)) | |
508 | 508 | then throw("Wrong pmt amt") | |
509 | 509 | else { | |
510 | 510 | let amBalance = getAccBalance(amId) | |
511 | 511 | let prBalance = getAccBalance(prId) | |
512 | - | let $ | |
512 | + | let $t02390824288 = if ((pmtAssetId == amId)) | |
513 | 513 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
514 | 514 | else if ((pmtAssetId == prId)) | |
515 | 515 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
516 | 516 | else throw("wrong pmtAssetId") | |
517 | - | let amBalanceNow = $ | |
518 | - | let prBalanceNow = $ | |
519 | - | let virtSwapInAm = $ | |
520 | - | let virtSwapOutPr = $ | |
521 | - | let virtSwapInPr = $ | |
522 | - | let virtSwapOutAm = $ | |
517 | + | let amBalanceNow = $t02390824288._1 | |
518 | + | let prBalanceNow = $t02390824288._2 | |
519 | + | let virtSwapInAm = $t02390824288._3 | |
520 | + | let virtSwapOutPr = $t02390824288._4 | |
521 | + | let virtSwapInPr = $t02390824288._5 | |
522 | + | let virtSwapOutAm = $t02390824288._6 | |
523 | 523 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
524 | 524 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
525 | 525 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
526 | 526 | if ((D0vsD1 == D0vsD1)) | |
527 | 527 | then { | |
528 | 528 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), 50000000000, true, true, pmtAmt, pmtAssetId) | |
529 | 529 | let estimLP = estPut._2 | |
530 | 530 | let lpAssetId = estPut._7 | |
531 | 531 | let state = estPut._9 | |
532 | 532 | let amDiff = estPut._10 | |
533 | 533 | let prDiff = estPut._11 | |
534 | 534 | let lpCalcRes = validateAbsDiff(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
535 | 535 | let emitLpAmt = toInt(lpCalcRes._2) | |
536 | 536 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
537 | 537 | if ((emitInv == emitInv)) | |
538 | 538 | then { | |
539 | 539 | let slippageAInv = if ((amDiff > 0)) | |
540 | 540 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
541 | 541 | else nil | |
542 | 542 | if ((slippageAInv == slippageAInv)) | |
543 | 543 | then { | |
544 | 544 | let slippagePInv = if ((prDiff > 0)) | |
545 | 545 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
546 | 546 | else nil | |
547 | 547 | if ((slippagePInv == slippagePInv)) | |
548 | 548 | then { | |
549 | 549 | let lpTrnsfr = if (autoStake) | |
550 | 550 | then { | |
551 | 551 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
552 | 552 | if ((slpStakeInv == slpStakeInv)) | |
553 | 553 | then nil | |
554 | 554 | else throw("Strict value is not equal to itself.") | |
555 | 555 | } | |
556 | 556 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
557 | 557 | (state ++ lpTrnsfr) | |
558 | 558 | } | |
559 | 559 | else throw("Strict value is not equal to itself.") | |
560 | 560 | } | |
561 | 561 | else throw("Strict value is not equal to itself.") | |
562 | 562 | } | |
563 | 563 | else throw("Strict value is not equal to itself.") | |
564 | 564 | } | |
565 | 565 | else throw("Strict value is not equal to itself.") | |
566 | 566 | } | |
567 | 567 | } | |
568 | 568 | } | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | ||
572 | 572 | @Callable(i) | |
573 | 573 | func putForFree (maxSlpg) = if ((0 > maxSlpg)) | |
574 | 574 | then throw("Wrong slpg") | |
575 | 575 | else if ((size(i.payments) != 2)) | |
576 | 576 | then throw("2 pmnts expd") | |
577 | 577 | else { | |
578 | 578 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlpg, false, false, 0, "") | |
579 | 579 | estPut._9 | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | ||
584 | 584 | @Callable(i) | |
585 | 585 | func get () = { | |
586 | 586 | let res = commonGet(i) | |
587 | 587 | let outAmtAmt = res._1 | |
588 | 588 | let outPrAmt = res._2 | |
589 | 589 | let pmtAmt = res._3 | |
590 | 590 | let pmtAssetId = res._4 | |
591 | 591 | let state = res._5 | |
592 | 592 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
593 | 593 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
594 | 594 | then state | |
595 | 595 | else throw("Strict value is not equal to itself.") | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
602 | 602 | then throw("1 pmnt expd") | |
603 | 603 | else { | |
604 | 604 | let cfg = getPoolConfig() | |
605 | 605 | let lpId = cfg[idxLPAsId] | |
606 | 606 | let amId = cfg[idxAmAsId] | |
607 | 607 | let prId = cfg[idxPrAsId] | |
608 | 608 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
609 | 609 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
610 | 610 | let sts = cfg[idxPoolSt] | |
611 | 611 | let fcfg = getFactoryConfig() | |
612 | 612 | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wr sl addr") | |
613 | 613 | let pmt = value(i.payments[0]) | |
614 | 614 | let userAddress = i.caller | |
615 | 615 | let txId58 = toBase58String(i.transactionId) | |
616 | 616 | let pmtAssetId = value(pmt.assetId) | |
617 | 617 | let pmtAmt = pmt.amount | |
618 | 618 | if (if (if (if ((0 > slippage)) | |
619 | 619 | then true | |
620 | 620 | else (0 > amAssetSwap)) | |
621 | 621 | then true | |
622 | 622 | else (0 > prAssetSwap)) | |
623 | 623 | then true | |
624 | 624 | else (0 > outAmount)) | |
625 | 625 | then throw("Wrong params") | |
626 | 626 | else if ((lpId != toBase58String(pmtAssetId))) | |
627 | 627 | then throw("Wrong LP") | |
628 | 628 | else { | |
629 | 629 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
630 | 630 | let estimAmAmt = r._1 | |
631 | 631 | let estimPrAmt = r._2 | |
632 | 632 | let amBalance = getAccBalance(amId) | |
633 | 633 | let prBalance = getAccBalance(prId) | |
634 | - | let $ | |
634 | + | let $t02873329217 = if ((outAssetId == amId)) | |
635 | 635 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), (outAmount - estimAmAmt), prAssetSwap, 0, 0, (estimAmAmt + amAssetSwap)) | |
636 | 636 | else if ((outAssetId == prId)) | |
637 | 637 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, (outAmount - estimPrAmt), amAssetSwap, (estimPrAmt + prAssetSwap)) | |
638 | 638 | else throw("wrong outAssetId") | |
639 | - | let amBalanceNow = $ | |
640 | - | let prBalanceNow = $ | |
641 | - | let virtSwapInAm = $ | |
642 | - | let virtSwapOutPr = $ | |
643 | - | let virtSwapInPr = $ | |
644 | - | let virtSwapOutAm = $ | |
645 | - | let totalGet = $ | |
639 | + | let amBalanceNow = $t02873329217._1 | |
640 | + | let prBalanceNow = $t02873329217._2 | |
641 | + | let virtSwapInAm = $t02873329217._3 | |
642 | + | let virtSwapOutPr = $t02873329217._4 | |
643 | + | let virtSwapInPr = $t02873329217._5 | |
644 | + | let virtSwapOutAm = $t02873329217._6 | |
645 | + | let totalGet = $t02873329217._7 | |
646 | 646 | if (if ((0 > virtSwapInAm)) | |
647 | 647 | then true | |
648 | 648 | else (0 > virtSwapInPr)) | |
649 | 649 | then throw("Wrong calc") | |
650 | 650 | else { | |
651 | 651 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
652 | 652 | let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
653 | 653 | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
654 | 654 | if ((D0vsD1 == D0vsD1)) | |
655 | 655 | then { | |
656 | 656 | let amount2Return = validateAbsDiff(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
657 | 657 | if ((amount2Return == amount2Return)) | |
658 | 658 | then { | |
659 | - | let $ | |
659 | + | let $t02995630070 = if ((outAssetId == amId)) | |
660 | 660 | then $Tuple2(toInt(amount2Return._2), 0) | |
661 | 661 | else $Tuple2(0, toInt(amount2Return._2)) | |
662 | - | let outAm = $ | |
663 | - | let outPr = $ | |
662 | + | let outAm = $t02995630070._1 | |
663 | + | let outPr = $t02995630070._2 | |
664 | 664 | let curPriceX18 = calcPriceBigInt(toX18(prBalance, prDcm), toX18(amBalance, amDcm)) | |
665 | 665 | let curPrice = fromX18(curPriceX18, scale8) | |
666 | 666 | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) | |
667 | 667 | then unit | |
668 | 668 | else fromBase58String(outAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)] | |
669 | 669 | if ((state == state)) | |
670 | 670 | then { | |
671 | 671 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
672 | 672 | if ((burn == burn)) | |
673 | 673 | then state | |
674 | 674 | else throw("Strict value is not equal to itself.") | |
675 | 675 | } | |
676 | 676 | else throw("Strict value is not equal to itself.") | |
677 | 677 | } | |
678 | 678 | else throw("Strict value is not equal to itself.") | |
679 | 679 | } | |
680 | 680 | else throw("Strict value is not equal to itself.") | |
681 | 681 | } | |
682 | 682 | } | |
683 | 683 | } | |
684 | 684 | ||
685 | 685 | ||
686 | 686 | ||
687 | 687 | @Callable(i) | |
688 | 688 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
689 | 689 | let res = commonGet(i) | |
690 | 690 | let outAmAmt = res._1 | |
691 | 691 | let outPrAmt = res._2 | |
692 | 692 | let pmtAmt = res._3 | |
693 | 693 | let pmtAssetId = res._4 | |
694 | 694 | let state = res._5 | |
695 | 695 | if ((noLessThenAmtAsset > outAmAmt)) | |
696 | 696 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
697 | 697 | else if ((noLessThenPriceAsset > outPrAmt)) | |
698 | 698 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
699 | 699 | else { | |
700 | 700 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
701 | 701 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
702 | 702 | then state | |
703 | 703 | else throw("Strict value is not equal to itself.") | |
704 | 704 | } | |
705 | 705 | } | |
706 | 706 | ||
707 | 707 | ||
708 | 708 | ||
709 | 709 | @Callable(i) | |
710 | 710 | func unstakeAndGet (amount) = { | |
711 | 711 | let checkPayments = if ((size(i.payments) != 0)) | |
712 | 712 | then throw("No pmnts expd") | |
713 | 713 | else true | |
714 | 714 | if ((checkPayments == checkPayments)) | |
715 | 715 | then { | |
716 | 716 | let cfg = getPoolConfig() | |
717 | 717 | let factoryCfg = getFactoryConfig() | |
718 | 718 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
719 | 719 | let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr") | |
720 | 720 | let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil) | |
721 | 721 | if ((unstakeInv == unstakeInv)) | |
722 | 722 | then { | |
723 | 723 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
724 | 724 | let sts = parseIntValue(r._9) | |
725 | 725 | let state = r._10 | |
726 | 726 | let v = if (if (isGlobalShutdown()) | |
727 | 727 | then true | |
728 | 728 | else (sts == PoolShutdown)) | |
729 | 729 | then throw(("Blocked: " + toString(sts))) | |
730 | 730 | else true | |
731 | 731 | if ((v == v)) | |
732 | 732 | then { | |
733 | 733 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
734 | 734 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
735 | 735 | then state | |
736 | 736 | else throw("Strict value is not equal to itself.") | |
737 | 737 | } | |
738 | 738 | else throw("Strict value is not equal to itself.") | |
739 | 739 | } | |
740 | 740 | else throw("Strict value is not equal to itself.") | |
741 | 741 | } | |
742 | 742 | else throw("Strict value is not equal to itself.") | |
743 | 743 | } | |
744 | 744 | ||
745 | 745 | ||
746 | 746 | ||
747 | 747 | @Callable(i) | |
748 | 748 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
749 | 749 | then throw("denied") | |
750 | 750 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
751 | 751 | ||
752 | 752 | ||
753 | 753 | ||
754 | 754 | @Callable(i) | |
755 | 755 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
756 | 756 | ||
757 | 757 | ||
758 | 758 | ||
759 | 759 | @Callable(i) | |
760 | 760 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
761 | 761 | ||
762 | 762 | ||
763 | 763 | ||
764 | 764 | @Callable(i) | |
765 | 765 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
766 | 766 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
767 | 767 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
768 | 768 | } | |
769 | 769 | ||
770 | 770 | ||
771 | 771 | ||
772 | 772 | @Callable(i) | |
773 | 773 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
774 | 774 | ||
775 | 775 | ||
776 | 776 | ||
777 | 777 | @Callable(i) | |
778 | 778 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
779 | 779 | ||
780 | 780 | ||
781 | 781 | ||
782 | 782 | @Callable(i) | |
783 | 783 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
784 | 784 | ||
785 | 785 | ||
786 | 786 | ||
787 | 787 | @Callable(i) | |
788 | 788 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, false, 0, "")) | |
789 | 789 | ||
790 | 790 | ||
791 | 791 | ||
792 | 792 | @Callable(i) | |
793 | 793 | func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = { | |
794 | 794 | let res = estimateGetOperation(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr)) | |
795 | 795 | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
796 | 796 | } | |
797 | 797 | ||
798 | 798 | ||
799 | 799 | @Verifier(tx) | |
800 | 800 | func verify () = match tx { | |
801 | 801 | case order: Order => | |
802 | 802 | let mtchPub = getMatcherPubOrFail() | |
803 | 803 | let orV = validateMatcherOrderAllowed(order) | |
804 | 804 | let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
805 | 805 | let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub) | |
806 | 806 | if (if (if (orV) | |
807 | 807 | then sndrV | |
808 | 808 | else false) | |
809 | 809 | then mtchV | |
810 | 810 | else false) | |
811 | 811 | then true | |
812 | 812 | else throwOrderError(orV, sndrV, mtchV) | |
813 | 813 | case _ => | |
814 | 814 | let admin = valueOrElse(getString(this, keyManPubKey()), EMPTY) | |
815 | 815 | if ((admin == EMPTY)) | |
816 | 816 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
817 | 817 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(admin)) | |
818 | 818 | } | |
819 | 819 |
github/deemru/w8io/026f985 93.30 ms ◑