tx · Abq1SM9x7sHMgUoq5P7EsREgnyTqREeELuTEad3mv7nn 3N23sqNJqpVXnHxv4nKXriWA8N6QLsPKd5K: -0.03400000 Waves 2022.12.06 18:23 [2348662] smart account 3N23sqNJqpVXnHxv4nKXriWA8N6QLsPKd5K > SELF 0.00000000 Waves
{ "type": 13, "id": "Abq1SM9x7sHMgUoq5P7EsREgnyTqREeELuTEad3mv7nn", "fee": 3400000, "feeAssetId": null, "timestamp": 1670340130773, "version": 1, "sender": "3N23sqNJqpVXnHxv4nKXriWA8N6QLsPKd5K", "senderPublicKey": "2fTQW76r4FCNaSvj5ycqdyqgJWWapZ2m25zmQLckTQwJ", "proofs": [ "5pzyL7i6sNgiMRXLtEF894YXFNnKtnycRcj1Kz4TAhHPFHEm25vVmicAZwLpu4DGgZE95P3e3GGXYbwbNvuPDiSM" ], "script": "base64:BgLYLAgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY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JneAZwcm9vZnMAAAUCZ3pEIjhO", "chainId": 84, "height": 2348662, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4RvmQCoXCZY4T322fgb6WpQ1iVsArUoiACL5srCkH6kL Next: FwV7c99qeNBLT3f9NSQMR2NHNtBrtNFY1NAk9Te6mi64 Diff:
Old | New | Differences | |
---|---|---|---|
426 | 426 | let du = di(dj, dk, 0) | |
427 | 427 | let dv = du._1 | |
428 | 428 | let dw = du._2 | |
429 | - | let dx = (dw > dt) | |
429 | + | let dx = (dw >= dt) | |
430 | 430 | dx | |
431 | 431 | } | |
432 | 432 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (H,I) = toInt(fraction(H, toBigInt(I), d)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (K,L,M) = fraction(K, L, M) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func N (H) = if ((0 > H)) | |
72 | 72 | then -(H) | |
73 | 73 | else H | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func O (H) = if ((e > H)) | |
77 | 77 | then -(H) | |
78 | 78 | else H | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func P () = "%s__factoryContract" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q () = "%s__managerPublicKey" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func R () = "%s__pendingManagerPublicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S () = "%s%s__price__last" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func T (U,V) = makeString(["%s%s%d%d__price__history", toString(U), toString(V)], j) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func W (X,Y) = ((("%s%s%s__P__" + X) + "__") + Y) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Z (X,Y) = ((("%s%s%s__G__" + X) + "__") + Y) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func aa () = "%s__amountAsset" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ab () = "%s__priceAsset" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let ac = "%s__fee" | |
109 | 109 | ||
110 | 110 | let ad = fraction(10, b, 10000) | |
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
114 | 114 | let af = makeString(["%s", "kLp"], j) | |
115 | 115 | ||
116 | 116 | let ag = makeString(["%s", "kLpRefreshedHeight"], j) | |
117 | 117 | ||
118 | 118 | let ah = makeString(["%s", "refreshKLpDelay"], j) | |
119 | 119 | ||
120 | 120 | let ai = 30 | |
121 | 121 | ||
122 | 122 | let aj = valueOrElse(getInteger(this, ah), ai) | |
123 | 123 | ||
124 | 124 | func ak () = "%s__factoryConfig" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func al () = "%s%s__matcher__publicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func am (an) = (("%s%s%s__" + an) + "__mappings__poolContract2LpAsset") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ao (ap,aq) = (((("%d%d%s__" + ap) + "__") + aq) + "__config") | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ar (as) = ("%s%s%s__mappings__baseAsset2internalId__" + as) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func at () = "%s__shutdown" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func au (av) = ("%s%s__poolWeight__" + av) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aw () = "%s__allowedLpScriptHash" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | let ax = "%s__feeCollectorAddress" | |
149 | 149 | ||
150 | 150 | func ay (az,aA,aB) = throw(((((("order validation failed: orderValid=" + toString(az)) + " senderValid=") + toString(aA)) + " matcherValid=") + toString(aB))) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aC (aD,aE) = valueOrErrorMessage(getString(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], "")) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aF (aD,aE) = valueOrErrorMessage(getInteger(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], "")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aG (aH) = throw(makeString(["lp.ride:", aH], " ")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func aI (aH) = makeString(["lp.ride:", aH], " ") | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | let aJ = addressFromStringValue(aC(this, P())) | |
166 | 166 | ||
167 | 167 | let aK = addressFromStringValue(aC(aJ, ax)) | |
168 | 168 | ||
169 | 169 | func aL () = valueOrElse(getBoolean(aJ, at()), false) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aM () = fromBase58String(aC(aJ, al())) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aN () = { | |
176 | 176 | let aO = aC(this, aa()) | |
177 | 177 | let aP = aC(this, ab()) | |
178 | 178 | let aq = aF(aJ, ar(aP)) | |
179 | 179 | let ap = aF(aJ, ar(aO)) | |
180 | 180 | split(aC(aJ, ao(toString(ap), toString(aq))), j) | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aQ (aR) = if ((aR == i)) | |
185 | 185 | then unit | |
186 | 186 | else fromBase58String(aR) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aS (aR) = if ((aR == unit)) | |
190 | 190 | then i | |
191 | 191 | else toBase58String(value(aR)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func aT (aU) = $Tuple7(addressFromStringValue(aU[o]), parseIntValue(aU[p]), fromBase58String(aU[q]), aQ(aU[r]), aQ(aU[s]), parseIntValue(aU[t]), parseIntValue(aU[u])) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let aV = aT(aN()) | |
198 | 198 | ||
199 | 199 | let aW = aV | |
200 | 200 | ||
201 | 201 | let aX = aW._1 | |
202 | 202 | ||
203 | 203 | let aY = aW._2 | |
204 | 204 | ||
205 | 205 | let aZ = aW._3 | |
206 | 206 | ||
207 | 207 | let ba = aW._4 | |
208 | 208 | ||
209 | 209 | let bb = aW._5 | |
210 | 210 | ||
211 | 211 | let bc = aW._6 | |
212 | 212 | ||
213 | 213 | let bd = aW._7 | |
214 | 214 | ||
215 | 215 | func be () = split(aC(aJ, ak()), j) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | let bf = valueOrErrorMessage(addressFromString(be()[B]), "incorrect staking address") | |
219 | 219 | ||
220 | 220 | let bg = valueOrErrorMessage(addressFromString(be()[C]), "incorrect staking address") | |
221 | 221 | ||
222 | 222 | func bh (bi,bj,bk,bl,bm,bn,bo,bp,bq,br) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bi), toString(bj), toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp), toString(bq), toString(br)], j) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func bs (bt,bu,bv,bl,bo,bp) = makeString(["%d%d%d%d%d%d", toString(bt), toString(bu), toString(bv), toString(bl), toString(bo), toString(bp)], j) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bw (bx) = if ((bx == "WAVES")) | |
229 | 229 | then wavesBalance(this).available | |
230 | 230 | else assetBalance(this, fromBase58String(bx)) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func by (bz,bA) = fraction(bz, d, bA) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func bB (bC,bD,bE,bF) = { | |
237 | 237 | let bG = D(bE, bC) | |
238 | 238 | let bH = D(bF, bD) | |
239 | 239 | by(bH, bG) | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func bI (bE,bF,bJ) = { | |
244 | 244 | let bK = aN() | |
245 | 245 | let bL = parseIntValue(bK[t]) | |
246 | 246 | let bM = parseIntValue(bK[u]) | |
247 | 247 | let bN = bB(bL, bM, bE, bF) | |
248 | 248 | let bA = D(bE, bL) | |
249 | 249 | let bz = D(bF, bM) | |
250 | 250 | let bO = D(bJ, b) | |
251 | 251 | let bP = by(bA, bO) | |
252 | 252 | let bQ = by(bz, bO) | |
253 | 253 | [bN, bP, bQ] | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func bR (bE,bF,bJ) = { | |
258 | 258 | let bS = bI(bE, bF, bJ) | |
259 | 259 | [G(bS[0], b), G(bS[1], b), G(bS[2], b)] | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bT (bU,bV,bW,X) = { | |
264 | 264 | let bK = aN() | |
265 | 265 | let bX = bK[q] | |
266 | 266 | let bY = bK[r] | |
267 | 267 | let bZ = bK[s] | |
268 | 268 | let bC = parseIntValue(bK[t]) | |
269 | 269 | let bD = parseIntValue(bK[u]) | |
270 | 270 | let ca = bK[p] | |
271 | 271 | let cb = valueOrErrorMessage(assetInfo(fromBase58String(bX)), (("Asset " + bX) + " doesn't exist")).quantity | |
272 | 272 | if ((bX != bV)) | |
273 | 273 | then throw("Invalid asset passed.") | |
274 | 274 | else { | |
275 | 275 | let cc = bw(bY) | |
276 | 276 | let cd = D(cc, bC) | |
277 | 277 | let ce = bw(bZ) | |
278 | 278 | let cf = D(ce, bD) | |
279 | 279 | let cg = by(cf, cd) | |
280 | 280 | let ch = G(cg, b) | |
281 | 281 | let ci = D(bW, b) | |
282 | 282 | let cj = D(cb, b) | |
283 | 283 | let ck = fraction(cd, ci, cj) | |
284 | 284 | let cl = fraction(cf, ci, cj) | |
285 | 285 | let cm = G(ck, bC) | |
286 | 286 | let cn = G(cl, bD) | |
287 | 287 | let co = if ((bU == "")) | |
288 | 288 | then nil | |
289 | 289 | else [ScriptTransfer(X, cm, if ((bY == "WAVES")) | |
290 | 290 | then unit | |
291 | 291 | else fromBase58String(bY)), ScriptTransfer(X, cn, if ((bZ == "WAVES")) | |
292 | 292 | then unit | |
293 | 293 | else fromBase58String(bZ)), StringEntry(Z(toString(X), bU), bs(cm, cn, bW, ch, height, lastBlock.timestamp)), IntegerEntry(S(), ch), IntegerEntry(T(height, lastBlock.timestamp), ch)] | |
294 | 294 | $Tuple10(cm, cn, bY, bZ, cc, ce, cb, cg, ca, co) | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func cp (bU,cq,cr,cs,ct,cu,X,cv,cw) = { | |
300 | 300 | let bK = aN() | |
301 | 301 | let bX = fromBase58String(bK[q]) | |
302 | 302 | let cx = bK[r] | |
303 | 303 | let cy = bK[s] | |
304 | 304 | let cz = bK[v] | |
305 | 305 | let cA = bK[w] | |
306 | 306 | let bL = parseIntValue(bK[t]) | |
307 | 307 | let bM = parseIntValue(bK[u]) | |
308 | 308 | let ca = bK[p] | |
309 | 309 | let cb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
310 | 310 | let cB = toBase58String(valueOrElse(cs, fromBase58String("WAVES"))) | |
311 | 311 | let cC = toBase58String(valueOrElse(cu, fromBase58String("WAVES"))) | |
312 | 312 | if (if ((cx != cB)) | |
313 | 313 | then true | |
314 | 314 | else (cy != cC)) | |
315 | 315 | then throw("Invalid amt or price asset passed.") | |
316 | 316 | else { | |
317 | 317 | let cc = if (cv) | |
318 | 318 | then bw(cx) | |
319 | 319 | else (bw(cx) - cr) | |
320 | 320 | let ce = if (cv) | |
321 | 321 | then bw(cy) | |
322 | 322 | else (bw(cy) - ct) | |
323 | 323 | let cD = D(cr, bL) | |
324 | 324 | let cE = D(ct, bM) | |
325 | 325 | let cF = by(cE, cD) | |
326 | 326 | let cd = D(cc, bL) | |
327 | 327 | let cf = D(ce, bM) | |
328 | 328 | let cG = if ((cb == 0)) | |
329 | 329 | then { | |
330 | 330 | let cg = e | |
331 | 331 | let cH = e | |
332 | 332 | let bO = pow((cD * cE), 0, toBigInt(5), 1, 0, DOWN) | |
333 | 333 | $Tuple5(G(bO, b), G(cD, bL), G(cE, bM), by((cf + cE), (cd + cD)), cH) | |
334 | 334 | } | |
335 | 335 | else { | |
336 | 336 | let cg = by(cf, cd) | |
337 | 337 | let cH = fraction(O((cg - cF)), d, cg) | |
338 | 338 | let cI = D(cq, b) | |
339 | 339 | if (if ((cg != e)) | |
340 | 340 | then (cH > cI) | |
341 | 341 | else false) | |
342 | 342 | then throw(((("Price slippage " + toString(cH)) + " exceeded the passed limit of ") + toString(cI))) | |
343 | 343 | else { | |
344 | 344 | let cj = D(cb, b) | |
345 | 345 | let cJ = fraction(cD, cg, d) | |
346 | 346 | let cK = fraction(cE, d, cg) | |
347 | 347 | let cL = if ((cJ > cE)) | |
348 | 348 | then $Tuple2(cK, cE) | |
349 | 349 | else $Tuple2(cD, cJ) | |
350 | 350 | let cM = cL._1 | |
351 | 351 | let cN = cL._2 | |
352 | 352 | let bO = fraction(cj, cN, cf) | |
353 | 353 | $Tuple5(G(bO, b), G(cM, bL), G(cN, bM), cg, cH) | |
354 | 354 | } | |
355 | 355 | } | |
356 | 356 | let cO = cG._1 | |
357 | 357 | let cP = cG._2 | |
358 | 358 | let cQ = cG._3 | |
359 | 359 | let ch = G(cG._4, b) | |
360 | 360 | let cR = G(cG._5, b) | |
361 | 361 | if ((0 >= cO)) | |
362 | 362 | then throw("Invalid calculations. LP calculated is less than zero.") | |
363 | 363 | else { | |
364 | 364 | let cS = if (!(cw)) | |
365 | 365 | then 0 | |
366 | 366 | else cO | |
367 | 367 | let cT = (cr - cP) | |
368 | 368 | let cU = (ct - cQ) | |
369 | 369 | let cV = [IntegerEntry(S(), ch), IntegerEntry(T(height, lastBlock.timestamp), ch), StringEntry(W(X, bU), bh(cP, cQ, cS, ch, cq, cR, height, lastBlock.timestamp, cT, cU))] | |
370 | 370 | $Tuple13(cO, cS, ch, cc, ce, cb, bX, ca, cV, cT, cU, cs, cu) | |
371 | 371 | } | |
372 | 372 | } | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func cW (cX,cY,cb) = { | |
377 | 377 | let cZ = fraction(pow((cX * cY), 0, toBigInt(5), 1, 0, DOWN), d, cb) | |
378 | 378 | cZ | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func da (db,dc,dd) = { | |
383 | 383 | let de = (toBigInt(bw(aS(ba))) - db) | |
384 | 384 | let df = (toBigInt(bw(aS(bb))) - dc) | |
385 | 385 | let dg = (toBigInt(value(assetInfo(aZ)).quantity) - dd) | |
386 | 386 | let dh = cW(de, df, dg) | |
387 | 387 | dh | |
388 | 388 | } | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | func di (dj,dk,dd) = { | |
392 | 392 | let de = (bw(aS(ba)) + dj) | |
393 | 393 | let df = (bw(aS(bb)) + dk) | |
394 | 394 | let dg = (value(assetInfo(aZ)).quantity + dd) | |
395 | 395 | let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg)) | |
396 | 396 | let dl = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))] | |
397 | 397 | $Tuple2(dl, cZ) | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | func dm (dn,cZ) = if ((cZ >= dn)) | |
402 | 402 | then true | |
403 | 403 | else aG("updated KLp lower than current KLp") | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | func do (dp) = { | |
407 | 407 | let dq = dp.amount | |
408 | 408 | let dr = fraction(dp.amount, dp.price, b) | |
409 | 409 | let ds = if ((dp.orderType == Buy)) | |
410 | 410 | then $Tuple2(dq, -(dr)) | |
411 | 411 | else $Tuple2(-(dq), dr) | |
412 | 412 | let dj = ds._1 | |
413 | 413 | let dk = ds._2 | |
414 | 414 | if (if (if (aL()) | |
415 | 415 | then true | |
416 | 416 | else (aY == m)) | |
417 | 417 | then true | |
418 | 418 | else (aY == n)) | |
419 | 419 | then throw("Exchange operations disabled") | |
420 | 420 | else if (if ((dp.assetPair.amountAsset != ba)) | |
421 | 421 | then true | |
422 | 422 | else (dp.assetPair.priceAsset != bb)) | |
423 | 423 | then throw("Wrong order assets.") | |
424 | 424 | else { | |
425 | 425 | let dt = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
426 | 426 | let du = di(dj, dk, 0) | |
427 | 427 | let dv = du._1 | |
428 | 428 | let dw = du._2 | |
429 | - | let dx = (dw > dt) | |
429 | + | let dx = (dw >= dt) | |
430 | 430 | dx | |
431 | 431 | } | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | func dy (dz) = if ((size(dz.payments) != 1)) | |
436 | 436 | then throw("exactly 1 payment is expected") | |
437 | 437 | else { | |
438 | 438 | let dA = value(dz.payments[0]) | |
439 | 439 | let bV = value(dA.assetId) | |
440 | 440 | let dB = dA.amount | |
441 | 441 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bV), dB, dz.caller) | |
442 | 442 | let cm = cG._1 | |
443 | 443 | let cn = cG._2 | |
444 | 444 | let ca = parseIntValue(cG._9) | |
445 | 445 | let co = cG._10 | |
446 | 446 | if (if (aL()) | |
447 | 447 | then true | |
448 | 448 | else (ca == n)) | |
449 | 449 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
450 | 450 | else $Tuple5(cm, cn, dB, bV, co) | |
451 | 451 | } | |
452 | 452 | ||
453 | 453 | ||
454 | 454 | func dC (dz,cq,cw) = if ((size(dz.payments) != 2)) | |
455 | 455 | then throw("exactly 2 payments are expected") | |
456 | 456 | else { | |
457 | 457 | let dD = value(dz.payments[0]) | |
458 | 458 | let dE = value(dz.payments[1]) | |
459 | 459 | let dF = cp(toBase58String(dz.transactionId), cq, dD.amount, dD.assetId, dE.amount, dE.assetId, toString(dz.caller), false, cw) | |
460 | 460 | let ca = parseIntValue(dF._8) | |
461 | 461 | if (if (if (aL()) | |
462 | 462 | then true | |
463 | 463 | else (ca == l)) | |
464 | 464 | then true | |
465 | 465 | else (ca == n)) | |
466 | 466 | then throw(("Put operation is blocked by admin. Status = " + toString(ca))) | |
467 | 467 | else dF | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func dG (dH) = { | |
472 | 472 | let dI = invoke(aJ, "emit", [dH], nil) | |
473 | 473 | if ((dI == dI)) | |
474 | 474 | then { | |
475 | 475 | let dJ = { | |
476 | 476 | let dK = dI | |
477 | 477 | if ($isInstanceOf(dK, "Address")) | |
478 | 478 | then { | |
479 | 479 | let dL = dK | |
480 | 480 | invoke(dL, "emit", [dH], nil) | |
481 | 481 | } | |
482 | 482 | else unit | |
483 | 483 | } | |
484 | 484 | if ((dJ == dJ)) | |
485 | 485 | then dH | |
486 | 486 | else throw("Strict value is not equal to itself.") | |
487 | 487 | } | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | func dM (dH) = { | |
493 | 493 | let dN = fraction(dH, ae, b) | |
494 | 494 | $Tuple2((dH - dN), dN) | |
495 | 495 | } | |
496 | 496 | ||
497 | 497 | ||
498 | 498 | func dO (dP,dQ,X,Y) = { | |
499 | 499 | let dR = (Y == unit) | |
500 | 500 | let dS = bw(aS(ba)) | |
501 | 501 | let dT = bw(aS(bb)) | |
502 | 502 | let dU = if ((dQ == ba)) | |
503 | 503 | then true | |
504 | 504 | else if ((dQ == bb)) | |
505 | 505 | then false | |
506 | 506 | else aG("invalid asset") | |
507 | 507 | let dV = if (dR) | |
508 | 508 | then $Tuple2(dS, dT) | |
509 | 509 | else if (dU) | |
510 | 510 | then $Tuple2((dS - dP), dT) | |
511 | 511 | else $Tuple2(dS, (dT - dP)) | |
512 | 512 | let dW = dV._1 | |
513 | 513 | let dX = dV._2 | |
514 | 514 | let dY = if (dU) | |
515 | 515 | then $Tuple2(dP, 0) | |
516 | 516 | else $Tuple2(0, dP) | |
517 | 517 | let dZ = dY._1 | |
518 | 518 | let ea = dY._2 | |
519 | 519 | let dq = dM(dZ)._1 | |
520 | 520 | let dr = dM(ea)._1 | |
521 | 521 | let eb = dM(dP) | |
522 | 522 | let ec = eb._1 | |
523 | 523 | let dN = eb._2 | |
524 | 524 | let ed = (dW + dq) | |
525 | 525 | let ee = (dX + dr) | |
526 | 526 | let ef = by(D(ee, bd), D(ed, bc)) | |
527 | 527 | let eg = G(ef, b) | |
528 | 528 | let eh = if (dU) | |
529 | 529 | then dW | |
530 | 530 | else dX | |
531 | 531 | let ei = toBigInt(eh) | |
532 | 532 | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
533 | 533 | let ek = if ((ej > f)) | |
534 | 534 | then true | |
535 | 535 | else aG("initial deposit requires all coins") | |
536 | 536 | if ((ek == ek)) | |
537 | 537 | then { | |
538 | 538 | let el = toBigInt(ec) | |
539 | 539 | let em = max([0, toInt(((ej * (sqrtBigInt((d + ((el * d) / ei)), 18, 18, DOWN) - d)) / d))]) | |
540 | 540 | let cV = if (dR) | |
541 | 541 | then nil | |
542 | 542 | else [IntegerEntry(S(), eg), IntegerEntry(T(height, lastBlock.timestamp), eg), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dZ, ea, em, eg, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
543 | 543 | let en = by(D(dX, bd), D(dW, bc)) | |
544 | 544 | let eo = G(en, b) | |
545 | 545 | let ep = { | |
546 | 546 | let eq = if (dU) | |
547 | 547 | then $Tuple2(dZ, dW) | |
548 | 548 | else $Tuple2(ea, dX) | |
549 | 549 | let dH = eq._1 | |
550 | 550 | let er = eq._2 | |
551 | 551 | let es = toInt(fraction(ej, toBigInt((dH / 2)), toBigInt(er))) | |
552 | 552 | fraction((em - es), b, es) | |
553 | 553 | } | |
554 | 554 | $Tuple5(em, cV, dN, ep, dU) | |
555 | 555 | } | |
556 | 556 | else throw("Strict value is not equal to itself.") | |
557 | 557 | } | |
558 | 558 | ||
559 | 559 | ||
560 | 560 | func et (eu,ec,dQ,X,Y) = { | |
561 | 561 | let dR = (Y == unit) | |
562 | 562 | let ev = [if ((dQ == aZ)) | |
563 | 563 | then true | |
564 | 564 | else aG("invalid lp asset")] | |
565 | 565 | if ((ev == ev)) | |
566 | 566 | then { | |
567 | 567 | let ew = if ((eu == ba)) | |
568 | 568 | then true | |
569 | 569 | else if ((eu == bb)) | |
570 | 570 | then false | |
571 | 571 | else aG("invalid asset") | |
572 | 572 | let ex = if (ew) | |
573 | 573 | then toBigInt(bw(aS(ba))) | |
574 | 574 | else toBigInt(bw(aS(bb))) | |
575 | 575 | let ey = bw(aS(ba)) | |
576 | 576 | let ez = bw(aS(bb)) | |
577 | 577 | let eA = if (ew) | |
578 | 578 | then ey | |
579 | 579 | else ez | |
580 | 580 | let eB = toBigInt(eA) | |
581 | 581 | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
582 | 582 | let eC = toBigInt(ec) | |
583 | 583 | let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))]) | |
584 | 584 | let eE = dM(eD) | |
585 | 585 | let eF = eE._1 | |
586 | 586 | let dN = eE._2 | |
587 | 587 | let eG = if (ew) | |
588 | 588 | then $Tuple4(eF, 0, (ey - eD), ez) | |
589 | 589 | else $Tuple4(0, eF, ey, (ez - eD)) | |
590 | 590 | let eH = eG._1 | |
591 | 591 | let eI = eG._2 | |
592 | 592 | let eJ = eG._3 | |
593 | 593 | let eK = eG._4 | |
594 | 594 | let ef = by(D(eK, bd), D(eJ, bc)) | |
595 | 595 | let eg = G(ef, b) | |
596 | 596 | let cV = if (dR) | |
597 | 597 | then nil | |
598 | 598 | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eH, eI, ec, eg, height, lastBlock.timestamp)), IntegerEntry(S(), eg), IntegerEntry(T(height, lastBlock.timestamp), eg)] | |
599 | 599 | let en = by(D(ez, bd), D(ey, bc)) | |
600 | 600 | let eo = G(en, b) | |
601 | 601 | let ep = { | |
602 | 602 | let eL = (toInt(fraction(ex, eC, ej)) * 2) | |
603 | 603 | fraction((eF - eL), b, eL) | |
604 | 604 | } | |
605 | 605 | $Tuple5(eF, cV, dN, ep, ew) | |
606 | 606 | } | |
607 | 607 | else throw("Strict value is not equal to itself.") | |
608 | 608 | } | |
609 | 609 | ||
610 | 610 | ||
611 | 611 | func eM () = { | |
612 | 612 | let dK = getString(Q()) | |
613 | 613 | if ($isInstanceOf(dK, "String")) | |
614 | 614 | then { | |
615 | 615 | let eN = dK | |
616 | 616 | fromBase58String(eN) | |
617 | 617 | } | |
618 | 618 | else if ($isInstanceOf(dK, "Unit")) | |
619 | 619 | then unit | |
620 | 620 | else throw("Match error") | |
621 | 621 | } | |
622 | 622 | ||
623 | 623 | ||
624 | 624 | func eO () = { | |
625 | 625 | let dK = getString(R()) | |
626 | 626 | if ($isInstanceOf(dK, "String")) | |
627 | 627 | then { | |
628 | 628 | let eN = dK | |
629 | 629 | fromBase58String(eN) | |
630 | 630 | } | |
631 | 631 | else if ($isInstanceOf(dK, "Unit")) | |
632 | 632 | then unit | |
633 | 633 | else throw("Match error") | |
634 | 634 | } | |
635 | 635 | ||
636 | 636 | ||
637 | 637 | func eP (dz) = { | |
638 | 638 | let dK = eM() | |
639 | 639 | if ($isInstanceOf(dK, "ByteVector")) | |
640 | 640 | then { | |
641 | 641 | let eQ = dK | |
642 | 642 | (dz.callerPublicKey == eQ) | |
643 | 643 | } | |
644 | 644 | else if ($isInstanceOf(dK, "Unit")) | |
645 | 645 | then (dz.caller == this) | |
646 | 646 | else throw("Match error") | |
647 | 647 | } | |
648 | 648 | ||
649 | 649 | ||
650 | 650 | func eR (dz) = { | |
651 | 651 | let eS = throw("Permission denied") | |
652 | 652 | let dK = eM() | |
653 | 653 | if ($isInstanceOf(dK, "ByteVector")) | |
654 | 654 | then { | |
655 | 655 | let eQ = dK | |
656 | 656 | if ((dz.callerPublicKey == eQ)) | |
657 | 657 | then true | |
658 | 658 | else eS | |
659 | 659 | } | |
660 | 660 | else if ($isInstanceOf(dK, "Unit")) | |
661 | 661 | then if ((dz.caller == this)) | |
662 | 662 | then true | |
663 | 663 | else eS | |
664 | 664 | else throw("Match error") | |
665 | 665 | } | |
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(dz) | |
669 | 669 | func setManager (eT) = { | |
670 | 670 | let eU = eR(dz) | |
671 | 671 | if ((eU == eU)) | |
672 | 672 | then { | |
673 | 673 | let eV = fromBase58String(eT) | |
674 | 674 | if ((eV == eV)) | |
675 | 675 | then [StringEntry(R(), eT)] | |
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 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(dz) | |
684 | 684 | func confirmManager () = { | |
685 | 685 | let eW = eO() | |
686 | 686 | let eX = if (isDefined(eW)) | |
687 | 687 | then true | |
688 | 688 | else throw("No pending manager") | |
689 | 689 | if ((eX == eX)) | |
690 | 690 | then { | |
691 | 691 | let eY = if ((dz.callerPublicKey == value(eW))) | |
692 | 692 | then true | |
693 | 693 | else throw("You are not pending manager") | |
694 | 694 | if ((eY == eY)) | |
695 | 695 | then [StringEntry(Q(), toBase58String(value(eW))), DeleteEntry(R())] | |
696 | 696 | else throw("Strict value is not equal to itself.") | |
697 | 697 | } | |
698 | 698 | else throw("Strict value is not equal to itself.") | |
699 | 699 | } | |
700 | 700 | ||
701 | 701 | ||
702 | 702 | ||
703 | 703 | @Callable(dz) | |
704 | 704 | func put (cq,eZ) = if ((0 > cq)) | |
705 | 705 | then throw("Invalid slippageTolerance passed") | |
706 | 706 | else { | |
707 | 707 | let dF = dC(dz, cq, true) | |
708 | 708 | let cS = dF._2 | |
709 | 709 | let bX = dF._7 | |
710 | 710 | let co = dF._9 | |
711 | 711 | let cT = dF._10 | |
712 | 712 | let cU = dF._11 | |
713 | 713 | let fa = dF._12 | |
714 | 714 | let fb = dF._13 | |
715 | 715 | let dD = toBigInt(value(dz.payments[0]).amount) | |
716 | 716 | let dE = toBigInt(value(dz.payments[1]).amount) | |
717 | 717 | let dh = da(dD, dE, toBigInt(0)) | |
718 | 718 | if ((dh == dh)) | |
719 | 719 | then { | |
720 | 720 | let dI = invoke(aJ, "emit", [cS], nil) | |
721 | 721 | if ((dI == dI)) | |
722 | 722 | then { | |
723 | 723 | let dJ = { | |
724 | 724 | let dK = dI | |
725 | 725 | if ($isInstanceOf(dK, "Address")) | |
726 | 726 | then { | |
727 | 727 | let dL = dK | |
728 | 728 | invoke(dL, "emit", [cS], nil) | |
729 | 729 | } | |
730 | 730 | else unit | |
731 | 731 | } | |
732 | 732 | if ((dJ == dJ)) | |
733 | 733 | then { | |
734 | 734 | let fc = if ((cT > 0)) | |
735 | 735 | then invoke(bg, "put", nil, [AttachedPayment(fa, cT)]) | |
736 | 736 | else nil | |
737 | 737 | if ((fc == fc)) | |
738 | 738 | then { | |
739 | 739 | let fd = if ((cU > 0)) | |
740 | 740 | then invoke(bg, "put", nil, [AttachedPayment(fb, cU)]) | |
741 | 741 | else nil | |
742 | 742 | if ((fd == fd)) | |
743 | 743 | then { | |
744 | 744 | let fe = if (eZ) | |
745 | 745 | then { | |
746 | 746 | let ff = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
747 | 747 | if ((ff == ff)) | |
748 | 748 | then nil | |
749 | 749 | else throw("Strict value is not equal to itself.") | |
750 | 750 | } | |
751 | 751 | else [ScriptTransfer(dz.caller, cS, bX)] | |
752 | 752 | let fg = di(0, 0, 0) | |
753 | 753 | let fh = fg._1 | |
754 | 754 | let cZ = fg._2 | |
755 | 755 | let fi = dm(dh, cZ) | |
756 | 756 | if ((fi == fi)) | |
757 | 757 | then ((co ++ fe) ++ fh) | |
758 | 758 | else throw("Strict value is not equal to itself.") | |
759 | 759 | } | |
760 | 760 | else throw("Strict value is not equal to itself.") | |
761 | 761 | } | |
762 | 762 | else throw("Strict value is not equal to itself.") | |
763 | 763 | } | |
764 | 764 | else throw("Strict value is not equal to itself.") | |
765 | 765 | } | |
766 | 766 | else throw("Strict value is not equal to itself.") | |
767 | 767 | } | |
768 | 768 | else throw("Strict value is not equal to itself.") | |
769 | 769 | } | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | ||
773 | 773 | @Callable(dz) | |
774 | 774 | func putForFree (fj) = if ((0 > fj)) | |
775 | 775 | then throw("Invalid value passed") | |
776 | 776 | else { | |
777 | 777 | let dF = dC(dz, fj, false) | |
778 | 778 | let co = dF._9 | |
779 | 779 | let dD = toBigInt(value(dz.payments[0]).amount) | |
780 | 780 | let dE = toBigInt(value(dz.payments[1]).amount) | |
781 | 781 | let dh = da(dD, dE, toBigInt(0)) | |
782 | 782 | if ((dh == dh)) | |
783 | 783 | then { | |
784 | 784 | let fk = di(0, 0, 0) | |
785 | 785 | let fh = fk._1 | |
786 | 786 | let cZ = fk._2 | |
787 | 787 | let fi = dm(dh, cZ) | |
788 | 788 | if ((fi == fi)) | |
789 | 789 | then (co ++ fh) | |
790 | 790 | else throw("Strict value is not equal to itself.") | |
791 | 791 | } | |
792 | 792 | else throw("Strict value is not equal to itself.") | |
793 | 793 | } | |
794 | 794 | ||
795 | 795 | ||
796 | 796 | ||
797 | 797 | @Callable(dz) | |
798 | 798 | func putOneTkn (fl,fm) = { | |
799 | 799 | let fn = { | |
800 | 800 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
801 | 801 | if ($isInstanceOf(fo, "Boolean")) | |
802 | 802 | then fo | |
803 | 803 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
804 | 804 | } | |
805 | 805 | let fp = if (if (if (aL()) | |
806 | 806 | then true | |
807 | 807 | else (aY == l)) | |
808 | 808 | then true | |
809 | 809 | else (aY == n)) | |
810 | 810 | then true | |
811 | 811 | else fn | |
812 | 812 | let ev = [if (if (!(fp)) | |
813 | 813 | then true | |
814 | 814 | else eP(dz)) | |
815 | 815 | then true | |
816 | 816 | else aG("put operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
817 | 817 | then true | |
818 | 818 | else aG("exactly 1 payment are expected")] | |
819 | 819 | if ((ev == ev)) | |
820 | 820 | then { | |
821 | 821 | let fq = dz.payments[0] | |
822 | 822 | let dQ = fq.assetId | |
823 | 823 | let dP = fq.amount | |
824 | 824 | let dh = if ((dQ == ba)) | |
825 | 825 | then da(toBigInt(dP), toBigInt(0), toBigInt(0)) | |
826 | 826 | else if ((dQ == bb)) | |
827 | 827 | then da(toBigInt(0), toBigInt(dP), toBigInt(0)) | |
828 | 828 | else aG("payment asset is not supported") | |
829 | 829 | let X = dz.caller | |
830 | 830 | let Y = dz.transactionId | |
831 | 831 | let fr = dO(dP, dQ, X, Y) | |
832 | 832 | if ((fr == fr)) | |
833 | 833 | then { | |
834 | 834 | let dU = fr._5 | |
835 | 835 | let fs = fr._4 | |
836 | 836 | let dN = fr._3 | |
837 | 837 | let cV = fr._2 | |
838 | 838 | let ft = fr._1 | |
839 | 839 | let fu = if (if ((fl > 0)) | |
840 | 840 | then (fl > ft) | |
841 | 841 | else false) | |
842 | 842 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
843 | 843 | else ft | |
844 | 844 | let dI = dG(fu) | |
845 | 845 | if ((dI == dI)) | |
846 | 846 | then { | |
847 | 847 | let fe = if (fm) | |
848 | 848 | then { | |
849 | 849 | let fv = invoke(bf, "stake", nil, [AttachedPayment(aZ, fu)]) | |
850 | 850 | if ((fv == fv)) | |
851 | 851 | then nil | |
852 | 852 | else throw("Strict value is not equal to itself.") | |
853 | 853 | } | |
854 | 854 | else [ScriptTransfer(dz.caller, fu, aZ)] | |
855 | 855 | let fw = if ((dN > 0)) | |
856 | 856 | then [ScriptTransfer(aK, dN, dQ)] | |
857 | 857 | else nil | |
858 | 858 | let fx = if ((this == aK)) | |
859 | 859 | then $Tuple2(0, 0) | |
860 | 860 | else if (dU) | |
861 | 861 | then $Tuple2(-(dN), 0) | |
862 | 862 | else $Tuple2(0, -(dN)) | |
863 | 863 | let dj = fx._1 | |
864 | 864 | let dk = fx._2 | |
865 | 865 | let fy = di(dj, dk, 0) | |
866 | 866 | let fh = fy._1 | |
867 | 867 | let cZ = fy._2 | |
868 | 868 | let fi = dm(dh, cZ) | |
869 | 869 | if ((fi == fi)) | |
870 | 870 | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
871 | 871 | else throw("Strict value is not equal to itself.") | |
872 | 872 | } | |
873 | 873 | else throw("Strict value is not equal to itself.") | |
874 | 874 | } | |
875 | 875 | else throw("Strict value is not equal to itself.") | |
876 | 876 | } | |
877 | 877 | else throw("Strict value is not equal to itself.") | |
878 | 878 | } | |
879 | 879 | ||
880 | 880 | ||
881 | 881 | ||
882 | 882 | @Callable(dz) | |
883 | 883 | func putOneTknREADONLY (dQ,dP) = { | |
884 | 884 | let fz = dO(dP, aQ(dQ), unit, unit) | |
885 | 885 | let ft = fz._1 | |
886 | 886 | let cV = fz._2 | |
887 | 887 | let dN = fz._3 | |
888 | 888 | let fs = fz._4 | |
889 | 889 | let dU = fz._5 | |
890 | 890 | $Tuple2(nil, $Tuple3(ft, dN, fs)) | |
891 | 891 | } | |
892 | 892 | ||
893 | 893 | ||
894 | 894 | ||
895 | 895 | @Callable(dz) | |
896 | 896 | func getOneTkn (fA,fl) = { | |
897 | 897 | let fn = { | |
898 | 898 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
899 | 899 | if ($isInstanceOf(fo, "Boolean")) | |
900 | 900 | then fo | |
901 | 901 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
902 | 902 | } | |
903 | 903 | let fB = if (if (aL()) | |
904 | 904 | then true | |
905 | 905 | else (aY == n)) | |
906 | 906 | then true | |
907 | 907 | else fn | |
908 | 908 | let ev = [if (if (!(fB)) | |
909 | 909 | then true | |
910 | 910 | else eP(dz)) | |
911 | 911 | then true | |
912 | 912 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
913 | 913 | then true | |
914 | 914 | else aG("exactly 1 payment are expected")] | |
915 | 915 | if ((ev == ev)) | |
916 | 916 | then { | |
917 | 917 | let eu = aQ(fA) | |
918 | 918 | let fq = dz.payments[0] | |
919 | 919 | let dQ = fq.assetId | |
920 | 920 | let ec = fq.amount | |
921 | 921 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec)) | |
922 | 922 | let X = dz.caller | |
923 | 923 | let Y = dz.transactionId | |
924 | 924 | let fC = et(eu, ec, dQ, X, Y) | |
925 | 925 | if ((fC == fC)) | |
926 | 926 | then { | |
927 | 927 | let ew = fC._5 | |
928 | 928 | let fs = fC._4 | |
929 | 929 | let dN = fC._3 | |
930 | 930 | let cV = fC._2 | |
931 | 931 | let fD = fC._1 | |
932 | 932 | let dH = if (if ((fl > 0)) | |
933 | 933 | then (fl > fD) | |
934 | 934 | else false) | |
935 | 935 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
936 | 936 | else fD | |
937 | 937 | let fE = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)]) | |
938 | 938 | if ((fE == fE)) | |
939 | 939 | then { | |
940 | 940 | let fF = [ScriptTransfer(X, dH, eu)] | |
941 | 941 | let fw = if ((dN > 0)) | |
942 | 942 | then [ScriptTransfer(aK, dN, eu)] | |
943 | 943 | else nil | |
944 | 944 | let fG = { | |
945 | 945 | let fH = if ((this == aK)) | |
946 | 946 | then 0 | |
947 | 947 | else dN | |
948 | 948 | if (ew) | |
949 | 949 | then $Tuple2(-((dH + fH)), 0) | |
950 | 950 | else $Tuple2(0, -((dH + fH))) | |
951 | 951 | } | |
952 | 952 | let dj = fG._1 | |
953 | 953 | let dk = fG._2 | |
954 | 954 | let fI = di(dj, dk, 0) | |
955 | 955 | let fh = fI._1 | |
956 | 956 | let cZ = fI._2 | |
957 | 957 | let fi = dm(dh, cZ) | |
958 | 958 | if ((fi == fi)) | |
959 | 959 | then $Tuple2((((cV ++ fF) ++ fw) ++ fh), dH) | |
960 | 960 | else throw("Strict value is not equal to itself.") | |
961 | 961 | } | |
962 | 962 | else throw("Strict value is not equal to itself.") | |
963 | 963 | } | |
964 | 964 | else throw("Strict value is not equal to itself.") | |
965 | 965 | } | |
966 | 966 | else throw("Strict value is not equal to itself.") | |
967 | 967 | } | |
968 | 968 | ||
969 | 969 | ||
970 | 970 | ||
971 | 971 | @Callable(dz) | |
972 | 972 | func getOneTknREADONLY (eu,ec) = { | |
973 | 973 | let fJ = et(aQ(eu), ec, aZ, unit, unit) | |
974 | 974 | let fD = fJ._1 | |
975 | 975 | let cV = fJ._2 | |
976 | 976 | let dN = fJ._3 | |
977 | 977 | let fs = fJ._4 | |
978 | 978 | let ew = fJ._5 | |
979 | 979 | $Tuple2(nil, $Tuple3(fD, dN, fs)) | |
980 | 980 | } | |
981 | 981 | ||
982 | 982 | ||
983 | 983 | ||
984 | 984 | @Callable(dz) | |
985 | 985 | func unstakeAndGetOneTkn (fK,fA,fl) = { | |
986 | 986 | let fn = { | |
987 | 987 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
988 | 988 | if ($isInstanceOf(fo, "Boolean")) | |
989 | 989 | then fo | |
990 | 990 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
991 | 991 | } | |
992 | 992 | let fB = if (if (aL()) | |
993 | 993 | then true | |
994 | 994 | else (aY == n)) | |
995 | 995 | then true | |
996 | 996 | else fn | |
997 | 997 | let ev = [if (if (!(fB)) | |
998 | 998 | then true | |
999 | 999 | else eP(dz)) | |
1000 | 1000 | then true | |
1001 | 1001 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1002 | 1002 | then true | |
1003 | 1003 | else aG("no payments are expected")] | |
1004 | 1004 | if ((ev == ev)) | |
1005 | 1005 | then { | |
1006 | 1006 | let eu = aQ(fA) | |
1007 | 1007 | let X = dz.caller | |
1008 | 1008 | let Y = dz.transactionId | |
1009 | 1009 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1010 | 1010 | let fL = invoke(bf, "unstake", [toBase58String(aZ), fK], nil) | |
1011 | 1011 | if ((fL == fL)) | |
1012 | 1012 | then { | |
1013 | 1013 | let fM = et(eu, fK, aZ, X, Y) | |
1014 | 1014 | if ((fM == fM)) | |
1015 | 1015 | then { | |
1016 | 1016 | let ew = fM._5 | |
1017 | 1017 | let fs = fM._4 | |
1018 | 1018 | let dN = fM._3 | |
1019 | 1019 | let cV = fM._2 | |
1020 | 1020 | let fD = fM._1 | |
1021 | 1021 | let dH = if (if ((fl > 0)) | |
1022 | 1022 | then (fl > fD) | |
1023 | 1023 | else false) | |
1024 | 1024 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
1025 | 1025 | else fD | |
1026 | 1026 | let fE = invoke(aJ, "burn", [fK], [AttachedPayment(aZ, fK)]) | |
1027 | 1027 | if ((fE == fE)) | |
1028 | 1028 | then { | |
1029 | 1029 | let fF = [ScriptTransfer(dz.caller, dH, eu)] | |
1030 | 1030 | let fw = if ((dN > 0)) | |
1031 | 1031 | then [ScriptTransfer(aK, dN, eu)] | |
1032 | 1032 | else nil | |
1033 | 1033 | let fN = { | |
1034 | 1034 | let fH = if ((this == aK)) | |
1035 | 1035 | then 0 | |
1036 | 1036 | else dN | |
1037 | 1037 | if (ew) | |
1038 | 1038 | then $Tuple2(-((dH + fH)), 0) | |
1039 | 1039 | else $Tuple2(0, -((dH + fH))) | |
1040 | 1040 | } | |
1041 | 1041 | let dj = fN._1 | |
1042 | 1042 | let dk = fN._2 | |
1043 | 1043 | let fO = di(dj, dk, 0) | |
1044 | 1044 | let fh = fO._1 | |
1045 | 1045 | let cZ = fO._2 | |
1046 | 1046 | let fi = dm(dh, cZ) | |
1047 | 1047 | if ((fi == fi)) | |
1048 | 1048 | then $Tuple2((((cV ++ fF) ++ fw) ++ fh), dH) | |
1049 | 1049 | else throw("Strict value is not equal to itself.") | |
1050 | 1050 | } | |
1051 | 1051 | else throw("Strict value is not equal to itself.") | |
1052 | 1052 | } | |
1053 | 1053 | else throw("Strict value is not equal to itself.") | |
1054 | 1054 | } | |
1055 | 1055 | else throw("Strict value is not equal to itself.") | |
1056 | 1056 | } | |
1057 | 1057 | else throw("Strict value is not equal to itself.") | |
1058 | 1058 | } | |
1059 | 1059 | ||
1060 | 1060 | ||
1061 | 1061 | ||
1062 | 1062 | @Callable(dz) | |
1063 | 1063 | func get () = { | |
1064 | 1064 | let cG = dy(dz) | |
1065 | 1065 | let fP = cG._1 | |
1066 | 1066 | let cn = cG._2 | |
1067 | 1067 | let dB = cG._3 | |
1068 | 1068 | let bV = cG._4 | |
1069 | 1069 | let co = cG._5 | |
1070 | 1070 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1071 | 1071 | let fQ = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1072 | 1072 | if ((fQ == fQ)) | |
1073 | 1073 | then { | |
1074 | 1074 | let fR = di(-(fP), -(cn), 0) | |
1075 | 1075 | let fh = fR._1 | |
1076 | 1076 | let cZ = fR._2 | |
1077 | 1077 | let fi = dm(dh, cZ) | |
1078 | 1078 | if ((fi == fi)) | |
1079 | 1079 | then (co ++ fh) | |
1080 | 1080 | else throw("Strict value is not equal to itself.") | |
1081 | 1081 | } | |
1082 | 1082 | else throw("Strict value is not equal to itself.") | |
1083 | 1083 | } | |
1084 | 1084 | ||
1085 | 1085 | ||
1086 | 1086 | ||
1087 | 1087 | @Callable(dz) | |
1088 | 1088 | func getNoLess (fS,fT) = { | |
1089 | 1089 | let cG = dy(dz) | |
1090 | 1090 | let cm = cG._1 | |
1091 | 1091 | let cn = cG._2 | |
1092 | 1092 | let dB = cG._3 | |
1093 | 1093 | let bV = cG._4 | |
1094 | 1094 | let co = cG._5 | |
1095 | 1095 | if ((fS > cm)) | |
1096 | 1096 | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fS))) | |
1097 | 1097 | else if ((fT > cn)) | |
1098 | 1098 | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fT))) | |
1099 | 1099 | else { | |
1100 | 1100 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1101 | 1101 | let fQ = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1102 | 1102 | if ((fQ == fQ)) | |
1103 | 1103 | then { | |
1104 | 1104 | let fU = di(-(cm), -(cn), 0) | |
1105 | 1105 | let fh = fU._1 | |
1106 | 1106 | let cZ = fU._2 | |
1107 | 1107 | let fi = dm(dh, cZ) | |
1108 | 1108 | if ((fi == fi)) | |
1109 | 1109 | then (co ++ fh) | |
1110 | 1110 | else throw("Strict value is not equal to itself.") | |
1111 | 1111 | } | |
1112 | 1112 | else throw("Strict value is not equal to itself.") | |
1113 | 1113 | } | |
1114 | 1114 | } | |
1115 | 1115 | ||
1116 | 1116 | ||
1117 | 1117 | ||
1118 | 1118 | @Callable(dz) | |
1119 | 1119 | func unstakeAndGet (dH) = { | |
1120 | 1120 | let fV = if ((size(dz.payments) != 0)) | |
1121 | 1121 | then throw("No payments are expected") | |
1122 | 1122 | else true | |
1123 | 1123 | if ((fV == fV)) | |
1124 | 1124 | then { | |
1125 | 1125 | let bK = aN() | |
1126 | 1126 | let bX = fromBase58String(bK[q]) | |
1127 | 1127 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1128 | 1128 | let fL = invoke(bf, "unstake", [toBase58String(bX), dH], nil) | |
1129 | 1129 | if ((fL == fL)) | |
1130 | 1130 | then { | |
1131 | 1131 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller) | |
1132 | 1132 | let cm = cG._1 | |
1133 | 1133 | let cn = cG._2 | |
1134 | 1134 | let ca = parseIntValue(cG._9) | |
1135 | 1135 | let co = cG._10 | |
1136 | 1136 | let fW = if (if (aL()) | |
1137 | 1137 | then true | |
1138 | 1138 | else (ca == n)) | |
1139 | 1139 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1140 | 1140 | else true | |
1141 | 1141 | if ((fW == fW)) | |
1142 | 1142 | then { | |
1143 | 1143 | let fQ = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)]) | |
1144 | 1144 | if ((fQ == fQ)) | |
1145 | 1145 | then { | |
1146 | 1146 | let fX = di(-(cm), -(cn), 0) | |
1147 | 1147 | let fh = fX._1 | |
1148 | 1148 | let cZ = fX._2 | |
1149 | 1149 | let fi = dm(dh, cZ) | |
1150 | 1150 | if ((fi == fi)) | |
1151 | 1151 | then (co ++ fh) | |
1152 | 1152 | else throw("Strict value is not equal to itself.") | |
1153 | 1153 | } | |
1154 | 1154 | else throw("Strict value is not equal to itself.") | |
1155 | 1155 | } | |
1156 | 1156 | else throw("Strict value is not equal to itself.") | |
1157 | 1157 | } | |
1158 | 1158 | else throw("Strict value is not equal to itself.") | |
1159 | 1159 | } | |
1160 | 1160 | else throw("Strict value is not equal to itself.") | |
1161 | 1161 | } | |
1162 | 1162 | ||
1163 | 1163 | ||
1164 | 1164 | ||
1165 | 1165 | @Callable(dz) | |
1166 | 1166 | func unstakeAndGetNoLess (fK,fY,fT) = { | |
1167 | 1167 | let fB = if (aL()) | |
1168 | 1168 | then true | |
1169 | 1169 | else (aY == n) | |
1170 | 1170 | let ev = [if (!(fB)) | |
1171 | 1171 | then true | |
1172 | 1172 | else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1173 | 1173 | then true | |
1174 | 1174 | else throw("no payments are expected")] | |
1175 | 1175 | if ((ev == ev)) | |
1176 | 1176 | then { | |
1177 | 1177 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1178 | 1178 | let fL = invoke(bf, "unstake", [toBase58String(aZ), fK], nil) | |
1179 | 1179 | if ((fL == fL)) | |
1180 | 1180 | then { | |
1181 | 1181 | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fK, dz.caller) | |
1182 | 1182 | let cm = cG._1 | |
1183 | 1183 | let cn = cG._2 | |
1184 | 1184 | let co = cG._10 | |
1185 | 1185 | let fZ = [if ((cm >= fY)) | |
1186 | 1186 | then true | |
1187 | 1187 | else throw(makeString(["amount asset amount to receive is less than ", toString(fY)], "")), if ((cn >= fT)) | |
1188 | 1188 | then true | |
1189 | 1189 | else throw(makeString(["price asset amount to receive is less than ", toString(fT)], ""))] | |
1190 | 1190 | if ((fZ == fZ)) | |
1191 | 1191 | then { | |
1192 | 1192 | let fQ = invoke(aJ, "burn", [fK], [AttachedPayment(aZ, fK)]) | |
1193 | 1193 | if ((fQ == fQ)) | |
1194 | 1194 | then { | |
1195 | 1195 | let ga = di(-(cm), -(cn), 0) | |
1196 | 1196 | let fh = ga._1 | |
1197 | 1197 | let cZ = ga._2 | |
1198 | 1198 | let fi = dm(dh, cZ) | |
1199 | 1199 | if ((fi == fi)) | |
1200 | 1200 | then (co ++ fh) | |
1201 | 1201 | else throw("Strict value is not equal to itself.") | |
1202 | 1202 | } | |
1203 | 1203 | else throw("Strict value is not equal to itself.") | |
1204 | 1204 | } | |
1205 | 1205 | else throw("Strict value is not equal to itself.") | |
1206 | 1206 | } | |
1207 | 1207 | else throw("Strict value is not equal to itself.") | |
1208 | 1208 | } | |
1209 | 1209 | else throw("Strict value is not equal to itself.") | |
1210 | 1210 | } | |
1211 | 1211 | ||
1212 | 1212 | ||
1213 | 1213 | ||
1214 | 1214 | @Callable(dz) | |
1215 | 1215 | func activate (gb,gc) = if ((toString(dz.caller) != toString(aJ))) | |
1216 | 1216 | then throw("permissions denied") | |
1217 | 1217 | else $Tuple2([StringEntry(aa(), gb), StringEntry(ab(), gc)], "success") | |
1218 | 1218 | ||
1219 | 1219 | ||
1220 | 1220 | ||
1221 | 1221 | @Callable(dz) | |
1222 | 1222 | func refreshKLp () = { | |
1223 | 1223 | let gd = valueOrElse(getInteger(ag), 0) | |
1224 | 1224 | let ge = if (((height - gd) >= aj)) | |
1225 | 1225 | then unit | |
1226 | 1226 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1227 | 1227 | if ((ge == ge)) | |
1228 | 1228 | then { | |
1229 | 1229 | let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1230 | 1230 | let gf = di(0, 0, 0) | |
1231 | 1231 | let gg = gf._1 | |
1232 | 1232 | let cZ = gf._2 | |
1233 | 1233 | let dl = if ((dt != cZ)) | |
1234 | 1234 | then gg | |
1235 | 1235 | else aG("nothing to refresh") | |
1236 | 1236 | $Tuple2(dl, toString(cZ)) | |
1237 | 1237 | } | |
1238 | 1238 | else throw("Strict value is not equal to itself.") | |
1239 | 1239 | } | |
1240 | 1240 | ||
1241 | 1241 | ||
1242 | 1242 | ||
1243 | 1243 | @Callable(dz) | |
1244 | 1244 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1245 | 1245 | ||
1246 | 1246 | ||
1247 | 1247 | ||
1248 | 1248 | @Callable(dz) | |
1249 | 1249 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1250 | 1250 | ||
1251 | 1251 | ||
1252 | 1252 | ||
1253 | 1253 | @Callable(dz) | |
1254 | 1254 | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1255 | 1255 | let bS = bI(bE, bF, bJ) | |
1256 | 1256 | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1257 | 1257 | } | |
1258 | 1258 | ||
1259 | 1259 | ||
1260 | 1260 | ||
1261 | 1261 | @Callable(dz) | |
1262 | 1262 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1263 | 1263 | ||
1264 | 1264 | ||
1265 | 1265 | ||
1266 | 1266 | @Callable(dz) | |
1267 | 1267 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1268 | 1268 | ||
1269 | 1269 | ||
1270 | 1270 | ||
1271 | 1271 | @Callable(dz) | |
1272 | 1272 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1273 | 1273 | ||
1274 | 1274 | ||
1275 | 1275 | ||
1276 | 1276 | @Callable(dz) | |
1277 | 1277 | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1278 | 1278 | ||
1279 | 1279 | ||
1280 | 1280 | ||
1281 | 1281 | @Callable(dz) | |
1282 | 1282 | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1283 | 1283 | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1284 | 1284 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1285 | 1285 | } | |
1286 | 1286 | ||
1287 | 1287 | ||
1288 | 1288 | ||
1289 | 1289 | @Callable(dz) | |
1290 | 1290 | func statsREADONLY () = { | |
1291 | 1291 | let bK = aN() | |
1292 | 1292 | let bX = fromBase58String(bK[q]) | |
1293 | 1293 | let gh = bK[r] | |
1294 | 1294 | let gi = bK[s] | |
1295 | 1295 | let cz = bK[v] | |
1296 | 1296 | let cA = bK[w] | |
1297 | 1297 | let bL = parseIntValue(bK[t]) | |
1298 | 1298 | let bM = parseIntValue(bK[u]) | |
1299 | 1299 | let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1300 | 1300 | let gk = bw(gh) | |
1301 | 1301 | let gl = bw(gi) | |
1302 | 1302 | let gm = if ((gj == 0)) | |
1303 | 1303 | then [e, e, e] | |
1304 | 1304 | else bI(gk, gl, gj) | |
1305 | 1305 | let ch = 0 | |
1306 | 1306 | let gn = G(gm[1], b) | |
1307 | 1307 | let go = G(gm[2], b) | |
1308 | 1308 | let gp = value(getInteger(aJ, au(toString(this)))) | |
1309 | 1309 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gk), toString(gl), toString(gj), toString(ch), toString(gn), toString(go), toString(gp)], j)) | |
1310 | 1310 | } | |
1311 | 1311 | ||
1312 | 1312 | ||
1313 | 1313 | ||
1314 | 1314 | @Callable(dz) | |
1315 | 1315 | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1316 | 1316 | let bK = aN() | |
1317 | 1317 | let bX = fromBase58String(bK[q]) | |
1318 | 1318 | let cx = bK[r] | |
1319 | 1319 | let bY = fromBase58String(cx) | |
1320 | 1320 | let cy = bK[s] | |
1321 | 1321 | let bZ = fromBase58String(cy) | |
1322 | 1322 | let bL = parseIntValue(bK[t]) | |
1323 | 1323 | let bM = parseIntValue(bK[u]) | |
1324 | 1324 | let ca = bK[p] | |
1325 | 1325 | let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1326 | 1326 | let gk = bw(cx) | |
1327 | 1327 | let gl = bw(cy) | |
1328 | 1328 | let bG = D(gk, bL) | |
1329 | 1329 | let bH = D(gl, bM) | |
1330 | 1330 | let cg = if ((gj == 0)) | |
1331 | 1331 | then e | |
1332 | 1332 | else by(bH, bG) | |
1333 | 1333 | let cD = D(cr, bL) | |
1334 | 1334 | let cE = fraction(cD, cg, d) | |
1335 | 1335 | let ct = G(cE, bM) | |
1336 | 1336 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1337 | 1337 | let cO = dF._1 | |
1338 | 1338 | let gq = dF._3 | |
1339 | 1339 | let cc = dF._4 | |
1340 | 1340 | let ce = dF._5 | |
1341 | 1341 | let cb = dF._6 | |
1342 | 1342 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1343 | 1343 | } | |
1344 | 1344 | ||
1345 | 1345 | ||
1346 | 1346 | ||
1347 | 1347 | @Callable(dz) | |
1348 | 1348 | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1349 | 1349 | let bK = aN() | |
1350 | 1350 | let bX = fromBase58String(bK[q]) | |
1351 | 1351 | let cx = bK[r] | |
1352 | 1352 | let bY = fromBase58String(cx) | |
1353 | 1353 | let cy = bK[s] | |
1354 | 1354 | let bZ = fromBase58String(cy) | |
1355 | 1355 | let bL = parseIntValue(bK[t]) | |
1356 | 1356 | let bM = parseIntValue(bK[u]) | |
1357 | 1357 | let ca = bK[p] | |
1358 | 1358 | let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1359 | 1359 | let gr = bw(cx) | |
1360 | 1360 | let gs = bw(cy) | |
1361 | 1361 | let gt = D(gr, bL) | |
1362 | 1362 | let gu = D(gs, bM) | |
1363 | 1363 | let cg = if ((gj == 0)) | |
1364 | 1364 | then e | |
1365 | 1365 | else by(gu, gt) | |
1366 | 1366 | let cE = D(ct, bM) | |
1367 | 1367 | let cD = fraction(cE, d, cg) | |
1368 | 1368 | let cr = G(cD, bL) | |
1369 | 1369 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1370 | 1370 | let cO = dF._1 | |
1371 | 1371 | let gq = dF._3 | |
1372 | 1372 | let cc = dF._4 | |
1373 | 1373 | let ce = dF._5 | |
1374 | 1374 | let cb = dF._6 | |
1375 | 1375 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1376 | 1376 | } | |
1377 | 1377 | ||
1378 | 1378 | ||
1379 | 1379 | ||
1380 | 1380 | @Callable(dz) | |
1381 | 1381 | func evaluateGetREADONLY (gv,gw) = { | |
1382 | 1382 | let cG = bT("", gv, gw, this) | |
1383 | 1383 | let cm = cG._1 | |
1384 | 1384 | let cn = cG._2 | |
1385 | 1385 | let cc = cG._5 | |
1386 | 1386 | let ce = cG._6 | |
1387 | 1387 | let cb = cG._7 | |
1388 | 1388 | let ch = cG._8 | |
1389 | 1389 | let ca = parseIntValue(cG._9) | |
1390 | 1390 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cm), toString(cn), toString(cc), toString(ce), toString(cb), toString(ch), toString(ca)], j)) | |
1391 | 1391 | } | |
1392 | 1392 | ||
1393 | 1393 | ||
1394 | 1394 | @Verifier(gx) | |
1395 | 1395 | func gy () = { | |
1396 | 1396 | let gz = { | |
1397 | 1397 | let dK = eM() | |
1398 | 1398 | if ($isInstanceOf(dK, "ByteVector")) | |
1399 | 1399 | then { | |
1400 | 1400 | let eQ = dK | |
1401 | 1401 | eQ | |
1402 | 1402 | } | |
1403 | 1403 | else if ($isInstanceOf(dK, "Unit")) | |
1404 | 1404 | then gx.senderPublicKey | |
1405 | 1405 | else throw("Match error") | |
1406 | 1406 | } | |
1407 | 1407 | let dK = gx | |
1408 | 1408 | if ($isInstanceOf(dK, "Order")) | |
1409 | 1409 | then { | |
1410 | 1410 | let dp = dK | |
1411 | 1411 | let gA = aM() | |
1412 | 1412 | let az = do(dp) | |
1413 | 1413 | let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
1414 | 1414 | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gA) | |
1415 | 1415 | if (if (if (az) | |
1416 | 1416 | then aA | |
1417 | 1417 | else false) | |
1418 | 1418 | then aB | |
1419 | 1419 | else false) | |
1420 | 1420 | then true | |
1421 | 1421 | else ay(az, aA, aB) | |
1422 | 1422 | } | |
1423 | 1423 | else if ($isInstanceOf(dK, "SetScriptTransaction")) | |
1424 | 1424 | then { | |
1425 | 1425 | let eN = dK | |
1426 | 1426 | let gB = blake2b256(value(eN.script)) | |
1427 | 1427 | let gC = fromBase64String(value(getString(aJ, aw()))) | |
1428 | 1428 | let gD = scriptHash(this) | |
1429 | 1429 | if (if ((gC == gB)) | |
1430 | 1430 | then (gD != gB) | |
1431 | 1431 | else false) | |
1432 | 1432 | then true | |
1433 | 1433 | else sigVerify(gx.bodyBytes, gx.proofs[0], gz) | |
1434 | 1434 | } | |
1435 | 1435 | else sigVerify(gx.bodyBytes, gx.proofs[0], gz) | |
1436 | 1436 | } | |
1437 | 1437 |
github/deemru/w8io/169f3d6 217.47 ms ◑