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