tx · 4UVbEFEj1Eji37zVRuxKutfbCVxWQs5m8f2jZ4Xc87hc 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01600000 Waves 2023.01.19 12:48 [2411648] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "4UVbEFEj1Eji37zVRuxKutfbCVxWQs5m8f2jZ4Xc87hc", "fee": 1600000, "feeAssetId": null, "timestamp": 1674121745703, "version": 1, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "3VYpYkYTzZPWrhzRosF1PNeSMciQ1aPW48sew783jp8D3TcQuwxLuDymFNdGyCStf2msoLU4BZjyZ5Ky92LV7KpC" ], "script": "base64:AAIFAAAAAAAABrcIAhIICgYICBgBCAESABIICgYICAgICAgSAwoBGBIDCgEIEgASABIECgIICCIDU0VQIgx3YXZlc0Fzc2V0SWQiEWludmFsaWRQcmljZUFzc2V0Igh0aHJvd0VyciIDbXNnIgd0aHJvd1BEIhR0aHJvd0NyZWF0ZU5vdENhbGxlZCIRdGhyb3dZb3VOb3RJc3N1ZXIiD3Rocm93UG9vbEV4aXN0cyIVdGhyb3dBc3NldE5vdFZlcmlmaWVkIhZ0aHJvd0ludmFsaWRQcmljZUFzc2V0IhR0aHJvd0ludmFsaWRGZWVBc3NldCIXdGhyb3dJbnZhbGlkQW1vdW50QXNzZXQiEnRocm93SW52YWxpZFN0YXR1cyIfdGhyb3dDYW5BY3RpdmF0ZU9ubHlQZW5kaW5nUG9vbCIddGhyb3dGYWN0b3J5UmV0dXJuZWROb3RTdHJpbmciHHRocm93SW52YWxpZFByaWNlQXNzZXRBbW91bnQiD3Rocm93SW52YWxpZEZlZSITa2V5TWFuYWdlclB1YmxpY0tleSIaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkiD2tleUFkbW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AApCeXRlVmVjdG9yBAAAAAJhZQUAAAABVgUAAAACYWUDCQAAAQAAAAIFAAAAAVYCAAAABFVuaXQIBQAAAAJiZAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAmJkAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYmQAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJiZq2zsJg=", "chainId": 84, "height": 2411648, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5VyiDTUwoBk1r5BhpGBRCuc8iPCsmoZg9rjkNLjkvdZ3 Next: Hf4YaRjYCMrET2TH9NNQd74rREezKQy14AvBogayrsr3 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 () = makeString(["%s", "feeAssetId"], a) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func N () = makeString(["%s", "feeAmount"], a) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func O () = makeString(["%s", "amountAssetMinAmount"], a) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func P () = makeString(["%s", "priceAssetsMinAmount"], a) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func Q () = makeString(["%s", "priceAssets"], a) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func R (S) = valueOrErrorMessage(getString(this, S), (S + " is not defined")) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func T (U) = { | |
120 | 120 | let V = U | |
121 | 121 | if ($isInstanceOf(V, "String")) | |
122 | 122 | then { | |
123 | 123 | let W = V | |
124 | 124 | if ((size(W) == 0)) | |
125 | 125 | then nil | |
126 | 126 | else split(W, a) | |
127 | 127 | } | |
128 | 128 | else if ($isInstanceOf(V, "Unit")) | |
129 | 129 | then nil | |
130 | 130 | else throw("Match error") | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | let X = addressFromStringValue(R(y())) | |
135 | 135 | ||
136 | 136 | func Y (w,x) = valueOrElse(getBoolean(H(w, x)), false) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func Z (w,x) = if (Y(w, x)) | |
140 | 140 | then true | |
141 | 141 | else g() | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func aa () = { | |
145 | 145 | let V = getString(s()) | |
146 | 146 | if ($isInstanceOf(V, "String")) | |
147 | 147 | then { | |
148 | 148 | let W = V | |
149 | 149 | fromBase58String(W) | |
150 | 150 | } | |
151 | 151 | else if ($isInstanceOf(V, "Unit")) | |
152 | 152 | then unit | |
153 | 153 | else throw("Match error") | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ab () = { | |
158 | 158 | let V = getString(t()) | |
159 | 159 | if ($isInstanceOf(V, "String")) | |
160 | 160 | then { | |
161 | 161 | let W = V | |
162 | 162 | fromBase58String(W) | |
163 | 163 | } | |
164 | 164 | else if ($isInstanceOf(V, "Unit")) | |
165 | 165 | then unit | |
166 | 166 | else throw("Match error") | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ac (ad) = { | |
171 | 171 | let V = aa() | |
172 | 172 | if ($isInstanceOf(V, "ByteVector")) | |
173 | 173 | then { | |
174 | 174 | let ae = V | |
175 | 175 | (ad.callerPublicKey == ae) | |
176 | 176 | } | |
177 | 177 | else if ($isInstanceOf(V, "Unit")) | |
178 | 178 | then (ad.caller == this) | |
179 | 179 | else throw("Match error") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func af (ad) = if (ac(ad)) | |
184 | 184 | then true | |
185 | 185 | else f() | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func ag (ad) = { | |
189 | 189 | let ah = T(getString(u())) | |
190 | 190 | if (containsElement(ah, toBase58String(ad.callerPublicKey))) | |
191 | 191 | then true | |
192 | 192 | else af(ad) | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func ai (aj) = (valueOrElse(getInteger(addressFromStringValue(R(z())), (("status_<" + aj) + ">")), 0) == 2) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func ak (al) = { | |
200 | 200 | let V = al.assetId | |
201 | 201 | if ($isInstanceOf(V, "ByteVector")) | |
202 | 202 | then { | |
203 | 203 | let am = V | |
204 | 204 | let an = value(assetInfo(am)) | |
205 | 205 | $Tuple2(toBase58String(am), an) | |
206 | 206 | } | |
207 | 207 | else if ($isInstanceOf(V, "Unit")) | |
208 | 208 | then $Tuple2(b, unit) | |
209 | 209 | else throw("Match error") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func ao (ap) = containsElement(G, ap) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | @Callable(ad) | |
217 | 217 | func constructor (aq,ar,as,at,au,av) = { | |
218 | 218 | let aw = af(ad) | |
219 | 219 | if ((aw == aw)) | |
220 | 220 | then [StringEntry(y(), aq), StringEntry(z(), ar), StringEntry(P(), makeString(as, a)), IntegerEntry(O(), at), StringEntry(M(), au), IntegerEntry(N(), av)] | |
221 | 221 | else throw("Strict value is not equal to itself.") | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(ad) | |
227 | 227 | func create () = { | |
228 | 228 | let ax = value(ad.payments[0]) | |
229 | 229 | let ay = value(ad.payments[1]) | |
230 | 230 | let az = value(ad.payments[2]) | |
231 | 231 | let aA = ak(ax) | |
232 | 232 | let w = aA._1 | |
233 | 233 | let aB = aA._2 | |
234 | 234 | let aC = ak(ay) | |
235 | 235 | let x = aC._1 | |
236 | 236 | let aD = aC._2 | |
237 | 237 | let aE = ak(az) | |
238 | 238 | let au = aE._1 | |
239 | 239 | let aF = aE._2 | |
240 | 240 | let aG = T(getString(X, Q())) | |
241 | 241 | let aH = 1 | |
242 | 242 | let aI = if (ac(ad)) | |
243 | 243 | then aH | |
244 | 244 | else { | |
245 | 245 | let aJ = valueOrErrorMessage(indexOf(aG, x), c) | |
246 | 246 | value(parseInt(T(getString(P()))[aJ])) | |
247 | 247 | } | |
248 | 248 | let aK = valueOrElse(getInteger(B()), 0) | |
249 | 249 | let aL = (aK + 1) | |
250 | 250 | let aM = [if (!(Y(w, x))) | |
251 | 251 | then true | |
252 | 252 | else i(), if (if (ac(ad)) | |
253 | 253 | then true | |
254 | 254 | else ai(w)) | |
255 | 255 | then true | |
256 | 256 | else j(), if ((getString(M()) == au)) | |
257 | 257 | then true | |
258 | 258 | else l(), if (if (ac(ad)) | |
259 | 259 | then true | |
260 | 260 | else (ax.amount >= getIntegerValue(O()))) | |
261 | 261 | then true | |
262 | 262 | else m(), if (if (ac(ad)) | |
263 | 263 | then true | |
264 | 264 | else (ay.amount >= aI)) | |
265 | 265 | then true | |
266 | 266 | else q(), if ((az.amount == getInteger(N()))) | |
267 | 267 | then true | |
268 | 268 | else r()] | |
269 | 269 | if ((aM == aM)) | |
270 | 270 | then [BooleanEntry(H(w, x), true), StringEntry(I(w, x), toString(ad.caller)), IntegerEntry(B(), aL), StringEntry(A(w, x), (toString(aL) + C)), IntegerEntry(L(w, x), height), StringEntry(v(w, x), D), IntegerEntry(J(w, x), ax.amount), IntegerEntry(K(w, x), ay.amount)] | |
271 | 271 | else throw("Strict value is not equal to itself.") | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | ||
276 | 276 | @Callable(ad) | |
277 | 277 | func activate (aN,w,aO,x,aP,aQ) = { | |
278 | 278 | let aM = [ag(ad), if (Y(w, x)) | |
279 | 279 | then true | |
280 | 280 | else g(), if ((value(getString(v(w, x))) == D)) | |
281 | 281 | then true | |
282 | 282 | else o()] | |
283 | 283 | if ((aM == aM)) | |
284 | 284 | then { | |
285 | 285 | let aR = invoke(X, "activateNewPool", [aN, w, x, ((aO + aP) + "LP"), (((aO + "/") + aP) + " pool liquidity provider token"), 0, "VLTPOOL", aQ], nil) | |
286 | 286 | if ((aR == aR)) | |
287 | 287 | then { | |
288 | 288 | let aS = { | |
289 | 289 | let V = aR | |
290 | 290 | if ($isInstanceOf(V, "String")) | |
291 | 291 | then { | |
292 | 292 | let am = V | |
293 | 293 | am | |
294 | 294 | } | |
295 | 295 | else p() | |
296 | 296 | } | |
297 | 297 | if ((aS == aS)) | |
298 | 298 | then { | |
299 | 299 | let aT = assetBalance(this, fromBase58String(aS)) | |
300 | 300 | if ((aT == aT)) | |
301 | 301 | then { | |
302 | 302 | let aU = invoke(addressFromStringValue(aN), "put", [0, false], [AttachedPayment(if ((w == "WAVES")) | |
303 | 303 | then unit | |
304 | 304 | else fromBase58String(w), value(getInteger(J(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
305 | 305 | then unit | |
306 | 306 | else fromBase58String(x), value(getInteger(K(w, x))))]) | |
307 | 307 | if ((aU == aU)) | |
308 | 308 | then { | |
309 | 309 | let aV = assetBalance(this, fromBase58String(aS)) | |
310 | 310 | if ((aV == aV)) | |
311 | 311 | then { | |
312 | 312 | let aW = value(addressFromString(value(getString(I(w, x))))) | |
313 | 313 | [StringEntry(v(w, x), F), ScriptTransfer(aW, (aV - aT), fromBase58String(aS))] | |
314 | 314 | } | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | else throw("Strict value is not equal to itself.") | |
318 | 318 | } | |
319 | 319 | else throw("Strict value is not equal to itself.") | |
320 | 320 | } | |
321 | 321 | else throw("Strict value is not equal to itself.") | |
322 | 322 | } | |
323 | 323 | else throw("Strict value is not equal to itself.") | |
324 | 324 | } | |
325 | 325 | else throw("Strict value is not equal to itself.") | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(ad) | |
331 | 331 | func setAdmins (aX) = { | |
332 | 332 | let aw = af(ad) | |
333 | 333 | if ((aw == aw)) | |
334 | 334 | then [StringEntry(u(), makeString(aX, a))] | |
335 | 335 | else throw("Strict value is not equal to itself.") | |
336 | 336 | } | |
337 | 337 | ||
338 | 338 | ||
339 | 339 | ||
340 | 340 | @Callable(ad) | |
341 | 341 | func setManager (aY) = { | |
342 | 342 | let aw = af(ad) | |
343 | 343 | if ((aw == aw)) | |
344 | 344 | then { | |
345 | 345 | let aZ = fromBase58String(aY) | |
346 | 346 | if ((aZ == aZ)) | |
347 | 347 | then [StringEntry(t(), aY)] | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | ||
355 | 355 | @Callable(ad) | |
356 | 356 | func confirmManager () = { | |
357 | 357 | let ba = ab() | |
358 | 358 | let bb = if (isDefined(ba)) | |
359 | 359 | then true | |
360 | 360 | else throw("No pending manager") | |
361 | 361 | if ((bb == bb)) | |
362 | 362 | then { | |
363 | 363 | let bc = if ((ad.callerPublicKey == value(ba))) | |
364 | 364 | then true | |
365 | 365 | else throw("You are not pending manager") | |
366 | 366 | if ((bc == bc)) | |
367 | 367 | then [StringEntry(s(), toBase58String(value(ba))), DeleteEntry(t())] | |
368 | 368 | else throw("Strict value is not equal to itself.") | |
369 | 369 | } | |
370 | 370 | else throw("Strict value is not equal to itself.") | |
371 | 371 | } | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | ||
375 | 375 | @Callable(ad) | |
376 | 376 | func priceAssetsREADONLY () = $Tuple2(nil, T(getString(Q()))) | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | ||
380 | 380 | @Callable(ad) | |
381 | 381 | func statusREADONLY (w,x) = { | |
382 | 382 | let ap = { | |
383 | 383 | let V = getString(v(w, x)) | |
384 | 384 | if ($isInstanceOf(V, "String")) | |
385 | 385 | then { | |
386 | 386 | let W = V | |
387 | 387 | W | |
388 | 388 | } | |
389 | 389 | else unit | |
390 | 390 | } | |
391 | 391 | $Tuple2(nil, ap) | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | @Verifier(bd) | |
396 | 396 | func be () = { | |
397 | 397 | let bf = { | |
398 | 398 | let V = aa() | |
399 | 399 | if ($isInstanceOf(V, "ByteVector")) | |
400 | 400 | then { | |
401 | 401 | let ae = V | |
402 | 402 | ae | |
403 | 403 | } | |
404 | 404 | else if ($isInstanceOf(V, "Unit")) | |
405 | 405 | then bd.senderPublicKey | |
406 | 406 | else throw("Match error") | |
407 | 407 | } | |
408 | 408 | sigVerify(bd.bodyBytes, bd.proofs[0], bf) | |
409 | 409 | } | |
410 | 410 |
github/deemru/w8io/026f985 52.83 ms ◑