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