tx · BgGeeMic4DPdVhuaB1f3KHFZfMZ5VKbunSfru6S416Yt 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01600000 Waves 2023.01.10 13:35 [2398735] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "BgGeeMic4DPdVhuaB1f3KHFZfMZ5VKbunSfru6S416Yt", "fee": 1600000, "feeAssetId": null, "timestamp": 1673346963685, "version": 1, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "2Zc1dacTJU8TJmGqeYRog6s1LZq6oBx2vAyK1TXtvtkq3gtrGuNjNjkaq8PxPU7gL56GJGB5wPgYDgx9QUGUBLVg" ], "script": "base64:AAIFAAAAAAAABrcIAhIICgYICBgBCAESABIICgYICAgICAgSAwoBGBIDCgEIEgASABIECgIICCIDU0VQIgx3YXZlc0Fzc2V0SWQiEWludmFsaWRQcmljZUFzc2V0Igh0aHJvd0VyciIDbXNnIgd0aHJvd1BEIhR0aHJvd0NyZWF0ZU5vdENhbGxlZCIRdGhyb3dZb3VOb3RJc3N1ZXIiD3Rocm93UG9vbEV4aXN0cyIVdGhyb3dBc3NldE5vdFZlcmlmaWVkIhZ0aHJvd0ludmFsaWRQcmljZUFzc2V0IhR0aHJvd0ludmFsaWRGZWVBc3NldCIXdGhyb3dJbnZhbGlkQW1vdW50QXNzZXQiEnRocm93SW52YWxpZFN0YXR1cyIfdGhyb3dDYW5BY3RpdmF0ZU9ubHlQZW5kaW5nUG9vbCIddGhyb3dGYWN0b3J5UmV0dXJuZWROb3RTdHJpbmciHHRocm93SW52YWxpZFByaWNlQXNzZXRBbW91bnQiD3Rocm93SW52YWxpZEZlZSITa2V5TWFuYWdlclB1YmxpY0tleSIaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkiD2tleUFkbW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JAAABAAAAAgUAAAABVgIAAAAEVW5pdAgFAAAAAmJkAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACYmQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJiZAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmJm8x34Xg==", "chainId": 84, "height": 2398735, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cdk7XcRrAf9juYt4Zs8evbcheNVAfAqTCdjeNHidQatG Next: DkyKtXSqLSGp6o11Ftzo5ajbWHvn7H2xYS2rXdSUq6YB Diff:
Old | New | Differences | |
---|---|---|---|
299 | 299 | let aT = assetBalance(this, fromBase58String(aS)) | |
300 | 300 | if ((aT == aT)) | |
301 | 301 | then { | |
302 | - | let aU = invoke(addressFromStringValue(aN), "put", [0, false], [AttachedPayment(if ((w == "WAVES")) | |
303 | - | then unit | |
304 | - | else fromBase58String(w), value(getInteger(J(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
302 | + | let aU = invoke(addressFromStringValue(aN), "put", [0, false], [AttachedPayment(fromBase58String(w), value(getInteger(J(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
305 | 303 | then unit | |
306 | 304 | else fromBase58String(x), value(getInteger(K(w, x))))]) | |
307 | 305 | if ((aU == aU)) |
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 | - | let aU = invoke(addressFromStringValue(aN), "put", [0, false], [AttachedPayment(if ((w == "WAVES")) | |
303 | - | then unit | |
304 | - | else fromBase58String(w), value(getInteger(J(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
302 | + | let aU = invoke(addressFromStringValue(aN), "put", [0, false], [AttachedPayment(fromBase58String(w), value(getInteger(J(w, x)))), AttachedPayment(if ((x == "WAVES")) | |
305 | 303 | then unit | |
306 | 304 | else fromBase58String(x), value(getInteger(K(w, x))))]) | |
307 | 305 | if ((aU == aU)) | |
308 | 306 | then { | |
309 | 307 | let aV = assetBalance(this, fromBase58String(aS)) | |
310 | 308 | if ((aV == aV)) | |
311 | 309 | then { | |
312 | 310 | let aW = value(addressFromString(value(getString(I(w, x))))) | |
313 | 311 | [StringEntry(v(w, x), F), ScriptTransfer(aW, (aV - aT), fromBase58String(aS))] | |
314 | 312 | } | |
315 | 313 | else throw("Strict value is not equal to itself.") | |
316 | 314 | } | |
317 | 315 | else throw("Strict value is not equal to itself.") | |
318 | 316 | } | |
319 | 317 | else throw("Strict value is not equal to itself.") | |
320 | 318 | } | |
321 | 319 | else throw("Strict value is not equal to itself.") | |
322 | 320 | } | |
323 | 321 | else throw("Strict value is not equal to itself.") | |
324 | 322 | } | |
325 | 323 | else throw("Strict value is not equal to itself.") | |
326 | 324 | } | |
327 | 325 | ||
328 | 326 | ||
329 | 327 | ||
330 | 328 | @Callable(ad) | |
331 | 329 | func setAdmins (aX) = { | |
332 | 330 | let aw = af(ad) | |
333 | 331 | if ((aw == aw)) | |
334 | 332 | then [StringEntry(u(), makeString(aX, a))] | |
335 | 333 | else throw("Strict value is not equal to itself.") | |
336 | 334 | } | |
337 | 335 | ||
338 | 336 | ||
339 | 337 | ||
340 | 338 | @Callable(ad) | |
341 | 339 | func setManager (aY) = { | |
342 | 340 | let aw = af(ad) | |
343 | 341 | if ((aw == aw)) | |
344 | 342 | then { | |
345 | 343 | let aZ = fromBase58String(aY) | |
346 | 344 | if ((aZ == aZ)) | |
347 | 345 | then [StringEntry(t(), aY)] | |
348 | 346 | else throw("Strict value is not equal to itself.") | |
349 | 347 | } | |
350 | 348 | else throw("Strict value is not equal to itself.") | |
351 | 349 | } | |
352 | 350 | ||
353 | 351 | ||
354 | 352 | ||
355 | 353 | @Callable(ad) | |
356 | 354 | func confirmManager () = { | |
357 | 355 | let ba = ab() | |
358 | 356 | let bb = if (isDefined(ba)) | |
359 | 357 | then true | |
360 | 358 | else throw("No pending manager") | |
361 | 359 | if ((bb == bb)) | |
362 | 360 | then { | |
363 | 361 | let bc = if ((ad.callerPublicKey == value(ba))) | |
364 | 362 | then true | |
365 | 363 | else throw("You are not pending manager") | |
366 | 364 | if ((bc == bc)) | |
367 | 365 | then [StringEntry(s(), toBase58String(value(ba))), DeleteEntry(t())] | |
368 | 366 | else throw("Strict value is not equal to itself.") | |
369 | 367 | } | |
370 | 368 | else throw("Strict value is not equal to itself.") | |
371 | 369 | } | |
372 | 370 | ||
373 | 371 | ||
374 | 372 | ||
375 | 373 | @Callable(ad) | |
376 | 374 | func priceAssetsREADONLY () = $Tuple2(nil, T(getString(Q()))) | |
377 | 375 | ||
378 | 376 | ||
379 | 377 | ||
380 | 378 | @Callable(ad) | |
381 | 379 | func statusREADONLY (w,x) = { | |
382 | 380 | let ap = { | |
383 | 381 | let V = getString(v(w, x)) | |
384 | 382 | if ($isInstanceOf(V, "String")) | |
385 | 383 | then { | |
386 | 384 | let W = V | |
387 | 385 | W | |
388 | 386 | } | |
389 | 387 | else unit | |
390 | 388 | } | |
391 | 389 | $Tuple2(nil, ap) | |
392 | 390 | } | |
393 | 391 | ||
394 | 392 | ||
395 | 393 | @Verifier(bd) | |
396 | 394 | func be () = { | |
397 | 395 | let bf = { | |
398 | 396 | let V = aa() | |
399 | 397 | if ($isInstanceOf(V, "ByteVector")) | |
400 | 398 | then { | |
401 | 399 | let ae = V | |
402 | 400 | ae | |
403 | 401 | } | |
404 | 402 | else if ($isInstanceOf(V, "Unit")) | |
405 | 403 | then bd.senderPublicKey | |
406 | 404 | else throw("Match error") | |
407 | 405 | } | |
408 | 406 | sigVerify(bd.bodyBytes, bd.proofs[0], bf) | |
409 | 407 | } | |
410 | 408 |
github/deemru/w8io/026f985 78.84 ms ◑