tx · 9BoyqumZYmWUr5to1DtL4i6t8nXq6PZE177phrV862KM 3NAQoM4AUNeqgrhrh2RmVACXAF18Lw3Wysc: -0.01400000 Waves 2021.09.20 09:51 [1711025] smart account 3NAQoM4AUNeqgrhrh2RmVACXAF18Lw3Wysc > SELF 0.00000000 Waves
{ "type": 13, "id": "9BoyqumZYmWUr5to1DtL4i6t8nXq6PZE177phrV862KM", "fee": 1400000, "feeAssetId": null, "timestamp": 1632120668354, "version": 2, "chainId": 84, "sender": "3NAQoM4AUNeqgrhrh2RmVACXAF18Lw3Wysc", "senderPublicKey": "GGrLCcVj972oWWPRkrKkKpet3g8W1RgGsxTppzdXqj4K", "proofs": [ "3u9hrmTC7krMKax4hDk47Mxm42Pkzvw3DiYfdyXBSyLkoG73Nj1mKANExA8Zc95jqjxmsHi46r6aCxfpw9v7PUN8", "4gctt86q9JzQrMy39kGCt33Jny5dq1mwAKcBVyiKEQuuixfJqhGdJwFdNCU8RYxXuyfYGVhQHBqSZ4MH89rm4onA" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEIEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQESAAAAAFgAAAAAB3ZlcnNpb24CAAAABTEuMC4wAAAAAAprZXlWZXJzaW9uAgAAAAd2ZXJzaW9uAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAALa2V5QXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAAC2tleUFzc2V0SWRCAgAAAApCX2Fzc2V0X2lkAAAAAAtrZXlCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAtrZXlCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA9rZXlCYWxhbmNlSW5pdEECAAAADEFfYXNzZXRfaW5pdAAAAAAPa2V5QmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAAD2tleVNoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAE2tleVNoYXJlQ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AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEmFkbWluUHViS2V5U3Rha2luZwMDAwMDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAYFAAAAFmNhbGxFbmFibGVGaXJzdEhhcnZlc3QGBQAAAAtjYWxsU3Rha2luZwYFAAAAD2V4Y2hhbmdlVG9XYXZlcwYFAAAAD2V4Y2hhbmdlVG9OU0JUcwUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zLfqxfA==", "height": 1711025, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3PyELUHc6NJVeShYa92Ja6mg5CwmvweFoUX3TRrCLnyx Next: none Diff:
Old | New | Differences | |
---|---|---|---|
345 | 345 | let bq = isDataStorageUntouched(this) | |
346 | 346 | let br = scriptHash(this) | |
347 | 347 | let bs = addressFromStringValue(bg) | |
348 | + | let bt = value(getBinary(A, v)) | |
348 | 349 | if ((aB.caller == this)) | |
349 | 350 | then throw("You can't call yourself") | |
350 | 351 | else if (if ((bp != P)) | |
355 | 356 | then !(aC(bm)) | |
356 | 357 | else false) | |
357 | 358 | then throw("One of assets must be USDN, WAVES or SWOP") | |
358 | - | else if (if ((br != | |
359 | + | else if (if ((br != bt)) | |
359 | 360 | then true | |
360 | 361 | else !(bq)) | |
361 | 362 | then throw("Unexpected script was found.") | |
364 | 365 | else if ((bj == bm)) | |
365 | 366 | then throw("Assets must be different") | |
366 | 367 | else { | |
367 | - | let | |
368 | + | let bu = { | |
368 | 369 | let D = bj | |
369 | 370 | if ($isInstanceOf(D, "ByteVector")) | |
370 | 371 | then { | |
378 | 379 | } | |
379 | 380 | else throw("Match error") | |
380 | 381 | } | |
381 | - | let | |
382 | + | let bv = { | |
382 | 383 | let D = bm | |
383 | 384 | if ($isInstanceOf(D, "ByteVector")) | |
384 | 385 | then { | |
392 | 393 | } | |
393 | 394 | else throw("Match error") | |
394 | 395 | } | |
395 | - | let bv = valueOrElse(getInteger(A, (u + bt)), 999999) | |
396 | 396 | let bw = valueOrElse(getInteger(A, (u + bu)), 999999) | |
397 | - | let bx = if ((bw > bv)) | |
397 | + | let bx = valueOrElse(getInteger(A, (u + bv)), 999999) | |
398 | + | let by = if ((bx > bw)) | |
398 | 399 | then $Tuple4(bl, bm, bi, bj) | |
399 | 400 | else $Tuple4(bi, bj, bl, bm) | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (( | |
401 | + | let bz = by._1 | |
402 | + | let bA = by._2 | |
403 | + | let bB = by._3 | |
404 | + | let bC = by._4 | |
405 | + | let bD = aM(bA) | |
406 | + | let bE = bD._1 | |
407 | + | let bF = bD._2 | |
408 | + | let bG = bD._3 | |
409 | + | let bH = aM(bC) | |
410 | + | let bI = bH._1 | |
411 | + | let bJ = bH._2 | |
412 | + | let bK = bH._3 | |
413 | + | let bL = [toString(this), ((bF + "_") + bJ), bE, bI] | |
414 | + | let bM = invoke(A, "addPool", bL, nil) | |
415 | + | if ((bM == bM)) | |
415 | 416 | then if (!(isDefined(getString(A, ("pool_" + toString(this)))))) | |
416 | 417 | then throw("Pool is not added") | |
417 | 418 | else { | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | | |
419 | + | let bN = ((("s" + take(bF, 7)) + "_") + take(bJ, 7)) | |
420 | + | let bO = ((((("ShareToken of SwopFi protocol for " + bF) + " and ") + bJ) + " at address ") + toString(this)) | |
421 | + | let bP = ((bG + bK) / 2) | |
422 | + | let bQ = pow(bz, bG, 5, 1, bG, DOWN) | |
423 | + | let bR = pow(bB, bK, 5, 1, bK, DOWN) | |
424 | + | let bS = pow(10, 0, bP, 0, 0, DOWN) | |
425 | + | let bT = fraction(bQ, bR, bS) | |
426 | + | let bU = Issue(bN, bO, bT, bP, true) | |
427 | + | let bV = calculateAssetId(bU) | |
428 | + | let bW = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bE), StringEntry(e, bI), IntegerEntry(f, bz), IntegerEntry(g, bB), IntegerEntry(l, ao), IntegerEntry(m, aq), bU, StringEntry(j, toBase58String(bV)), IntegerEntry(k, bT), IntegerEntry(w, height), ScriptTransfer(bs, bT, bV), ScriptTransfer(L, av, P)] | |
429 | + | bW | |
429 | 430 | } | |
430 | 431 | else throw("Strict value is not equal to itself.") | |
431 | 432 | } | |
434 | 435 | ||
435 | 436 | ||
436 | 437 | @Callable(aB) | |
437 | - | func keepLimitForFirstHarvest ( | |
438 | + | func keepLimitForFirstHarvest (bX) = if (!(ab)) | |
438 | 439 | then throw("DApp is inactive at this moment") | |
439 | 440 | else if (!(containsElement([G, H, I, K], aB.callerPublicKey))) | |
440 | 441 | then throw("Only admin can call this function") | |
441 | - | else [IntegerEntry(q, | |
442 | + | else [IntegerEntry(q, bX)] | |
442 | 443 | ||
443 | 444 | ||
444 | 445 | ||
445 | 446 | @Callable(aB) | |
446 | - | func replenishWithTwoTokens ( | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
447 | + | func replenishWithTwoTokens (bY) = { | |
448 | + | let bA = aB.payments[0].assetId | |
449 | + | let bC = aB.payments[1].assetId | |
450 | + | let bz = aT(aB.payments[0].amount, bA, bC) | |
451 | + | let bB = aT(aB.payments[1].amount, bC, bA) | |
451 | 452 | if (if ((ak == 0)) | |
452 | 453 | then (al == 0) | |
453 | 454 | else false) | |
454 | 455 | then { | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | if (( | |
456 | + | let bZ = aM(bA) | |
457 | + | let bE = bZ._1 | |
458 | + | let bF = bZ._2 | |
459 | + | let bG = bZ._3 | |
460 | + | let ca = aM(bC) | |
461 | + | let bI = ca._1 | |
462 | + | let bJ = ca._2 | |
463 | + | let bK = ca._3 | |
464 | + | let cb = fraction(fraction(aF, as, bz), ar, fraction(aG, as, bB)) | |
465 | + | if ((bA == bC)) | |
465 | 466 | then throw("Assets must be different") | |
466 | 467 | else { | |
467 | - | let | |
468 | - | let | |
468 | + | let bP = ((bG + bK) / 2) | |
469 | + | let bT = fraction(pow(bz, bG, 5, 1, bG, DOWN), pow(bB, bK, 5, 1, bK, DOWN), pow(10, 0, bP, 0, 0, DOWN)) | |
469 | 470 | if (!(ab)) | |
470 | 471 | then throw("DApp is inactive at this moment") | |
471 | - | else if (if ((0 > | |
472 | + | else if (if ((0 > bY)) | |
472 | 473 | then true | |
473 | - | else ( | |
474 | - | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString( | |
474 | + | else (bY > at)) | |
475 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bY))) | |
475 | 476 | else if ((size(aB.payments) != 2)) | |
476 | 477 | then throw("Two attached assets expected") | |
477 | - | else if (if ((((ar * (at - | |
478 | + | else if (if ((((ar * (at - bY)) / at) > cb)) | |
478 | 479 | then true | |
479 | - | else ( | |
480 | + | else (cb > ((ar * (at + bY)) / at))) | |
480 | 481 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
481 | - | else if (if (( | |
482 | + | else if (if ((bA != ae)) | |
482 | 483 | then true | |
483 | - | else ( | |
484 | + | else (bC != af)) | |
484 | 485 | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
485 | - | else if (( | |
486 | + | else if ((bT == 0)) | |
486 | 487 | then throw("Too small amount to replenish") | |
487 | 488 | else if (!(aL)) | |
488 | - | then ([ScriptTransfer(aB.caller, | |
489 | - | else [Reissue(am, | |
489 | + | then ([ScriptTransfer(aB.caller, bz, bA), ScriptTransfer(aB.caller, bB, bC)] ++ bf()) | |
490 | + | else [Reissue(am, bT, true), IntegerEntry(f, bz), IntegerEntry(g, bB), IntegerEntry(k, bT), ScriptTransfer(aB.caller, bT, am)] | |
490 | 491 | } | |
491 | 492 | } | |
492 | 493 | else { | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
494 | + | let cb = fraction(fraction(ak, as, bz), ar, fraction(al, as, bB)) | |
495 | + | let cc = fraction(bz, as, ak) | |
496 | + | let cd = fraction(bB, as, al) | |
497 | + | let ce = fraction(min([cc, cd]), an, as) | |
497 | 498 | if (!(ab)) | |
498 | 499 | then throw("DApp is inactive at this moment") | |
499 | - | else if (if ((0 > | |
500 | + | else if (if ((0 > bY)) | |
500 | 501 | then true | |
501 | - | else ( | |
502 | - | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString( | |
502 | + | else (bY > at)) | |
503 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bY))) | |
503 | 504 | else if ((size(aB.payments) != 2)) | |
504 | 505 | then throw("Two attached assets expected") | |
505 | - | else if (if (( | |
506 | + | else if (if ((bA != ae)) | |
506 | 507 | then true | |
507 | - | else ( | |
508 | + | else (bC != af)) | |
508 | 509 | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
509 | - | else if (if ((((ar * (at - | |
510 | + | else if (if ((((ar * (at - bY)) / at) > cb)) | |
510 | 511 | then true | |
511 | - | else ( | |
512 | + | else (cb > ((ar * (at + bY)) / at))) | |
512 | 513 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
513 | - | else if (( | |
514 | + | else if ((ce == 0)) | |
514 | 515 | then throw("Too small amount to replenish") | |
515 | 516 | else if (!(aL)) | |
516 | - | then ([ScriptTransfer(aB.caller, | |
517 | - | else [IntegerEntry(f, (ak + | |
517 | + | then ([ScriptTransfer(aB.caller, bz, bA), ScriptTransfer(aB.caller, bB, bC)] ++ bf()) | |
518 | + | else [IntegerEntry(f, (ak + bz)), IntegerEntry(g, (al + bB)), IntegerEntry(k, (an + ce)), Reissue(am, ce, true), ScriptTransfer(aB.caller, ce, am)] | |
518 | 519 | } | |
519 | 520 | } | |
520 | 521 | ||
522 | 523 | ||
523 | 524 | @Callable(aB) | |
524 | 525 | func withdraw () = { | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
526 | + | let cf = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
527 | + | let cg = cf._1 | |
528 | + | let ch = cf._2 | |
529 | + | let ci = aT(fraction(cg, ak, an), ae, af) | |
530 | + | let cj = aT(fraction(cg, al, an), af, ae) | |
530 | 531 | if (!(ab)) | |
531 | 532 | then throw("DApp is inactive at this moment") | |
532 | 533 | else if ((size(aB.payments) != 1)) | |
533 | 534 | then throw("One attached payment expected") | |
534 | - | else if (( | |
535 | + | else if ((ch != am)) | |
535 | 536 | then throw(("Incorrect asset attached. Expected: " + toBase58String(am))) | |
536 | 537 | else if (!(aL)) | |
537 | - | then ([ScriptTransfer(aB.caller, | |
538 | - | else if (if (( | |
538 | + | then ([ScriptTransfer(aB.caller, cg, ch)] ++ bf()) | |
539 | + | else if (if ((ci > aH)) | |
539 | 540 | then true | |
540 | - | else ( | |
541 | - | then bc( | |
542 | - | else [IntegerEntry(f, (ak - | |
541 | + | else (cj > aI)) | |
542 | + | then bc(ci, cj) | |
543 | + | else [IntegerEntry(f, (ak - ci)), IntegerEntry(g, (al - cj)), IntegerEntry(k, (an - cg)), Burn(am, cg), ScriptTransfer(aB.caller, ci, ae), ScriptTransfer(aB.caller, cj, af)] | |
543 | 544 | } | |
544 | 545 | ||
545 | 546 | ||
546 | 547 | ||
547 | 548 | @Callable(aB) | |
548 | - | func exchange ( | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
557 | - | then throw(((("Calculated amount to receive " + toString( | |
558 | - | else $Tuple3( | |
549 | + | func exchange (ck) = { | |
550 | + | let cl = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
551 | + | let cg = cl._1 | |
552 | + | let ch = cl._2 | |
553 | + | func cm (cn,co) = { | |
554 | + | let cp = fraction(co, cg, (cg + cn)) | |
555 | + | let cq = fraction(cp, (aq - ao), aq) | |
556 | + | let cr = fraction(cp, ap, aq) | |
557 | + | if ((ck > cq)) | |
558 | + | then throw(((("Calculated amount to receive " + toString(cq)) + " is less than specified minimum ") + toString(ck))) | |
559 | + | else $Tuple3(cp, cq, cr) | |
559 | 560 | } | |
560 | 561 | ||
561 | 562 | if (!(ab)) | |
564 | 565 | then true | |
565 | 566 | else (al == 0)) | |
566 | 567 | then throw("Can't exchange with zero balance") | |
567 | - | else if ((0 >= | |
568 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
568 | + | else if ((0 >= ck)) | |
569 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(ck))) | |
569 | 570 | else if ((size(aB.payments) != 1)) | |
570 | 571 | then throw("One attached payment expected") | |
571 | 572 | else if (!(aL)) | |
572 | - | then ([ScriptTransfer(aB.caller, | |
573 | - | else if (( | |
573 | + | then ([ScriptTransfer(aB.caller, cg, ch)] ++ bf()) | |
574 | + | else if ((ch == ae)) | |
574 | 575 | then { | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | if (if ((aD >= | |
576 | + | let cs = af | |
577 | + | let ct = cm(ak, al) | |
578 | + | let cp = ct._1 | |
579 | + | let cq = ct._2 | |
580 | + | let cr = ct._3 | |
581 | + | let cu = (ak + cg) | |
582 | + | let cv = ((al - cq) - cr) | |
583 | + | if (if ((aD >= cu)) | |
583 | 584 | then true | |
584 | - | else (aE >= | |
585 | - | then aZ( | |
586 | - | else [IntegerEntry(f, | |
585 | + | else (aE >= cv)) | |
586 | + | then aZ(cq, aI, aj) | |
587 | + | else [IntegerEntry(f, cu), IntegerEntry(g, cv), ScriptTransfer(aB.caller, cq, cs), ScriptTransfer(L, cr, cs)] | |
587 | 588 | } | |
588 | - | else if (( | |
589 | + | else if ((ch == af)) | |
589 | 590 | then { | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | if (if ((aD >= | |
591 | + | let cs = ae | |
592 | + | let cw = cm(al, ak) | |
593 | + | let cp = cw._1 | |
594 | + | let cq = cw._2 | |
595 | + | let cr = cw._3 | |
596 | + | let cu = ((ak - cq) - cr) | |
597 | + | let cv = (al + cg) | |
598 | + | if (if ((aD >= cu)) | |
598 | 599 | then true | |
599 | - | else (aE >= | |
600 | - | then aZ( | |
601 | - | else [IntegerEntry(f, | |
600 | + | else (aE >= cv)) | |
601 | + | then aZ(cq, aH, ag) | |
602 | + | else [IntegerEntry(f, cu), IntegerEntry(g, cv), ScriptTransfer(aB.caller, cq, cs), ScriptTransfer(L, cr, cs)] | |
602 | 603 | } | |
603 | 604 | else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad)) | |
604 | 605 | } | |
624 | 625 | ||
625 | 626 | ||
626 | 627 | @Callable(aB) | |
627 | - | func takeIntoAccountExtraFunds ( | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | then | |
628 | + | func takeIntoAccountExtraFunds (cx) = { | |
629 | + | let cy = (aJ - ak) | |
630 | + | let cz = (aK - al) | |
631 | + | let cA = (cy - (if ((ae == unit)) | |
632 | + | then cx | |
632 | 633 | else 0)) | |
633 | - | let | |
634 | - | then | |
634 | + | let cB = (cz - (if ((af == unit)) | |
635 | + | then cx | |
635 | 636 | else 0)) | |
636 | 637 | if (!(ab)) | |
637 | 638 | then throw("DApp is inactive at this moment") | |
638 | 639 | else if ((aB.caller != this)) | |
639 | 640 | then throw("Only the DApp itself can call this function") | |
640 | - | else if ((0 > | |
641 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
642 | - | else if (if ((0 > | |
641 | + | else if ((0 > cx)) | |
642 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cx))) | |
643 | + | else if (if ((0 > cy)) | |
643 | 644 | then true | |
644 | - | else (0 > | |
645 | + | else (0 > cz)) | |
645 | 646 | then aR("Enroll amount negative") | |
646 | - | else if (if ((0 > | |
647 | + | else if (if ((0 > cA)) | |
647 | 648 | then true | |
648 | - | else (0 > | |
649 | + | else (0 > cB)) | |
649 | 650 | then throw("Too large amountLeave") | |
650 | - | else [IntegerEntry(f, (ak + | |
651 | + | else [IntegerEntry(f, (ak + cA)), IntegerEntry(g, (al + cB)), IntegerEntry(("last_income_" + ac), cA), IntegerEntry(("last_income_" + ad), cB)] | |
651 | 652 | } | |
652 | 653 | ||
653 | 654 | ||
656 | 657 | func enableFirstHarvest () = [BooleanEntry(o, true), IntegerEntry(p, (Y + (aa * Z)))] | |
657 | 658 | ||
658 | 659 | ||
659 | - | @Verifier( | |
660 | - | func | |
661 | - | let | |
662 | - | let | |
660 | + | @Verifier(cC) | |
661 | + | func cD () = { | |
662 | + | let cE = { | |
663 | + | let cF = if (sigVerify(cC.bodyBytes, cC.proofs[0], G)) | |
663 | 664 | then 1 | |
664 | 665 | else 0 | |
665 | - | let | |
666 | + | let cG = if (sigVerify(cC.bodyBytes, cC.proofs[1], H)) | |
666 | 667 | then 1 | |
667 | 668 | else 0 | |
668 | - | let | |
669 | + | let cH = if (sigVerify(cC.bodyBytes, cC.proofs[2], I)) | |
669 | 670 | then 1 | |
670 | 671 | else 0 | |
671 | - | ((( | |
672 | + | (((cF + cG) + cH) >= 2) | |
672 | 673 | } | |
673 | - | let D = | |
674 | + | let D = cC | |
674 | 675 | if ($isInstanceOf(D, "InvokeScriptTransaction")) | |
675 | 676 | then { | |
676 | - | let | |
677 | - | let | |
678 | - | then ( | |
677 | + | let cI = D | |
678 | + | let cJ = if ((cI.dApp == this)) | |
679 | + | then (cI.function == "takeIntoAccountExtraFunds") | |
679 | 680 | else false | |
680 | - | let | |
681 | - | then ( | |
681 | + | let cK = if ((cI.dApp == this)) | |
682 | + | then (cI.function == "enableFirstHarvest") | |
682 | 683 | else false | |
683 | - | let | |
684 | - | then if (if (if (( | |
685 | - | then (size( | |
684 | + | let cL = if (if ((cI.dApp == R)) | |
685 | + | then if (if (if ((cI.function == "lockNeutrino")) | |
686 | + | then (size(cI.payments) == 1) | |
686 | 687 | else false) | |
687 | - | then if (( | |
688 | + | then if ((cI.payments[0].assetId == N)) | |
688 | 689 | then true | |
689 | - | else ( | |
690 | + | else (cI.payments[0].assetId == O) | |
690 | 691 | else false) | |
691 | 692 | then true | |
692 | - | else if (( | |
693 | - | then (size( | |
693 | + | else if ((cI.function == "unlockNeutrino")) | |
694 | + | then (size(cI.payments) == 0) | |
694 | 695 | else false | |
695 | 696 | else false) | |
696 | 697 | then true | |
697 | - | else if (( | |
698 | - | then if (if (if (( | |
699 | - | then (size( | |
698 | + | else if ((cI.dApp == S)) | |
699 | + | then if (if (if ((cI.function == "startStaking")) | |
700 | + | then (size(cI.payments) == 1) | |
700 | 701 | else false) | |
701 | - | then ( | |
702 | + | then (cI.payments[0].assetId == Q) | |
702 | 703 | else false) | |
703 | 704 | then true | |
704 | - | else if (( | |
705 | - | then (size( | |
705 | + | else if ((cI.function == "stopStaking")) | |
706 | + | then (size(cI.payments) == 0) | |
706 | 707 | else false | |
707 | 708 | else false | |
708 | - | let | |
709 | - | then ( | |
709 | + | let cM = if (if (if ((cI.dApp == T)) | |
710 | + | then (cI.function == "exchange") | |
710 | 711 | else false) | |
711 | 712 | then (ae == N) | |
712 | 713 | else false) | |
713 | 714 | then true | |
714 | 715 | else if (if ((af == N)) | |
715 | - | then (size( | |
716 | + | then (size(cI.payments) == 1) | |
716 | 717 | else false) | |
717 | - | then ( | |
718 | + | then (cI.payments[0].assetId == N) | |
718 | 719 | else false | |
719 | - | let | |
720 | - | then ( | |
720 | + | let cN = if (if (if ((cI.dApp == U)) | |
721 | + | then (cI.function == "exchange") | |
721 | 722 | else false) | |
722 | 723 | then (ae == O) | |
723 | 724 | else false) | |
724 | 725 | then true | |
725 | 726 | else if (if ((af == O)) | |
726 | - | then (size( | |
727 | + | then (size(cI.payments) == 1) | |
727 | 728 | else false) | |
728 | - | then ( | |
729 | + | then (cI.payments[0].assetId == N) | |
729 | 730 | else false | |
730 | - | let | |
731 | + | let cO = if (if (if (sigVerify(cC.bodyBytes, cC.proofs[0], G)) | |
731 | 732 | then true | |
732 | - | else sigVerify( | |
733 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], H)) | |
733 | 734 | then true | |
734 | - | else sigVerify( | |
735 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], I)) | |
735 | 736 | then true | |
736 | - | else sigVerify(cB.bodyBytes, cB.proofs[0], K) | |
737 | - | if (if (if (if (if (if (cI) | |
738 | - | then true | |
739 | - | else cJ) | |
737 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], K) | |
738 | + | if (if (if (if (if (if (cJ) | |
740 | 739 | then true | |
741 | 740 | else cK) | |
742 | 741 | then true | |
743 | 742 | else cL) | |
744 | 743 | then true | |
745 | 744 | else cM) | |
746 | - | then cN | |
745 | + | then true | |
746 | + | else cN) | |
747 | + | then cO | |
747 | 748 | else false) | |
748 | 749 | then true | |
749 | - | else | |
750 | + | else cE | |
750 | 751 | } | |
751 | - | else | |
752 | + | else cE | |
752 | 753 | } | |
753 | 754 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let e = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let f = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let g = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let h = "A_asset_init" | |
19 | 19 | ||
20 | 20 | let i = "B_asset_init" | |
21 | 21 | ||
22 | 22 | let j = "share_asset_id" | |
23 | 23 | ||
24 | 24 | let k = "share_asset_supply" | |
25 | 25 | ||
26 | 26 | let l = "commission" | |
27 | 27 | ||
28 | 28 | let m = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let n = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let o = "first_harvest" | |
33 | 33 | ||
34 | 34 | let p = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let q = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let r = "base_period" | |
39 | 39 | ||
40 | 40 | let s = "period_length" | |
41 | 41 | ||
42 | 42 | let t = "start_height" | |
43 | 43 | ||
44 | 44 | let u = "asset_priority_" | |
45 | 45 | ||
46 | 46 | let v = "script_hash_cpmm" | |
47 | 47 | ||
48 | 48 | let w = "init_pool_height" | |
49 | 49 | ||
50 | 50 | let x = "admin_pub_1" | |
51 | 51 | ||
52 | 52 | let y = "admin_pub_2" | |
53 | 53 | ||
54 | 54 | let z = "admin_pub_3" | |
55 | 55 | ||
56 | 56 | let A = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
57 | 57 | ||
58 | 58 | func B (C) = { | |
59 | 59 | let D = getString(A, C) | |
60 | 60 | if ($isInstanceOf(D, "String")) | |
61 | 61 | then { | |
62 | 62 | let E = D | |
63 | 63 | fromBase58String(E) | |
64 | 64 | } | |
65 | 65 | else { | |
66 | 66 | let F = D | |
67 | 67 | throw("Admin public key is empty") | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | let G = B(x) | |
73 | 73 | ||
74 | 74 | let H = B(y) | |
75 | 75 | ||
76 | 76 | let I = B(z) | |
77 | 77 | ||
78 | 78 | let J = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
79 | 79 | ||
80 | 80 | let K = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
81 | 81 | ||
82 | 82 | let L = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
83 | 83 | ||
84 | 84 | let M = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
85 | 85 | ||
86 | 86 | let N = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
87 | 87 | ||
88 | 88 | let O = base58'36mg8NZTaFRDygiVwb8uBnLR51hetJruUCZcxhaVcHj9' | |
89 | 89 | ||
90 | 90 | let P = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ' | |
91 | 91 | ||
92 | 92 | let Q = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
93 | 93 | ||
94 | 94 | let R = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
95 | 95 | ||
96 | 96 | let S = Address(base58'3MyVqAbmKWh339gF6hy8faWw1jGeTV2wnGE') | |
97 | 97 | ||
98 | 98 | let T = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
99 | 99 | ||
100 | 100 | let U = Address(base58'3Mye9wVR7d2mc6Y5ZJTu11svzgUQ7o8H9dA') | |
101 | 101 | ||
102 | 102 | let V = 270000 | |
103 | 103 | ||
104 | 104 | let W = 234000 | |
105 | 105 | ||
106 | 106 | let X = valueOrErrorMessage(getInteger(M, r), "Empty keyBasePeriod") | |
107 | 107 | ||
108 | 108 | let Y = valueOrErrorMessage(getInteger(M, t), "Empty keyStartHeight") | |
109 | 109 | ||
110 | 110 | let Z = valueOrErrorMessage(getInteger(M, s), "Empty keyPeriodLength") | |
111 | 111 | ||
112 | 112 | let aa = ((X + ((height - Y) / Z)) + 1) | |
113 | 113 | ||
114 | 114 | let ab = getBooleanValue(this, c) | |
115 | 115 | ||
116 | 116 | let ac = getStringValue(this, d) | |
117 | 117 | ||
118 | 118 | let ad = getStringValue(this, e) | |
119 | 119 | ||
120 | 120 | let ae = if ((ac == "WAVES")) | |
121 | 121 | then unit | |
122 | 122 | else fromBase58String(ac) | |
123 | 123 | ||
124 | 124 | let af = if ((ad == "WAVES")) | |
125 | 125 | then unit | |
126 | 126 | else fromBase58String(ad) | |
127 | 127 | ||
128 | 128 | let ag = { | |
129 | 129 | let D = ae | |
130 | 130 | if ($isInstanceOf(D, "ByteVector")) | |
131 | 131 | then { | |
132 | 132 | let ah = D | |
133 | 133 | value(assetInfo(ah)).name | |
134 | 134 | } | |
135 | 135 | else if ($isInstanceOf(D, "Unit")) | |
136 | 136 | then { | |
137 | 137 | let ai = D | |
138 | 138 | "WAVES" | |
139 | 139 | } | |
140 | 140 | else throw("Match error") | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | let aj = { | |
144 | 144 | let D = af | |
145 | 145 | if ($isInstanceOf(D, "ByteVector")) | |
146 | 146 | then { | |
147 | 147 | let ah = D | |
148 | 148 | value(assetInfo(ah)).name | |
149 | 149 | } | |
150 | 150 | else if ($isInstanceOf(D, "Unit")) | |
151 | 151 | then { | |
152 | 152 | let ai = D | |
153 | 153 | "WAVES" | |
154 | 154 | } | |
155 | 155 | else throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | let ak = getIntegerValue(this, f) | |
159 | 159 | ||
160 | 160 | let al = getIntegerValue(this, g) | |
161 | 161 | ||
162 | 162 | let am = fromBase58String(getStringValue(this, j)) | |
163 | 163 | ||
164 | 164 | let an = getIntegerValue(this, k) | |
165 | 165 | ||
166 | 166 | let ao = 3000 | |
167 | 167 | ||
168 | 168 | let ap = 1200 | |
169 | 169 | ||
170 | 170 | let aq = 1000000 | |
171 | 171 | ||
172 | 172 | let ar = 1000 | |
173 | 173 | ||
174 | 174 | let as = 100000000 | |
175 | 175 | ||
176 | 176 | let at = 1000 | |
177 | 177 | ||
178 | 178 | let au = 8 | |
179 | 179 | ||
180 | 180 | let av = 1000000000 | |
181 | 181 | ||
182 | 182 | func aw (ax) = { | |
183 | 183 | let D = ax | |
184 | 184 | if ($isInstanceOf(D, "ByteVector")) | |
185 | 185 | then { | |
186 | 186 | let ah = D | |
187 | 187 | assetBalance(this, ah) | |
188 | 188 | } | |
189 | 189 | else if ($isInstanceOf(D, "Unit")) | |
190 | 190 | then { | |
191 | 191 | let ai = D | |
192 | 192 | wavesBalance(this).available | |
193 | 193 | } | |
194 | 194 | else throw("Match error") | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func ay (ax) = { | |
199 | 199 | let az = { | |
200 | 200 | let D = ax | |
201 | 201 | if ($isInstanceOf(D, "ByteVector")) | |
202 | 202 | then { | |
203 | 203 | let aA = D | |
204 | 204 | if (if ((aA == N)) | |
205 | 205 | then true | |
206 | 206 | else (aA == O)) | |
207 | 207 | then getInteger(R, ((("rpd_balance_" + toBase58String(aA)) + "_") + toString(this))) | |
208 | 208 | else if ((aA == Q)) | |
209 | 209 | then getInteger(S, ((("%s%s%s__stakingBalance__" + toBase58String(aA)) + "__") + toString(this))) | |
210 | 210 | else 0 | |
211 | 211 | } | |
212 | 212 | else if ($isInstanceOf(D, "Unit")) | |
213 | 213 | then 0 | |
214 | 214 | else throw("Match error") | |
215 | 215 | } | |
216 | 216 | let D = az | |
217 | 217 | if ($isInstanceOf(D, "Int")) | |
218 | 218 | then { | |
219 | 219 | let aB = D | |
220 | 220 | aB | |
221 | 221 | } | |
222 | 222 | else 0 | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aC (ax) = { | |
227 | 227 | let D = ax | |
228 | 228 | if ($isInstanceOf(D, "ByteVector")) | |
229 | 229 | then { | |
230 | 230 | let ah = D | |
231 | 231 | if (if ((ah == N)) | |
232 | 232 | then true | |
233 | 233 | else (ah == P)) | |
234 | 234 | then true | |
235 | 235 | else false | |
236 | 236 | } | |
237 | 237 | else if ($isInstanceOf(D, "Unit")) | |
238 | 238 | then { | |
239 | 239 | let ai = D | |
240 | 240 | true | |
241 | 241 | } | |
242 | 242 | else throw("Match error") | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | let aD = ay(ae) | |
247 | 247 | ||
248 | 248 | let aE = ay(af) | |
249 | 249 | ||
250 | 250 | let aF = getIntegerValue(this, h) | |
251 | 251 | ||
252 | 252 | let aG = getIntegerValue(this, i) | |
253 | 253 | ||
254 | 254 | let aH = (ak - aD) | |
255 | 255 | ||
256 | 256 | let aI = (al - aE) | |
257 | 257 | ||
258 | 258 | let aJ = (aw(ae) + aD) | |
259 | 259 | ||
260 | 260 | let aK = (aw(af) + aE) | |
261 | 261 | ||
262 | 262 | let aL = if ((aJ >= ak)) | |
263 | 263 | then (aK >= al) | |
264 | 264 | else false | |
265 | 265 | ||
266 | 266 | func aM (ax) = { | |
267 | 267 | let D = ax | |
268 | 268 | if ($isInstanceOf(D, "ByteVector")) | |
269 | 269 | then { | |
270 | 270 | let ah = D | |
271 | 271 | let aN = toBase58String(ah) | |
272 | 272 | let aO = valueOrErrorMessage(assetInfo(ah), (("Asset " + aN) + " doesn't exist")) | |
273 | 273 | $Tuple3(aN, aO.name, aO.decimals) | |
274 | 274 | } | |
275 | 275 | else if ($isInstanceOf(D, "Unit")) | |
276 | 276 | then { | |
277 | 277 | let ai = D | |
278 | 278 | $Tuple3("WAVES", "WAVES", 8) | |
279 | 279 | } | |
280 | 280 | else throw("Match error") | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func aP (aQ) = if ((aQ == "WAVES")) | |
285 | 285 | then $Tuple3("WAVES", "WAVES", 8) | |
286 | 286 | else { | |
287 | 287 | let aN = aQ | |
288 | 288 | let ah = fromBase58String(aQ) | |
289 | 289 | let aO = valueOrErrorMessage(assetInfo(ah), (("Asset " + aN) + " doesn't exist")) | |
290 | 290 | $Tuple3(aN, aO.name, aO.decimals) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func aR (aS) = [BooleanEntry(c, false), StringEntry(n, aS)] | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | func aT (aU,ax,aV) = if (if ((ax == N)) | |
298 | 298 | then true | |
299 | 299 | else (ax == Q)) | |
300 | 300 | then { | |
301 | 301 | let aW = if ((ax == N)) | |
302 | 302 | then (V * (if ((aV == O)) | |
303 | 303 | then 2 | |
304 | 304 | else 1)) | |
305 | 305 | else if ((ax == Q)) | |
306 | 306 | then W | |
307 | 307 | else 0 | |
308 | 308 | let aX = (aU - aW) | |
309 | 309 | if ((0 >= aX)) | |
310 | 310 | then throw((((("Insufficient amount " + toString(aU)) + " to deduct staking fee ") + toString(aW)) + "USDN/EURN")) | |
311 | 311 | else aX | |
312 | 312 | } | |
313 | 313 | else aU | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func aY (ax,aV) = if ((ax == N)) | |
317 | 317 | then (V * (if ((aV == O)) | |
318 | 318 | then 2 | |
319 | 319 | else 1)) | |
320 | 320 | else if ((ax == Q)) | |
321 | 321 | then W | |
322 | 322 | else 0 | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func aZ (aU,ba,bb) = throw((((((((("Insufficient DApp balance to pay " + toString(aU)) + " ") + bb) + " due to staking. Available: ") + toString(ba)) + " ") + bb) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func bc (bd,be) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(bd)) + " ") + ag) + " and ") + toString(be)) + " ") + aj) + " due to staking. Available: ") + toString(aH)) + " ") + ag) + " and ") + toString(aI)) + " ") + aj) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func bf () = aR(((((((((((((((("Suspicious state. Actual balances: " + toString(aJ)) + " ") + ag) + ", ") + toString(aK)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj)) | |
332 | 332 | ||
333 | 333 | ||
334 | 334 | @Callable(aB) | |
335 | 335 | func init (bg) = { | |
336 | 336 | let bh = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
337 | 337 | let bi = bh._1 | |
338 | 338 | let bj = bh._2 | |
339 | 339 | let bk = $Tuple2(aB.payments[1].amount, aB.payments[1].assetId) | |
340 | 340 | let bl = bk._1 | |
341 | 341 | let bm = bk._2 | |
342 | 342 | let bn = $Tuple2(aB.payments[2].amount, aB.payments[2].assetId) | |
343 | 343 | let bo = bn._1 | |
344 | 344 | let bp = bn._2 | |
345 | 345 | let bq = isDataStorageUntouched(this) | |
346 | 346 | let br = scriptHash(this) | |
347 | 347 | let bs = addressFromStringValue(bg) | |
348 | + | let bt = value(getBinary(A, v)) | |
348 | 349 | if ((aB.caller == this)) | |
349 | 350 | then throw("You can't call yourself") | |
350 | 351 | else if (if ((bp != P)) | |
351 | 352 | then true | |
352 | 353 | else (bo != av)) | |
353 | 354 | then throw("You need to attach 10 SWOP tokens") | |
354 | 355 | else if (if (!(aC(bj))) | |
355 | 356 | then !(aC(bm)) | |
356 | 357 | else false) | |
357 | 358 | then throw("One of assets must be USDN, WAVES or SWOP") | |
358 | - | else if (if ((br != | |
359 | + | else if (if ((br != bt)) | |
359 | 360 | then true | |
360 | 361 | else !(bq)) | |
361 | 362 | then throw("Unexpected script was found.") | |
362 | 363 | else if (isDefined(getBoolean(this, c))) | |
363 | 364 | then throw("DApp is already active") | |
364 | 365 | else if ((bj == bm)) | |
365 | 366 | then throw("Assets must be different") | |
366 | 367 | else { | |
367 | - | let | |
368 | + | let bu = { | |
368 | 369 | let D = bj | |
369 | 370 | if ($isInstanceOf(D, "ByteVector")) | |
370 | 371 | then { | |
371 | 372 | let ah = D | |
372 | 373 | toBase58String(ah) | |
373 | 374 | } | |
374 | 375 | else if ($isInstanceOf(D, "Unit")) | |
375 | 376 | then { | |
376 | 377 | let ai = D | |
377 | 378 | "WAVES" | |
378 | 379 | } | |
379 | 380 | else throw("Match error") | |
380 | 381 | } | |
381 | - | let | |
382 | + | let bv = { | |
382 | 383 | let D = bm | |
383 | 384 | if ($isInstanceOf(D, "ByteVector")) | |
384 | 385 | then { | |
385 | 386 | let ah = D | |
386 | 387 | toBase58String(ah) | |
387 | 388 | } | |
388 | 389 | else if ($isInstanceOf(D, "Unit")) | |
389 | 390 | then { | |
390 | 391 | let ai = D | |
391 | 392 | "WAVES" | |
392 | 393 | } | |
393 | 394 | else throw("Match error") | |
394 | 395 | } | |
395 | - | let bv = valueOrElse(getInteger(A, (u + bt)), 999999) | |
396 | 396 | let bw = valueOrElse(getInteger(A, (u + bu)), 999999) | |
397 | - | let bx = if ((bw > bv)) | |
397 | + | let bx = valueOrElse(getInteger(A, (u + bv)), 999999) | |
398 | + | let by = if ((bx > bw)) | |
398 | 399 | then $Tuple4(bl, bm, bi, bj) | |
399 | 400 | else $Tuple4(bi, bj, bl, bm) | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (( | |
401 | + | let bz = by._1 | |
402 | + | let bA = by._2 | |
403 | + | let bB = by._3 | |
404 | + | let bC = by._4 | |
405 | + | let bD = aM(bA) | |
406 | + | let bE = bD._1 | |
407 | + | let bF = bD._2 | |
408 | + | let bG = bD._3 | |
409 | + | let bH = aM(bC) | |
410 | + | let bI = bH._1 | |
411 | + | let bJ = bH._2 | |
412 | + | let bK = bH._3 | |
413 | + | let bL = [toString(this), ((bF + "_") + bJ), bE, bI] | |
414 | + | let bM = invoke(A, "addPool", bL, nil) | |
415 | + | if ((bM == bM)) | |
415 | 416 | then if (!(isDefined(getString(A, ("pool_" + toString(this)))))) | |
416 | 417 | then throw("Pool is not added") | |
417 | 418 | else { | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | | |
419 | + | let bN = ((("s" + take(bF, 7)) + "_") + take(bJ, 7)) | |
420 | + | let bO = ((((("ShareToken of SwopFi protocol for " + bF) + " and ") + bJ) + " at address ") + toString(this)) | |
421 | + | let bP = ((bG + bK) / 2) | |
422 | + | let bQ = pow(bz, bG, 5, 1, bG, DOWN) | |
423 | + | let bR = pow(bB, bK, 5, 1, bK, DOWN) | |
424 | + | let bS = pow(10, 0, bP, 0, 0, DOWN) | |
425 | + | let bT = fraction(bQ, bR, bS) | |
426 | + | let bU = Issue(bN, bO, bT, bP, true) | |
427 | + | let bV = calculateAssetId(bU) | |
428 | + | let bW = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bE), StringEntry(e, bI), IntegerEntry(f, bz), IntegerEntry(g, bB), IntegerEntry(l, ao), IntegerEntry(m, aq), bU, StringEntry(j, toBase58String(bV)), IntegerEntry(k, bT), IntegerEntry(w, height), ScriptTransfer(bs, bT, bV), ScriptTransfer(L, av, P)] | |
429 | + | bW | |
429 | 430 | } | |
430 | 431 | else throw("Strict value is not equal to itself.") | |
431 | 432 | } | |
432 | 433 | } | |
433 | 434 | ||
434 | 435 | ||
435 | 436 | ||
436 | 437 | @Callable(aB) | |
437 | - | func keepLimitForFirstHarvest ( | |
438 | + | func keepLimitForFirstHarvest (bX) = if (!(ab)) | |
438 | 439 | then throw("DApp is inactive at this moment") | |
439 | 440 | else if (!(containsElement([G, H, I, K], aB.callerPublicKey))) | |
440 | 441 | then throw("Only admin can call this function") | |
441 | - | else [IntegerEntry(q, | |
442 | + | else [IntegerEntry(q, bX)] | |
442 | 443 | ||
443 | 444 | ||
444 | 445 | ||
445 | 446 | @Callable(aB) | |
446 | - | func replenishWithTwoTokens ( | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
447 | + | func replenishWithTwoTokens (bY) = { | |
448 | + | let bA = aB.payments[0].assetId | |
449 | + | let bC = aB.payments[1].assetId | |
450 | + | let bz = aT(aB.payments[0].amount, bA, bC) | |
451 | + | let bB = aT(aB.payments[1].amount, bC, bA) | |
451 | 452 | if (if ((ak == 0)) | |
452 | 453 | then (al == 0) | |
453 | 454 | else false) | |
454 | 455 | then { | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | if (( | |
456 | + | let bZ = aM(bA) | |
457 | + | let bE = bZ._1 | |
458 | + | let bF = bZ._2 | |
459 | + | let bG = bZ._3 | |
460 | + | let ca = aM(bC) | |
461 | + | let bI = ca._1 | |
462 | + | let bJ = ca._2 | |
463 | + | let bK = ca._3 | |
464 | + | let cb = fraction(fraction(aF, as, bz), ar, fraction(aG, as, bB)) | |
465 | + | if ((bA == bC)) | |
465 | 466 | then throw("Assets must be different") | |
466 | 467 | else { | |
467 | - | let | |
468 | - | let | |
468 | + | let bP = ((bG + bK) / 2) | |
469 | + | let bT = fraction(pow(bz, bG, 5, 1, bG, DOWN), pow(bB, bK, 5, 1, bK, DOWN), pow(10, 0, bP, 0, 0, DOWN)) | |
469 | 470 | if (!(ab)) | |
470 | 471 | then throw("DApp is inactive at this moment") | |
471 | - | else if (if ((0 > | |
472 | + | else if (if ((0 > bY)) | |
472 | 473 | then true | |
473 | - | else ( | |
474 | - | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString( | |
474 | + | else (bY > at)) | |
475 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bY))) | |
475 | 476 | else if ((size(aB.payments) != 2)) | |
476 | 477 | then throw("Two attached assets expected") | |
477 | - | else if (if ((((ar * (at - | |
478 | + | else if (if ((((ar * (at - bY)) / at) > cb)) | |
478 | 479 | then true | |
479 | - | else ( | |
480 | + | else (cb > ((ar * (at + bY)) / at))) | |
480 | 481 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
481 | - | else if (if (( | |
482 | + | else if (if ((bA != ae)) | |
482 | 483 | then true | |
483 | - | else ( | |
484 | + | else (bC != af)) | |
484 | 485 | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
485 | - | else if (( | |
486 | + | else if ((bT == 0)) | |
486 | 487 | then throw("Too small amount to replenish") | |
487 | 488 | else if (!(aL)) | |
488 | - | then ([ScriptTransfer(aB.caller, | |
489 | - | else [Reissue(am, | |
489 | + | then ([ScriptTransfer(aB.caller, bz, bA), ScriptTransfer(aB.caller, bB, bC)] ++ bf()) | |
490 | + | else [Reissue(am, bT, true), IntegerEntry(f, bz), IntegerEntry(g, bB), IntegerEntry(k, bT), ScriptTransfer(aB.caller, bT, am)] | |
490 | 491 | } | |
491 | 492 | } | |
492 | 493 | else { | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
494 | + | let cb = fraction(fraction(ak, as, bz), ar, fraction(al, as, bB)) | |
495 | + | let cc = fraction(bz, as, ak) | |
496 | + | let cd = fraction(bB, as, al) | |
497 | + | let ce = fraction(min([cc, cd]), an, as) | |
497 | 498 | if (!(ab)) | |
498 | 499 | then throw("DApp is inactive at this moment") | |
499 | - | else if (if ((0 > | |
500 | + | else if (if ((0 > bY)) | |
500 | 501 | then true | |
501 | - | else ( | |
502 | - | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString( | |
502 | + | else (bY > at)) | |
503 | + | then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bY))) | |
503 | 504 | else if ((size(aB.payments) != 2)) | |
504 | 505 | then throw("Two attached assets expected") | |
505 | - | else if (if (( | |
506 | + | else if (if ((bA != ae)) | |
506 | 507 | then true | |
507 | - | else ( | |
508 | + | else (bC != af)) | |
508 | 509 | then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad)) | |
509 | - | else if (if ((((ar * (at - | |
510 | + | else if (if ((((ar * (at - bY)) / at) > cb)) | |
510 | 511 | then true | |
511 | - | else ( | |
512 | + | else (cb > ((ar * (at + bY)) / at))) | |
512 | 513 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
513 | - | else if (( | |
514 | + | else if ((ce == 0)) | |
514 | 515 | then throw("Too small amount to replenish") | |
515 | 516 | else if (!(aL)) | |
516 | - | then ([ScriptTransfer(aB.caller, | |
517 | - | else [IntegerEntry(f, (ak + | |
517 | + | then ([ScriptTransfer(aB.caller, bz, bA), ScriptTransfer(aB.caller, bB, bC)] ++ bf()) | |
518 | + | else [IntegerEntry(f, (ak + bz)), IntegerEntry(g, (al + bB)), IntegerEntry(k, (an + ce)), Reissue(am, ce, true), ScriptTransfer(aB.caller, ce, am)] | |
518 | 519 | } | |
519 | 520 | } | |
520 | 521 | ||
521 | 522 | ||
522 | 523 | ||
523 | 524 | @Callable(aB) | |
524 | 525 | func withdraw () = { | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
526 | + | let cf = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
527 | + | let cg = cf._1 | |
528 | + | let ch = cf._2 | |
529 | + | let ci = aT(fraction(cg, ak, an), ae, af) | |
530 | + | let cj = aT(fraction(cg, al, an), af, ae) | |
530 | 531 | if (!(ab)) | |
531 | 532 | then throw("DApp is inactive at this moment") | |
532 | 533 | else if ((size(aB.payments) != 1)) | |
533 | 534 | then throw("One attached payment expected") | |
534 | - | else if (( | |
535 | + | else if ((ch != am)) | |
535 | 536 | then throw(("Incorrect asset attached. Expected: " + toBase58String(am))) | |
536 | 537 | else if (!(aL)) | |
537 | - | then ([ScriptTransfer(aB.caller, | |
538 | - | else if (if (( | |
538 | + | then ([ScriptTransfer(aB.caller, cg, ch)] ++ bf()) | |
539 | + | else if (if ((ci > aH)) | |
539 | 540 | then true | |
540 | - | else ( | |
541 | - | then bc( | |
542 | - | else [IntegerEntry(f, (ak - | |
541 | + | else (cj > aI)) | |
542 | + | then bc(ci, cj) | |
543 | + | else [IntegerEntry(f, (ak - ci)), IntegerEntry(g, (al - cj)), IntegerEntry(k, (an - cg)), Burn(am, cg), ScriptTransfer(aB.caller, ci, ae), ScriptTransfer(aB.caller, cj, af)] | |
543 | 544 | } | |
544 | 545 | ||
545 | 546 | ||
546 | 547 | ||
547 | 548 | @Callable(aB) | |
548 | - | func exchange ( | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
557 | - | then throw(((("Calculated amount to receive " + toString( | |
558 | - | else $Tuple3( | |
549 | + | func exchange (ck) = { | |
550 | + | let cl = $Tuple2(aB.payments[0].amount, aB.payments[0].assetId) | |
551 | + | let cg = cl._1 | |
552 | + | let ch = cl._2 | |
553 | + | func cm (cn,co) = { | |
554 | + | let cp = fraction(co, cg, (cg + cn)) | |
555 | + | let cq = fraction(cp, (aq - ao), aq) | |
556 | + | let cr = fraction(cp, ap, aq) | |
557 | + | if ((ck > cq)) | |
558 | + | then throw(((("Calculated amount to receive " + toString(cq)) + " is less than specified minimum ") + toString(ck))) | |
559 | + | else $Tuple3(cp, cq, cr) | |
559 | 560 | } | |
560 | 561 | ||
561 | 562 | if (!(ab)) | |
562 | 563 | then throw("DApp is inactive at this moment") | |
563 | 564 | else if (if ((ak == 0)) | |
564 | 565 | then true | |
565 | 566 | else (al == 0)) | |
566 | 567 | then throw("Can't exchange with zero balance") | |
567 | - | else if ((0 >= | |
568 | - | then throw(("Minimal amount to receive must be positive. Actual: " + toString( | |
568 | + | else if ((0 >= ck)) | |
569 | + | then throw(("Minimal amount to receive must be positive. Actual: " + toString(ck))) | |
569 | 570 | else if ((size(aB.payments) != 1)) | |
570 | 571 | then throw("One attached payment expected") | |
571 | 572 | else if (!(aL)) | |
572 | - | then ([ScriptTransfer(aB.caller, | |
573 | - | else if (( | |
573 | + | then ([ScriptTransfer(aB.caller, cg, ch)] ++ bf()) | |
574 | + | else if ((ch == ae)) | |
574 | 575 | then { | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | if (if ((aD >= | |
576 | + | let cs = af | |
577 | + | let ct = cm(ak, al) | |
578 | + | let cp = ct._1 | |
579 | + | let cq = ct._2 | |
580 | + | let cr = ct._3 | |
581 | + | let cu = (ak + cg) | |
582 | + | let cv = ((al - cq) - cr) | |
583 | + | if (if ((aD >= cu)) | |
583 | 584 | then true | |
584 | - | else (aE >= | |
585 | - | then aZ( | |
586 | - | else [IntegerEntry(f, | |
585 | + | else (aE >= cv)) | |
586 | + | then aZ(cq, aI, aj) | |
587 | + | else [IntegerEntry(f, cu), IntegerEntry(g, cv), ScriptTransfer(aB.caller, cq, cs), ScriptTransfer(L, cr, cs)] | |
587 | 588 | } | |
588 | - | else if (( | |
589 | + | else if ((ch == af)) | |
589 | 590 | then { | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | if (if ((aD >= | |
591 | + | let cs = ae | |
592 | + | let cw = cm(al, ak) | |
593 | + | let cp = cw._1 | |
594 | + | let cq = cw._2 | |
595 | + | let cr = cw._3 | |
596 | + | let cu = ((ak - cq) - cr) | |
597 | + | let cv = (al + cg) | |
598 | + | if (if ((aD >= cu)) | |
598 | 599 | then true | |
599 | - | else (aE >= | |
600 | - | then aZ( | |
601 | - | else [IntegerEntry(f, | |
600 | + | else (aE >= cv)) | |
601 | + | then aZ(cq, aH, ag) | |
602 | + | else [IntegerEntry(f, cu), IntegerEntry(g, cv), ScriptTransfer(aB.caller, cq, cs), ScriptTransfer(L, cr, cs)] | |
602 | 603 | } | |
603 | 604 | else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad)) | |
604 | 605 | } | |
605 | 606 | ||
606 | 607 | ||
607 | 608 | ||
608 | 609 | @Callable(aB) | |
609 | 610 | func shutdown () = if (!(ab)) | |
610 | 611 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
611 | 612 | else if (!(containsElement([G, H, I, J], aB.callerPublicKey))) | |
612 | 613 | then throw("Only admin can call this function") | |
613 | 614 | else aR("Paused by admin") | |
614 | 615 | ||
615 | 616 | ||
616 | 617 | ||
617 | 618 | @Callable(aB) | |
618 | 619 | func activate () = if (ab) | |
619 | 620 | then throw("DApp is already active") | |
620 | 621 | else if (!(containsElement([G, H, I, J], aB.callerPublicKey))) | |
621 | 622 | then throw("Only admin can call this function") | |
622 | 623 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
623 | 624 | ||
624 | 625 | ||
625 | 626 | ||
626 | 627 | @Callable(aB) | |
627 | - | func takeIntoAccountExtraFunds ( | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | then | |
628 | + | func takeIntoAccountExtraFunds (cx) = { | |
629 | + | let cy = (aJ - ak) | |
630 | + | let cz = (aK - al) | |
631 | + | let cA = (cy - (if ((ae == unit)) | |
632 | + | then cx | |
632 | 633 | else 0)) | |
633 | - | let | |
634 | - | then | |
634 | + | let cB = (cz - (if ((af == unit)) | |
635 | + | then cx | |
635 | 636 | else 0)) | |
636 | 637 | if (!(ab)) | |
637 | 638 | then throw("DApp is inactive at this moment") | |
638 | 639 | else if ((aB.caller != this)) | |
639 | 640 | then throw("Only the DApp itself can call this function") | |
640 | - | else if ((0 > | |
641 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
642 | - | else if (if ((0 > | |
641 | + | else if ((0 > cx)) | |
642 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cx))) | |
643 | + | else if (if ((0 > cy)) | |
643 | 644 | then true | |
644 | - | else (0 > | |
645 | + | else (0 > cz)) | |
645 | 646 | then aR("Enroll amount negative") | |
646 | - | else if (if ((0 > | |
647 | + | else if (if ((0 > cA)) | |
647 | 648 | then true | |
648 | - | else (0 > | |
649 | + | else (0 > cB)) | |
649 | 650 | then throw("Too large amountLeave") | |
650 | - | else [IntegerEntry(f, (ak + | |
651 | + | else [IntegerEntry(f, (ak + cA)), IntegerEntry(g, (al + cB)), IntegerEntry(("last_income_" + ac), cA), IntegerEntry(("last_income_" + ad), cB)] | |
651 | 652 | } | |
652 | 653 | ||
653 | 654 | ||
654 | 655 | ||
655 | 656 | @Callable(aB) | |
656 | 657 | func enableFirstHarvest () = [BooleanEntry(o, true), IntegerEntry(p, (Y + (aa * Z)))] | |
657 | 658 | ||
658 | 659 | ||
659 | - | @Verifier( | |
660 | - | func | |
661 | - | let | |
662 | - | let | |
660 | + | @Verifier(cC) | |
661 | + | func cD () = { | |
662 | + | let cE = { | |
663 | + | let cF = if (sigVerify(cC.bodyBytes, cC.proofs[0], G)) | |
663 | 664 | then 1 | |
664 | 665 | else 0 | |
665 | - | let | |
666 | + | let cG = if (sigVerify(cC.bodyBytes, cC.proofs[1], H)) | |
666 | 667 | then 1 | |
667 | 668 | else 0 | |
668 | - | let | |
669 | + | let cH = if (sigVerify(cC.bodyBytes, cC.proofs[2], I)) | |
669 | 670 | then 1 | |
670 | 671 | else 0 | |
671 | - | ((( | |
672 | + | (((cF + cG) + cH) >= 2) | |
672 | 673 | } | |
673 | - | let D = | |
674 | + | let D = cC | |
674 | 675 | if ($isInstanceOf(D, "InvokeScriptTransaction")) | |
675 | 676 | then { | |
676 | - | let | |
677 | - | let | |
678 | - | then ( | |
677 | + | let cI = D | |
678 | + | let cJ = if ((cI.dApp == this)) | |
679 | + | then (cI.function == "takeIntoAccountExtraFunds") | |
679 | 680 | else false | |
680 | - | let | |
681 | - | then ( | |
681 | + | let cK = if ((cI.dApp == this)) | |
682 | + | then (cI.function == "enableFirstHarvest") | |
682 | 683 | else false | |
683 | - | let | |
684 | - | then if (if (if (( | |
685 | - | then (size( | |
684 | + | let cL = if (if ((cI.dApp == R)) | |
685 | + | then if (if (if ((cI.function == "lockNeutrino")) | |
686 | + | then (size(cI.payments) == 1) | |
686 | 687 | else false) | |
687 | - | then if (( | |
688 | + | then if ((cI.payments[0].assetId == N)) | |
688 | 689 | then true | |
689 | - | else ( | |
690 | + | else (cI.payments[0].assetId == O) | |
690 | 691 | else false) | |
691 | 692 | then true | |
692 | - | else if (( | |
693 | - | then (size( | |
693 | + | else if ((cI.function == "unlockNeutrino")) | |
694 | + | then (size(cI.payments) == 0) | |
694 | 695 | else false | |
695 | 696 | else false) | |
696 | 697 | then true | |
697 | - | else if (( | |
698 | - | then if (if (if (( | |
699 | - | then (size( | |
698 | + | else if ((cI.dApp == S)) | |
699 | + | then if (if (if ((cI.function == "startStaking")) | |
700 | + | then (size(cI.payments) == 1) | |
700 | 701 | else false) | |
701 | - | then ( | |
702 | + | then (cI.payments[0].assetId == Q) | |
702 | 703 | else false) | |
703 | 704 | then true | |
704 | - | else if (( | |
705 | - | then (size( | |
705 | + | else if ((cI.function == "stopStaking")) | |
706 | + | then (size(cI.payments) == 0) | |
706 | 707 | else false | |
707 | 708 | else false | |
708 | - | let | |
709 | - | then ( | |
709 | + | let cM = if (if (if ((cI.dApp == T)) | |
710 | + | then (cI.function == "exchange") | |
710 | 711 | else false) | |
711 | 712 | then (ae == N) | |
712 | 713 | else false) | |
713 | 714 | then true | |
714 | 715 | else if (if ((af == N)) | |
715 | - | then (size( | |
716 | + | then (size(cI.payments) == 1) | |
716 | 717 | else false) | |
717 | - | then ( | |
718 | + | then (cI.payments[0].assetId == N) | |
718 | 719 | else false | |
719 | - | let | |
720 | - | then ( | |
720 | + | let cN = if (if (if ((cI.dApp == U)) | |
721 | + | then (cI.function == "exchange") | |
721 | 722 | else false) | |
722 | 723 | then (ae == O) | |
723 | 724 | else false) | |
724 | 725 | then true | |
725 | 726 | else if (if ((af == O)) | |
726 | - | then (size( | |
727 | + | then (size(cI.payments) == 1) | |
727 | 728 | else false) | |
728 | - | then ( | |
729 | + | then (cI.payments[0].assetId == N) | |
729 | 730 | else false | |
730 | - | let | |
731 | + | let cO = if (if (if (sigVerify(cC.bodyBytes, cC.proofs[0], G)) | |
731 | 732 | then true | |
732 | - | else sigVerify( | |
733 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], H)) | |
733 | 734 | then true | |
734 | - | else sigVerify( | |
735 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], I)) | |
735 | 736 | then true | |
736 | - | else sigVerify(cB.bodyBytes, cB.proofs[0], K) | |
737 | - | if (if (if (if (if (if (cI) | |
738 | - | then true | |
739 | - | else cJ) | |
737 | + | else sigVerify(cC.bodyBytes, cC.proofs[0], K) | |
738 | + | if (if (if (if (if (if (cJ) | |
740 | 739 | then true | |
741 | 740 | else cK) | |
742 | 741 | then true | |
743 | 742 | else cL) | |
744 | 743 | then true | |
745 | 744 | else cM) | |
746 | - | then cN | |
745 | + | then true | |
746 | + | else cN) | |
747 | + | then cO | |
747 | 748 | else false) | |
748 | 749 | then true | |
749 | - | else | |
750 | + | else cE | |
750 | 751 | } | |
751 | - | else | |
752 | + | else cE | |
752 | 753 | } | |
753 | 754 |
github/deemru/w8io/026f985 166.63 ms ◑