tx · 6uikAxNDkkgxir7c1yqFs9qKep9hzSRC5tEHaBAjHs2H 3N3avUq7EiGLkB6dg8a63qruAgUWS3ATXH3: -0.01000000 Waves 2022.04.22 09:55 [2019388] smart account 3N3avUq7EiGLkB6dg8a63qruAgUWS3ATXH3 > SELF 0.00000000 Waves
{ "type": 13, "id": "6uikAxNDkkgxir7c1yqFs9qKep9hzSRC5tEHaBAjHs2H", "fee": 1000000, "feeAssetId": null, "timestamp": 1650610584808, "version": 1, "sender": "3N3avUq7EiGLkB6dg8a63qruAgUWS3ATXH3", "senderPublicKey": "5F8hEX3VaVwDN5XKYtjUCQqfZRuNRNWvHqdUQbZcigck", "proofs": [ "3M1XuPJAPng7a14c9yULCVbnew4nGVwiJwcWr6eKQPYQCVZ5WZ4LSUvHz8oMegeE6KD5SN1MzYZHPk2Yf6EYAkWz" ], "script": "base64:AAIFAAAAAAAAAHMIAhIDCgEIEgMKAQgSABIECgIBBBIDCgEBEgASBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAgEBEgQKAggBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgASAwoBARIDCgEBEgQKAggBAAAARAAAAAAKbFBkZWNpbWFscwAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQa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kEAAAADG1hdGNoZXJWYWxpZAkAAfQAAAADCAUAAAAFb3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAVvcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACm1hdGNoZXJQdWIDAwMFAAAACm9yZGVyVmFsaWQFAAAAC3NlbmRlclZhbGlkBwUAAAAMbWF0Y2hlclZhbGlkBwYJAQAAAA90aHJvd09yZGVyRXJyb3IAAAADBQAAAApvcmRlclZhbGlkBQAAAAtzZW5kZXJWYWxpZAUAAAAMbWF0Y2hlclZhbGlkBAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDEJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDEFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5c/DYWQ==", "chainId": 84, "height": 2019388, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let lPdecimals = 8 | |
5 | + | ||
6 | + | let scale8 = 100000000 | |
7 | + | ||
8 | + | let scale8BigInt = toBigInt(100000000) | |
9 | + | ||
10 | + | let scale18 = toBigInt(1000000000000000000) | |
11 | + | ||
12 | + | let zeroBigInt = toBigInt(0) | |
13 | + | ||
14 | + | let SEP = "__" | |
15 | + | ||
16 | + | let PoolActive = 1 | |
17 | + | ||
18 | + | let PoolPutDisabled = 2 | |
19 | + | ||
20 | + | let PoolMatcherDisabled = 3 | |
21 | + | ||
22 | + | let PoolShutdown = 4 | |
23 | + | ||
24 | + | let idxPoolAddress = 1 | |
25 | + | ||
26 | + | let idxPoolStatus = 2 | |
27 | + | ||
28 | + | let idxPoolLPAssetId = 3 | |
29 | + | ||
30 | + | let idxAmtAssetId = 4 | |
31 | + | ||
32 | + | let idxPriceAssetId = 5 | |
33 | + | ||
34 | + | let idxAmtAssetDcm = 6 | |
35 | + | ||
36 | + | let idxPriceAssetDcm = 7 | |
37 | + | ||
38 | + | let idxIAmtAssetId = 8 | |
39 | + | ||
40 | + | let idxIPriceAssetId = 9 | |
41 | + | ||
42 | + | let idxLPAssetDcm = 10 | |
43 | + | ||
44 | + | let idxPoolAmtAssetAmt = 1 | |
45 | + | ||
46 | + | let idxPoolPriceAssetAmt = 2 | |
47 | + | ||
48 | + | let idxPoolLPAssetAmt = 3 | |
49 | + | ||
50 | + | let idxFactoryStakingContract = 1 | |
51 | + | ||
52 | + | let idxFactorySlippageContract = 7 | |
53 | + | ||
54 | + | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
55 | + | ||
56 | + | ||
57 | + | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
58 | + | ||
59 | + | ||
60 | + | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
61 | + | ||
62 | + | ||
63 | + | func abs (val) = if ((zeroBigInt > val)) | |
64 | + | then -(val) | |
65 | + | else val | |
66 | + | ||
67 | + | ||
68 | + | func fc () = "%s__factoryContract" | |
69 | + | ||
70 | + | ||
71 | + | func mpk () = "%s__managerPublicKey" | |
72 | + | ||
73 | + | ||
74 | + | func pmpk () = "%s__pendingManagerPublicKey" | |
75 | + | ||
76 | + | ||
77 | + | func pl () = "%s%s__price__last" | |
78 | + | ||
79 | + | ||
80 | + | func ph (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
81 | + | ||
82 | + | ||
83 | + | func pau (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
84 | + | ||
85 | + | ||
86 | + | func gau (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
87 | + | ||
88 | + | ||
89 | + | func aa () = "%s__amountAsset" | |
90 | + | ||
91 | + | ||
92 | + | func pa () = "%s__priceAsset" | |
93 | + | ||
94 | + | ||
95 | + | func keyFactoryConfig () = "%s__factoryConfig" | |
96 | + | ||
97 | + | ||
98 | + | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
99 | + | ||
100 | + | ||
101 | + | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
102 | + | ||
103 | + | ||
104 | + | func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config") | |
105 | + | ||
106 | + | ||
107 | + | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
108 | + | ||
109 | + | ||
110 | + | func keyAllPoolsShutdown () = "%s__shutdown" | |
111 | + | ||
112 | + | ||
113 | + | func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress) | |
114 | + | ||
115 | + | ||
116 | + | func throwOrderError (orderValid,senderValid,matcherValid) = throw(((((("order validation failed: orderValid=" + toString(orderValid)) + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid))) | |
117 | + | ||
118 | + | ||
119 | + | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
120 | + | ||
121 | + | ||
122 | + | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
123 | + | ||
124 | + | ||
125 | + | let factoryContract = addressFromStringValue(getStringOrFail(this, fc())) | |
126 | + | ||
127 | + | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
128 | + | ||
129 | + | ||
130 | + | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
131 | + | ||
132 | + | ||
133 | + | func getPoolConfig () = { | |
134 | + | let amtAsset = getStringOrFail(this, aa()) | |
135 | + | let priceAsset = getStringOrFail(this, pa()) | |
136 | + | let iPriceAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAsset)) | |
137 | + | let iAmtAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAsset)) | |
138 | + | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), SEP) | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
143 | + | ||
144 | + | ||
145 | + | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp,slipageAmtAssetAmt,slipagePriceAssetAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageTolerancePassedByUser), toString(slippageToleranceReal), toString(txHeight), toString(txTimestamp), toString(slipageAmtAssetAmt), toString(slipagePriceAssetAmt)], SEP) | |
146 | + | ||
147 | + | ||
148 | + | 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) | |
149 | + | ||
150 | + | ||
151 | + | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
152 | + | then wavesBalance(this).available | |
153 | + | else assetBalance(this, fromBase58String(assetId)) | |
154 | + | ||
155 | + | ||
156 | + | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
157 | + | ||
158 | + | ||
159 | + | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
160 | + | let amtAssetAmtX18 = toX18(amAmt, amAssetDcm) | |
161 | + | let priceAssetAmtX18 = toX18(prAmt, prAssetDcm) | |
162 | + | calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18) | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | func calcPrices (amAmt,prAmt,lpAmt) = { | |
167 | + | let cfg = getPoolConfig() | |
168 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
169 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
170 | + | let priceX18 = privateCalcPrice(amtAssetDcm, priceAssetDcm, amAmt, prAmt) | |
171 | + | let amAmtX18 = toX18(amAmt, amtAssetDcm) | |
172 | + | let prAmtX18 = toX18(prAmt, priceAssetDcm) | |
173 | + | let lpAmtX18 = toX18(lpAmt, scale8) | |
174 | + | let lpPriceInAmAssetX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
175 | + | let lpPriceInPrAssetX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
176 | + | [priceX18, lpPriceInAmAssetX18, lpPriceInPrAssetX18] | |
177 | + | } | |
178 | + | ||
179 | + | ||
180 | + | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
181 | + | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
182 | + | [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)] | |
183 | + | } | |
184 | + | ||
185 | + | ||
186 | + | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
187 | + | let cfg = getPoolConfig() | |
188 | + | let lpAssetId = cfg[idxPoolLPAssetId] | |
189 | + | let amAssetId = cfg[idxAmtAssetId] | |
190 | + | let prAssetId = cfg[idxPriceAssetId] | |
191 | + | let amAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
192 | + | let prAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
193 | + | let poolStatus = cfg[idxPoolStatus] | |
194 | + | let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpAssetId)), (("Asset " + lpAssetId) + " doesn't exist")).quantity | |
195 | + | if ((lpAssetId != pmtAssetId)) | |
196 | + | then throw("Invalid asset passed.") | |
197 | + | else { | |
198 | + | let amBalance = getAccBalance(amAssetId) | |
199 | + | let amBalanceX18 = toX18(amBalance, amAssetDcm) | |
200 | + | let prBalance = getAccBalance(prAssetId) | |
201 | + | let prBalanceX18 = toX18(prBalance, prAssetDcm) | |
202 | + | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
203 | + | let curPrice = fromX18(curPriceX18, scale8) | |
204 | + | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
205 | + | let lpEmissionX18 = toX18(lpEmission, scale8) | |
206 | + | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
207 | + | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
208 | + | let outAmAmt = fromX18(outAmAmtX18, amAssetDcm) | |
209 | + | let outPrAmt = fromX18(outPrAmtX18, prAssetDcm) | |
210 | + | let state = if ((txId58 == "")) | |
211 | + | then nil | |
212 | + | else [ScriptTransfer(userAddress, outAmAmt, if ((amAssetId == "WAVES")) | |
213 | + | then unit | |
214 | + | else fromBase58String(amAssetId)), ScriptTransfer(userAddress, outPrAmt, if ((prAssetId == "WAVES")) | |
215 | + | then unit | |
216 | + | else fromBase58String(prAssetId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)] | |
217 | + | $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state) | |
218 | + | } | |
219 | + | } | |
220 | + | ||
221 | + | ||
222 | + | func estimatePutOperation (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = { | |
223 | + | let cfg = getPoolConfig() | |
224 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
225 | + | let amAssetIdStr = cfg[idxAmtAssetId] | |
226 | + | let prAssetIdStr = cfg[idxPriceAssetId] | |
227 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
228 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
229 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
230 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
231 | + | let poolStatus = cfg[idxPoolStatus] | |
232 | + | let lpEmission = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
233 | + | let inAmAssetIdStr = toBase58String(valueOrElse(inAmAssetId, fromBase58String("WAVES"))) | |
234 | + | let inPrAssetIdStr = toBase58String(valueOrElse(inPrAssetId, fromBase58String("WAVES"))) | |
235 | + | if (if ((amAssetIdStr != inAmAssetIdStr)) | |
236 | + | then true | |
237 | + | else (prAssetIdStr != inPrAssetIdStr)) | |
238 | + | then throw("Invalid amt or price asset passed.") | |
239 | + | else { | |
240 | + | let amBalance = if (isEvaluate) | |
241 | + | then getAccBalance(amAssetIdStr) | |
242 | + | else (getAccBalance(amAssetIdStr) - inAmAssetAmt) | |
243 | + | let prBalance = if (isEvaluate) | |
244 | + | then getAccBalance(prAssetIdStr) | |
245 | + | else (getAccBalance(prAssetIdStr) - inPrAssetAmt) | |
246 | + | let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm) | |
247 | + | let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm) | |
248 | + | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
249 | + | let amBalanceX18 = toX18(amBalance, amtAssetDcm) | |
250 | + | let prBalanceX18 = toX18(prBalance, priceAssetDcm) | |
251 | + | let res = if ((lpEmission == 0)) | |
252 | + | then { | |
253 | + | let curPriceX18 = zeroBigInt | |
254 | + | let slippageX18 = zeroBigInt | |
255 | + | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
256 | + | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtAssetDcm), fromX18(inPrAssetAmtX18, priceAssetDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
257 | + | } | |
258 | + | else { | |
259 | + | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
260 | + | let slippageX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
261 | + | let slippageToleranceX18 = toX18(slippageTolerance, scale8) | |
262 | + | if (if ((curPriceX18 != zeroBigInt)) | |
263 | + | then (slippageX18 > slippageToleranceX18) | |
264 | + | else false) | |
265 | + | then throw(((("Price slippage " + toString(slippageX18)) + " exceeded the passed limit of ") + toString(slippageToleranceX18))) | |
266 | + | else { | |
267 | + | let lpEmissionX18 = toX18(lpEmission, scale8) | |
268 | + | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
269 | + | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
270 | + | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
271 | + | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
272 | + | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
273 | + | let expAmtAssetAmtX18 = expectedAmts._1 | |
274 | + | let expPriceAssetAmtX18 = expectedAmts._2 | |
275 | + | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
276 | + | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtAssetDcm), fromX18(expPriceAssetAmtX18, priceAssetDcm), curPriceX18, slippageX18) | |
277 | + | } | |
278 | + | } | |
279 | + | let calcLpAmt = res._1 | |
280 | + | let calcAmAssetPmt = res._2 | |
281 | + | let calcPrAssetPmt = res._3 | |
282 | + | let curPrice = fromX18(res._4, scale8) | |
283 | + | let slippageCalc = fromX18(res._5, scale8) | |
284 | + | if ((0 >= calcLpAmt)) | |
285 | + | then throw("Invalid calculations. LP calculated is less than zero.") | |
286 | + | else { | |
287 | + | let emitLpAmt = if (!(emitLp)) | |
288 | + | then 0 | |
289 | + | else calcLpAmt | |
290 | + | let amDiff = (inAmAssetAmt - calcAmAssetPmt) | |
291 | + | let prDiff = (inPrAssetAmt - calcPrAssetPmt) | |
292 | + | let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippageTolerance, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
293 | + | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmAssetId, inPrAssetId) | |
294 | + | } | |
295 | + | } | |
296 | + | } | |
297 | + | ||
298 | + | ||
299 | + | func validateMatcherOrderAllowed (order) = { | |
300 | + | let cfg = getPoolConfig() | |
301 | + | let amtAssetId = cfg[idxAmtAssetId] | |
302 | + | let priceAssetId = cfg[idxPriceAssetId] | |
303 | + | let poolStatus = parseIntValue(cfg[idxPoolStatus]) | |
304 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
305 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
306 | + | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
307 | + | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
308 | + | let curPriceX18 = if ((order.orderType == Buy)) | |
309 | + | then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance) | |
310 | + | else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance) | |
311 | + | let curPrice = fromX18(curPriceX18, scale8) | |
312 | + | if (if (if (isGlobalShutdown()) | |
313 | + | then true | |
314 | + | else (poolStatus == PoolMatcherDisabled)) | |
315 | + | then true | |
316 | + | else (poolStatus == PoolShutdown)) | |
317 | + | then throw("Exchange operations disabled") | |
318 | + | else { | |
319 | + | let orderAmtAsset = order.assetPair.amountAsset | |
320 | + | let orderAmtAssetStr = if ((orderAmtAsset == unit)) | |
321 | + | then "WAVES" | |
322 | + | else toBase58String(value(orderAmtAsset)) | |
323 | + | let orderPriceAsset = order.assetPair.priceAsset | |
324 | + | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
325 | + | then "WAVES" | |
326 | + | else toBase58String(value(orderPriceAsset)) | |
327 | + | if (if ((orderAmtAssetStr != amtAssetId)) | |
328 | + | then true | |
329 | + | else (orderPriceAssetStr != priceAssetId)) | |
330 | + | then throw("Wrong order assets.") | |
331 | + | else { | |
332 | + | let orderPrice = order.price | |
333 | + | let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm) | |
334 | + | let castedOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
335 | + | let isOrderPriceValid = if ((order.orderType == Buy)) | |
336 | + | then (curPrice >= castedOrderPrice) | |
337 | + | else (castedOrderPrice >= curPrice) | |
338 | + | true | |
339 | + | } | |
340 | + | } | |
341 | + | } | |
342 | + | ||
343 | + | ||
344 | + | func commonGet (i) = if ((size(i.payments) != 1)) | |
345 | + | then throw("exactly 1 payment is expected") | |
346 | + | else { | |
347 | + | let pmt = value(i.payments[0]) | |
348 | + | let pmtAssetId = value(pmt.assetId) | |
349 | + | let pmtAmt = pmt.amount | |
350 | + | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
351 | + | let outAmAmt = res._1 | |
352 | + | let outPrAmt = res._2 | |
353 | + | let poolStatus = parseIntValue(res._9) | |
354 | + | let state = res._10 | |
355 | + | if (if (isGlobalShutdown()) | |
356 | + | then true | |
357 | + | else (poolStatus == PoolShutdown)) | |
358 | + | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
359 | + | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
360 | + | } | |
361 | + | ||
362 | + | ||
363 | + | func commonPut (i,slippageTolerance,emitLp) = if ((size(i.payments) != 2)) | |
364 | + | then throw("exactly 2 payments are expected") | |
365 | + | else { | |
366 | + | let amAssetPmt = value(i.payments[0]) | |
367 | + | let prAssetPmt = value(i.payments[1]) | |
368 | + | let estPut = estimatePutOperation(toBase58String(i.transactionId), slippageTolerance, amAssetPmt.amount, amAssetPmt.assetId, prAssetPmt.amount, prAssetPmt.assetId, toString(i.caller), false, emitLp) | |
369 | + | let poolStatus = parseIntValue(estPut._8) | |
370 | + | if (if (if (isGlobalShutdown()) | |
371 | + | then true | |
372 | + | else (poolStatus == PoolPutDisabled)) | |
373 | + | then true | |
374 | + | else (poolStatus == PoolShutdown)) | |
375 | + | then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus))) | |
376 | + | else estPut | |
377 | + | } | |
378 | + | ||
379 | + | ||
380 | + | func managerPublicKeyOrUnit () = match getString(mpk()) { | |
381 | + | case s: String => | |
382 | + | fromBase58String(s) | |
383 | + | case _: Unit => | |
384 | + | unit | |
385 | + | case _ => | |
386 | + | throw("Match error") | |
387 | + | } | |
388 | + | ||
389 | + | ||
390 | + | func pendingManagerPublicKeyOrUnit () = match getString(pmpk()) { | |
391 | + | case s: String => | |
392 | + | fromBase58String(s) | |
393 | + | case _: Unit => | |
394 | + | unit | |
395 | + | case _ => | |
396 | + | throw("Match error") | |
397 | + | } | |
398 | + | ||
399 | + | ||
400 | + | func mustManager (i) = { | |
401 | + | let pd = throw("Permission denied") | |
402 | + | match managerPublicKeyOrUnit() { | |
403 | + | case pk: ByteVector => | |
404 | + | if ((i.callerPublicKey == pk)) | |
405 | + | then true | |
406 | + | else pd | |
407 | + | case _: Unit => | |
408 | + | if ((i.caller == this)) | |
409 | + | then true | |
410 | + | else pd | |
411 | + | case _ => | |
412 | + | throw("Match error") | |
413 | + | } | |
414 | + | } | |
415 | + | ||
416 | + | ||
417 | + | @Callable(i) | |
418 | + | func constructor (factoryContract) = { | |
419 | + | let checkCaller = mustManager(i) | |
420 | + | if ((checkCaller == checkCaller)) | |
421 | + | then [StringEntry(fc(), factoryContract)] | |
422 | + | else throw("Strict value is not equal to itself.") | |
423 | + | } | |
424 | + | ||
425 | + | ||
426 | + | ||
427 | + | @Callable(i) | |
428 | + | func setManager (pendingManagerPublicKey) = { | |
429 | + | let checkCaller = mustManager(i) | |
430 | + | if ((checkCaller == checkCaller)) | |
431 | + | then { | |
432 | + | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
433 | + | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
434 | + | then [StringEntry(pmpk(), pendingManagerPublicKey)] | |
435 | + | else throw("Strict value is not equal to itself.") | |
436 | + | } | |
437 | + | else throw("Strict value is not equal to itself.") | |
438 | + | } | |
439 | + | ||
440 | + | ||
441 | + | ||
442 | + | @Callable(i) | |
443 | + | func confirmManager () = { | |
444 | + | let pm = pendingManagerPublicKeyOrUnit() | |
445 | + | let hasPM = if (isDefined(pm)) | |
446 | + | then true | |
447 | + | else throw("No pending manager") | |
448 | + | if ((hasPM == hasPM)) | |
449 | + | then { | |
450 | + | let checkPM = if ((i.callerPublicKey == value(pm))) | |
451 | + | then true | |
452 | + | else throw("You are not pending manager") | |
453 | + | if ((checkPM == checkPM)) | |
454 | + | then [StringEntry(mpk(), toBase58String(value(pm))), DeleteEntry(pmpk())] | |
455 | + | else throw("Strict value is not equal to itself.") | |
456 | + | } | |
457 | + | else throw("Strict value is not equal to itself.") | |
458 | + | } | |
459 | + | ||
460 | + | ||
461 | + | ||
462 | + | @Callable(i) | |
463 | + | func put (slippageTolerance,shouldAutoStake) = { | |
464 | + | let factoryCfg = getFactoryConfig() | |
465 | + | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.") | |
466 | + | let slippageContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactorySlippageContract]), "Error. Incorrect slippage contract address.") | |
467 | + | if ((0 > slippageTolerance)) | |
468 | + | then throw("Invalid slippageTolerance passed") | |
469 | + | else { | |
470 | + | let estPut = commonPut(i, slippageTolerance, true) | |
471 | + | let emitLpAmt = estPut._2 | |
472 | + | let lpAssetId = estPut._7 | |
473 | + | let state = estPut._9 | |
474 | + | let amDiff = estPut._10 | |
475 | + | let prDiff = estPut._11 | |
476 | + | let amId = estPut._12 | |
477 | + | let prId = estPut._13 | |
478 | + | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
479 | + | if ((emitInv == emitInv)) | |
480 | + | then { | |
481 | + | let emitInvLegacy = match emitInv { | |
482 | + | case legacyFactoryContract: Address => | |
483 | + | invoke(legacyFactoryContract, "emit", [emitLpAmt], nil) | |
484 | + | case _ => | |
485 | + | unit | |
486 | + | } | |
487 | + | if ((emitInvLegacy == emitInvLegacy)) | |
488 | + | then { | |
489 | + | let slippageAInv = if ((amDiff > 0)) | |
490 | + | then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)]) | |
491 | + | else nil | |
492 | + | if ((slippageAInv == slippageAInv)) | |
493 | + | then { | |
494 | + | let slippagePInv = if ((prDiff > 0)) | |
495 | + | then invoke(slippageContract, "put", nil, [AttachedPayment(prId, prDiff)]) | |
496 | + | else nil | |
497 | + | if ((slippagePInv == slippagePInv)) | |
498 | + | then { | |
499 | + | let lpTransfer = if (shouldAutoStake) | |
500 | + | then { | |
501 | + | let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
502 | + | if ((slpStakeInv == slpStakeInv)) | |
503 | + | then nil | |
504 | + | else throw("Strict value is not equal to itself.") | |
505 | + | } | |
506 | + | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
507 | + | (state ++ lpTransfer) | |
508 | + | } | |
509 | + | else throw("Strict value is not equal to itself.") | |
510 | + | } | |
511 | + | else throw("Strict value is not equal to itself.") | |
512 | + | } | |
513 | + | else throw("Strict value is not equal to itself.") | |
514 | + | } | |
515 | + | else throw("Strict value is not equal to itself.") | |
516 | + | } | |
517 | + | } | |
518 | + | ||
519 | + | ||
520 | + | ||
521 | + | @Callable(i) | |
522 | + | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
523 | + | then throw("Invalid value passed") | |
524 | + | else { | |
525 | + | let estPut = commonPut(i, maxSlippage, false) | |
526 | + | estPut._9 | |
527 | + | } | |
528 | + | ||
529 | + | ||
530 | + | ||
531 | + | @Callable(i) | |
532 | + | func get () = { | |
533 | + | let res = commonGet(i) | |
534 | + | let outAmtAmt = res._1 | |
535 | + | let outPrAmt = res._2 | |
536 | + | let pmtAmt = res._3 | |
537 | + | let pmtAssetId = res._4 | |
538 | + | let state = res._5 | |
539 | + | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
540 | + | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
541 | + | then state | |
542 | + | else throw("Strict value is not equal to itself.") | |
543 | + | } | |
544 | + | ||
545 | + | ||
546 | + | ||
547 | + | @Callable(i) | |
548 | + | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
549 | + | let res = commonGet(i) | |
550 | + | let outAmAmt = res._1 | |
551 | + | let outPrAmt = res._2 | |
552 | + | let pmtAmt = res._3 | |
553 | + | let pmtAssetId = res._4 | |
554 | + | let state = res._5 | |
555 | + | if ((noLessThenAmtAsset > outAmAmt)) | |
556 | + | then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
557 | + | else if ((noLessThenPriceAsset > outPrAmt)) | |
558 | + | then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
559 | + | else { | |
560 | + | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
561 | + | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
562 | + | then state | |
563 | + | else throw("Strict value is not equal to itself.") | |
564 | + | } | |
565 | + | } | |
566 | + | ||
567 | + | ||
568 | + | ||
569 | + | @Callable(i) | |
570 | + | func unstakeAndGet (amount) = { | |
571 | + | let checkPayments = if ((size(i.payments) != 0)) | |
572 | + | then throw("No payments are expected") | |
573 | + | else true | |
574 | + | if ((checkPayments == checkPayments)) | |
575 | + | then { | |
576 | + | let cfg = getPoolConfig() | |
577 | + | let factoryCfg = getFactoryConfig() | |
578 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
579 | + | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.") | |
580 | + | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
581 | + | if ((unstakeInv == unstakeInv)) | |
582 | + | then { | |
583 | + | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
584 | + | let poolStatus = parseIntValue(res._9) | |
585 | + | let state = res._10 | |
586 | + | let checkPoolStatus = if (if (isGlobalShutdown()) | |
587 | + | then true | |
588 | + | else (poolStatus == PoolShutdown)) | |
589 | + | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
590 | + | else true | |
591 | + | if ((checkPoolStatus == checkPoolStatus)) | |
592 | + | then { | |
593 | + | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
594 | + | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
595 | + | then state | |
596 | + | else throw("Strict value is not equal to itself.") | |
597 | + | } | |
598 | + | else throw("Strict value is not equal to itself.") | |
599 | + | } | |
600 | + | else throw("Strict value is not equal to itself.") | |
601 | + | } | |
602 | + | else throw("Strict value is not equal to itself.") | |
603 | + | } | |
604 | + | ||
605 | + | ||
606 | + | ||
607 | + | @Callable(i) | |
608 | + | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
609 | + | then throw("permissions denied") | |
610 | + | else $Tuple2([StringEntry(aa(), amtAssetStr), StringEntry(pa(), priceAssetStr)], "success") | |
611 | + | ||
612 | + | ||
613 | + | ||
614 | + | @Callable(i) | |
615 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
616 | + | ||
617 | + | ||
618 | + | ||
619 | + | @Callable(i) | |
620 | + | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
621 | + | ||
622 | + | ||
623 | + | ||
624 | + | @Callable(i) | |
625 | + | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
626 | + | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
627 | + | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
628 | + | } | |
629 | + | ||
630 | + | ||
631 | + | ||
632 | + | @Callable(i) | |
633 | + | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
634 | + | ||
635 | + | ||
636 | + | ||
637 | + | @Callable(i) | |
638 | + | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
639 | + | ||
640 | + | ||
641 | + | ||
642 | + | @Callable(i) | |
643 | + | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
644 | + | ||
645 | + | ||
646 | + | ||
647 | + | @Callable(i) | |
648 | + | func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp)) | |
649 | + | ||
650 | + | ||
651 | + | ||
652 | + | @Callable(i) | |
653 | + | func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
654 | + | let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress)) | |
655 | + | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
656 | + | } | |
657 | + | ||
658 | + | ||
659 | + | ||
660 | + | @Callable(i) | |
661 | + | func statsREADONLY () = { | |
662 | + | let cfg = getPoolConfig() | |
663 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
664 | + | let amtAssetId = cfg[idxAmtAssetId] | |
665 | + | let priceAssetId = cfg[idxPriceAssetId] | |
666 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
667 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
668 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
669 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
670 | + | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
671 | + | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
672 | + | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
673 | + | let pricesList = if ((poolLPBalance == 0)) | |
674 | + | then [zeroBigInt, zeroBigInt, zeroBigInt] | |
675 | + | else calcPrices(accAmtAssetBalance, accPriceAssetBalance, poolLPBalance) | |
676 | + | let curPrice = 0 | |
677 | + | let lpAmtAssetShare = fromX18(pricesList[1], scale8) | |
678 | + | let lpPriceAssetShare = fromX18(pricesList[2], scale8) | |
679 | + | let poolWeight = value(getInteger(factoryContract, keyPoolWeight(toString(this)))) | |
680 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP)) | |
681 | + | } | |
682 | + | ||
683 | + | ||
684 | + | ||
685 | + | @Callable(i) | |
686 | + | func evaluatePutByAmountAssetREADONLY (inAmAssetAmt) = { | |
687 | + | let cfg = getPoolConfig() | |
688 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
689 | + | let amAssetIdStr = cfg[idxAmtAssetId] | |
690 | + | let amAssetId = fromBase58String(amAssetIdStr) | |
691 | + | let prAssetIdStr = cfg[idxPriceAssetId] | |
692 | + | let prAssetId = fromBase58String(prAssetIdStr) | |
693 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
694 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
695 | + | let poolStatus = cfg[idxPoolStatus] | |
696 | + | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
697 | + | let accAmtAssetBalance = getAccBalance(amAssetIdStr) | |
698 | + | let accPriceAssetBalance = getAccBalance(prAssetIdStr) | |
699 | + | let amtAssetAmtX18 = toX18(accAmtAssetBalance, amtAssetDcm) | |
700 | + | let priceAssetAmtX18 = toX18(accPriceAssetBalance, priceAssetDcm) | |
701 | + | let curPriceX18 = if ((poolLPBalance == 0)) | |
702 | + | then zeroBigInt | |
703 | + | else calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18) | |
704 | + | let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm) | |
705 | + | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
706 | + | let inPrAssetAmt = fromX18(inPrAssetAmtX18, priceAssetDcm) | |
707 | + | let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false) | |
708 | + | let calcLpAmt = estPut._1 | |
709 | + | let curPriceCalc = estPut._3 | |
710 | + | let amBalance = estPut._4 | |
711 | + | let prBalance = estPut._5 | |
712 | + | let lpEmission = estPut._6 | |
713 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(fromX18(curPriceX18, scale8)), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
714 | + | } | |
715 | + | ||
716 | + | ||
717 | + | ||
718 | + | @Callable(i) | |
719 | + | func evaluatePutByPriceAssetREADONLY (inPrAssetAmt) = { | |
720 | + | let cfg = getPoolConfig() | |
721 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
722 | + | let amAssetIdStr = cfg[idxAmtAssetId] | |
723 | + | let amAssetId = fromBase58String(amAssetIdStr) | |
724 | + | let prAssetIdStr = cfg[idxPriceAssetId] | |
725 | + | let prAssetId = fromBase58String(prAssetIdStr) | |
726 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
727 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
728 | + | let poolStatus = cfg[idxPoolStatus] | |
729 | + | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
730 | + | let amBalanceRaw = getAccBalance(amAssetIdStr) | |
731 | + | let prBalanceRaw = getAccBalance(prAssetIdStr) | |
732 | + | let amBalanceRawX18 = toX18(amBalanceRaw, amtAssetDcm) | |
733 | + | let prBalanceRawX18 = toX18(prBalanceRaw, priceAssetDcm) | |
734 | + | let curPriceX18 = if ((poolLPBalance == 0)) | |
735 | + | then zeroBigInt | |
736 | + | else calcPriceBigInt(prBalanceRawX18, amBalanceRawX18) | |
737 | + | let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm) | |
738 | + | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
739 | + | let inAmAssetAmt = fromX18(inAmAssetAmtX18, amtAssetDcm) | |
740 | + | let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false) | |
741 | + | let calcLpAmt = estPut._1 | |
742 | + | let curPriceCalc = estPut._3 | |
743 | + | let amBalance = estPut._4 | |
744 | + | let prBalance = estPut._5 | |
745 | + | let lpEmission = estPut._6 | |
746 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(fromX18(curPriceX18, scale8)), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP)) | |
747 | + | } | |
748 | + | ||
749 | + | ||
750 | + | ||
751 | + | @Callable(i) | |
752 | + | func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
753 | + | let res = estimateGetOperation("", paymentLpAssetId, paymentLpAmt, this) | |
754 | + | let outAmAmt = res._1 | |
755 | + | let outPrAmt = res._2 | |
756 | + | let amBalance = res._5 | |
757 | + | let prBalance = res._6 | |
758 | + | let lpEmission = res._7 | |
759 | + | let curPrice = res._8 | |
760 | + | let poolStatus = parseIntValue(res._9) | |
761 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), toString(curPrice), toString(poolStatus)], SEP)) | |
762 | + | } | |
763 | + | ||
764 | + | ||
765 | + | @Verifier(tx) | |
766 | + | func verify () = match tx { | |
767 | + | case order: Order => | |
768 | + | let matcherPub = getMatcherPubOrFail() | |
769 | + | let orderValid = validateMatcherOrderAllowed(order) | |
770 | + | let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
771 | + | let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub) | |
772 | + | if (if (if (orderValid) | |
773 | + | then senderValid | |
774 | + | else false) | |
775 | + | then matcherValid | |
776 | + | else false) | |
777 | + | then true | |
778 | + | else throwOrderError(orderValid, senderValid, matcherValid) | |
779 | + | case _ => | |
780 | + | let targetPublicKey = match managerPublicKeyOrUnit() { | |
781 | + | case pk: ByteVector => | |
782 | + | pk | |
783 | + | case _: Unit => | |
784 | + | tx.senderPublicKey | |
785 | + | case _ => | |
786 | + | throw("Match error") | |
787 | + | } | |
788 | + | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
789 | + | } | |
790 | + |
github/deemru/w8io/026f985 39.62 ms ◑