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