tx · Ea32eC29rPLKgGsdNAzU1pGQqq6z88yrJ6Sj8AMF8mYZ 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01400000 Waves 2023.05.02 09:54 [2559810] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "Ea32eC29rPLKgGsdNAzU1pGQqq6z88yrJ6Sj8AMF8mYZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1683010501243, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "555ogRiZZrAULPg4v6zSJTDUVy1aod3VnqcXYFV67EFoDojS8tcZJ7wCrdtbfMzBNAysfRLmd7cHSYx7mfGNQBDX" ], "script": "base64:BgKdEAgCEgkKBwgICBgBCAESABIICgYICAgICAgSAwoBGBIDCgEIEgASABIECgIICCIQY29udHJhY3RGaWxlbmFtZSIDU0VQIgx3YXZlc0Fzc2V0SWQiEWludmFsaWRQcmljZUFzc2V0Igd3cmFwRXJyIgNtc2ciCHRocm93RXJyIgd0aHJvd1BEIhR0aHJvd0NyZWF0ZU5vdENhbGxlZCIRdGhyb3dZb3VOb3RJc3N1ZXIiD3Rocm93UG9vbEV4aXN0cyIVdGhyb3dBc3NldE5vdFZlcmlmaWVkIhZ0aHJvd0ludmFsaWRQcmljZUFzc2V0IhR0aHJvd0ludmFsaWRGZWVBc3NldCIXdGhyb3dJbnZhbGlkQW1vdW50QXNzZXQiEnRocm93SW52YWxpZFN0YXR1cyIfdGhyb3dDYW5BY3RpdmF0ZU9ubHlQZW5kaW5nUG9vbCIddGhyb3dGYWN0b3J5UmV0dXJuZWROb3RTdHJpbmciHHRocm93SW52YWxpZFByaWNlQXNzZXRBbW91bnQiD3Rocm93SW52YWxpZEZlZSIVdGhyb3dJbnZhbGlkQXNzZXRQYWlyIh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"succeeded", "spentComplexity": 0 } View: original | compacted Prev: GkjZUyBJNWL3LJGd6TD1hgVXrQVg28kkgqhX5TA2c9g Next: 5LWRgKxspmWRZ5VApBsmk7A3vWPYYNiVPVnfrbFocqcg Diff:
Old | New | Differences | |
---|---|---|---|
262 | 262 | else u() | |
263 | 263 | if ((aS == aS)) | |
264 | 264 | then { | |
265 | - | let aT = if (if (containsElement(aR, aN)) | |
266 | - | then aq(aK) | |
267 | - | else false) | |
265 | + | let aT = if (if (ak(al)) | |
266 | + | then true | |
267 | + | else if (containsElement(aR, aN)) | |
268 | + | then aq(aK) | |
269 | + | else false) | |
268 | 270 | then $Tuple4(aK, aG.amount, aN, aH.amount) | |
269 | 271 | else if (if (containsElement(aR, aK)) | |
270 | 272 | then aq(aN) | |
295 | 297 | then true | |
296 | 298 | else k(), if (!(bc)) | |
297 | 299 | then true | |
298 | - | else k(), if ((getString(Q()) == aD)) | |
300 | + | else k(), if (if (ak(al)) | |
301 | + | then true | |
302 | + | else (getString(Q()) == aD)) | |
299 | 303 | then true | |
300 | 304 | else n(), if (if (ak(al)) | |
301 | 305 | then true | |
305 | 309 | then true | |
306 | 310 | else (aV >= aX)) | |
307 | 311 | then true | |
308 | - | else s(), if ((aI.amount == getInteger(R()))) | |
312 | + | else s(), if (if (ak(al)) | |
313 | + | then true | |
314 | + | else (aI.amount == getInteger(R()))) | |
309 | 315 | then true | |
310 | 316 | else t()] | |
311 | 317 | if ((be == be)) | |
312 | 318 | then { | |
313 | - | let bf = invoke(bb, "burn", nil, [AttachedPayment(fromBase58String(aD), aI.amount)]) | |
314 | - | if ((bf == bf)) | |
319 | + | let bf = 3 | |
320 | + | let bg = if ((size(al.payments) >= bf)) | |
321 | + | then invoke(bb, "burn", nil, [AttachedPayment(fromBase58String(aD), aI.amount)]) | |
322 | + | else unit | |
323 | + | if ((bg == bg)) | |
315 | 324 | then [BooleanEntry(L(z, A), true), StringEntry(M(z, A), toString(al.caller)), IntegerEntry(F(), ba), StringEntry(E(z, A), (toString(ba) + G)), IntegerEntry(P(z, A), height), StringEntry(y(z, A), H), IntegerEntry(N(z, A), aU), IntegerEntry(O(z, A), aV)] | |
316 | 325 | else throw("Strict value is not equal to itself.") | |
317 | 326 | } | |
323 | 332 | ||
324 | 333 | ||
325 | 334 | @Callable(al) | |
326 | - | func activate ( | |
335 | + | func activate (bh,z,bi,A,bj,bk) = { | |
327 | 336 | let be = [ao(al), if (ag(z, A)) | |
328 | 337 | then true | |
329 | 338 | else i(), if ((value(getString(y(z, A))) == H)) | |
331 | 340 | else q()] | |
332 | 341 | if ((be == be)) | |
333 | 342 | then { | |
334 | - | let | |
335 | - | if (( | |
343 | + | let bl = invoke(ab, "activateNewPool", [bh, z, A, ((bi + bj) + "LP"), (((bi + "/") + bj) + " pool liquidity provider token"), 0, "VLTPOOL", bk], nil) | |
344 | + | if ((bl == bl)) | |
336 | 345 | then { | |
337 | - | let | |
338 | - | let Z = | |
346 | + | let bm = { | |
347 | + | let Z = bl | |
339 | 348 | if ($isInstanceOf(Z, "String")) | |
340 | 349 | then { | |
341 | 350 | let au = Z | |
343 | 352 | } | |
344 | 353 | else r() | |
345 | 354 | } | |
346 | - | if (( | |
355 | + | if ((bm == bm)) | |
347 | 356 | then { | |
348 | - | let | |
349 | - | if (( | |
357 | + | let bn = assetBalance(this, fromBase58String(bm)) | |
358 | + | if ((bn == bn)) | |
350 | 359 | then { | |
351 | - | let | |
360 | + | let bo = invoke(addressFromStringValue(bh), "put", [0, false], [AttachedPayment(if ((z == "WAVES")) | |
352 | 361 | then unit | |
353 | 362 | else fromBase58String(z), value(getInteger(N(z, A)))), AttachedPayment(if ((A == "WAVES")) | |
354 | 363 | then unit | |
355 | 364 | else fromBase58String(A), value(getInteger(O(z, A))))]) | |
356 | - | if (( | |
365 | + | if ((bo == bo)) | |
357 | 366 | then { | |
358 | - | let | |
359 | - | if (( | |
367 | + | let bp = assetBalance(this, fromBase58String(bm)) | |
368 | + | if ((bp == bp)) | |
360 | 369 | then { | |
361 | - | let | |
362 | - | let | |
363 | - | if (( | |
364 | - | then [StringEntry(y(z, A), J), ScriptTransfer( | |
370 | + | let bq = value(addressFromString(value(getString(M(z, A))))) | |
371 | + | let br = invoke(af, "approve", [z, A], nil) | |
372 | + | if ((br == br)) | |
373 | + | then [StringEntry(y(z, A), J), ScriptTransfer(bq, (bp - bn), fromBase58String(bm))] | |
365 | 374 | else throw("Strict value is not equal to itself.") | |
366 | 375 | } | |
367 | 376 | else throw("Strict value is not equal to itself.") | |
380 | 389 | ||
381 | 390 | ||
382 | 391 | @Callable(al) | |
383 | - | func setAdmins ( | |
392 | + | func setAdmins (bs) = { | |
384 | 393 | let aF = an(al) | |
385 | 394 | if ((aF == aF)) | |
386 | - | then [StringEntry(x(), makeString( | |
395 | + | then [StringEntry(x(), makeString(bs, b))] | |
387 | 396 | else throw("Strict value is not equal to itself.") | |
388 | 397 | } | |
389 | 398 | ||
390 | 399 | ||
391 | 400 | ||
392 | 401 | @Callable(al) | |
393 | - | func setManager ( | |
402 | + | func setManager (bt) = { | |
394 | 403 | let aF = an(al) | |
395 | 404 | if ((aF == aF)) | |
396 | 405 | then { | |
397 | - | let | |
398 | - | if (( | |
399 | - | then [StringEntry(w(), | |
406 | + | let bu = fromBase58String(bt) | |
407 | + | if ((bu == bu)) | |
408 | + | then [StringEntry(w(), bt)] | |
400 | 409 | else throw("Strict value is not equal to itself.") | |
401 | 410 | } | |
402 | 411 | else throw("Strict value is not equal to itself.") | |
406 | 415 | ||
407 | 416 | @Callable(al) | |
408 | 417 | func confirmManager () = { | |
409 | - | let | |
410 | - | let | |
418 | + | let bv = aj() | |
419 | + | let bw = if (isDefined(bv)) | |
411 | 420 | then true | |
412 | 421 | else throw("No pending manager") | |
413 | - | if (( | |
422 | + | if ((bw == bw)) | |
414 | 423 | then { | |
415 | - | let | |
424 | + | let bx = if ((al.callerPublicKey == value(bv))) | |
416 | 425 | then true | |
417 | 426 | else throw("You are not pending manager") | |
418 | - | if (( | |
419 | - | then [StringEntry(v(), toBase58String(value( | |
427 | + | if ((bx == bx)) | |
428 | + | then [StringEntry(v(), toBase58String(value(bv))), DeleteEntry(w())] | |
420 | 429 | else throw("Strict value is not equal to itself.") | |
421 | 430 | } | |
422 | 431 | else throw("Strict value is not equal to itself.") | |
444 | 453 | } | |
445 | 454 | ||
446 | 455 | ||
447 | - | @Verifier( | |
448 | - | func | |
449 | - | let | |
456 | + | @Verifier(by) | |
457 | + | func bz () = { | |
458 | + | let bA = { | |
450 | 459 | let Z = ai() | |
451 | 460 | if ($isInstanceOf(Z, "ByteVector")) | |
452 | 461 | then { | |
454 | 463 | am | |
455 | 464 | } | |
456 | 465 | else if ($isInstanceOf(Z, "Unit")) | |
457 | - | then | |
466 | + | then by.senderPublicKey | |
458 | 467 | else throw("Match error") | |
459 | 468 | } | |
460 | - | sigVerify( | |
469 | + | sigVerify(by.bodyBytes, by.proofs[0], bA) | |
461 | 470 | } | |
462 | 471 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "user_pools.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = "WAVES" | |
9 | 9 | ||
10 | 10 | let d = "Invalid price asset" | |
11 | 11 | ||
12 | 12 | func e (f) = makeString([a, ": ", f], "") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g (f) = throw(e(f)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h () = g("Permission denied") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i () = g("Create is not called for assets pair") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func j () = g("You are not amountAsset issuer") | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func k () = g("Pool with such assets already exists") | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func l () = g("Asset is not verified") | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m () = g(d) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func n () = g("Invalid fee asset") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func o () = g("Invalid amount asset attached") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func p () = g("Invalid status") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func q () = g("Can activate pool only in 'pending' status") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func r () = g("FactoryV2 returned not string") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s () = g("invalid price asset amount") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func t () = g("invalid fee") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func u () = g("invalid asset pair") | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func v () = makeString(["%s", "managerPublicKey"], b) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func w () = makeString(["%s", "pendingManagerPublicKey"], b) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func x () = makeString(["%s", "adminPubKeys"], b) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func y (z,A) = makeString(["%s%s%s", "status", z, A], b) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func B () = makeString(["%s", "factoryContract"], b) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func C () = makeString(["%s", "assetsStoreContract"], b) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func D () = makeString(["%s", "emissionContract"], b) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func E (z,A) = makeString(["%s%s%s", "suffix", z, A], b) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func F () = makeString(["%s", "lastIndex"], b) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | let G = "u" | |
88 | 88 | ||
89 | 89 | let H = "pending" | |
90 | 90 | ||
91 | 91 | let I = "declined" | |
92 | 92 | ||
93 | 93 | let J = "active" | |
94 | 94 | ||
95 | 95 | let K = [H, I, J] | |
96 | 96 | ||
97 | 97 | func L (z,A) = makeString(["%s%s%s", "createCalled", z, A], b) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func M (z,A) = makeString(["%s%s%s", "createCaller", z, A], b) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func N (z,A) = makeString(["%s%s%s", "amountAssetAmount", z, A], b) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func O (z,A) = makeString(["%s%s%s", "priceAssetAmount", z, A], b) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func P (z,A) = makeString(["%s%s%s", "height", z, A], b) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func Q () = makeString(["%s", "feeAssetId"], b) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func R () = makeString(["%s", "feeAmount"], b) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func S () = makeString(["%s", "amountAssetMinAmount"], b) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func T () = makeString(["%s", "priceAssetsMinAmount"], b) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func U () = makeString(["%s", "priceAssets"], b) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func V (W) = valueOrErrorMessage(getString(this, W), (W + " is not defined")) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func X (Y) = { | |
131 | 131 | let Z = Y | |
132 | 132 | if ($isInstanceOf(Z, "String")) | |
133 | 133 | then { | |
134 | 134 | let aa = Z | |
135 | 135 | if ((size(aa) == 0)) | |
136 | 136 | then nil | |
137 | 137 | else split(aa, b) | |
138 | 138 | } | |
139 | 139 | else if ($isInstanceOf(Z, "Unit")) | |
140 | 140 | then nil | |
141 | 141 | else throw("Match error") | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | let ab = addressFromStringValue(V(B())) | |
146 | 146 | ||
147 | 147 | let ac = makeString(["%s", "votingEmissionContract"], b) | |
148 | 148 | ||
149 | 149 | let ad = addressFromStringValue(valueOrErrorMessage(getString(ab, ac), e("voting emission contract address is required"))) | |
150 | 150 | ||
151 | 151 | let ae = makeString(["%s", "votingEmissionCandidateContract"], b) | |
152 | 152 | ||
153 | 153 | let af = addressFromStringValue(valueOrErrorMessage(getString(ad, ae), e("voting emission candidate contract address is required"))) | |
154 | 154 | ||
155 | 155 | func ag (z,A) = valueOrElse(getBoolean(L(z, A)), false) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ah (z,A) = if (ag(z, A)) | |
159 | 159 | then true | |
160 | 160 | else i() | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ai () = { | |
164 | 164 | let Z = getString(v()) | |
165 | 165 | if ($isInstanceOf(Z, "String")) | |
166 | 166 | then { | |
167 | 167 | let aa = Z | |
168 | 168 | fromBase58String(aa) | |
169 | 169 | } | |
170 | 170 | else if ($isInstanceOf(Z, "Unit")) | |
171 | 171 | then unit | |
172 | 172 | else throw("Match error") | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func aj () = { | |
177 | 177 | let Z = getString(w()) | |
178 | 178 | if ($isInstanceOf(Z, "String")) | |
179 | 179 | then { | |
180 | 180 | let aa = Z | |
181 | 181 | fromBase58String(aa) | |
182 | 182 | } | |
183 | 183 | else if ($isInstanceOf(Z, "Unit")) | |
184 | 184 | then unit | |
185 | 185 | else throw("Match error") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func ak (al) = { | |
190 | 190 | let Z = ai() | |
191 | 191 | if ($isInstanceOf(Z, "ByteVector")) | |
192 | 192 | then { | |
193 | 193 | let am = Z | |
194 | 194 | (al.callerPublicKey == am) | |
195 | 195 | } | |
196 | 196 | else if ($isInstanceOf(Z, "Unit")) | |
197 | 197 | then (al.caller == this) | |
198 | 198 | else throw("Match error") | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func an (al) = if (ak(al)) | |
203 | 203 | then true | |
204 | 204 | else h() | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func ao (al) = { | |
208 | 208 | let ap = X(getString(x())) | |
209 | 209 | if (containsElement(ap, toBase58String(al.callerPublicKey))) | |
210 | 210 | then true | |
211 | 211 | else an(al) | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func aq (ar) = (valueOrElse(getInteger(addressFromStringValue(V(C())), (("status_<" + ar) + ">")), 0) == 2) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func as (at) = { | |
219 | 219 | let Z = at.assetId | |
220 | 220 | if ($isInstanceOf(Z, "ByteVector")) | |
221 | 221 | then { | |
222 | 222 | let au = Z | |
223 | 223 | let av = value(assetInfo(au)) | |
224 | 224 | $Tuple2(toBase58String(au), av) | |
225 | 225 | } | |
226 | 226 | else if ($isInstanceOf(Z, "Unit")) | |
227 | 227 | then $Tuple2(c, unit) | |
228 | 228 | else throw("Match error") | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aw (ax) = containsElement(K, ax) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(al) | |
236 | 236 | func constructor (ay,az,aA,aB,aC,aD,aE) = { | |
237 | 237 | let aF = an(al) | |
238 | 238 | if ((aF == aF)) | |
239 | 239 | then [StringEntry(B(), ay), StringEntry(C(), az), StringEntry(D(), aA), StringEntry(T(), makeString(aB, b)), IntegerEntry(S(), aC), StringEntry(Q(), aD), IntegerEntry(R(), aE)] | |
240 | 240 | else throw("Strict value is not equal to itself.") | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(al) | |
246 | 246 | func create () = { | |
247 | 247 | let aG = value(al.payments[0]) | |
248 | 248 | let aH = value(al.payments[1]) | |
249 | 249 | let aI = value(al.payments[2]) | |
250 | 250 | let aJ = as(aG) | |
251 | 251 | let aK = aJ._1 | |
252 | 252 | let aL = aJ._2 | |
253 | 253 | let aM = as(aH) | |
254 | 254 | let aN = aM._1 | |
255 | 255 | let aO = aM._2 | |
256 | 256 | let aP = as(aI) | |
257 | 257 | let aD = aP._1 | |
258 | 258 | let aQ = aP._2 | |
259 | 259 | let aR = X(getString(ab, U())) | |
260 | 260 | let aS = if ((aK != aN)) | |
261 | 261 | then true | |
262 | 262 | else u() | |
263 | 263 | if ((aS == aS)) | |
264 | 264 | then { | |
265 | - | let aT = if (if (containsElement(aR, aN)) | |
266 | - | then aq(aK) | |
267 | - | else false) | |
265 | + | let aT = if (if (ak(al)) | |
266 | + | then true | |
267 | + | else if (containsElement(aR, aN)) | |
268 | + | then aq(aK) | |
269 | + | else false) | |
268 | 270 | then $Tuple4(aK, aG.amount, aN, aH.amount) | |
269 | 271 | else if (if (containsElement(aR, aK)) | |
270 | 272 | then aq(aN) | |
271 | 273 | else false) | |
272 | 274 | then $Tuple4(aN, aH.amount, aK, aG.amount) | |
273 | 275 | else u() | |
274 | 276 | let z = aT._1 | |
275 | 277 | let aU = aT._2 | |
276 | 278 | let A = aT._3 | |
277 | 279 | let aV = aT._4 | |
278 | 280 | let aW = 1 | |
279 | 281 | let aX = if (ak(al)) | |
280 | 282 | then aW | |
281 | 283 | else { | |
282 | 284 | let aY = valueOrErrorMessage(indexOf(aR, A), d) | |
283 | 285 | value(parseInt(X(getString(T()))[aY])) | |
284 | 286 | } | |
285 | 287 | let aZ = valueOrElse(getInteger(F()), 0) | |
286 | 288 | let ba = (aZ + 1) | |
287 | 289 | let bb = addressFromStringValue(V(D())) | |
288 | 290 | let bc = { | |
289 | 291 | let bd = invoke(ab, "poolExistsREADONLY", [z, A], nil) | |
290 | 292 | if ($isInstanceOf(bd, "Boolean")) | |
291 | 293 | then bd | |
292 | 294 | else throw(($getType(bd) + " couldn't be cast to Boolean")) | |
293 | 295 | } | |
294 | 296 | let be = [if (!(ag(z, A))) | |
295 | 297 | then true | |
296 | 298 | else k(), if (!(bc)) | |
297 | 299 | then true | |
298 | - | else k(), if ((getString(Q()) == aD)) | |
300 | + | else k(), if (if (ak(al)) | |
301 | + | then true | |
302 | + | else (getString(Q()) == aD)) | |
299 | 303 | then true | |
300 | 304 | else n(), if (if (ak(al)) | |
301 | 305 | then true | |
302 | 306 | else (aU >= getIntegerValue(S()))) | |
303 | 307 | then true | |
304 | 308 | else o(), if (if (ak(al)) | |
305 | 309 | then true | |
306 | 310 | else (aV >= aX)) | |
307 | 311 | then true | |
308 | - | else s(), if ((aI.amount == getInteger(R()))) | |
312 | + | else s(), if (if (ak(al)) | |
313 | + | then true | |
314 | + | else (aI.amount == getInteger(R()))) | |
309 | 315 | then true | |
310 | 316 | else t()] | |
311 | 317 | if ((be == be)) | |
312 | 318 | then { | |
313 | - | let bf = invoke(bb, "burn", nil, [AttachedPayment(fromBase58String(aD), aI.amount)]) | |
314 | - | if ((bf == bf)) | |
319 | + | let bf = 3 | |
320 | + | let bg = if ((size(al.payments) >= bf)) | |
321 | + | then invoke(bb, "burn", nil, [AttachedPayment(fromBase58String(aD), aI.amount)]) | |
322 | + | else unit | |
323 | + | if ((bg == bg)) | |
315 | 324 | then [BooleanEntry(L(z, A), true), StringEntry(M(z, A), toString(al.caller)), IntegerEntry(F(), ba), StringEntry(E(z, A), (toString(ba) + G)), IntegerEntry(P(z, A), height), StringEntry(y(z, A), H), IntegerEntry(N(z, A), aU), IntegerEntry(O(z, A), aV)] | |
316 | 325 | else throw("Strict value is not equal to itself.") | |
317 | 326 | } | |
318 | 327 | else throw("Strict value is not equal to itself.") | |
319 | 328 | } | |
320 | 329 | else throw("Strict value is not equal to itself.") | |
321 | 330 | } | |
322 | 331 | ||
323 | 332 | ||
324 | 333 | ||
325 | 334 | @Callable(al) | |
326 | - | func activate ( | |
335 | + | func activate (bh,z,bi,A,bj,bk) = { | |
327 | 336 | let be = [ao(al), if (ag(z, A)) | |
328 | 337 | then true | |
329 | 338 | else i(), if ((value(getString(y(z, A))) == H)) | |
330 | 339 | then true | |
331 | 340 | else q()] | |
332 | 341 | if ((be == be)) | |
333 | 342 | then { | |
334 | - | let | |
335 | - | if (( | |
343 | + | let bl = invoke(ab, "activateNewPool", [bh, z, A, ((bi + bj) + "LP"), (((bi + "/") + bj) + " pool liquidity provider token"), 0, "VLTPOOL", bk], nil) | |
344 | + | if ((bl == bl)) | |
336 | 345 | then { | |
337 | - | let | |
338 | - | let Z = | |
346 | + | let bm = { | |
347 | + | let Z = bl | |
339 | 348 | if ($isInstanceOf(Z, "String")) | |
340 | 349 | then { | |
341 | 350 | let au = Z | |
342 | 351 | au | |
343 | 352 | } | |
344 | 353 | else r() | |
345 | 354 | } | |
346 | - | if (( | |
355 | + | if ((bm == bm)) | |
347 | 356 | then { | |
348 | - | let | |
349 | - | if (( | |
357 | + | let bn = assetBalance(this, fromBase58String(bm)) | |
358 | + | if ((bn == bn)) | |
350 | 359 | then { | |
351 | - | let | |
360 | + | let bo = invoke(addressFromStringValue(bh), "put", [0, false], [AttachedPayment(if ((z == "WAVES")) | |
352 | 361 | then unit | |
353 | 362 | else fromBase58String(z), value(getInteger(N(z, A)))), AttachedPayment(if ((A == "WAVES")) | |
354 | 363 | then unit | |
355 | 364 | else fromBase58String(A), value(getInteger(O(z, A))))]) | |
356 | - | if (( | |
365 | + | if ((bo == bo)) | |
357 | 366 | then { | |
358 | - | let | |
359 | - | if (( | |
367 | + | let bp = assetBalance(this, fromBase58String(bm)) | |
368 | + | if ((bp == bp)) | |
360 | 369 | then { | |
361 | - | let | |
362 | - | let | |
363 | - | if (( | |
364 | - | then [StringEntry(y(z, A), J), ScriptTransfer( | |
370 | + | let bq = value(addressFromString(value(getString(M(z, A))))) | |
371 | + | let br = invoke(af, "approve", [z, A], nil) | |
372 | + | if ((br == br)) | |
373 | + | then [StringEntry(y(z, A), J), ScriptTransfer(bq, (bp - bn), fromBase58String(bm))] | |
365 | 374 | else throw("Strict value is not equal to itself.") | |
366 | 375 | } | |
367 | 376 | else throw("Strict value is not equal to itself.") | |
368 | 377 | } | |
369 | 378 | else throw("Strict value is not equal to itself.") | |
370 | 379 | } | |
371 | 380 | else throw("Strict value is not equal to itself.") | |
372 | 381 | } | |
373 | 382 | else throw("Strict value is not equal to itself.") | |
374 | 383 | } | |
375 | 384 | else throw("Strict value is not equal to itself.") | |
376 | 385 | } | |
377 | 386 | else throw("Strict value is not equal to itself.") | |
378 | 387 | } | |
379 | 388 | ||
380 | 389 | ||
381 | 390 | ||
382 | 391 | @Callable(al) | |
383 | - | func setAdmins ( | |
392 | + | func setAdmins (bs) = { | |
384 | 393 | let aF = an(al) | |
385 | 394 | if ((aF == aF)) | |
386 | - | then [StringEntry(x(), makeString( | |
395 | + | then [StringEntry(x(), makeString(bs, b))] | |
387 | 396 | else throw("Strict value is not equal to itself.") | |
388 | 397 | } | |
389 | 398 | ||
390 | 399 | ||
391 | 400 | ||
392 | 401 | @Callable(al) | |
393 | - | func setManager ( | |
402 | + | func setManager (bt) = { | |
394 | 403 | let aF = an(al) | |
395 | 404 | if ((aF == aF)) | |
396 | 405 | then { | |
397 | - | let | |
398 | - | if (( | |
399 | - | then [StringEntry(w(), | |
406 | + | let bu = fromBase58String(bt) | |
407 | + | if ((bu == bu)) | |
408 | + | then [StringEntry(w(), bt)] | |
400 | 409 | else throw("Strict value is not equal to itself.") | |
401 | 410 | } | |
402 | 411 | else throw("Strict value is not equal to itself.") | |
403 | 412 | } | |
404 | 413 | ||
405 | 414 | ||
406 | 415 | ||
407 | 416 | @Callable(al) | |
408 | 417 | func confirmManager () = { | |
409 | - | let | |
410 | - | let | |
418 | + | let bv = aj() | |
419 | + | let bw = if (isDefined(bv)) | |
411 | 420 | then true | |
412 | 421 | else throw("No pending manager") | |
413 | - | if (( | |
422 | + | if ((bw == bw)) | |
414 | 423 | then { | |
415 | - | let | |
424 | + | let bx = if ((al.callerPublicKey == value(bv))) | |
416 | 425 | then true | |
417 | 426 | else throw("You are not pending manager") | |
418 | - | if (( | |
419 | - | then [StringEntry(v(), toBase58String(value( | |
427 | + | if ((bx == bx)) | |
428 | + | then [StringEntry(v(), toBase58String(value(bv))), DeleteEntry(w())] | |
420 | 429 | else throw("Strict value is not equal to itself.") | |
421 | 430 | } | |
422 | 431 | else throw("Strict value is not equal to itself.") | |
423 | 432 | } | |
424 | 433 | ||
425 | 434 | ||
426 | 435 | ||
427 | 436 | @Callable(al) | |
428 | 437 | func priceAssetsREADONLY () = $Tuple2(nil, X(getString(U()))) | |
429 | 438 | ||
430 | 439 | ||
431 | 440 | ||
432 | 441 | @Callable(al) | |
433 | 442 | func statusREADONLY (z,A) = { | |
434 | 443 | let ax = { | |
435 | 444 | let Z = getString(y(z, A)) | |
436 | 445 | if ($isInstanceOf(Z, "String")) | |
437 | 446 | then { | |
438 | 447 | let aa = Z | |
439 | 448 | aa | |
440 | 449 | } | |
441 | 450 | else unit | |
442 | 451 | } | |
443 | 452 | $Tuple2(nil, ax) | |
444 | 453 | } | |
445 | 454 | ||
446 | 455 | ||
447 | - | @Verifier( | |
448 | - | func | |
449 | - | let | |
456 | + | @Verifier(by) | |
457 | + | func bz () = { | |
458 | + | let bA = { | |
450 | 459 | let Z = ai() | |
451 | 460 | if ($isInstanceOf(Z, "ByteVector")) | |
452 | 461 | then { | |
453 | 462 | let am = Z | |
454 | 463 | am | |
455 | 464 | } | |
456 | 465 | else if ($isInstanceOf(Z, "Unit")) | |
457 | - | then | |
466 | + | then by.senderPublicKey | |
458 | 467 | else throw("Match error") | |
459 | 468 | } | |
460 | - | sigVerify( | |
469 | + | sigVerify(by.bodyBytes, by.proofs[0], bA) | |
461 | 470 | } | |
462 | 471 |
github/deemru/w8io/169f3d6 65.48 ms ◑