tx · T88UsL6ZTdyzGK4nXyBU466zzu9XuuaJoXpj3zseNzL 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01800000 Waves 2022.08.16 14:40 [2186973] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "T88UsL6ZTdyzGK4nXyBU466zzu9XuuaJoXpj3zseNzL", "fee": 1800000, "feeAssetId": null, "timestamp": 1660650079685, "version": 1, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "5qeDSSQ6TZ7PCYMH21JNZvzm7TBchJ8ethNxAfRp43TFPFxjsRxt6oRpSp2FtbX8YKiu3Zx4tqkFiGVyykMk2XSL" ], "script": "base64:AAIFAAAAAAAAAC0IAhIJCgcICBgYAQgBEgASCAoGCAgICAgIEgMKARgSAwoBCBIAEgASBAoCCAgAAAAwAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAABFpbnZhbGlkUHJpY2VBc3NldAIAAAATSW52YWxpZCBwcmljZSBhc3NldAEAAAAHdGhyb3dQRAAAAAAJAAACAAAAAQIAAAARUGVybWlzc2lvbiBkZW5pZWQBAAAAFHRocm93Q3JlYXRlTm90Q2FsbGVkAAAAAAkAAAIAAAABAgAAACRDcmVhdGUgaXMgbm90IGNhbGxlZCBmb3IgYXNzZXRzIHBhaXIBAAAAEXRocm93WW91Tm90SXNzdWVyAAAAAAkAAAIAAAABAgAAAB5Zb3UgYXJlIG5vdCBhbW91bnRBc3NldCBpc3N1ZXIBAAAAD3Rocm93UG9vbEV4aXN0cwAAAAAJAAACAAAAAQIAAAAkUG9vbCB3aXRoIHN1Y2ggYXNzZXRzIGFscmVhZHkgZXhpc3RzAQAAABV0aHJvd0Fzc2V0Tm90VmVyaWZpZWQAAAAACQAAAgAAAAECAAAAFUFzc2V0IG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AAHJG1hdGNoMAkABCIAAAABCQEAAAAJa2V5U3RhdHVzAAAAAgUAAAANYW1vdW50QXNzZXRJZAUAAAAMcHJpY2VBc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMFAAAABHVuaXQJAAUUAAAAAgUAAAADbmlsBQAAAAZzdGF0dXMAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5s5ordQ==", "chainId": 84, "height": 2186973, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8FR533YiSajVwX3MYfK5V8KYJF9QrBBSAjNTNETbVA2y Next: AhJ6m9whffe9z9uf4dMo8b6VLrSsWMRYPFCKMW2CyHVQ Diff:
Old | New | Differences | |
---|---|---|---|
145 | 145 | if ($isInstanceOf(S, "ByteVector")) | |
146 | 146 | then { | |
147 | 147 | let X = S | |
148 | - | if ((W.callerPublicKey == X)) | |
149 | - | then true | |
150 | - | else d() | |
148 | + | (W.callerPublicKey == X) | |
151 | 149 | } | |
152 | 150 | else if ($isInstanceOf(S, "Unit")) | |
153 | - | then if ((W.caller == this)) | |
154 | - | then true | |
155 | - | else d() | |
151 | + | then (W.caller == this) | |
156 | 152 | else throw("Match error") | |
157 | 153 | } | |
158 | 154 | ||
159 | 155 | ||
160 | - | func Y (W) = { | |
161 | - | let Z = split(valueOrElse(getString(q()), b), a) | |
162 | - | if (containsElement(Z, toBase58String(W.callerPublicKey))) | |
156 | + | func Y (W) = if (V(W)) | |
157 | + | then true | |
158 | + | else d() | |
159 | + | ||
160 | + | ||
161 | + | func Z (W) = { | |
162 | + | let aa = split(valueOrElse(getString(q()), b), a) | |
163 | + | if (containsElement(aa, toBase58String(W.callerPublicKey))) | |
163 | 164 | then true | |
164 | - | else { | |
165 | - | let aa = V(W) | |
166 | - | if ((aa == aa)) | |
167 | - | then true | |
168 | - | else throw("Strict value is not equal to itself.") | |
169 | - | } | |
165 | + | else Y(W) | |
170 | 166 | } | |
171 | 167 | ||
172 | 168 | ||
185 | 181 | ||
186 | 182 | @Callable(W) | |
187 | 183 | func constructor (aj,ak,al,am,an,ao,ap) = { | |
188 | - | let aq = | |
184 | + | let aq = Y(W) | |
189 | 185 | if ((aq == aq)) | |
190 | 186 | then [StringEntry(u(), aj), StringEntry(v(), ak), StringEntry(L(), makeString(al, a)), StringEntry(K(), makeString(am, a)), IntegerEntry(J(), an), StringEntry(H(), ao), IntegerEntry(I(), ap)] | |
191 | 187 | else throw("Strict value is not equal to itself.") | |
208 | 204 | let ao = ay._1 | |
209 | 205 | let az = ay._2 | |
210 | 206 | let aA = split(valueOrElse(getString(L()), b), a) | |
211 | - | let aB = valueOrErrorMessage(indexOf(aA, t), c) | |
212 | - | let aC = valueOrElse(getInteger(x()), 0) | |
213 | - | let aD = (aC + 1) | |
214 | - | let aE = [if (!(P(s, t))) | |
207 | + | let aB = 1 | |
208 | + | let aC = if (V(W)) | |
209 | + | then aB | |
210 | + | else { | |
211 | + | let aD = valueOrErrorMessage(indexOf(aA, t), c) | |
212 | + | value(parseInt(split(valueOrElse(getString(K()), b), a)[aD])) | |
213 | + | } | |
214 | + | let aE = valueOrElse(getInteger(x()), 0) | |
215 | + | let aF = (aE + 1) | |
216 | + | let aG = [if (!(P(s, t))) | |
215 | 217 | then true | |
216 | 218 | else g(), if ((av.issuer == W.caller)) | |
217 | 219 | then true | |
221 | 223 | then true | |
222 | 224 | else j(), if ((ar.amount >= getIntegerValue(J()))) | |
223 | 225 | then true | |
224 | - | else k(), if ((as.amount >= | |
226 | + | else k(), if ((as.amount >= aC)) | |
225 | 227 | then true | |
226 | - | else throw(), if ((at.amount == getInteger(I()))) | |
228 | + | else throw("invalid price asset amount"), if ((at.amount == getInteger(I()))) | |
227 | 229 | then true | |
228 | 230 | else throw()] | |
229 | - | if (( | |
230 | - | then [BooleanEntry(D(s, t), true), IntegerEntry(x(), | |
231 | + | if ((aG == aG)) | |
232 | + | then [BooleanEntry(D(s, t), true), IntegerEntry(x(), aF), StringEntry(w(s, t), (toString(aF) + y)), IntegerEntry(G(s, t), height), StringEntry(r(s, t), z), IntegerEntry(E(s, t), ar.amount), IntegerEntry(F(s, t), as.amount)] | |
231 | 233 | else throw("Strict value is not equal to itself.") | |
232 | 234 | } | |
233 | 235 | ||
234 | 236 | ||
235 | 237 | ||
236 | 238 | @Callable(W) | |
237 | - | func activate ( | |
238 | - | let | |
239 | + | func activate (aH,s,aI,t,aJ,aK) = { | |
240 | + | let aG = [Z(W), if (P(s, t)) | |
239 | 241 | then true | |
240 | 242 | else e(), if ((value(getString(r(s, t))) == z)) | |
241 | 243 | then true | |
242 | 244 | else m()] | |
243 | - | if (( | |
245 | + | if ((aG == aG)) | |
244 | 246 | then { | |
245 | - | let | |
246 | - | if (( | |
247 | + | let aL = invoke(O, "activateNewPool", [aH, s, t, ((aI + aJ) + "LP"), (((aI + "/") + aJ) + " pool liquidity provider token"), 0, "VLTPOOL", aK], nil) | |
248 | + | if ((aL == aL)) | |
247 | 249 | then { | |
248 | - | let | |
249 | - | let S = | |
250 | + | let aM = { | |
251 | + | let S = aL | |
250 | 252 | if ($isInstanceOf(S, "String")) | |
251 | 253 | then { | |
252 | 254 | let af = S | |
254 | 256 | } | |
255 | 257 | else n() | |
256 | 258 | } | |
257 | - | if (( | |
259 | + | if ((aM == aM)) | |
258 | 260 | then { | |
259 | - | let | |
260 | - | if (( | |
261 | + | let aN = assetBalance(this, fromBase58String(aM)) | |
262 | + | if ((aN == aN)) | |
261 | 263 | then { | |
262 | - | let | |
263 | - | if (( | |
264 | + | let aO = invoke(addressFromStringValue(aH), "put", [0, false], [AttachedPayment(fromBase58String(s), value(getInteger(E(s, t)))), AttachedPayment(fromBase58String(t), value(getInteger(F(s, t))))]) | |
265 | + | if ((aO == aO)) | |
264 | 266 | then { | |
265 | - | let | |
266 | - | if (( | |
267 | + | let aP = assetBalance(this, fromBase58String(aM)) | |
268 | + | if ((aP == aP)) | |
267 | 269 | then { | |
268 | - | let | |
269 | - | [StringEntry(r(s, t), B), ScriptTransfer( | |
270 | + | let aQ = value(assetInfo(fromBase58String(s))).issuer | |
271 | + | [StringEntry(r(s, t), B), ScriptTransfer(aQ, (aP - aN), fromBase58String(aM))] | |
270 | 272 | } | |
271 | 273 | else throw("Strict value is not equal to itself.") | |
272 | 274 | } | |
284 | 286 | ||
285 | 287 | ||
286 | 288 | @Callable(W) | |
287 | - | func setAdmins ( | |
288 | - | let aq = | |
289 | + | func setAdmins (aR) = { | |
290 | + | let aq = Y(W) | |
289 | 291 | if ((aq == aq)) | |
290 | - | then [StringEntry(q(), makeString( | |
292 | + | then [StringEntry(q(), makeString(aR, a))] | |
291 | 293 | else throw("Strict value is not equal to itself.") | |
292 | 294 | } | |
293 | 295 | ||
294 | 296 | ||
295 | 297 | ||
296 | 298 | @Callable(W) | |
297 | - | func setManager ( | |
298 | - | let aq = | |
299 | + | func setManager (aS) = { | |
300 | + | let aq = Y(W) | |
299 | 301 | if ((aq == aq)) | |
300 | 302 | then { | |
301 | - | let | |
302 | - | if (( | |
303 | - | then [StringEntry(p(), | |
303 | + | let aT = fromBase58String(aS) | |
304 | + | if ((aT == aT)) | |
305 | + | then [StringEntry(p(), aS)] | |
304 | 306 | else throw("Strict value is not equal to itself.") | |
305 | 307 | } | |
306 | 308 | else throw("Strict value is not equal to itself.") | |
310 | 312 | ||
311 | 313 | @Callable(W) | |
312 | 314 | func confirmManager () = { | |
313 | - | let | |
314 | - | let | |
315 | + | let aU = U() | |
316 | + | let aV = if (isDefined(aU)) | |
315 | 317 | then true | |
316 | 318 | else throw("No pending manager") | |
317 | - | if (( | |
319 | + | if ((aV == aV)) | |
318 | 320 | then { | |
319 | - | let | |
321 | + | let aW = if ((W.callerPublicKey == value(aU))) | |
320 | 322 | then true | |
321 | 323 | else throw("You are not pending manager") | |
322 | - | if (( | |
323 | - | then [StringEntry(o(), toBase58String(value( | |
324 | + | if ((aW == aW)) | |
325 | + | then [StringEntry(o(), toBase58String(value(aU))), DeleteEntry(p())] | |
324 | 326 | else throw("Strict value is not equal to itself.") | |
325 | 327 | } | |
326 | 328 | else throw("Strict value is not equal to itself.") | |
330 | 332 | ||
331 | 333 | @Callable(W) | |
332 | 334 | func priceAssetsREADONLY () = { | |
333 | - | let | |
335 | + | let aX = { | |
334 | 336 | let S = getString(L()) | |
335 | 337 | if ($isInstanceOf(S, "String")) | |
336 | 338 | then { | |
341 | 343 | } | |
342 | 344 | else nil | |
343 | 345 | } | |
344 | - | $Tuple2(nil, | |
346 | + | $Tuple2(nil, aX) | |
345 | 347 | } | |
346 | 348 | ||
347 | 349 | ||
361 | 363 | } | |
362 | 364 | ||
363 | 365 | ||
364 | - | @Verifier( | |
365 | - | func | |
366 | - | let | |
366 | + | @Verifier(aY) | |
367 | + | func aZ () = { | |
368 | + | let ba = { | |
367 | 369 | let S = R() | |
368 | 370 | if ($isInstanceOf(S, "ByteVector")) | |
369 | 371 | then { | |
371 | 373 | X | |
372 | 374 | } | |
373 | 375 | else if ($isInstanceOf(S, "Unit")) | |
374 | - | then | |
376 | + | then aY.senderPublicKey | |
375 | 377 | else throw("Match error") | |
376 | 378 | } | |
377 | - | sigVerify( | |
379 | + | sigVerify(aY.bodyBytes, aY.proofs[0], ba) | |
378 | 380 | } | |
379 | 381 |
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 = "" | |
7 | 7 | ||
8 | 8 | let c = "Invalid price asset" | |
9 | 9 | ||
10 | 10 | func d () = throw("Permission denied") | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e () = throw("Create is not called for assets pair") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func f () = throw("You are not amountAsset issuer") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func g () = throw("Pool with such assets already exists") | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func h () = throw("Asset is not verified") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func i () = throw(c) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func j () = throw("Invalid fee asset") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func k () = throw("Invalid amount asset attached") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func l () = throw("Invalid status") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func m () = throw("Can activate pool only in 'pending' status") | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func n () = throw("FactoryV2 returned not string") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func o () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p () = makeString(["%s", "pendingManagerPublicKey"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func q () = makeString(["%s", "adminPubKeys"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func r (s,t) = makeString(["%s%s%s", "status", s, t], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u () = makeString(["%s", "factoryContract"], a) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v () = makeString(["%s", "assetsStoreContract"], a) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w (s,t) = makeString(["%s%s%s", "suffix", s, t], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func x () = makeString(["%s", "lastIndex"], a) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | let y = "u" | |
68 | 68 | ||
69 | 69 | let z = "pending" | |
70 | 70 | ||
71 | 71 | let A = "declined" | |
72 | 72 | ||
73 | 73 | let B = "active" | |
74 | 74 | ||
75 | 75 | let C = [z, A, B] | |
76 | 76 | ||
77 | 77 | func D (s,t) = makeString(["%s%s%s", "createCalled", s, t], a) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func E (s,t) = makeString(["%s%s%s", "amountAssetAmount", s, t], a) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F (s,t) = makeString(["%s%s%s", "priceAssetAmount", s, t], a) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G (s,t) = makeString(["%s%s%s", "height", s, t], a) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H () = makeString(["%s", "feeAssetId"], a) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func I () = makeString(["%s", "feeAmount"], a) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func J () = makeString(["%s", "amountAssetMinAmount"], a) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func K () = makeString(["%s", "priceAssetsMinAmount"], a) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func L () = makeString(["%s", "priceAssetIds"], a) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func M (N) = valueOrErrorMessage(getString(this, N), (N + " is not defined")) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let O = addressFromStringValue(M(u())) | |
108 | 108 | ||
109 | 109 | func P (s,t) = valueOrElse(getBoolean(D(s, t)), false) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func Q (s,t) = if (P(s, t)) | |
113 | 113 | then true | |
114 | 114 | else e() | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func R () = { | |
118 | 118 | let S = getString(o()) | |
119 | 119 | if ($isInstanceOf(S, "String")) | |
120 | 120 | then { | |
121 | 121 | let T = S | |
122 | 122 | fromBase58String(T) | |
123 | 123 | } | |
124 | 124 | else if ($isInstanceOf(S, "Unit")) | |
125 | 125 | then unit | |
126 | 126 | else throw("Match error") | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func U () = { | |
131 | 131 | let S = getString(p()) | |
132 | 132 | if ($isInstanceOf(S, "String")) | |
133 | 133 | then { | |
134 | 134 | let T = S | |
135 | 135 | fromBase58String(T) | |
136 | 136 | } | |
137 | 137 | else if ($isInstanceOf(S, "Unit")) | |
138 | 138 | then unit | |
139 | 139 | else throw("Match error") | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func V (W) = { | |
144 | 144 | let S = R() | |
145 | 145 | if ($isInstanceOf(S, "ByteVector")) | |
146 | 146 | then { | |
147 | 147 | let X = S | |
148 | - | if ((W.callerPublicKey == X)) | |
149 | - | then true | |
150 | - | else d() | |
148 | + | (W.callerPublicKey == X) | |
151 | 149 | } | |
152 | 150 | else if ($isInstanceOf(S, "Unit")) | |
153 | - | then if ((W.caller == this)) | |
154 | - | then true | |
155 | - | else d() | |
151 | + | then (W.caller == this) | |
156 | 152 | else throw("Match error") | |
157 | 153 | } | |
158 | 154 | ||
159 | 155 | ||
160 | - | func Y (W) = { | |
161 | - | let Z = split(valueOrElse(getString(q()), b), a) | |
162 | - | if (containsElement(Z, toBase58String(W.callerPublicKey))) | |
156 | + | func Y (W) = if (V(W)) | |
157 | + | then true | |
158 | + | else d() | |
159 | + | ||
160 | + | ||
161 | + | func Z (W) = { | |
162 | + | let aa = split(valueOrElse(getString(q()), b), a) | |
163 | + | if (containsElement(aa, toBase58String(W.callerPublicKey))) | |
163 | 164 | then true | |
164 | - | else { | |
165 | - | let aa = V(W) | |
166 | - | if ((aa == aa)) | |
167 | - | then true | |
168 | - | else throw("Strict value is not equal to itself.") | |
169 | - | } | |
165 | + | else Y(W) | |
170 | 166 | } | |
171 | 167 | ||
172 | 168 | ||
173 | 169 | func ab (ac) = (valueOrElse(getInteger(addressFromStringValue(M(v())), (("status_<" + ac) + ">")), 0) == 2) | |
174 | 170 | ||
175 | 171 | ||
176 | 172 | func ad (ae) = { | |
177 | 173 | let af = value(ae.assetId) | |
178 | 174 | let ag = value(assetInfo(af)) | |
179 | 175 | $Tuple2(toBase58String(af), ag) | |
180 | 176 | } | |
181 | 177 | ||
182 | 178 | ||
183 | 179 | func ah (ai) = containsElement(C, ai) | |
184 | 180 | ||
185 | 181 | ||
186 | 182 | @Callable(W) | |
187 | 183 | func constructor (aj,ak,al,am,an,ao,ap) = { | |
188 | - | let aq = | |
184 | + | let aq = Y(W) | |
189 | 185 | if ((aq == aq)) | |
190 | 186 | then [StringEntry(u(), aj), StringEntry(v(), ak), StringEntry(L(), makeString(al, a)), StringEntry(K(), makeString(am, a)), IntegerEntry(J(), an), StringEntry(H(), ao), IntegerEntry(I(), ap)] | |
191 | 187 | else throw("Strict value is not equal to itself.") | |
192 | 188 | } | |
193 | 189 | ||
194 | 190 | ||
195 | 191 | ||
196 | 192 | @Callable(W) | |
197 | 193 | func create () = { | |
198 | 194 | let ar = value(W.payments[0]) | |
199 | 195 | let as = value(W.payments[1]) | |
200 | 196 | let at = value(W.payments[2]) | |
201 | 197 | let au = ad(ar) | |
202 | 198 | let s = au._1 | |
203 | 199 | let av = au._2 | |
204 | 200 | let aw = ad(as) | |
205 | 201 | let t = aw._1 | |
206 | 202 | let ax = aw._2 | |
207 | 203 | let ay = ad(at) | |
208 | 204 | let ao = ay._1 | |
209 | 205 | let az = ay._2 | |
210 | 206 | let aA = split(valueOrElse(getString(L()), b), a) | |
211 | - | let aB = valueOrErrorMessage(indexOf(aA, t), c) | |
212 | - | let aC = valueOrElse(getInteger(x()), 0) | |
213 | - | let aD = (aC + 1) | |
214 | - | let aE = [if (!(P(s, t))) | |
207 | + | let aB = 1 | |
208 | + | let aC = if (V(W)) | |
209 | + | then aB | |
210 | + | else { | |
211 | + | let aD = valueOrErrorMessage(indexOf(aA, t), c) | |
212 | + | value(parseInt(split(valueOrElse(getString(K()), b), a)[aD])) | |
213 | + | } | |
214 | + | let aE = valueOrElse(getInteger(x()), 0) | |
215 | + | let aF = (aE + 1) | |
216 | + | let aG = [if (!(P(s, t))) | |
215 | 217 | then true | |
216 | 218 | else g(), if ((av.issuer == W.caller)) | |
217 | 219 | then true | |
218 | 220 | else f(), if (ab(s)) | |
219 | 221 | then true | |
220 | 222 | else h(), if ((getString(H()) == ao)) | |
221 | 223 | then true | |
222 | 224 | else j(), if ((ar.amount >= getIntegerValue(J()))) | |
223 | 225 | then true | |
224 | - | else k(), if ((as.amount >= | |
226 | + | else k(), if ((as.amount >= aC)) | |
225 | 227 | then true | |
226 | - | else throw(), if ((at.amount == getInteger(I()))) | |
228 | + | else throw("invalid price asset amount"), if ((at.amount == getInteger(I()))) | |
227 | 229 | then true | |
228 | 230 | else throw()] | |
229 | - | if (( | |
230 | - | then [BooleanEntry(D(s, t), true), IntegerEntry(x(), | |
231 | + | if ((aG == aG)) | |
232 | + | then [BooleanEntry(D(s, t), true), IntegerEntry(x(), aF), StringEntry(w(s, t), (toString(aF) + y)), IntegerEntry(G(s, t), height), StringEntry(r(s, t), z), IntegerEntry(E(s, t), ar.amount), IntegerEntry(F(s, t), as.amount)] | |
231 | 233 | else throw("Strict value is not equal to itself.") | |
232 | 234 | } | |
233 | 235 | ||
234 | 236 | ||
235 | 237 | ||
236 | 238 | @Callable(W) | |
237 | - | func activate ( | |
238 | - | let | |
239 | + | func activate (aH,s,aI,t,aJ,aK) = { | |
240 | + | let aG = [Z(W), if (P(s, t)) | |
239 | 241 | then true | |
240 | 242 | else e(), if ((value(getString(r(s, t))) == z)) | |
241 | 243 | then true | |
242 | 244 | else m()] | |
243 | - | if (( | |
245 | + | if ((aG == aG)) | |
244 | 246 | then { | |
245 | - | let | |
246 | - | if (( | |
247 | + | let aL = invoke(O, "activateNewPool", [aH, s, t, ((aI + aJ) + "LP"), (((aI + "/") + aJ) + " pool liquidity provider token"), 0, "VLTPOOL", aK], nil) | |
248 | + | if ((aL == aL)) | |
247 | 249 | then { | |
248 | - | let | |
249 | - | let S = | |
250 | + | let aM = { | |
251 | + | let S = aL | |
250 | 252 | if ($isInstanceOf(S, "String")) | |
251 | 253 | then { | |
252 | 254 | let af = S | |
253 | 255 | af | |
254 | 256 | } | |
255 | 257 | else n() | |
256 | 258 | } | |
257 | - | if (( | |
259 | + | if ((aM == aM)) | |
258 | 260 | then { | |
259 | - | let | |
260 | - | if (( | |
261 | + | let aN = assetBalance(this, fromBase58String(aM)) | |
262 | + | if ((aN == aN)) | |
261 | 263 | then { | |
262 | - | let | |
263 | - | if (( | |
264 | + | let aO = invoke(addressFromStringValue(aH), "put", [0, false], [AttachedPayment(fromBase58String(s), value(getInteger(E(s, t)))), AttachedPayment(fromBase58String(t), value(getInteger(F(s, t))))]) | |
265 | + | if ((aO == aO)) | |
264 | 266 | then { | |
265 | - | let | |
266 | - | if (( | |
267 | + | let aP = assetBalance(this, fromBase58String(aM)) | |
268 | + | if ((aP == aP)) | |
267 | 269 | then { | |
268 | - | let | |
269 | - | [StringEntry(r(s, t), B), ScriptTransfer( | |
270 | + | let aQ = value(assetInfo(fromBase58String(s))).issuer | |
271 | + | [StringEntry(r(s, t), B), ScriptTransfer(aQ, (aP - aN), fromBase58String(aM))] | |
270 | 272 | } | |
271 | 273 | else throw("Strict value is not equal to itself.") | |
272 | 274 | } | |
273 | 275 | else throw("Strict value is not equal to itself.") | |
274 | 276 | } | |
275 | 277 | else throw("Strict value is not equal to itself.") | |
276 | 278 | } | |
277 | 279 | else throw("Strict value is not equal to itself.") | |
278 | 280 | } | |
279 | 281 | else throw("Strict value is not equal to itself.") | |
280 | 282 | } | |
281 | 283 | else throw("Strict value is not equal to itself.") | |
282 | 284 | } | |
283 | 285 | ||
284 | 286 | ||
285 | 287 | ||
286 | 288 | @Callable(W) | |
287 | - | func setAdmins ( | |
288 | - | let aq = | |
289 | + | func setAdmins (aR) = { | |
290 | + | let aq = Y(W) | |
289 | 291 | if ((aq == aq)) | |
290 | - | then [StringEntry(q(), makeString( | |
292 | + | then [StringEntry(q(), makeString(aR, a))] | |
291 | 293 | else throw("Strict value is not equal to itself.") | |
292 | 294 | } | |
293 | 295 | ||
294 | 296 | ||
295 | 297 | ||
296 | 298 | @Callable(W) | |
297 | - | func setManager ( | |
298 | - | let aq = | |
299 | + | func setManager (aS) = { | |
300 | + | let aq = Y(W) | |
299 | 301 | if ((aq == aq)) | |
300 | 302 | then { | |
301 | - | let | |
302 | - | if (( | |
303 | - | then [StringEntry(p(), | |
303 | + | let aT = fromBase58String(aS) | |
304 | + | if ((aT == aT)) | |
305 | + | then [StringEntry(p(), aS)] | |
304 | 306 | else throw("Strict value is not equal to itself.") | |
305 | 307 | } | |
306 | 308 | else throw("Strict value is not equal to itself.") | |
307 | 309 | } | |
308 | 310 | ||
309 | 311 | ||
310 | 312 | ||
311 | 313 | @Callable(W) | |
312 | 314 | func confirmManager () = { | |
313 | - | let | |
314 | - | let | |
315 | + | let aU = U() | |
316 | + | let aV = if (isDefined(aU)) | |
315 | 317 | then true | |
316 | 318 | else throw("No pending manager") | |
317 | - | if (( | |
319 | + | if ((aV == aV)) | |
318 | 320 | then { | |
319 | - | let | |
321 | + | let aW = if ((W.callerPublicKey == value(aU))) | |
320 | 322 | then true | |
321 | 323 | else throw("You are not pending manager") | |
322 | - | if (( | |
323 | - | then [StringEntry(o(), toBase58String(value( | |
324 | + | if ((aW == aW)) | |
325 | + | then [StringEntry(o(), toBase58String(value(aU))), DeleteEntry(p())] | |
324 | 326 | else throw("Strict value is not equal to itself.") | |
325 | 327 | } | |
326 | 328 | else throw("Strict value is not equal to itself.") | |
327 | 329 | } | |
328 | 330 | ||
329 | 331 | ||
330 | 332 | ||
331 | 333 | @Callable(W) | |
332 | 334 | func priceAssetsREADONLY () = { | |
333 | - | let | |
335 | + | let aX = { | |
334 | 336 | let S = getString(L()) | |
335 | 337 | if ($isInstanceOf(S, "String")) | |
336 | 338 | then { | |
337 | 339 | let T = S | |
338 | 340 | if ((size(T) == 0)) | |
339 | 341 | then nil | |
340 | 342 | else split(T, a) | |
341 | 343 | } | |
342 | 344 | else nil | |
343 | 345 | } | |
344 | - | $Tuple2(nil, | |
346 | + | $Tuple2(nil, aX) | |
345 | 347 | } | |
346 | 348 | ||
347 | 349 | ||
348 | 350 | ||
349 | 351 | @Callable(W) | |
350 | 352 | func statusREADONLY (s,t) = { | |
351 | 353 | let ai = { | |
352 | 354 | let S = getString(r(s, t)) | |
353 | 355 | if ($isInstanceOf(S, "String")) | |
354 | 356 | then { | |
355 | 357 | let T = S | |
356 | 358 | T | |
357 | 359 | } | |
358 | 360 | else unit | |
359 | 361 | } | |
360 | 362 | $Tuple2(nil, ai) | |
361 | 363 | } | |
362 | 364 | ||
363 | 365 | ||
364 | - | @Verifier( | |
365 | - | func | |
366 | - | let | |
366 | + | @Verifier(aY) | |
367 | + | func aZ () = { | |
368 | + | let ba = { | |
367 | 369 | let S = R() | |
368 | 370 | if ($isInstanceOf(S, "ByteVector")) | |
369 | 371 | then { | |
370 | 372 | let X = S | |
371 | 373 | X | |
372 | 374 | } | |
373 | 375 | else if ($isInstanceOf(S, "Unit")) | |
374 | - | then | |
376 | + | then aY.senderPublicKey | |
375 | 377 | else throw("Match error") | |
376 | 378 | } | |
377 | - | sigVerify( | |
379 | + | sigVerify(aY.bodyBytes, aY.proofs[0], ba) | |
378 | 380 | } | |
379 | 381 |
github/deemru/w8io/026f985 64.55 ms ◑