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