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