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