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