tx · BJne8kocP47x41nqrRo4xrzLzNKsrqKRcvmFfEDgJmwk 3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt: -0.03500000 Waves 2022.06.07 00:24 [2085027] smart account 3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt > SELF 0.00000000 Waves
{ "type": 13, "id": "BJne8kocP47x41nqrRo4xrzLzNKsrqKRcvmFfEDgJmwk", "fee": 3500000, "feeAssetId": null, "timestamp": 1654550657757, "version": 1, "sender": "3Mz51suw3H98TBYJHSra1k2uSYQMv2vUkzt", "senderPublicKey": "8RPibCyjGbPr7troJPW7WTXkrbynj8HwkrckopSZoYVn", "proofs": [ "2W2bs6UtKaPnd7fkuWLrfBeoQe9Y4w9PDAKGwDVQkpdzB55Pe2sV8AC7tBRzLaNa2zLu9KwzFaJsLscriKfDkbqj" ], "script": "base64:AAIFAAAAAAAAEqIIAhIDCgEIEgMKAQgSABIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIGgoKAUESBWRlbGF5GgcKAUISAnQxGgwKAUMSB29yaWdWYWwaEgoBRBINb3JpZ1NjYWxlTXVsdBoHCgFFEgJmMRoICgFGEgN2YWwaFAoBRxIPcmVzdWx0U2NhbGVNdWx0GgcKAUgSAnRzGggKAUkSA2FtdBoNCgFKEghyZXNTY2FsZRoNCgFLEghjdXJTY2FsZRoICgFMEgNhYnMaBwoBTRICZmMaCAoBThIDbXBrGgkKAU8SBHBtcGsaBwoBUBICcGwaBwoBURICcGgaBgoBUhIBaBoGCgFTEgF0GggKAVQSA3BhdRoHCgFVEgJ1YRoJCgFWEgR0eElkGggKAVcSA2dhdRoHCgFYEgJhYRoHCgFZEgJwYRoICgFaEgNhbXAaCwoBYRIGc2NhbGU4GgkKAmFBEgNncGMaCwoCYUISBWFtdEFzGg0K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S2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJlSwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmVLAAAABnByb29mcwAAAAAAAAAAAAUAAAACZVA6MCCr", "chainId": 84, "height": 2085027, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G1LYSmd55Tu4CsTnGSv6iDND756Bi9N1ADRcsox4t8WH Next: 9j1ghPjBCFsKoXa3JjvYedpSwtpP8613jYLuZKyP3CiW Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let scale8 = 100000000 | |
5 | 5 | ||
6 | 6 | let scale8BigInt = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let scale18 = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let zeroBigInt = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let oneBigInt = toBigInt(1) | |
13 | 13 | ||
14 | 14 | let slippage4D = toBigInt((scale8 - ((scale8 * 1) / scale8))) | |
15 | 15 | ||
16 | 16 | let Amult = "100" | |
17 | 17 | ||
18 | 18 | let Dconv = "1" | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let EMPTY = "" | |
23 | 23 | ||
24 | 24 | let PoolActive = 1 | |
25 | 25 | ||
26 | 26 | let PoolPutDis = 2 | |
27 | 27 | ||
28 | 28 | let PoolMatcherDis = 3 | |
29 | 29 | ||
30 | 30 | let PoolShutdown = 4 | |
31 | 31 | ||
32 | 32 | let idxPoolAddress = 1 | |
33 | 33 | ||
34 | 34 | let idxPoolSt = 2 | |
35 | 35 | ||
36 | 36 | let idxLPAsId = 3 | |
37 | 37 | ||
38 | 38 | let idxAmAsId = 4 | |
39 | 39 | ||
40 | 40 | let idxPrAsId = 5 | |
41 | 41 | ||
42 | 42 | let idxAmtAsDcm = 6 | |
43 | 43 | ||
44 | 44 | let idxPriceAsDcm = 7 | |
45 | 45 | ||
46 | 46 | let idxIAmtAsId = 8 | |
47 | 47 | ||
48 | 48 | let idxIPriceAsId = 9 | |
49 | 49 | ||
50 | 50 | let idxFactStakCntr = 1 | |
51 | 51 | ||
52 | 52 | let idxFactSlippCntr = 7 | |
53 | 53 | ||
54 | 54 | let idxFactGwxRewCntr = 10 | |
55 | 55 | ||
56 | 56 | let delay = "%s__delay" | |
57 | 57 | ||
58 | 58 | func t1 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func f1 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func ts (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func abs (val) = if ((zeroBigInt > val)) | |
68 | 68 | then -(val) | |
69 | 69 | else val | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func fc () = "%s__factoryContract" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func mpk () = "%s__managerPublicKey" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func pmpk () = "%s__pendingManagerPublicKey" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func pl () = "%s%s__price__last" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func ph (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func pau (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func gau (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func aa () = "%s__amountAsset" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func pa () = "%s__priceAsset" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func amp () = "%s__amp" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ada () = "%s__addonAddr" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func lgopotc (caller) = makeString(["%s%s__lastGetOrPutOneTknCall", caller], SEP) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func fcfg () = "%s__factoryConfig" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func mtpk () = "%s%s__matcher__publicKey" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func pc (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config") | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func mba (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aps () = "%s__shutdown" | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func toe (orV,sendrV,matchV) = throw(((((("Failed: ordValid=" + toString(orV)) + " sndrValid=") + toString(sendrV)) + " mtchrValid=") + toString(matchV))) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func str (val) = match val { | |
127 | 127 | case valStr: String => | |
128 | 128 | valStr | |
129 | 129 | case _ => | |
130 | 130 | throw("fail cast to String") | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func strf (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func intf (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], "")) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | let fca = addressFromStringValue(strf(this, fc())) | |
141 | 141 | ||
142 | 142 | let A = strf(this, amp()) | |
143 | 143 | ||
144 | 144 | func igs () = valueOrElse(getBoolean(fca, aps()), false) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func mp () = fromBase58String(strf(fca, mtpk())) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func gpc () = { | |
151 | 151 | let amtAs = strf(this, aa()) | |
152 | 152 | let priceAs = strf(this, pa()) | |
153 | 153 | let iPriceAs = intf(fca, mba(priceAs)) | |
154 | 154 | let iAmtAs = intf(fca, mba(amtAs)) | |
155 | 155 | split(strf(fca, pc(toString(iAmtAs), toString(iPriceAs))), SEP) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func gfc () = split(strf(fca, fcfg()), SEP) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | 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) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | 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) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
169 | 169 | then wavesBalance(this).available | |
170 | 170 | else assetBalance(this, fromBase58String(assetId)) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func cpbi (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func vad (A1,A2,slippage) = { | |
177 | 177 | let diff = fraction((A1 - A2), scale8BigInt, A2) | |
178 | 178 | let pass = ((slippage - abs(diff)) > zeroBigInt) | |
179 | 179 | if (!(pass)) | |
180 | 180 | then throw(("Big slpg: " + toString(diff))) | |
181 | 181 | else $Tuple2(pass, min([A1, A2])) | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func vd (D1,D0,slpg) = { | |
186 | 186 | let updatedD1 = if ((D1 == zeroBigInt)) | |
187 | 187 | then oneBigInt | |
188 | 188 | else D1 | |
189 | 189 | let error = ("D1: " + throw(toString(D1))) | |
190 | 190 | if ((error == error)) | |
191 | 191 | then { | |
192 | 192 | let diff = fraction(D0, scale8BigInt, D1) | |
193 | 193 | let fail = (slpg > diff) | |
194 | 194 | if (if (fail) | |
195 | 195 | then true | |
196 | 196 | else (D0 > D1)) | |
197 | 197 | then throw(((((((toString(D0) + " ") + toString(D1)) + " ") + toString(diff)) + " ") + toString(slpg))) | |
198 | 198 | else fail | |
199 | 199 | } | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func pcp (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
205 | 205 | let amtAsAmtX18 = t1(amAmt, amAssetDcm) | |
206 | 206 | let prAsAmtX18 = t1(prAmt, prAssetDcm) | |
207 | 207 | cpbi(prAsAmtX18, amtAsAmtX18) | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
212 | 212 | let cfg = gpc() | |
213 | 213 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
214 | 214 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
215 | 215 | let priceX18 = pcp(amtAsDcm, prAsDcm, amAmt, prAmt) | |
216 | 216 | let amAmtX18 = t1(amAmt, amtAsDcm) | |
217 | 217 | let prAmtX18 = t1(prAmt, prAsDcm) | |
218 | 218 | let lpAmtX18 = t1(lpAmt, scale8) | |
219 | 219 | let lpPrInAmAsX18 = cpbi(amAmtX18, lpAmtX18) | |
220 | 220 | let lpPrInPrAsX18 = cpbi(prAmtX18, lpAmtX18) | |
221 | 221 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
226 | 226 | let p = calcPrices(amAmt, prAmt, lpAmt) | |
227 | 227 | [f1(p[0], scale8), f1(p[1], scale8), f1(p[2], scale8)] | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func ego (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
232 | 232 | let cfg = gpc() | |
233 | 233 | let lpId = cfg[idxLPAsId] | |
234 | 234 | let amId = cfg[idxAmAsId] | |
235 | 235 | let prId = cfg[idxPrAsId] | |
236 | 236 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
237 | 237 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
238 | 238 | let sts = cfg[idxPoolSt] | |
239 | 239 | let lpEmiss = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Wrong LP id").quantity | |
240 | 240 | if ((lpId != pmtAssetId)) | |
241 | 241 | then throw("Wrong pmt asset") | |
242 | 242 | else { | |
243 | 243 | let amBalance = getAccBalance(amId) | |
244 | 244 | let amBalanceX18 = t1(amBalance, amDcm) | |
245 | 245 | let prBalance = getAccBalance(prId) | |
246 | 246 | let prBalanceX18 = t1(prBalance, prDcm) | |
247 | 247 | let curPriceX18 = cpbi(prBalanceX18, amBalanceX18) | |
248 | 248 | let curPrice = f1(curPriceX18, scale8) | |
249 | 249 | let pmtLpAmtX18 = t1(pmtLpAmt, scale8) | |
250 | 250 | let lpEmissX18 = t1(lpEmiss, scale8) | |
251 | 251 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissX18) | |
252 | 252 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissX18) | |
253 | 253 | let outAmAmt = f1(outAmAmtX18, amDcm) | |
254 | 254 | let outPrAmt = f1(outPrAmtX18, prDcm) | |
255 | 255 | let state = if ((txId58 == "")) | |
256 | 256 | then nil | |
257 | 257 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
258 | 258 | then unit | |
259 | 259 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
260 | 260 | then unit | |
261 | 261 | else fromBase58String(prId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice)] | |
262 | 262 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmiss, curPriceX18, sts, state) | |
263 | 263 | } | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func epo (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
268 | 268 | let cfg = gpc() | |
269 | 269 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
270 | 270 | let amIdStr = cfg[idxAmAsId] | |
271 | 271 | let prIdStr = cfg[idxPrAsId] | |
272 | 272 | let inAmIdStr = cfg[idxIAmtAsId] | |
273 | 273 | let inPrIdStr = cfg[idxIPriceAsId] | |
274 | 274 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
275 | 275 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
276 | 276 | let sts = cfg[idxPoolSt] | |
277 | 277 | let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity | |
278 | 278 | let amBalance = if (isEval) | |
279 | 279 | then getAccBalance(amIdStr) | |
280 | 280 | else if (if (isOneAsset) | |
281 | 281 | then (pmtId == amIdStr) | |
282 | 282 | else false) | |
283 | 283 | then (getAccBalance(amIdStr) - pmtAmt) | |
284 | 284 | else if (isOneAsset) | |
285 | 285 | then getAccBalance(amIdStr) | |
286 | 286 | else (getAccBalance(amIdStr) - inAmAmt) | |
287 | 287 | let prBalance = if (isEval) | |
288 | 288 | then getAccBalance(prIdStr) | |
289 | 289 | else if (if (isOneAsset) | |
290 | 290 | then (pmtId == prIdStr) | |
291 | 291 | else false) | |
292 | 292 | then (getAccBalance(prIdStr) - pmtAmt) | |
293 | 293 | else if (isOneAsset) | |
294 | 294 | then getAccBalance(prIdStr) | |
295 | 295 | else (getAccBalance(prIdStr) - inPrAmt) | |
296 | 296 | let inAmAssetAmtX18 = t1(inAmAmt, amtDcm) | |
297 | 297 | let inPrAssetAmtX18 = t1(inPrAmt, priceDcm) | |
298 | 298 | let userPriceX18 = cpbi(inPrAssetAmtX18, inAmAssetAmtX18) | |
299 | 299 | let amBalanceX18 = t1(amBalance, amtDcm) | |
300 | 300 | let prBalanceX18 = t1(prBalance, priceDcm) | |
301 | 301 | let r = if ((lpEm == 0)) | |
302 | 302 | then { | |
303 | 303 | let curPriceX18 = zeroBigInt | |
304 | 304 | let slippageX18 = zeroBigInt | |
305 | 305 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
306 | 306 | $Tuple5(f1(lpAmtX18, scale8), f1(inAmAssetAmtX18, amtDcm), f1(inPrAssetAmtX18, priceDcm), cpbi((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
307 | 307 | } | |
308 | 308 | else { | |
309 | 309 | let curPriceX18 = cpbi(prBalanceX18, amBalanceX18) | |
310 | 310 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
311 | 311 | let slippageX18 = t1(slippage, scale8) | |
312 | 312 | if (if ((curPriceX18 != zeroBigInt)) | |
313 | 313 | then (slippageRealX18 > slippageX18) | |
314 | 314 | else false) | |
315 | 315 | then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18))) | |
316 | 316 | else { | |
317 | 317 | let lpEmissionX18 = t1(lpEm, scale8) | |
318 | 318 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
319 | 319 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
320 | 320 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
321 | 321 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
322 | 322 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
323 | 323 | let expAmtAssetAmtX18 = expectedAmts._1 | |
324 | 324 | let expPriceAssetAmtX18 = expectedAmts._2 | |
325 | 325 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
326 | 326 | $Tuple5(f1(lpAmtX18, scale8), f1(expAmtAssetAmtX18, amtDcm), f1(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
327 | 327 | } | |
328 | 328 | } | |
329 | 329 | let calcLpAmt = r._1 | |
330 | 330 | let calcAmAssetPmt = r._2 | |
331 | 331 | let calcPrAssetPmt = r._3 | |
332 | 332 | let curPrice = f1(r._4, scale8) | |
333 | 333 | let slippageCalc = f1(r._5, scale8) | |
334 | 334 | if ((0 >= calcLpAmt)) | |
335 | 335 | then throw("LP <= 0") | |
336 | 336 | else { | |
337 | 337 | let emitLpAmt = if (!(emitLp)) | |
338 | 338 | then 0 | |
339 | 339 | else calcLpAmt | |
340 | 340 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
341 | 341 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
342 | 342 | let $t01556815913 = if (if (isOneAsset) | |
343 | 343 | then (pmtId == amIdStr) | |
344 | 344 | else false) | |
345 | 345 | then $Tuple2(pmtAmt, 0) | |
346 | 346 | else if (if (isOneAsset) | |
347 | 347 | then (pmtId == prIdStr) | |
348 | 348 | else false) | |
349 | 349 | then $Tuple2(0, pmtAmt) | |
350 | 350 | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
351 | 351 | let writeAmAmt = $t01556815913._1 | |
352 | 352 | let writePrAmt = $t01556815913._2 | |
353 | 353 | let commonState = [IntegerEntry(pl(), curPrice), IntegerEntry(ph(height, lastBlock.timestamp), curPrice), StringEntry(pau(userAddress, txId58), dataPutActionInfo(writeAmAmt, writePrAmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
354 | 354 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, sts, commonState, amDiff, prDiff, inAmId, inPrId) | |
355 | 355 | } | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func moa (order) = { | |
360 | 360 | let cfg = gpc() | |
361 | 361 | let amtAsId = cfg[idxAmAsId] | |
362 | 362 | let prAsId = cfg[idxPrAsId] | |
363 | 363 | let sts = parseIntValue(cfg[idxPoolSt]) | |
364 | 364 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
365 | 365 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
366 | 366 | let accAmtAsBalance = getAccBalance(amtAsId) | |
367 | 367 | let accPrAsBalance = getAccBalance(prAsId) | |
368 | 368 | let curPriceX18 = if ((order.orderType == Buy)) | |
369 | 369 | then pcp(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
370 | 370 | else pcp(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
371 | 371 | let curPrice = f1(curPriceX18, scale8) | |
372 | 372 | if (if (if (igs()) | |
373 | 373 | then true | |
374 | 374 | else (sts == PoolMatcherDis)) | |
375 | 375 | then true | |
376 | 376 | else (sts == PoolShutdown)) | |
377 | 377 | then throw("Admin blocked") | |
378 | 378 | else { | |
379 | 379 | let orAmtAsset = order.assetPair.amountAsset | |
380 | 380 | let orAmtAsStr = if ((orAmtAsset == unit)) | |
381 | 381 | then "WAVES" | |
382 | 382 | else toBase58String(value(orAmtAsset)) | |
383 | 383 | let orPrAsset = order.assetPair.priceAsset | |
384 | 384 | let orPrAsStr = if ((orPrAsset == unit)) | |
385 | 385 | then "WAVES" | |
386 | 386 | else toBase58String(value(orPrAsset)) | |
387 | 387 | if (if ((orAmtAsStr != amtAsId)) | |
388 | 388 | then true | |
389 | 389 | else (orPrAsStr != prAsId)) | |
390 | 390 | then throw("Wr assets") | |
391 | 391 | else { | |
392 | 392 | let orderPrice = order.price | |
393 | 393 | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
394 | 394 | let castOrderPrice = ts(orderPrice, scale8, priceDcm) | |
395 | 395 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
396 | 396 | then (curPrice >= castOrderPrice) | |
397 | 397 | else (castOrderPrice >= curPrice) | |
398 | 398 | true | |
399 | 399 | } | |
400 | 400 | } | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | func cg (i) = if ((size(i.payments) != 1)) | |
405 | 405 | then throw("1 pmnt exp") | |
406 | 406 | else { | |
407 | 407 | let pmt = value(i.payments[0]) | |
408 | 408 | let pmtAssetId = value(pmt.assetId) | |
409 | 409 | let pmtAmt = pmt.amount | |
410 | 410 | let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
411 | 411 | let outAmAmt = r._1 | |
412 | 412 | let outPrAmt = r._2 | |
413 | 413 | let sts = parseIntValue(r._9) | |
414 | 414 | let state = r._10 | |
415 | 415 | if (if (igs()) | |
416 | 416 | then true | |
417 | 417 | else (sts == PoolShutdown)) | |
418 | 418 | then throw(("Admin blocked: " + toString(sts))) | |
419 | 419 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | func cp (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
424 | 424 | let r = epo(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId) | |
425 | 425 | let sts = parseIntValue(r._8) | |
426 | 426 | if (if (if (igs()) | |
427 | 427 | then true | |
428 | 428 | else (sts == PoolPutDis)) | |
429 | 429 | then true | |
430 | 430 | else (sts == PoolShutdown)) | |
431 | 431 | then throw(("Blocked:" + toString(sts))) | |
432 | 432 | else r | |
433 | 433 | } | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | func m () = match getString(mpk()) { | |
437 | 437 | case s: String => | |
438 | 438 | fromBase58String(s) | |
439 | 439 | case _: Unit => | |
440 | 440 | unit | |
441 | 441 | case _ => | |
442 | 442 | throw("Match error") | |
443 | 443 | } | |
444 | 444 | ||
445 | 445 | ||
446 | 446 | func pm () = match getString(pmpk()) { | |
447 | 447 | case s: String => | |
448 | 448 | fromBase58String(s) | |
449 | 449 | case _: Unit => | |
450 | 450 | unit | |
451 | 451 | case _ => | |
452 | 452 | throw("Match error") | |
453 | 453 | } | |
454 | 454 | ||
455 | 455 | ||
456 | 456 | let pd = throw("Permission denied") | |
457 | 457 | ||
458 | 458 | func mm (i) = match m() { | |
459 | 459 | case pk: ByteVector => | |
460 | 460 | if ((i.callerPublicKey == pk)) | |
461 | 461 | then true | |
462 | 462 | else pd | |
463 | 463 | case _: Unit => | |
464 | 464 | if ((i.caller == this)) | |
465 | 465 | then true | |
466 | 466 | else pd | |
467 | 467 | case _ => | |
468 | 468 | throw("Match error") | |
469 | 469 | } | |
470 | 470 | ||
471 | 471 | ||
472 | 472 | @Callable(i) | |
473 | 473 | func constructor (fc) = { | |
474 | 474 | let c = mm(i) | |
475 | 475 | if ((c == c)) | |
476 | 476 | then [StringEntry(fc(), fc)] | |
477 | 477 | else throw("Strict value is not equal to itself.") | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | ||
482 | 482 | @Callable(i) | |
483 | 483 | func setManager (pendingManagerPublicKey) = { | |
484 | 484 | let c = mm(i) | |
485 | 485 | if ((c == c)) | |
486 | 486 | then { | |
487 | 487 | let cm = fromBase58String(pendingManagerPublicKey) | |
488 | 488 | if ((cm == cm)) | |
489 | 489 | then [StringEntry(pmpk(), pendingManagerPublicKey)] | |
490 | 490 | else throw("Strict value is not equal to itself.") | |
491 | 491 | } | |
492 | 492 | else throw("Strict value is not equal to itself.") | |
493 | 493 | } | |
494 | 494 | ||
495 | 495 | ||
496 | 496 | ||
497 | 497 | @Callable(i) | |
498 | 498 | func confirmManager () = { | |
499 | 499 | let p = pm() | |
500 | 500 | let hpm = if (isDefined(p)) | |
501 | 501 | then true | |
502 | 502 | else throw("No pending manager") | |
503 | 503 | if ((hpm == hpm)) | |
504 | 504 | then { | |
505 | 505 | let cpm = if ((i.callerPublicKey == value(p))) | |
506 | 506 | then true | |
507 | 507 | else throw("You are not pending manager") | |
508 | 508 | if ((cpm == cpm)) | |
509 | 509 | then [StringEntry(mpk(), toBase58String(value(p))), DeleteEntry(pmpk())] | |
510 | 510 | else throw("Strict value is not equal to itself.") | |
511 | 511 | } | |
512 | 512 | else throw("Strict value is not equal to itself.") | |
513 | 513 | } | |
514 | 514 | ||
515 | 515 | ||
516 | 516 | ||
517 | 517 | @Callable(i) | |
518 | 518 | func put (slip,autoStake) = { | |
519 | 519 | let factCfg = gfc() | |
520 | 520 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
521 | 521 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
522 | 522 | if ((0 > slip)) | |
523 | 523 | then throw("Wrong slippage") | |
524 | 524 | else if ((size(i.payments) != 2)) | |
525 | 525 | then throw("2 pmnts expd") | |
526 | 526 | else { | |
527 | 527 | let e = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, 0, "") | |
528 | 528 | let emitLpAmt = e._2 | |
529 | 529 | let lpAssetId = e._7 | |
530 | 530 | let state = e._9 | |
531 | 531 | let amDiff = e._10 | |
532 | 532 | let prDiff = e._11 | |
533 | 533 | let amId = e._12 | |
534 | 534 | let prId = e._13 | |
535 | 535 | let r = invoke(fca, "emit", [emitLpAmt], nil) | |
536 | 536 | if ((r == r)) | |
537 | 537 | then { | |
538 | 538 | let el = match r { | |
539 | 539 | case legacy: Address => | |
540 | 540 | invoke(legacy, "emit", [emitLpAmt], nil) | |
541 | 541 | case _ => | |
542 | 542 | unit | |
543 | 543 | } | |
544 | 544 | if ((el == el)) | |
545 | 545 | then { | |
546 | 546 | let sa = if ((amDiff > 0)) | |
547 | 547 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
548 | 548 | else nil | |
549 | 549 | if ((sa == sa)) | |
550 | 550 | then { | |
551 | 551 | let sp = if ((prDiff > 0)) | |
552 | 552 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
553 | 553 | else nil | |
554 | 554 | if ((sp == sp)) | |
555 | 555 | then { | |
556 | 556 | let lpTrnsfr = if (autoStake) | |
557 | 557 | then { | |
558 | 558 | let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
559 | 559 | if ((ss == ss)) | |
560 | 560 | then nil | |
561 | 561 | else throw("Strict value is not equal to itself.") | |
562 | 562 | } | |
563 | 563 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
564 | 564 | (state ++ lpTrnsfr) | |
565 | 565 | } | |
566 | 566 | else throw("Strict value is not equal to itself.") | |
567 | 567 | } | |
568 | 568 | else throw("Strict value is not equal to itself.") | |
569 | 569 | } | |
570 | 570 | else throw("Strict value is not equal to itself.") | |
571 | 571 | } | |
572 | 572 | else throw("Strict value is not equal to itself.") | |
573 | 573 | } | |
574 | 574 | } | |
575 | 575 | ||
576 | 576 | ||
577 | 577 | ||
578 | 578 | @Callable(i) | |
579 | 579 | func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = { | |
580 | 580 | let cfg = gfc() | |
581 | 581 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr") | |
582 | 582 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr") | |
583 | 583 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr") | |
584 | 584 | let poolCfg = gpc() | |
585 | 585 | let amId = poolCfg[idxAmAsId] | |
586 | 586 | let prId = poolCfg[idxPrAsId] | |
587 | 587 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
588 | 588 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
589 | 589 | let addon = valueOrElse(getString(this, ada()), "") | |
590 | 590 | let userAddress = if ((addon == toString(i.caller))) | |
591 | 591 | then i.originCaller | |
592 | 592 | else i.caller | |
593 | 593 | let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid") | |
594 | 594 | let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil) | |
595 | 595 | if ((check == check)) | |
596 | 596 | then if (if (if (if ((0 >= slippage)) | |
597 | 597 | then true | |
598 | 598 | else (0 >= amAssetPart)) | |
599 | 599 | then true | |
600 | 600 | else (0 >= prAssetPart)) | |
601 | 601 | then true | |
602 | 602 | else (0 >= outLp)) | |
603 | 603 | then throw("Wrong params") | |
604 | 604 | else if ((size(i.payments) != 1)) | |
605 | 605 | then throw("1 pmnt expd") | |
606 | 606 | else { | |
607 | 607 | let pmt = value(i.payments[0]) | |
608 | 608 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
609 | 609 | let pmtAmt = pmt.amount | |
610 | 610 | if (if (if ((amAssetPart > pmtAmt)) | |
611 | 611 | then true | |
612 | 612 | else (prAssetPart > pmtAmt)) | |
613 | 613 | then true | |
614 | 614 | else (10000000 > pmtAmt)) | |
615 | 615 | then throw("Wrong pmt amt") | |
616 | 616 | else { | |
617 | 617 | let amBalance = getAccBalance(amId) | |
618 | 618 | let prBalance = getAccBalance(prId) | |
619 | 619 | let $t02487425254 = if ((pmtAssetId == amId)) | |
620 | 620 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
621 | 621 | else if ((pmtAssetId == prId)) | |
622 | 622 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
623 | 623 | else throw("wrong pmtAssetId") | |
624 | 624 | let amBalanceNow = $t02487425254._1 | |
625 | 625 | let prBalanceNow = $t02487425254._2 | |
626 | 626 | let virtSwapInAm = $t02487425254._3 | |
627 | 627 | let virtSwapOutPr = $t02487425254._4 | |
628 | 628 | let virtSwapInPr = $t02487425254._5 | |
629 | 629 | let virtSwapOutAm = $t02487425254._6 | |
630 | 630 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
631 | 631 | let D1 = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
632 | 632 | let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D) | |
633 | 633 | if ((D0vsD1 == D0vsD1)) | |
634 | 634 | then { | |
635 | 635 | let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), slippage, true, true, pmtAmt, pmtAssetId) | |
636 | 636 | let estimLP = estPut._2 | |
637 | 637 | let lpAssetId = estPut._7 | |
638 | 638 | let state = estPut._9 | |
639 | 639 | let amDiff = estPut._10 | |
640 | 640 | let prDiff = estPut._11 | |
641 | 641 | let lpCalcRes = vad(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
642 | 642 | let emitLpAmt = toInt(lpCalcRes._2) | |
643 | 643 | let e = invoke(fca, "emit", [emitLpAmt], nil) | |
644 | 644 | if ((e == e)) | |
645 | 645 | then { | |
646 | 646 | let el = match e { | |
647 | 647 | case legacy: Address => | |
648 | 648 | invoke(legacy, "emit", [emitLpAmt], nil) | |
649 | 649 | case _ => | |
650 | 650 | unit | |
651 | 651 | } | |
652 | 652 | if ((el == el)) | |
653 | 653 | then { | |
654 | 654 | let sa = if ((amDiff > 0)) | |
655 | 655 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
656 | 656 | else nil | |
657 | 657 | if ((sa == sa)) | |
658 | 658 | then { | |
659 | 659 | let sp = if ((prDiff > 0)) | |
660 | 660 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
661 | 661 | else nil | |
662 | 662 | if ((sp == sp)) | |
663 | 663 | then { | |
664 | 664 | let lpTrnsfr = if (autoStake) | |
665 | 665 | then { | |
666 | 666 | let ss = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
667 | 667 | if ((ss == ss)) | |
668 | 668 | then nil | |
669 | 669 | else throw("Strict value is not equal to itself.") | |
670 | 670 | } | |
671 | 671 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
672 | 672 | (state ++ lpTrnsfr) | |
673 | 673 | } | |
674 | 674 | else throw("Strict value is not equal to itself.") | |
675 | 675 | } | |
676 | 676 | else throw("Strict value is not equal to itself.") | |
677 | 677 | } | |
678 | 678 | else throw("Strict value is not equal to itself.") | |
679 | 679 | } | |
680 | 680 | else throw("Strict value is not equal to itself.") | |
681 | 681 | } | |
682 | 682 | else throw("Strict value is not equal to itself.") | |
683 | 683 | } | |
684 | 684 | } | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | ||
689 | 689 | ||
690 | 690 | @Callable(i) | |
691 | 691 | func putForFree (maxSlpg) = if ((0 > maxSlpg)) | |
692 | 692 | then throw("Wrong slpg") | |
693 | 693 | else if ((size(i.payments) != 2)) | |
694 | 694 | then throw("2 pmnts expd") | |
695 | 695 | else { | |
696 | 696 | let estPut = cp(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlpg, false, false, 0, "") | |
697 | 697 | estPut._9 | |
698 | 698 | } | |
699 | 699 | ||
700 | 700 | ||
701 | 701 | ||
702 | 702 | @Callable(i) | |
703 | 703 | func get () = { | |
704 | 704 | let r = cg(i) | |
705 | 705 | let outAmtAmt = r._1 | |
706 | 706 | let outPrAmt = r._2 | |
707 | 707 | let pmtAmt = r._3 | |
708 | 708 | let pmtAssetId = r._4 | |
709 | 709 | let state = r._5 | |
710 | 710 | let b = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
711 | 711 | if ((b == b)) | |
712 | 712 | then state | |
713 | 713 | else throw("Strict value is not equal to itself.") | |
714 | 714 | } | |
715 | 715 | ||
716 | 716 | ||
717 | 717 | ||
718 | 718 | @Callable(i) | |
719 | 719 | func getOneTkn (exchResult,notUsed,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
720 | 720 | then throw("1 pmnt expd") | |
721 | 721 | else { | |
722 | 722 | let cfg = gpc() | |
723 | 723 | let lpId = cfg[idxLPAsId] | |
724 | 724 | let amId = cfg[idxAmAsId] | |
725 | 725 | let prId = cfg[idxPrAsId] | |
726 | 726 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
727 | 727 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
728 | 728 | let sts = cfg[idxPoolSt] | |
729 | 729 | let factCfg = gfc() | |
730 | 730 | let gwxCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactGwxRewCntr]), "Wr sl addr") | |
731 | 731 | let pmt = value(i.payments[0]) | |
732 | 732 | let addon = valueOrElse(getString(this, ada()), "") | |
733 | 733 | let userAddress = if ((addon == toString(i.caller))) | |
734 | 734 | then i.originCaller | |
735 | 735 | else i.caller | |
736 | 736 | let txId58 = toBase58String(i.transactionId) | |
737 | 737 | let pmtAssetId = value(pmt.assetId) | |
738 | 738 | let pmtAmt = pmt.amount | |
739 | 739 | let addonContract = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(ada()), "no addons")), "addon address in not valid") | |
740 | 740 | let check = reentrantInvoke(addonContract, "ensureCanGetOrPutOneTkn", [toString(userAddress)], nil) | |
741 | 741 | if ((check == check)) | |
742 | 742 | then if ((1000000000 > pmtAmt)) | |
743 | 743 | then throw("Min pmt 10 LP") | |
744 | 744 | else if (if (if ((0 > slippage)) | |
745 | 745 | then true | |
746 | 746 | else (0 > exchResult)) | |
747 | 747 | then true | |
748 | 748 | else (0 > outAmount)) | |
749 | 749 | then throw("Wrong params") | |
750 | 750 | else if ((lpId != toBase58String(pmtAssetId))) | |
751 | 751 | then throw("Wrong LP") | |
752 | 752 | else { | |
753 | 753 | let r = ego(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
754 | 754 | let estimAmAmt = r._1 | |
755 | 755 | let estimPrAmt = r._2 | |
756 | 756 | let amBalance = getAccBalance(amId) | |
757 | 757 | let prBalance = getAccBalance(prId) | |
758 | 758 | let $t03029030747 = if ((outAssetId == amId)) | |
759 | 759 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), exchResult, estimPrAmt, 0, 0, (estimAmAmt + exchResult)) | |
760 | 760 | else if ((outAssetId == prId)) | |
761 | 761 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, exchResult, estimAmAmt, (estimPrAmt + exchResult)) | |
762 | 762 | else throw("wrong outAssetId") | |
763 | 763 | let amBalanceNow = $t03029030747._1 | |
764 | 764 | let prBalanceNow = $t03029030747._2 | |
765 | 765 | let virtSwapInAm = $t03029030747._3 | |
766 | 766 | let virtSwapOutPr = $t03029030747._4 | |
767 | 767 | let virtSwapInPr = $t03029030747._5 | |
768 | 768 | let virtSwapOutAm = $t03029030747._6 | |
769 | 769 | let totalGet = $t03029030747._7 | |
770 | 770 | if (if ((0 > virtSwapInAm)) | |
771 | 771 | then true | |
772 | 772 | else (0 > virtSwapInPr)) | |
773 | 773 | then throw("Wrong calc") | |
774 | 774 | else { | |
775 | 775 | let D0 = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
776 | 776 | let D1 = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
777 | 777 | let D0vsD1 = vd(parseBigIntValue(str(D1)), parseBigIntValue(str(D0)), slippage4D) | |
778 | 778 | if ((D0vsD1 == D0vsD1)) | |
779 | 779 | then { | |
780 | 780 | let finalRes = vad(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
781 | 781 | if ((finalRes == finalRes)) | |
782 | 782 | then { | |
783 | 783 | let $t03145231556 = if ((outAssetId == amId)) | |
784 | 784 | then $Tuple2(toInt(finalRes._2), 0) | |
785 | 785 | else $Tuple2(0, toInt(finalRes._2)) | |
786 | 786 | let outAm = $t03145231556._1 | |
787 | 787 | let outPr = $t03145231556._2 | |
788 | 788 | let curPrX18 = cpbi(t1(prBalance, prDcm), t1(amBalance, amDcm)) | |
789 | 789 | let curPr = f1(curPrX18, scale8) | |
790 | 790 | let state = [ScriptTransfer(userAddress, (outAm + outPr), if ((outAssetId == "WAVES")) | |
791 | 791 | then unit | |
792 | 792 | else fromBase58String(outAssetId)), StringEntry(gau(toString(userAddress), txId58), dataGetActionInfo(outAm, outPr, pmtAmt, curPr, height, lastBlock.timestamp)), IntegerEntry(pl(), curPr), IntegerEntry(ph(height, lastBlock.timestamp), curPr)] | |
793 | 793 | if ((state == state)) | |
794 | 794 | then { | |
795 | 795 | let burn = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
796 | 796 | if ((burn == burn)) | |
797 | 797 | then state | |
798 | 798 | else throw("Strict value is not equal to itself.") | |
799 | 799 | } | |
800 | 800 | else throw("Strict value is not equal to itself.") | |
801 | 801 | } | |
802 | 802 | else throw("Strict value is not equal to itself.") | |
803 | 803 | } | |
804 | 804 | else throw("Strict value is not equal to itself.") | |
805 | 805 | } | |
806 | 806 | } | |
807 | 807 | else throw("Strict value is not equal to itself.") | |
808 | 808 | } | |
809 | 809 | ||
810 | 810 | ||
811 | 811 | ||
812 | 812 | @Callable(i) | |
813 | 813 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
814 | 814 | let r = cg(i) | |
815 | 815 | let outAmAmt = r._1 | |
816 | 816 | let outPrAmt = r._2 | |
817 | 817 | let pmtAmt = r._3 | |
818 | 818 | let pmtAssetId = r._4 | |
819 | 819 | let state = r._5 | |
820 | 820 | if ((noLessThenAmtAsset > outAmAmt)) | |
821 | 821 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
822 | 822 | else if ((noLessThenPriceAsset > outPrAmt)) | |
823 | 823 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
824 | 824 | else { | |
825 | 825 | let burnLPAssetOnFactory = invoke(fca, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
826 | 826 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
827 | 827 | then state | |
828 | 828 | else throw("Strict value is not equal to itself.") | |
829 | 829 | } | |
830 | 830 | } | |
831 | 831 | ||
832 | 832 | ||
833 | 833 | ||
834 | 834 | @Callable(i) | |
835 | 835 | func unstakeAndGet (amount) = { | |
836 | 836 | let checkPayments = if ((size(i.payments) != 0)) | |
837 | 837 | then throw("No pmnts expd") | |
838 | 838 | else true | |
839 | 839 | if ((checkPayments == checkPayments)) | |
840 | 840 | then { | |
841 | 841 | let cfg = gpc() | |
842 | 842 | let factoryCfg = gfc() | |
843 | 843 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
844 | 844 | let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr") | |
845 | 845 | let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil) | |
846 | 846 | if ((unstakeInv == unstakeInv)) | |
847 | 847 | then { | |
848 | 848 | let r = ego(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
849 | 849 | let sts = parseIntValue(r._9) | |
850 | 850 | let state = r._10 | |
851 | 851 | let v = if (if (igs()) | |
852 | 852 | then true | |
853 | 853 | else (sts == PoolShutdown)) | |
854 | 854 | then throw(("Blocked: " + toString(sts))) | |
855 | 855 | else true | |
856 | 856 | if ((v == v)) | |
857 | 857 | then { | |
858 | 858 | let burnA = invoke(fca, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
859 | 859 | if ((burnA == burnA)) | |
860 | 860 | then state | |
861 | 861 | else throw("Strict value is not equal to itself.") | |
862 | 862 | } | |
863 | 863 | else throw("Strict value is not equal to itself.") | |
864 | 864 | } | |
865 | 865 | else throw("Strict value is not equal to itself.") | |
866 | 866 | } | |
867 | 867 | else throw("Strict value is not equal to itself.") | |
868 | 868 | } | |
869 | 869 | ||
870 | 870 | ||
871 | 871 | ||
872 | 872 | @Callable(i) | |
873 | 873 | func activate (amtAsStr,prAsStr) = if ((toString(i.caller) != toString(fca))) | |
874 | 874 | then throw("denied") | |
875 | 875 | else $Tuple2([StringEntry(aa(), amtAsStr), StringEntry(pa(), prAsStr)], "success") | |
876 | 876 | ||
877 | 877 | ||
878 | 878 | ||
879 | 879 | @Callable(i) | |
880 | 880 | func setS (k,v) = if ((toString(i.caller) != strf(this, ada()))) | |
881 | 881 | then pd | |
882 | 882 | else [StringEntry(k, v)] | |
883 | 883 | ||
884 | 884 | ||
885 | 885 | ||
886 | 886 | @Callable(i) | |
887 | 887 | func setI (k,v) = if ((toString(i.caller) != strf(this, ada()))) | |
888 | 888 | then pd | |
889 | 889 | else [IntegerEntry(k, v)] | |
890 | 890 | ||
891 | 891 | ||
892 | 892 | ||
893 | 893 | @Callable(i) | |
894 | 894 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, gpc()) | |
895 | 895 | ||
896 | 896 | ||
897 | 897 | ||
898 | 898 | @Callable(i) | |
899 | 899 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
900 | 900 | ||
901 | 901 | ||
902 | 902 | ||
903 | 903 | @Callable(i) | |
904 | 904 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
905 | 905 | let pr = calcPrices(amAmt, prAmt, lpAmt) | |
906 | 906 | $Tuple2(nil, [toString(pr[0]), toString(pr[1]), toString(pr[2])]) | |
907 | 907 | } | |
908 | 908 | ||
909 | 909 | ||
910 | 910 | ||
911 | 911 | @Callable(i) | |
912 | 912 | func fromX18WrapperREADONLY (val,resScaleMult) = $Tuple2(nil, f1(parseBigIntValue(val), resScaleMult)) | |
913 | 913 | ||
914 | 914 | ||
915 | 915 | ||
916 | 916 | @Callable(i) | |
917 | 917 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(t1(origVal, origScaleMult))) | |
918 | 918 | ||
919 | 919 | ||
920 | 920 | ||
921 | 921 | @Callable(i) | |
922 | 922 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(cpbi(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
923 | 923 | ||
924 | 924 | ||
925 | 925 | ||
926 | 926 | @Callable(i) | |
927 | 927 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, epo(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, false, 0, "")) | |
928 | 928 | ||
929 | 929 | ||
930 | 930 | ||
931 | 931 | @Callable(i) | |
932 | 932 | func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = { | |
933 | 933 | let r = ego(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr)) | |
934 | 934 | $Tuple2(nil, $Tuple10(r._1, r._2, r._3, r._4, r._5, r._6, r._7, toString(r._8), r._9, r._10)) | |
935 | 935 | } | |
936 | 936 | ||
937 | 937 | ||
938 | 938 | @Verifier(tx) | |
939 | 939 | func verify () = match tx { | |
940 | 940 | case order: Order => | |
941 | 941 | let mtchPub = mp() | |
942 | 942 | let orV = moa(order) | |
943 | 943 | let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
944 | 944 | let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub) | |
945 | 945 | if (if (if (orV) | |
946 | 946 | then sndrV | |
947 | 947 | else false) | |
948 | 948 | then mtchV | |
949 | 949 | else false) | |
950 | 950 | then true | |
951 | 951 | else toe(orV, sndrV, mtchV) | |
952 | 952 | case _ => | |
953 | 953 | let targetPublicKey = match m() { | |
954 | 954 | case pk: ByteVector => | |
955 | 955 | pk | |
956 | 956 | case _: Unit => | |
957 | 957 | tx.senderPublicKey | |
958 | 958 | case _ => | |
959 | 959 | throw("Match error") | |
960 | 960 | } | |
961 | 961 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
962 | 962 | } | |
963 | 963 |
github/deemru/w8io/026f985 90.92 ms ◑