tx · GF22pAHoqkVWwjBzh7znDA6broC8QfRbGVMEWfefydp6 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02500000 Waves 2023.06.21 11:41 [2632175] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "GF22pAHoqkVWwjBzh7znDA6broC8QfRbGVMEWfefydp6", "fee": 2500000, "feeAssetId": null, "timestamp": 1687336895216, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "3cvbwyn1CXwZe4qgCJZM4oqi5NNXd1UyeB7dCt9GfVE4ASg6UTEi9kLbGgAwmRXTZCYVEXK6ZRB9VPk2GuxXpuxf" ], "script": "base64:BgLZKggCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgiBlNDQUxFOCIFTVVMVDgiBk1VTFQxMiIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCILd2F2ZXNTdHJpbmciEWRlY2ltYWxzTXVsdFByaWNlIgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biISaWR4SW50ZXJuYWxBc3NldElkIg9pZHhSZXN1dEFjdGlvbnMiIGlk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IFA25pbAkAzAgCBQJlVgkAzAgCBQJlVwkAzAgCBQJlWAUDbmlsAmJ5ARVnZXRQb29sV2VpZ2h0UkVBRE9OTFkBAmJRBAJhYQkBAmFUAQkBAmF5AQUCYlEEAmVZCQELdmFsdWVPckVsc2UCCQCfCAEJAQFaAQUCYWEAAAkAlAoCBQNuaWwFAmVZAQJlWgECZmEABAJmYgQCYmEJAQJidAADCQABAgUCYmECCkJ5dGVWZWN0b3IEAmJBBQJiYQUCYkEDCQABAgUCYmECBFVuaXQIBQJlWg9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZVoJYm9keUJ5dGVzCQCRAwIIBQJlWgZwcm9vZnMAAAUCZmKMPpMa", "height": 2632175, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fbu3LcjNjY2fKFv6zNepNRNCHRHQn2td49g6E64eyy3i Next: 7qHNU28LTEdeHnhAG5KYoJ6w53Q6s6EufAfRqe6LvMJY Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = ((100 * 1000) * 1000) | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = "__" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 1 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 2 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 3 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 4 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 1 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 2 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 3 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 1 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 2 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 3 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 4 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 5 | |
53 | 53 | ||
54 | - | let z = | |
54 | + | let z = 6 | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = 7 | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = 8 | |
59 | 59 | ||
60 | - | let C = | |
60 | + | let C = 9 | |
61 | 61 | ||
62 | - | let D = | |
62 | + | let D = 10 | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = 11 | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = "WX_EMISSION" | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = [F] | |
69 | 69 | ||
70 | - | let H = [G] | |
71 | - | ||
72 | - | func I (J) = makeString([k, ": ", J], "") | |
70 | + | func H () = "%s__allowedLpScriptHash" | |
73 | 71 | ||
74 | 72 | ||
75 | - | func | |
73 | + | func I () = "%s__allowedLpStableScriptHash" | |
76 | 74 | ||
77 | 75 | ||
78 | - | func | |
76 | + | func J () = "%s__swapContract" | |
79 | 77 | ||
80 | 78 | ||
81 | - | func | |
79 | + | func K () = "%s__factoryConfig" | |
82 | 80 | ||
83 | 81 | ||
84 | - | func | |
82 | + | func L () = "%s__lpTokensList" | |
85 | 83 | ||
86 | 84 | ||
87 | - | func | |
85 | + | func M () = "%s%s__pool__scriptHash" | |
88 | 86 | ||
89 | 87 | ||
90 | - | func | |
88 | + | func N () = "%s%s__matcher__publicKey" | |
91 | 89 | ||
92 | 90 | ||
93 | - | func | |
91 | + | func O () = "%s__legacyFactoryContract" | |
94 | 92 | ||
95 | 93 | ||
96 | - | func | |
94 | + | func P () = "%s__legacyPools" | |
97 | 95 | ||
98 | 96 | ||
99 | - | func | |
97 | + | func Q () = "%s__managerPublicKey" | |
100 | 98 | ||
101 | 99 | ||
102 | - | func | |
100 | + | func R () = "%s__managerVaultAddress" | |
103 | 101 | ||
104 | 102 | ||
105 | - | func | |
103 | + | func S () = "%s__adminPubKeys" | |
106 | 104 | ||
107 | 105 | ||
108 | - | func | |
106 | + | func T () = "%s__assetsStoreContract" | |
109 | 107 | ||
110 | 108 | ||
111 | - | func | |
109 | + | func U () = "%s__votingEmissionContract" | |
112 | 110 | ||
113 | 111 | ||
114 | - | func | |
112 | + | func V () = makeString(["%s", "priceAssets"], l) | |
115 | 113 | ||
116 | 114 | ||
117 | - | func | |
115 | + | func W () = "%s__priceDecimals" | |
118 | 116 | ||
119 | 117 | ||
120 | - | func | |
118 | + | func X () = "%s__shutdown" | |
121 | 119 | ||
122 | 120 | ||
123 | - | func | |
121 | + | func Y () = "%s__nextInternalAssetId" | |
124 | 122 | ||
125 | 123 | ||
126 | - | func | |
124 | + | func Z (aa) = ("%s%s__poolWeight__" + aa) | |
127 | 125 | ||
128 | 126 | ||
129 | - | func | |
127 | + | func ab (aa,ac) = ((("%s%s__poolWeight__" + aa) + "__") + toString(ac)) | |
130 | 128 | ||
131 | 129 | ||
132 | - | func ad () = "%s__ | |
130 | + | func ad (ae) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(ae)) | |
133 | 131 | ||
134 | 132 | ||
135 | - | func | |
133 | + | func af (ag) = ("%s%s%s__mappings__baseAsset2internalId__" + ag) | |
136 | 134 | ||
137 | 135 | ||
138 | - | func | |
136 | + | func ah (ai,aj) = (((("%d%d%s__" + ai) + "__") + aj) + "__config") | |
139 | 137 | ||
140 | 138 | ||
141 | - | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | - | ||
143 | - | ||
144 | - | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | - | ||
146 | - | ||
147 | - | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | - | ||
149 | - | ||
150 | - | func ap (aq) = { | |
151 | - | let ar = aq | |
152 | - | let an = ar._1 | |
153 | - | let ao = ar._2 | |
154 | - | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
139 | + | func ak (al) = { | |
140 | + | let am = al | |
141 | + | let ai = am._1 | |
142 | + | let aj = am._2 | |
143 | + | makeString(["%d%d%s", toString(ai), toString(aj), "oneTokenOperationsDisabled"], l) | |
155 | 144 | } | |
156 | 145 | ||
157 | 146 | ||
158 | - | func | |
147 | + | func an () = makeString(["%s", "oneTokenOperationsDisabled"], l) | |
159 | 148 | ||
160 | 149 | ||
161 | - | func | |
150 | + | func ao (ap) = (("%s%s%s__" + ap) + "__mappings__lpAsset2Pool") | |
162 | 151 | ||
163 | 152 | ||
164 | - | func | |
153 | + | func aq (ar,as) = (((("%d%d%s%s__" + ar) + "__") + as) + "__mappings__PoolAssets2LpAsset") | |
165 | 154 | ||
166 | 155 | ||
167 | - | func | |
156 | + | func at (aa) = ("%s%s__spread__" + aa) | |
168 | 157 | ||
169 | 158 | ||
170 | - | func | |
159 | + | func au (av) = (("%s%s%s__" + av) + "__mappings__poolContract2PoolAssets") | |
171 | 160 | ||
172 | 161 | ||
173 | - | func | |
162 | + | func aw (ar,as) = (((("%d%d%s%s__" + toString(ar)) + "__") + toString(as)) + "__mappings__poolAssets2PoolContract") | |
174 | 163 | ||
175 | 164 | ||
176 | - | func | |
165 | + | func ax (av) = (("%s%s%s__" + av) + "__mappings__poolContract2LpAsset") | |
177 | 166 | ||
178 | 167 | ||
179 | - | func | |
168 | + | func ay (ap) = (("%s%s%s__" + ap) + "__mappings__lpAsset2PoolContract") | |
180 | 169 | ||
181 | 170 | ||
182 | - | func | |
171 | + | func az (aA,aB) = ((("%s%s%s__wxEmission__" + aA) + "__") + aB) | |
183 | 172 | ||
184 | 173 | ||
185 | - | func | |
174 | + | func aC (aa) = ("%s%s__inFee__" + aa) | |
186 | 175 | ||
187 | 176 | ||
188 | - | func | |
177 | + | func aD () = "%s__inFeeDefault" | |
189 | 178 | ||
190 | 179 | ||
191 | - | func | |
180 | + | func aE (aa) = ("%s%s__outFee__" + aa) | |
192 | 181 | ||
193 | 182 | ||
194 | - | func | |
183 | + | func aF () = "%s__outFeeDefault" | |
195 | 184 | ||
196 | 185 | ||
197 | - | func | |
186 | + | func aG (aa) = ("%s%s__skipOrderValidation__" + aa) | |
198 | 187 | ||
199 | 188 | ||
200 | - | func | |
189 | + | func aH (aa) = ("%s%s__changeAmpDelay__" + aa) | |
201 | 190 | ||
202 | 191 | ||
203 | - | func | |
192 | + | func aI (aa) = ("%s%s__changeAmpDelta__" + aa) | |
204 | 193 | ||
205 | 194 | ||
206 | - | func | |
195 | + | func aJ (aa) = ("%s%s__changeAmpTarget__" + aa) | |
207 | 196 | ||
208 | 197 | ||
209 | - | func | |
198 | + | func aK () = "%s__sWavesProxyAddress" | |
210 | 199 | ||
211 | 200 | ||
212 | - | func | |
201 | + | func aL () = "%s__sWavesAssetId" | |
213 | 202 | ||
214 | 203 | ||
215 | - | func | |
204 | + | func aM () = "%s__stakingProfitAddress" | |
216 | 205 | ||
217 | 206 | ||
218 | - | func | |
207 | + | func aN (aa,aO) = makeString(["%s%s%s", "leasedRatio", aa, aO], l) | |
219 | 208 | ||
220 | 209 | ||
221 | - | func | |
210 | + | func aP (aO) = makeString(["%s%s", "leasedRatioDefault", aO], l) | |
222 | 211 | ||
223 | 212 | ||
224 | - | func | |
213 | + | func aQ (aa,aO) = makeString(["%s%s%s", "leasedRatioTolerance", aa, aO], l) | |
225 | 214 | ||
226 | 215 | ||
227 | - | func | |
216 | + | func aR (aa,aO) = makeString(["%s%s%s", "minBalance", aa, aO], l) | |
228 | 217 | ||
229 | 218 | ||
230 | - | func | |
219 | + | func aS (aO) = makeString(["%s%s", "minBalanceDefault", aO], l) | |
231 | 220 | ||
232 | 221 | ||
233 | - | func | |
222 | + | func aT (aU) = valueOrErrorMessage(getString(this, aU), ("No data for this.key=" + aU)) | |
234 | 223 | ||
235 | 224 | ||
236 | - | func | |
225 | + | func aV (aU) = valueOrErrorMessage(getBoolean(this, aU), ("No data for this.key=" + aU)) | |
237 | 226 | ||
238 | 227 | ||
239 | - | func | |
228 | + | func aW (aU) = valueOrErrorMessage(getInteger(this, aU), ("No data for this.key=" + aU)) | |
240 | 229 | ||
241 | 230 | ||
242 | - | func | |
231 | + | func aX (aY) = if ((aY == j)) | |
243 | 232 | then unit | |
244 | - | else fromBase58String( | |
233 | + | else fromBase58String(aY) | |
245 | 234 | ||
246 | 235 | ||
247 | - | func | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
236 | + | func aZ () = { | |
237 | + | let ba = getString(R()) | |
238 | + | if ($isInstanceOf(ba, "String")) | |
250 | 239 | then { | |
251 | - | let | |
252 | - | addressFromStringValue( | |
240 | + | let bb = ba | |
241 | + | addressFromStringValue(bb) | |
253 | 242 | } | |
254 | 243 | else this | |
255 | 244 | } | |
256 | 245 | ||
257 | 246 | ||
258 | - | let | |
247 | + | let bc = 1 | |
259 | 248 | ||
260 | - | let | |
249 | + | let bd = 2 | |
261 | 250 | ||
262 | - | let | |
251 | + | let be = 3 | |
263 | 252 | ||
264 | - | let | |
253 | + | let bf = 4 | |
265 | 254 | ||
266 | - | let | |
255 | + | let bg = 5 | |
267 | 256 | ||
268 | - | let | |
257 | + | let bh = 6 | |
269 | 258 | ||
270 | - | let | |
259 | + | let bi = 7 | |
271 | 260 | ||
272 | - | let | |
261 | + | let bj = 8 | |
273 | 262 | ||
274 | - | let | |
263 | + | let bk = 9 | |
275 | 264 | ||
276 | - | let | |
265 | + | let bl = 10 | |
277 | 266 | ||
278 | - | let | |
267 | + | let bm = 11 | |
279 | 268 | ||
280 | - | func | |
269 | + | func bn (bo) = addressFromStringValue(bo[bd]) | |
281 | 270 | ||
282 | 271 | ||
283 | - | func | |
272 | + | func bp (bo) = addressFromStringValue(bo[bg]) | |
284 | 273 | ||
285 | 274 | ||
286 | - | func | |
275 | + | func bq (bo) = addressFromStringValue(bo[bc]) | |
287 | 276 | ||
288 | 277 | ||
289 | - | func | |
278 | + | func br (bo) = addressFromStringValue(bo[bl]) | |
290 | 279 | ||
291 | 280 | ||
292 | - | func | |
293 | - | let | |
294 | - | if ($isInstanceOf( | |
281 | + | func bs () = { | |
282 | + | let ba = getString(V()) | |
283 | + | if ($isInstanceOf(ba, "String")) | |
295 | 284 | then { | |
296 | - | let | |
297 | - | if ((size( | |
285 | + | let bb = ba | |
286 | + | if ((size(bb) == 0)) | |
298 | 287 | then nil | |
299 | - | else split( | |
288 | + | else split(bb, l) | |
300 | 289 | } | |
301 | 290 | else nil | |
302 | 291 | } | |
303 | 292 | ||
304 | 293 | ||
305 | - | func | |
306 | - | let | |
307 | - | let | |
308 | - | if ($isInstanceOf( | |
294 | + | func bt () = { | |
295 | + | let bu = aZ() | |
296 | + | let ba = getString(bu, Q()) | |
297 | + | if ($isInstanceOf(ba, "String")) | |
309 | 298 | then { | |
310 | - | let | |
311 | - | fromBase58String( | |
299 | + | let bb = ba | |
300 | + | fromBase58String(bb) | |
312 | 301 | } | |
313 | - | else if ($isInstanceOf( | |
302 | + | else if ($isInstanceOf(ba, "Unit")) | |
314 | 303 | then unit | |
315 | 304 | else throw("Match error") | |
316 | 305 | } | |
317 | 306 | ||
318 | 307 | ||
319 | - | let | |
308 | + | let bv = throw("Permission denied") | |
320 | 309 | ||
321 | - | let | |
310 | + | let bw = throw("Test error here") | |
322 | 311 | ||
323 | - | func | |
312 | + | func bx (by) = if ((by.caller == this)) | |
324 | 313 | then true | |
325 | - | else | |
314 | + | else bv | |
326 | 315 | ||
327 | 316 | ||
328 | - | func | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
317 | + | func bz (by) = { | |
318 | + | let ba = bt() | |
319 | + | if ($isInstanceOf(ba, "ByteVector")) | |
331 | 320 | then { | |
332 | - | let | |
333 | - | if (( | |
321 | + | let bA = ba | |
322 | + | if ((by.callerPublicKey == bA)) | |
334 | 323 | then true | |
335 | - | else | |
324 | + | else bv | |
336 | 325 | } | |
337 | - | else if ($isInstanceOf( | |
338 | - | then | |
326 | + | else if ($isInstanceOf(ba, "Unit")) | |
327 | + | then bx(by) | |
339 | 328 | else throw("Match error") | |
340 | 329 | } | |
341 | 330 | ||
342 | 331 | ||
343 | - | func | |
332 | + | func bB (bC,bD,bE,bF,bG,bH,bI,bJ,bK,bL,bM) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM], l) | |
344 | 333 | ||
345 | 334 | ||
346 | - | func | |
335 | + | func bN (bC,bD,bE,bF,bG,bH,bI) = makeString(["%s%s%s%s%s%s", bC, bD, bE, bF, bG, bH, bI], l) | |
347 | 336 | ||
348 | 337 | ||
349 | - | func | |
338 | + | func bO (aa,bP,bQ,bR,bS,bT,bU,bV,bW,bX,bY) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", aa, bP, bQ, bR, bS, toString(bT), toString(bU), toString(bV), toString(bW), toString(bX), bY], l) | |
350 | 339 | ||
351 | 340 | ||
352 | - | func | |
341 | + | func bZ (ca,cb) = makeString(["%d%d", toString(ca), toString(cb)], l) | |
353 | 342 | ||
354 | 343 | ||
355 | - | func | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | split( | |
344 | + | func cc (aa) = { | |
345 | + | let cd = split(aT(au(aa)), l) | |
346 | + | let ai = cd[1] | |
347 | + | let aj = cd[2] | |
348 | + | split(aT(ah(ai, aj)), l) | |
360 | 349 | } | |
361 | 350 | ||
362 | 351 | ||
363 | - | func | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
352 | + | func ce (cf,cg) = { | |
353 | + | let ch = valueOrElse(getInteger(this, af(cf)), 0) | |
354 | + | let ci = valueOrElse(getInteger(this, Y()), 0) | |
355 | + | let cj = if ((ch == 0)) | |
367 | 356 | then { | |
368 | - | let | |
369 | - | $Tuple3( | |
357 | + | let ck = (ci + cg) | |
358 | + | $Tuple3(ck, [IntegerEntry(Y(), ck), IntegerEntry(af(cf), ck), StringEntry(ad(ck), cf)], true) | |
370 | 359 | } | |
371 | - | else $Tuple3( | |
372 | - | | |
360 | + | else $Tuple3(ch, nil, false) | |
361 | + | cj | |
373 | 362 | } | |
374 | 363 | ||
375 | 364 | ||
376 | - | func | |
377 | - | let | |
378 | - | if (containsElement( | |
365 | + | func cl (by) = { | |
366 | + | let cm = split(valueOrElse(getString(S()), m), l) | |
367 | + | if (containsElement(cm, toBase58String(by.callerPublicKey))) | |
379 | 368 | then true | |
380 | 369 | else { | |
381 | - | let | |
382 | - | if (( | |
370 | + | let cn = bz(by) | |
371 | + | if ((cn == cn)) | |
383 | 372 | then true | |
384 | 373 | else throw("Strict value is not equal to itself.") | |
385 | 374 | } | |
386 | 375 | } | |
387 | 376 | ||
388 | 377 | ||
389 | - | func | |
378 | + | func co (aU,cp,cq) = valueOrElse(getInteger(this, aU), valueOrElse(getInteger(this, cp), cq)) | |
390 | 379 | ||
391 | 380 | ||
392 | - | func | |
393 | - | let | |
394 | - | let | |
395 | - | if (if (( | |
381 | + | func cr (aA,aB) = { | |
382 | + | let ai = getInteger(af(aA)) | |
383 | + | let aj = getInteger(af(aB)) | |
384 | + | if (if ((ai == unit)) | |
396 | 385 | then true | |
397 | - | else ( | |
386 | + | else (aj == unit)) | |
398 | 387 | then false | |
399 | 388 | else { | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
389 | + | let cs = toString(value(ai)) | |
390 | + | let ct = toString(value(aj)) | |
391 | + | let cu = getString(ah(cs, ct)) | |
392 | + | let cv = getString(ah(ct, cs)) | |
393 | + | let cw = if ((cu != unit)) | |
405 | 394 | then true | |
406 | - | else ( | |
407 | - | | |
395 | + | else (cv != unit) | |
396 | + | cw | |
408 | 397 | } | |
409 | 398 | } | |
410 | 399 | ||
411 | 400 | ||
412 | - | func cC (aA) = { | |
413 | - | let ci = { | |
414 | - | let bf = getString(az(aA)) | |
415 | - | if ($isInstanceOf(bf, "String")) | |
416 | - | then { | |
417 | - | let bg = bf | |
418 | - | split(bg, m) | |
419 | - | } | |
420 | - | else K(makeString([aA, "pool is not found"], " ")) | |
421 | - | } | |
422 | - | let an = parseIntValue(ci[1]) | |
423 | - | let ao = parseIntValue(ci[2]) | |
424 | - | let aF = getStringValue(ai(an)) | |
425 | - | let aG = getStringValue(ai(ao)) | |
426 | - | let bV = getStringValue(aC(aA)) | |
427 | - | $Tuple5(aF, aG, bV, an, ao) | |
428 | - | } | |
429 | - | ||
430 | - | ||
431 | - | func cD (aA) = { | |
432 | - | let cE = cC(aA) | |
433 | - | let aF = cE._1 | |
434 | - | let aG = cE._2 | |
435 | - | let bV = cE._3 | |
436 | - | let an = cE._4 | |
437 | - | let ao = cE._5 | |
438 | - | let cF = addressFromStringValue(getStringValue(Z())) | |
439 | - | let cG = invoke(cF, "getPoolCreatorREADONLY", [aF, aG], nil) | |
440 | - | cG | |
441 | - | } | |
442 | - | ||
443 | - | ||
444 | - | func cH (cI,cJ) = { | |
445 | - | let cK = addressFromStringValue(cI) | |
446 | - | if ((cJ == "WAVES")) | |
447 | - | then wavesBalance(cK).regular | |
448 | - | else { | |
449 | - | let aT = fromBase58String(cJ) | |
450 | - | assetBalance(cK, aT) | |
451 | - | } | |
452 | - | } | |
453 | - | ||
454 | - | ||
455 | - | func cL (aA) = { | |
456 | - | let cM = cC(aA) | |
457 | - | let aF = cM._1 | |
458 | - | let aG = cM._2 | |
459 | - | let bV = cM._3 | |
460 | - | let an = cM._4 | |
461 | - | let ao = cM._5 | |
462 | - | if ((cH(aA, aF) == 0)) | |
463 | - | then (cH(aA, aG) == 0) | |
464 | - | else false | |
465 | - | } | |
466 | - | ||
467 | - | ||
468 | - | @Callable(bD) | |
469 | - | func getSwapContractREADONLY () = $Tuple2(nil, aY(N())) | |
401 | + | @Callable(by) | |
402 | + | func getSwapContractREADONLY () = $Tuple2(nil, aT(J())) | |
470 | 403 | ||
471 | 404 | ||
472 | 405 | ||
473 | - | @Callable( | |
474 | - | func getPoolLeaseConfigREADONLY ( | |
475 | - | let | |
476 | - | let | |
477 | - | if ($isInstanceOf( | |
406 | + | @Callable(by) | |
407 | + | func getPoolLeaseConfigREADONLY (aa,aO) = { | |
408 | + | let cx = { | |
409 | + | let ba = getInteger(this, aN(aa, aO)) | |
410 | + | if ($isInstanceOf(ba, "Int")) | |
478 | 411 | then { | |
479 | - | let | |
480 | - | $Tuple2(true, min([100, max([0, | |
412 | + | let cy = ba | |
413 | + | $Tuple2(true, min([100, max([0, cy])])) | |
481 | 414 | } | |
482 | 415 | else { | |
483 | - | let | |
484 | - | if ($isInstanceOf( | |
416 | + | let cz = getInteger(this, aP(aO)) | |
417 | + | if ($isInstanceOf(cz, "Int")) | |
485 | 418 | then { | |
486 | - | let | |
487 | - | $Tuple2(true, min([100, max([0, | |
419 | + | let cA = cz | |
420 | + | $Tuple2(true, min([100, max([0, cA])])) | |
488 | 421 | } | |
489 | 422 | else $Tuple2(false, 0) | |
490 | 423 | } | |
491 | 424 | } | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | if ($isInstanceOf( | |
425 | + | let cB = cx._1 | |
426 | + | let cC = cx._2 | |
427 | + | let cD = { | |
428 | + | let ba = getInteger(this, aR(aa, aO)) | |
429 | + | if ($isInstanceOf(ba, "Int")) | |
497 | 430 | then { | |
498 | - | let | |
499 | - | max([0, | |
431 | + | let cE = ba | |
432 | + | max([0, cE]) | |
500 | 433 | } | |
501 | 434 | else { | |
502 | - | let | |
503 | - | if ($isInstanceOf( | |
435 | + | let cz = getInteger(this, aS(aO)) | |
436 | + | if ($isInstanceOf(cz, "Int")) | |
504 | 437 | then { | |
505 | - | let | |
506 | - | max([0, | |
438 | + | let cF = cz | |
439 | + | max([0, cF]) | |
507 | 440 | } | |
508 | 441 | else 0 | |
509 | 442 | } | |
510 | 443 | } | |
511 | - | let | |
512 | - | then $Tuple3(valueOrElse(getString(this, | |
444 | + | let cG = if ((aO == "WAVES")) | |
445 | + | then $Tuple3(valueOrElse(getString(this, aK()), ""), getString(this, valueOrElse(aL(), "")), c) | |
513 | 446 | else $Tuple3("", "", 0) | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | $Tuple2(nil, $Tuple7( | |
447 | + | let cH = cG._1 | |
448 | + | let cI = cG._2 | |
449 | + | let cJ = cG._3 | |
450 | + | let cK = valueOrElse(getString(this, aM()), "") | |
451 | + | $Tuple2(nil, $Tuple7(cB, cC, cD, cH, cI, cJ, cK)) | |
519 | 452 | } | |
520 | 453 | ||
521 | 454 | ||
522 | 455 | ||
523 | - | @Callable( | |
524 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
525 | - | then ( | |
456 | + | @Callable(by) | |
457 | + | func getLpAssetFromPoolAssetsREADONLY (cL,cM) = if (if ((cL == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
458 | + | then (cM == "WAVES") | |
526 | 459 | else false) | |
527 | 460 | then $Tuple2(nil, unit) | |
528 | 461 | else { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
462 | + | let cN = value(getInteger(this, af(cL))) | |
463 | + | let cO = value(getInteger(this, af(cM))) | |
464 | + | let cP = getString(this, aq(toString(cN), toString(cO))) | |
465 | + | let cQ = if ((cP == unit)) | |
533 | 466 | then unit | |
534 | - | else drop(value( | |
535 | - | $Tuple2(nil, | |
467 | + | else drop(value(cP), 4) | |
468 | + | $Tuple2(nil, cQ) | |
536 | 469 | } | |
537 | 470 | ||
538 | 471 | ||
539 | 472 | ||
540 | - | @Callable( | |
541 | - | func getPoolAddressFromLpAssetREADONLY ( | |
473 | + | @Callable(by) | |
474 | + | func getPoolAddressFromLpAssetREADONLY (cR) = $Tuple2(nil, valueOrElse(getString(this, ay(cR)), "")) | |
542 | 475 | ||
543 | 476 | ||
544 | 477 | ||
545 | - | @Callable( | |
546 | - | func constructor ( | |
547 | - | let | |
548 | - | if (( | |
549 | - | then [StringEntry( | |
478 | + | @Callable(by) | |
479 | + | func constructor (cS,cT,bE,bF,bG,bH,cU,cV) = { | |
480 | + | let cW = bz(by) | |
481 | + | if ((cW == cW)) | |
482 | + | then [StringEntry(K(), bN(cS, cT, bE, bF, bG, bH, cU)), IntegerEntry(W(), cV)] | |
550 | 483 | else throw("Strict value is not equal to itself.") | |
551 | 484 | } | |
552 | 485 | ||
553 | 486 | ||
554 | 487 | ||
555 | - | @Callable( | |
556 | - | func constructorV2 ( | |
557 | - | let | |
558 | - | if (( | |
488 | + | @Callable(by) | |
489 | + | func constructorV2 (cX) = { | |
490 | + | let cW = bz(by) | |
491 | + | if ((cW == cW)) | |
559 | 492 | then { | |
560 | - | let | |
561 | - | if (( | |
562 | - | then [StringEntry( | |
493 | + | let cY = addressFromPublicKey(fromBase58String(cX)) | |
494 | + | if ((cY == cY)) | |
495 | + | then [StringEntry(N(), cX)] | |
563 | 496 | else throw("Strict value is not equal to itself.") | |
564 | 497 | } | |
565 | 498 | else throw("Strict value is not equal to itself.") | |
567 | 500 | ||
568 | 501 | ||
569 | 502 | ||
570 | - | @Callable( | |
571 | - | func constructorV3 ( | |
572 | - | let | |
573 | - | if (( | |
503 | + | @Callable(by) | |
504 | + | func constructorV3 (bJ,bK,bL,bM) = { | |
505 | + | let cW = bz(by) | |
506 | + | if ((cW == cW)) | |
574 | 507 | then { | |
575 | - | let | |
576 | - | [StringEntry( | |
508 | + | let bo = split(aT(K()), l) | |
509 | + | [StringEntry(K(), bB(bo[1], bo[2], bo[3], bo[4], bo[5], bo[6], bo[7], bJ, bK, bL, bM))] | |
577 | 510 | } | |
578 | 511 | else throw("Strict value is not equal to itself.") | |
579 | 512 | } | |
580 | 513 | ||
581 | 514 | ||
582 | 515 | ||
583 | - | @Callable( | |
584 | - | func constructorV4 ( | |
585 | - | let | |
586 | - | if (( | |
587 | - | then [StringEntry( | |
516 | + | @Callable(by) | |
517 | + | func constructorV4 (cZ,da) = { | |
518 | + | let cW = bz(by) | |
519 | + | if ((cW == cW)) | |
520 | + | then [StringEntry(O(), cZ), StringEntry(P(), makeString(da, l))] | |
588 | 521 | else throw("Strict value is not equal to itself.") | |
589 | 522 | } | |
590 | 523 | ||
591 | 524 | ||
592 | 525 | ||
593 | - | @Callable( | |
594 | - | func constructorV5 ( | |
595 | - | let | |
596 | - | if (( | |
597 | - | then [StringEntry( | |
526 | + | @Callable(by) | |
527 | + | func constructorV5 (db) = { | |
528 | + | let cW = bz(by) | |
529 | + | if ((cW == cW)) | |
530 | + | then [StringEntry(T(), db)] | |
598 | 531 | else throw("Strict value is not equal to itself.") | |
599 | 532 | } | |
600 | 533 | ||
601 | 534 | ||
602 | 535 | ||
603 | - | @Callable( | |
604 | - | func constructorV6 ( | |
605 | - | let | |
536 | + | @Callable(by) | |
537 | + | func constructorV6 (dc,dd) = { | |
538 | + | let de = [bz(by), if ((addressFromString(dc) != unit)) | |
606 | 539 | then true | |
607 | 540 | else "invalid voting emission contract address"] | |
608 | - | if (( | |
609 | - | then [StringEntry( | |
541 | + | if ((de == de)) | |
542 | + | then [StringEntry(U(), dc), StringEntry(V(), makeString(dd, l))] | |
610 | 543 | else throw("Strict value is not equal to itself.") | |
611 | 544 | } | |
612 | 545 | ||
613 | 546 | ||
614 | 547 | ||
615 | - | @Callable( | |
616 | - | func setAdmins ( | |
617 | - | let | |
618 | - | if (( | |
619 | - | then [StringEntry( | |
548 | + | @Callable(by) | |
549 | + | func setAdmins (df) = { | |
550 | + | let cW = bz(by) | |
551 | + | if ((cW == cW)) | |
552 | + | then [StringEntry(S(), makeString(df, l))] | |
620 | 553 | else throw("Strict value is not equal to itself.") | |
621 | 554 | } | |
622 | 555 | ||
623 | 556 | ||
624 | 557 | ||
625 | - | @Callable( | |
626 | - | func activateNewPool ( | |
627 | - | let | |
628 | - | if (( | |
629 | - | then if (isDefined(getString( | |
630 | - | then | |
558 | + | @Callable(by) | |
559 | + | func activateNewPool (aa,bR,bS,dg,dh,di,bY,dj) = { | |
560 | + | let cW = cl(by) | |
561 | + | if ((cW == cW)) | |
562 | + | then if (isDefined(getString(au(aa)))) | |
563 | + | then throw((("Pool address " + aa) + " already registered.")) | |
631 | 564 | else { | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
565 | + | let dk = ce(bR, 1) | |
566 | + | let dl = dk._1 | |
567 | + | let dm = ce(bS, if (dk._3) | |
635 | 568 | then 2 | |
636 | 569 | else 1) | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ( | |
642 | - | then | |
570 | + | let dn = dm._1 | |
571 | + | let do = valueOrErrorMessage(scriptHash(addressFromStringValue(aa)), ("No script has been found on pool account " + aa)) | |
572 | + | let dp = getBinaryValue(M()) | |
573 | + | let dq = cr(bR, bS) | |
574 | + | if (dq) | |
575 | + | then throw((((("Pool " + bR) + "/") + bS) + " has already been activated.")) | |
643 | 576 | else { | |
644 | - | let | |
645 | - | let | |
646 | - | then | |
647 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
648 | - | let | |
649 | - | then | |
650 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | if (( | |
656 | - | then if (( | |
657 | - | then | |
577 | + | let dr = value(getString(this, ah(toString(dl), toString(dn)))) | |
578 | + | let ds = if ((bR == "WAVES")) | |
579 | + | then k | |
580 | + | else pow(10, 0, value(assetInfo(fromBase58String(bR))).decimals, 0, 0, DOWN) | |
581 | + | let dt = if ((bS == "WAVES")) | |
582 | + | then k | |
583 | + | else pow(10, 0, value(assetInfo(fromBase58String(bS))).decimals, 0, 0, DOWN) | |
584 | + | let du = Issue(dg, dh, 1, 8, true) | |
585 | + | let bQ = calculateAssetId(du) | |
586 | + | let dv = toBase58String(bQ) | |
587 | + | let dw = invoke(addressFromStringValue(aa), "activate", [bR, bS], nil) | |
588 | + | if ((dw == dw)) | |
589 | + | then if ((dw != "success")) | |
590 | + | then throw("Pool initialisation error happened.") | |
658 | 591 | else { | |
659 | - | let | |
660 | - | let | |
661 | - | if (( | |
592 | + | let db = addressFromStringValue(aT(T())) | |
593 | + | let dx = invoke(db, "createOrUpdate", [dv, dg, false], nil) | |
594 | + | if ((dx == dx)) | |
662 | 595 | then { | |
663 | - | let | |
664 | - | if (( | |
596 | + | let dy = invoke(db, "addLabel", [dv, h], nil) | |
597 | + | if ((dy == dy)) | |
665 | 598 | then { | |
666 | - | let | |
667 | - | if (( | |
599 | + | let dz = invoke(db, "setLogo", [dv, dj], nil) | |
600 | + | if ((dz == dz)) | |
668 | 601 | then { | |
669 | - | let | |
670 | - | if (( | |
602 | + | let dA = invoke(db, "addAssetsLink", [bR, bS, dv], nil) | |
603 | + | if ((dA == dA)) | |
671 | 604 | then { | |
672 | - | let | |
673 | - | if (( | |
674 | - | then $Tuple2((( | |
605 | + | let dB = invoke(db, "increaseAssetPoolsNumber", [bR], nil) | |
606 | + | if ((dB == dB)) | |
607 | + | then $Tuple2(((dk._2 ++ dm._2) ++ [du, Burn(bQ, 1), StringEntry(ah(toString(dl), toString(dn)), bO(aa, toString(n), dv, bR, bS, ds, dt, dl, dn, k, bY)), StringEntry(ao(dv), bZ(dl, dn)), StringEntry(aq(toString(dl), toString(dn)), ("%s__" + dv)), StringEntry(au(aa), bZ(dl, dn)), StringEntry(aw(dl, dn), aa), StringEntry(ay(dv), aa), StringEntry(ax(aa), dv), IntegerEntry(Z(aa), di), IntegerEntry(at(aa), i)]), dv) | |
675 | 608 | else throw("Strict value is not equal to itself.") | |
676 | 609 | } | |
677 | 610 | else throw("Strict value is not equal to itself.") | |
690 | 623 | ||
691 | 624 | ||
692 | 625 | ||
693 | - | @Callable( | |
694 | - | func managePool ( | |
695 | - | let | |
696 | - | if (( | |
626 | + | @Callable(by) | |
627 | + | func managePool (aa,dC) = { | |
628 | + | let cW = bz(by) | |
629 | + | if ((cW == cW)) | |
697 | 630 | then { | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | [StringEntry( | |
631 | + | let dD = cc(aa) | |
632 | + | let bP = dD[v] | |
633 | + | let dv = dD[w] | |
634 | + | let bR = dD[x] | |
635 | + | let bS = dD[y] | |
636 | + | let ds = parseIntValue(dD[z]) | |
637 | + | let dt = parseIntValue(dD[A]) | |
638 | + | let dl = parseIntValue(dD[B]) | |
639 | + | let dn = parseIntValue(dD[C]) | |
640 | + | let dE = parseIntValue(dD[D]) | |
641 | + | let bY = dD[E] | |
642 | + | [StringEntry(ah(toString(dl), toString(dn)), bO(aa, toString(dC), dv, bR, bS, ds, dt, dl, dn, dE, bY))] | |
710 | 643 | } | |
711 | 644 | else throw("Strict value is not equal to itself.") | |
712 | 645 | } | |
713 | 646 | ||
714 | 647 | ||
715 | 648 | ||
716 | - | @Callable( | |
717 | - | func emit ( | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | if ((0 >= | |
649 | + | @Callable(by) | |
650 | + | func emit (dF) = { | |
651 | + | let dG = by.caller | |
652 | + | let dH = by.originCaller | |
653 | + | let dI = valueOrErrorMessage(getString(ax(toString(dG))), "Invalid LP address called me.") | |
654 | + | let dJ = fromBase58String(dI) | |
655 | + | let da = split(valueOrElse(getString(P()), m), l) | |
656 | + | let cZ = addressFromStringValue(valueOrErrorMessage(getString(O()), "Legacy factory contract does not exists.")) | |
657 | + | if ((0 >= dF)) | |
725 | 658 | then nil | |
726 | - | else if (containsElement( | |
727 | - | then $Tuple2(nil, | |
728 | - | else $Tuple2([Reissue( | |
659 | + | else if (containsElement(da, toString(dG))) | |
660 | + | then $Tuple2(nil, cZ) | |
661 | + | else $Tuple2([Reissue(dJ, dF, true), ScriptTransfer(by.caller, dF, dJ)], "success") | |
729 | 662 | } | |
730 | 663 | ||
731 | 664 | ||
732 | 665 | ||
733 | - | @Callable( | |
734 | - | func burn ( | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | if (( | |
742 | - | then | |
743 | - | else if (( | |
744 | - | then | |
666 | + | @Callable(by) | |
667 | + | func burn (dK) = { | |
668 | + | let dG = by.caller | |
669 | + | let dH = by.originCaller | |
670 | + | let dL = value(by.payments[0]) | |
671 | + | let dM = value(dL.amount) | |
672 | + | let dN = toBase58String(value(dL.assetId)) | |
673 | + | let dO = valueOrErrorMessage(getString(ax(toString(dG))), "Invalid LP address called me.") | |
674 | + | if ((dN != dO)) | |
675 | + | then throw("Invalid asset passed.") | |
676 | + | else if ((dK != dM)) | |
677 | + | then throw("Invalid amount passed.") | |
745 | 678 | else { | |
746 | - | let | |
747 | - | $Tuple2([Burn( | |
679 | + | let dJ = fromBase58String(dO) | |
680 | + | $Tuple2([Burn(dJ, dK)], "success") | |
748 | 681 | } | |
749 | 682 | } | |
750 | 683 | ||
751 | 684 | ||
752 | 685 | ||
753 | - | @Callable( | |
754 | - | func modifyWeight ( | |
755 | - | let | |
686 | + | @Callable(by) | |
687 | + | func modifyWeight (bQ,dP) = { | |
688 | + | let cW = if ((toBase58String(by.caller.bytes) == valueOrElse(getString(this, U()), ""))) | |
756 | 689 | then true | |
757 | - | else | |
758 | - | if (( | |
690 | + | else bz(by) | |
691 | + | if ((cW == cW)) | |
759 | 692 | then { | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | if (( | |
693 | + | let av = aT(ay(bQ)) | |
694 | + | let dQ = Z(av) | |
695 | + | let dR = Z(g) | |
696 | + | let dS = valueOrElse(getInteger(dR), 0) | |
697 | + | let di = valueOrElse(getInteger(dQ), 0) | |
698 | + | let dT = dP | |
699 | + | let bo = split(aT(K()), l) | |
700 | + | let cS = bq(bo) | |
701 | + | let dU = invoke(cS, "onModifyWeight", [bQ, av], nil) | |
702 | + | if ((dU == dU)) | |
770 | 703 | then { | |
771 | - | let | |
704 | + | let dV = if ((dS == 0)) | |
772 | 705 | then nil | |
773 | - | else [IntegerEntry( | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
706 | + | else [IntegerEntry(dR, 0)] | |
707 | + | let dW = ab(av, 0) | |
708 | + | let dX = getInteger(dW) | |
709 | + | let dY = if ((dX == unit)) | |
777 | 710 | then nil | |
778 | - | else [DeleteEntry( | |
779 | - | (([IntegerEntry( | |
711 | + | else [DeleteEntry(dW)] | |
712 | + | (([IntegerEntry(dQ, dT)] ++ dV) ++ dY) | |
780 | 713 | } | |
781 | 714 | else throw("Strict value is not equal to itself.") | |
782 | 715 | } | |
785 | 718 | ||
786 | 719 | ||
787 | 720 | ||
788 | - | @Callable( | |
789 | - | func modifyWeights ( | |
790 | - | let | |
791 | - | if (( | |
721 | + | @Callable(by) | |
722 | + | func modifyWeights (dZ,ea,eb,ec) = { | |
723 | + | let cW = bz(by) | |
724 | + | if ((cW == cW)) | |
792 | 725 | then { | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | if ((0 >= | |
808 | - | then | |
809 | - | else if ((0 >= | |
810 | - | then | |
726 | + | let ed = ((5 * f) / 100) | |
727 | + | let ee = ((5 * f) / 100) | |
728 | + | let ef = ((5 * f) / 100) | |
729 | + | let bo = split(aT(K()), l) | |
730 | + | let eg = bq(bo) | |
731 | + | let eh = br(bo) | |
732 | + | let ei = Z(dZ) | |
733 | + | let ej = Z(ea) | |
734 | + | let ek = Z(eb) | |
735 | + | let el = Z(ec) | |
736 | + | let em = aW(ei) | |
737 | + | let en = aW(ej) | |
738 | + | let eo = (em - ef) | |
739 | + | let ep = (en - ef) | |
740 | + | if ((0 >= eo)) | |
741 | + | then throw(("invalid btcWeightNew: " + toString(eo))) | |
742 | + | else if ((0 >= ep)) | |
743 | + | then throw(("invalid ethWeightNew: " + toString(ep))) | |
811 | 744 | else { | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
817 | - | if (( | |
745 | + | let eq = aT(ax(dZ)) | |
746 | + | let er = aT(ax(ea)) | |
747 | + | let es = aT(ax(eb)) | |
748 | + | let et = aT(ax(ec)) | |
749 | + | let eu = invoke(eg, "onModifyWeight", [eq, dZ], nil) | |
750 | + | if ((eu == eu)) | |
818 | 751 | then { | |
819 | - | let | |
820 | - | if (( | |
752 | + | let ev = invoke(eg, "onModifyWeight", [er, ea], nil) | |
753 | + | if ((ev == ev)) | |
821 | 754 | then { | |
822 | - | let | |
823 | - | if (( | |
755 | + | let ew = invoke(eg, "onModifyWeight", [es, eb], nil) | |
756 | + | if ((ew == ew)) | |
824 | 757 | then { | |
825 | - | let | |
826 | - | if (( | |
827 | - | then [IntegerEntry( | |
758 | + | let ex = invoke(eg, "onModifyWeight", [et, ec], nil) | |
759 | + | if ((ex == ex)) | |
760 | + | then [IntegerEntry(ei, eo), IntegerEntry(ej, ep), IntegerEntry(ek, ed), IntegerEntry(el, ee), IntegerEntry(ab(dZ, 0), em), IntegerEntry(ab(ea, 0), en), IntegerEntry(ab(eb, 0), ed), IntegerEntry(ab(ec, 0), ee)] | |
828 | 761 | else throw("Strict value is not equal to itself.") | |
829 | 762 | } | |
830 | 763 | else throw("Strict value is not equal to itself.") | |
839 | 772 | ||
840 | 773 | ||
841 | 774 | ||
842 | - | @Callable( | |
843 | - | func checkWxEmissionPoolLabel ( | |
844 | - | let | |
845 | - | let | |
846 | - | if ($isInstanceOf( | |
775 | + | @Callable(by) | |
776 | + | func checkWxEmissionPoolLabel (aA,aB) = { | |
777 | + | let ey = { | |
778 | + | let ba = getBoolean(az(aA, aB)) | |
779 | + | if ($isInstanceOf(ba, "Boolean")) | |
847 | 780 | then { | |
848 | - | let | |
849 | - | | |
781 | + | let cE = ba | |
782 | + | cE | |
850 | 783 | } | |
851 | 784 | else false | |
852 | 785 | } | |
853 | - | $Tuple2(nil, | |
786 | + | $Tuple2(nil, ey) | |
854 | 787 | } | |
855 | 788 | ||
856 | 789 | ||
857 | 790 | ||
858 | - | @Callable( | |
859 | - | func setWxEmissionPoolLabel ( | |
860 | - | let | |
861 | - | if (( | |
862 | - | then $Tuple2([BooleanEntry( | |
791 | + | @Callable(by) | |
792 | + | func setWxEmissionPoolLabel (aA,aB) = { | |
793 | + | let cW = cl(by) | |
794 | + | if ((cW == cW)) | |
795 | + | then $Tuple2([BooleanEntry(az(aA, aB), true)], unit) | |
863 | 796 | else throw("Strict value is not equal to itself.") | |
864 | 797 | } | |
865 | 798 | ||
866 | 799 | ||
867 | 800 | ||
868 | - | @Callable( | |
869 | - | func deleteWxEmissionPoolLabel ( | |
870 | - | let | |
801 | + | @Callable(by) | |
802 | + | func deleteWxEmissionPoolLabel (aA,aB) = { | |
803 | + | let cW = if ((by.caller == this)) | |
871 | 804 | then true | |
872 | - | else | |
873 | - | if (( | |
874 | - | then $Tuple2([DeleteEntry( | |
805 | + | else cl(by) | |
806 | + | if ((cW == cW)) | |
807 | + | then $Tuple2([DeleteEntry(az(aA, aB))], unit) | |
875 | 808 | else throw("Strict value is not equal to itself.") | |
876 | 809 | } | |
877 | 810 | ||
878 | 811 | ||
879 | 812 | ||
880 | - | @Callable( | |
881 | - | func onVerificationLoss ( | |
882 | - | let | |
813 | + | @Callable(by) | |
814 | + | func onVerificationLoss (aO) = { | |
815 | + | let cW = if ((toBase58String(by.caller.bytes) == valueOrElse(getString(this, T()), ""))) | |
883 | 816 | then true | |
884 | - | else | |
885 | - | if (( | |
817 | + | else bz(by) | |
818 | + | if ((cW == cW)) | |
886 | 819 | then { | |
887 | - | let | |
888 | - | let | |
820 | + | let dd = bs() | |
821 | + | let ez = if ((size(dd) > 0)) | |
889 | 822 | then true | |
890 | - | else | |
891 | - | if (( | |
823 | + | else throw("invalid price assets") | |
824 | + | if ((ez == ez)) | |
892 | 825 | then { | |
893 | - | func | |
894 | - | let | |
895 | - | if (( | |
826 | + | func eA (eB,eC) = { | |
827 | + | let cy = invoke(this, "deleteWxEmissionPoolLabel", [aO, eC], nil) | |
828 | + | if ((cy == cy)) | |
896 | 829 | then unit | |
897 | 830 | else throw("Strict value is not equal to itself.") | |
898 | 831 | } | |
899 | 832 | ||
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | func | |
905 | - | then | |
906 | - | else | |
833 | + | let eD = { | |
834 | + | let eE = dd | |
835 | + | let eF = size(eE) | |
836 | + | let eG = unit | |
837 | + | func eH (eI,eJ) = if ((eJ >= eF)) | |
838 | + | then eI | |
839 | + | else eA(eI, eE[eJ]) | |
907 | 840 | ||
908 | - | func | |
909 | - | then | |
841 | + | func eK (eI,eJ) = if ((eJ >= eF)) | |
842 | + | then eI | |
910 | 843 | else throw("List size exceeds 11") | |
911 | 844 | ||
912 | - | | |
845 | + | eK(eH(eH(eH(eH(eH(eH(eH(eH(eH(eH(eH(eG, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11) | |
913 | 846 | } | |
914 | - | if (( | |
847 | + | if ((eD == eD)) | |
915 | 848 | then $Tuple2(nil, unit) | |
916 | 849 | else throw("Strict value is not equal to itself.") | |
917 | 850 | } | |
922 | 855 | ||
923 | 856 | ||
924 | 857 | ||
925 | - | @Callable( | |
926 | - | func isPoolOneTokenOperationsDisabledREADONLY ( | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | $Tuple2(nil, if ( | |
858 | + | @Callable(by) | |
859 | + | func isPoolOneTokenOperationsDisabledREADONLY (aa) = { | |
860 | + | let dD = cc(aa) | |
861 | + | let al = $Tuple2(parseIntValue(dD[B]), parseIntValue(dD[C])) | |
862 | + | let eL = valueOrElse(getBoolean(ak(al)), false) | |
863 | + | let eM = valueOrElse(getBoolean(an()), false) | |
864 | + | $Tuple2(nil, if (eM) | |
932 | 865 | then true | |
933 | - | else | |
866 | + | else eL) | |
934 | 867 | } | |
935 | 868 | ||
936 | 869 | ||
937 | 870 | ||
938 | - | @Callable( | |
939 | - | func getInFeeREADONLY ( | |
940 | - | let | |
941 | - | $Tuple2(nil, | |
871 | + | @Callable(by) | |
872 | + | func getInFeeREADONLY (aa) = { | |
873 | + | let eN = co(aC(aa), aD(), 0) | |
874 | + | $Tuple2(nil, eN) | |
942 | 875 | } | |
943 | 876 | ||
944 | 877 | ||
945 | 878 | ||
946 | - | @Callable( | |
947 | - | func getOutFeeREADONLY ( | |
948 | - | let | |
949 | - | $Tuple2(nil, | |
879 | + | @Callable(by) | |
880 | + | func getOutFeeREADONLY (aa) = { | |
881 | + | let eN = co(aE(aa), aF(), fraction(10, b, 10000)) | |
882 | + | $Tuple2(nil, eN) | |
950 | 883 | } | |
951 | 884 | ||
952 | 885 | ||
953 | 886 | ||
954 | - | @Callable( | |
955 | - | func poolInfoREADONLY ( | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | then isDefined( | |
887 | + | @Callable(by) | |
888 | + | func poolInfoREADONLY (eO,eP) = { | |
889 | + | let eQ = getInteger(this, af(eO)) | |
890 | + | let eR = getInteger(this, af(eP)) | |
891 | + | let eS = getString(this, aw(value(eQ), value(eR))) | |
892 | + | let eT = getString(this, ax(value(eS))) | |
893 | + | let dq = if (if (isDefined(eQ)) | |
894 | + | then isDefined(eR) | |
962 | 895 | else false) | |
963 | - | then isDefined( | |
896 | + | then isDefined(eS) | |
964 | 897 | else false | |
965 | - | let | |
966 | - | then $Tuple2(addressFromStringValue(value( | |
898 | + | let eU = if (dq) | |
899 | + | then $Tuple2(addressFromStringValue(value(eS)), aX(value(eT))) | |
967 | 900 | else unit | |
968 | - | $Tuple2(nil, | |
901 | + | $Tuple2(nil, eU) | |
969 | 902 | } | |
970 | 903 | ||
971 | 904 | ||
972 | 905 | ||
973 | - | @Callable( | |
974 | - | func getPoolStatusREADONLY ( | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | let | |
979 | - | $Tuple2(nil, parseIntValue( | |
906 | + | @Callable(by) | |
907 | + | func getPoolStatusREADONLY (aa) = { | |
908 | + | let cd = split(aT(au(aa)), l) | |
909 | + | let ai = cd[1] | |
910 | + | let aj = cd[2] | |
911 | + | let cu = split(aT(ah(ai, aj)), l) | |
912 | + | $Tuple2(nil, parseIntValue(cu[v])) | |
980 | 913 | } | |
981 | 914 | ||
982 | 915 | ||
983 | 916 | ||
984 | - | @Callable( | |
985 | - | func getPoolConfigREADONLY ( | |
986 | - | let | |
987 | - | let | |
988 | - | let | |
989 | - | let | |
990 | - | $Tuple2(nil, | |
917 | + | @Callable(by) | |
918 | + | func getPoolConfigREADONLY (aa) = { | |
919 | + | let cd = split(aT(au(aa)), l) | |
920 | + | let ai = cd[1] | |
921 | + | let aj = cd[2] | |
922 | + | let cu = split(aT(ah(ai, aj)), l) | |
923 | + | $Tuple2(nil, cu) | |
991 | 924 | } | |
992 | 925 | ||
993 | 926 | ||
994 | 927 | ||
995 | - | @Callable( | |
996 | - | func getPoolConfigByLpAssetIdREADONLY ( | |
997 | - | let | |
998 | - | let | |
999 | - | let | |
1000 | - | let | |
1001 | - | $Tuple2(nil, | |
928 | + | @Callable(by) | |
929 | + | func getPoolConfigByLpAssetIdREADONLY (dv) = { | |
930 | + | let cd = split(aT(ao(dv)), l) | |
931 | + | let ai = cd[1] | |
932 | + | let aj = cd[2] | |
933 | + | let cu = split(aT(ah(ai, aj)), l) | |
934 | + | $Tuple2(nil, cu) | |
1002 | 935 | } | |
1003 | 936 | ||
1004 | 937 | ||
1005 | 938 | ||
1006 | - | @Callable( | |
1007 | - | func poolExistsREADONLY ( | |
939 | + | @Callable(by) | |
940 | + | func poolExistsREADONLY (aA,aB) = $Tuple2(nil, cr(aA, aB)) | |
1008 | 941 | ||
1009 | 942 | ||
1010 | 943 | ||
1011 | - | @Callable( | |
1012 | - | func skipOrderValidationREADONLY ( | |
944 | + | @Callable(by) | |
945 | + | func skipOrderValidationREADONLY (aa) = $Tuple2(nil, valueOrElse(getBoolean(aG(aa)), false)) | |
1013 | 946 | ||
1014 | 947 | ||
1015 | 948 | ||
1016 | - | @Callable( | |
1017 | - | func getChangeAmpConfigREADONLY ( | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | $Tuple2(nil, [ | |
949 | + | @Callable(by) | |
950 | + | func getChangeAmpConfigREADONLY (aa) = { | |
951 | + | let eV = getIntegerValue(aH(aa)) | |
952 | + | let eW = getIntegerValue(aI(aa)) | |
953 | + | let eX = getIntegerValue(aJ(aa)) | |
954 | + | $Tuple2(nil, [eV, eW, eX]) | |
1022 | 955 | } | |
1023 | 956 | ||
1024 | 957 | ||
1025 | 958 | ||
1026 | - | @Callable( | |
1027 | - | func getPoolWeightREADONLY ( | |
1028 | - | let | |
1029 | - | let | |
1030 | - | $Tuple2(nil, | |
959 | + | @Callable(by) | |
960 | + | func getPoolWeightREADONLY (bQ) = { | |
961 | + | let aa = aT(ay(bQ)) | |
962 | + | let eY = valueOrElse(getInteger(Z(aa)), 0) | |
963 | + | $Tuple2(nil, eY) | |
1031 | 964 | } | |
1032 | 965 | ||
1033 | 966 | ||
1034 | - | ||
1035 | - | @Callable(bD) | |
1036 | - | func deletePool (aA) = { | |
1037 | - | let dm = if ((toString(bD.caller) == cD(aA))) | |
1038 | - | then if (cL(aA)) | |
1039 | - | then true | |
1040 | - | else K("Pool is not empty") | |
1041 | - | else bE(bD) | |
1042 | - | if ((dm == dm)) | |
1043 | - | then { | |
1044 | - | let fp = if ((valueOrElse(getInteger(ae(aA)), 0) == 0)) | |
1045 | - | then true | |
1046 | - | else K("Pool weight is not Zero") | |
1047 | - | if ((fp == fp)) | |
1048 | - | then { | |
1049 | - | let fq = cC(aA) | |
1050 | - | let aF = fq._1 | |
1051 | - | let aG = fq._2 | |
1052 | - | let bV = fq._3 | |
1053 | - | let an = fq._4 | |
1054 | - | let ao = fq._5 | |
1055 | - | let cF = addressFromStringValue(getStringValue(Z())) | |
1056 | - | let fr = invoke(cF, "deletePool", [aF, aG], nil) | |
1057 | - | if ((fr == fr)) | |
1058 | - | then { | |
1059 | - | let ds = addressFromStringValue(getStringValue(Y())) | |
1060 | - | let fs = invoke(ds, "deletePool", [aF, aG], nil) | |
1061 | - | if ((fs == fs)) | |
1062 | - | then { | |
1063 | - | let dr = addressFromStringValue(getStringValue(X())) | |
1064 | - | let ft = invoke(dr, "deletePool", [aF, aG], nil) | |
1065 | - | if ((ft == ft)) | |
1066 | - | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bV)), DeleteEntry(aD(bV)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aJ(aA)), DeleteEntry(aL(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA))] | |
1067 | - | else throw("Strict value is not equal to itself.") | |
1068 | - | } | |
1069 | - | else throw("Strict value is not equal to itself.") | |
1070 | - | } | |
1071 | - | else throw("Strict value is not equal to itself.") | |
1072 | - | } | |
1073 | - | else throw("Strict value is not equal to itself.") | |
1074 | - | } | |
1075 | - | else throw("Strict value is not equal to itself.") | |
1076 | - | } | |
1077 | - | ||
1078 | - | ||
1079 | - | @Verifier(fu) | |
1080 | - | func fv () = { | |
1081 | - | let fw = { | |
1082 | - | let bf = by() | |
1083 | - | if ($isInstanceOf(bf, "ByteVector")) | |
967 | + | @Verifier(eZ) | |
968 | + | func fa () = { | |
969 | + | let fb = { | |
970 | + | let ba = bt() | |
971 | + | if ($isInstanceOf(ba, "ByteVector")) | |
1084 | 972 | then { | |
1085 | - | let | |
1086 | - | | |
973 | + | let bA = ba | |
974 | + | bA | |
1087 | 975 | } | |
1088 | - | else if ($isInstanceOf( | |
1089 | - | then | |
976 | + | else if ($isInstanceOf(ba, "Unit")) | |
977 | + | then eZ.senderPublicKey | |
1090 | 978 | else throw("Match error") | |
1091 | 979 | } | |
1092 | - | sigVerify( | |
980 | + | sigVerify(eZ.bodyBytes, eZ.proofs[0], fb) | |
1093 | 981 | } | |
1094 | 982 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 1000000000000 | |
9 | 9 | ||
10 | 10 | let d = 18 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1000000000000000000) | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = "GWXvirtualPOOL" | |
17 | 17 | ||
18 | 18 | let h = "POOLS_LP" | |
19 | 19 | ||
20 | 20 | let i = 2000000 | |
21 | 21 | ||
22 | 22 | let j = "WAVES" | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = ((100 * 1000) * 1000) | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = "__" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "" | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = 1 | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = 2 | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = 3 | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 4 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 1 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 2 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 3 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 1 | |
45 | 45 | ||
46 | - | let v = | |
46 | + | let v = 2 | |
47 | 47 | ||
48 | - | let w = | |
48 | + | let w = 3 | |
49 | 49 | ||
50 | - | let x = | |
50 | + | let x = 4 | |
51 | 51 | ||
52 | - | let y = | |
52 | + | let y = 5 | |
53 | 53 | ||
54 | - | let z = | |
54 | + | let z = 6 | |
55 | 55 | ||
56 | - | let A = | |
56 | + | let A = 7 | |
57 | 57 | ||
58 | - | let B = | |
58 | + | let B = 8 | |
59 | 59 | ||
60 | - | let C = | |
60 | + | let C = 9 | |
61 | 61 | ||
62 | - | let D = | |
62 | + | let D = 10 | |
63 | 63 | ||
64 | - | let E = | |
64 | + | let E = 11 | |
65 | 65 | ||
66 | - | let F = | |
66 | + | let F = "WX_EMISSION" | |
67 | 67 | ||
68 | - | let G = | |
68 | + | let G = [F] | |
69 | 69 | ||
70 | - | let H = [G] | |
71 | - | ||
72 | - | func I (J) = makeString([k, ": ", J], "") | |
70 | + | func H () = "%s__allowedLpScriptHash" | |
73 | 71 | ||
74 | 72 | ||
75 | - | func | |
73 | + | func I () = "%s__allowedLpStableScriptHash" | |
76 | 74 | ||
77 | 75 | ||
78 | - | func | |
76 | + | func J () = "%s__swapContract" | |
79 | 77 | ||
80 | 78 | ||
81 | - | func | |
79 | + | func K () = "%s__factoryConfig" | |
82 | 80 | ||
83 | 81 | ||
84 | - | func | |
82 | + | func L () = "%s__lpTokensList" | |
85 | 83 | ||
86 | 84 | ||
87 | - | func | |
85 | + | func M () = "%s%s__pool__scriptHash" | |
88 | 86 | ||
89 | 87 | ||
90 | - | func | |
88 | + | func N () = "%s%s__matcher__publicKey" | |
91 | 89 | ||
92 | 90 | ||
93 | - | func | |
91 | + | func O () = "%s__legacyFactoryContract" | |
94 | 92 | ||
95 | 93 | ||
96 | - | func | |
94 | + | func P () = "%s__legacyPools" | |
97 | 95 | ||
98 | 96 | ||
99 | - | func | |
97 | + | func Q () = "%s__managerPublicKey" | |
100 | 98 | ||
101 | 99 | ||
102 | - | func | |
100 | + | func R () = "%s__managerVaultAddress" | |
103 | 101 | ||
104 | 102 | ||
105 | - | func | |
103 | + | func S () = "%s__adminPubKeys" | |
106 | 104 | ||
107 | 105 | ||
108 | - | func | |
106 | + | func T () = "%s__assetsStoreContract" | |
109 | 107 | ||
110 | 108 | ||
111 | - | func | |
109 | + | func U () = "%s__votingEmissionContract" | |
112 | 110 | ||
113 | 111 | ||
114 | - | func | |
112 | + | func V () = makeString(["%s", "priceAssets"], l) | |
115 | 113 | ||
116 | 114 | ||
117 | - | func | |
115 | + | func W () = "%s__priceDecimals" | |
118 | 116 | ||
119 | 117 | ||
120 | - | func | |
118 | + | func X () = "%s__shutdown" | |
121 | 119 | ||
122 | 120 | ||
123 | - | func | |
121 | + | func Y () = "%s__nextInternalAssetId" | |
124 | 122 | ||
125 | 123 | ||
126 | - | func | |
124 | + | func Z (aa) = ("%s%s__poolWeight__" + aa) | |
127 | 125 | ||
128 | 126 | ||
129 | - | func | |
127 | + | func ab (aa,ac) = ((("%s%s__poolWeight__" + aa) + "__") + toString(ac)) | |
130 | 128 | ||
131 | 129 | ||
132 | - | func ad () = "%s__ | |
130 | + | func ad (ae) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(ae)) | |
133 | 131 | ||
134 | 132 | ||
135 | - | func | |
133 | + | func af (ag) = ("%s%s%s__mappings__baseAsset2internalId__" + ag) | |
136 | 134 | ||
137 | 135 | ||
138 | - | func | |
136 | + | func ah (ai,aj) = (((("%d%d%s__" + ai) + "__") + aj) + "__config") | |
139 | 137 | ||
140 | 138 | ||
141 | - | func ai (aj) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(aj)) | |
142 | - | ||
143 | - | ||
144 | - | func ak (al) = ("%s%s%s__mappings__baseAsset2internalId__" + al) | |
145 | - | ||
146 | - | ||
147 | - | func am (an,ao) = (((("%d%d%s__" + an) + "__") + ao) + "__config") | |
148 | - | ||
149 | - | ||
150 | - | func ap (aq) = { | |
151 | - | let ar = aq | |
152 | - | let an = ar._1 | |
153 | - | let ao = ar._2 | |
154 | - | makeString(["%d%d%s", toString(an), toString(ao), "oneTokenOperationsDisabled"], m) | |
139 | + | func ak (al) = { | |
140 | + | let am = al | |
141 | + | let ai = am._1 | |
142 | + | let aj = am._2 | |
143 | + | makeString(["%d%d%s", toString(ai), toString(aj), "oneTokenOperationsDisabled"], l) | |
155 | 144 | } | |
156 | 145 | ||
157 | 146 | ||
158 | - | func | |
147 | + | func an () = makeString(["%s", "oneTokenOperationsDisabled"], l) | |
159 | 148 | ||
160 | 149 | ||
161 | - | func | |
150 | + | func ao (ap) = (("%s%s%s__" + ap) + "__mappings__lpAsset2Pool") | |
162 | 151 | ||
163 | 152 | ||
164 | - | func | |
153 | + | func aq (ar,as) = (((("%d%d%s%s__" + ar) + "__") + as) + "__mappings__PoolAssets2LpAsset") | |
165 | 154 | ||
166 | 155 | ||
167 | - | func | |
156 | + | func at (aa) = ("%s%s__spread__" + aa) | |
168 | 157 | ||
169 | 158 | ||
170 | - | func | |
159 | + | func au (av) = (("%s%s%s__" + av) + "__mappings__poolContract2PoolAssets") | |
171 | 160 | ||
172 | 161 | ||
173 | - | func | |
162 | + | func aw (ar,as) = (((("%d%d%s%s__" + toString(ar)) + "__") + toString(as)) + "__mappings__poolAssets2PoolContract") | |
174 | 163 | ||
175 | 164 | ||
176 | - | func | |
165 | + | func ax (av) = (("%s%s%s__" + av) + "__mappings__poolContract2LpAsset") | |
177 | 166 | ||
178 | 167 | ||
179 | - | func | |
168 | + | func ay (ap) = (("%s%s%s__" + ap) + "__mappings__lpAsset2PoolContract") | |
180 | 169 | ||
181 | 170 | ||
182 | - | func | |
171 | + | func az (aA,aB) = ((("%s%s%s__wxEmission__" + aA) + "__") + aB) | |
183 | 172 | ||
184 | 173 | ||
185 | - | func | |
174 | + | func aC (aa) = ("%s%s__inFee__" + aa) | |
186 | 175 | ||
187 | 176 | ||
188 | - | func | |
177 | + | func aD () = "%s__inFeeDefault" | |
189 | 178 | ||
190 | 179 | ||
191 | - | func | |
180 | + | func aE (aa) = ("%s%s__outFee__" + aa) | |
192 | 181 | ||
193 | 182 | ||
194 | - | func | |
183 | + | func aF () = "%s__outFeeDefault" | |
195 | 184 | ||
196 | 185 | ||
197 | - | func | |
186 | + | func aG (aa) = ("%s%s__skipOrderValidation__" + aa) | |
198 | 187 | ||
199 | 188 | ||
200 | - | func | |
189 | + | func aH (aa) = ("%s%s__changeAmpDelay__" + aa) | |
201 | 190 | ||
202 | 191 | ||
203 | - | func | |
192 | + | func aI (aa) = ("%s%s__changeAmpDelta__" + aa) | |
204 | 193 | ||
205 | 194 | ||
206 | - | func | |
195 | + | func aJ (aa) = ("%s%s__changeAmpTarget__" + aa) | |
207 | 196 | ||
208 | 197 | ||
209 | - | func | |
198 | + | func aK () = "%s__sWavesProxyAddress" | |
210 | 199 | ||
211 | 200 | ||
212 | - | func | |
201 | + | func aL () = "%s__sWavesAssetId" | |
213 | 202 | ||
214 | 203 | ||
215 | - | func | |
204 | + | func aM () = "%s__stakingProfitAddress" | |
216 | 205 | ||
217 | 206 | ||
218 | - | func | |
207 | + | func aN (aa,aO) = makeString(["%s%s%s", "leasedRatio", aa, aO], l) | |
219 | 208 | ||
220 | 209 | ||
221 | - | func | |
210 | + | func aP (aO) = makeString(["%s%s", "leasedRatioDefault", aO], l) | |
222 | 211 | ||
223 | 212 | ||
224 | - | func | |
213 | + | func aQ (aa,aO) = makeString(["%s%s%s", "leasedRatioTolerance", aa, aO], l) | |
225 | 214 | ||
226 | 215 | ||
227 | - | func | |
216 | + | func aR (aa,aO) = makeString(["%s%s%s", "minBalance", aa, aO], l) | |
228 | 217 | ||
229 | 218 | ||
230 | - | func | |
219 | + | func aS (aO) = makeString(["%s%s", "minBalanceDefault", aO], l) | |
231 | 220 | ||
232 | 221 | ||
233 | - | func | |
222 | + | func aT (aU) = valueOrErrorMessage(getString(this, aU), ("No data for this.key=" + aU)) | |
234 | 223 | ||
235 | 224 | ||
236 | - | func | |
225 | + | func aV (aU) = valueOrErrorMessage(getBoolean(this, aU), ("No data for this.key=" + aU)) | |
237 | 226 | ||
238 | 227 | ||
239 | - | func | |
228 | + | func aW (aU) = valueOrErrorMessage(getInteger(this, aU), ("No data for this.key=" + aU)) | |
240 | 229 | ||
241 | 230 | ||
242 | - | func | |
231 | + | func aX (aY) = if ((aY == j)) | |
243 | 232 | then unit | |
244 | - | else fromBase58String( | |
233 | + | else fromBase58String(aY) | |
245 | 234 | ||
246 | 235 | ||
247 | - | func | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
236 | + | func aZ () = { | |
237 | + | let ba = getString(R()) | |
238 | + | if ($isInstanceOf(ba, "String")) | |
250 | 239 | then { | |
251 | - | let | |
252 | - | addressFromStringValue( | |
240 | + | let bb = ba | |
241 | + | addressFromStringValue(bb) | |
253 | 242 | } | |
254 | 243 | else this | |
255 | 244 | } | |
256 | 245 | ||
257 | 246 | ||
258 | - | let | |
247 | + | let bc = 1 | |
259 | 248 | ||
260 | - | let | |
249 | + | let bd = 2 | |
261 | 250 | ||
262 | - | let | |
251 | + | let be = 3 | |
263 | 252 | ||
264 | - | let | |
253 | + | let bf = 4 | |
265 | 254 | ||
266 | - | let | |
255 | + | let bg = 5 | |
267 | 256 | ||
268 | - | let | |
257 | + | let bh = 6 | |
269 | 258 | ||
270 | - | let | |
259 | + | let bi = 7 | |
271 | 260 | ||
272 | - | let | |
261 | + | let bj = 8 | |
273 | 262 | ||
274 | - | let | |
263 | + | let bk = 9 | |
275 | 264 | ||
276 | - | let | |
265 | + | let bl = 10 | |
277 | 266 | ||
278 | - | let | |
267 | + | let bm = 11 | |
279 | 268 | ||
280 | - | func | |
269 | + | func bn (bo) = addressFromStringValue(bo[bd]) | |
281 | 270 | ||
282 | 271 | ||
283 | - | func | |
272 | + | func bp (bo) = addressFromStringValue(bo[bg]) | |
284 | 273 | ||
285 | 274 | ||
286 | - | func | |
275 | + | func bq (bo) = addressFromStringValue(bo[bc]) | |
287 | 276 | ||
288 | 277 | ||
289 | - | func | |
278 | + | func br (bo) = addressFromStringValue(bo[bl]) | |
290 | 279 | ||
291 | 280 | ||
292 | - | func | |
293 | - | let | |
294 | - | if ($isInstanceOf( | |
281 | + | func bs () = { | |
282 | + | let ba = getString(V()) | |
283 | + | if ($isInstanceOf(ba, "String")) | |
295 | 284 | then { | |
296 | - | let | |
297 | - | if ((size( | |
285 | + | let bb = ba | |
286 | + | if ((size(bb) == 0)) | |
298 | 287 | then nil | |
299 | - | else split( | |
288 | + | else split(bb, l) | |
300 | 289 | } | |
301 | 290 | else nil | |
302 | 291 | } | |
303 | 292 | ||
304 | 293 | ||
305 | - | func | |
306 | - | let | |
307 | - | let | |
308 | - | if ($isInstanceOf( | |
294 | + | func bt () = { | |
295 | + | let bu = aZ() | |
296 | + | let ba = getString(bu, Q()) | |
297 | + | if ($isInstanceOf(ba, "String")) | |
309 | 298 | then { | |
310 | - | let | |
311 | - | fromBase58String( | |
299 | + | let bb = ba | |
300 | + | fromBase58String(bb) | |
312 | 301 | } | |
313 | - | else if ($isInstanceOf( | |
302 | + | else if ($isInstanceOf(ba, "Unit")) | |
314 | 303 | then unit | |
315 | 304 | else throw("Match error") | |
316 | 305 | } | |
317 | 306 | ||
318 | 307 | ||
319 | - | let | |
308 | + | let bv = throw("Permission denied") | |
320 | 309 | ||
321 | - | let | |
310 | + | let bw = throw("Test error here") | |
322 | 311 | ||
323 | - | func | |
312 | + | func bx (by) = if ((by.caller == this)) | |
324 | 313 | then true | |
325 | - | else | |
314 | + | else bv | |
326 | 315 | ||
327 | 316 | ||
328 | - | func | |
329 | - | let | |
330 | - | if ($isInstanceOf( | |
317 | + | func bz (by) = { | |
318 | + | let ba = bt() | |
319 | + | if ($isInstanceOf(ba, "ByteVector")) | |
331 | 320 | then { | |
332 | - | let | |
333 | - | if (( | |
321 | + | let bA = ba | |
322 | + | if ((by.callerPublicKey == bA)) | |
334 | 323 | then true | |
335 | - | else | |
324 | + | else bv | |
336 | 325 | } | |
337 | - | else if ($isInstanceOf( | |
338 | - | then | |
326 | + | else if ($isInstanceOf(ba, "Unit")) | |
327 | + | then bx(by) | |
339 | 328 | else throw("Match error") | |
340 | 329 | } | |
341 | 330 | ||
342 | 331 | ||
343 | - | func | |
332 | + | func bB (bC,bD,bE,bF,bG,bH,bI,bJ,bK,bL,bM) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM], l) | |
344 | 333 | ||
345 | 334 | ||
346 | - | func | |
335 | + | func bN (bC,bD,bE,bF,bG,bH,bI) = makeString(["%s%s%s%s%s%s", bC, bD, bE, bF, bG, bH, bI], l) | |
347 | 336 | ||
348 | 337 | ||
349 | - | func | |
338 | + | func bO (aa,bP,bQ,bR,bS,bT,bU,bV,bW,bX,bY) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", aa, bP, bQ, bR, bS, toString(bT), toString(bU), toString(bV), toString(bW), toString(bX), bY], l) | |
350 | 339 | ||
351 | 340 | ||
352 | - | func | |
341 | + | func bZ (ca,cb) = makeString(["%d%d", toString(ca), toString(cb)], l) | |
353 | 342 | ||
354 | 343 | ||
355 | - | func | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | split( | |
344 | + | func cc (aa) = { | |
345 | + | let cd = split(aT(au(aa)), l) | |
346 | + | let ai = cd[1] | |
347 | + | let aj = cd[2] | |
348 | + | split(aT(ah(ai, aj)), l) | |
360 | 349 | } | |
361 | 350 | ||
362 | 351 | ||
363 | - | func | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
352 | + | func ce (cf,cg) = { | |
353 | + | let ch = valueOrElse(getInteger(this, af(cf)), 0) | |
354 | + | let ci = valueOrElse(getInteger(this, Y()), 0) | |
355 | + | let cj = if ((ch == 0)) | |
367 | 356 | then { | |
368 | - | let | |
369 | - | $Tuple3( | |
357 | + | let ck = (ci + cg) | |
358 | + | $Tuple3(ck, [IntegerEntry(Y(), ck), IntegerEntry(af(cf), ck), StringEntry(ad(ck), cf)], true) | |
370 | 359 | } | |
371 | - | else $Tuple3( | |
372 | - | | |
360 | + | else $Tuple3(ch, nil, false) | |
361 | + | cj | |
373 | 362 | } | |
374 | 363 | ||
375 | 364 | ||
376 | - | func | |
377 | - | let | |
378 | - | if (containsElement( | |
365 | + | func cl (by) = { | |
366 | + | let cm = split(valueOrElse(getString(S()), m), l) | |
367 | + | if (containsElement(cm, toBase58String(by.callerPublicKey))) | |
379 | 368 | then true | |
380 | 369 | else { | |
381 | - | let | |
382 | - | if (( | |
370 | + | let cn = bz(by) | |
371 | + | if ((cn == cn)) | |
383 | 372 | then true | |
384 | 373 | else throw("Strict value is not equal to itself.") | |
385 | 374 | } | |
386 | 375 | } | |
387 | 376 | ||
388 | 377 | ||
389 | - | func | |
378 | + | func co (aU,cp,cq) = valueOrElse(getInteger(this, aU), valueOrElse(getInteger(this, cp), cq)) | |
390 | 379 | ||
391 | 380 | ||
392 | - | func | |
393 | - | let | |
394 | - | let | |
395 | - | if (if (( | |
381 | + | func cr (aA,aB) = { | |
382 | + | let ai = getInteger(af(aA)) | |
383 | + | let aj = getInteger(af(aB)) | |
384 | + | if (if ((ai == unit)) | |
396 | 385 | then true | |
397 | - | else ( | |
386 | + | else (aj == unit)) | |
398 | 387 | then false | |
399 | 388 | else { | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
389 | + | let cs = toString(value(ai)) | |
390 | + | let ct = toString(value(aj)) | |
391 | + | let cu = getString(ah(cs, ct)) | |
392 | + | let cv = getString(ah(ct, cs)) | |
393 | + | let cw = if ((cu != unit)) | |
405 | 394 | then true | |
406 | - | else ( | |
407 | - | | |
395 | + | else (cv != unit) | |
396 | + | cw | |
408 | 397 | } | |
409 | 398 | } | |
410 | 399 | ||
411 | 400 | ||
412 | - | func cC (aA) = { | |
413 | - | let ci = { | |
414 | - | let bf = getString(az(aA)) | |
415 | - | if ($isInstanceOf(bf, "String")) | |
416 | - | then { | |
417 | - | let bg = bf | |
418 | - | split(bg, m) | |
419 | - | } | |
420 | - | else K(makeString([aA, "pool is not found"], " ")) | |
421 | - | } | |
422 | - | let an = parseIntValue(ci[1]) | |
423 | - | let ao = parseIntValue(ci[2]) | |
424 | - | let aF = getStringValue(ai(an)) | |
425 | - | let aG = getStringValue(ai(ao)) | |
426 | - | let bV = getStringValue(aC(aA)) | |
427 | - | $Tuple5(aF, aG, bV, an, ao) | |
428 | - | } | |
429 | - | ||
430 | - | ||
431 | - | func cD (aA) = { | |
432 | - | let cE = cC(aA) | |
433 | - | let aF = cE._1 | |
434 | - | let aG = cE._2 | |
435 | - | let bV = cE._3 | |
436 | - | let an = cE._4 | |
437 | - | let ao = cE._5 | |
438 | - | let cF = addressFromStringValue(getStringValue(Z())) | |
439 | - | let cG = invoke(cF, "getPoolCreatorREADONLY", [aF, aG], nil) | |
440 | - | cG | |
441 | - | } | |
442 | - | ||
443 | - | ||
444 | - | func cH (cI,cJ) = { | |
445 | - | let cK = addressFromStringValue(cI) | |
446 | - | if ((cJ == "WAVES")) | |
447 | - | then wavesBalance(cK).regular | |
448 | - | else { | |
449 | - | let aT = fromBase58String(cJ) | |
450 | - | assetBalance(cK, aT) | |
451 | - | } | |
452 | - | } | |
453 | - | ||
454 | - | ||
455 | - | func cL (aA) = { | |
456 | - | let cM = cC(aA) | |
457 | - | let aF = cM._1 | |
458 | - | let aG = cM._2 | |
459 | - | let bV = cM._3 | |
460 | - | let an = cM._4 | |
461 | - | let ao = cM._5 | |
462 | - | if ((cH(aA, aF) == 0)) | |
463 | - | then (cH(aA, aG) == 0) | |
464 | - | else false | |
465 | - | } | |
466 | - | ||
467 | - | ||
468 | - | @Callable(bD) | |
469 | - | func getSwapContractREADONLY () = $Tuple2(nil, aY(N())) | |
401 | + | @Callable(by) | |
402 | + | func getSwapContractREADONLY () = $Tuple2(nil, aT(J())) | |
470 | 403 | ||
471 | 404 | ||
472 | 405 | ||
473 | - | @Callable( | |
474 | - | func getPoolLeaseConfigREADONLY ( | |
475 | - | let | |
476 | - | let | |
477 | - | if ($isInstanceOf( | |
406 | + | @Callable(by) | |
407 | + | func getPoolLeaseConfigREADONLY (aa,aO) = { | |
408 | + | let cx = { | |
409 | + | let ba = getInteger(this, aN(aa, aO)) | |
410 | + | if ($isInstanceOf(ba, "Int")) | |
478 | 411 | then { | |
479 | - | let | |
480 | - | $Tuple2(true, min([100, max([0, | |
412 | + | let cy = ba | |
413 | + | $Tuple2(true, min([100, max([0, cy])])) | |
481 | 414 | } | |
482 | 415 | else { | |
483 | - | let | |
484 | - | if ($isInstanceOf( | |
416 | + | let cz = getInteger(this, aP(aO)) | |
417 | + | if ($isInstanceOf(cz, "Int")) | |
485 | 418 | then { | |
486 | - | let | |
487 | - | $Tuple2(true, min([100, max([0, | |
419 | + | let cA = cz | |
420 | + | $Tuple2(true, min([100, max([0, cA])])) | |
488 | 421 | } | |
489 | 422 | else $Tuple2(false, 0) | |
490 | 423 | } | |
491 | 424 | } | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | if ($isInstanceOf( | |
425 | + | let cB = cx._1 | |
426 | + | let cC = cx._2 | |
427 | + | let cD = { | |
428 | + | let ba = getInteger(this, aR(aa, aO)) | |
429 | + | if ($isInstanceOf(ba, "Int")) | |
497 | 430 | then { | |
498 | - | let | |
499 | - | max([0, | |
431 | + | let cE = ba | |
432 | + | max([0, cE]) | |
500 | 433 | } | |
501 | 434 | else { | |
502 | - | let | |
503 | - | if ($isInstanceOf( | |
435 | + | let cz = getInteger(this, aS(aO)) | |
436 | + | if ($isInstanceOf(cz, "Int")) | |
504 | 437 | then { | |
505 | - | let | |
506 | - | max([0, | |
438 | + | let cF = cz | |
439 | + | max([0, cF]) | |
507 | 440 | } | |
508 | 441 | else 0 | |
509 | 442 | } | |
510 | 443 | } | |
511 | - | let | |
512 | - | then $Tuple3(valueOrElse(getString(this, | |
444 | + | let cG = if ((aO == "WAVES")) | |
445 | + | then $Tuple3(valueOrElse(getString(this, aK()), ""), getString(this, valueOrElse(aL(), "")), c) | |
513 | 446 | else $Tuple3("", "", 0) | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | $Tuple2(nil, $Tuple7( | |
447 | + | let cH = cG._1 | |
448 | + | let cI = cG._2 | |
449 | + | let cJ = cG._3 | |
450 | + | let cK = valueOrElse(getString(this, aM()), "") | |
451 | + | $Tuple2(nil, $Tuple7(cB, cC, cD, cH, cI, cJ, cK)) | |
519 | 452 | } | |
520 | 453 | ||
521 | 454 | ||
522 | 455 | ||
523 | - | @Callable( | |
524 | - | func getLpAssetFromPoolAssetsREADONLY ( | |
525 | - | then ( | |
456 | + | @Callable(by) | |
457 | + | func getLpAssetFromPoolAssetsREADONLY (cL,cM) = if (if ((cL == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS")) | |
458 | + | then (cM == "WAVES") | |
526 | 459 | else false) | |
527 | 460 | then $Tuple2(nil, unit) | |
528 | 461 | else { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
462 | + | let cN = value(getInteger(this, af(cL))) | |
463 | + | let cO = value(getInteger(this, af(cM))) | |
464 | + | let cP = getString(this, aq(toString(cN), toString(cO))) | |
465 | + | let cQ = if ((cP == unit)) | |
533 | 466 | then unit | |
534 | - | else drop(value( | |
535 | - | $Tuple2(nil, | |
467 | + | else drop(value(cP), 4) | |
468 | + | $Tuple2(nil, cQ) | |
536 | 469 | } | |
537 | 470 | ||
538 | 471 | ||
539 | 472 | ||
540 | - | @Callable( | |
541 | - | func getPoolAddressFromLpAssetREADONLY ( | |
473 | + | @Callable(by) | |
474 | + | func getPoolAddressFromLpAssetREADONLY (cR) = $Tuple2(nil, valueOrElse(getString(this, ay(cR)), "")) | |
542 | 475 | ||
543 | 476 | ||
544 | 477 | ||
545 | - | @Callable( | |
546 | - | func constructor ( | |
547 | - | let | |
548 | - | if (( | |
549 | - | then [StringEntry( | |
478 | + | @Callable(by) | |
479 | + | func constructor (cS,cT,bE,bF,bG,bH,cU,cV) = { | |
480 | + | let cW = bz(by) | |
481 | + | if ((cW == cW)) | |
482 | + | then [StringEntry(K(), bN(cS, cT, bE, bF, bG, bH, cU)), IntegerEntry(W(), cV)] | |
550 | 483 | else throw("Strict value is not equal to itself.") | |
551 | 484 | } | |
552 | 485 | ||
553 | 486 | ||
554 | 487 | ||
555 | - | @Callable( | |
556 | - | func constructorV2 ( | |
557 | - | let | |
558 | - | if (( | |
488 | + | @Callable(by) | |
489 | + | func constructorV2 (cX) = { | |
490 | + | let cW = bz(by) | |
491 | + | if ((cW == cW)) | |
559 | 492 | then { | |
560 | - | let | |
561 | - | if (( | |
562 | - | then [StringEntry( | |
493 | + | let cY = addressFromPublicKey(fromBase58String(cX)) | |
494 | + | if ((cY == cY)) | |
495 | + | then [StringEntry(N(), cX)] | |
563 | 496 | else throw("Strict value is not equal to itself.") | |
564 | 497 | } | |
565 | 498 | else throw("Strict value is not equal to itself.") | |
566 | 499 | } | |
567 | 500 | ||
568 | 501 | ||
569 | 502 | ||
570 | - | @Callable( | |
571 | - | func constructorV3 ( | |
572 | - | let | |
573 | - | if (( | |
503 | + | @Callable(by) | |
504 | + | func constructorV3 (bJ,bK,bL,bM) = { | |
505 | + | let cW = bz(by) | |
506 | + | if ((cW == cW)) | |
574 | 507 | then { | |
575 | - | let | |
576 | - | [StringEntry( | |
508 | + | let bo = split(aT(K()), l) | |
509 | + | [StringEntry(K(), bB(bo[1], bo[2], bo[3], bo[4], bo[5], bo[6], bo[7], bJ, bK, bL, bM))] | |
577 | 510 | } | |
578 | 511 | else throw("Strict value is not equal to itself.") | |
579 | 512 | } | |
580 | 513 | ||
581 | 514 | ||
582 | 515 | ||
583 | - | @Callable( | |
584 | - | func constructorV4 ( | |
585 | - | let | |
586 | - | if (( | |
587 | - | then [StringEntry( | |
516 | + | @Callable(by) | |
517 | + | func constructorV4 (cZ,da) = { | |
518 | + | let cW = bz(by) | |
519 | + | if ((cW == cW)) | |
520 | + | then [StringEntry(O(), cZ), StringEntry(P(), makeString(da, l))] | |
588 | 521 | else throw("Strict value is not equal to itself.") | |
589 | 522 | } | |
590 | 523 | ||
591 | 524 | ||
592 | 525 | ||
593 | - | @Callable( | |
594 | - | func constructorV5 ( | |
595 | - | let | |
596 | - | if (( | |
597 | - | then [StringEntry( | |
526 | + | @Callable(by) | |
527 | + | func constructorV5 (db) = { | |
528 | + | let cW = bz(by) | |
529 | + | if ((cW == cW)) | |
530 | + | then [StringEntry(T(), db)] | |
598 | 531 | else throw("Strict value is not equal to itself.") | |
599 | 532 | } | |
600 | 533 | ||
601 | 534 | ||
602 | 535 | ||
603 | - | @Callable( | |
604 | - | func constructorV6 ( | |
605 | - | let | |
536 | + | @Callable(by) | |
537 | + | func constructorV6 (dc,dd) = { | |
538 | + | let de = [bz(by), if ((addressFromString(dc) != unit)) | |
606 | 539 | then true | |
607 | 540 | else "invalid voting emission contract address"] | |
608 | - | if (( | |
609 | - | then [StringEntry( | |
541 | + | if ((de == de)) | |
542 | + | then [StringEntry(U(), dc), StringEntry(V(), makeString(dd, l))] | |
610 | 543 | else throw("Strict value is not equal to itself.") | |
611 | 544 | } | |
612 | 545 | ||
613 | 546 | ||
614 | 547 | ||
615 | - | @Callable( | |
616 | - | func setAdmins ( | |
617 | - | let | |
618 | - | if (( | |
619 | - | then [StringEntry( | |
548 | + | @Callable(by) | |
549 | + | func setAdmins (df) = { | |
550 | + | let cW = bz(by) | |
551 | + | if ((cW == cW)) | |
552 | + | then [StringEntry(S(), makeString(df, l))] | |
620 | 553 | else throw("Strict value is not equal to itself.") | |
621 | 554 | } | |
622 | 555 | ||
623 | 556 | ||
624 | 557 | ||
625 | - | @Callable( | |
626 | - | func activateNewPool ( | |
627 | - | let | |
628 | - | if (( | |
629 | - | then if (isDefined(getString( | |
630 | - | then | |
558 | + | @Callable(by) | |
559 | + | func activateNewPool (aa,bR,bS,dg,dh,di,bY,dj) = { | |
560 | + | let cW = cl(by) | |
561 | + | if ((cW == cW)) | |
562 | + | then if (isDefined(getString(au(aa)))) | |
563 | + | then throw((("Pool address " + aa) + " already registered.")) | |
631 | 564 | else { | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
565 | + | let dk = ce(bR, 1) | |
566 | + | let dl = dk._1 | |
567 | + | let dm = ce(bS, if (dk._3) | |
635 | 568 | then 2 | |
636 | 569 | else 1) | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ( | |
642 | - | then | |
570 | + | let dn = dm._1 | |
571 | + | let do = valueOrErrorMessage(scriptHash(addressFromStringValue(aa)), ("No script has been found on pool account " + aa)) | |
572 | + | let dp = getBinaryValue(M()) | |
573 | + | let dq = cr(bR, bS) | |
574 | + | if (dq) | |
575 | + | then throw((((("Pool " + bR) + "/") + bS) + " has already been activated.")) | |
643 | 576 | else { | |
644 | - | let | |
645 | - | let | |
646 | - | then | |
647 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
648 | - | let | |
649 | - | then | |
650 | - | else pow(10, 0, value(assetInfo(fromBase58String( | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | if (( | |
656 | - | then if (( | |
657 | - | then | |
577 | + | let dr = value(getString(this, ah(toString(dl), toString(dn)))) | |
578 | + | let ds = if ((bR == "WAVES")) | |
579 | + | then k | |
580 | + | else pow(10, 0, value(assetInfo(fromBase58String(bR))).decimals, 0, 0, DOWN) | |
581 | + | let dt = if ((bS == "WAVES")) | |
582 | + | then k | |
583 | + | else pow(10, 0, value(assetInfo(fromBase58String(bS))).decimals, 0, 0, DOWN) | |
584 | + | let du = Issue(dg, dh, 1, 8, true) | |
585 | + | let bQ = calculateAssetId(du) | |
586 | + | let dv = toBase58String(bQ) | |
587 | + | let dw = invoke(addressFromStringValue(aa), "activate", [bR, bS], nil) | |
588 | + | if ((dw == dw)) | |
589 | + | then if ((dw != "success")) | |
590 | + | then throw("Pool initialisation error happened.") | |
658 | 591 | else { | |
659 | - | let | |
660 | - | let | |
661 | - | if (( | |
592 | + | let db = addressFromStringValue(aT(T())) | |
593 | + | let dx = invoke(db, "createOrUpdate", [dv, dg, false], nil) | |
594 | + | if ((dx == dx)) | |
662 | 595 | then { | |
663 | - | let | |
664 | - | if (( | |
596 | + | let dy = invoke(db, "addLabel", [dv, h], nil) | |
597 | + | if ((dy == dy)) | |
665 | 598 | then { | |
666 | - | let | |
667 | - | if (( | |
599 | + | let dz = invoke(db, "setLogo", [dv, dj], nil) | |
600 | + | if ((dz == dz)) | |
668 | 601 | then { | |
669 | - | let | |
670 | - | if (( | |
602 | + | let dA = invoke(db, "addAssetsLink", [bR, bS, dv], nil) | |
603 | + | if ((dA == dA)) | |
671 | 604 | then { | |
672 | - | let | |
673 | - | if (( | |
674 | - | then $Tuple2((( | |
605 | + | let dB = invoke(db, "increaseAssetPoolsNumber", [bR], nil) | |
606 | + | if ((dB == dB)) | |
607 | + | then $Tuple2(((dk._2 ++ dm._2) ++ [du, Burn(bQ, 1), StringEntry(ah(toString(dl), toString(dn)), bO(aa, toString(n), dv, bR, bS, ds, dt, dl, dn, k, bY)), StringEntry(ao(dv), bZ(dl, dn)), StringEntry(aq(toString(dl), toString(dn)), ("%s__" + dv)), StringEntry(au(aa), bZ(dl, dn)), StringEntry(aw(dl, dn), aa), StringEntry(ay(dv), aa), StringEntry(ax(aa), dv), IntegerEntry(Z(aa), di), IntegerEntry(at(aa), i)]), dv) | |
675 | 608 | else throw("Strict value is not equal to itself.") | |
676 | 609 | } | |
677 | 610 | else throw("Strict value is not equal to itself.") | |
678 | 611 | } | |
679 | 612 | else throw("Strict value is not equal to itself.") | |
680 | 613 | } | |
681 | 614 | else throw("Strict value is not equal to itself.") | |
682 | 615 | } | |
683 | 616 | else throw("Strict value is not equal to itself.") | |
684 | 617 | } | |
685 | 618 | else throw("Strict value is not equal to itself.") | |
686 | 619 | } | |
687 | 620 | } | |
688 | 621 | else throw("Strict value is not equal to itself.") | |
689 | 622 | } | |
690 | 623 | ||
691 | 624 | ||
692 | 625 | ||
693 | - | @Callable( | |
694 | - | func managePool ( | |
695 | - | let | |
696 | - | if (( | |
626 | + | @Callable(by) | |
627 | + | func managePool (aa,dC) = { | |
628 | + | let cW = bz(by) | |
629 | + | if ((cW == cW)) | |
697 | 630 | then { | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | [StringEntry( | |
631 | + | let dD = cc(aa) | |
632 | + | let bP = dD[v] | |
633 | + | let dv = dD[w] | |
634 | + | let bR = dD[x] | |
635 | + | let bS = dD[y] | |
636 | + | let ds = parseIntValue(dD[z]) | |
637 | + | let dt = parseIntValue(dD[A]) | |
638 | + | let dl = parseIntValue(dD[B]) | |
639 | + | let dn = parseIntValue(dD[C]) | |
640 | + | let dE = parseIntValue(dD[D]) | |
641 | + | let bY = dD[E] | |
642 | + | [StringEntry(ah(toString(dl), toString(dn)), bO(aa, toString(dC), dv, bR, bS, ds, dt, dl, dn, dE, bY))] | |
710 | 643 | } | |
711 | 644 | else throw("Strict value is not equal to itself.") | |
712 | 645 | } | |
713 | 646 | ||
714 | 647 | ||
715 | 648 | ||
716 | - | @Callable( | |
717 | - | func emit ( | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | let | |
723 | - | let | |
724 | - | if ((0 >= | |
649 | + | @Callable(by) | |
650 | + | func emit (dF) = { | |
651 | + | let dG = by.caller | |
652 | + | let dH = by.originCaller | |
653 | + | let dI = valueOrErrorMessage(getString(ax(toString(dG))), "Invalid LP address called me.") | |
654 | + | let dJ = fromBase58String(dI) | |
655 | + | let da = split(valueOrElse(getString(P()), m), l) | |
656 | + | let cZ = addressFromStringValue(valueOrErrorMessage(getString(O()), "Legacy factory contract does not exists.")) | |
657 | + | if ((0 >= dF)) | |
725 | 658 | then nil | |
726 | - | else if (containsElement( | |
727 | - | then $Tuple2(nil, | |
728 | - | else $Tuple2([Reissue( | |
659 | + | else if (containsElement(da, toString(dG))) | |
660 | + | then $Tuple2(nil, cZ) | |
661 | + | else $Tuple2([Reissue(dJ, dF, true), ScriptTransfer(by.caller, dF, dJ)], "success") | |
729 | 662 | } | |
730 | 663 | ||
731 | 664 | ||
732 | 665 | ||
733 | - | @Callable( | |
734 | - | func burn ( | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | if (( | |
742 | - | then | |
743 | - | else if (( | |
744 | - | then | |
666 | + | @Callable(by) | |
667 | + | func burn (dK) = { | |
668 | + | let dG = by.caller | |
669 | + | let dH = by.originCaller | |
670 | + | let dL = value(by.payments[0]) | |
671 | + | let dM = value(dL.amount) | |
672 | + | let dN = toBase58String(value(dL.assetId)) | |
673 | + | let dO = valueOrErrorMessage(getString(ax(toString(dG))), "Invalid LP address called me.") | |
674 | + | if ((dN != dO)) | |
675 | + | then throw("Invalid asset passed.") | |
676 | + | else if ((dK != dM)) | |
677 | + | then throw("Invalid amount passed.") | |
745 | 678 | else { | |
746 | - | let | |
747 | - | $Tuple2([Burn( | |
679 | + | let dJ = fromBase58String(dO) | |
680 | + | $Tuple2([Burn(dJ, dK)], "success") | |
748 | 681 | } | |
749 | 682 | } | |
750 | 683 | ||
751 | 684 | ||
752 | 685 | ||
753 | - | @Callable( | |
754 | - | func modifyWeight ( | |
755 | - | let | |
686 | + | @Callable(by) | |
687 | + | func modifyWeight (bQ,dP) = { | |
688 | + | let cW = if ((toBase58String(by.caller.bytes) == valueOrElse(getString(this, U()), ""))) | |
756 | 689 | then true | |
757 | - | else | |
758 | - | if (( | |
690 | + | else bz(by) | |
691 | + | if ((cW == cW)) | |
759 | 692 | then { | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | if (( | |
693 | + | let av = aT(ay(bQ)) | |
694 | + | let dQ = Z(av) | |
695 | + | let dR = Z(g) | |
696 | + | let dS = valueOrElse(getInteger(dR), 0) | |
697 | + | let di = valueOrElse(getInteger(dQ), 0) | |
698 | + | let dT = dP | |
699 | + | let bo = split(aT(K()), l) | |
700 | + | let cS = bq(bo) | |
701 | + | let dU = invoke(cS, "onModifyWeight", [bQ, av], nil) | |
702 | + | if ((dU == dU)) | |
770 | 703 | then { | |
771 | - | let | |
704 | + | let dV = if ((dS == 0)) | |
772 | 705 | then nil | |
773 | - | else [IntegerEntry( | |
774 | - | let | |
775 | - | let | |
776 | - | let | |
706 | + | else [IntegerEntry(dR, 0)] | |
707 | + | let dW = ab(av, 0) | |
708 | + | let dX = getInteger(dW) | |
709 | + | let dY = if ((dX == unit)) | |
777 | 710 | then nil | |
778 | - | else [DeleteEntry( | |
779 | - | (([IntegerEntry( | |
711 | + | else [DeleteEntry(dW)] | |
712 | + | (([IntegerEntry(dQ, dT)] ++ dV) ++ dY) | |
780 | 713 | } | |
781 | 714 | else throw("Strict value is not equal to itself.") | |
782 | 715 | } | |
783 | 716 | else throw("Strict value is not equal to itself.") | |
784 | 717 | } | |
785 | 718 | ||
786 | 719 | ||
787 | 720 | ||
788 | - | @Callable( | |
789 | - | func modifyWeights ( | |
790 | - | let | |
791 | - | if (( | |
721 | + | @Callable(by) | |
722 | + | func modifyWeights (dZ,ea,eb,ec) = { | |
723 | + | let cW = bz(by) | |
724 | + | if ((cW == cW)) | |
792 | 725 | then { | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | if ((0 >= | |
808 | - | then | |
809 | - | else if ((0 >= | |
810 | - | then | |
726 | + | let ed = ((5 * f) / 100) | |
727 | + | let ee = ((5 * f) / 100) | |
728 | + | let ef = ((5 * f) / 100) | |
729 | + | let bo = split(aT(K()), l) | |
730 | + | let eg = bq(bo) | |
731 | + | let eh = br(bo) | |
732 | + | let ei = Z(dZ) | |
733 | + | let ej = Z(ea) | |
734 | + | let ek = Z(eb) | |
735 | + | let el = Z(ec) | |
736 | + | let em = aW(ei) | |
737 | + | let en = aW(ej) | |
738 | + | let eo = (em - ef) | |
739 | + | let ep = (en - ef) | |
740 | + | if ((0 >= eo)) | |
741 | + | then throw(("invalid btcWeightNew: " + toString(eo))) | |
742 | + | else if ((0 >= ep)) | |
743 | + | then throw(("invalid ethWeightNew: " + toString(ep))) | |
811 | 744 | else { | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
817 | - | if (( | |
745 | + | let eq = aT(ax(dZ)) | |
746 | + | let er = aT(ax(ea)) | |
747 | + | let es = aT(ax(eb)) | |
748 | + | let et = aT(ax(ec)) | |
749 | + | let eu = invoke(eg, "onModifyWeight", [eq, dZ], nil) | |
750 | + | if ((eu == eu)) | |
818 | 751 | then { | |
819 | - | let | |
820 | - | if (( | |
752 | + | let ev = invoke(eg, "onModifyWeight", [er, ea], nil) | |
753 | + | if ((ev == ev)) | |
821 | 754 | then { | |
822 | - | let | |
823 | - | if (( | |
755 | + | let ew = invoke(eg, "onModifyWeight", [es, eb], nil) | |
756 | + | if ((ew == ew)) | |
824 | 757 | then { | |
825 | - | let | |
826 | - | if (( | |
827 | - | then [IntegerEntry( | |
758 | + | let ex = invoke(eg, "onModifyWeight", [et, ec], nil) | |
759 | + | if ((ex == ex)) | |
760 | + | then [IntegerEntry(ei, eo), IntegerEntry(ej, ep), IntegerEntry(ek, ed), IntegerEntry(el, ee), IntegerEntry(ab(dZ, 0), em), IntegerEntry(ab(ea, 0), en), IntegerEntry(ab(eb, 0), ed), IntegerEntry(ab(ec, 0), ee)] | |
828 | 761 | else throw("Strict value is not equal to itself.") | |
829 | 762 | } | |
830 | 763 | else throw("Strict value is not equal to itself.") | |
831 | 764 | } | |
832 | 765 | else throw("Strict value is not equal to itself.") | |
833 | 766 | } | |
834 | 767 | else throw("Strict value is not equal to itself.") | |
835 | 768 | } | |
836 | 769 | } | |
837 | 770 | else throw("Strict value is not equal to itself.") | |
838 | 771 | } | |
839 | 772 | ||
840 | 773 | ||
841 | 774 | ||
842 | - | @Callable( | |
843 | - | func checkWxEmissionPoolLabel ( | |
844 | - | let | |
845 | - | let | |
846 | - | if ($isInstanceOf( | |
775 | + | @Callable(by) | |
776 | + | func checkWxEmissionPoolLabel (aA,aB) = { | |
777 | + | let ey = { | |
778 | + | let ba = getBoolean(az(aA, aB)) | |
779 | + | if ($isInstanceOf(ba, "Boolean")) | |
847 | 780 | then { | |
848 | - | let | |
849 | - | | |
781 | + | let cE = ba | |
782 | + | cE | |
850 | 783 | } | |
851 | 784 | else false | |
852 | 785 | } | |
853 | - | $Tuple2(nil, | |
786 | + | $Tuple2(nil, ey) | |
854 | 787 | } | |
855 | 788 | ||
856 | 789 | ||
857 | 790 | ||
858 | - | @Callable( | |
859 | - | func setWxEmissionPoolLabel ( | |
860 | - | let | |
861 | - | if (( | |
862 | - | then $Tuple2([BooleanEntry( | |
791 | + | @Callable(by) | |
792 | + | func setWxEmissionPoolLabel (aA,aB) = { | |
793 | + | let cW = cl(by) | |
794 | + | if ((cW == cW)) | |
795 | + | then $Tuple2([BooleanEntry(az(aA, aB), true)], unit) | |
863 | 796 | else throw("Strict value is not equal to itself.") | |
864 | 797 | } | |
865 | 798 | ||
866 | 799 | ||
867 | 800 | ||
868 | - | @Callable( | |
869 | - | func deleteWxEmissionPoolLabel ( | |
870 | - | let | |
801 | + | @Callable(by) | |
802 | + | func deleteWxEmissionPoolLabel (aA,aB) = { | |
803 | + | let cW = if ((by.caller == this)) | |
871 | 804 | then true | |
872 | - | else | |
873 | - | if (( | |
874 | - | then $Tuple2([DeleteEntry( | |
805 | + | else cl(by) | |
806 | + | if ((cW == cW)) | |
807 | + | then $Tuple2([DeleteEntry(az(aA, aB))], unit) | |
875 | 808 | else throw("Strict value is not equal to itself.") | |
876 | 809 | } | |
877 | 810 | ||
878 | 811 | ||
879 | 812 | ||
880 | - | @Callable( | |
881 | - | func onVerificationLoss ( | |
882 | - | let | |
813 | + | @Callable(by) | |
814 | + | func onVerificationLoss (aO) = { | |
815 | + | let cW = if ((toBase58String(by.caller.bytes) == valueOrElse(getString(this, T()), ""))) | |
883 | 816 | then true | |
884 | - | else | |
885 | - | if (( | |
817 | + | else bz(by) | |
818 | + | if ((cW == cW)) | |
886 | 819 | then { | |
887 | - | let | |
888 | - | let | |
820 | + | let dd = bs() | |
821 | + | let ez = if ((size(dd) > 0)) | |
889 | 822 | then true | |
890 | - | else | |
891 | - | if (( | |
823 | + | else throw("invalid price assets") | |
824 | + | if ((ez == ez)) | |
892 | 825 | then { | |
893 | - | func | |
894 | - | let | |
895 | - | if (( | |
826 | + | func eA (eB,eC) = { | |
827 | + | let cy = invoke(this, "deleteWxEmissionPoolLabel", [aO, eC], nil) | |
828 | + | if ((cy == cy)) | |
896 | 829 | then unit | |
897 | 830 | else throw("Strict value is not equal to itself.") | |
898 | 831 | } | |
899 | 832 | ||
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | func | |
905 | - | then | |
906 | - | else | |
833 | + | let eD = { | |
834 | + | let eE = dd | |
835 | + | let eF = size(eE) | |
836 | + | let eG = unit | |
837 | + | func eH (eI,eJ) = if ((eJ >= eF)) | |
838 | + | then eI | |
839 | + | else eA(eI, eE[eJ]) | |
907 | 840 | ||
908 | - | func | |
909 | - | then | |
841 | + | func eK (eI,eJ) = if ((eJ >= eF)) | |
842 | + | then eI | |
910 | 843 | else throw("List size exceeds 11") | |
911 | 844 | ||
912 | - | | |
845 | + | eK(eH(eH(eH(eH(eH(eH(eH(eH(eH(eH(eH(eG, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11) | |
913 | 846 | } | |
914 | - | if (( | |
847 | + | if ((eD == eD)) | |
915 | 848 | then $Tuple2(nil, unit) | |
916 | 849 | else throw("Strict value is not equal to itself.") | |
917 | 850 | } | |
918 | 851 | else throw("Strict value is not equal to itself.") | |
919 | 852 | } | |
920 | 853 | else throw("Strict value is not equal to itself.") | |
921 | 854 | } | |
922 | 855 | ||
923 | 856 | ||
924 | 857 | ||
925 | - | @Callable( | |
926 | - | func isPoolOneTokenOperationsDisabledREADONLY ( | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | let | |
931 | - | $Tuple2(nil, if ( | |
858 | + | @Callable(by) | |
859 | + | func isPoolOneTokenOperationsDisabledREADONLY (aa) = { | |
860 | + | let dD = cc(aa) | |
861 | + | let al = $Tuple2(parseIntValue(dD[B]), parseIntValue(dD[C])) | |
862 | + | let eL = valueOrElse(getBoolean(ak(al)), false) | |
863 | + | let eM = valueOrElse(getBoolean(an()), false) | |
864 | + | $Tuple2(nil, if (eM) | |
932 | 865 | then true | |
933 | - | else | |
866 | + | else eL) | |
934 | 867 | } | |
935 | 868 | ||
936 | 869 | ||
937 | 870 | ||
938 | - | @Callable( | |
939 | - | func getInFeeREADONLY ( | |
940 | - | let | |
941 | - | $Tuple2(nil, | |
871 | + | @Callable(by) | |
872 | + | func getInFeeREADONLY (aa) = { | |
873 | + | let eN = co(aC(aa), aD(), 0) | |
874 | + | $Tuple2(nil, eN) | |
942 | 875 | } | |
943 | 876 | ||
944 | 877 | ||
945 | 878 | ||
946 | - | @Callable( | |
947 | - | func getOutFeeREADONLY ( | |
948 | - | let | |
949 | - | $Tuple2(nil, | |
879 | + | @Callable(by) | |
880 | + | func getOutFeeREADONLY (aa) = { | |
881 | + | let eN = co(aE(aa), aF(), fraction(10, b, 10000)) | |
882 | + | $Tuple2(nil, eN) | |
950 | 883 | } | |
951 | 884 | ||
952 | 885 | ||
953 | 886 | ||
954 | - | @Callable( | |
955 | - | func poolInfoREADONLY ( | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | then isDefined( | |
887 | + | @Callable(by) | |
888 | + | func poolInfoREADONLY (eO,eP) = { | |
889 | + | let eQ = getInteger(this, af(eO)) | |
890 | + | let eR = getInteger(this, af(eP)) | |
891 | + | let eS = getString(this, aw(value(eQ), value(eR))) | |
892 | + | let eT = getString(this, ax(value(eS))) | |
893 | + | let dq = if (if (isDefined(eQ)) | |
894 | + | then isDefined(eR) | |
962 | 895 | else false) | |
963 | - | then isDefined( | |
896 | + | then isDefined(eS) | |
964 | 897 | else false | |
965 | - | let | |
966 | - | then $Tuple2(addressFromStringValue(value( | |
898 | + | let eU = if (dq) | |
899 | + | then $Tuple2(addressFromStringValue(value(eS)), aX(value(eT))) | |
967 | 900 | else unit | |
968 | - | $Tuple2(nil, | |
901 | + | $Tuple2(nil, eU) | |
969 | 902 | } | |
970 | 903 | ||
971 | 904 | ||
972 | 905 | ||
973 | - | @Callable( | |
974 | - | func getPoolStatusREADONLY ( | |
975 | - | let | |
976 | - | let | |
977 | - | let | |
978 | - | let | |
979 | - | $Tuple2(nil, parseIntValue( | |
906 | + | @Callable(by) | |
907 | + | func getPoolStatusREADONLY (aa) = { | |
908 | + | let cd = split(aT(au(aa)), l) | |
909 | + | let ai = cd[1] | |
910 | + | let aj = cd[2] | |
911 | + | let cu = split(aT(ah(ai, aj)), l) | |
912 | + | $Tuple2(nil, parseIntValue(cu[v])) | |
980 | 913 | } | |
981 | 914 | ||
982 | 915 | ||
983 | 916 | ||
984 | - | @Callable( | |
985 | - | func getPoolConfigREADONLY ( | |
986 | - | let | |
987 | - | let | |
988 | - | let | |
989 | - | let | |
990 | - | $Tuple2(nil, | |
917 | + | @Callable(by) | |
918 | + | func getPoolConfigREADONLY (aa) = { | |
919 | + | let cd = split(aT(au(aa)), l) | |
920 | + | let ai = cd[1] | |
921 | + | let aj = cd[2] | |
922 | + | let cu = split(aT(ah(ai, aj)), l) | |
923 | + | $Tuple2(nil, cu) | |
991 | 924 | } | |
992 | 925 | ||
993 | 926 | ||
994 | 927 | ||
995 | - | @Callable( | |
996 | - | func getPoolConfigByLpAssetIdREADONLY ( | |
997 | - | let | |
998 | - | let | |
999 | - | let | |
1000 | - | let | |
1001 | - | $Tuple2(nil, | |
928 | + | @Callable(by) | |
929 | + | func getPoolConfigByLpAssetIdREADONLY (dv) = { | |
930 | + | let cd = split(aT(ao(dv)), l) | |
931 | + | let ai = cd[1] | |
932 | + | let aj = cd[2] | |
933 | + | let cu = split(aT(ah(ai, aj)), l) | |
934 | + | $Tuple2(nil, cu) | |
1002 | 935 | } | |
1003 | 936 | ||
1004 | 937 | ||
1005 | 938 | ||
1006 | - | @Callable( | |
1007 | - | func poolExistsREADONLY ( | |
939 | + | @Callable(by) | |
940 | + | func poolExistsREADONLY (aA,aB) = $Tuple2(nil, cr(aA, aB)) | |
1008 | 941 | ||
1009 | 942 | ||
1010 | 943 | ||
1011 | - | @Callable( | |
1012 | - | func skipOrderValidationREADONLY ( | |
944 | + | @Callable(by) | |
945 | + | func skipOrderValidationREADONLY (aa) = $Tuple2(nil, valueOrElse(getBoolean(aG(aa)), false)) | |
1013 | 946 | ||
1014 | 947 | ||
1015 | 948 | ||
1016 | - | @Callable( | |
1017 | - | func getChangeAmpConfigREADONLY ( | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | $Tuple2(nil, [ | |
949 | + | @Callable(by) | |
950 | + | func getChangeAmpConfigREADONLY (aa) = { | |
951 | + | let eV = getIntegerValue(aH(aa)) | |
952 | + | let eW = getIntegerValue(aI(aa)) | |
953 | + | let eX = getIntegerValue(aJ(aa)) | |
954 | + | $Tuple2(nil, [eV, eW, eX]) | |
1022 | 955 | } | |
1023 | 956 | ||
1024 | 957 | ||
1025 | 958 | ||
1026 | - | @Callable( | |
1027 | - | func getPoolWeightREADONLY ( | |
1028 | - | let | |
1029 | - | let | |
1030 | - | $Tuple2(nil, | |
959 | + | @Callable(by) | |
960 | + | func getPoolWeightREADONLY (bQ) = { | |
961 | + | let aa = aT(ay(bQ)) | |
962 | + | let eY = valueOrElse(getInteger(Z(aa)), 0) | |
963 | + | $Tuple2(nil, eY) | |
1031 | 964 | } | |
1032 | 965 | ||
1033 | 966 | ||
1034 | - | ||
1035 | - | @Callable(bD) | |
1036 | - | func deletePool (aA) = { | |
1037 | - | let dm = if ((toString(bD.caller) == cD(aA))) | |
1038 | - | then if (cL(aA)) | |
1039 | - | then true | |
1040 | - | else K("Pool is not empty") | |
1041 | - | else bE(bD) | |
1042 | - | if ((dm == dm)) | |
1043 | - | then { | |
1044 | - | let fp = if ((valueOrElse(getInteger(ae(aA)), 0) == 0)) | |
1045 | - | then true | |
1046 | - | else K("Pool weight is not Zero") | |
1047 | - | if ((fp == fp)) | |
1048 | - | then { | |
1049 | - | let fq = cC(aA) | |
1050 | - | let aF = fq._1 | |
1051 | - | let aG = fq._2 | |
1052 | - | let bV = fq._3 | |
1053 | - | let an = fq._4 | |
1054 | - | let ao = fq._5 | |
1055 | - | let cF = addressFromStringValue(getStringValue(Z())) | |
1056 | - | let fr = invoke(cF, "deletePool", [aF, aG], nil) | |
1057 | - | if ((fr == fr)) | |
1058 | - | then { | |
1059 | - | let ds = addressFromStringValue(getStringValue(Y())) | |
1060 | - | let fs = invoke(ds, "deletePool", [aF, aG], nil) | |
1061 | - | if ((fs == fs)) | |
1062 | - | then { | |
1063 | - | let dr = addressFromStringValue(getStringValue(X())) | |
1064 | - | let ft = invoke(dr, "deletePool", [aF, aG], nil) | |
1065 | - | if ((ft == ft)) | |
1066 | - | then [DeleteEntry(aC(aA)), DeleteEntry(az(aA)), DeleteEntry(av(toString(an), toString(ao))), DeleteEntry(aB(an, ao)), DeleteEntry(am(toString(an), toString(ao))), DeleteEntry(at(bV)), DeleteEntry(aD(bV)), DeleteEntry(aE(aF, aG)), DeleteEntry(ae(aA)), DeleteEntry(ay(aA)), DeleteEntry(aH(aA)), DeleteEntry(aJ(aA)), DeleteEntry(aL(aA)), DeleteEntry(aM(aA)), DeleteEntry(aN(aA)), DeleteEntry(aO(aA))] | |
1067 | - | else throw("Strict value is not equal to itself.") | |
1068 | - | } | |
1069 | - | else throw("Strict value is not equal to itself.") | |
1070 | - | } | |
1071 | - | else throw("Strict value is not equal to itself.") | |
1072 | - | } | |
1073 | - | else throw("Strict value is not equal to itself.") | |
1074 | - | } | |
1075 | - | else throw("Strict value is not equal to itself.") | |
1076 | - | } | |
1077 | - | ||
1078 | - | ||
1079 | - | @Verifier(fu) | |
1080 | - | func fv () = { | |
1081 | - | let fw = { | |
1082 | - | let bf = by() | |
1083 | - | if ($isInstanceOf(bf, "ByteVector")) | |
967 | + | @Verifier(eZ) | |
968 | + | func fa () = { | |
969 | + | let fb = { | |
970 | + | let ba = bt() | |
971 | + | if ($isInstanceOf(ba, "ByteVector")) | |
1084 | 972 | then { | |
1085 | - | let | |
1086 | - | | |
973 | + | let bA = ba | |
974 | + | bA | |
1087 | 975 | } | |
1088 | - | else if ($isInstanceOf( | |
1089 | - | then | |
976 | + | else if ($isInstanceOf(ba, "Unit")) | |
977 | + | then eZ.senderPublicKey | |
1090 | 978 | else throw("Match error") | |
1091 | 979 | } | |
1092 | - | sigVerify( | |
980 | + | sigVerify(eZ.bodyBytes, eZ.proofs[0], fb) | |
1093 | 981 | } | |
1094 | 982 |
github/deemru/w8io/026f985 374.42 ms ◑