tx · EeUFt8xJ8orZxVHEpmD3kw2Q2QEGbLytEABruRPviFMH 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.21 20:28 [1844325] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "EeUFt8xJ8orZxVHEpmD3kw2Q2QEGbLytEABruRPviFMH", "fee": 1400000, "feeAssetId": null, "timestamp": 1640107739241, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "2YHFyM4VXTkdJXngPLcB1uXtiu8oQzy9btbFLu3JKckgQ7a6Uo7HvSRnpNw3ensTZH5pH7uoK9FePcnGZoi1jk8u" ], "script": "base64:AAIFAAAAAAAAAGsIAhIECgIICBIECgIBBBIFCgMBAQQSAwoBARIAEgYKBAEBAQgSBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgwKCggBAQIBAggEBAQSBgoECAgBCAAAAD8AAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAACWNhbGNFcnJvcgkAATYAAAABAAAAAAAAD0JAAAAAAAdzY2FsZTE4CQABNgAAAAEADeC2s6dkAAAAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAAAAAAJb25lQmlnSW50CQABNgAAAAEAAAAAAAAAAAEAAAAAA1NFUAIAAAACX18AAAAABUVNUFRZAgAAAAAAAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAA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AAADCAUAAAAFb3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAVvcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAVvcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAADG1hdGNoZXJWYWxpZAkAAfQAAAADCAUAAAAFb3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAVvcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACm1hdGNoZXJQdWIDAwMFAAAACm9yZGVyVmFsaWQFAAAAC3NlbmRlclZhbGlkBwUAAAAMbWF0Y2hlclZhbGlkBwYJAQAAAA90aHJvd09yZGVyRXJyb3IAAAADBQAAAApvcmRlclZhbGlkBQAAAAtzZW5kZXJWYWxpZAUAAAAMbWF0Y2hlclZhbGlkBAAAAA1tYW5hZ2VyUHVibGljCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMJAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAADW1hbmFnZXJQdWJsaWMFAAAABUVNUFRZCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQUAAAANbWFuYWdlclB1YmxpY7GXTZU=", "chainId": 84, "height": 1844325, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FdEU8dvPcNeScAST21tPiTZB1xe8DK5o1JdSjLY89mvi Next: 4zEtJ4QrBCgeQkeD2FZDKZh3yeF9brTEiqjjmRWuXtLd Diff:
Old | New | Differences | |
---|---|---|---|
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 | 479 | if (true) | |
480 | - | then throw(((((((("dCur = " + toString(dCur)) + " dNew = ") + toString(dNew)) + "amBalanceX18 = ") + toString(amBalanceX18)) + "prBalanceX18 = ") + toString(prBalanceX18))) | |
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 | 481 | else if ((dNew > dCur)) | |
482 | 482 | then throw("Incorrect argiments passed. Deposit lead to D decrease.") | |
483 | 483 | else true | |
488 | 488 | let amAdiff = amAssetSwapX18 | |
489 | 489 | let dNew = calcD((toBigInt(amBalance) + toBigInt(fromX18(amAdiff, amDcm))), (toBigInt(prBalance) - toBigInt(fromX18(prAdiff, prDcm))), 50) | |
490 | 490 | if (true) | |
491 | - | then throw | |
491 | + | then throw(((((((("dCur = " + toString(dCur)) + " dNew = ") + toString(dNew)) + " amBalanceX18 - amAdiff = ") + toString((amBalanceX18 - amAdiff))) + "prBalanceX18 = ") + toString(prBalanceX18))) | |
492 | 492 | else if ((dNew > dCur)) | |
493 | 493 | then throw("Incorrect argiments passed. Deposit lead to D decrease.") | |
494 | 494 | else true |
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 | 479 | if (true) | |
480 | - | then throw(((((((("dCur = " + toString(dCur)) + " dNew = ") + toString(dNew)) + "amBalanceX18 = ") + toString(amBalanceX18)) + "prBalanceX18 = ") + toString(prBalanceX18))) | |
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 | 481 | else if ((dNew > dCur)) | |
482 | 482 | then throw("Incorrect argiments passed. Deposit lead to D decrease.") | |
483 | 483 | else true | |
484 | 484 | } | |
485 | 485 | else { | |
486 | 486 | let pmtPrX18 = toX18(pmtAmt, prDcm) | |
487 | 487 | let prAdiff = (prAssetSwapX18 - pmtPrX18) | |
488 | 488 | let amAdiff = amAssetSwapX18 | |
489 | 489 | let dNew = calcD((toBigInt(amBalance) + toBigInt(fromX18(amAdiff, amDcm))), (toBigInt(prBalance) - toBigInt(fromX18(prAdiff, prDcm))), 50) | |
490 | 490 | if (true) | |
491 | - | then throw | |
491 | + | then throw(((((((("dCur = " + toString(dCur)) + " dNew = ") + toString(dNew)) + " amBalanceX18 - amAdiff = ") + toString((amBalanceX18 - amAdiff))) + "prBalanceX18 = ") + toString(prBalanceX18))) | |
492 | 492 | else if ((dNew > dCur)) | |
493 | 493 | then throw("Incorrect argiments passed. Deposit lead to D decrease.") | |
494 | 494 | else true | |
495 | 495 | } | |
496 | 496 | if (!(isValid)) | |
497 | 497 | then throw("Errors.") | |
498 | 498 | else { | |
499 | 499 | let estPut = estimatePutOperation(toBase58String(i.transactionId), 0, inAmtAmount, fromBase58String(amId), inPrAmount, fromBase58String(prId), toString(i.caller), false, true, true) | |
500 | 500 | let emitLpAmt = estPut._2 | |
501 | 501 | let lpAssetId = estPut._7 | |
502 | 502 | let status = parseIntValue(estPut._8) | |
503 | 503 | if (if (if (isGlobalShutdown()) | |
504 | 504 | then true | |
505 | 505 | else (status == PoolPutDisabled)) | |
506 | 506 | then true | |
507 | 507 | else (status == PoolShutdown)) | |
508 | 508 | then throw(("Put operation is blocked by admin. Status = " + toString(status))) | |
509 | 509 | else { | |
510 | 510 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
511 | 511 | if ((emitInv == emitInv)) | |
512 | 512 | then { | |
513 | 513 | let lpTrnsfr = if (autoStake) | |
514 | 514 | then { | |
515 | 515 | let stakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
516 | 516 | if ((stakeInv == stakeInv)) | |
517 | 517 | then nil | |
518 | 518 | else throw("Strict value is not equal to itself.") | |
519 | 519 | } | |
520 | 520 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
521 | 521 | (estPut._9 ++ lpTrnsfr) | |
522 | 522 | } | |
523 | 523 | else throw("Strict value is not equal to itself.") | |
524 | 524 | } | |
525 | 525 | } | |
526 | 526 | } | |
527 | 527 | } | |
528 | 528 | ||
529 | 529 | ||
530 | 530 | ||
531 | 531 | @Callable(i) | |
532 | 532 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
533 | 533 | then throw("Invalid value passed") | |
534 | 534 | else { | |
535 | 535 | let estPut = commonPut(i, 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) = if ((size(i.payments) != 1)) | |
559 | 559 | then throw("exactly 1 payment is 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 | if (if ((outAssetId != amId)) | |
569 | 569 | then (outAssetId != prId) | |
570 | 570 | else false) | |
571 | 571 | then throw(("Incorrect out asset id passed: " + outAssetId)) | |
572 | 572 | else { | |
573 | 573 | let resultAssetId = if ((outAssetId == amId)) | |
574 | 574 | then amId | |
575 | 575 | else prId | |
576 | 576 | let resultAmtAmount = if ((outAssetId == amId)) | |
577 | 577 | then outAmount | |
578 | 578 | else 0 | |
579 | 579 | let resultPrAmount = if ((outAssetId == prId)) | |
580 | 580 | then outAmount | |
581 | 581 | else 0 | |
582 | 582 | let pmt = value(i.payments[0]) | |
583 | 583 | let userAddress = i.caller | |
584 | 584 | let txId58 = toBase58String(i.transactionId) | |
585 | 585 | let pmtAssetId = value(pmt.assetId) | |
586 | 586 | let pmtAmt = pmt.amount | |
587 | 587 | if ((lpId != toBase58String(pmtAssetId))) | |
588 | 588 | then throw("Invalid asset passed.") | |
589 | 589 | else { | |
590 | 590 | let amAssetSwapX18 = toX18(amAssetSwap, amDcm) | |
591 | 591 | let prAssetSwapX18 = toX18(prAssetSwap, prDcm) | |
592 | 592 | let swapPriceX18 = calcPriceBigInt(prAssetSwapX18, amAssetSwapX18) | |
593 | 593 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
594 | 594 | let outAmAmt = r._1 | |
595 | 595 | let outPrAmt = r._2 | |
596 | 596 | let totalR = if ((outAssetId == amId)) | |
597 | 597 | then { | |
598 | 598 | let prSwopPartInAmountAsset = (resultAmtAmount - outAmAmt) | |
599 | 599 | let convRes = fraction(toX18(prSwopPartInAmountAsset, amDcm), swapPriceX18, scale18) | |
600 | 600 | let prAssetDiff = fraction((convRes - prAssetSwapX18), scale8BigInt, prAssetSwapX18) | |
601 | 601 | let amtAsRes = fromX18(fraction(toX18(outPrAmt, prDcm), scale18, swapPriceX18), amDcm) | |
602 | 602 | if (if ((prAssetDiff > calcError)) | |
603 | 603 | then true | |
604 | 604 | else (-(calcError) > prAssetDiff)) | |
605 | 605 | then throw(((("Slippage exeeded the value " + toString(calcError)) + " and equal to ") + toString(prAssetDiff))) | |
606 | 606 | else (amtAsRes + outAmAmt) | |
607 | 607 | } | |
608 | 608 | else { | |
609 | 609 | let amSwopPartInPriceAsset = (resultPrAmount - outPrAmt) | |
610 | 610 | let convRes = fraction(toX18(amSwopPartInPriceAsset, amDcm), scale18, swapPriceX18) | |
611 | 611 | let prAsRes = fromX18(fraction(toX18(outAmAmt, amDcm), swapPriceX18, scale18), prDcm) | |
612 | 612 | let amAssetDiff = fraction((convRes - amAssetSwapX18), scale8BigInt, amAssetSwapX18) | |
613 | 613 | if (if ((amAssetDiff > calcError)) | |
614 | 614 | then true | |
615 | 615 | else (-(calcError) > amAssetDiff)) | |
616 | 616 | then throw(((("Slippage exeeded the value " + toString(calcError)) + " and equal to ") + toString(amAssetDiff))) | |
617 | 617 | else (prAsRes + outPrAmt) | |
618 | 618 | } | |
619 | 619 | let amBalance = getAccBalance(amId) | |
620 | 620 | let amBalanceX18 = toX18(amBalance, amDcm) | |
621 | 621 | let prBalance = getAccBalance(prId) | |
622 | 622 | let prBalanceX18 = toX18(prBalance, prDcm) | |
623 | 623 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
624 | 624 | let curPrice = fromX18(curPriceX18, scale8) | |
625 | 625 | let state = [ScriptTransfer(userAddress, totalR, if ((resultAssetId == "WAVES")) | |
626 | 626 | then unit | |
627 | 627 | 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 | 628 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
629 | 629 | if ((burn == burn)) | |
630 | 630 | then state | |
631 | 631 | else throw("Strict value is not equal to itself.") | |
632 | 632 | } | |
633 | 633 | } | |
634 | 634 | } | |
635 | 635 | ||
636 | 636 | ||
637 | 637 | ||
638 | 638 | @Callable(i) | |
639 | 639 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
640 | 640 | let res = commonGet(i) | |
641 | 641 | let outAmAmt = res._1 | |
642 | 642 | let outPrAmt = res._2 | |
643 | 643 | let pmtAmt = res._3 | |
644 | 644 | let pmtAssetId = res._4 | |
645 | 645 | let state = res._5 | |
646 | 646 | if ((noLessThenAmtAsset > outAmAmt)) | |
647 | 647 | then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
648 | 648 | else if ((noLessThenPriceAsset > outPrAmt)) | |
649 | 649 | then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
650 | 650 | else { | |
651 | 651 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
652 | 652 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
653 | 653 | then state | |
654 | 654 | else throw("Strict value is not equal to itself.") | |
655 | 655 | } | |
656 | 656 | } | |
657 | 657 | ||
658 | 658 | ||
659 | 659 | ||
660 | 660 | @Callable(i) | |
661 | 661 | func unstakeAndGet (amount) = { | |
662 | 662 | let checkPayments = if ((size(i.payments) != 0)) | |
663 | 663 | then throw("No payments are expected") | |
664 | 664 | else true | |
665 | 665 | if ((checkPayments == checkPayments)) | |
666 | 666 | then { | |
667 | 667 | let cfg = getPoolConfig() | |
668 | 668 | let factoryCfg = getFactoryConfig() | |
669 | 669 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
670 | 670 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Error. Incorrect staking address.") | |
671 | 671 | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
672 | 672 | if ((unstakeInv == unstakeInv)) | |
673 | 673 | then { | |
674 | 674 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
675 | 675 | let poolStatus = parseIntValue(res._9) | |
676 | 676 | let state = res._10 | |
677 | 677 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
678 | 678 | then true | |
679 | 679 | else (poolStatus == PoolShutdown)) | |
680 | 680 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
681 | 681 | else true | |
682 | 682 | if ((checkPoolStatus == checkPoolStatus)) | |
683 | 683 | then { | |
684 | 684 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
685 | 685 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
686 | 686 | then state | |
687 | 687 | else throw("Strict value is not equal to itself.") | |
688 | 688 | } | |
689 | 689 | else throw("Strict value is not equal to itself.") | |
690 | 690 | } | |
691 | 691 | else throw("Strict value is not equal to itself.") | |
692 | 692 | } | |
693 | 693 | else throw("Strict value is not equal to itself.") | |
694 | 694 | } | |
695 | 695 | ||
696 | 696 | ||
697 | 697 | ||
698 | 698 | @Callable(i) | |
699 | 699 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
700 | 700 | then throw("permissions denied") | |
701 | 701 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
702 | 702 | ||
703 | 703 | ||
704 | 704 | ||
705 | 705 | @Callable(i) | |
706 | 706 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
707 | 707 | ||
708 | 708 | ||
709 | 709 | ||
710 | 710 | @Callable(i) | |
711 | 711 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
712 | 712 | ||
713 | 713 | ||
714 | 714 | ||
715 | 715 | @Callable(i) | |
716 | 716 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
717 | 717 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
718 | 718 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
719 | 719 | } | |
720 | 720 | ||
721 | 721 | ||
722 | 722 | ||
723 | 723 | @Callable(i) | |
724 | 724 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
725 | 725 | ||
726 | 726 | ||
727 | 727 | ||
728 | 728 | @Callable(i) | |
729 | 729 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
730 | 730 | ||
731 | 731 | ||
732 | 732 | ||
733 | 733 | @Callable(i) | |
734 | 734 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
735 | 735 | ||
736 | 736 | ||
737 | 737 | ||
738 | 738 | @Callable(i) | |
739 | 739 | 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 | 740 | ||
741 | 741 | ||
742 | 742 | ||
743 | 743 | @Callable(i) | |
744 | 744 | func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
745 | 745 | let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress)) | |
746 | 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 | 747 | } | |
748 | 748 | ||
749 | 749 | ||
750 | 750 | @Verifier(tx) | |
751 | 751 | func verify () = match tx { | |
752 | 752 | case order: Order => | |
753 | 753 | let matcherPub = getMatcherPubOrFail() | |
754 | 754 | let orderValid = validateMatcherOrderAllowed(order) | |
755 | 755 | let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
756 | 756 | let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub) | |
757 | 757 | if (if (if (orderValid) | |
758 | 758 | then senderValid | |
759 | 759 | else false) | |
760 | 760 | then matcherValid | |
761 | 761 | else false) | |
762 | 762 | then true | |
763 | 763 | else throwOrderError(orderValid, senderValid, matcherValid) | |
764 | 764 | case _ => | |
765 | 765 | let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY) | |
766 | 766 | if ((managerPublic == EMPTY)) | |
767 | 767 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
768 | 768 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic)) | |
769 | 769 | } | |
770 | 770 |
github/deemru/w8io/026f985 75.93 ms ◑