tx · EiQ8TWUiW93uyZiWSKwMYESty3BfuLkDY6fhnvvHH8WK 3N6z1Rdvkah5kaxUziqsFdtrrgUw9yymb9F: -0.01000000 Waves 2022.02.21 19:09 [1933641] smart account 3N6z1Rdvkah5kaxUziqsFdtrrgUw9yymb9F > SELF 0.00000000 Waves
{ "type": 13, "id": "EiQ8TWUiW93uyZiWSKwMYESty3BfuLkDY6fhnvvHH8WK", "fee": 1000000, "feeAssetId": null, "timestamp": 1645459812658, "version": 2, "chainId": 84, "sender": "3N6z1Rdvkah5kaxUziqsFdtrrgUw9yymb9F", "senderPublicKey": "RogyqWWsdm8xv8CHoLfU5DNsaqcDAor6npacnCEPsLF", "proofs": [ "4NCdNBoU7JuQPLqtyWDTwo7j5DqFPuk11BLYtyYLFhkvhb8Gcd9ekLmbVa34YwhStPb3xky88NUNdVCHVigR4855" ], "script": "base64:AAIFAAAAAAAAAG0IAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAARgAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAAAAAApzbGlwcGFnZTRECQABNgAAAAEJAABlAAAAAgUAAAAGc2NhbGU4CQAAaQAAAAIJAABoAAAAAgUAAAAGc2NhbGU4AAAAAAAAAAABBQAAAAZzY2FsZTgAAAAABUFtdWx0AgAAAAMxMDAAAAAABURjb252AgAAAAExAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAApQb29sUHV0RGlzAA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YXRjaDAEAAAAB210Y2hQdWIJAQAAABNnZXRNYXRjaGVyUHViT3JGYWlsAAAAAAQAAAADb3JWCQEAAAAbdmFsaWRhdGVNYXRjaGVyT3JkZXJBbGxvd2VkAAAAAQUAAAAFb3JkZXIEAAAABXNuZHJWCQAB9AAAAAMIBQAAAAVvcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAABW9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgFAAAABW9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAFbXRjaFYJAAH0AAAAAwgFAAAABW9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAAFb3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAdtdGNoUHViAwMDBQAAAANvclYFAAAABXNuZHJWBwUAAAAFbXRjaFYHBgkBAAAAD3Rocm93T3JkZXJFcnJvcgAAAAMFAAAAA29yVgUAAAAFc25kclYFAAAABW10Y2hWBAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAAMa2V5TWFuUHViS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAABWFkbWluBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAABWFkbWluNRNdGQ==", "height": 1933641, "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 scale8 = 100000000 | |
5 | + | ||
6 | + | let scale8BigInt = toBigInt(100000000) | |
7 | + | ||
8 | + | let scale18 = toBigInt(1000000000000000000) | |
9 | + | ||
10 | + | let zeroBigInt = toBigInt(0) | |
11 | + | ||
12 | + | let oneBigInt = toBigInt(1) | |
13 | + | ||
14 | + | let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8))) | |
15 | + | ||
16 | + | let Amult = "100" | |
17 | + | ||
18 | + | let Dconv = "1" | |
19 | + | ||
20 | + | let SEP = "__" | |
21 | + | ||
22 | + | let EMPTY = "" | |
23 | + | ||
24 | + | let PoolActive = 1 | |
25 | + | ||
26 | + | let PoolPutDis = 2 | |
27 | + | ||
28 | + | let PoolMatcherDis = 3 | |
29 | + | ||
30 | + | let PoolShutdown = 4 | |
31 | + | ||
32 | + | let idxPoolAddress = 1 | |
33 | + | ||
34 | + | let idxPoolSt = 2 | |
35 | + | ||
36 | + | let idxLPAsId = 3 | |
37 | + | ||
38 | + | let idxAmAsId = 4 | |
39 | + | ||
40 | + | let idxPrAsId = 5 | |
41 | + | ||
42 | + | let idxAmtAsDcm = 6 | |
43 | + | ||
44 | + | let idxPriceAsDcm = 7 | |
45 | + | ||
46 | + | let idxIAmtAsId = 8 | |
47 | + | ||
48 | + | let idxIPriceAsId = 9 | |
49 | + | ||
50 | + | let idxFactStakCntr = 1 | |
51 | + | ||
52 | + | let idxFactSlippCntr = 7 | |
53 | + | ||
54 | + | let idxFactGwxRewCntr = 10 | |
55 | + | ||
56 | + | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
57 | + | ||
58 | + | ||
59 | + | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
60 | + | ||
61 | + | ||
62 | + | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
63 | + | ||
64 | + | ||
65 | + | func abs (val) = if ((zeroBigInt > val)) | |
66 | + | then -(val) | |
67 | + | else val | |
68 | + | ||
69 | + | ||
70 | + | func keyFactCntr () = "%s__factoryContract" | |
71 | + | ||
72 | + | ||
73 | + | func keyManPubKey () = "%s__managerPublicKey" | |
74 | + | ||
75 | + | ||
76 | + | func keyPriceLast () = "%s%s__price__last" | |
77 | + | ||
78 | + | ||
79 | + | func keyPriceHistory (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP) | |
80 | + | ||
81 | + | ||
82 | + | func keyPutActionByUser (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId) | |
83 | + | ||
84 | + | ||
85 | + | func keyGetActionByUser (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId) | |
86 | + | ||
87 | + | ||
88 | + | func keyAmtAsset () = "%s__amountAsset" | |
89 | + | ||
90 | + | ||
91 | + | func keyPriceAsset () = "%s__priceAsset" | |
92 | + | ||
93 | + | ||
94 | + | func keyAmplificator () = "%s__amp" | |
95 | + | ||
96 | + | ||
97 | + | func keyAddonAddr () = "%s__addonAddr" | |
98 | + | ||
99 | + | ||
100 | + | func keyFactoryConfig () = "%s__factoryConfig" | |
101 | + | ||
102 | + | ||
103 | + | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
104 | + | ||
105 | + | ||
106 | + | func keyPoolConfig (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config") | |
107 | + | ||
108 | + | ||
109 | + | func keyMappingsBaseAsset2internalId (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr) | |
110 | + | ||
111 | + | ||
112 | + | func keyAllPoolsShutdown () = "%s__shutdown" | |
113 | + | ||
114 | + | ||
115 | + | func keyPoolWeight (p) = ("%s%s__poolWeight__" + p) | |
116 | + | ||
117 | + | ||
118 | + | func throwOrderError (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV))) | |
119 | + | ||
120 | + | ||
121 | + | func asString (val) = match val { | |
122 | + | case valStr: String => | |
123 | + | valStr | |
124 | + | case _ => | |
125 | + | throw("fail cast to String") | |
126 | + | } | |
127 | + | ||
128 | + | ||
129 | + | func getStringOrFail (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
130 | + | ||
131 | + | ||
132 | + | func getIntOrFail (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
133 | + | ||
134 | + | ||
135 | + | let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactCntr())) | |
136 | + | ||
137 | + | let A = getStringOrFail(this, keyAmplificator()) | |
138 | + | ||
139 | + | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
140 | + | ||
141 | + | ||
142 | + | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
143 | + | ||
144 | + | ||
145 | + | func getPoolConfig () = { | |
146 | + | let amtAs = getStringOrFail(this, keyAmtAsset()) | |
147 | + | let priceAs = getStringOrFail(this, keyPriceAsset()) | |
148 | + | let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs)) | |
149 | + | let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs)) | |
150 | + | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP) | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
155 | + | ||
156 | + | ||
157 | + | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slipByUser,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(slipByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP) | |
158 | + | ||
159 | + | ||
160 | + | 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) | |
161 | + | ||
162 | + | ||
163 | + | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
164 | + | then wavesBalance(this).available | |
165 | + | else assetBalance(this, fromBase58String(assetId)) | |
166 | + | ||
167 | + | ||
168 | + | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
169 | + | ||
170 | + | ||
171 | + | func validateAbsDiff (A1,A2,slippage) = { | |
172 | + | let diff = fraction((A1 - A2), scale8BigInt, A2) | |
173 | + | let pass = ((slippage - abs(diff)) > zeroBigInt) | |
174 | + | if (!(pass)) | |
175 | + | then throw(("Big slpg: " + toString(diff))) | |
176 | + | else $Tuple2(pass, min([A1, A2])) | |
177 | + | } | |
178 | + | ||
179 | + | ||
180 | + | func validateD (D1,D0,slpg) = { | |
181 | + | let diff = fraction(D0, scale8BigInt, D1) | |
182 | + | let fail = (slpg > diff) | |
183 | + | if (if (fail) | |
184 | + | then true | |
185 | + | else (D0 > D1)) | |
186 | + | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
187 | + | else fail | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
192 | + | let amtAsAmtX18 = toX18(amAmt, amAssetDcm) | |
193 | + | let prAsAmtX18 = toX18(prAmt, prAssetDcm) | |
194 | + | calcPriceBigInt(prAsAmtX18, amtAsAmtX18) | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | func calcPrices (amAmt,prAmt,lpAmt) = { | |
199 | + | let cfg = getPoolConfig() | |
200 | + | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
201 | + | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
202 | + | let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt) | |
203 | + | let amAmtX18 = toX18(amAmt, amtAsDcm) | |
204 | + | let prAmtX18 = toX18(prAmt, prAsDcm) | |
205 | + | let lpAmtX18 = toX18(lpAmt, scale8) | |
206 | + | let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
207 | + | let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
208 | + | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
209 | + | } | |
210 | + | ||
211 | + | ||
212 | + | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
213 | + | let p = calcPrices(amAmt, prAmt, lpAmt) | |
214 | + | [fromX18(p[0], scale8), fromX18(p[1], scale8), fromX18(p[2], scale8)] | |
215 | + | } | |
216 | + | ||
217 | + | ||
218 | + | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
219 | + | let cfg = getPoolConfig() | |
220 | + | let lpId = cfg[idxLPAsId] | |
221 | + | let amId = cfg[idxAmAsId] | |
222 | + | let prId = cfg[idxPrAsId] | |
223 | + | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
224 | + | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
225 | + | let sts = cfg[idxPoolSt] | |
226 | + | let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity | |
227 | + | if ((lpId != pmtAssetId)) | |
228 | + | then throw("Wrong pmt asset") | |
229 | + | else { | |
230 | + | let amBalance = getAccBalance(amId) | |
231 | + | let amBalanceX18 = toX18(amBalance, amDcm) | |
232 | + | let prBalance = getAccBalance(prId) | |
233 | + | let prBalanceX18 = toX18(prBalance, prDcm) | |
234 | + | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
235 | + | let curPrice = fromX18(curPriceX18, scale8) | |
236 | + | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
237 | + | let lpEmissX18 = toX18(lpEmiss, scale8) | |
238 | + | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18) | |
239 | + | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18) | |
240 | + | let outAmAmt = fromX18(outAmAmtX18, amDcm) | |
241 | + | let outPrAmt = fromX18(outPrAmtX18, prDcm) | |
242 | + | let state = if ((txId58 == "")) | |
243 | + | then nil | |
244 | + | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
245 | + | then unit | |
246 | + | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
247 | + | then unit | |
248 | + | 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)] | |
249 | + | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state) | |
250 | + | } | |
251 | + | } | |
252 | + | ||
253 | + | ||
254 | + | func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
255 | + | let cfg = getPoolConfig() | |
256 | + | let lpId = fromBase58String(cfg[idxLPAsId]) | |
257 | + | let amIdStr = cfg[idxAmAsId] | |
258 | + | let prIdStr = cfg[idxPrAsId] | |
259 | + | let inAmIdStr = cfg[idxIAmtAsId] | |
260 | + | let inPrIdStr = cfg[idxIPriceAsId] | |
261 | + | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
262 | + | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
263 | + | let sts = cfg[idxPoolSt] | |
264 | + | let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity | |
265 | + | let amBalance = if (isEval) | |
266 | + | then getAccBalance(amIdStr) | |
267 | + | else if (if (isOneAsset) | |
268 | + | then (pmtId == amIdStr) | |
269 | + | else false) | |
270 | + | then (getAccBalance(amIdStr) - pmtAmt) | |
271 | + | else if (isOneAsset) | |
272 | + | then getAccBalance(amIdStr) | |
273 | + | else (getAccBalance(amIdStr) - inAmAmt) | |
274 | + | let prBalance = if (isEval) | |
275 | + | then getAccBalance(prIdStr) | |
276 | + | else if (if (isOneAsset) | |
277 | + | then (pmtId == prIdStr) | |
278 | + | else false) | |
279 | + | then (getAccBalance(prIdStr) - pmtAmt) | |
280 | + | else if (isOneAsset) | |
281 | + | then getAccBalance(prIdStr) | |
282 | + | else (getAccBalance(prIdStr) - inPrAmt) | |
283 | + | let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm) | |
284 | + | let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm) | |
285 | + | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
286 | + | let amBalanceX18 = toX18(amBalance, amtDcm) | |
287 | + | let prBalanceX18 = toX18(prBalance, priceDcm) | |
288 | + | let res = if ((lpEm == 0)) | |
289 | + | then { | |
290 | + | let curPriceX18 = zeroBigInt | |
291 | + | let slippageX18 = zeroBigInt | |
292 | + | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
293 | + | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
294 | + | } | |
295 | + | else { | |
296 | + | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
297 | + | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
298 | + | let slippageX18 = toX18(slippage, scale8) | |
299 | + | if (if ((curPriceX18 != zeroBigInt)) | |
300 | + | then (slippageRealX18 > slippageX18) | |
301 | + | else false) | |
302 | + | then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18))) | |
303 | + | else { | |
304 | + | let lpEmissionX18 = toX18(lpEm, scale8) | |
305 | + | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
306 | + | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
307 | + | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
308 | + | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
309 | + | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
310 | + | let expAmtAssetAmtX18 = expectedAmts._1 | |
311 | + | let expPriceAssetAmtX18 = expectedAmts._2 | |
312 | + | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
313 | + | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
314 | + | } | |
315 | + | } | |
316 | + | let calcLpAmt = res._1 | |
317 | + | let calcAmAssetPmt = res._2 | |
318 | + | let calcPrAssetPmt = res._3 | |
319 | + | let curPrice = fromX18(res._4, scale8) | |
320 | + | let slippageCalc = fromX18(res._5, scale8) | |
321 | + | if ((0 >= calcLpAmt)) | |
322 | + | then throw("LP <= 0") | |
323 | + | else { | |
324 | + | let emitLpAmt = if (!(emitLp)) | |
325 | + | then 0 | |
326 | + | else calcLpAmt | |
327 | + | let amDiff = (inAmAmt - calcAmAssetPmt) | |
328 | + | let prDiff = (inPrAmt - calcPrAssetPmt) | |
329 | + | let $t01585816203 = if (if (isOneAsset) | |
330 | + | then (pmtId == amIdStr) | |
331 | + | else false) | |
332 | + | then $Tuple2(pmtAmt, 0) | |
333 | + | else if (if (isOneAsset) | |
334 | + | then (pmtId == prIdStr) | |
335 | + | else false) | |
336 | + | then $Tuple2(0, pmtAmt) | |
337 | + | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
338 | + | let writeAmAmt = $t01585816203._1 | |
339 | + | let writePrAmt = $t01585816203._2 | |
340 | + | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
341 | + | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
342 | + | } | |
343 | + | } | |
344 | + | ||
345 | + | ||
346 | + | func validateMatcherOrderAllowed (order) = { | |
347 | + | let cfg = getPoolConfig() | |
348 | + | let amtAsId = cfg[idxAmAsId] | |
349 | + | let prAsId = cfg[idxPrAsId] | |
350 | + | let sts = parseIntValue(cfg[idxPoolSt]) | |
351 | + | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
352 | + | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
353 | + | let accAmtAsBalance = getAccBalance(amtAsId) | |
354 | + | let accPrAsBalance = getAccBalance(prAsId) | |
355 | + | let curPriceX18 = if ((order.orderType == Buy)) | |
356 | + | then privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
357 | + | else privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
358 | + | let curPrice = fromX18(curPriceX18, scale8) | |
359 | + | if (if (if (isGlobalShutdown()) | |
360 | + | then true | |
361 | + | else (sts == PoolMatcherDis)) | |
362 | + | then true | |
363 | + | else (sts == PoolShutdown)) | |
364 | + | then throw("Admin blocked") | |
365 | + | else { | |
366 | + | let orAmtAsset = order.assetPair.amountAsset | |
367 | + | let orAmtAsStr = if ((orAmtAsset == unit)) | |
368 | + | then "WAVES" | |
369 | + | else toBase58String(value(orAmtAsset)) | |
370 | + | let orPrAsset = order.assetPair.priceAsset | |
371 | + | let orPrAsStr = if ((orPrAsset == unit)) | |
372 | + | then "WAVES" | |
373 | + | else toBase58String(value(orPrAsset)) | |
374 | + | if (if ((orAmtAsStr != amtAsId)) | |
375 | + | then true | |
376 | + | else (orPrAsStr != prAsId)) | |
377 | + | then throw("Wr assets") | |
378 | + | else { | |
379 | + | let orderPrice = order.price | |
380 | + | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
381 | + | let castOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
382 | + | let isOrderPriceValid = if ((order.orderType == Buy)) | |
383 | + | then (curPrice >= castOrderPrice) | |
384 | + | else (castOrderPrice >= curPrice) | |
385 | + | true | |
386 | + | } | |
387 | + | } | |
388 | + | } | |
389 | + | ||
390 | + | ||
391 | + | func commonGet (i) = if ((size(i.payments) != 1)) | |
392 | + | then throw("1 pmnt exp") | |
393 | + | else { | |
394 | + | let pmt = value(i.payments[0]) | |
395 | + | let pmtAssetId = value(pmt.assetId) | |
396 | + | let pmtAmt = pmt.amount | |
397 | + | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
398 | + | let outAmAmt = res._1 | |
399 | + | let outPrAmt = res._2 | |
400 | + | let sts = parseIntValue(res._9) | |
401 | + | let state = res._10 | |
402 | + | if (if (isGlobalShutdown()) | |
403 | + | then true | |
404 | + | else (sts == PoolShutdown)) | |
405 | + | then throw(("Admin blocked: " + toString(sts))) | |
406 | + | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
407 | + | } | |
408 | + | ||
409 | + | ||
410 | + | func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
411 | + | let r = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId) | |
412 | + | let sts = parseIntValue(r._8) | |
413 | + | if (if (if (isGlobalShutdown()) | |
414 | + | then true | |
415 | + | else (sts == PoolPutDis)) | |
416 | + | then true | |
417 | + | else (sts == PoolShutdown)) | |
418 | + | then throw(("Blocked:" + toString(sts))) | |
419 | + | else r | |
420 | + | } | |
421 | + | ||
422 | + | ||
423 | + | @Callable(i) | |
424 | + | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
425 | + | then throw("denied") | |
426 | + | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManPubKey(), managerPublicKey)] | |
427 | + | ||
428 | + | ||
429 | + | ||
430 | + | @Callable(i) | |
431 | + | func put (slip,autoStake) = { | |
432 | + | let factCfg = getFactoryConfig() | |
433 | + | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
434 | + | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
435 | + | if ((0 > slip)) | |
436 | + | then throw("Wrong slippage") | |
437 | + | else if ((size(i.payments) != 2)) | |
438 | + | then throw("2 pmnts expd") | |
439 | + | else { | |
440 | + | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, 0, "") | |
441 | + | let emitLpAmt = estPut._2 | |
442 | + | let lpAssetId = estPut._7 | |
443 | + | let state = estPut._9 | |
444 | + | let amDiff = estPut._10 | |
445 | + | let prDiff = estPut._11 | |
446 | + | let amId = estPut._12 | |
447 | + | let prId = estPut._13 | |
448 | + | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
449 | + | if ((emitInv == emitInv)) | |
450 | + | then { | |
451 | + | let slippageAInv = if ((amDiff > 0)) | |
452 | + | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
453 | + | else nil | |
454 | + | if ((slippageAInv == slippageAInv)) | |
455 | + | then { | |
456 | + | let slippagePInv = if ((prDiff > 0)) | |
457 | + | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
458 | + | else nil | |
459 | + | if ((slippagePInv == slippagePInv)) | |
460 | + | then { | |
461 | + | let lpTrnsfr = if (autoStake) | |
462 | + | then { | |
463 | + | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
464 | + | if ((slpStakeInv == slpStakeInv)) | |
465 | + | then nil | |
466 | + | else throw("Strict value is not equal to itself.") | |
467 | + | } | |
468 | + | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
469 | + | (state ++ lpTrnsfr) | |
470 | + | } | |
471 | + | else throw("Strict value is not equal to itself.") | |
472 | + | } | |
473 | + | else throw("Strict value is not equal to itself.") | |
474 | + | } | |
475 | + | else throw("Strict value is not equal to itself.") | |
476 | + | } | |
477 | + | } | |
478 | + | ||
479 | + | ||
480 | + | ||
481 | + | @Callable(i) | |
482 | + | func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = { | |
483 | + | let cfg = getFactoryConfig() | |
484 | + | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr") | |
485 | + | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr") | |
486 | + | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr") | |
487 | + | let poolCfg = getPoolConfig() | |
488 | + | let amId = poolCfg[idxAmAsId] | |
489 | + | let prId = poolCfg[idxPrAsId] | |
490 | + | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
491 | + | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
492 | + | if (if (if (if ((0 >= slippage)) | |
493 | + | then true | |
494 | + | else (0 >= amAssetPart)) | |
495 | + | then true | |
496 | + | else (0 >= prAssetPart)) | |
497 | + | then true | |
498 | + | else (0 >= outLp)) | |
499 | + | then throw("Wrong params") | |
500 | + | else if ((size(i.payments) != 1)) | |
501 | + | then throw("1 pmnt expd") | |
502 | + | else { | |
503 | + | let pmt = value(i.payments[0]) | |
504 | + | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
505 | + | let pmtAmt = pmt.amount | |
506 | + | if (if (if ((amAssetPart > pmtAmt)) | |
507 | + | then true | |
508 | + | else (prAssetPart > pmtAmt)) | |
509 | + | then true | |
510 | + | else (10000000 > pmtAmt)) | |
511 | + | then throw("Wrong pmt amt") | |
512 | + | else { | |
513 | + | let amBalance = getAccBalance(amId) | |
514 | + | let prBalance = getAccBalance(prId) | |
515 | + | let $t02394424324 = if ((pmtAssetId == amId)) | |
516 | + | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
517 | + | else if ((pmtAssetId == prId)) | |
518 | + | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
519 | + | else throw("wrong pmtAssetId") | |
520 | + | let amBalanceNow = $t02394424324._1 | |
521 | + | let prBalanceNow = $t02394424324._2 | |
522 | + | let virtSwapInAm = $t02394424324._3 | |
523 | + | let virtSwapOutPr = $t02394424324._4 | |
524 | + | let virtSwapInPr = $t02394424324._5 | |
525 | + | let virtSwapOutAm = $t02394424324._6 | |
526 | + | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
527 | + | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
528 | + | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
529 | + | if ((D0vsD1 == D0vsD1)) | |
530 | + | then { | |
531 | + | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId) | |
532 | + | let estimLP = estPut._2 | |
533 | + | let lpAssetId = estPut._7 | |
534 | + | let state = estPut._9 | |
535 | + | let amDiff = estPut._10 | |
536 | + | let prDiff = estPut._11 | |
537 | + | let lpCalcRes = validateAbsDiff(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
538 | + | let emitLpAmt = toInt(lpCalcRes._2) | |
539 | + | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
540 | + | if ((emitInv == emitInv)) | |
541 | + | then { | |
542 | + | let slippageAInv = if ((amDiff > 0)) | |
543 | + | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
544 | + | else nil | |
545 | + | if ((slippageAInv == slippageAInv)) | |
546 | + | then { | |
547 | + | let slippagePInv = if ((prDiff > 0)) | |
548 | + | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
549 | + | else nil | |
550 | + | if ((slippagePInv == slippagePInv)) | |
551 | + | then { | |
552 | + | let lpTrnsfr = if (autoStake) | |
553 | + | then { | |
554 | + | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
555 | + | if ((slpStakeInv == slpStakeInv)) | |
556 | + | then nil | |
557 | + | else throw("Strict value is not equal to itself.") | |
558 | + | } | |
559 | + | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
560 | + | (state ++ lpTrnsfr) | |
561 | + | } | |
562 | + | else throw("Strict value is not equal to itself.") | |
563 | + | } | |
564 | + | else throw("Strict value is not equal to itself.") | |
565 | + | } | |
566 | + | else throw("Strict value is not equal to itself.") | |
567 | + | } | |
568 | + | else throw("Strict value is not equal to itself.") | |
569 | + | } | |
570 | + | } | |
571 | + | } | |
572 | + | ||
573 | + | ||
574 | + | ||
575 | + | @Callable(i) | |
576 | + | func putForFree (maxSlpg) = if ((0 > maxSlpg)) | |
577 | + | then throw("Wrong slpg") | |
578 | + | else if ((size(i.payments) != 2)) | |
579 | + | then throw("2 pmnts expd") | |
580 | + | else { | |
581 | + | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlpg, false, false, 0, "") | |
582 | + | estPut._9 | |
583 | + | } | |
584 | + | ||
585 | + | ||
586 | + | ||
587 | + | @Callable(i) | |
588 | + | func get () = { | |
589 | + | let res = commonGet(i) | |
590 | + | let outAmtAmt = res._1 | |
591 | + | let outPrAmt = res._2 | |
592 | + | let pmtAmt = res._3 | |
593 | + | let pmtAssetId = res._4 | |
594 | + | let state = res._5 | |
595 | + | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
596 | + | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
597 | + | then state | |
598 | + | else throw("Strict value is not equal to itself.") | |
599 | + | } | |
600 | + | ||
601 | + | ||
602 | + | ||
603 | + | @Callable(i) | |
604 | + | func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
605 | + | then throw("1 pmnt expd") | |
606 | + | else { | |
607 | + | let cfg = getPoolConfig() | |
608 | + | let lpId = cfg[idxLPAsId] | |
609 | + | let amId = cfg[idxAmAsId] | |
610 | + | let prId = cfg[idxPrAsId] | |
611 | + | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
612 | + | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
613 | + | let sts = cfg[idxPoolSt] | |
614 | + | let fcfg = getFactoryConfig() | |
615 | + | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wr sl addr") | |
616 | + | let pmt = value(i.payments[0]) | |
617 | + | let addon = valueOrElse(getString(this, keyAddonAddr()), "") | |
618 | + | let userAddress = if ((addon == toString(i.caller))) | |
619 | + | then i.originCaller | |
620 | + | else i.caller | |
621 | + | let txId58 = toBase58String(i.transactionId) | |
622 | + | let pmtAssetId = value(pmt.assetId) | |
623 | + | let pmtAmt = pmt.amount | |
624 | + | if ((1000000000 > pmtAmt)) | |
625 | + | then throw("Min pmt 10 LP") | |
626 | + | else if (if (if ((0 > slippage)) | |
627 | + | then true | |
628 | + | else (0 > exchResult)) | |
629 | + | then true | |
630 | + | else (0 > outAmount)) | |
631 | + | then throw("Wrong params") | |
632 | + | else if ((lpId != toBase58String(pmtAssetId))) | |
633 | + | then throw("Wrong LP") | |
634 | + | else { | |
635 | + | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
636 | + | let estimAmAmt = r._1 | |
637 | + | let estimPrAmt = r._2 | |
638 | + | let amBalance = getAccBalance(amId) | |
639 | + | let prBalance = getAccBalance(prId) | |
640 | + | let $t02909129548 = if ((outAssetId == amId)) | |
641 | + | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult)) | |
642 | + | else if ((outAssetId == prId)) | |
643 | + | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult)) | |
644 | + | else throw("wrong outAssetId") | |
645 | + | let amBalanceNow = $t02909129548._1 | |
646 | + | let prBalanceNow = $t02909129548._2 | |
647 | + | let virtSwapInAm = $t02909129548._3 | |
648 | + | let virtSwapOutPr = $t02909129548._4 | |
649 | + | let virtSwapInPr = $t02909129548._5 | |
650 | + | let virtSwapOutAm = $t02909129548._6 | |
651 | + | let totalGet = $t02909129548._7 | |
652 | + | if (if ((0 > virtSwapInAm)) | |
653 | + | then true | |
654 | + | else (0 > virtSwapInPr)) | |
655 | + | then throw("Wrong calc") | |
656 | + | else { | |
657 | + | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
658 | + | let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
659 | + | let D0vsD1 = validateD(parseBigIntValue(asString(D1)), parseBigIntValue(asString(D0)), slippage4D) | |
660 | + | if ((D0vsD1 == D0vsD1)) | |
661 | + | then { | |
662 | + | let finalRes = validateAbsDiff(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
663 | + | if ((finalRes == finalRes)) | |
664 | + | then { | |
665 | + | let $t03028230386 = if ((outAssetId == amId)) | |
666 | + | then $Tuple2(toInt(finalRes._2), 0) | |
667 | + | else $Tuple2(0, toInt(finalRes._2)) | |
668 | + | let outAm = $t03028230386._1 | |
669 | + | let outPr = $t03028230386._2 | |
670 | + | let curPrX18 = calcPriceBigInt(toX18(prBalance, prDcm), toX18(amBalance, amDcm)) | |
671 | + | let curPr = fromX18(curPrX18, scale8) | |
672 | + | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) | |
673 | + | then unit | |
674 | + | else fromBase58String(outAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPr), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPr)] | |
675 | + | if ((state == state)) | |
676 | + | then { | |
677 | + | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
678 | + | if ((burn == burn)) | |
679 | + | then state | |
680 | + | else throw("Strict value is not equal to itself.") | |
681 | + | } | |
682 | + | else throw("Strict value is not equal to itself.") | |
683 | + | } | |
684 | + | else throw("Strict value is not equal to itself.") | |
685 | + | } | |
686 | + | else throw("Strict value is not equal to itself.") | |
687 | + | } | |
688 | + | } | |
689 | + | } | |
690 | + | ||
691 | + | ||
692 | + | ||
693 | + | @Callable(i) | |
694 | + | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
695 | + | let res = commonGet(i) | |
696 | + | let outAmAmt = res._1 | |
697 | + | let outPrAmt = res._2 | |
698 | + | let pmtAmt = res._3 | |
699 | + | let pmtAssetId = res._4 | |
700 | + | let state = res._5 | |
701 | + | if ((noLessThenAmtAsset > outAmAmt)) | |
702 | + | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
703 | + | else if ((noLessThenPriceAsset > outPrAmt)) | |
704 | + | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
705 | + | else { | |
706 | + | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
707 | + | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
708 | + | then state | |
709 | + | else throw("Strict value is not equal to itself.") | |
710 | + | } | |
711 | + | } | |
712 | + | ||
713 | + | ||
714 | + | ||
715 | + | @Callable(i) | |
716 | + | func unstakeAndGet (amount) = { | |
717 | + | let checkPayments = if ((size(i.payments) != 0)) | |
718 | + | then throw("No pmnts expd") | |
719 | + | else true | |
720 | + | if ((checkPayments == checkPayments)) | |
721 | + | then { | |
722 | + | let cfg = getPoolConfig() | |
723 | + | let factoryCfg = getFactoryConfig() | |
724 | + | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
725 | + | let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr") | |
726 | + | let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil) | |
727 | + | if ((unstakeInv == unstakeInv)) | |
728 | + | then { | |
729 | + | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
730 | + | let sts = parseIntValue(r._9) | |
731 | + | let state = r._10 | |
732 | + | let v = if (if (isGlobalShutdown()) | |
733 | + | then true | |
734 | + | else (sts == PoolShutdown)) | |
735 | + | then throw(("Blocked: " + toString(sts))) | |
736 | + | else true | |
737 | + | if ((v == v)) | |
738 | + | then { | |
739 | + | let burnA = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
740 | + | if ((burnA == burnA)) | |
741 | + | then state | |
742 | + | else throw("Strict value is not equal to itself.") | |
743 | + | } | |
744 | + | else throw("Strict value is not equal to itself.") | |
745 | + | } | |
746 | + | else throw("Strict value is not equal to itself.") | |
747 | + | } | |
748 | + | else throw("Strict value is not equal to itself.") | |
749 | + | } | |
750 | + | ||
751 | + | ||
752 | + | ||
753 | + | @Callable(i) | |
754 | + | func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(factoryContract))) | |
755 | + | then throw("denied") | |
756 | + | else $Tuple2([StringEntry(keyAmtAsset(), amtAsStr), StringEntry(keyPriceAsset(), prAsStr)], "success") | |
757 | + | ||
758 | + | ||
759 | + | ||
760 | + | @Callable(i) | |
761 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
762 | + | ||
763 | + | ||
764 | + | ||
765 | + | @Callable(i) | |
766 | + | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
767 | + | ||
768 | + | ||
769 | + | ||
770 | + | @Callable(i) | |
771 | + | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
772 | + | let pr = calcPrices(amAmt, prAmt, lpAmt) | |
773 | + | $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])]) | |
774 | + | } | |
775 | + | ||
776 | + | ||
777 | + | ||
778 | + | @Callable(i) | |
779 | + | func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resScaleMult)) | |
780 | + | ||
781 | + | ||
782 | + | ||
783 | + | @Callable(i) | |
784 | + | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
785 | + | ||
786 | + | ||
787 | + | ||
788 | + | @Callable(i) | |
789 | + | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
790 | + | ||
791 | + | ||
792 | + | ||
793 | + | @Callable(i) | |
794 | + | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, false, 0, "")) | |
795 | + | ||
796 | + | ||
797 | + | ||
798 | + | @Callable(i) | |
799 | + | func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = { | |
800 | + | let res = estimateGetOperation(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr)) | |
801 | + | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
802 | + | } | |
803 | + | ||
804 | + | ||
805 | + | @Verifier(tx) | |
806 | + | func verify () = match tx { | |
807 | + | case order: Order => | |
808 | + | let mtchPub = getMatcherPubOrFail() | |
809 | + | let orV = validateMatcherOrderAllowed(order) | |
810 | + | let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
811 | + | let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub) | |
812 | + | if (if (if (orV) | |
813 | + | then sndrV | |
814 | + | else false) | |
815 | + | then mtchV | |
816 | + | else false) | |
817 | + | then true | |
818 | + | else throwOrderError(orV, sndrV, mtchV) | |
819 | + | case _ => | |
820 | + | let admin = valueOrElse(getString(this, keyManPubKey()), EMPTY) | |
821 | + | if ((admin == EMPTY)) | |
822 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
823 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(admin)) | |
824 | + | } | |
825 | + |
github/deemru/w8io/026f985 49.07 ms ◑