tx · 58hvf4X26k2SBXisEXDpeF7HF9xYoA7i2BjpAEtzidjT 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.24 13:50 [1848248] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "58hvf4X26k2SBXisEXDpeF7HF9xYoA7i2BjpAEtzidjT", "fee": 1400000, "feeAssetId": null, "timestamp": 1640343011052, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5N1pG43LJ5GvhgKnJQ5nxHabqCTCh2F4e67sgUvAxTi65stB8Mc3n4D2PpCFruDMggnQp3w9mW6PByerfoWnR6ac" ], "script": "base64:AAIFAAAAAAAAAGoIAhIECgIICBIECgIBBBIFCgMBAQQSAwoBARIAEgYKBAEBAQgSBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAAQAAAAAAKbFBkZWNpbWFscwAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAJY2FsY0Vycm9yCQABNgAAAAEAAAAAAAAPQkAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKemVyb0JpZ0ludAkAATYAAAABAAAAAAAAAAAAAAAAAAlvbmVCaWdJbnQJAAE2AAAAAQAAAAAAAAAAAQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAAAAAAAAQ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AAAAAAAAAAAJAAJZAAAAAQUAAAANbWFuYWdlclB1YmxpY5Fm15U=", "chainId": 84, "height": 1848248, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4QgmdjhMxPZXE34p78bx6vtp68WYmsn4cjvEBAazfRGk Next: 8Xet9ipepyXwLdPjLL6cGVELjkBdhdWFMaLACWKYjWTv Diff:
Old | New | Differences | |
---|---|---|---|
474 | 474 | let amAdiff = amAssetSwapX18 | |
475 | 475 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalance) - toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalance) + toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
476 | 476 | let invRight = parseBigIntValue(asString(dSwap)) | |
477 | - | let invDiff = abs(fraction((invRight - invLeft), scale8BigInt, invLeft)) | |
478 | - | true | |
477 | + | if (true) | |
478 | + | then throw(((((((((((("dCur = " + asString(dCur)) + " dNew = ") + asString(dSwap)) + " amBalanceX18 - amAdiff = ") + toString((amBalanceX18 - amAdiff))) + " prBalanceX18 + prAdiff= ") + toString((prBalanceX18 + prAdiff))) + "amBalanceX18 = ") + toString(amBalanceX18)) + "prBalanceX18 = ") + toString(prBalanceX18))) | |
479 | + | else { | |
480 | + | let invDiff = abs(fraction((invRight - invLeft), scale8BigInt, invLeft)) | |
481 | + | true | |
482 | + | } | |
479 | 483 | } | |
480 | 484 | if (!(isValid)) | |
481 | 485 | then throw("Errors.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let lPdecimals = 8 | |
5 | 5 | ||
6 | 6 | let scale8 = 100000000 | |
7 | 7 | ||
8 | 8 | let scale8BigInt = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let calcError = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let scale18 = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let zeroBigInt = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let oneBigInt = toBigInt(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 PoolPutDisabled = 2 | |
25 | 25 | ||
26 | 26 | let PoolMatcherDisabled = 3 | |
27 | 27 | ||
28 | 28 | let PoolShutdown = 4 | |
29 | 29 | ||
30 | 30 | let idxPoolAddress = 1 | |
31 | 31 | ||
32 | 32 | let idxPoolStatus = 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 keyManagerPublicKey () = "%s__managerPublicKey" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyPriceLast () = "%s%s__price__last" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + 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 keyFactoryConfig () = "%s__factoryConfig" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyAllPoolsShutdown () = "%s__shutdown" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func throwOrderError (orderValid,senderValid,matcherValid) = throw(((((("order validation failed: orderValid=" + toString(orderValid)) + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid))) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func asString (val) = match val { | |
114 | 114 | case valStr: String => | |
115 | 115 | valStr | |
116 | 116 | case _ => | |
117 | 117 | throw("fail to cast into Int") | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactCntr())) | |
128 | 128 | ||
129 | 129 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func getPoolConfig () = { | |
136 | 136 | let amtAs = getStringOrFail(this, keyAmtAsset()) | |
137 | 137 | let priceAs = getStringOrFail(this, keyPriceAsset()) | |
138 | 138 | let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs)) | |
139 | 139 | let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs)) | |
140 | 140 | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP) | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageByUser,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(slippageByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | 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) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
154 | 154 | then wavesBalance(this).available | |
155 | 155 | else assetBalance(this, fromBase58String(assetId)) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
162 | 162 | let amtAsAmtX18 = toX18(amAmt, amAssetDcm) | |
163 | 163 | let prAsAmtX18 = toX18(prAmt, prAssetDcm) | |
164 | 164 | calcPriceBigInt(prAsAmtX18, amtAsAmtX18) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
169 | 169 | let cfg = getPoolConfig() | |
170 | 170 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
171 | 171 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
172 | 172 | let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt) | |
173 | 173 | let amAmtX18 = toX18(amAmt, amtAsDcm) | |
174 | 174 | let prAmtX18 = toX18(prAmt, prAsDcm) | |
175 | 175 | let lpAmtX18 = toX18(lpAmt, scale8) | |
176 | 176 | let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
177 | 177 | let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
178 | 178 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
183 | 183 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
184 | 184 | [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
189 | 189 | let cfg = getPoolConfig() | |
190 | 190 | let lpId = cfg[idxLPAsId] | |
191 | 191 | let amId = cfg[idxAmAsId] | |
192 | 192 | let prId = cfg[idxPrAsId] | |
193 | 193 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
194 | 194 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
195 | 195 | let poolStatus = cfg[idxPoolStatus] | |
196 | 196 | let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), (("Asset " + lpId) + " doesn't exist")).quantity | |
197 | 197 | if ((lpId != pmtAssetId)) | |
198 | 198 | then throw("Invalid asset passed.") | |
199 | 199 | else { | |
200 | 200 | let amBalance = getAccBalance(amId) | |
201 | 201 | let amBalanceX18 = toX18(amBalance, amDcm) | |
202 | 202 | let prBalance = getAccBalance(prId) | |
203 | 203 | let prBalanceX18 = toX18(prBalance, prDcm) | |
204 | 204 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
205 | 205 | let curPrice = fromX18(curPriceX18, scale8) | |
206 | 206 | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
207 | 207 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
208 | 208 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
209 | 209 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
210 | 210 | let outAmAmt = fromX18(outAmAmtX18, amDcm) | |
211 | 211 | let outPrAmt = fromX18(outPrAmtX18, prDcm) | |
212 | 212 | let state = if ((txId58 == "")) | |
213 | 213 | then nil | |
214 | 214 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
215 | 215 | then unit | |
216 | 216 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
217 | 217 | then unit | |
218 | 218 | 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)] | |
219 | 219 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state) | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = { | |
225 | 225 | let cfg = getPoolConfig() | |
226 | 226 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
227 | 227 | let amIdStr = cfg[idxAmAsId] | |
228 | 228 | let prIdStr = cfg[idxPrAsId] | |
229 | 229 | let inAmIdStr = cfg[idxIAmtAsId] | |
230 | 230 | let inPrIdStr = cfg[idxIPriceAsId] | |
231 | 231 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
232 | 232 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
233 | 233 | let poolStatus = cfg[idxPoolStatus] | |
234 | 234 | let lpEmission = valueOrErrorMessage(assetInfo(lpId), "Wrong lp asset.").quantity | |
235 | 235 | let amBalance = if (isEvaluate) | |
236 | 236 | then getAccBalance(amIdStr) | |
237 | 237 | else (getAccBalance(amIdStr) - inAmAmt) | |
238 | 238 | let prBalance = if (isEvaluate) | |
239 | 239 | then getAccBalance(prIdStr) | |
240 | 240 | else (getAccBalance(prIdStr) - inPrAmt) | |
241 | 241 | let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm) | |
242 | 242 | let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm) | |
243 | 243 | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
244 | 244 | let amBalanceX18 = toX18(amBalance, amtDcm) | |
245 | 245 | let prBalanceX18 = toX18(prBalance, priceDcm) | |
246 | 246 | let res = if ((lpEmission == 0)) | |
247 | 247 | then { | |
248 | 248 | let curPriceX18 = zeroBigInt | |
249 | 249 | let slippageX18 = zeroBigInt | |
250 | 250 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
251 | 251 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
252 | 252 | } | |
253 | 253 | else { | |
254 | 254 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
255 | 255 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
256 | 256 | let slippageX18 = toX18(slippage, scale8) | |
257 | 257 | if (if ((curPriceX18 != zeroBigInt)) | |
258 | 258 | then (slippageRealX18 > slippageX18) | |
259 | 259 | else false) | |
260 | 260 | then throw(((("Price slippage " + toString(slippageRealX18)) + " exceeded ") + toString(slippageX18))) | |
261 | 261 | else { | |
262 | 262 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
263 | 263 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
264 | 264 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
265 | 265 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
266 | 266 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
267 | 267 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
268 | 268 | let expAmtAssetAmtX18 = expectedAmts._1 | |
269 | 269 | let expPriceAssetAmtX18 = expectedAmts._2 | |
270 | 270 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
271 | 271 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
272 | 272 | } | |
273 | 273 | } | |
274 | 274 | let calcLpAmt = res._1 | |
275 | 275 | let calcAmAssetPmt = res._2 | |
276 | 276 | let calcPrAssetPmt = res._3 | |
277 | 277 | let curPrice = fromX18(res._4, scale8) | |
278 | 278 | let slippageCalc = fromX18(res._5, scale8) | |
279 | 279 | if ((0 >= calcLpAmt)) | |
280 | 280 | then throw("LP is less than zero.") | |
281 | 281 | else { | |
282 | 282 | let emitLpAmt = if (!(emitLp)) | |
283 | 283 | then 0 | |
284 | 284 | else calcLpAmt | |
285 | 285 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
286 | 286 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
287 | 287 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
288 | 288 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpId, poolStatus, commonState, amDiff, prDiff, inAmId, inPrId) | |
289 | 289 | } | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func validateMatcherOrderAllowed (order) = { | |
294 | 294 | let cfg = getPoolConfig() | |
295 | 295 | let amtAssetId = cfg[idxAmAsId] | |
296 | 296 | let priceAssetId = cfg[idxPrAsId] | |
297 | 297 | let poolStatus = parseIntValue(cfg[idxPoolStatus]) | |
298 | 298 | let amtAssetDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
299 | 299 | let priceAssetDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
300 | 300 | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
301 | 301 | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
302 | 302 | let curPriceX18 = if ((order.orderType == Buy)) | |
303 | 303 | then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance) | |
304 | 304 | else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance) | |
305 | 305 | let curPrice = fromX18(curPriceX18, scale8) | |
306 | 306 | if (if (if (isGlobalShutdown()) | |
307 | 307 | then true | |
308 | 308 | else (poolStatus == PoolMatcherDisabled)) | |
309 | 309 | then true | |
310 | 310 | else (poolStatus == PoolShutdown)) | |
311 | 311 | then throw("Exchange operations disabled") | |
312 | 312 | else { | |
313 | 313 | let orderAmtAsset = order.assetPair.amountAsset | |
314 | 314 | let orderAmtAssetStr = if ((orderAmtAsset == unit)) | |
315 | 315 | then "WAVES" | |
316 | 316 | else toBase58String(value(orderAmtAsset)) | |
317 | 317 | let orderPriceAsset = order.assetPair.priceAsset | |
318 | 318 | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
319 | 319 | then "WAVES" | |
320 | 320 | else toBase58String(value(orderPriceAsset)) | |
321 | 321 | if (if ((orderAmtAssetStr != amtAssetId)) | |
322 | 322 | then true | |
323 | 323 | else (orderPriceAssetStr != priceAssetId)) | |
324 | 324 | then throw("Wrong order assets.") | |
325 | 325 | else { | |
326 | 326 | let orderPrice = order.price | |
327 | 327 | let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm) | |
328 | 328 | let castedOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
329 | 329 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
330 | 330 | then (curPrice >= castedOrderPrice) | |
331 | 331 | else (castedOrderPrice >= curPrice) | |
332 | 332 | true | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func commonGet (i) = if ((size(i.payments) != 1)) | |
339 | 339 | then throw("exactly 1 payment is expected") | |
340 | 340 | else { | |
341 | 341 | let pmt = value(i.payments[0]) | |
342 | 342 | let pmtAssetId = value(pmt.assetId) | |
343 | 343 | let pmtAmt = pmt.amount | |
344 | 344 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
345 | 345 | let outAmAmt = res._1 | |
346 | 346 | let outPrAmt = res._2 | |
347 | 347 | let poolStatus = parseIntValue(res._9) | |
348 | 348 | let state = res._10 | |
349 | 349 | if (if (isGlobalShutdown()) | |
350 | 350 | then true | |
351 | 351 | else (poolStatus == PoolShutdown)) | |
352 | 352 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
353 | 353 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
354 | 354 | } | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp) = { | |
358 | 358 | let estPut = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp) | |
359 | 359 | let status = parseIntValue(estPut._8) | |
360 | 360 | if (if (if (isGlobalShutdown()) | |
361 | 361 | then true | |
362 | 362 | else (status == PoolPutDisabled)) | |
363 | 363 | then true | |
364 | 364 | else (status == PoolShutdown)) | |
365 | 365 | then throw(("Put operation is blocked by admin. Status = " + toString(status))) | |
366 | 366 | else estPut | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | @Callable(i) | |
371 | 371 | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
372 | 372 | then throw("permissions denied") | |
373 | 373 | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)] | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(i) | |
378 | 378 | func put (slip,autoStake) = { | |
379 | 379 | let factCfg = getFactoryConfig() | |
380 | 380 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Incorrect staking address.") | |
381 | 381 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Incorrect slippage address.") | |
382 | 382 | if ((0 > slip)) | |
383 | 383 | then throw("Invalid slippage.") | |
384 | 384 | else if ((size(i.payments) != 2)) | |
385 | 385 | then throw("2 payments are expected") | |
386 | 386 | else { | |
387 | 387 | 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) | |
388 | 388 | let emitLpAmt = estPut._2 | |
389 | 389 | let lpAssetId = estPut._7 | |
390 | 390 | let state = estPut._9 | |
391 | 391 | let amDiff = estPut._10 | |
392 | 392 | let prDiff = estPut._11 | |
393 | 393 | let amId = estPut._12 | |
394 | 394 | let prId = estPut._13 | |
395 | 395 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
396 | 396 | if ((emitInv == emitInv)) | |
397 | 397 | then { | |
398 | 398 | let slippageAInv = if ((amDiff > 0)) | |
399 | 399 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
400 | 400 | else nil | |
401 | 401 | if ((slippageAInv == slippageAInv)) | |
402 | 402 | then { | |
403 | 403 | let slippagePInv = if ((prDiff > 0)) | |
404 | 404 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
405 | 405 | else nil | |
406 | 406 | if ((slippagePInv == slippagePInv)) | |
407 | 407 | then { | |
408 | 408 | let lpTrnsfr = if (autoStake) | |
409 | 409 | then { | |
410 | 410 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
411 | 411 | if ((slpStakeInv == slpStakeInv)) | |
412 | 412 | then nil | |
413 | 413 | else throw("Strict value is not equal to itself.") | |
414 | 414 | } | |
415 | 415 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
416 | 416 | (state ++ lpTrnsfr) | |
417 | 417 | } | |
418 | 418 | else throw("Strict value is not equal to itself.") | |
419 | 419 | } | |
420 | 420 | else throw("Strict value is not equal to itself.") | |
421 | 421 | } | |
422 | 422 | else throw("Strict value is not equal to itself.") | |
423 | 423 | } | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | ||
428 | 428 | @Callable(i) | |
429 | 429 | func putOneTkn (inAmtAmount,inPrAmount,autoStake) = { | |
430 | 430 | let cfg = getFactoryConfig() | |
431 | 431 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wrong staking address") | |
432 | 432 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wrong slippage address") | |
433 | 433 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wrong slippage address") | |
434 | 434 | let poolCfg = getPoolConfig() | |
435 | 435 | let amId = poolCfg[idxAmAsId] | |
436 | 436 | let prId = poolCfg[idxPrAsId] | |
437 | 437 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
438 | 438 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
439 | 439 | if ((size(i.payments) != 1)) | |
440 | 440 | then throw("exactly 1 payment is expected") | |
441 | 441 | else { | |
442 | 442 | let pmt = value(i.payments[0]) | |
443 | 443 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
444 | 444 | let pmtAmt = pmt.amount | |
445 | 445 | let amAssetSwapX18 = toX18(inAmtAmount, amDcm) | |
446 | 446 | let prAssetSwapX18 = toX18(inPrAmount, prDcm) | |
447 | 447 | let amBalance = getAccBalance(amId) | |
448 | 448 | let amBalanceX18 = toX18(amBalance, amDcm) | |
449 | 449 | let prBalance = getAccBalance(prId) | |
450 | 450 | let prBalanceX18 = toX18(prBalance, prDcm) | |
451 | 451 | let amBalanceNow = if ((pmtAssetId == amId)) | |
452 | 452 | then (amBalance - pmtAmt) | |
453 | 453 | else amBalance | |
454 | 454 | let prBalanceNow = if ((pmtAssetId == prId)) | |
455 | 455 | then (prBalance - pmtAmt) | |
456 | 456 | else prBalance | |
457 | 457 | let dCur = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), "50", "100000000", "1"], nil) | |
458 | 458 | let invLeft = parseBigIntValue(asString(dCur)) | |
459 | 459 | let isValid = if ((pmtAssetId == amId)) | |
460 | 460 | then { | |
461 | 461 | let pmtAmtX18 = toX18(pmtAmt, amDcm) | |
462 | 462 | let prAdiff = prAssetSwapX18 | |
463 | 463 | let amAdiff = (pmtAmtX18 - amAssetSwapX18) | |
464 | 464 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalanceNow) + toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalanceNow) - toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
465 | 465 | let invRight = parseBigIntValue(asString(dSwap)) | |
466 | 466 | let invDiff = abs(fraction((invRight - invLeft), scale8BigInt, invLeft)) | |
467 | 467 | if ((invDiff > toBigInt(1000))) | |
468 | 468 | then throw("Wrong arguments passed. D decreased.") | |
469 | 469 | else true | |
470 | 470 | } | |
471 | 471 | else { | |
472 | 472 | let pmtPrX18 = toX18(pmtAmt, prDcm) | |
473 | 473 | let prAdiff = (prAssetSwapX18 - pmtPrX18) | |
474 | 474 | let amAdiff = amAssetSwapX18 | |
475 | 475 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalance) - toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalance) + toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
476 | 476 | let invRight = parseBigIntValue(asString(dSwap)) | |
477 | - | let invDiff = abs(fraction((invRight - invLeft), scale8BigInt, invLeft)) | |
478 | - | true | |
477 | + | if (true) | |
478 | + | then throw(((((((((((("dCur = " + asString(dCur)) + " dNew = ") + asString(dSwap)) + " amBalanceX18 - amAdiff = ") + toString((amBalanceX18 - amAdiff))) + " prBalanceX18 + prAdiff= ") + toString((prBalanceX18 + prAdiff))) + "amBalanceX18 = ") + toString(amBalanceX18)) + "prBalanceX18 = ") + toString(prBalanceX18))) | |
479 | + | else { | |
480 | + | let invDiff = abs(fraction((invRight - invLeft), scale8BigInt, invLeft)) | |
481 | + | true | |
482 | + | } | |
479 | 483 | } | |
480 | 484 | if (!(isValid)) | |
481 | 485 | then throw("Errors.") | |
482 | 486 | else { | |
483 | 487 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), inAmtAmount), AttachedPayment(fromBase58String(prId), inPrAmount), 50000000000, true) | |
484 | 488 | let emitLpAmt = estPut._2 | |
485 | 489 | let lpAssetId = estPut._7 | |
486 | 490 | let state = estPut._9 | |
487 | 491 | let amDiff = estPut._10 | |
488 | 492 | let prDiff = estPut._11 | |
489 | 493 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
490 | 494 | if ((emitInv == emitInv)) | |
491 | 495 | then { | |
492 | 496 | let slippageAInv = if ((amDiff > 0)) | |
493 | 497 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
494 | 498 | else nil | |
495 | 499 | if ((slippageAInv == slippageAInv)) | |
496 | 500 | then { | |
497 | 501 | let slippagePInv = if ((prDiff > 0)) | |
498 | 502 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
499 | 503 | else nil | |
500 | 504 | if ((slippagePInv == slippagePInv)) | |
501 | 505 | then { | |
502 | 506 | let lpTrnsfr = if (autoStake) | |
503 | 507 | then { | |
504 | 508 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
505 | 509 | if ((slpStakeInv == slpStakeInv)) | |
506 | 510 | then nil | |
507 | 511 | else throw("Strict value is not equal to itself.") | |
508 | 512 | } | |
509 | 513 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
510 | 514 | (state ++ lpTrnsfr) | |
511 | 515 | } | |
512 | 516 | else throw("Strict value is not equal to itself.") | |
513 | 517 | } | |
514 | 518 | else throw("Strict value is not equal to itself.") | |
515 | 519 | } | |
516 | 520 | else throw("Strict value is not equal to itself.") | |
517 | 521 | } | |
518 | 522 | } | |
519 | 523 | } | |
520 | 524 | ||
521 | 525 | ||
522 | 526 | ||
523 | 527 | @Callable(i) | |
524 | 528 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
525 | 529 | then throw("Invalid value passed") | |
526 | 530 | else if ((size(i.payments) != 2)) | |
527 | 531 | then throw("exactly 2 payments are expected") | |
528 | 532 | else { | |
529 | 533 | 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) | |
530 | 534 | estPut._9 | |
531 | 535 | } | |
532 | 536 | ||
533 | 537 | ||
534 | 538 | ||
535 | 539 | @Callable(i) | |
536 | 540 | func get () = { | |
537 | 541 | let res = commonGet(i) | |
538 | 542 | let outAmtAmt = res._1 | |
539 | 543 | let outPrAmt = res._2 | |
540 | 544 | let pmtAmt = res._3 | |
541 | 545 | let pmtAssetId = res._4 | |
542 | 546 | let state = res._5 | |
543 | 547 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
544 | 548 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
545 | 549 | then state | |
546 | 550 | else throw("Strict value is not equal to itself.") | |
547 | 551 | } | |
548 | 552 | ||
549 | 553 | ||
550 | 554 | ||
551 | 555 | @Callable(i) | |
552 | 556 | func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId) = if ((size(i.payments) != 1)) | |
553 | 557 | then throw("exactly 1 payment is expected") | |
554 | 558 | else { | |
555 | 559 | let cfg = getPoolConfig() | |
556 | 560 | let lpId = cfg[idxLPAsId] | |
557 | 561 | let amId = cfg[idxAmAsId] | |
558 | 562 | let prId = cfg[idxPrAsId] | |
559 | 563 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
560 | 564 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
561 | 565 | let poolStatus = cfg[idxPoolStatus] | |
562 | 566 | if (if ((outAssetId != amId)) | |
563 | 567 | then (outAssetId != prId) | |
564 | 568 | else false) | |
565 | 569 | then throw(("Incorrect out asset id passed: " + outAssetId)) | |
566 | 570 | else { | |
567 | 571 | let resultAssetId = if ((outAssetId == amId)) | |
568 | 572 | then amId | |
569 | 573 | else prId | |
570 | 574 | let resultAmtAmount = if ((outAssetId == amId)) | |
571 | 575 | then outAmount | |
572 | 576 | else 0 | |
573 | 577 | let resultPrAmount = if ((outAssetId == prId)) | |
574 | 578 | then outAmount | |
575 | 579 | else 0 | |
576 | 580 | let pmt = value(i.payments[0]) | |
577 | 581 | let userAddress = i.caller | |
578 | 582 | let txId58 = toBase58String(i.transactionId) | |
579 | 583 | let pmtAssetId = value(pmt.assetId) | |
580 | 584 | let pmtAmt = pmt.amount | |
581 | 585 | if ((lpId != toBase58String(pmtAssetId))) | |
582 | 586 | then throw("Invalid asset passed.") | |
583 | 587 | else { | |
584 | 588 | let amAssetSwapX18 = toX18(amAssetSwap, amDcm) | |
585 | 589 | let prAssetSwapX18 = toX18(prAssetSwap, prDcm) | |
586 | 590 | let swapPriceX18 = calcPriceBigInt(prAssetSwapX18, amAssetSwapX18) | |
587 | 591 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
588 | 592 | let outAmAmt = r._1 | |
589 | 593 | let outPrAmt = r._2 | |
590 | 594 | let totalR = if ((outAssetId == amId)) | |
591 | 595 | then { | |
592 | 596 | let amtAsRes = fromX18(fraction(toX18(outPrAmt, prDcm), scale18, swapPriceX18), amDcm) | |
593 | 597 | (amtAsRes + outAmAmt) | |
594 | 598 | } | |
595 | 599 | else { | |
596 | 600 | let amSwopPartInPriceAsset = (resultPrAmount - outPrAmt) | |
597 | 601 | let convRes = fraction(toX18(amSwopPartInPriceAsset, amDcm), scale18, swapPriceX18) | |
598 | 602 | let prAsRes = fromX18(fraction(toX18(outAmAmt, amDcm), swapPriceX18, scale18), prDcm) | |
599 | 603 | let amAssetDiff = fraction((convRes - amAssetSwapX18), scale8BigInt, amAssetSwapX18) | |
600 | 604 | (prAsRes + outPrAmt) | |
601 | 605 | } | |
602 | 606 | let amBalance = getAccBalance(amId) | |
603 | 607 | let amBalanceX18 = toX18(amBalance, amDcm) | |
604 | 608 | let prBalance = getAccBalance(prId) | |
605 | 609 | let prBalanceX18 = toX18(prBalance, prDcm) | |
606 | 610 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
607 | 611 | let curPrice = fromX18(curPriceX18, scale8) | |
608 | 612 | let state = [ScriptTransfer(userAddress, totalR, if ((resultAssetId == "WAVES")) | |
609 | 613 | then unit | |
610 | 614 | else fromBase58String(resultAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(resultAmtAmount, resultPrAmount, pmtAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)] | |
611 | 615 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
612 | 616 | if ((burn == burn)) | |
613 | 617 | then state | |
614 | 618 | else throw("Strict value is not equal to itself.") | |
615 | 619 | } | |
616 | 620 | } | |
617 | 621 | } | |
618 | 622 | ||
619 | 623 | ||
620 | 624 | ||
621 | 625 | @Callable(i) | |
622 | 626 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
623 | 627 | let res = commonGet(i) | |
624 | 628 | let outAmAmt = res._1 | |
625 | 629 | let outPrAmt = res._2 | |
626 | 630 | let pmtAmt = res._3 | |
627 | 631 | let pmtAssetId = res._4 | |
628 | 632 | let state = res._5 | |
629 | 633 | if ((noLessThenAmtAsset > outAmAmt)) | |
630 | 634 | then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
631 | 635 | else if ((noLessThenPriceAsset > outPrAmt)) | |
632 | 636 | then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
633 | 637 | else { | |
634 | 638 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
635 | 639 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
636 | 640 | then state | |
637 | 641 | else throw("Strict value is not equal to itself.") | |
638 | 642 | } | |
639 | 643 | } | |
640 | 644 | ||
641 | 645 | ||
642 | 646 | ||
643 | 647 | @Callable(i) | |
644 | 648 | func unstakeAndGet (amount) = { | |
645 | 649 | let checkPayments = if ((size(i.payments) != 0)) | |
646 | 650 | then throw("No payments are expected") | |
647 | 651 | else true | |
648 | 652 | if ((checkPayments == checkPayments)) | |
649 | 653 | then { | |
650 | 654 | let cfg = getPoolConfig() | |
651 | 655 | let factoryCfg = getFactoryConfig() | |
652 | 656 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
653 | 657 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Error. Incorrect staking address.") | |
654 | 658 | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
655 | 659 | if ((unstakeInv == unstakeInv)) | |
656 | 660 | then { | |
657 | 661 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
658 | 662 | let poolStatus = parseIntValue(res._9) | |
659 | 663 | let state = res._10 | |
660 | 664 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
661 | 665 | then true | |
662 | 666 | else (poolStatus == PoolShutdown)) | |
663 | 667 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
664 | 668 | else true | |
665 | 669 | if ((checkPoolStatus == checkPoolStatus)) | |
666 | 670 | then { | |
667 | 671 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
668 | 672 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
669 | 673 | then state | |
670 | 674 | else throw("Strict value is not equal to itself.") | |
671 | 675 | } | |
672 | 676 | else throw("Strict value is not equal to itself.") | |
673 | 677 | } | |
674 | 678 | else throw("Strict value is not equal to itself.") | |
675 | 679 | } | |
676 | 680 | else throw("Strict value is not equal to itself.") | |
677 | 681 | } | |
678 | 682 | ||
679 | 683 | ||
680 | 684 | ||
681 | 685 | @Callable(i) | |
682 | 686 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
683 | 687 | then throw("permissions denied") | |
684 | 688 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
685 | 689 | ||
686 | 690 | ||
687 | 691 | ||
688 | 692 | @Callable(i) | |
689 | 693 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
690 | 694 | ||
691 | 695 | ||
692 | 696 | ||
693 | 697 | @Callable(i) | |
694 | 698 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
695 | 699 | ||
696 | 700 | ||
697 | 701 | ||
698 | 702 | @Callable(i) | |
699 | 703 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
700 | 704 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
701 | 705 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
702 | 706 | } | |
703 | 707 | ||
704 | 708 | ||
705 | 709 | ||
706 | 710 | @Callable(i) | |
707 | 711 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
708 | 712 | ||
709 | 713 | ||
710 | 714 | ||
711 | 715 | @Callable(i) | |
712 | 716 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
713 | 717 | ||
714 | 718 | ||
715 | 719 | ||
716 | 720 | @Callable(i) | |
717 | 721 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
718 | 722 | ||
719 | 723 | ||
720 | 724 | ||
721 | 725 | @Callable(i) | |
722 | 726 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, userAddress, isEvaluate, emitLp)) | |
723 | 727 | ||
724 | 728 | ||
725 | 729 | ||
726 | 730 | @Callable(i) | |
727 | 731 | func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
728 | 732 | let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress)) | |
729 | 733 | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
730 | 734 | } | |
731 | 735 | ||
732 | 736 | ||
733 | 737 | @Verifier(tx) | |
734 | 738 | func verify () = match tx { | |
735 | 739 | case order: Order => | |
736 | 740 | let matcherPub = getMatcherPubOrFail() | |
737 | 741 | let orderValid = validateMatcherOrderAllowed(order) | |
738 | 742 | let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
739 | 743 | let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub) | |
740 | 744 | if (if (if (orderValid) | |
741 | 745 | then senderValid | |
742 | 746 | else false) | |
743 | 747 | then matcherValid | |
744 | 748 | else false) | |
745 | 749 | then true | |
746 | 750 | else throwOrderError(orderValid, senderValid, matcherValid) | |
747 | 751 | case _ => | |
748 | 752 | let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY) | |
749 | 753 | if ((managerPublic == EMPTY)) | |
750 | 754 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
751 | 755 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic)) | |
752 | 756 | } | |
753 | 757 |
github/deemru/w8io/026f985 73.09 ms ◑