tx · At5ie36JTGMoKjY9yft8zi7aBGFe55GmZy8NV4nTfMJ8 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01600000 Waves 2023.03.10 12:12 [2483781] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "At5ie36JTGMoKjY9yft8zi7aBGFe55GmZy8NV4nTfMJ8", "fee": 1600000, "feeAssetId": null, "timestamp": 1678439560068, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "28CG3Ns1HBqutqVNXnh1VUmEq2K6aXKwqRfXUq8r5y8dHfiwadP9SbxsiWreTUX4d7Te3Bfsv6teYL9L2niP2Nvc" ], "script": "base64:AAIFAAAAAAAABxAIAhIJCgcICAgYAQgBEgASCAoGCAgICAgIEgMKARgSAwoBCBIAEgASBAoCCAgiA1NFUCIMd2F2ZXNBc3NldElkIhFpbnZhbGlkUHJpY2VBc3NldCIIdGhyb3dFcnIiA21zZyIHdGhyb3dQRCIUdGhyb3dDcmVhdGVOb3RDYWxsZWQiEXRocm93WW91Tm90SXNzdWVyIg90aHJvd1Bvb2xFeGlzdHMiFXRocm93QXNzZXROb3RWZXJpZmllZCIWdGhyb3dJbnZhbGlkUHJpY2VBc3NldCIUdGhyb3dJbnZhbGlkRmVlQXNzZXQiF3Rocm93SW52YWxpZEFtb3VudEFzc2V0IhJ0aHJvd0ludmFsaWRTdGF0dXMiH3Rocm93Q2FuQWN0aXZhdGVPbmx5UGVuZGluZ1Bvb2wiHXRocm93RmFjdG9yeVJldHVybmVkTm90U3RyaW5nIhx0aHJvd0ludmFsaWRQcmljZUFzc2V0QW1vdW50Ig90aHJvd0ludmFsaWRGZWUiE2tleU1hbmFnZXJQdWJsaWNLZXkiGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS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5r6Gw==", "height": 2483781, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cyajd2Rr8jF1ArwyNCetTfe1aSMdwsE69GbyTkdZt9YM Next: 4mxuGq5uWxUJ8vLPHGSTLsHrPCnicNcpaTC3oSs7Q1Gy Diff:
Old | New | Differences | |
---|---|---|---|
259 | 259 | } | |
260 | 260 | let aR = [if (!(Z(w, x))) | |
261 | 261 | then true | |
262 | - | else i(), if (aP) | |
262 | + | else i(), if (!(aP)) | |
263 | 263 | then true | |
264 | 264 | else i(), if (if (ad(ae)) | |
265 | 265 | then true |
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 | 254 | let aP = { | |
255 | 255 | let aQ = invoke(Y, "poolExistsREADONLY", [w, x], nil) | |
256 | 256 | if ($isInstanceOf(aQ, "Boolean")) | |
257 | 257 | then aQ | |
258 | 258 | else throw("Couldn't cast Any to Boolean") | |
259 | 259 | } | |
260 | 260 | let aR = [if (!(Z(w, x))) | |
261 | 261 | then true | |
262 | - | else i(), if (aP) | |
262 | + | else i(), if (!(aP)) | |
263 | 263 | then true | |
264 | 264 | else i(), if (if (ad(ae)) | |
265 | 265 | then true | |
266 | 266 | else aj(w)) | |
267 | 267 | then true | |
268 | 268 | else j(), if ((getString(N()) == aw)) | |
269 | 269 | then true | |
270 | 270 | else l(), if (if (ad(ae)) | |
271 | 271 | then true | |
272 | 272 | else (az.amount >= getIntegerValue(P()))) | |
273 | 273 | then true | |
274 | 274 | else m(), if (if (ad(ae)) | |
275 | 275 | then true | |
276 | 276 | else (aA.amount >= aK)) | |
277 | 277 | then true | |
278 | 278 | else q(), if ((aB.amount == getInteger(O()))) | |
279 | 279 | then true | |
280 | 280 | else r()] | |
281 | 281 | if ((aR == aR)) | |
282 | 282 | then { | |
283 | 283 | let aS = invoke(aO, "burn", nil, [AttachedPayment(fromBase58String(aw), aB.amount)]) | |
284 | 284 | if ((aS == aS)) | |
285 | 285 | 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 | 286 | else throw("Strict value is not equal to itself.") | |
287 | 287 | } | |
288 | 288 | else throw("Strict value is not equal to itself.") | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | ||
293 | 293 | @Callable(ae) | |
294 | 294 | func activate (aT,w,aU,x,aV,aW) = { | |
295 | 295 | let aR = [ah(ae), if (Z(w, x)) | |
296 | 296 | then true | |
297 | 297 | else g(), if ((value(getString(v(w, x))) == E)) | |
298 | 298 | then true | |
299 | 299 | else o()] | |
300 | 300 | if ((aR == aR)) | |
301 | 301 | then { | |
302 | 302 | let aX = invoke(Y, "activateNewPool", [aT, w, x, ((aU + aV) + "LP"), (((aU + "/") + aV) + " pool liquidity provider token"), 0, "VLTPOOL", aW], nil) | |
303 | 303 | if ((aX == aX)) | |
304 | 304 | then { | |
305 | 305 | let aY = { | |
306 | 306 | let W = aX | |
307 | 307 | if ($isInstanceOf(W, "String")) | |
308 | 308 | then { | |
309 | 309 | let an = W | |
310 | 310 | an | |
311 | 311 | } | |
312 | 312 | else p() | |
313 | 313 | } | |
314 | 314 | if ((aY == aY)) | |
315 | 315 | then { | |
316 | 316 | let aZ = assetBalance(this, fromBase58String(aY)) | |
317 | 317 | if ((aZ == aZ)) | |
318 | 318 | then { | |
319 | 319 | let ba = invoke(addressFromStringValue(aT), "put", [0, false], [AttachedPayment(if ((w == "WAVES")) | |
320 | 320 | then unit | |
321 | 321 | else fromBase58String(w), value(getInteger(K(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
322 | 322 | then unit | |
323 | 323 | else fromBase58String(x), value(getInteger(L(w, x))))]) | |
324 | 324 | if ((ba == ba)) | |
325 | 325 | then { | |
326 | 326 | let bb = assetBalance(this, fromBase58String(aY)) | |
327 | 327 | if ((bb == bb)) | |
328 | 328 | then { | |
329 | 329 | let bc = value(addressFromString(value(getString(J(w, x))))) | |
330 | 330 | [StringEntry(v(w, x), G), ScriptTransfer(bc, (bb - aZ), fromBase58String(aY))] | |
331 | 331 | } | |
332 | 332 | else throw("Strict value is not equal to itself.") | |
333 | 333 | } | |
334 | 334 | else throw("Strict value is not equal to itself.") | |
335 | 335 | } | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | else throw("Strict value is not equal to itself.") | |
339 | 339 | } | |
340 | 340 | else throw("Strict value is not equal to itself.") | |
341 | 341 | } | |
342 | 342 | else throw("Strict value is not equal to itself.") | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | ||
347 | 347 | @Callable(ae) | |
348 | 348 | func setAdmins (bd) = { | |
349 | 349 | let ay = ag(ae) | |
350 | 350 | if ((ay == ay)) | |
351 | 351 | then [StringEntry(u(), makeString(bd, a))] | |
352 | 352 | else throw("Strict value is not equal to itself.") | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(ae) | |
358 | 358 | func setManager (be) = { | |
359 | 359 | let ay = ag(ae) | |
360 | 360 | if ((ay == ay)) | |
361 | 361 | then { | |
362 | 362 | let bf = fromBase58String(be) | |
363 | 363 | if ((bf == bf)) | |
364 | 364 | then [StringEntry(t(), be)] | |
365 | 365 | else throw("Strict value is not equal to itself.") | |
366 | 366 | } | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | ||
372 | 372 | @Callable(ae) | |
373 | 373 | func confirmManager () = { | |
374 | 374 | let bg = ac() | |
375 | 375 | let bh = if (isDefined(bg)) | |
376 | 376 | then true | |
377 | 377 | else throw("No pending manager") | |
378 | 378 | if ((bh == bh)) | |
379 | 379 | then { | |
380 | 380 | let bi = if ((ae.callerPublicKey == value(bg))) | |
381 | 381 | then true | |
382 | 382 | else throw("You are not pending manager") | |
383 | 383 | if ((bi == bi)) | |
384 | 384 | then [StringEntry(s(), toBase58String(value(bg))), DeleteEntry(t())] | |
385 | 385 | else throw("Strict value is not equal to itself.") | |
386 | 386 | } | |
387 | 387 | else throw("Strict value is not equal to itself.") | |
388 | 388 | } | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | ||
392 | 392 | @Callable(ae) | |
393 | 393 | func priceAssetsREADONLY () = $Tuple2(nil, U(getString(R()))) | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(ae) | |
398 | 398 | func statusREADONLY (w,x) = { | |
399 | 399 | let aq = { | |
400 | 400 | let W = getString(v(w, x)) | |
401 | 401 | if ($isInstanceOf(W, "String")) | |
402 | 402 | then { | |
403 | 403 | let X = W | |
404 | 404 | X | |
405 | 405 | } | |
406 | 406 | else unit | |
407 | 407 | } | |
408 | 408 | $Tuple2(nil, aq) | |
409 | 409 | } | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | @Verifier(bj) | |
413 | 413 | func bk () = { | |
414 | 414 | let bl = { | |
415 | 415 | let W = ab() | |
416 | 416 | if ($isInstanceOf(W, "ByteVector")) | |
417 | 417 | then { | |
418 | 418 | let af = W | |
419 | 419 | af | |
420 | 420 | } | |
421 | 421 | else if ($isInstanceOf(W, "Unit")) | |
422 | 422 | then bj.senderPublicKey | |
423 | 423 | else throw("Match error") | |
424 | 424 | } | |
425 | 425 | sigVerify(bj.bodyBytes, bj.proofs[0], bl) | |
426 | 426 | } | |
427 | 427 |
github/deemru/w8io/026f985 55.64 ms ◑