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