tx · 8LF1YNsWbXt6y9E9kaw75RTUxoBSvULQdTCpP9XD2VLC 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.25 13:35 [1849687] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "8LF1YNsWbXt6y9E9kaw75RTUxoBSvULQdTCpP9XD2VLC", "fee": 1400000, "feeAssetId": null, "timestamp": 1640428535539, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "21s6QGoEgccUyoRakrKewqcSszXmJCbMc4oesHmEgTDnGa3v6aQFkJ4eK9dL1MPaDQHNuyktWRL9BZNFRiSgzzB7" ], "script": "base64:AAIFAAAAAAAAAG0IAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAAQQAAAAAKbFBkZWNpbWFscwAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAJY2FsY0Vycm9yCQABNgAAAAEAAAAAAAAPQkAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKemVyb0JpZ0ludAkAATYAAAABAAAAAAAAAAAAAAAAAAlvbmVCaWdJbnQJAAE2AAAAAQAAAAAAAAAAAQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAA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AAAAAAAQUAAAAKbWF0Y2hlclB1YgMDAwUAAAAKb3JkZXJWYWxpZAUAAAALc2VuZGVyVmFsaWQHBQAAAAxtYXRjaGVyVmFsaWQHBgkBAAAAD3Rocm93T3JkZXJFcnJvcgAAAAMFAAAACm9yZGVyVmFsaWQFAAAAC3NlbmRlclZhbGlkBQAAAAxtYXRjaGVyVmFsaWQEAAAADW1hbmFnZXJQdWJsaWMJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwkBAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAABQAAAAVFTVBUWQMJAAAAAAAAAgUAAAANbWFuYWdlclB1YmxpYwUAAAAFRU1QVFkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABBQAAAA1tYW5hZ2VyUHVibGljctboUg==", "chainId": 84, "height": 1849687, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Akpd6A5jPSzVKXREsv4Q3E5Tud8ZYEA6Bq5w4GUZSEqs Next: 3MmKcPHh1dRgj2unHNPVjmhwX6A6ybLa2vYLyJRLvH7u Diff:
Old | New | Differences | |
---|---|---|---|
468 | 468 | let prAdiff = prAssetSwapX18 | |
469 | 469 | let amAdiff = (pmtAmtX18 - amAssetSwapX18) | |
470 | 470 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalanceNow) + toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalanceNow) - toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
471 | - | if (true) | |
472 | - | then throw((((((((((((" dCur = " + asString(dCur)) + " dNew = ") + asString(dSwap)) + " amBalanceX18 + amAdiff = ") + toString((amBalanceNow + fromX18(amAdiff, amDcm)))) + " prBalanceX18 - prAdiff= ") + toString((prBalanceNow - fromX18(prAdiff, amDcm)))) + " amBalanceX18 = ") + toString(amBalanceNow)) + " prBalanceX18 = ") + toString(prBalanceNow))) | |
473 | - | else parseBigIntValue(asString(dSwap)) | |
471 | + | parseBigIntValue(asString(dSwap)) | |
474 | 472 | } | |
475 | 473 | else { | |
476 | 474 | let pmtPrX18 = toX18(pmtAmt, prDcm) | |
741 | 739 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, userAddress, isEvaluate, emitLp)) | |
742 | 740 | ||
743 | 741 | ||
742 | + | ||
743 | + | @Callable(i) | |
744 | + | func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
745 | + | let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress)) | |
746 | + | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
747 | + | } | |
748 | + | ||
749 | + | ||
744 | 750 | @Verifier(tx) | |
745 | 751 | func verify () = match tx { | |
746 | 752 | case order: Order => |
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(((((("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 cast to String") | |
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 calcAbsDiff (realAmt,expectedAmt,slippage) = { | |
162 | 162 | let diff = fraction((realAmt - expectedAmt), scale8BigInt, expectedAmt) | |
163 | 163 | $Tuple3(((slippage - abs(diff)) > zeroBigInt), min([realAmt, expectedAmt]), diff) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
168 | 168 | let amtAsAmtX18 = toX18(amAmt, amAssetDcm) | |
169 | 169 | let prAsAmtX18 = toX18(prAmt, prAssetDcm) | |
170 | 170 | calcPriceBigInt(prAsAmtX18, amtAsAmtX18) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
175 | 175 | let cfg = getPoolConfig() | |
176 | 176 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
177 | 177 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
178 | 178 | let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt) | |
179 | 179 | let amAmtX18 = toX18(amAmt, amtAsDcm) | |
180 | 180 | let prAmtX18 = toX18(prAmt, prAsDcm) | |
181 | 181 | let lpAmtX18 = toX18(lpAmt, scale8) | |
182 | 182 | let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
183 | 183 | let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
184 | 184 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
189 | 189 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
190 | 190 | [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)] | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
195 | 195 | let cfg = getPoolConfig() | |
196 | 196 | let lpId = cfg[idxLPAsId] | |
197 | 197 | let amId = cfg[idxAmAsId] | |
198 | 198 | let prId = cfg[idxPrAsId] | |
199 | 199 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
200 | 200 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
201 | 201 | let poolStatus = cfg[idxPoolStatus] | |
202 | 202 | let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Invalid LP id").quantity | |
203 | 203 | if ((lpId != pmtAssetId)) | |
204 | 204 | then throw("Invalid pmt asset") | |
205 | 205 | else { | |
206 | 206 | let amBalance = getAccBalance(amId) | |
207 | 207 | let amBalanceX18 = toX18(amBalance, amDcm) | |
208 | 208 | let prBalance = getAccBalance(prId) | |
209 | 209 | let prBalanceX18 = toX18(prBalance, prDcm) | |
210 | 210 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
211 | 211 | let curPrice = fromX18(curPriceX18, scale8) | |
212 | 212 | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
213 | 213 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
214 | 214 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
215 | 215 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
216 | 216 | let outAmAmt = fromX18(outAmAmtX18, amDcm) | |
217 | 217 | let outPrAmt = fromX18(outPrAmtX18, prDcm) | |
218 | 218 | let state = if ((txId58 == "")) | |
219 | 219 | then nil | |
220 | 220 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
221 | 221 | then unit | |
222 | 222 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
223 | 223 | then unit | |
224 | 224 | 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)] | |
225 | 225 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state) | |
226 | 226 | } | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = { | |
231 | 231 | let cfg = getPoolConfig() | |
232 | 232 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
233 | 233 | let amIdStr = cfg[idxAmAsId] | |
234 | 234 | let prIdStr = cfg[idxPrAsId] | |
235 | 235 | let inAmIdStr = cfg[idxIAmtAsId] | |
236 | 236 | let inPrIdStr = cfg[idxIPriceAsId] | |
237 | 237 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
238 | 238 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
239 | 239 | let poolStatus = cfg[idxPoolStatus] | |
240 | 240 | let lpEmission = valueOrErrorMessage(assetInfo(lpId), "Wrong lp asset").quantity | |
241 | 241 | let amBalance = if (isEvaluate) | |
242 | 242 | then getAccBalance(amIdStr) | |
243 | 243 | else (getAccBalance(amIdStr) - inAmAmt) | |
244 | 244 | let prBalance = if (isEvaluate) | |
245 | 245 | then getAccBalance(prIdStr) | |
246 | 246 | else (getAccBalance(prIdStr) - inPrAmt) | |
247 | 247 | let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm) | |
248 | 248 | let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm) | |
249 | 249 | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
250 | 250 | let amBalanceX18 = toX18(amBalance, amtDcm) | |
251 | 251 | let prBalanceX18 = toX18(prBalance, priceDcm) | |
252 | 252 | let res = if ((lpEmission == 0)) | |
253 | 253 | then { | |
254 | 254 | let curPriceX18 = zeroBigInt | |
255 | 255 | let slippageX18 = zeroBigInt | |
256 | 256 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
257 | 257 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
258 | 258 | } | |
259 | 259 | else { | |
260 | 260 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
261 | 261 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
262 | 262 | let slippageX18 = toX18(slippage, scale8) | |
263 | 263 | if (if ((curPriceX18 != zeroBigInt)) | |
264 | 264 | then (slippageRealX18 > slippageX18) | |
265 | 265 | else false) | |
266 | 266 | then throw(((("Price slippage " + toString(slippageRealX18)) + " exceeded ") + toString(slippageX18))) | |
267 | 267 | else { | |
268 | 268 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
269 | 269 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
270 | 270 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
271 | 271 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
272 | 272 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
273 | 273 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
274 | 274 | let expAmtAssetAmtX18 = expectedAmts._1 | |
275 | 275 | let expPriceAssetAmtX18 = expectedAmts._2 | |
276 | 276 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
277 | 277 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
278 | 278 | } | |
279 | 279 | } | |
280 | 280 | let calcLpAmt = res._1 | |
281 | 281 | let calcAmAssetPmt = res._2 | |
282 | 282 | let calcPrAssetPmt = res._3 | |
283 | 283 | let curPrice = fromX18(res._4, scale8) | |
284 | 284 | let slippageCalc = fromX18(res._5, scale8) | |
285 | 285 | if ((0 >= calcLpAmt)) | |
286 | 286 | then throw("LP < 0") | |
287 | 287 | else { | |
288 | 288 | let emitLpAmt = if (!(emitLp)) | |
289 | 289 | then 0 | |
290 | 290 | else calcLpAmt | |
291 | 291 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
292 | 292 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
293 | 293 | 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))] | |
294 | 294 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpId, poolStatus, commonState, amDiff, prDiff, inAmId, inPrId) | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func validateMatcherOrderAllowed (order) = { | |
300 | 300 | let cfg = getPoolConfig() | |
301 | 301 | let amtAsId = cfg[idxAmAsId] | |
302 | 302 | let prAsId = cfg[idxPrAsId] | |
303 | 303 | let poolStatus = parseIntValue(cfg[idxPoolStatus]) | |
304 | 304 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
305 | 305 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
306 | 306 | let accAmtAsBalance = getAccBalance(amtAsId) | |
307 | 307 | let accPrAsBalance = getAccBalance(prAsId) | |
308 | 308 | let curPriceX18 = if ((order.orderType == Buy)) | |
309 | 309 | then privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
310 | 310 | else privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
311 | 311 | let curPrice = fromX18(curPriceX18, scale8) | |
312 | 312 | if (if (if (isGlobalShutdown()) | |
313 | 313 | then true | |
314 | 314 | else (poolStatus == PoolMatcherDisabled)) | |
315 | 315 | then true | |
316 | 316 | else (poolStatus == PoolShutdown)) | |
317 | 317 | then throw("Blocked by admin") | |
318 | 318 | else { | |
319 | 319 | let orAmtAsset = order.assetPair.amountAsset | |
320 | 320 | let orAmtAsStr = if ((orAmtAsset == unit)) | |
321 | 321 | then "WAVES" | |
322 | 322 | else toBase58String(value(orAmtAsset)) | |
323 | 323 | let orPrAsset = order.assetPair.priceAsset | |
324 | 324 | let orPrAsStr = if ((orPrAsset == unit)) | |
325 | 325 | then "WAVES" | |
326 | 326 | else toBase58String(value(orPrAsset)) | |
327 | 327 | if (if ((orAmtAsStr != amtAsId)) | |
328 | 328 | then true | |
329 | 329 | else (orPrAsStr != prAsId)) | |
330 | 330 | then throw("Wrong order assets") | |
331 | 331 | else { | |
332 | 332 | let orderPrice = order.price | |
333 | 333 | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
334 | 334 | let castOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
335 | 335 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
336 | 336 | then (curPrice >= castOrderPrice) | |
337 | 337 | else (castOrderPrice >= curPrice) | |
338 | 338 | true | |
339 | 339 | } | |
340 | 340 | } | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func commonGet (i) = if ((size(i.payments) != 1)) | |
345 | 345 | then throw("1 payment expected") | |
346 | 346 | else { | |
347 | 347 | let pmt = value(i.payments[0]) | |
348 | 348 | let pmtAssetId = value(pmt.assetId) | |
349 | 349 | let pmtAmt = pmt.amount | |
350 | 350 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
351 | 351 | let outAmAmt = res._1 | |
352 | 352 | let outPrAmt = res._2 | |
353 | 353 | let poolStatus = parseIntValue(res._9) | |
354 | 354 | let state = res._10 | |
355 | 355 | if (if (isGlobalShutdown()) | |
356 | 356 | then true | |
357 | 357 | else (poolStatus == PoolShutdown)) | |
358 | 358 | then throw(("Blocked by admin: " + toString(poolStatus))) | |
359 | 359 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp) = { | |
364 | 364 | let r = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp) | |
365 | 365 | let status = parseIntValue(r._8) | |
366 | 366 | if (if (if (isGlobalShutdown()) | |
367 | 367 | then true | |
368 | 368 | else (status == PoolPutDisabled)) | |
369 | 369 | then true | |
370 | 370 | else (status == PoolShutdown)) | |
371 | 371 | then throw(("Blocked by admin: " + toString(status))) | |
372 | 372 | else r | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Callable(i) | |
377 | 377 | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
378 | 378 | then throw("permissions denied") | |
379 | 379 | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)] | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | ||
383 | 383 | @Callable(i) | |
384 | 384 | func put (slip,autoStake) = { | |
385 | 385 | let factCfg = getFactoryConfig() | |
386 | 386 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Incorrect staking addr") | |
387 | 387 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Incorrect slippage addr") | |
388 | 388 | if ((0 > slip)) | |
389 | 389 | then throw("Invalid slippage.") | |
390 | 390 | else if ((size(i.payments) != 2)) | |
391 | 391 | then throw("2 payments expected") | |
392 | 392 | else { | |
393 | 393 | 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) | |
394 | 394 | let emitLpAmt = estPut._2 | |
395 | 395 | let lpAssetId = estPut._7 | |
396 | 396 | let state = estPut._9 | |
397 | 397 | let amDiff = estPut._10 | |
398 | 398 | let prDiff = estPut._11 | |
399 | 399 | let amId = estPut._12 | |
400 | 400 | let prId = estPut._13 | |
401 | 401 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
402 | 402 | if ((emitInv == emitInv)) | |
403 | 403 | then { | |
404 | 404 | let slippageAInv = if ((amDiff > 0)) | |
405 | 405 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
406 | 406 | else nil | |
407 | 407 | if ((slippageAInv == slippageAInv)) | |
408 | 408 | then { | |
409 | 409 | let slippagePInv = if ((prDiff > 0)) | |
410 | 410 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
411 | 411 | else nil | |
412 | 412 | if ((slippagePInv == slippagePInv)) | |
413 | 413 | then { | |
414 | 414 | let lpTrnsfr = if (autoStake) | |
415 | 415 | then { | |
416 | 416 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
417 | 417 | if ((slpStakeInv == slpStakeInv)) | |
418 | 418 | then nil | |
419 | 419 | else throw("Strict value is not equal to itself.") | |
420 | 420 | } | |
421 | 421 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
422 | 422 | (state ++ lpTrnsfr) | |
423 | 423 | } | |
424 | 424 | else throw("Strict value is not equal to itself.") | |
425 | 425 | } | |
426 | 426 | else throw("Strict value is not equal to itself.") | |
427 | 427 | } | |
428 | 428 | else throw("Strict value is not equal to itself.") | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | ||
434 | 434 | @Callable(i) | |
435 | 435 | func putOneTkn (inAmtAmount,inPrAmount,outLp,slippage,autoStake) = { | |
436 | 436 | let cfg = getFactoryConfig() | |
437 | 437 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wrong staking addr") | |
438 | 438 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wrong slippage addr") | |
439 | 439 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wrong slippage addr") | |
440 | 440 | let poolCfg = getPoolConfig() | |
441 | 441 | let amId = poolCfg[idxAmAsId] | |
442 | 442 | let prId = poolCfg[idxPrAsId] | |
443 | 443 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
444 | 444 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
445 | 445 | if ((size(i.payments) != 1)) | |
446 | 446 | then throw("1 payment expected") | |
447 | 447 | else { | |
448 | 448 | let pmt = value(i.payments[0]) | |
449 | 449 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
450 | 450 | let pmtAmt = pmt.amount | |
451 | 451 | let amAssetSwapX18 = toX18(inAmtAmount, amDcm) | |
452 | 452 | let prAssetSwapX18 = toX18(inPrAmount, prDcm) | |
453 | 453 | let amBalance = getAccBalance(amId) | |
454 | 454 | let amBalanceX18 = toX18(amBalance, amDcm) | |
455 | 455 | let prBalance = getAccBalance(prId) | |
456 | 456 | let prBalanceX18 = toX18(prBalance, prDcm) | |
457 | 457 | let amBalanceNow = if ((pmtAssetId == amId)) | |
458 | 458 | then (amBalance - pmtAmt) | |
459 | 459 | else amBalance | |
460 | 460 | let prBalanceNow = if ((pmtAssetId == prId)) | |
461 | 461 | then (prBalance - pmtAmt) | |
462 | 462 | else prBalance | |
463 | 463 | let dCur = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), "50", "100000000", "1"], nil) | |
464 | 464 | let invLeft = parseBigIntValue(asString(dCur)) | |
465 | 465 | let invRight = if ((pmtAssetId == amId)) | |
466 | 466 | then { | |
467 | 467 | let pmtAmtX18 = toX18(pmtAmt, amDcm) | |
468 | 468 | let prAdiff = prAssetSwapX18 | |
469 | 469 | let amAdiff = (pmtAmtX18 - amAssetSwapX18) | |
470 | 470 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalanceNow) + toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalanceNow) - toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
471 | - | if (true) | |
472 | - | then throw((((((((((((" dCur = " + asString(dCur)) + " dNew = ") + asString(dSwap)) + " amBalanceX18 + amAdiff = ") + toString((amBalanceNow + fromX18(amAdiff, amDcm)))) + " prBalanceX18 - prAdiff= ") + toString((prBalanceNow - fromX18(prAdiff, amDcm)))) + " amBalanceX18 = ") + toString(amBalanceNow)) + " prBalanceX18 = ") + toString(prBalanceNow))) | |
473 | - | else parseBigIntValue(asString(dSwap)) | |
471 | + | parseBigIntValue(asString(dSwap)) | |
474 | 472 | } | |
475 | 473 | else { | |
476 | 474 | let pmtPrX18 = toX18(pmtAmt, prDcm) | |
477 | 475 | let prAdiff = (pmtPrX18 - prAssetSwapX18) | |
478 | 476 | let amAdiff = amAssetSwapX18 | |
479 | 477 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalanceNow) - toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalanceNow) + toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
480 | 478 | parseBigIntValue(asString(dSwap)) | |
481 | 479 | } | |
482 | 480 | if (!(calcAbsDiff(invRight, invLeft, toBigInt(1000))._1)) | |
483 | 481 | then throw("D mismatch.") | |
484 | 482 | else { | |
485 | 483 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), inAmtAmount), AttachedPayment(fromBase58String(prId), inPrAmount), 50000000000, true) | |
486 | 484 | let estimLP = estPut._2 | |
487 | 485 | let lpAssetId = estPut._7 | |
488 | 486 | let state = estPut._9 | |
489 | 487 | let amDiff = estPut._10 | |
490 | 488 | let prDiff = estPut._11 | |
491 | 489 | let lpCalcRes = calcAbsDiff(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
492 | 490 | if (!(lpCalcRes._1)) | |
493 | 491 | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
494 | 492 | else { | |
495 | 493 | let emitLpAmt = toInt(lpCalcRes._2) | |
496 | 494 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
497 | 495 | if ((emitInv == emitInv)) | |
498 | 496 | then { | |
499 | 497 | let slippageAInv = if ((amDiff > 0)) | |
500 | 498 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
501 | 499 | else nil | |
502 | 500 | if ((slippageAInv == slippageAInv)) | |
503 | 501 | then { | |
504 | 502 | let slippagePInv = if ((prDiff > 0)) | |
505 | 503 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
506 | 504 | else nil | |
507 | 505 | if ((slippagePInv == slippagePInv)) | |
508 | 506 | then { | |
509 | 507 | let lpTrnsfr = if (autoStake) | |
510 | 508 | then { | |
511 | 509 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
512 | 510 | if ((slpStakeInv == slpStakeInv)) | |
513 | 511 | then nil | |
514 | 512 | else throw("Strict value is not equal to itself.") | |
515 | 513 | } | |
516 | 514 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
517 | 515 | (state ++ lpTrnsfr) | |
518 | 516 | } | |
519 | 517 | else throw("Strict value is not equal to itself.") | |
520 | 518 | } | |
521 | 519 | else throw("Strict value is not equal to itself.") | |
522 | 520 | } | |
523 | 521 | else throw("Strict value is not equal to itself.") | |
524 | 522 | } | |
525 | 523 | } | |
526 | 524 | } | |
527 | 525 | } | |
528 | 526 | ||
529 | 527 | ||
530 | 528 | ||
531 | 529 | @Callable(i) | |
532 | 530 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
533 | 531 | then throw("Invalid slippage") | |
534 | 532 | else if ((size(i.payments) != 2)) | |
535 | 533 | then throw("2 payments expected") | |
536 | 534 | else { | |
537 | 535 | 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) | |
538 | 536 | estPut._9 | |
539 | 537 | } | |
540 | 538 | ||
541 | 539 | ||
542 | 540 | ||
543 | 541 | @Callable(i) | |
544 | 542 | func get () = { | |
545 | 543 | let res = commonGet(i) | |
546 | 544 | let outAmtAmt = res._1 | |
547 | 545 | let outPrAmt = res._2 | |
548 | 546 | let pmtAmt = res._3 | |
549 | 547 | let pmtAssetId = res._4 | |
550 | 548 | let state = res._5 | |
551 | 549 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
552 | 550 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
553 | 551 | then state | |
554 | 552 | else throw("Strict value is not equal to itself.") | |
555 | 553 | } | |
556 | 554 | ||
557 | 555 | ||
558 | 556 | ||
559 | 557 | @Callable(i) | |
560 | 558 | func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
561 | 559 | then throw("1 payment expected") | |
562 | 560 | else { | |
563 | 561 | let cfg = getPoolConfig() | |
564 | 562 | let lpId = cfg[idxLPAsId] | |
565 | 563 | let amId = cfg[idxAmAsId] | |
566 | 564 | let prId = cfg[idxPrAsId] | |
567 | 565 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
568 | 566 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
569 | 567 | let poolStatus = cfg[idxPoolStatus] | |
570 | 568 | let fcfg = getFactoryConfig() | |
571 | 569 | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wrong slippage address") | |
572 | 570 | if (if ((outAssetId != amId)) | |
573 | 571 | then (outAssetId != prId) | |
574 | 572 | else false) | |
575 | 573 | then throw("Invalid out asset") | |
576 | 574 | else { | |
577 | 575 | let resultAssetId = if ((outAssetId == amId)) | |
578 | 576 | then amId | |
579 | 577 | else prId | |
580 | 578 | let pmt = value(i.payments[0]) | |
581 | 579 | let userAddress = i.caller | |
582 | 580 | let txId58 = toBase58String(i.transactionId) | |
583 | 581 | let pmtAssetId = value(pmt.assetId) | |
584 | 582 | let pmtAmt = pmt.amount | |
585 | 583 | if ((lpId != toBase58String(pmtAssetId))) | |
586 | 584 | then throw("Invalid LP") | |
587 | 585 | else { | |
588 | 586 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
589 | 587 | let estimAmAmt = r._1 | |
590 | 588 | let estimPrAmt = r._2 | |
591 | 589 | let amBalance = getAccBalance(amId) | |
592 | 590 | let amBalanceX18 = toX18(amBalance, amDcm) | |
593 | 591 | let prBalance = getAccBalance(prId) | |
594 | 592 | let prBalanceX18 = toX18(prBalance, prDcm) | |
595 | 593 | let invLeft = invoke(gwxCntr, "calcD", [toString(amBalance), toString(prBalance), "50", "100000000", "1"], nil) | |
596 | 594 | let resultTuple = if ((outAssetId == amId)) | |
597 | 595 | then { | |
598 | 596 | let amAssetDiff = (outAmount - estimAmAmt) | |
599 | 597 | let invRight = invoke(gwxCntr, "calcD", [toString((amBalance - amAssetDiff)), toString((prBalance + prAssetSwap)), "50", "100000000", "1"], nil) | |
600 | 598 | if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000))._1)) | |
601 | 599 | then throw("D mismatch") | |
602 | 600 | else { | |
603 | 601 | let resultAmt = (estimAmAmt + amAssetSwap) | |
604 | 602 | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
605 | 603 | if (!(lpCalcRes._1)) | |
606 | 604 | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
607 | 605 | else $Tuple2(toInt(lpCalcRes._2), 0) | |
608 | 606 | } | |
609 | 607 | } | |
610 | 608 | else { | |
611 | 609 | let prAssetDiff = (outAmount - estimPrAmt) | |
612 | 610 | let invRight = invoke(gwxCntr, "calcD", [toString((amBalance + amAssetSwap)), toString((prBalance - prAssetDiff)), "50", "100000000", "1"], nil) | |
613 | 611 | if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(5000))._1)) | |
614 | 612 | then throw("D mismatch.") | |
615 | 613 | else { | |
616 | 614 | let resultAmt = (estimPrAmt + prAssetSwap) | |
617 | 615 | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
618 | 616 | if (!(lpCalcRes._1)) | |
619 | 617 | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
620 | 618 | else $Tuple2(0, toInt(lpCalcRes._2)) | |
621 | 619 | } | |
622 | 620 | } | |
623 | 621 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
624 | 622 | let curPrice = fromX18(curPriceX18, scale8) | |
625 | 623 | let state = [ScriptTransfer(userAddress, if ((resultAssetId == amId)) | |
626 | 624 | then resultTuple._1 | |
627 | 625 | else resultTuple._2, if ((resultAssetId == "WAVES")) | |
628 | 626 | then unit | |
629 | 627 | 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)] | |
630 | 628 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
631 | 629 | if ((burn == burn)) | |
632 | 630 | then state | |
633 | 631 | else throw("Strict value is not equal to itself.") | |
634 | 632 | } | |
635 | 633 | } | |
636 | 634 | } | |
637 | 635 | ||
638 | 636 | ||
639 | 637 | ||
640 | 638 | @Callable(i) | |
641 | 639 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
642 | 640 | let res = commonGet(i) | |
643 | 641 | let outAmAmt = res._1 | |
644 | 642 | let outPrAmt = res._2 | |
645 | 643 | let pmtAmt = res._3 | |
646 | 644 | let pmtAssetId = res._4 | |
647 | 645 | let state = res._5 | |
648 | 646 | if ((noLessThenAmtAsset > outAmAmt)) | |
649 | 647 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
650 | 648 | else if ((noLessThenPriceAsset > outPrAmt)) | |
651 | 649 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
652 | 650 | else { | |
653 | 651 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
654 | 652 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
655 | 653 | then state | |
656 | 654 | else throw("Strict value is not equal to itself.") | |
657 | 655 | } | |
658 | 656 | } | |
659 | 657 | ||
660 | 658 | ||
661 | 659 | ||
662 | 660 | @Callable(i) | |
663 | 661 | func unstakeAndGet (amount) = { | |
664 | 662 | let checkPayments = if ((size(i.payments) != 0)) | |
665 | 663 | then throw("No payments expected") | |
666 | 664 | else true | |
667 | 665 | if ((checkPayments == checkPayments)) | |
668 | 666 | then { | |
669 | 667 | let cfg = getPoolConfig() | |
670 | 668 | let factoryCfg = getFactoryConfig() | |
671 | 669 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
672 | 670 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wrong staking address.") | |
673 | 671 | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
674 | 672 | if ((unstakeInv == unstakeInv)) | |
675 | 673 | then { | |
676 | 674 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
677 | 675 | let poolStatus = parseIntValue(r._9) | |
678 | 676 | let state = r._10 | |
679 | 677 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
680 | 678 | then true | |
681 | 679 | else (poolStatus == PoolShutdown)) | |
682 | 680 | then throw(("Blocked by admin: " + toString(poolStatus))) | |
683 | 681 | else true | |
684 | 682 | if ((checkPoolStatus == checkPoolStatus)) | |
685 | 683 | then { | |
686 | 684 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
687 | 685 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
688 | 686 | then state | |
689 | 687 | else throw("Strict value is not equal to itself.") | |
690 | 688 | } | |
691 | 689 | else throw("Strict value is not equal to itself.") | |
692 | 690 | } | |
693 | 691 | else throw("Strict value is not equal to itself.") | |
694 | 692 | } | |
695 | 693 | else throw("Strict value is not equal to itself.") | |
696 | 694 | } | |
697 | 695 | ||
698 | 696 | ||
699 | 697 | ||
700 | 698 | @Callable(i) | |
701 | 699 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
702 | 700 | then throw("permissions denied") | |
703 | 701 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
704 | 702 | ||
705 | 703 | ||
706 | 704 | ||
707 | 705 | @Callable(i) | |
708 | 706 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
709 | 707 | ||
710 | 708 | ||
711 | 709 | ||
712 | 710 | @Callable(i) | |
713 | 711 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
714 | 712 | ||
715 | 713 | ||
716 | 714 | ||
717 | 715 | @Callable(i) | |
718 | 716 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
719 | 717 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
720 | 718 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
721 | 719 | } | |
722 | 720 | ||
723 | 721 | ||
724 | 722 | ||
725 | 723 | @Callable(i) | |
726 | 724 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
727 | 725 | ||
728 | 726 | ||
729 | 727 | ||
730 | 728 | @Callable(i) | |
731 | 729 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
732 | 730 | ||
733 | 731 | ||
734 | 732 | ||
735 | 733 | @Callable(i) | |
736 | 734 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
737 | 735 | ||
738 | 736 | ||
739 | 737 | ||
740 | 738 | @Callable(i) | |
741 | 739 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, userAddress, isEvaluate, emitLp)) | |
742 | 740 | ||
743 | 741 | ||
742 | + | ||
743 | + | @Callable(i) | |
744 | + | func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
745 | + | let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress)) | |
746 | + | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
747 | + | } | |
748 | + | ||
749 | + | ||
744 | 750 | @Verifier(tx) | |
745 | 751 | func verify () = match tx { | |
746 | 752 | case order: Order => | |
747 | 753 | let matcherPub = getMatcherPubOrFail() | |
748 | 754 | let orderValid = validateMatcherOrderAllowed(order) | |
749 | 755 | let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
750 | 756 | let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub) | |
751 | 757 | if (if (if (orderValid) | |
752 | 758 | then senderValid | |
753 | 759 | else false) | |
754 | 760 | then matcherValid | |
755 | 761 | else false) | |
756 | 762 | then true | |
757 | 763 | else throwOrderError(orderValid, senderValid, matcherValid) | |
758 | 764 | case _ => | |
759 | 765 | let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY) | |
760 | 766 | if ((managerPublic == EMPTY)) | |
761 | 767 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
762 | 768 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic)) | |
763 | 769 | } | |
764 | 770 |
github/deemru/w8io/169f3d6 88.47 ms ◑