tx · 4cp5ScUehZXBHKV1vyDdHvnFHvK6tKJCUHmNQ48C3TqH 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01600000 Waves 2022.10.20 11:14 [2280469] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "4cp5ScUehZXBHKV1vyDdHvnFHvK6tKJCUHmNQ48C3TqH", "fee": 1600000, "feeAssetId": null, "timestamp": 1666253779984, "version": 1, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "3ChhFsxo9JENkwjEjQKL1A94NUhYYrFTEhBUoKKatxGt7CrAYCVVSCVsdMHKtCxEhNZwMhszGgMfUxMLxeJioCVC" ], "script": "base64:AAIFAAAAAAAABswIAhIICgYICBgBCAESABIICgYICAgICAgSAwoBGBIDCgEIEgASABIECgIICCIDU0VQIgx3YXZlc0Fzc2V0SWQiEWludmFsaWRQcmljZUFzc2V0Igh0aHJvd0VyciIDbXNnIgd0aHJvd1BEIhR0aHJvd0NyZWF0ZU5vdENhbGxlZCIRdGhyb3dZb3VOb3RJc3N1ZXIiD3Rocm93UG9vbEV4aXN0cyIVdGhyb3dBc3NldE5vdFZlcmlmaWVkIhZ0aHJvd0ludmFsaWRQcmljZUFzc2V0IhR0aHJvd0ludmFsaWRGZWVBc3NldCIXdGhyb3dJbnZhbGlkQW1vdW50QXNzZXQiEnRocm93SW52YWxpZFN0YXR1cyIfdGhyb3dDYW5BY3RpdmF0ZU9ubHlQZW5kaW5nUG9vbCIddGhyb3dGYWN0b3J5UmV0dXJuZWROb3RTdHJpbmciHHRocm93SW52YWxpZFByaWNlQXNzZXRBbW91bnQiD3Rocm93SW52YWxpZEZlZSITa2V5TWFuYWdlclB1YmxpY0tleSIaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkiD2tleUFkb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AAQiAAAAAQkBAAAAAXYAAAACBQAAAAF3BQAAAAF4AwkAAAEAAAACBQAAAAFXAgAAAAZTdHJpbmcEAAAAAVgFAAAAAVcFAAAAAVgFAAAABHVuaXQJAAUUAAAAAgUAAAADbmlsBQAAAAJhcQAAAAEAAAACYmUBAAAAAmJmAAAAAAQAAAACYmcEAAAAAVcJAQAAAAJhYgAAAAADCQAAAQAAAAIFAAAAAVcCAAAACkJ5dGVWZWN0b3IEAAAAAmFmBQAAAAFXBQAAAAJhZgMJAAABAAAAAgUAAAABVwIAAAAEVW5pdAgFAAAAAmJlAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACYmUAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJiZQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmJnLok93A==", "chainId": 84, "height": 2280469, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FUA7PhACYC7M5uqTsFWxKN1bzPZ3hNEjcn1342abDsSV Next: FSYWcXjXHxVUJ1d4mhRfPzGRVajwwpqPCCzFVdBmfX1Y Full:
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 (w,x) = makeString(["%s%s%s", "suffix", w, x], a) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func B () = makeString(["%s", "lastIndex"], a) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | let C = "u" | |
77 | 77 | ||
78 | 78 | let D = "pending" | |
79 | 79 | ||
80 | 80 | let E = "declined" | |
81 | 81 | ||
82 | 82 | let F = "active" | |
83 | 83 | ||
84 | 84 | let G = [D, E, F] | |
85 | 85 | ||
86 | 86 | func H (w,x) = makeString(["%s%s%s", "createCalled", w, x], a) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func I (w,x) = makeString(["%s%s%s", "createCaller", w, x], a) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func J (w,x) = makeString(["%s%s%s", "amountAssetAmount", w, x], a) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func K (w,x) = makeString(["%s%s%s", "priceAssetAmount", w, x], a) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func L (w,x) = makeString(["%s%s%s", "height", w, x], a) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func M (w,x) = makeString(["%s%s%s", "activationHeight", 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(H(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(G, aq) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(ae) | |
220 | 220 | func constructor (ar,as,at,au,av,aw) = { | |
221 | 221 | let ax = ag(ae) | |
222 | 222 | if ((ax == ax)) | |
223 | 223 | then [StringEntry(y(), ar), StringEntry(z(), as), StringEntry(Q(), makeString(at, a)), IntegerEntry(P(), au), StringEntry(N(), av), IntegerEntry(O(), aw)] | |
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 ay = value(ae.payments[0]) | |
232 | 232 | let az = value(ae.payments[1]) | |
233 | 233 | let aA = value(ae.payments[2]) | |
234 | 234 | let aB = al(ay) | |
235 | 235 | let w = aB._1 | |
236 | 236 | let aC = aB._2 | |
237 | 237 | let aD = al(az) | |
238 | 238 | let x = aD._1 | |
239 | 239 | let aE = aD._2 | |
240 | 240 | let aF = al(aA) | |
241 | 241 | let av = aF._1 | |
242 | 242 | let aG = aF._2 | |
243 | 243 | let aH = U(getString(Y, R())) | |
244 | 244 | let aI = 1 | |
245 | 245 | let aJ = if (ad(ae)) | |
246 | 246 | then aI | |
247 | 247 | else { | |
248 | 248 | let aK = valueOrErrorMessage(indexOf(aH, x), c) | |
249 | 249 | value(parseInt(U(getString(Q()))[aK])) | |
250 | 250 | } | |
251 | 251 | let aL = valueOrElse(getInteger(B()), 0) | |
252 | 252 | let aM = (aL + 1) | |
253 | 253 | let aN = [if (!(Z(w, x))) | |
254 | 254 | then true | |
255 | 255 | else i(), if (if (ad(ae)) | |
256 | 256 | then true | |
257 | 257 | else aj(w)) | |
258 | 258 | then true | |
259 | 259 | else j(), if ((getString(N()) == av)) | |
260 | 260 | then true | |
261 | 261 | else l(), if (if (ad(ae)) | |
262 | 262 | then true | |
263 | 263 | else (ay.amount >= getIntegerValue(P()))) | |
264 | 264 | then true | |
265 | 265 | else m(), if (if (ad(ae)) | |
266 | 266 | then true | |
267 | 267 | else (az.amount >= aJ)) | |
268 | 268 | then true | |
269 | 269 | else q(), if ((aA.amount == getInteger(O()))) | |
270 | 270 | then true | |
271 | 271 | else r()] | |
272 | 272 | if ((aN == aN)) | |
273 | 273 | then [BooleanEntry(H(w, x), true), StringEntry(I(w, x), toString(ae.caller)), IntegerEntry(B(), aM), StringEntry(A(w, x), (toString(aM) + C)), IntegerEntry(L(w, x), height), StringEntry(v(w, x), D), IntegerEntry(J(w, x), ay.amount), IntegerEntry(K(w, x), az.amount)] | |
274 | 274 | else throw("Strict value is not equal to itself.") | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | ||
279 | 279 | @Callable(ae) | |
280 | 280 | func activate (aO,w,aP,x,aQ,aR) = { | |
281 | 281 | let aN = [ah(ae), if (Z(w, x)) | |
282 | 282 | then true | |
283 | 283 | else g(), if ((value(getString(v(w, x))) == D)) | |
284 | 284 | then true | |
285 | 285 | else o()] | |
286 | 286 | if ((aN == aN)) | |
287 | 287 | then { | |
288 | 288 | let aS = invoke(Y, "activateNewPool", [aO, w, x, ((aP + aQ) + "LP"), (((aP + "/") + aQ) + " pool liquidity provider token"), 0, "VLTPOOL", aR], nil) | |
289 | 289 | if ((aS == aS)) | |
290 | 290 | then { | |
291 | 291 | let aT = { | |
292 | 292 | let W = aS | |
293 | 293 | if ($isInstanceOf(W, "String")) | |
294 | 294 | then { | |
295 | 295 | let an = W | |
296 | 296 | an | |
297 | 297 | } | |
298 | 298 | else p() | |
299 | 299 | } | |
300 | 300 | if ((aT == aT)) | |
301 | 301 | then { | |
302 | 302 | let aU = assetBalance(this, fromBase58String(aT)) | |
303 | 303 | if ((aU == aU)) | |
304 | 304 | then { | |
305 | 305 | let aV = invoke(addressFromStringValue(aO), "put", [0, false], [AttachedPayment(fromBase58String(w), value(getInteger(J(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
306 | 306 | then unit | |
307 | 307 | else fromBase58String(x), value(getInteger(K(w, x))))]) | |
308 | 308 | if ((aV == aV)) | |
309 | 309 | then { | |
310 | 310 | let aW = assetBalance(this, fromBase58String(aT)) | |
311 | 311 | if ((aW == aW)) | |
312 | 312 | then { | |
313 | 313 | let aX = value(addressFromString(value(getString(I(w, x))))) | |
314 | 314 | [StringEntry(v(w, x), F), IntegerEntry(M(w, x), height), ScriptTransfer(aX, (aW - aU), fromBase58String(aT))] | |
315 | 315 | } | |
316 | 316 | else throw("Strict value is not equal to itself.") | |
317 | 317 | } | |
318 | 318 | else throw("Strict value is not equal to itself.") | |
319 | 319 | } | |
320 | 320 | else throw("Strict value is not equal to itself.") | |
321 | 321 | } | |
322 | 322 | else throw("Strict value is not equal to itself.") | |
323 | 323 | } | |
324 | 324 | else throw("Strict value is not equal to itself.") | |
325 | 325 | } | |
326 | 326 | else throw("Strict value is not equal to itself.") | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | ||
331 | 331 | @Callable(ae) | |
332 | 332 | func setAdmins (aY) = { | |
333 | 333 | let ax = ag(ae) | |
334 | 334 | if ((ax == ax)) | |
335 | 335 | then [StringEntry(u(), makeString(aY, a))] | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | ||
341 | 341 | @Callable(ae) | |
342 | 342 | func setManager (aZ) = { | |
343 | 343 | let ax = ag(ae) | |
344 | 344 | if ((ax == ax)) | |
345 | 345 | then { | |
346 | 346 | let ba = fromBase58String(aZ) | |
347 | 347 | if ((ba == ba)) | |
348 | 348 | then [StringEntry(t(), aZ)] | |
349 | 349 | else throw("Strict value is not equal to itself.") | |
350 | 350 | } | |
351 | 351 | else throw("Strict value is not equal to itself.") | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(ae) | |
357 | 357 | func confirmManager () = { | |
358 | 358 | let bb = ac() | |
359 | 359 | let bc = if (isDefined(bb)) | |
360 | 360 | then true | |
361 | 361 | else throw("No pending manager") | |
362 | 362 | if ((bc == bc)) | |
363 | 363 | then { | |
364 | 364 | let bd = if ((ae.callerPublicKey == value(bb))) | |
365 | 365 | then true | |
366 | 366 | else throw("You are not pending manager") | |
367 | 367 | if ((bd == bd)) | |
368 | 368 | then [StringEntry(s(), toBase58String(value(bb))), DeleteEntry(t())] | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | else throw("Strict value is not equal to itself.") | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Callable(ae) | |
377 | 377 | func priceAssetsREADONLY () = $Tuple2(nil, U(getString(R()))) | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(ae) | |
382 | 382 | func statusREADONLY (w,x) = { | |
383 | 383 | let aq = { | |
384 | 384 | let W = getString(v(w, x)) | |
385 | 385 | if ($isInstanceOf(W, "String")) | |
386 | 386 | then { | |
387 | 387 | let X = W | |
388 | 388 | X | |
389 | 389 | } | |
390 | 390 | else unit | |
391 | 391 | } | |
392 | 392 | $Tuple2(nil, aq) | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | @Verifier(be) | |
397 | 397 | func bf () = { | |
398 | 398 | let bg = { | |
399 | 399 | let W = ab() | |
400 | 400 | if ($isInstanceOf(W, "ByteVector")) | |
401 | 401 | then { | |
402 | 402 | let af = W | |
403 | 403 | af | |
404 | 404 | } | |
405 | 405 | else if ($isInstanceOf(W, "Unit")) | |
406 | 406 | then be.senderPublicKey | |
407 | 407 | else throw("Match error") | |
408 | 408 | } | |
409 | 409 | sigVerify(be.bodyBytes, be.proofs[0], bg) | |
410 | 410 | } | |
411 | 411 |
github/deemru/w8io/026f985 42.07 ms ◑