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