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