tx · Cm4yHez4ir3gg9AyjjCJdqZ3xp9ijJTiJ5VrBmqH6jWT 3MpHzJ37KHNWPLWooSuAFmuzL3EUXt86qQw: -0.03500000 Waves 2022.12.07 12:08 [2349724] smart account 3MpHzJ37KHNWPLWooSuAFmuzL3EUXt86qQw > SELF 0.00000000 Waves
{ "type": 13, "id": "Cm4yHez4ir3gg9AyjjCJdqZ3xp9ijJTiJ5VrBmqH6jWT", "fee": 3500000, "feeAssetId": null, "timestamp": 1670403995490, "version": 1, "sender": "3MpHzJ37KHNWPLWooSuAFmuzL3EUXt86qQw", "senderPublicKey": "4gxnZwoAfBVeM48WyrZLy16TAaS7CUtppRoDqbadsKeA", "proofs": [ "4SmuJzhGvGgfLETjCdDw6Qeqa5SLDCfF2nrWwDyiR5Gxo9KVnUSTrtZ3qmn1F5nBXSEXLKpn22UVqYM7Q8yAzUoQ" ], "script": "base64:BgLfLAgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0S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AmdCAwMDBQJhegUCYUEHBQJhQgcGCQECYXkDBQJhegUCYUEFAmFCAwkAAQIFAmRLAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQCZU4FAmRLBAJnQwkA9gMBCQEFdmFsdWUBCAUCZU4Gc2NyaXB0BAJnRAkA2wQBCQEFdmFsdWUBCQCdCAIFAmFKCQECYXcABAJnRQkA8QcBBQR0aGlzAwMJAAACBQJnRAUCZ0MJAQIhPQIFAmdFBQJnQwcGCQD0AwMIBQJneQlib2R5Qnl0ZXMJAJEDAggFAmd5BnByb29mcwAABQJnQQkA9AMDCAUCZ3kJYm9keUJ5dGVzCQCRAwIIBQJneQZwcm9vZnMAAAUCZ0FYfdnL", "chainId": 84, "height": 2349724, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ryhAZUWaHs9y8FtT26NP7ehZjtfvCqJeckqF3m2FXH9 Next: GDjdc3CRvtSFSs6PzN5osoNgBVj9ShPaycim8ueuJQbj Diff:
Old | New | Differences | |
---|---|---|---|
375 | 375 | ||
376 | 376 | func cW (cX,cY,cb) = { | |
377 | 377 | let cZ = fraction(pow((cX * cY), 0, toBigInt(5), 1, 18, DOWN), g, cb) | |
378 | - | cZ | |
378 | + | if ((cb == f)) | |
379 | + | then f | |
380 | + | else cZ | |
379 | 381 | } | |
380 | 382 | ||
381 | 383 |
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, 18, DOWN), g, cb) | |
378 | - | cZ | |
378 | + | if ((cb == f)) | |
379 | + | then f | |
380 | + | else cZ | |
379 | 381 | } | |
380 | 382 | ||
381 | 383 | ||
382 | 384 | func da (db,dc,dd) = { | |
383 | 385 | let de = (toBigInt(bw(aS(ba))) - db) | |
384 | 386 | let df = (toBigInt(bw(aS(bb))) - dc) | |
385 | 387 | let dg = (toBigInt(value(assetInfo(aZ)).quantity) - dd) | |
386 | 388 | let dh = cW(de, df, dg) | |
387 | 389 | dh | |
388 | 390 | } | |
389 | 391 | ||
390 | 392 | ||
391 | 393 | func di (dj,dk,dd) = { | |
392 | 394 | let de = (bw(aS(ba)) + dj) | |
393 | 395 | let df = (bw(aS(bb)) + dk) | |
394 | 396 | let dg = (value(assetInfo(aZ)).quantity + dd) | |
395 | 397 | let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg)) | |
396 | 398 | let dl = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))] | |
397 | 399 | $Tuple2(dl, cZ) | |
398 | 400 | } | |
399 | 401 | ||
400 | 402 | ||
401 | 403 | func dm (dn,cZ) = if ((cZ >= dn)) | |
402 | 404 | then true | |
403 | 405 | else aG(makeString(["updated KLp lower than current KLp", toString(dn), toString(cZ)], " ")) | |
404 | 406 | ||
405 | 407 | ||
406 | 408 | func do (dp) = { | |
407 | 409 | let dq = dp.amount | |
408 | 410 | let dr = fraction(dp.amount, dp.price, b, FLOOR) | |
409 | 411 | let ds = if ((dp.orderType == Buy)) | |
410 | 412 | then $Tuple2(dq, -(dr)) | |
411 | 413 | else $Tuple2(-(dq), dr) | |
412 | 414 | let dj = ds._1 | |
413 | 415 | let dk = ds._2 | |
414 | 416 | if (if (if (aL()) | |
415 | 417 | then true | |
416 | 418 | else (aY == m)) | |
417 | 419 | then true | |
418 | 420 | else (aY == n)) | |
419 | 421 | then throw("Exchange operations disabled") | |
420 | 422 | else if (if ((dp.assetPair.amountAsset != ba)) | |
421 | 423 | then true | |
422 | 424 | else (dp.assetPair.priceAsset != bb)) | |
423 | 425 | then throw("Wrong order assets.") | |
424 | 426 | else { | |
425 | 427 | let dt = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
426 | 428 | let du = di(dj, dk, 0) | |
427 | 429 | let dv = du._1 | |
428 | 430 | let dw = du._2 | |
429 | 431 | let dx = (dw >= dt) | |
430 | 432 | dx | |
431 | 433 | } | |
432 | 434 | } | |
433 | 435 | ||
434 | 436 | ||
435 | 437 | func dy (dz) = if ((size(dz.payments) != 1)) | |
436 | 438 | then throw("exactly 1 payment is expected") | |
437 | 439 | else { | |
438 | 440 | let dA = value(dz.payments[0]) | |
439 | 441 | let bV = value(dA.assetId) | |
440 | 442 | let dB = dA.amount | |
441 | 443 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bV), dB, dz.caller) | |
442 | 444 | let cm = cG._1 | |
443 | 445 | let cn = cG._2 | |
444 | 446 | let ca = parseIntValue(cG._9) | |
445 | 447 | let co = cG._10 | |
446 | 448 | if (if (aL()) | |
447 | 449 | then true | |
448 | 450 | else (ca == n)) | |
449 | 451 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
450 | 452 | else $Tuple5(cm, cn, dB, bV, co) | |
451 | 453 | } | |
452 | 454 | ||
453 | 455 | ||
454 | 456 | func dC (dz,cq,cw) = if ((size(dz.payments) != 2)) | |
455 | 457 | then throw("exactly 2 payments are expected") | |
456 | 458 | else { | |
457 | 459 | let dD = value(dz.payments[0]) | |
458 | 460 | let dE = value(dz.payments[1]) | |
459 | 461 | let dF = cp(toBase58String(dz.transactionId), cq, dD.amount, dD.assetId, dE.amount, dE.assetId, toString(dz.caller), false, cw) | |
460 | 462 | let ca = parseIntValue(dF._8) | |
461 | 463 | if (if (if (aL()) | |
462 | 464 | then true | |
463 | 465 | else (ca == l)) | |
464 | 466 | then true | |
465 | 467 | else (ca == n)) | |
466 | 468 | then throw(("Put operation is blocked by admin. Status = " + toString(ca))) | |
467 | 469 | else dF | |
468 | 470 | } | |
469 | 471 | ||
470 | 472 | ||
471 | 473 | func dG (dH) = { | |
472 | 474 | let dI = invoke(aJ, "emit", [dH], nil) | |
473 | 475 | if ((dI == dI)) | |
474 | 476 | then { | |
475 | 477 | let dJ = { | |
476 | 478 | let dK = dI | |
477 | 479 | if ($isInstanceOf(dK, "Address")) | |
478 | 480 | then { | |
479 | 481 | let dL = dK | |
480 | 482 | invoke(dL, "emit", [dH], nil) | |
481 | 483 | } | |
482 | 484 | else unit | |
483 | 485 | } | |
484 | 486 | if ((dJ == dJ)) | |
485 | 487 | then dH | |
486 | 488 | else throw("Strict value is not equal to itself.") | |
487 | 489 | } | |
488 | 490 | else throw("Strict value is not equal to itself.") | |
489 | 491 | } | |
490 | 492 | ||
491 | 493 | ||
492 | 494 | func dM (dH) = { | |
493 | 495 | let dN = fraction(dH, ae, b) | |
494 | 496 | $Tuple2((dH - dN), dN) | |
495 | 497 | } | |
496 | 498 | ||
497 | 499 | ||
498 | 500 | func dO (dP,dQ,X,Y) = { | |
499 | 501 | let dR = (Y == unit) | |
500 | 502 | let dS = bw(aS(ba)) | |
501 | 503 | let dT = bw(aS(bb)) | |
502 | 504 | let dU = if ((dQ == ba)) | |
503 | 505 | then true | |
504 | 506 | else if ((dQ == bb)) | |
505 | 507 | then false | |
506 | 508 | else aG("invalid asset") | |
507 | 509 | let dV = if (dR) | |
508 | 510 | then $Tuple2(dS, dT) | |
509 | 511 | else if (dU) | |
510 | 512 | then $Tuple2((dS - dP), dT) | |
511 | 513 | else $Tuple2(dS, (dT - dP)) | |
512 | 514 | let dW = dV._1 | |
513 | 515 | let dX = dV._2 | |
514 | 516 | let dY = if (dU) | |
515 | 517 | then $Tuple2(dP, 0) | |
516 | 518 | else $Tuple2(0, dP) | |
517 | 519 | let dZ = dY._1 | |
518 | 520 | let ea = dY._2 | |
519 | 521 | let dq = dM(dZ)._1 | |
520 | 522 | let dr = dM(ea)._1 | |
521 | 523 | let eb = dM(dP) | |
522 | 524 | let ec = eb._1 | |
523 | 525 | let dN = eb._2 | |
524 | 526 | let ed = (dW + dq) | |
525 | 527 | let ee = (dX + dr) | |
526 | 528 | let ef = by(D(ee, bd), D(ed, bc)) | |
527 | 529 | let eg = G(ef, b) | |
528 | 530 | let eh = if (dU) | |
529 | 531 | then dW | |
530 | 532 | else dX | |
531 | 533 | let ei = toBigInt(eh) | |
532 | 534 | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
533 | 535 | let ek = if ((ej > f)) | |
534 | 536 | then true | |
535 | 537 | else aG("initial deposit requires all coins") | |
536 | 538 | if ((ek == ek)) | |
537 | 539 | then { | |
538 | 540 | let el = toBigInt(ec) | |
539 | 541 | let em = max([0, toInt(((ej * (sqrtBigInt((d + ((el * d) / ei)), 18, 18, DOWN) - d)) / d))]) | |
540 | 542 | let cV = if (dR) | |
541 | 543 | then nil | |
542 | 544 | 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 | 545 | let en = by(D(dX, bd), D(dW, bc)) | |
544 | 546 | let eo = G(en, b) | |
545 | 547 | let ep = { | |
546 | 548 | let eq = if (dU) | |
547 | 549 | then $Tuple2(dZ, dW) | |
548 | 550 | else $Tuple2(ea, dX) | |
549 | 551 | let dH = eq._1 | |
550 | 552 | let er = eq._2 | |
551 | 553 | let es = toInt(fraction(ej, toBigInt((dH / 2)), toBigInt(er))) | |
552 | 554 | fraction((em - es), b, es) | |
553 | 555 | } | |
554 | 556 | $Tuple5(em, cV, dN, ep, dU) | |
555 | 557 | } | |
556 | 558 | else throw("Strict value is not equal to itself.") | |
557 | 559 | } | |
558 | 560 | ||
559 | 561 | ||
560 | 562 | func et (eu,ec,dQ,X,Y) = { | |
561 | 563 | let dR = (Y == unit) | |
562 | 564 | let ev = [if ((dQ == aZ)) | |
563 | 565 | then true | |
564 | 566 | else aG("invalid lp asset")] | |
565 | 567 | if ((ev == ev)) | |
566 | 568 | then { | |
567 | 569 | let ew = if ((eu == ba)) | |
568 | 570 | then true | |
569 | 571 | else if ((eu == bb)) | |
570 | 572 | then false | |
571 | 573 | else aG("invalid asset") | |
572 | 574 | let ex = if (ew) | |
573 | 575 | then toBigInt(bw(aS(ba))) | |
574 | 576 | else toBigInt(bw(aS(bb))) | |
575 | 577 | let ey = bw(aS(ba)) | |
576 | 578 | let ez = bw(aS(bb)) | |
577 | 579 | let eA = if (ew) | |
578 | 580 | then ey | |
579 | 581 | else ez | |
580 | 582 | let eB = toBigInt(eA) | |
581 | 583 | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
582 | 584 | let eC = toBigInt(ec) | |
583 | 585 | let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))]) | |
584 | 586 | let eE = dM(eD) | |
585 | 587 | let eF = eE._1 | |
586 | 588 | let dN = eE._2 | |
587 | 589 | let eG = if (ew) | |
588 | 590 | then $Tuple4(eF, 0, (ey - eD), ez) | |
589 | 591 | else $Tuple4(0, eF, ey, (ez - eD)) | |
590 | 592 | let eH = eG._1 | |
591 | 593 | let eI = eG._2 | |
592 | 594 | let eJ = eG._3 | |
593 | 595 | let eK = eG._4 | |
594 | 596 | let ef = by(D(eK, bd), D(eJ, bc)) | |
595 | 597 | let eg = G(ef, b) | |
596 | 598 | let cV = if (dR) | |
597 | 599 | then nil | |
598 | 600 | 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 | 601 | let en = by(D(ez, bd), D(ey, bc)) | |
600 | 602 | let eo = G(en, b) | |
601 | 603 | let ep = { | |
602 | 604 | let eL = (toInt(fraction(ex, eC, ej)) * 2) | |
603 | 605 | fraction((eF - eL), b, eL) | |
604 | 606 | } | |
605 | 607 | $Tuple5(eF, cV, dN, ep, ew) | |
606 | 608 | } | |
607 | 609 | else throw("Strict value is not equal to itself.") | |
608 | 610 | } | |
609 | 611 | ||
610 | 612 | ||
611 | 613 | func eM () = { | |
612 | 614 | let dK = getString(Q()) | |
613 | 615 | if ($isInstanceOf(dK, "String")) | |
614 | 616 | then { | |
615 | 617 | let eN = dK | |
616 | 618 | fromBase58String(eN) | |
617 | 619 | } | |
618 | 620 | else if ($isInstanceOf(dK, "Unit")) | |
619 | 621 | then unit | |
620 | 622 | else throw("Match error") | |
621 | 623 | } | |
622 | 624 | ||
623 | 625 | ||
624 | 626 | func eO () = { | |
625 | 627 | let dK = getString(R()) | |
626 | 628 | if ($isInstanceOf(dK, "String")) | |
627 | 629 | then { | |
628 | 630 | let eN = dK | |
629 | 631 | fromBase58String(eN) | |
630 | 632 | } | |
631 | 633 | else if ($isInstanceOf(dK, "Unit")) | |
632 | 634 | then unit | |
633 | 635 | else throw("Match error") | |
634 | 636 | } | |
635 | 637 | ||
636 | 638 | ||
637 | 639 | func eP (dz) = { | |
638 | 640 | let dK = eM() | |
639 | 641 | if ($isInstanceOf(dK, "ByteVector")) | |
640 | 642 | then { | |
641 | 643 | let eQ = dK | |
642 | 644 | (dz.callerPublicKey == eQ) | |
643 | 645 | } | |
644 | 646 | else if ($isInstanceOf(dK, "Unit")) | |
645 | 647 | then (dz.caller == this) | |
646 | 648 | else throw("Match error") | |
647 | 649 | } | |
648 | 650 | ||
649 | 651 | ||
650 | 652 | func eR (dz) = { | |
651 | 653 | let eS = throw("Permission denied") | |
652 | 654 | let dK = eM() | |
653 | 655 | if ($isInstanceOf(dK, "ByteVector")) | |
654 | 656 | then { | |
655 | 657 | let eQ = dK | |
656 | 658 | if ((dz.callerPublicKey == eQ)) | |
657 | 659 | then true | |
658 | 660 | else eS | |
659 | 661 | } | |
660 | 662 | else if ($isInstanceOf(dK, "Unit")) | |
661 | 663 | then if ((dz.caller == this)) | |
662 | 664 | then true | |
663 | 665 | else eS | |
664 | 666 | else throw("Match error") | |
665 | 667 | } | |
666 | 668 | ||
667 | 669 | ||
668 | 670 | @Callable(dz) | |
669 | 671 | func setManager (eT) = { | |
670 | 672 | let eU = eR(dz) | |
671 | 673 | if ((eU == eU)) | |
672 | 674 | then { | |
673 | 675 | let eV = fromBase58String(eT) | |
674 | 676 | if ((eV == eV)) | |
675 | 677 | then [StringEntry(R(), eT)] | |
676 | 678 | else throw("Strict value is not equal to itself.") | |
677 | 679 | } | |
678 | 680 | else throw("Strict value is not equal to itself.") | |
679 | 681 | } | |
680 | 682 | ||
681 | 683 | ||
682 | 684 | ||
683 | 685 | @Callable(dz) | |
684 | 686 | func confirmManager () = { | |
685 | 687 | let eW = eO() | |
686 | 688 | let eX = if (isDefined(eW)) | |
687 | 689 | then true | |
688 | 690 | else throw("No pending manager") | |
689 | 691 | if ((eX == eX)) | |
690 | 692 | then { | |
691 | 693 | let eY = if ((dz.callerPublicKey == value(eW))) | |
692 | 694 | then true | |
693 | 695 | else throw("You are not pending manager") | |
694 | 696 | if ((eY == eY)) | |
695 | 697 | then [StringEntry(Q(), toBase58String(value(eW))), DeleteEntry(R())] | |
696 | 698 | else throw("Strict value is not equal to itself.") | |
697 | 699 | } | |
698 | 700 | else throw("Strict value is not equal to itself.") | |
699 | 701 | } | |
700 | 702 | ||
701 | 703 | ||
702 | 704 | ||
703 | 705 | @Callable(dz) | |
704 | 706 | func put (cq,eZ) = if ((0 > cq)) | |
705 | 707 | then throw("Invalid slippageTolerance passed") | |
706 | 708 | else { | |
707 | 709 | let dF = dC(dz, cq, true) | |
708 | 710 | let cS = dF._2 | |
709 | 711 | let bX = dF._7 | |
710 | 712 | let co = dF._9 | |
711 | 713 | let cT = dF._10 | |
712 | 714 | let cU = dF._11 | |
713 | 715 | let fa = dF._12 | |
714 | 716 | let fb = dF._13 | |
715 | 717 | let dD = toBigInt(value(dz.payments[0]).amount) | |
716 | 718 | let dE = toBigInt(value(dz.payments[1]).amount) | |
717 | 719 | let dh = da(dD, dE, toBigInt(0)) | |
718 | 720 | if ((dh == dh)) | |
719 | 721 | then { | |
720 | 722 | let dI = invoke(aJ, "emit", [cS], nil) | |
721 | 723 | if ((dI == dI)) | |
722 | 724 | then { | |
723 | 725 | let dJ = { | |
724 | 726 | let dK = dI | |
725 | 727 | if ($isInstanceOf(dK, "Address")) | |
726 | 728 | then { | |
727 | 729 | let dL = dK | |
728 | 730 | invoke(dL, "emit", [cS], nil) | |
729 | 731 | } | |
730 | 732 | else unit | |
731 | 733 | } | |
732 | 734 | if ((dJ == dJ)) | |
733 | 735 | then { | |
734 | 736 | let fc = if ((cT > 0)) | |
735 | 737 | then invoke(bg, "put", nil, [AttachedPayment(fa, cT)]) | |
736 | 738 | else nil | |
737 | 739 | if ((fc == fc)) | |
738 | 740 | then { | |
739 | 741 | let fd = if ((cU > 0)) | |
740 | 742 | then invoke(bg, "put", nil, [AttachedPayment(fb, cU)]) | |
741 | 743 | else nil | |
742 | 744 | if ((fd == fd)) | |
743 | 745 | then { | |
744 | 746 | let fe = if (eZ) | |
745 | 747 | then { | |
746 | 748 | let ff = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)]) | |
747 | 749 | if ((ff == ff)) | |
748 | 750 | then nil | |
749 | 751 | else throw("Strict value is not equal to itself.") | |
750 | 752 | } | |
751 | 753 | else [ScriptTransfer(dz.caller, cS, bX)] | |
752 | 754 | let fg = di(0, 0, 0) | |
753 | 755 | let fh = fg._1 | |
754 | 756 | let cZ = fg._2 | |
755 | 757 | let fi = dm(dh, cZ) | |
756 | 758 | if ((fi == fi)) | |
757 | 759 | then ((co ++ fe) ++ fh) | |
758 | 760 | else throw("Strict value is not equal to itself.") | |
759 | 761 | } | |
760 | 762 | else throw("Strict value is not equal to itself.") | |
761 | 763 | } | |
762 | 764 | else throw("Strict value is not equal to itself.") | |
763 | 765 | } | |
764 | 766 | else throw("Strict value is not equal to itself.") | |
765 | 767 | } | |
766 | 768 | else throw("Strict value is not equal to itself.") | |
767 | 769 | } | |
768 | 770 | else throw("Strict value is not equal to itself.") | |
769 | 771 | } | |
770 | 772 | ||
771 | 773 | ||
772 | 774 | ||
773 | 775 | @Callable(dz) | |
774 | 776 | func putForFree (fj) = if ((0 > fj)) | |
775 | 777 | then throw("Invalid value passed") | |
776 | 778 | else { | |
777 | 779 | let dF = dC(dz, fj, false) | |
778 | 780 | let co = dF._9 | |
779 | 781 | let dD = toBigInt(value(dz.payments[0]).amount) | |
780 | 782 | let dE = toBigInt(value(dz.payments[1]).amount) | |
781 | 783 | let dh = da(dD, dE, toBigInt(0)) | |
782 | 784 | if ((dh == dh)) | |
783 | 785 | then { | |
784 | 786 | let fk = di(0, 0, 0) | |
785 | 787 | let fh = fk._1 | |
786 | 788 | let cZ = fk._2 | |
787 | 789 | let fi = dm(dh, cZ) | |
788 | 790 | if ((fi == fi)) | |
789 | 791 | then (co ++ fh) | |
790 | 792 | else throw("Strict value is not equal to itself.") | |
791 | 793 | } | |
792 | 794 | else throw("Strict value is not equal to itself.") | |
793 | 795 | } | |
794 | 796 | ||
795 | 797 | ||
796 | 798 | ||
797 | 799 | @Callable(dz) | |
798 | 800 | func putOneTkn (fl,fm) = { | |
799 | 801 | let fn = { | |
800 | 802 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
801 | 803 | if ($isInstanceOf(fo, "Boolean")) | |
802 | 804 | then fo | |
803 | 805 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
804 | 806 | } | |
805 | 807 | let fp = if (if (if (aL()) | |
806 | 808 | then true | |
807 | 809 | else (aY == l)) | |
808 | 810 | then true | |
809 | 811 | else (aY == n)) | |
810 | 812 | then true | |
811 | 813 | else fn | |
812 | 814 | let ev = [if (if (!(fp)) | |
813 | 815 | then true | |
814 | 816 | else eP(dz)) | |
815 | 817 | then true | |
816 | 818 | else aG("put operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
817 | 819 | then true | |
818 | 820 | else aG("exactly 1 payment are expected")] | |
819 | 821 | if ((ev == ev)) | |
820 | 822 | then { | |
821 | 823 | let fq = dz.payments[0] | |
822 | 824 | let dQ = fq.assetId | |
823 | 825 | let dP = fq.amount | |
824 | 826 | let dh = if ((dQ == ba)) | |
825 | 827 | then da(toBigInt(dP), toBigInt(0), toBigInt(0)) | |
826 | 828 | else if ((dQ == bb)) | |
827 | 829 | then da(toBigInt(0), toBigInt(dP), toBigInt(0)) | |
828 | 830 | else aG("payment asset is not supported") | |
829 | 831 | let X = dz.caller | |
830 | 832 | let Y = dz.transactionId | |
831 | 833 | let fr = dO(dP, dQ, X, Y) | |
832 | 834 | if ((fr == fr)) | |
833 | 835 | then { | |
834 | 836 | let dU = fr._5 | |
835 | 837 | let fs = fr._4 | |
836 | 838 | let dN = fr._3 | |
837 | 839 | let cV = fr._2 | |
838 | 840 | let ft = fr._1 | |
839 | 841 | let fu = if (if ((fl > 0)) | |
840 | 842 | then (fl > ft) | |
841 | 843 | else false) | |
842 | 844 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
843 | 845 | else ft | |
844 | 846 | let dI = dG(fu) | |
845 | 847 | if ((dI == dI)) | |
846 | 848 | then { | |
847 | 849 | let fe = if (fm) | |
848 | 850 | then { | |
849 | 851 | let fv = invoke(bf, "stake", nil, [AttachedPayment(aZ, fu)]) | |
850 | 852 | if ((fv == fv)) | |
851 | 853 | then nil | |
852 | 854 | else throw("Strict value is not equal to itself.") | |
853 | 855 | } | |
854 | 856 | else [ScriptTransfer(dz.caller, fu, aZ)] | |
855 | 857 | let fw = if ((dN > 0)) | |
856 | 858 | then [ScriptTransfer(aK, dN, dQ)] | |
857 | 859 | else nil | |
858 | 860 | let fx = if ((this == aK)) | |
859 | 861 | then $Tuple2(0, 0) | |
860 | 862 | else if (dU) | |
861 | 863 | then $Tuple2(-(dN), 0) | |
862 | 864 | else $Tuple2(0, -(dN)) | |
863 | 865 | let dj = fx._1 | |
864 | 866 | let dk = fx._2 | |
865 | 867 | let fy = di(dj, dk, 0) | |
866 | 868 | let fh = fy._1 | |
867 | 869 | let cZ = fy._2 | |
868 | 870 | let dt = value(getString(af)) | |
869 | 871 | let fz = aG(makeString([toString(dj), toString(dk), dt, toString(dh), toString(cZ)], " ")) | |
870 | 872 | if ((fz == fz)) | |
871 | 873 | then { | |
872 | 874 | let fi = dm(dh, cZ) | |
873 | 875 | if ((fi == fi)) | |
874 | 876 | then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu) | |
875 | 877 | else throw("Strict value is not equal to itself.") | |
876 | 878 | } | |
877 | 879 | else throw("Strict value is not equal to itself.") | |
878 | 880 | } | |
879 | 881 | else throw("Strict value is not equal to itself.") | |
880 | 882 | } | |
881 | 883 | else throw("Strict value is not equal to itself.") | |
882 | 884 | } | |
883 | 885 | else throw("Strict value is not equal to itself.") | |
884 | 886 | } | |
885 | 887 | ||
886 | 888 | ||
887 | 889 | ||
888 | 890 | @Callable(dz) | |
889 | 891 | func putOneTknREADONLY (dQ,dP) = { | |
890 | 892 | let fA = dO(dP, aQ(dQ), unit, unit) | |
891 | 893 | let ft = fA._1 | |
892 | 894 | let cV = fA._2 | |
893 | 895 | let dN = fA._3 | |
894 | 896 | let fs = fA._4 | |
895 | 897 | let dU = fA._5 | |
896 | 898 | $Tuple2(nil, $Tuple3(ft, dN, fs)) | |
897 | 899 | } | |
898 | 900 | ||
899 | 901 | ||
900 | 902 | ||
901 | 903 | @Callable(dz) | |
902 | 904 | func getOneTkn (fB,fl) = { | |
903 | 905 | let fn = { | |
904 | 906 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
905 | 907 | if ($isInstanceOf(fo, "Boolean")) | |
906 | 908 | then fo | |
907 | 909 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
908 | 910 | } | |
909 | 911 | let fC = if (if (aL()) | |
910 | 912 | then true | |
911 | 913 | else (aY == n)) | |
912 | 914 | then true | |
913 | 915 | else fn | |
914 | 916 | let ev = [if (if (!(fC)) | |
915 | 917 | then true | |
916 | 918 | else eP(dz)) | |
917 | 919 | then true | |
918 | 920 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 1)) | |
919 | 921 | then true | |
920 | 922 | else aG("exactly 1 payment are expected")] | |
921 | 923 | if ((ev == ev)) | |
922 | 924 | then { | |
923 | 925 | let eu = aQ(fB) | |
924 | 926 | let fq = dz.payments[0] | |
925 | 927 | let dQ = fq.assetId | |
926 | 928 | let ec = fq.amount | |
927 | 929 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec)) | |
928 | 930 | let X = dz.caller | |
929 | 931 | let Y = dz.transactionId | |
930 | 932 | let fD = et(eu, ec, dQ, X, Y) | |
931 | 933 | if ((fD == fD)) | |
932 | 934 | then { | |
933 | 935 | let ew = fD._5 | |
934 | 936 | let fs = fD._4 | |
935 | 937 | let dN = fD._3 | |
936 | 938 | let cV = fD._2 | |
937 | 939 | let fE = fD._1 | |
938 | 940 | let dH = if (if ((fl > 0)) | |
939 | 941 | then (fl > fE) | |
940 | 942 | else false) | |
941 | 943 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
942 | 944 | else fE | |
943 | 945 | let fF = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)]) | |
944 | 946 | if ((fF == fF)) | |
945 | 947 | then { | |
946 | 948 | let fG = [ScriptTransfer(X, dH, eu)] | |
947 | 949 | let fw = if ((dN > 0)) | |
948 | 950 | then [ScriptTransfer(aK, dN, eu)] | |
949 | 951 | else nil | |
950 | 952 | let fH = { | |
951 | 953 | let fI = if ((this == aK)) | |
952 | 954 | then 0 | |
953 | 955 | else dN | |
954 | 956 | if (ew) | |
955 | 957 | then $Tuple2(-((dH + fI)), 0) | |
956 | 958 | else $Tuple2(0, -((dH + fI))) | |
957 | 959 | } | |
958 | 960 | let dj = fH._1 | |
959 | 961 | let dk = fH._2 | |
960 | 962 | let fJ = di(dj, dk, 0) | |
961 | 963 | let fh = fJ._1 | |
962 | 964 | let cZ = fJ._2 | |
963 | 965 | let fi = dm(dh, cZ) | |
964 | 966 | if ((fi == fi)) | |
965 | 967 | then $Tuple2((((cV ++ fG) ++ fw) ++ fh), dH) | |
966 | 968 | else throw("Strict value is not equal to itself.") | |
967 | 969 | } | |
968 | 970 | else throw("Strict value is not equal to itself.") | |
969 | 971 | } | |
970 | 972 | else throw("Strict value is not equal to itself.") | |
971 | 973 | } | |
972 | 974 | else throw("Strict value is not equal to itself.") | |
973 | 975 | } | |
974 | 976 | ||
975 | 977 | ||
976 | 978 | ||
977 | 979 | @Callable(dz) | |
978 | 980 | func getOneTknREADONLY (eu,ec) = { | |
979 | 981 | let fK = et(aQ(eu), ec, aZ, unit, unit) | |
980 | 982 | let fE = fK._1 | |
981 | 983 | let cV = fK._2 | |
982 | 984 | let dN = fK._3 | |
983 | 985 | let fs = fK._4 | |
984 | 986 | let ew = fK._5 | |
985 | 987 | $Tuple2(nil, $Tuple3(fE, dN, fs)) | |
986 | 988 | } | |
987 | 989 | ||
988 | 990 | ||
989 | 991 | ||
990 | 992 | @Callable(dz) | |
991 | 993 | func unstakeAndGetOneTkn (fL,fB,fl) = { | |
992 | 994 | let fn = { | |
993 | 995 | let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
994 | 996 | if ($isInstanceOf(fo, "Boolean")) | |
995 | 997 | then fo | |
996 | 998 | else throw(($getType(fo) + " couldn't be cast to Boolean")) | |
997 | 999 | } | |
998 | 1000 | let fC = if (if (aL()) | |
999 | 1001 | then true | |
1000 | 1002 | else (aY == n)) | |
1001 | 1003 | then true | |
1002 | 1004 | else fn | |
1003 | 1005 | let ev = [if (if (!(fC)) | |
1004 | 1006 | then true | |
1005 | 1007 | else eP(dz)) | |
1006 | 1008 | then true | |
1007 | 1009 | else aG("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1008 | 1010 | then true | |
1009 | 1011 | else aG("no payments are expected")] | |
1010 | 1012 | if ((ev == ev)) | |
1011 | 1013 | then { | |
1012 | 1014 | let eu = aQ(fB) | |
1013 | 1015 | let X = dz.caller | |
1014 | 1016 | let Y = dz.transactionId | |
1015 | 1017 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1016 | 1018 | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1017 | 1019 | if ((fM == fM)) | |
1018 | 1020 | then { | |
1019 | 1021 | let fN = et(eu, fL, aZ, X, Y) | |
1020 | 1022 | if ((fN == fN)) | |
1021 | 1023 | then { | |
1022 | 1024 | let ew = fN._5 | |
1023 | 1025 | let fs = fN._4 | |
1024 | 1026 | let dN = fN._3 | |
1025 | 1027 | let cV = fN._2 | |
1026 | 1028 | let fE = fN._1 | |
1027 | 1029 | let dH = if (if ((fl > 0)) | |
1028 | 1030 | then (fl > fE) | |
1029 | 1031 | else false) | |
1030 | 1032 | then aG(makeString(["amount to receive is less than ", toString(fl)], "")) | |
1031 | 1033 | else fE | |
1032 | 1034 | let fF = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1033 | 1035 | if ((fF == fF)) | |
1034 | 1036 | then { | |
1035 | 1037 | let fG = [ScriptTransfer(dz.caller, dH, eu)] | |
1036 | 1038 | let fw = if ((dN > 0)) | |
1037 | 1039 | then [ScriptTransfer(aK, dN, eu)] | |
1038 | 1040 | else nil | |
1039 | 1041 | let fO = { | |
1040 | 1042 | let fI = if ((this == aK)) | |
1041 | 1043 | then 0 | |
1042 | 1044 | else dN | |
1043 | 1045 | if (ew) | |
1044 | 1046 | then $Tuple2(-((dH + fI)), 0) | |
1045 | 1047 | else $Tuple2(0, -((dH + fI))) | |
1046 | 1048 | } | |
1047 | 1049 | let dj = fO._1 | |
1048 | 1050 | let dk = fO._2 | |
1049 | 1051 | let fP = di(dj, dk, 0) | |
1050 | 1052 | let fh = fP._1 | |
1051 | 1053 | let cZ = fP._2 | |
1052 | 1054 | let fi = dm(dh, cZ) | |
1053 | 1055 | if ((fi == fi)) | |
1054 | 1056 | then $Tuple2((((cV ++ fG) ++ fw) ++ fh), dH) | |
1055 | 1057 | else throw("Strict value is not equal to itself.") | |
1056 | 1058 | } | |
1057 | 1059 | else throw("Strict value is not equal to itself.") | |
1058 | 1060 | } | |
1059 | 1061 | else throw("Strict value is not equal to itself.") | |
1060 | 1062 | } | |
1061 | 1063 | else throw("Strict value is not equal to itself.") | |
1062 | 1064 | } | |
1063 | 1065 | else throw("Strict value is not equal to itself.") | |
1064 | 1066 | } | |
1065 | 1067 | ||
1066 | 1068 | ||
1067 | 1069 | ||
1068 | 1070 | @Callable(dz) | |
1069 | 1071 | func get () = { | |
1070 | 1072 | let cG = dy(dz) | |
1071 | 1073 | let fQ = cG._1 | |
1072 | 1074 | let cn = cG._2 | |
1073 | 1075 | let dB = cG._3 | |
1074 | 1076 | let bV = cG._4 | |
1075 | 1077 | let co = cG._5 | |
1076 | 1078 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1077 | 1079 | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1078 | 1080 | if ((fR == fR)) | |
1079 | 1081 | then { | |
1080 | 1082 | let fS = di(-(fQ), -(cn), 0) | |
1081 | 1083 | let fh = fS._1 | |
1082 | 1084 | let cZ = fS._2 | |
1083 | 1085 | let fi = dm(dh, cZ) | |
1084 | 1086 | if ((fi == fi)) | |
1085 | 1087 | then (co ++ fh) | |
1086 | 1088 | else throw("Strict value is not equal to itself.") | |
1087 | 1089 | } | |
1088 | 1090 | else throw("Strict value is not equal to itself.") | |
1089 | 1091 | } | |
1090 | 1092 | ||
1091 | 1093 | ||
1092 | 1094 | ||
1093 | 1095 | @Callable(dz) | |
1094 | 1096 | func getNoLess (fT,fU) = { | |
1095 | 1097 | let cG = dy(dz) | |
1096 | 1098 | let cm = cG._1 | |
1097 | 1099 | let cn = cG._2 | |
1098 | 1100 | let dB = cG._3 | |
1099 | 1101 | let bV = cG._4 | |
1100 | 1102 | let co = cG._5 | |
1101 | 1103 | if ((fT > cm)) | |
1102 | 1104 | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fT))) | |
1103 | 1105 | else if ((fU > cn)) | |
1104 | 1106 | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fU))) | |
1105 | 1107 | else { | |
1106 | 1108 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB)) | |
1107 | 1109 | let fR = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)]) | |
1108 | 1110 | if ((fR == fR)) | |
1109 | 1111 | then { | |
1110 | 1112 | let fV = di(-(cm), -(cn), 0) | |
1111 | 1113 | let fh = fV._1 | |
1112 | 1114 | let cZ = fV._2 | |
1113 | 1115 | let fi = dm(dh, cZ) | |
1114 | 1116 | if ((fi == fi)) | |
1115 | 1117 | then (co ++ fh) | |
1116 | 1118 | else throw("Strict value is not equal to itself.") | |
1117 | 1119 | } | |
1118 | 1120 | else throw("Strict value is not equal to itself.") | |
1119 | 1121 | } | |
1120 | 1122 | } | |
1121 | 1123 | ||
1122 | 1124 | ||
1123 | 1125 | ||
1124 | 1126 | @Callable(dz) | |
1125 | 1127 | func unstakeAndGet (dH) = { | |
1126 | 1128 | let fW = if ((size(dz.payments) != 0)) | |
1127 | 1129 | then throw("No payments are expected") | |
1128 | 1130 | else true | |
1129 | 1131 | if ((fW == fW)) | |
1130 | 1132 | then { | |
1131 | 1133 | let bK = aN() | |
1132 | 1134 | let bX = fromBase58String(bK[q]) | |
1133 | 1135 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1134 | 1136 | let fM = invoke(bf, "unstake", [toBase58String(bX), dH], nil) | |
1135 | 1137 | if ((fM == fM)) | |
1136 | 1138 | then { | |
1137 | 1139 | let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller) | |
1138 | 1140 | let cm = cG._1 | |
1139 | 1141 | let cn = cG._2 | |
1140 | 1142 | let ca = parseIntValue(cG._9) | |
1141 | 1143 | let co = cG._10 | |
1142 | 1144 | let fX = if (if (aL()) | |
1143 | 1145 | then true | |
1144 | 1146 | else (ca == n)) | |
1145 | 1147 | then throw(("Get operation is blocked by admin. Status = " + toString(ca))) | |
1146 | 1148 | else true | |
1147 | 1149 | if ((fX == fX)) | |
1148 | 1150 | then { | |
1149 | 1151 | let fR = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)]) | |
1150 | 1152 | if ((fR == fR)) | |
1151 | 1153 | then { | |
1152 | 1154 | let fY = di(-(cm), -(cn), 0) | |
1153 | 1155 | let fh = fY._1 | |
1154 | 1156 | let cZ = fY._2 | |
1155 | 1157 | let fi = dm(dh, cZ) | |
1156 | 1158 | if ((fi == fi)) | |
1157 | 1159 | then (co ++ fh) | |
1158 | 1160 | else throw("Strict value is not equal to itself.") | |
1159 | 1161 | } | |
1160 | 1162 | else throw("Strict value is not equal to itself.") | |
1161 | 1163 | } | |
1162 | 1164 | else throw("Strict value is not equal to itself.") | |
1163 | 1165 | } | |
1164 | 1166 | else throw("Strict value is not equal to itself.") | |
1165 | 1167 | } | |
1166 | 1168 | else throw("Strict value is not equal to itself.") | |
1167 | 1169 | } | |
1168 | 1170 | ||
1169 | 1171 | ||
1170 | 1172 | ||
1171 | 1173 | @Callable(dz) | |
1172 | 1174 | func unstakeAndGetNoLess (fL,fZ,fU) = { | |
1173 | 1175 | let fC = if (aL()) | |
1174 | 1176 | then true | |
1175 | 1177 | else (aY == n) | |
1176 | 1178 | let ev = [if (!(fC)) | |
1177 | 1179 | then true | |
1178 | 1180 | else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0)) | |
1179 | 1181 | then true | |
1180 | 1182 | else throw("no payments are expected")] | |
1181 | 1183 | if ((ev == ev)) | |
1182 | 1184 | then { | |
1183 | 1185 | let dh = da(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1184 | 1186 | let fM = invoke(bf, "unstake", [toBase58String(aZ), fL], nil) | |
1185 | 1187 | if ((fM == fM)) | |
1186 | 1188 | then { | |
1187 | 1189 | let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fL, dz.caller) | |
1188 | 1190 | let cm = cG._1 | |
1189 | 1191 | let cn = cG._2 | |
1190 | 1192 | let co = cG._10 | |
1191 | 1193 | let ga = [if ((cm >= fZ)) | |
1192 | 1194 | then true | |
1193 | 1195 | else throw(makeString(["amount asset amount to receive is less than ", toString(fZ)], "")), if ((cn >= fU)) | |
1194 | 1196 | then true | |
1195 | 1197 | else throw(makeString(["price asset amount to receive is less than ", toString(fU)], ""))] | |
1196 | 1198 | if ((ga == ga)) | |
1197 | 1199 | then { | |
1198 | 1200 | let fR = invoke(aJ, "burn", [fL], [AttachedPayment(aZ, fL)]) | |
1199 | 1201 | if ((fR == fR)) | |
1200 | 1202 | then { | |
1201 | 1203 | let gb = di(-(cm), -(cn), 0) | |
1202 | 1204 | let fh = gb._1 | |
1203 | 1205 | let cZ = gb._2 | |
1204 | 1206 | let fi = dm(dh, cZ) | |
1205 | 1207 | if ((fi == fi)) | |
1206 | 1208 | then (co ++ fh) | |
1207 | 1209 | else throw("Strict value is not equal to itself.") | |
1208 | 1210 | } | |
1209 | 1211 | else throw("Strict value is not equal to itself.") | |
1210 | 1212 | } | |
1211 | 1213 | else throw("Strict value is not equal to itself.") | |
1212 | 1214 | } | |
1213 | 1215 | else throw("Strict value is not equal to itself.") | |
1214 | 1216 | } | |
1215 | 1217 | else throw("Strict value is not equal to itself.") | |
1216 | 1218 | } | |
1217 | 1219 | ||
1218 | 1220 | ||
1219 | 1221 | ||
1220 | 1222 | @Callable(dz) | |
1221 | 1223 | func activate (gc,gd) = if ((toString(dz.caller) != toString(aJ))) | |
1222 | 1224 | then throw("permissions denied") | |
1223 | 1225 | else $Tuple2([StringEntry(aa(), gc), StringEntry(ab(), gd)], "success") | |
1224 | 1226 | ||
1225 | 1227 | ||
1226 | 1228 | ||
1227 | 1229 | @Callable(dz) | |
1228 | 1230 | func refreshKLp () = { | |
1229 | 1231 | let ge = valueOrElse(getInteger(ag), 0) | |
1230 | 1232 | let gf = if (((height - ge) >= aj)) | |
1231 | 1233 | then unit | |
1232 | 1234 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1233 | 1235 | if ((gf == gf)) | |
1234 | 1236 | then { | |
1235 | 1237 | let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1236 | 1238 | let gg = di(0, 0, 0) | |
1237 | 1239 | let gh = gg._1 | |
1238 | 1240 | let cZ = gg._2 | |
1239 | 1241 | let dl = if ((dt != cZ)) | |
1240 | 1242 | then gh | |
1241 | 1243 | else aG("nothing to refresh") | |
1242 | 1244 | $Tuple2(dl, toString(cZ)) | |
1243 | 1245 | } | |
1244 | 1246 | else throw("Strict value is not equal to itself.") | |
1245 | 1247 | } | |
1246 | 1248 | ||
1247 | 1249 | ||
1248 | 1250 | ||
1249 | 1251 | @Callable(dz) | |
1250 | 1252 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1251 | 1253 | ||
1252 | 1254 | ||
1253 | 1255 | ||
1254 | 1256 | @Callable(dz) | |
1255 | 1257 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1256 | 1258 | ||
1257 | 1259 | ||
1258 | 1260 | ||
1259 | 1261 | @Callable(dz) | |
1260 | 1262 | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1261 | 1263 | let bS = bI(bE, bF, bJ) | |
1262 | 1264 | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1263 | 1265 | } | |
1264 | 1266 | ||
1265 | 1267 | ||
1266 | 1268 | ||
1267 | 1269 | @Callable(dz) | |
1268 | 1270 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1269 | 1271 | ||
1270 | 1272 | ||
1271 | 1273 | ||
1272 | 1274 | @Callable(dz) | |
1273 | 1275 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1274 | 1276 | ||
1275 | 1277 | ||
1276 | 1278 | ||
1277 | 1279 | @Callable(dz) | |
1278 | 1280 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1279 | 1281 | ||
1280 | 1282 | ||
1281 | 1283 | ||
1282 | 1284 | @Callable(dz) | |
1283 | 1285 | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1284 | 1286 | ||
1285 | 1287 | ||
1286 | 1288 | ||
1287 | 1289 | @Callable(dz) | |
1288 | 1290 | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1289 | 1291 | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1290 | 1292 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1291 | 1293 | } | |
1292 | 1294 | ||
1293 | 1295 | ||
1294 | 1296 | ||
1295 | 1297 | @Callable(dz) | |
1296 | 1298 | func statsREADONLY () = { | |
1297 | 1299 | let bK = aN() | |
1298 | 1300 | let bX = fromBase58String(bK[q]) | |
1299 | 1301 | let gi = bK[r] | |
1300 | 1302 | let gj = bK[s] | |
1301 | 1303 | let cz = bK[v] | |
1302 | 1304 | let cA = bK[w] | |
1303 | 1305 | let bL = parseIntValue(bK[t]) | |
1304 | 1306 | let bM = parseIntValue(bK[u]) | |
1305 | 1307 | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1306 | 1308 | let gl = bw(gi) | |
1307 | 1309 | let gm = bw(gj) | |
1308 | 1310 | let gn = if ((gk == 0)) | |
1309 | 1311 | then [e, e, e] | |
1310 | 1312 | else bI(gl, gm, gk) | |
1311 | 1313 | let ch = 0 | |
1312 | 1314 | let go = G(gn[1], b) | |
1313 | 1315 | let gp = G(gn[2], b) | |
1314 | 1316 | let gq = value(getInteger(aJ, au(toString(this)))) | |
1315 | 1317 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gl), toString(gm), toString(gk), toString(ch), toString(go), toString(gp), toString(gq)], j)) | |
1316 | 1318 | } | |
1317 | 1319 | ||
1318 | 1320 | ||
1319 | 1321 | ||
1320 | 1322 | @Callable(dz) | |
1321 | 1323 | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1322 | 1324 | let bK = aN() | |
1323 | 1325 | let bX = fromBase58String(bK[q]) | |
1324 | 1326 | let cx = bK[r] | |
1325 | 1327 | let bY = fromBase58String(cx) | |
1326 | 1328 | let cy = bK[s] | |
1327 | 1329 | let bZ = fromBase58String(cy) | |
1328 | 1330 | let bL = parseIntValue(bK[t]) | |
1329 | 1331 | let bM = parseIntValue(bK[u]) | |
1330 | 1332 | let ca = bK[p] | |
1331 | 1333 | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1332 | 1334 | let gl = bw(cx) | |
1333 | 1335 | let gm = bw(cy) | |
1334 | 1336 | let bG = D(gl, bL) | |
1335 | 1337 | let bH = D(gm, bM) | |
1336 | 1338 | let cg = if ((gk == 0)) | |
1337 | 1339 | then e | |
1338 | 1340 | else by(bH, bG) | |
1339 | 1341 | let cD = D(cr, bL) | |
1340 | 1342 | let cE = fraction(cD, cg, d) | |
1341 | 1343 | let ct = G(cE, bM) | |
1342 | 1344 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1343 | 1345 | let cO = dF._1 | |
1344 | 1346 | let gr = dF._3 | |
1345 | 1347 | let cc = dF._4 | |
1346 | 1348 | let ce = dF._5 | |
1347 | 1349 | let cb = dF._6 | |
1348 | 1350 | $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)) | |
1349 | 1351 | } | |
1350 | 1352 | ||
1351 | 1353 | ||
1352 | 1354 | ||
1353 | 1355 | @Callable(dz) | |
1354 | 1356 | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1355 | 1357 | let bK = aN() | |
1356 | 1358 | let bX = fromBase58String(bK[q]) | |
1357 | 1359 | let cx = bK[r] | |
1358 | 1360 | let bY = fromBase58String(cx) | |
1359 | 1361 | let cy = bK[s] | |
1360 | 1362 | let bZ = fromBase58String(cy) | |
1361 | 1363 | let bL = parseIntValue(bK[t]) | |
1362 | 1364 | let bM = parseIntValue(bK[u]) | |
1363 | 1365 | let ca = bK[p] | |
1364 | 1366 | let gk = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1365 | 1367 | let gs = bw(cx) | |
1366 | 1368 | let gt = bw(cy) | |
1367 | 1369 | let gu = D(gs, bL) | |
1368 | 1370 | let gv = D(gt, bM) | |
1369 | 1371 | let cg = if ((gk == 0)) | |
1370 | 1372 | then e | |
1371 | 1373 | else by(gv, gu) | |
1372 | 1374 | let cE = D(ct, bM) | |
1373 | 1375 | let cD = fraction(cE, d, cg) | |
1374 | 1376 | let cr = G(cD, bL) | |
1375 | 1377 | let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1376 | 1378 | let cO = dF._1 | |
1377 | 1379 | let gr = dF._3 | |
1378 | 1380 | let cc = dF._4 | |
1379 | 1381 | let ce = dF._5 | |
1380 | 1382 | let cb = dF._6 | |
1381 | 1383 | $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)) | |
1382 | 1384 | } | |
1383 | 1385 | ||
1384 | 1386 | ||
1385 | 1387 | ||
1386 | 1388 | @Callable(dz) | |
1387 | 1389 | func evaluateGetREADONLY (gw,gx) = { | |
1388 | 1390 | let cG = bT("", gw, gx, this) | |
1389 | 1391 | let cm = cG._1 | |
1390 | 1392 | let cn = cG._2 | |
1391 | 1393 | let cc = cG._5 | |
1392 | 1394 | let ce = cG._6 | |
1393 | 1395 | let cb = cG._7 | |
1394 | 1396 | let ch = cG._8 | |
1395 | 1397 | let ca = parseIntValue(cG._9) | |
1396 | 1398 | $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)) | |
1397 | 1399 | } | |
1398 | 1400 | ||
1399 | 1401 | ||
1400 | 1402 | @Verifier(gy) | |
1401 | 1403 | func gz () = { | |
1402 | 1404 | let gA = { | |
1403 | 1405 | let dK = eM() | |
1404 | 1406 | if ($isInstanceOf(dK, "ByteVector")) | |
1405 | 1407 | then { | |
1406 | 1408 | let eQ = dK | |
1407 | 1409 | eQ | |
1408 | 1410 | } | |
1409 | 1411 | else if ($isInstanceOf(dK, "Unit")) | |
1410 | 1412 | then gy.senderPublicKey | |
1411 | 1413 | else throw("Match error") | |
1412 | 1414 | } | |
1413 | 1415 | let dK = gy | |
1414 | 1416 | if ($isInstanceOf(dK, "Order")) | |
1415 | 1417 | then { | |
1416 | 1418 | let dp = dK | |
1417 | 1419 | let gB = aM() | |
1418 | 1420 | let az = do(dp) | |
1419 | 1421 | let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
1420 | 1422 | let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gB) | |
1421 | 1423 | if (if (if (az) | |
1422 | 1424 | then aA | |
1423 | 1425 | else false) | |
1424 | 1426 | then aB | |
1425 | 1427 | else false) | |
1426 | 1428 | then true | |
1427 | 1429 | else ay(az, aA, aB) | |
1428 | 1430 | } | |
1429 | 1431 | else if ($isInstanceOf(dK, "SetScriptTransaction")) | |
1430 | 1432 | then { | |
1431 | 1433 | let eN = dK | |
1432 | 1434 | let gC = blake2b256(value(eN.script)) | |
1433 | 1435 | let gD = fromBase64String(value(getString(aJ, aw()))) | |
1434 | 1436 | let gE = scriptHash(this) | |
1435 | 1437 | if (if ((gD == gC)) | |
1436 | 1438 | then (gE != gC) | |
1437 | 1439 | else false) | |
1438 | 1440 | then true | |
1439 | 1441 | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1440 | 1442 | } | |
1441 | 1443 | else sigVerify(gy.bodyBytes, gy.proofs[0], gA) | |
1442 | 1444 | } | |
1443 | 1445 |
github/deemru/w8io/026f985 130.05 ms ◑