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