tx · 79r159Vj6vScnC2Zi83FsiqJX9xVLb2hWe4FW1tnA8j 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA: -0.03100000 Waves 2022.09.21 14:55 [2239042] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves
{ "type": 13, "id": "79r159Vj6vScnC2Zi83FsiqJX9xVLb2hWe4FW1tnA8j", "fee": 3100000, "feeAssetId": null, "timestamp": 1663772206672, "version": 1, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "3RyBG92w2C52bEipghS3gCqWTZer3gSQkd6QFtgHUZ9EDo7TWoe7rXoeeukLe4gu5BnZfypgQavVhPNyP7cMRD5H" ], "script": "base64:BgKFHwgCEgMKAQgSAwoBCBIAEgQKAgEEEgcKBQEBAQEEEgQKAgEEEgQKAgEIEgQKAgEIEgMKAQESABIHCgUBAQEIARIECgIIARIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEIARIECgIICBIECgIICBIECgIIARIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgAiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IglvbmVCaWdJbnQiCnNsaXBwYWdlNEQiBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lkIg1pZHhJUHJpY2VBc0lkIg9pZHhGYWN0U3Rha0NudHIiEGlkeEZhY3RT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nXyJ48Fwaf4 Next: 4CshcCKzqXFScuBciyM8QXSJH9ZNUtUqsXm7bcpZj4aW Diff:
Old | New | Differences | |
---|---|---|---|
492 | 492 | else $Tuple2(dF._2, dF._1) | |
493 | 493 | let dI = dH._1 | |
494 | 494 | let dJ = dH._2 | |
495 | - | let dK = dq(bQ, V, AttachedPayment(fromBase58String(bS), dI), AttachedPayment(fromBase58String(bT), dJ), 0, true, true, false, | |
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 |
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 | - | let dK = dq(bQ, V, AttachedPayment(fromBase58String(bS), dI), AttachedPayment(fromBase58String(bT), dJ), 0, true, true, false, | |
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 ck = [ScriptTransfer(bQ, dY, if ((dO == "WAVES")) | |
551 | 551 | then unit | |
552 | 552 | else fromBase58String(dO)), StringEntry(W(toString(bQ), bN), aX(ea, eb, cu, ed, height, lastBlock.timestamp)), IntegerEntry(P(), ed), IntegerEntry(Q(height, lastBlock.timestamp), ed)] | |
553 | 553 | if ((ck == ck)) | |
554 | 554 | then { | |
555 | 555 | let ee = invoke(ay, "burn", [cu], [AttachedPayment(bO, cu)]) | |
556 | 556 | if ((ee == ee)) | |
557 | 557 | then $Tuple2(ck, dY) | |
558 | 558 | else throw("Strict value is not equal to itself.") | |
559 | 559 | } | |
560 | 560 | else throw("Strict value is not equal to itself.") | |
561 | 561 | } | |
562 | 562 | } | |
563 | 563 | } | |
564 | 564 | ||
565 | 565 | ||
566 | 566 | func ef () = { | |
567 | 567 | let as = getString(N()) | |
568 | 568 | if ($isInstanceOf(as, "String")) | |
569 | 569 | then { | |
570 | 570 | let eg = as | |
571 | 571 | fromBase58String(eg) | |
572 | 572 | } | |
573 | 573 | else if ($isInstanceOf(as, "Unit")) | |
574 | 574 | then unit | |
575 | 575 | else throw("Match error") | |
576 | 576 | } | |
577 | 577 | ||
578 | 578 | ||
579 | 579 | func eh () = { | |
580 | 580 | let as = getString(O()) | |
581 | 581 | if ($isInstanceOf(as, "String")) | |
582 | 582 | then { | |
583 | 583 | let eg = as | |
584 | 584 | fromBase58String(eg) | |
585 | 585 | } | |
586 | 586 | else if ($isInstanceOf(as, "Unit")) | |
587 | 587 | then unit | |
588 | 588 | else throw("Match error") | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | let ei = throw("Permission denied") | |
593 | 593 | ||
594 | 594 | func ej (do) = { | |
595 | 595 | let as = ef() | |
596 | 596 | if ($isInstanceOf(as, "ByteVector")) | |
597 | 597 | then { | |
598 | 598 | let ek = as | |
599 | 599 | if ((do.callerPublicKey == ek)) | |
600 | 600 | then true | |
601 | 601 | else ei | |
602 | 602 | } | |
603 | 603 | else if ($isInstanceOf(as, "Unit")) | |
604 | 604 | then if ((do.caller == this)) | |
605 | 605 | then true | |
606 | 606 | else ei | |
607 | 607 | else throw("Match error") | |
608 | 608 | } | |
609 | 609 | ||
610 | 610 | ||
611 | 611 | @Callable(do) | |
612 | 612 | func constructor (M) = { | |
613 | 613 | let el = ej(do) | |
614 | 614 | if ((el == el)) | |
615 | 615 | then [StringEntry(M(), M)] | |
616 | 616 | else throw("Strict value is not equal to itself.") | |
617 | 617 | } | |
618 | 618 | ||
619 | 619 | ||
620 | 620 | ||
621 | 621 | @Callable(do) | |
622 | 622 | func setManager (em) = { | |
623 | 623 | let el = ej(do) | |
624 | 624 | if ((el == el)) | |
625 | 625 | then { | |
626 | 626 | let en = fromBase58String(em) | |
627 | 627 | if ((en == en)) | |
628 | 628 | then [StringEntry(O(), em)] | |
629 | 629 | else throw("Strict value is not equal to itself.") | |
630 | 630 | } | |
631 | 631 | else throw("Strict value is not equal to itself.") | |
632 | 632 | } | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | 636 | @Callable(do) | |
637 | 637 | func confirmManager () = { | |
638 | 638 | let bI = eh() | |
639 | 639 | let eo = if (isDefined(bI)) | |
640 | 640 | then true | |
641 | 641 | else throw("No pending manager") | |
642 | 642 | if ((eo == eo)) | |
643 | 643 | then { | |
644 | 644 | let ep = if ((do.callerPublicKey == value(bI))) | |
645 | 645 | then true | |
646 | 646 | else throw("You are not pending manager") | |
647 | 647 | if ((ep == ep)) | |
648 | 648 | then [StringEntry(N(), toBase58String(value(bI))), DeleteEntry(O())] | |
649 | 649 | else throw("Strict value is not equal to itself.") | |
650 | 650 | } | |
651 | 651 | else throw("Strict value is not equal to itself.") | |
652 | 652 | } | |
653 | 653 | ||
654 | 654 | ||
655 | 655 | ||
656 | 656 | @Callable(do) | |
657 | 657 | func put (eq,er) = { | |
658 | 658 | let es = aH() | |
659 | 659 | let et = valueOrErrorMessage(addressFromString(es[x]), "Wr st addr") | |
660 | 660 | let eu = valueOrErrorMessage(addressFromString(es[y]), "Wr sl addr") | |
661 | 661 | if ((0 > eq)) | |
662 | 662 | then throw("Wrong slippage") | |
663 | 663 | else if ((size(do.payments) != 2)) | |
664 | 664 | then throw("2 pmnts expd") | |
665 | 665 | else { | |
666 | 666 | let ev = dq(toString(do.caller), toBase58String(do.transactionId), AttachedPayment(value(do.payments[0]).assetId, value(do.payments[0]).amount), do.payments[1], eq, true, false, true, 0, "") | |
667 | 667 | let cT = ev._2 | |
668 | 668 | let dM = ev._7 | |
669 | 669 | let ck = ev._9 | |
670 | 670 | let cU = ev._10 | |
671 | 671 | let cV = ev._11 | |
672 | 672 | let bS = ev._12 | |
673 | 673 | let bT = ev._13 | |
674 | 674 | let cG = invoke(ay, "emit", [cT], nil) | |
675 | 675 | if ((cG == cG)) | |
676 | 676 | then { | |
677 | 677 | let ew = { | |
678 | 678 | let as = cG | |
679 | 679 | if ($isInstanceOf(as, "Address")) | |
680 | 680 | then { | |
681 | 681 | let ex = as | |
682 | 682 | invoke(ex, "emit", [cT], nil) | |
683 | 683 | } | |
684 | 684 | else unit | |
685 | 685 | } | |
686 | 686 | if ((ew == ew)) | |
687 | 687 | then { | |
688 | 688 | let ey = if ((cU > 0)) | |
689 | 689 | then invoke(eu, "put", nil, [AttachedPayment(bS, cU)]) | |
690 | 690 | else nil | |
691 | 691 | if ((ey == ey)) | |
692 | 692 | then { | |
693 | 693 | let ez = if ((cV > 0)) | |
694 | 694 | then invoke(eu, "put", nil, [AttachedPayment(bT, cV)]) | |
695 | 695 | else nil | |
696 | 696 | if ((ez == ez)) | |
697 | 697 | then { | |
698 | 698 | let eA = if (er) | |
699 | 699 | then { | |
700 | 700 | let eB = invoke(et, "stake", nil, [AttachedPayment(dM, cT)]) | |
701 | 701 | if ((eB == eB)) | |
702 | 702 | then nil | |
703 | 703 | else throw("Strict value is not equal to itself.") | |
704 | 704 | } | |
705 | 705 | else [ScriptTransfer(do.caller, cT, dM)] | |
706 | 706 | (ck ++ eA) | |
707 | 707 | } | |
708 | 708 | else throw("Strict value is not equal to itself.") | |
709 | 709 | } | |
710 | 710 | else throw("Strict value is not equal to itself.") | |
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 | } | |
717 | 717 | ||
718 | 718 | ||
719 | 719 | ||
720 | 720 | @Callable(do) | |
721 | 721 | func putOneTkn (dI,dJ,eC,bj,er) = { | |
722 | 722 | let bA = aH() | |
723 | 723 | let et = valueOrErrorMessage(addressFromString(bA[x]), "Wr st addr") | |
724 | 724 | let eu = valueOrErrorMessage(addressFromString(bA[y]), "Wr sl addr") | |
725 | 725 | let eD = valueOrErrorMessage(addressFromString(bA[z]), "Wr gwx addr") | |
726 | 726 | let eE = aD() | |
727 | 727 | let bS = eE[r] | |
728 | 728 | let bT = eE[s] | |
729 | 729 | let bU = parseIntValue(eE[t]) | |
730 | 730 | let bV = parseIntValue(eE[u]) | |
731 | 731 | let eF = valueOrElse(getString(this, aa()), "") | |
732 | 732 | let bQ = if ((eF == toString(do.caller))) | |
733 | 733 | then do.originCaller | |
734 | 734 | else do.caller | |
735 | 735 | if (if (if (if ((0 >= bj)) | |
736 | 736 | then true | |
737 | 737 | else (0 >= dI)) | |
738 | 738 | then true | |
739 | 739 | else (0 >= dJ)) | |
740 | 740 | then true | |
741 | 741 | else (0 >= eC)) | |
742 | 742 | then throw("Wrong params") | |
743 | 743 | else if ((size(do.payments) != 1)) | |
744 | 744 | then throw("1 pmnt expd") | |
745 | 745 | else { | |
746 | 746 | let dp = value(do.payments[0]) | |
747 | 747 | let bO = toBase58String(value(dp.assetId)) | |
748 | 748 | let eG = dp.amount | |
749 | 749 | let eH = bJ(eG) | |
750 | 750 | let cu = eH._1 | |
751 | 751 | let bL = eH._2 | |
752 | 752 | if ((10000000 > eG)) | |
753 | 753 | then throw("Wrong pmt amt") | |
754 | 754 | else { | |
755 | 755 | let bY = bb(bS) | |
756 | 756 | let ca = bb(bT) | |
757 | 757 | let eI = if ((bO == bS)) | |
758 | 758 | then if (if ((eG > bY)) | |
759 | 759 | then true | |
760 | 760 | else (dI > cu)) | |
761 | 761 | then throw("invalid payment amount") | |
762 | 762 | else $Tuple6((bY - eG), ca, (cu - dI), dJ, 0, 0) | |
763 | 763 | else if ((bO == bT)) | |
764 | 764 | then if (if ((eG > ca)) | |
765 | 765 | then true | |
766 | 766 | else (dJ > cu)) | |
767 | 767 | then throw("invalid payment amount") | |
768 | 768 | else $Tuple6(bY, (ca - eG), 0, 0, (cu - dJ), dI) | |
769 | 769 | else throw("wrong pmtAssetId") | |
770 | 770 | let dz = eI._1 | |
771 | 771 | let dA = eI._2 | |
772 | 772 | let eJ = eI._3 | |
773 | 773 | let eK = eI._4 | |
774 | 774 | let eL = eI._5 | |
775 | 775 | let eM = eI._6 | |
776 | 776 | let bo = invoke(eD, "calcD", [toString(dz), toString(dA), az, g, h], nil) | |
777 | 777 | let bn = invoke(eD, "calcD", [toString(toBigInt(((dz + eJ) - eM))), toString(toBigInt(((dA + eL) - eK))), az, g, h], nil) | |
778 | 778 | let eN = bm(parseBigIntValue(ar(bn)), parseBigIntValue(ar(bo)), f) | |
779 | 779 | if ((eN == eN)) | |
780 | 780 | then { | |
781 | 781 | let dK = dq(toString(do.caller), toBase58String(do.transactionId), AttachedPayment(fromBase58String(bS), dI), AttachedPayment(fromBase58String(bT), dJ), bj, true, true, true, cu, bO) | |
782 | 782 | let dL = dK._2 | |
783 | 783 | let dM = dK._7 | |
784 | 784 | let ck = dK._9 | |
785 | 785 | let cU = dK._10 | |
786 | 786 | let cV = dK._11 | |
787 | 787 | let eO = bg(toBigInt(dL), toBigInt(eC), toBigInt(bj)) | |
788 | 788 | let cT = toInt(eO._2) | |
789 | 789 | let ev = invoke(ay, "emit", [cT], nil) | |
790 | 790 | if ((ev == ev)) | |
791 | 791 | then { | |
792 | 792 | let ew = { | |
793 | 793 | let as = ev | |
794 | 794 | if ($isInstanceOf(as, "Address")) | |
795 | 795 | then { | |
796 | 796 | let ex = as | |
797 | 797 | invoke(ex, "emit", [cT], nil) | |
798 | 798 | } | |
799 | 799 | else unit | |
800 | 800 | } | |
801 | 801 | if ((ew == ew)) | |
802 | 802 | then { | |
803 | 803 | let ey = if ((cU > 0)) | |
804 | 804 | then invoke(eu, "put", nil, [AttachedPayment(fromBase58String(bS), cU)]) | |
805 | 805 | else nil | |
806 | 806 | if ((ey == ey)) | |
807 | 807 | then { | |
808 | 808 | let ez = if ((cV > 0)) | |
809 | 809 | then invoke(eu, "put", nil, [AttachedPayment(fromBase58String(bT), cV)]) | |
810 | 810 | else nil | |
811 | 811 | if ((ez == ez)) | |
812 | 812 | then { | |
813 | 813 | let eA = if (er) | |
814 | 814 | then { | |
815 | 815 | let eB = invoke(et, "stake", nil, [AttachedPayment(dM, cT)]) | |
816 | 816 | if ((eB == eB)) | |
817 | 817 | then nil | |
818 | 818 | else throw("Strict value is not equal to itself.") | |
819 | 819 | } | |
820 | 820 | else [ScriptTransfer(do.caller, cT, dM)] | |
821 | 821 | let eP = if ((bL > 0)) | |
822 | 822 | then [ScriptTransfer(aC, bL, fromBase58String(bO))] | |
823 | 823 | else nil | |
824 | 824 | ((ck ++ eA) ++ eP) | |
825 | 825 | } | |
826 | 826 | else throw("Strict value is not equal to itself.") | |
827 | 827 | } | |
828 | 828 | else throw("Strict value is not equal to itself.") | |
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 | } | |
837 | 837 | } | |
838 | 838 | ||
839 | 839 | ||
840 | 840 | ||
841 | 841 | @Callable(do) | |
842 | 842 | func putOneTknV2 (dP,er) = if ((size(do.payments) != 1)) | |
843 | 843 | then throw("1 pmnt expd") | |
844 | 844 | else { | |
845 | 845 | let dw = aD() | |
846 | 846 | let bS = dw[r] | |
847 | 847 | let bT = dw[s] | |
848 | 848 | let dT = parseIntValue(dw[t]) | |
849 | 849 | let dU = parseIntValue(dw[u]) | |
850 | 850 | let bQ = if ((do.caller == this)) | |
851 | 851 | then do.originCaller | |
852 | 852 | else do.caller | |
853 | 853 | let dp = value(do.payments[0]) | |
854 | 854 | let bO = toBase58String(value(dp.assetId)) | |
855 | 855 | let cu = dp.amount | |
856 | 856 | if ((10000000 > cu)) | |
857 | 857 | then throw("Wrong pmt amt") | |
858 | 858 | else { | |
859 | 859 | let cG = du(cu, bO, toString(bQ), toBase58String(do.transactionId)) | |
860 | 860 | let dL = cG._2 | |
861 | 861 | let dM = cG._7 | |
862 | 862 | let ck = cG._9 | |
863 | 863 | let cU = cG._10 | |
864 | 864 | let cV = cG._11 | |
865 | 865 | let cT = if (if ((dP > 0)) | |
866 | 866 | then (dP > dL) | |
867 | 867 | else false) | |
868 | 868 | then throw(makeString(["amount to receive is less than ", toString(dP)], "")) | |
869 | 869 | else dL | |
870 | 870 | let ev = invoke(ay, "emit", [cT], nil) | |
871 | 871 | if ((ev == ev)) | |
872 | 872 | then { | |
873 | 873 | let ew = { | |
874 | 874 | let as = ev | |
875 | 875 | if ($isInstanceOf(as, "Address")) | |
876 | 876 | then { | |
877 | 877 | let ex = as | |
878 | 878 | invoke(ex, "emit", [cT], nil) | |
879 | 879 | } | |
880 | 880 | else unit | |
881 | 881 | } | |
882 | 882 | if ((ew == ew)) | |
883 | 883 | then { | |
884 | 884 | let ey = if ((cU > 0)) | |
885 | 885 | then invoke(aK, "put", nil, [AttachedPayment(fromBase58String(bS), cU)]) | |
886 | 886 | else nil | |
887 | 887 | if ((ey == ey)) | |
888 | 888 | then { | |
889 | 889 | let ez = if ((cV > 0)) | |
890 | 890 | then invoke(aK, "put", nil, [AttachedPayment(fromBase58String(bT), cV)]) | |
891 | 891 | else nil | |
892 | 892 | if ((ez == ez)) | |
893 | 893 | then { | |
894 | 894 | let eA = if (er) | |
895 | 895 | then { | |
896 | 896 | let eB = invoke(aJ, "stake", nil, [AttachedPayment(dM, cT)]) | |
897 | 897 | if ((eB == eB)) | |
898 | 898 | then nil | |
899 | 899 | else throw("Strict value is not equal to itself.") | |
900 | 900 | } | |
901 | 901 | else [ScriptTransfer(do.caller, cT, dM)] | |
902 | 902 | $Tuple2((ck ++ eA), cT) | |
903 | 903 | } | |
904 | 904 | else throw("Strict value is not equal to itself.") | |
905 | 905 | } | |
906 | 906 | else throw("Strict value is not equal to itself.") | |
907 | 907 | } | |
908 | 908 | else throw("Strict value is not equal to itself.") | |
909 | 909 | } | |
910 | 910 | else throw("Strict value is not equal to itself.") | |
911 | 911 | } | |
912 | 912 | } | |
913 | 913 | ||
914 | 914 | ||
915 | 915 | ||
916 | 916 | @Callable(do) | |
917 | 917 | func putOneTknV2READONLY (eQ,eR) = { | |
918 | 918 | let cG = du(eQ, eR, "", "") | |
919 | 919 | let dL = cG._2 | |
920 | 920 | let dM = cG._7 | |
921 | 921 | let ck = cG._9 | |
922 | 922 | let cU = cG._10 | |
923 | 923 | let cV = cG._11 | |
924 | 924 | $Tuple2(nil, dL) | |
925 | 925 | } | |
926 | 926 | ||
927 | 927 | ||
928 | 928 | ||
929 | 929 | @Callable(do) | |
930 | 930 | func putOneTknV2WithBonusREADONLY (eQ,eR) = { | |
931 | 931 | let dw = aD() | |
932 | 932 | let bS = dw[r] | |
933 | 933 | let bT = dw[s] | |
934 | 934 | let bY = bb(bS) | |
935 | 935 | let ca = bb(bT) | |
936 | 936 | let cG = du(eQ, eR, "", "") | |
937 | 937 | let dL = cG._2 | |
938 | 938 | let cd = cG._3 | |
939 | 939 | let eS = cG._6 | |
940 | 940 | let dM = cG._7 | |
941 | 941 | let eT = if ((eR == bS)) | |
942 | 942 | then { | |
943 | 943 | let eU = fraction(eQ, cd, a) | |
944 | 944 | $Tuple2(eQ, eU) | |
945 | 945 | } | |
946 | 946 | else { | |
947 | 947 | let eV = fraction(eQ, a, cd) | |
948 | 948 | $Tuple2(eV, eQ) | |
949 | 949 | } | |
950 | 950 | let eV = eT._1 | |
951 | 951 | let eU = eT._2 | |
952 | 952 | let eW = fraction(eS, eU, ca) | |
953 | 953 | let eX = if ((eR == bS)) | |
954 | 954 | then fraction(eV, a, dL) | |
955 | 955 | else fraction(eU, a, dL) | |
956 | 956 | let eY = fraction((eU + eV), a, eW) | |
957 | 957 | let eZ = fraction((eY - eX), a, eX) | |
958 | 958 | let bL = bJ(eQ)._2 | |
959 | 959 | $Tuple2(nil, $Tuple3(dL, bL, eZ)) | |
960 | 960 | } | |
961 | 961 | ||
962 | 962 | ||
963 | 963 | ||
964 | 964 | @Callable(do) | |
965 | 965 | func putForFree (fa) = if ((0 > fa)) | |
966 | 966 | then throw("Wrong slpg") | |
967 | 967 | else if ((size(do.payments) != 2)) | |
968 | 968 | then throw("2 pmnts expd") | |
969 | 969 | else { | |
970 | 970 | let dK = dq(toString(do.caller), toBase58String(do.transactionId), AttachedPayment(value(do.payments[0]).assetId, value(do.payments[0]).amount), do.payments[1], fa, false, false, true, 0, "") | |
971 | 971 | dK._9 | |
972 | 972 | } | |
973 | 973 | ||
974 | 974 | ||
975 | 975 | ||
976 | 976 | @Callable(do) | |
977 | 977 | func get () = { | |
978 | 978 | let cG = dn(do) | |
979 | 979 | let fb = cG._1 | |
980 | 980 | let cj = cG._2 | |
981 | 981 | let cu = cG._3 | |
982 | 982 | let bO = cG._4 | |
983 | 983 | let ck = cG._5 | |
984 | 984 | let fc = invoke(ay, "burn", [cu], [AttachedPayment(bO, cu)]) | |
985 | 985 | if ((fc == fc)) | |
986 | 986 | then ck | |
987 | 987 | else throw("Strict value is not equal to itself.") | |
988 | 988 | } | |
989 | 989 | ||
990 | 990 | ||
991 | 991 | ||
992 | 992 | @Callable(do) | |
993 | 993 | func getOneTkn (fd,fe,ff,dO,bj) = if ((size(do.payments) != 1)) | |
994 | 994 | then throw("1 pmnt expd") | |
995 | 995 | else { | |
996 | 996 | let bA = aD() | |
997 | 997 | let bR = bA[q] | |
998 | 998 | let bS = bA[r] | |
999 | 999 | let bT = bA[s] | |
1000 | 1000 | let bU = parseIntValue(bA[t]) | |
1001 | 1001 | let bV = parseIntValue(bA[u]) | |
1002 | 1002 | let bW = bA[p] | |
1003 | 1003 | let es = aH() | |
1004 | 1004 | let eD = valueOrErrorMessage(addressFromString(es[z]), "Wr sl addr") | |
1005 | 1005 | let dp = value(do.payments[0]) | |
1006 | 1006 | let eF = valueOrElse(getString(this, aa()), "") | |
1007 | 1007 | let bQ = if ((eF == toString(do.caller))) | |
1008 | 1008 | then do.originCaller | |
1009 | 1009 | else do.caller | |
1010 | 1010 | let bN = toBase58String(do.transactionId) | |
1011 | 1011 | let bO = value(dp.assetId) | |
1012 | 1012 | let cu = dp.amount | |
1013 | 1013 | if ((1000000000 > cu)) | |
1014 | 1014 | then throw("Min pmt 10 LP") | |
1015 | 1015 | else if (if (if ((0 > bj)) | |
1016 | 1016 | then true | |
1017 | 1017 | else (0 > fd)) | |
1018 | 1018 | then true | |
1019 | 1019 | else (0 > ff)) | |
1020 | 1020 | then throw("Wrong params") | |
1021 | 1021 | else if ((bR != toBase58String(bO))) | |
1022 | 1022 | then throw("Wrong LP") | |
1023 | 1023 | else { | |
1024 | 1024 | let cG = bM(toBase58String(do.transactionId), toBase58String(bO), cu, do.caller) | |
1025 | 1025 | let fg = cG._1 | |
1026 | 1026 | let fh = cG._2 | |
1027 | 1027 | let bY = bb(bS) | |
1028 | 1028 | let ca = bb(bT) | |
1029 | 1029 | let fi = if ((dO == bS)) | |
1030 | 1030 | then $Tuple7((bY - fg), (ca - fh), fd, fh, 0, 0, (fg + fd)) | |
1031 | 1031 | else if ((dO == bT)) | |
1032 | 1032 | then $Tuple7((bY - fg), (ca - fh), 0, 0, fd, fg, (fh + fd)) | |
1033 | 1033 | else throw("wrong outAssetId") | |
1034 | 1034 | let dz = fi._1 | |
1035 | 1035 | let dA = fi._2 | |
1036 | 1036 | let eJ = fi._3 | |
1037 | 1037 | let eK = fi._4 | |
1038 | 1038 | let eL = fi._5 | |
1039 | 1039 | let eM = fi._6 | |
1040 | 1040 | let fj = fi._7 | |
1041 | 1041 | if (if ((0 > eJ)) | |
1042 | 1042 | then true | |
1043 | 1043 | else (0 > eL)) | |
1044 | 1044 | then throw("Wrong calc") | |
1045 | 1045 | else { | |
1046 | 1046 | let bo = invoke(eD, "calcD", [toString(dz), toString(dA), az, g, h], nil) | |
1047 | 1047 | let bn = invoke(eD, "calcD", [toString(((dz - eJ) + eM)), toString(((dA + eK) - eL)), az, g, h], nil) | |
1048 | 1048 | let eN = bm(parseBigIntValue(ar(bn)), parseBigIntValue(ar(bo)), f) | |
1049 | 1049 | if ((eN == eN)) | |
1050 | 1050 | then { | |
1051 | 1051 | let dX = bJ(fj)._1 | |
1052 | 1052 | let fk = bg(toBigInt(dX), toBigInt(ff), toBigInt(bj)) | |
1053 | 1053 | if ((fk == fk)) | |
1054 | 1054 | then { | |
1055 | 1055 | let fl = if ((dO == bS)) | |
1056 | 1056 | then $Tuple2(toInt(fk._2), 0) | |
1057 | 1057 | else $Tuple2(0, toInt(fk._2)) | |
1058 | 1058 | let ea = fl._1 | |
1059 | 1059 | let eb = fl._2 | |
1060 | 1060 | let dY = (ea + eb) | |
1061 | 1061 | let bL = (fj - dX) | |
1062 | 1062 | let fm = if ((dO == "WAVES")) | |
1063 | 1063 | then unit | |
1064 | 1064 | else fromBase58String(dO) | |
1065 | 1065 | let eP = if ((bL > 0)) | |
1066 | 1066 | then [ScriptTransfer(aC, bL, fm)] | |
1067 | 1067 | else nil | |
1068 | 1068 | let ec = bd(B(ca, bV), B(bY, bU)) | |
1069 | 1069 | let ed = E(ec, a) | |
1070 | 1070 | let ck = [ScriptTransfer(bQ, dY, fm), StringEntry(W(toString(bQ), bN), aX(ea, eb, cu, ed, height, lastBlock.timestamp)), IntegerEntry(P(), ed), IntegerEntry(Q(height, lastBlock.timestamp), ed)] | |
1071 | 1071 | if ((ck == ck)) | |
1072 | 1072 | then { | |
1073 | 1073 | let ee = invoke(ay, "burn", [cu], [AttachedPayment(bO, cu)]) | |
1074 | 1074 | if ((ee == ee)) | |
1075 | 1075 | then (ck ++ eP) | |
1076 | 1076 | else throw("Strict value is not equal to itself.") | |
1077 | 1077 | } | |
1078 | 1078 | else throw("Strict value is not equal to itself.") | |
1079 | 1079 | } | |
1080 | 1080 | else throw("Strict value is not equal to itself.") | |
1081 | 1081 | } | |
1082 | 1082 | else throw("Strict value is not equal to itself.") | |
1083 | 1083 | } | |
1084 | 1084 | } | |
1085 | 1085 | } | |
1086 | 1086 | ||
1087 | 1087 | ||
1088 | 1088 | ||
1089 | 1089 | @Callable(do) | |
1090 | 1090 | func getOneTknV2 (dO,dP) = { | |
1091 | 1091 | let fn = dN(dO, dP, do.payments, do.caller, do.originCaller, do.transactionId) | |
1092 | 1092 | let ck = fn._1 | |
1093 | 1093 | let dY = fn._2 | |
1094 | 1094 | $Tuple2(ck, dY) | |
1095 | 1095 | } | |
1096 | 1096 | ||
1097 | 1097 | ||
1098 | 1098 | ||
1099 | 1099 | @Callable(do) | |
1100 | 1100 | func getOneTknV2READONLY (dO,fo) = { | |
1101 | 1101 | let dw = aD() | |
1102 | 1102 | let bR = dw[q] | |
1103 | 1103 | let bS = dw[r] | |
1104 | 1104 | let bT = dw[s] | |
1105 | 1105 | let cG = bM("", bR, fo, this) | |
1106 | 1106 | let fg = cG._1 | |
1107 | 1107 | let fh = cG._2 | |
1108 | 1108 | let bY = bb(bS) | |
1109 | 1109 | let ca = bb(bT) | |
1110 | 1110 | let dz = (bY - fg) | |
1111 | 1111 | let dA = (ca - fh) | |
1112 | 1112 | let fp = if ((dO == bS)) | |
1113 | 1113 | then $Tuple3(dA, dz, fh) | |
1114 | 1114 | else if ((dO == bT)) | |
1115 | 1115 | then $Tuple3(dz, dA, fg) | |
1116 | 1116 | else throw("wrong outAssetId") | |
1117 | 1117 | let fq = fp._1 | |
1118 | 1118 | let fr = fp._2 | |
1119 | 1119 | let fs = fp._3 | |
1120 | 1120 | let ft = 1 | |
1121 | 1121 | let fd = { | |
1122 | 1122 | let dG = invoke(aL, "calcSwapXToY", [toString(fs), toString(fq), toString(fr), "", az, g, toString(ft), h], nil) | |
1123 | 1123 | if ($isInstanceOf(dG, "Int")) | |
1124 | 1124 | then dG | |
1125 | 1125 | else throw(($getType(invoke(aL, "calcSwapXToY", [toString(fs), toString(fq), toString(fr), "", az, g, toString(ft), h], nil)) + " couldn't be cast to Int")) | |
1126 | 1126 | } | |
1127 | 1127 | let fj = (fd + (if ((dO == bS)) | |
1128 | 1128 | then fg | |
1129 | 1129 | else fh)) | |
1130 | 1130 | let fu = bJ(fj) | |
1131 | 1131 | let dX = fu._1 | |
1132 | 1132 | let bL = fu._2 | |
1133 | 1133 | $Tuple2(nil, $Tuple2(dX, bL)) | |
1134 | 1134 | } | |
1135 | 1135 | ||
1136 | 1136 | ||
1137 | 1137 | ||
1138 | 1138 | @Callable(do) | |
1139 | 1139 | func getOneTknV2WithBonusREADONLY (dO,fo) = { | |
1140 | 1140 | let dw = aD() | |
1141 | 1141 | let bS = dw[r] | |
1142 | 1142 | let bT = dw[s] | |
1143 | 1143 | let bR = dw[q] | |
1144 | 1144 | let bY = bb(bS) | |
1145 | 1145 | let ca = bb(bT) | |
1146 | 1146 | let fv = { | |
1147 | 1147 | let dG = invoke(this, "getOneTknV2READONLY", [dO, fo], nil) | |
1148 | 1148 | if ($isInstanceOf(dG, "(Int, Int)")) | |
1149 | 1149 | then dG | |
1150 | 1150 | else throw(($getType(invoke(this, "getOneTknV2READONLY", [dO, fo], nil)) + " couldn't be cast to (Int, Int)")) | |
1151 | 1151 | } | |
1152 | 1152 | let dX = fv._1 | |
1153 | 1153 | let bL = fv._2 | |
1154 | 1154 | let cG = bM("", bR, fo, this) | |
1155 | 1155 | let ci = cG._1 | |
1156 | 1156 | let cj = cG._2 | |
1157 | 1157 | let eX = fraction(dX, a, fo) | |
1158 | 1158 | let eY = fraction((ci + cj), a, fo) | |
1159 | 1159 | let eZ = fraction((eX - eY), a, eY) | |
1160 | 1160 | $Tuple2(nil, $Tuple3(dX, bL, eZ)) | |
1161 | 1161 | } | |
1162 | 1162 | ||
1163 | 1163 | ||
1164 | 1164 | ||
1165 | 1165 | @Callable(do) | |
1166 | 1166 | func getNoLess (fw,fx) = { | |
1167 | 1167 | let cG = dn(do) | |
1168 | 1168 | let ci = cG._1 | |
1169 | 1169 | let cj = cG._2 | |
1170 | 1170 | let cu = cG._3 | |
1171 | 1171 | let bO = cG._4 | |
1172 | 1172 | let ck = cG._5 | |
1173 | 1173 | if ((fw > ci)) | |
1174 | 1174 | then throw(((("Failed: " + toString(ci)) + " < ") + toString(fw))) | |
1175 | 1175 | else if ((fx > cj)) | |
1176 | 1176 | then throw(((("Failed: " + toString(cj)) + " < ") + toString(fx))) | |
1177 | 1177 | else { | |
1178 | 1178 | let fy = invoke(ay, "burn", [cu], [AttachedPayment(bO, cu)]) | |
1179 | 1179 | if ((fy == fy)) | |
1180 | 1180 | then ck | |
1181 | 1181 | else throw("Strict value is not equal to itself.") | |
1182 | 1182 | } | |
1183 | 1183 | } | |
1184 | 1184 | ||
1185 | 1185 | ||
1186 | 1186 | ||
1187 | 1187 | @Callable(do) | |
1188 | 1188 | func unstakeAndGet (bK) = { | |
1189 | 1189 | let fz = if ((size(do.payments) != 0)) | |
1190 | 1190 | then throw("No pmnts expd") | |
1191 | 1191 | else true | |
1192 | 1192 | if ((fz == fz)) | |
1193 | 1193 | then { | |
1194 | 1194 | let bA = aD() | |
1195 | 1195 | let fA = aH() | |
1196 | 1196 | let dM = fromBase58String(bA[q]) | |
1197 | 1197 | let fB = valueOrErrorMessage(addressFromString(fA[x]), "Wr st addr") | |
1198 | 1198 | let fC = invoke(fB, "unstake", [toBase58String(dM), bK], nil) | |
1199 | 1199 | if ((fC == fC)) | |
1200 | 1200 | then { | |
1201 | 1201 | let cG = bM(toBase58String(do.transactionId), toBase58String(dM), bK, do.caller) | |
1202 | 1202 | let bW = parseIntValue(cG._9) | |
1203 | 1203 | let ck = cG._10 | |
1204 | 1204 | let fD = if (if (aA()) | |
1205 | 1205 | then true | |
1206 | 1206 | else (bW == n)) | |
1207 | 1207 | then throw(("Blocked: " + toString(bW))) | |
1208 | 1208 | else true | |
1209 | 1209 | if ((fD == fD)) | |
1210 | 1210 | then { | |
1211 | 1211 | let fE = invoke(ay, "burn", [bK], [AttachedPayment(dM, bK)]) | |
1212 | 1212 | if ((fE == fE)) | |
1213 | 1213 | then ck | |
1214 | 1214 | else throw("Strict value is not equal to itself.") | |
1215 | 1215 | } | |
1216 | 1216 | else throw("Strict value is not equal to itself.") | |
1217 | 1217 | } | |
1218 | 1218 | else throw("Strict value is not equal to itself.") | |
1219 | 1219 | } | |
1220 | 1220 | else throw("Strict value is not equal to itself.") | |
1221 | 1221 | } | |
1222 | 1222 | ||
1223 | 1223 | ||
1224 | 1224 | ||
1225 | 1225 | @Callable(do) | |
1226 | 1226 | func unstakeAndGetOneTkn (fF,dO,dP) = { | |
1227 | 1227 | let fz = if ((size(do.payments) != 0)) | |
1228 | 1228 | then throw("No pmnts expd") | |
1229 | 1229 | else true | |
1230 | 1230 | if ((fz == fz)) | |
1231 | 1231 | then { | |
1232 | 1232 | let bA = aD() | |
1233 | 1233 | let fA = aH() | |
1234 | 1234 | let dM = fromBase58String(bA[q]) | |
1235 | 1235 | let fB = valueOrErrorMessage(addressFromString(fA[x]), "Wr st addr") | |
1236 | 1236 | let fC = invoke(fB, "unstake", [toBase58String(dM), fF], nil) | |
1237 | 1237 | if ((fC == fC)) | |
1238 | 1238 | then { | |
1239 | 1239 | let fG = dN(dO, dP, [AttachedPayment(dM, fF)], do.caller, do.originCaller, do.transactionId) | |
1240 | 1240 | let ck = fG._1 | |
1241 | 1241 | let dY = fG._2 | |
1242 | 1242 | $Tuple2(ck, dY) | |
1243 | 1243 | } | |
1244 | 1244 | else throw("Strict value is not equal to itself.") | |
1245 | 1245 | } | |
1246 | 1246 | else throw("Strict value is not equal to itself.") | |
1247 | 1247 | } | |
1248 | 1248 | ||
1249 | 1249 | ||
1250 | 1250 | ||
1251 | 1251 | @Callable(do) | |
1252 | 1252 | func activate (fH,fI) = if ((toString(do.caller) != toString(ay))) | |
1253 | 1253 | then throw("denied") | |
1254 | 1254 | else $Tuple2([StringEntry(X(), fH), StringEntry(Y(), fI)], "success") | |
1255 | 1255 | ||
1256 | 1256 | ||
1257 | 1257 | ||
1258 | 1258 | @Callable(do) | |
1259 | 1259 | func setS (fJ,fD) = if ((toString(do.caller) != au(this, aa()))) | |
1260 | 1260 | then ei | |
1261 | 1261 | else [StringEntry(fJ, fD)] | |
1262 | 1262 | ||
1263 | 1263 | ||
1264 | 1264 | ||
1265 | 1265 | @Callable(do) | |
1266 | 1266 | func setI (fJ,fD) = if ((toString(do.caller) != au(this, aa()))) | |
1267 | 1267 | then ei | |
1268 | 1268 | else [IntegerEntry(fJ, fD)] | |
1269 | 1269 | ||
1270 | 1270 | ||
1271 | 1271 | ||
1272 | 1272 | @Callable(do) | |
1273 | 1273 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aD()) | |
1274 | 1274 | ||
1275 | 1275 | ||
1276 | 1276 | ||
1277 | 1277 | @Callable(do) | |
1278 | 1278 | func getAccBalanceWrapperREADONLY (bc) = $Tuple2(nil, bb(bc)) | |
1279 | 1279 | ||
1280 | 1280 | ||
1281 | 1281 | ||
1282 | 1282 | @Callable(do) | |
1283 | 1283 | func calcPricesWrapperREADONLY (bu,bv,bz) = { | |
1284 | 1284 | let fK = by(bu, bv, bz) | |
1285 | 1285 | $Tuple2(nil, [toString(fK[0]), toString(fK[1]), toString(fK[2])]) | |
1286 | 1286 | } | |
1287 | 1287 | ||
1288 | 1288 | ||
1289 | 1289 | ||
1290 | 1290 | @Callable(do) | |
1291 | 1291 | func fromX18WrapperREADONLY (F,fL) = $Tuple2(nil, E(parseBigIntValue(F), fL)) | |
1292 | 1292 | ||
1293 | 1293 | ||
1294 | 1294 | ||
1295 | 1295 | @Callable(do) | |
1296 | 1296 | func toX18WrapperREADONLY (C,D) = $Tuple2(nil, toString(B(C, D))) | |
1297 | 1297 | ||
1298 | 1298 | ||
1299 | 1299 | ||
1300 | 1300 | @Callable(do) | |
1301 | 1301 | func calcPriceBigIntWrapperREADONLY (be,bf) = $Tuple2(nil, toString(bd(parseBigIntValue(be), parseBigIntValue(bf)))) | |
1302 | 1302 | ||
1303 | 1303 | ||
1304 | 1304 | ||
1305 | 1305 | @Callable(do) | |
1306 | 1306 | 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, "")) | |
1307 | 1307 | ||
1308 | 1308 | ||
1309 | 1309 | ||
1310 | 1310 | @Callable(do) | |
1311 | 1311 | func estimateGetOperationWrapperREADONLY (bN,fN,bP,fM) = { | |
1312 | 1312 | let cG = bM(bN, fN, bP, addressFromStringValue(fM)) | |
1313 | 1313 | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1314 | 1314 | } | |
1315 | 1315 | ||
1316 | 1316 | ||
1317 | 1317 | ||
1318 | 1318 | @Callable(do) | |
1319 | 1319 | func getFeeREADONLY () = $Tuple2(nil, ac) | |
1320 | 1320 | ||
1321 | 1321 | ||
1322 | 1322 | @Verifier(fO) | |
1323 | 1323 | func fP () = { | |
1324 | 1324 | let fQ = { | |
1325 | 1325 | let as = ef() | |
1326 | 1326 | if ($isInstanceOf(as, "ByteVector")) | |
1327 | 1327 | then { | |
1328 | 1328 | let ek = as | |
1329 | 1329 | ek | |
1330 | 1330 | } | |
1331 | 1331 | else if ($isInstanceOf(as, "Unit")) | |
1332 | 1332 | then fO.senderPublicKey | |
1333 | 1333 | else throw("Match error") | |
1334 | 1334 | } | |
1335 | 1335 | let as = fO | |
1336 | 1336 | if ($isInstanceOf(as, "Order")) | |
1337 | 1337 | then { | |
1338 | 1338 | let db = as | |
1339 | 1339 | let fR = aB() | |
1340 | 1340 | let fS = da(db) | |
1341 | 1341 | let fT = sigVerify(db.bodyBytes, db.proofs[0], db.senderPublicKey) | |
1342 | 1342 | let fU = sigVerify(db.bodyBytes, db.proofs[1], fR) | |
1343 | 1343 | if (if (if (fS) | |
1344 | 1344 | then fT | |
1345 | 1345 | else false) | |
1346 | 1346 | then fU | |
1347 | 1347 | else false) | |
1348 | 1348 | then true | |
1349 | 1349 | else an(fS, fT, fU) | |
1350 | 1350 | } | |
1351 | 1351 | else if ($isInstanceOf(as, "SetScriptTransaction")) | |
1352 | 1352 | then { | |
1353 | 1353 | let eg = as | |
1354 | 1354 | let fV = blake2b256(value(eg.script)) | |
1355 | 1355 | let fW = fromBase64String(value(getString(ay, al()))) | |
1356 | 1356 | let fX = scriptHash(this) | |
1357 | 1357 | if (if ((fW == fV)) | |
1358 | 1358 | then (fX != fV) | |
1359 | 1359 | else false) | |
1360 | 1360 | then true | |
1361 | 1361 | else sigVerify(fO.bodyBytes, fO.proofs[0], fQ) | |
1362 | 1362 | } | |
1363 | 1363 | else sigVerify(fO.bodyBytes, fO.proofs[0], fQ) | |
1364 | 1364 | } | |
1365 | 1365 |
github/deemru/w8io/169f3d6 158.35 ms ◑