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