tx · 26NF1ySGgjHuoHvzsFaHJZs4tz5VJLsv92gD7BJbXeFX 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.24 23:31 [1848838] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "26NF1ySGgjHuoHvzsFaHJZs4tz5VJLsv92gD7BJbXeFX", "fee": 1400000, "feeAssetId": null, "timestamp": 1640377909746, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5rySa6JqFV9T6VdDoKQmcyvmVu3KcXjkhcALi51UCoU7m31tzpakxXoLtVvC6hfuoTd7mpY4EzyLXmuYBpgXgur8" ], "script": "base64:AAIFAAAAAAAAAGUIAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBAAAAEEAAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAACWNhbGNFcnJvcgkAATYAAAABAAAAAAAAD0JAAAAAAAdzY2FsZTE4CQABNgAAAAEADeC2s6dkAAAAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAAAAAAJb25lQmlnSW50CQABNgAAAAEAAAAAAAAAAAEAAAAAA1NFUAIAAAACX18AAAAABUVNUFRZAgAAAAAAAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAA5pZ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BQAAAApvcmRlclZhbGlkBQAAAAtzZW5kZXJWYWxpZAcFAAAADG1hdGNoZXJWYWxpZAcGCQEAAAAPdGhyb3dPcmRlckVycm9yAAAAAwUAAAAKb3JkZXJWYWxpZAUAAAALc2VuZGVyVmFsaWQFAAAADG1hdGNoZXJWYWxpZAQAAAANbWFuYWdlclB1YmxpYwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAFAAAABUVNUFRZAwkAAAAAAAACBQAAAA1tYW5hZ2VyUHVibGljBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAADW1hbmFnZXJQdWJsaWP+Jjqq", "chainId": 84, "height": 1848838, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6gUf9V65bJaJXkj7VHiYcaEZuT6YeFkLf3vqncJxFPyQ Next: 3JvZbkhFnzyeuJeRRQqZE7hE4XHB8A5g8au5UKdsd4h9 Diff:
Old | New | Differences | |
---|---|---|---|
595 | 595 | then { | |
596 | 596 | let amAssetDiff = (outAmount - estimAmAmt) | |
597 | 597 | let invRight = invoke(gwxCntr, "calcD", [toString((amBalance + amAssetDiff)), toString((prBalance - prAssetSwap)), "50", "100000000", "1"], nil) | |
598 | - | if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000))._1)) | |
599 | - | then throw("D mismatch") | |
600 | - | else { | |
601 | - | let resultAmt = (estimAmAmt + amAssetSwap) | |
602 | - | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
603 | - | if (!(lpCalcRes._1)) | |
604 | - | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
605 | - | else $Tuple2(toInt(lpCalcRes._2), 0) | |
606 | - | } | |
598 | + | if (true) | |
599 | + | then throw((((((((((((" invLeft= " + asString(invLeft)) + " invRight= ") + asString(invRight)) + " amBalance=") + toString(amBalance)) + " amAssetDiff=") + toString(amAssetDiff)) + " prBalance=") + toString(prBalance)) + " prAssetSwap=") + toString(prAssetSwap))) | |
600 | + | else if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000))._1)) | |
601 | + | then throw("D mismatch") | |
602 | + | else { | |
603 | + | let resultAmt = (estimAmAmt + amAssetSwap) | |
604 | + | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
605 | + | if (!(lpCalcRes._1)) | |
606 | + | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
607 | + | else $Tuple2(toInt(lpCalcRes._2), 0) | |
608 | + | } | |
607 | 609 | } | |
608 | 610 | else { | |
609 | 611 | let prAssetDiff = (outAmount - estimPrAmt) | |
739 | 741 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, userAddress, isEvaluate, emitLp)) | |
740 | 742 | ||
741 | 743 | ||
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 | - | ||
750 | 744 | @Verifier(tx) | |
751 | 745 | func verify () = match tx { | |
752 | 746 | 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 | 471 | parseBigIntValue(asString(dSwap)) | |
472 | 472 | } | |
473 | 473 | else { | |
474 | 474 | let pmtPrX18 = toX18(pmtAmt, prDcm) | |
475 | 475 | let prAdiff = (pmtPrX18 - prAssetSwapX18) | |
476 | 476 | let amAdiff = amAssetSwapX18 | |
477 | 477 | let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalanceNow) - toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalanceNow) + toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil) | |
478 | 478 | parseBigIntValue(asString(dSwap)) | |
479 | 479 | } | |
480 | 480 | if (!(calcAbsDiff(invRight, invLeft, toBigInt(1000))._1)) | |
481 | 481 | then throw("D mismatch.") | |
482 | 482 | else { | |
483 | 483 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), inAmtAmount), AttachedPayment(fromBase58String(prId), inPrAmount), 50000000000, true) | |
484 | 484 | let estimLP = estPut._2 | |
485 | 485 | let lpAssetId = estPut._7 | |
486 | 486 | let state = estPut._9 | |
487 | 487 | let amDiff = estPut._10 | |
488 | 488 | let prDiff = estPut._11 | |
489 | 489 | let lpCalcRes = calcAbsDiff(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
490 | 490 | if (!(lpCalcRes._1)) | |
491 | 491 | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
492 | 492 | else { | |
493 | 493 | let emitLpAmt = toInt(lpCalcRes._2) | |
494 | 494 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
495 | 495 | if ((emitInv == emitInv)) | |
496 | 496 | then { | |
497 | 497 | let slippageAInv = if ((amDiff > 0)) | |
498 | 498 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
499 | 499 | else nil | |
500 | 500 | if ((slippageAInv == slippageAInv)) | |
501 | 501 | then { | |
502 | 502 | let slippagePInv = if ((prDiff > 0)) | |
503 | 503 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
504 | 504 | else nil | |
505 | 505 | if ((slippagePInv == slippagePInv)) | |
506 | 506 | then { | |
507 | 507 | let lpTrnsfr = if (autoStake) | |
508 | 508 | then { | |
509 | 509 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
510 | 510 | if ((slpStakeInv == slpStakeInv)) | |
511 | 511 | then nil | |
512 | 512 | else throw("Strict value is not equal to itself.") | |
513 | 513 | } | |
514 | 514 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
515 | 515 | (state ++ lpTrnsfr) | |
516 | 516 | } | |
517 | 517 | else throw("Strict value is not equal to itself.") | |
518 | 518 | } | |
519 | 519 | else throw("Strict value is not equal to itself.") | |
520 | 520 | } | |
521 | 521 | else throw("Strict value is not equal to itself.") | |
522 | 522 | } | |
523 | 523 | } | |
524 | 524 | } | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | ||
529 | 529 | @Callable(i) | |
530 | 530 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
531 | 531 | then throw("Invalid slippage") | |
532 | 532 | else if ((size(i.payments) != 2)) | |
533 | 533 | then throw("2 payments expected") | |
534 | 534 | else { | |
535 | 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) | |
536 | 536 | estPut._9 | |
537 | 537 | } | |
538 | 538 | ||
539 | 539 | ||
540 | 540 | ||
541 | 541 | @Callable(i) | |
542 | 542 | func get () = { | |
543 | 543 | let res = commonGet(i) | |
544 | 544 | let outAmtAmt = res._1 | |
545 | 545 | let outPrAmt = res._2 | |
546 | 546 | let pmtAmt = res._3 | |
547 | 547 | let pmtAssetId = res._4 | |
548 | 548 | let state = res._5 | |
549 | 549 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
550 | 550 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
551 | 551 | then state | |
552 | 552 | else throw("Strict value is not equal to itself.") | |
553 | 553 | } | |
554 | 554 | ||
555 | 555 | ||
556 | 556 | ||
557 | 557 | @Callable(i) | |
558 | 558 | func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
559 | 559 | then throw("1 payment expected") | |
560 | 560 | else { | |
561 | 561 | let cfg = getPoolConfig() | |
562 | 562 | let lpId = cfg[idxLPAsId] | |
563 | 563 | let amId = cfg[idxAmAsId] | |
564 | 564 | let prId = cfg[idxPrAsId] | |
565 | 565 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
566 | 566 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
567 | 567 | let poolStatus = cfg[idxPoolStatus] | |
568 | 568 | let fcfg = getFactoryConfig() | |
569 | 569 | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wrong slippage address") | |
570 | 570 | if (if ((outAssetId != amId)) | |
571 | 571 | then (outAssetId != prId) | |
572 | 572 | else false) | |
573 | 573 | then throw("Invalid out asset") | |
574 | 574 | else { | |
575 | 575 | let resultAssetId = if ((outAssetId == amId)) | |
576 | 576 | then amId | |
577 | 577 | else prId | |
578 | 578 | let pmt = value(i.payments[0]) | |
579 | 579 | let userAddress = i.caller | |
580 | 580 | let txId58 = toBase58String(i.transactionId) | |
581 | 581 | let pmtAssetId = value(pmt.assetId) | |
582 | 582 | let pmtAmt = pmt.amount | |
583 | 583 | if ((lpId != toBase58String(pmtAssetId))) | |
584 | 584 | then throw("Invalid LP") | |
585 | 585 | else { | |
586 | 586 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
587 | 587 | let estimAmAmt = r._1 | |
588 | 588 | let estimPrAmt = r._2 | |
589 | 589 | let amBalance = getAccBalance(amId) | |
590 | 590 | let amBalanceX18 = toX18(amBalance, amDcm) | |
591 | 591 | let prBalance = getAccBalance(prId) | |
592 | 592 | let prBalanceX18 = toX18(prBalance, prDcm) | |
593 | 593 | let invLeft = invoke(gwxCntr, "calcD", [toString(amBalance), toString(prBalance), "50", "100000000", "1"], nil) | |
594 | 594 | let resultTuple = if ((outAssetId == amId)) | |
595 | 595 | then { | |
596 | 596 | let amAssetDiff = (outAmount - estimAmAmt) | |
597 | 597 | let invRight = invoke(gwxCntr, "calcD", [toString((amBalance + amAssetDiff)), toString((prBalance - prAssetSwap)), "50", "100000000", "1"], nil) | |
598 | - | if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000))._1)) | |
599 | - | then throw("D mismatch") | |
600 | - | else { | |
601 | - | let resultAmt = (estimAmAmt + amAssetSwap) | |
602 | - | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
603 | - | if (!(lpCalcRes._1)) | |
604 | - | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
605 | - | else $Tuple2(toInt(lpCalcRes._2), 0) | |
606 | - | } | |
598 | + | if (true) | |
599 | + | then throw((((((((((((" invLeft= " + asString(invLeft)) + " invRight= ") + asString(invRight)) + " amBalance=") + toString(amBalance)) + " amAssetDiff=") + toString(amAssetDiff)) + " prBalance=") + toString(prBalance)) + " prAssetSwap=") + toString(prAssetSwap))) | |
600 | + | else if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000))._1)) | |
601 | + | then throw("D mismatch") | |
602 | + | else { | |
603 | + | let resultAmt = (estimAmAmt + amAssetSwap) | |
604 | + | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
605 | + | if (!(lpCalcRes._1)) | |
606 | + | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
607 | + | else $Tuple2(toInt(lpCalcRes._2), 0) | |
608 | + | } | |
607 | 609 | } | |
608 | 610 | else { | |
609 | 611 | let prAssetDiff = (outAmount - estimPrAmt) | |
610 | 612 | let invRight = invoke(gwxCntr, "calcD", [toString((amBalance - amAssetSwap)), toString((prBalance + prAssetDiff)), "50", "100000000", "1"], nil) | |
611 | 613 | if (!(calcAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000))._1)) | |
612 | 614 | then throw("D mismatch.") | |
613 | 615 | else { | |
614 | 616 | let resultAmt = (estimPrAmt + prAssetSwap) | |
615 | 617 | let lpCalcRes = calcAbsDiff(toBigInt(resultAmt), toBigInt(outAmount), toBigInt(slippage)) | |
616 | 618 | if (!(lpCalcRes._1)) | |
617 | 619 | then throw(((("Too big slippage: " + toString(lpCalcRes._3)) + " vs ") + toString(slippage))) | |
618 | 620 | else $Tuple2(0, toInt(lpCalcRes._2)) | |
619 | 621 | } | |
620 | 622 | } | |
621 | 623 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
622 | 624 | let curPrice = fromX18(curPriceX18, scale8) | |
623 | 625 | let state = [ScriptTransfer(userAddress, if ((resultAssetId == amId)) | |
624 | 626 | then resultTuple._1 | |
625 | 627 | else resultTuple._2, if ((resultAssetId == "WAVES")) | |
626 | 628 | then unit | |
627 | 629 | 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)] | |
628 | 630 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
629 | 631 | if ((burn == burn)) | |
630 | 632 | then state | |
631 | 633 | else throw("Strict value is not equal to itself.") | |
632 | 634 | } | |
633 | 635 | } | |
634 | 636 | } | |
635 | 637 | ||
636 | 638 | ||
637 | 639 | ||
638 | 640 | @Callable(i) | |
639 | 641 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
640 | 642 | let res = commonGet(i) | |
641 | 643 | let outAmAmt = res._1 | |
642 | 644 | let outPrAmt = res._2 | |
643 | 645 | let pmtAmt = res._3 | |
644 | 646 | let pmtAssetId = res._4 | |
645 | 647 | let state = res._5 | |
646 | 648 | if ((noLessThenAmtAsset > outAmAmt)) | |
647 | 649 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
648 | 650 | else if ((noLessThenPriceAsset > outPrAmt)) | |
649 | 651 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
650 | 652 | else { | |
651 | 653 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
652 | 654 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
653 | 655 | then state | |
654 | 656 | else throw("Strict value is not equal to itself.") | |
655 | 657 | } | |
656 | 658 | } | |
657 | 659 | ||
658 | 660 | ||
659 | 661 | ||
660 | 662 | @Callable(i) | |
661 | 663 | func unstakeAndGet (amount) = { | |
662 | 664 | let checkPayments = if ((size(i.payments) != 0)) | |
663 | 665 | then throw("No payments expected") | |
664 | 666 | else true | |
665 | 667 | if ((checkPayments == checkPayments)) | |
666 | 668 | then { | |
667 | 669 | let cfg = getPoolConfig() | |
668 | 670 | let factoryCfg = getFactoryConfig() | |
669 | 671 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
670 | 672 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wrong staking address.") | |
671 | 673 | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
672 | 674 | if ((unstakeInv == unstakeInv)) | |
673 | 675 | then { | |
674 | 676 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
675 | 677 | let poolStatus = parseIntValue(r._9) | |
676 | 678 | let state = r._10 | |
677 | 679 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
678 | 680 | then true | |
679 | 681 | else (poolStatus == PoolShutdown)) | |
680 | 682 | then throw(("Blocked by admin: " + toString(poolStatus))) | |
681 | 683 | else true | |
682 | 684 | if ((checkPoolStatus == checkPoolStatus)) | |
683 | 685 | then { | |
684 | 686 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
685 | 687 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
686 | 688 | then state | |
687 | 689 | else throw("Strict value is not equal to itself.") | |
688 | 690 | } | |
689 | 691 | else throw("Strict value is not equal to itself.") | |
690 | 692 | } | |
691 | 693 | else throw("Strict value is not equal to itself.") | |
692 | 694 | } | |
693 | 695 | else throw("Strict value is not equal to itself.") | |
694 | 696 | } | |
695 | 697 | ||
696 | 698 | ||
697 | 699 | ||
698 | 700 | @Callable(i) | |
699 | 701 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
700 | 702 | then throw("permissions denied") | |
701 | 703 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
702 | 704 | ||
703 | 705 | ||
704 | 706 | ||
705 | 707 | @Callable(i) | |
706 | 708 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
707 | 709 | ||
708 | 710 | ||
709 | 711 | ||
710 | 712 | @Callable(i) | |
711 | 713 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
712 | 714 | ||
713 | 715 | ||
714 | 716 | ||
715 | 717 | @Callable(i) | |
716 | 718 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
717 | 719 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
718 | 720 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
719 | 721 | } | |
720 | 722 | ||
721 | 723 | ||
722 | 724 | ||
723 | 725 | @Callable(i) | |
724 | 726 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
725 | 727 | ||
726 | 728 | ||
727 | 729 | ||
728 | 730 | @Callable(i) | |
729 | 731 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
730 | 732 | ||
731 | 733 | ||
732 | 734 | ||
733 | 735 | @Callable(i) | |
734 | 736 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
735 | 737 | ||
736 | 738 | ||
737 | 739 | ||
738 | 740 | @Callable(i) | |
739 | 741 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, userAddress, isEvaluate, emitLp)) | |
740 | 742 | ||
741 | 743 | ||
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 | - | ||
750 | 744 | @Verifier(tx) | |
751 | 745 | func verify () = match tx { | |
752 | 746 | case order: Order => | |
753 | 747 | let matcherPub = getMatcherPubOrFail() | |
754 | 748 | let orderValid = validateMatcherOrderAllowed(order) | |
755 | 749 | let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
756 | 750 | let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub) | |
757 | 751 | if (if (if (orderValid) | |
758 | 752 | then senderValid | |
759 | 753 | else false) | |
760 | 754 | then matcherValid | |
761 | 755 | else false) | |
762 | 756 | then true | |
763 | 757 | else throwOrderError(orderValid, senderValid, matcherValid) | |
764 | 758 | case _ => | |
765 | 759 | let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY) | |
766 | 760 | if ((managerPublic == EMPTY)) | |
767 | 761 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
768 | 762 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic)) | |
769 | 763 | } | |
770 | 764 |
github/deemru/w8io/169f3d6 101.15 ms ◑