tx · Hhmftx4zsDJmHpo15zEgE87hGgBjwxceqTdhKSvRnrc 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW: -0.14000000 Waves 2022.06.06 15:45 [2084512] smart account 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW > SELF 0.00000000 Waves
{ "type": 13, "id": "Hhmftx4zsDJmHpo15zEgE87hGgBjwxceqTdhKSvRnrc", "fee": 14000000, "feeAssetId": null, "timestamp": 1654519525914, "version": 2, "chainId": 84, "sender": "3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW", "senderPublicKey": "DfbjpZJBbZwnUKysUkxCbWTE1ZWuoUb6Y6BZdu5iAE8j", "proofs": [ "qzXBgMtx5jvpj4WP7UiT3i1PzcbXNzqKTdN1jYEzvXDFEr9ZVZjwo8JLuAKn8jHt7FW6k14aePnbnPCWjLmDfCo", "4P2s71MrCzYE28pYL4KYyyFbp9p273rX9mMKrvJiVXibdiA34FQuRuYTFsb3iHo3tcP8VR34w4zdiDjQRfWYqjAA" ], "script": "base64:AAIFAAAAAAAAEvgIAhIAEgASBAoCAQESABIECgIBARIAEgASABIFCgMEAQgSABoMCgFBEgckbWF0Y2gwGgsKAUISBnN0cmluZxoMCgFDEgdub3RoaW5nGhEKAUQSDGFkbWluUHViS2V5MRoRCgFFEgxhZG1pblB1YktleTIaEQoBRhIMYWRtaW5QdWJLZXkzGhYKAUcSEWFkbWluUHViS2V5SW52b2tlGhQKAUgSD21vbmV5Qm94QWRkcmVzcxoPCgFJEgpnb3ZBZGRyZXNzGhcKAUoSEnN0YWtpbmdVU0ROQWRkcmVzcxoJCgFLEgRVU0ROGhIKAUwSDXN0YWtpbmdBc3NldHMaCwoBTRIGYWN0aXZlGhAKAU4SC3N0ckFzc2V0SWRBGhAKAU8SC3N0ckFzc2V0SWRCGg0KAVASCGFzc2V0SWRBGg0KAVESCGFzc2V0SWRCGg8KAVISCmFzc2V0TmFtZUEaBwoBUxICaWQaCgoBVBIFd2F2ZXMaDwoBVRI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IIBQAAAAJkegAAAARkQXBwBQAAAAR0aGlzCQAAAAAAAAIIBQAAAAJkegAAAAhmdW5jdGlvbgIAAAAZdGFrZUludG9BY2NvdW50RXh0cmFGdW5kcwcEAAAAAmRIAwMDCQAB9AAAAAMIBQAAAAJkQQAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmRBAAAABnByb29mcwAAAAAAAAAAAAUAAAABRAYJAAH0AAAAAwgFAAAAAmRBAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZEEAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAFFBgkAAfQAAAADCAUAAAACZEEAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkQQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAUYGCQAB9AAAAAMIBQAAAAJkQQAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmRBAAAABnByb29mcwAAAAAAAAAAAAUAAAABRwMDBQAAAAJkRwUAAAACZEgHBgUAAAACZEMFAAAAAmRD1YeZlw==", "height": 2084512, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: sRVmQR5UUJKRKZCf1TQfzRMKNNSybvkhGumCVmFFztf Next: HHTretVGkLmUGNcuYk3CNk53GFLEPycsdjonWAA4DDut Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | ||
152 | 152 | let ah = 8 | |
153 | 153 | ||
154 | - | let ai = | |
154 | + | let ai = 125 | |
155 | 155 | ||
156 | - | let aj = | |
156 | + | let aj = 1000 | |
157 | 157 | ||
158 | - | let ak = | |
158 | + | let ak = 2500000 | |
159 | 159 | ||
160 | - | let al = | |
160 | + | let al = 93500000 | |
161 | 161 | ||
162 | 162 | let am = 50 | |
163 | 163 | ||
344 | 344 | func bn () = throw("One attached payment expected") | |
345 | 345 | ||
346 | 346 | ||
347 | - | func bo ( | |
347 | + | func bo () = bh(((((((((((((((("Suspicious state. Actual balances: " + toString(V)) + " ") + R) + ", ") + toString(W)) + " ") + U) + ". State: ") + toString(ap(P))) + " ") + R) + ", ") + toString(ap(Q))) + " ") + U)) | |
348 | 348 | ||
349 | 349 | ||
350 | - | func | |
350 | + | func bp (bq,br,bs) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bq)) + ": ") + toString(br)) + " ") + R) + ", ") + toString(bs)) + " ") + U)) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func bt (bu,aq) = if (bu) | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | + | func bG (bH,bI,bJ,bK,bL) = if ((V > W)) | |
400 | + | then { | |
401 | + | let bM = fraction(ae, V, W) | |
402 | + | let bN = if ((bL == P)) | |
403 | + | then fraction(ae, bJ, bK) | |
404 | + | else fraction(ae, bJ, bK) | |
405 | + | $Tuple2(bM, bN) | |
406 | + | } | |
407 | + | else { | |
408 | + | let bM = fraction(ae, W, V) | |
409 | + | let bN = if ((bL == P)) | |
410 | + | then fraction(ae, bJ, bK) | |
411 | + | else fraction(ae, bJ, bK) | |
412 | + | $Tuple2(bM, bN) | |
413 | + | } | |
414 | + | ||
415 | + | ||
399 | 416 | @Callable(au) | |
400 | 417 | func init () = { | |
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 | - | let | |
418 | + | let bO = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
419 | + | let bP = bO._1 | |
420 | + | let bQ = bO._2 | |
421 | + | let bR = $Tuple2(au.payments[1].amount, au.payments[1].assetId) | |
422 | + | let bS = bR._1 | |
423 | + | let bT = bR._2 | |
424 | + | let bU = be(bQ) | |
425 | + | let bV = bU._1 | |
426 | + | let bW = bU._2 | |
427 | + | let bX = bU._3 | |
428 | + | let bY = be(bT) | |
429 | + | let bZ = bY._1 | |
430 | + | let ca = bY._2 | |
431 | + | let cb = bY._3 | |
415 | 432 | if (isDefined(getBoolean(this, c))) | |
416 | 433 | then bj() | |
417 | - | else if (( | |
434 | + | else if ((bQ == bT)) | |
418 | 435 | then throw("Assets must be different") | |
419 | 436 | else { | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | then invoke(this, "stakeUnstake", [true, | |
437 | + | let cc = ((("s" + take(bW, 7)) + "_") + take(ca, 7)) | |
438 | + | let cd = ((((("ShareToken of SwopFi protocol for " + bW) + " and ") + ca) + " at address ") + toString(this)) | |
439 | + | let ce = ((bX + cb) / 2) | |
440 | + | let cf = fraction(pow(bP, bX, 5, 1, bX, DOWN), pow(bS, cb, 5, 1, cb, DOWN), pow(10, 0, ce, 0, 0, DOWN)) | |
441 | + | let cg = Issue(cc, cd, cf, ce, true) | |
442 | + | let ch = calculateAssetId(cg) | |
443 | + | let ci = aF(bP, bS) | |
444 | + | let cj = if (containsElement(L, bV)) | |
445 | + | then invoke(this, "stakeUnstake", [true, bP, bV], nil) | |
429 | 446 | else 0 | |
430 | - | if (( | |
447 | + | if ((cj == cj)) | |
431 | 448 | then { | |
432 | - | let | |
433 | - | then invoke(this, "stakeUnstake", [true, | |
449 | + | let ck = if (containsElement(L, bZ)) | |
450 | + | then invoke(this, "stakeUnstake", [true, bS, bZ], nil) | |
434 | 451 | else 0 | |
435 | - | if (( | |
436 | - | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, | |
452 | + | if ((ck == ck)) | |
453 | + | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bV), StringEntry(e, bZ), IntegerEntry(f, bP), IntegerEntry(g, bS), IntegerEntry(k, ci), IntegerEntry(j, getIntegerValue(x, "base_fee_flat")), cg, StringEntry(h, toBase58String(ch)), IntegerEntry(i, cf), ScriptTransfer(au.caller, cf, ch)] | |
437 | 454 | else throw("Strict value is not equal to itself.") | |
438 | 455 | } | |
439 | 456 | else throw("Strict value is not equal to itself.") | |
444 | 461 | ||
445 | 462 | @Callable(au) | |
446 | 463 | func replenishWithTwoTokens () = valueOrElse(bk(), { | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
464 | + | let bQ = au.payments[0].assetId | |
465 | + | let bT = au.payments[1].assetId | |
466 | + | let cl = fraction(ae, au.payments[0].amount, V) | |
467 | + | let cm = fraction(ae, au.payments[1].amount, W) | |
468 | + | let cn = be(bQ) | |
469 | + | let bV = cn._1 | |
470 | + | let bW = cn._2 | |
471 | + | let bX = cn._3 | |
472 | + | let co = be(bT) | |
473 | + | let bZ = co._1 | |
474 | + | let ca = co._2 | |
475 | + | let cb = co._3 | |
476 | + | let cp = if ((cm > cl)) | |
460 | 477 | then { | |
461 | - | let | |
462 | - | $Tuple5(au.payments[0].amount, | |
478 | + | let cq = fraction(W, cl, ae, CEILING) | |
479 | + | $Tuple5(au.payments[0].amount, cq, (au.payments[1].amount - cq), bT, cl) | |
463 | 480 | } | |
464 | 481 | else { | |
465 | - | let | |
466 | - | $Tuple5( | |
482 | + | let cq = fraction(V, cm, ae, CEILING) | |
483 | + | $Tuple5(cq, au.payments[1].amount, (au.payments[0].amount - cq), bQ, cm) | |
467 | 484 | } | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
485 | + | let bP = cp._1 | |
486 | + | let bS = cp._2 | |
487 | + | let cr = cp._3 | |
488 | + | let cs = cp._4 | |
489 | + | let ct = cp._5 | |
490 | + | let cu = fraction(ct, Y, ae) | |
474 | 491 | if ((size(au.payments) != 2)) | |
475 | 492 | then throw("Two attached assets expected") | |
476 | - | else if (if (( | |
493 | + | else if (if ((bQ != P)) | |
477 | 494 | then true | |
478 | - | else ( | |
495 | + | else (bT != Q)) | |
479 | 496 | then bm() | |
480 | - | else if (( | |
497 | + | else if ((cu == 0)) | |
481 | 498 | then throw("Too small amount to replenish") | |
482 | - | else if ((0 > | |
499 | + | else if ((0 > cr)) | |
483 | 500 | then throw("Change < 0") | |
484 | 501 | else if (!(aB)) | |
485 | - | then ([ScriptTransfer(au.caller, | |
502 | + | then ([ScriptTransfer(au.caller, bP, bQ), ScriptTransfer(au.caller, bS, bT)] ++ bo()) | |
486 | 503 | else { | |
487 | - | let | |
488 | - | then invoke(this, "stakeUnstake", [true, | |
504 | + | let cj = if (containsElement(L, bV)) | |
505 | + | then invoke(this, "stakeUnstake", [true, bP, bV], nil) | |
489 | 506 | else 0 | |
490 | - | if (( | |
507 | + | if ((cj == cj)) | |
491 | 508 | then { | |
492 | - | let | |
493 | - | then invoke(this, "stakeUnstake", [true, | |
509 | + | let ck = if (containsElement(L, bZ)) | |
510 | + | then invoke(this, "stakeUnstake", [true, bS, bZ], nil) | |
494 | 511 | else 0 | |
495 | - | if (( | |
496 | - | then [IntegerEntry(f, (V + | |
512 | + | if ((ck == ck)) | |
513 | + | then [IntegerEntry(f, (V + bP)), IntegerEntry(g, (W + bS)), IntegerEntry(i, (Y + cu)), IntegerEntry(k, aF((V + bP), (W + bS))), Reissue(X, cu, true), ScriptTransfer(au.caller, cu, X), ScriptTransfer(au.caller, cr, cs)] | |
497 | 514 | else throw("Strict value is not equal to itself.") | |
498 | 515 | } | |
499 | 516 | else throw("Strict value is not equal to itself.") | |
503 | 520 | ||
504 | 521 | ||
505 | 522 | @Callable(au) | |
506 | - | func replenishWithOneToken ( | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
523 | + | func replenishWithOneToken (cv,cw) = valueOrElse(bk(), { | |
524 | + | let cx = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
525 | + | let bK = cx._1 | |
526 | + | let bL = cx._2 | |
527 | + | let cy = be(bL) | |
528 | + | let cz = cy._1 | |
529 | + | let cA = cy._2 | |
530 | + | let cB = cy._3 | |
531 | + | let cC = 5000000 | |
532 | + | let cD = 50000000 | |
533 | + | let cE = if ((cD > bK)) | |
517 | 534 | then 100000 | |
518 | 535 | else 1 | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | if (( | |
523 | - | then throw((((("Payment amount " + toString( | |
536 | + | let cF = (ae - ((ae * cE) / 10000000)) | |
537 | + | let cG = (ae + ((ae * cE) / 10000000)) | |
538 | + | let cH = (ae - ((ae * 1) / 10000000)) | |
539 | + | if ((cC > bK)) | |
540 | + | then throw((((("Payment amount " + toString(bK)) + " does not exceed the minimum amount of ") + toString(cC)) + " tokens")) | |
524 | 541 | else if ((size(au.payments) != 1)) | |
525 | 542 | then bn() | |
526 | 543 | else if (!(aB)) | |
527 | - | then ([ScriptTransfer(au.caller, | |
528 | - | else if (if (( | |
529 | - | then ( | |
544 | + | then ([ScriptTransfer(au.caller, bK, bL)] ++ bo()) | |
545 | + | else if (if ((bL != P)) | |
546 | + | then (bL != Q) | |
530 | 547 | else false) | |
531 | 548 | then bm() | |
532 | 549 | else { | |
533 | - | let cC = if ((cr == P)) | |
534 | - | then $Tuple6((cq - cn), co, (V + cn), (W - co), (V + cq), W) | |
535 | - | else $Tuple6(co, (cq - cn), (V - co), (W + cn), V, (W + cq)) | |
536 | - | let cD = cC._1 | |
537 | - | let cE = cC._2 | |
538 | - | let cF = cC._3 | |
539 | - | let cG = cC._4 | |
540 | - | let cH = cC._5 | |
541 | - | let cI = cC._6 | |
542 | - | let cJ = aF(cF, cG) | |
543 | - | let cK = (fraction(af, cF, cG) / fraction(ae, cD, cE)) | |
544 | - | let cL = fraction((cH + cI), ai, (2 * aj)) | |
545 | - | if (if ((cB >= fraction(ae, Z, cJ))) | |
550 | + | let cI = if ((bL == P)) | |
551 | + | then $Tuple6((bK - cv), cw, (V + cv), (W - cw), (V + bK), W) | |
552 | + | else $Tuple6(cw, (bK - cv), (V - cw), (W + cv), V, (W + bK)) | |
553 | + | let cJ = cI._1 | |
554 | + | let cK = cI._2 | |
555 | + | let cL = cI._3 | |
556 | + | let cM = cI._4 | |
557 | + | let cN = cI._5 | |
558 | + | let cO = cI._6 | |
559 | + | let cP = aF(cL, cM) | |
560 | + | let cQ = (fraction(af, cL, cM) / fraction(ae, cJ, cK)) | |
561 | + | if (if ((cH >= fraction(ae, Z, cP))) | |
546 | 562 | then true | |
547 | - | else (Z > | |
563 | + | else (Z > cP)) | |
548 | 564 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
549 | - | else if (if (( | |
565 | + | else if (if ((cF > cQ)) | |
550 | 566 | then true | |
551 | - | else ( | |
567 | + | else (cQ > cG)) | |
552 | 568 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
553 | - | else if (if ((cL > cH)) | |
554 | - | then true | |
555 | - | else (cL > cI)) | |
556 | - | then bo(cL, cH, cI) | |
557 | - | else { | |
558 | - | let cd = fraction(cD, ae, cF) | |
559 | - | let ce = fraction(cE, ae, cG) | |
560 | - | let cm = fraction(min([cd, ce]), Y, ae) | |
561 | - | let cM = fraction(cm, (ac - (aa / 2)), ac) | |
562 | - | let cN = fraction(cm, (ab / 2), ac) | |
563 | - | let cO = fraction(cN, V, Y) | |
564 | - | let cP = fraction(cN, W, Y) | |
565 | - | let cQ = if ((ct == N)) | |
566 | - | then $Tuple3((cq - cO), cP, O) | |
567 | - | else $Tuple3((cq - cP), cO, N) | |
568 | - | let cR = cQ._1 | |
569 | - | let cS = cQ._2 | |
570 | - | let cT = cQ._3 | |
571 | - | let cb = if (containsElement(L, ct)) | |
572 | - | then invoke(this, "stakeUnstake", [true, cR, ct], nil) | |
573 | - | else 0 | |
574 | - | if ((cb == cb)) | |
575 | - | then { | |
576 | - | let cc = if (containsElement(L, cT)) | |
577 | - | then invoke(this, "stakeUnstake", [false, cS, cT], nil) | |
578 | - | else 0 | |
579 | - | if ((cc == cc)) | |
580 | - | then [Reissue(X, cM, true), ScriptTransfer(au.caller, cM, X), ScriptTransfer(H, cO, P), ScriptTransfer(H, cP, Q), IntegerEntry(f, (cH - cO)), IntegerEntry(g, (cI - cP)), IntegerEntry(i, (Y + cM)), IntegerEntry(k, aF((cH - cO), (cI - cP)))] | |
581 | - | else throw("Strict value is not equal to itself.") | |
582 | - | } | |
583 | - | else throw("Strict value is not equal to itself.") | |
584 | - | } | |
569 | + | else { | |
570 | + | let cl = fraction(cJ, ae, cL) | |
571 | + | let cm = fraction(cK, ae, cM) | |
572 | + | let cu = fraction(min([cl, cm]), Y, ae) | |
573 | + | let cR = fraction(cu, (ac - (aa / 2)), ac) | |
574 | + | let cS = fraction(cu, (ab / 2), ac) | |
575 | + | let cT = fraction(cS, V, Y) | |
576 | + | let cU = fraction(cS, W, Y) | |
577 | + | let cV = if ((cz == N)) | |
578 | + | then $Tuple3((bK - cT), cU, O) | |
579 | + | else $Tuple3((bK - cU), cT, N) | |
580 | + | let cW = cV._1 | |
581 | + | let cX = cV._2 | |
582 | + | let cY = cV._3 | |
583 | + | let cj = if (containsElement(L, cz)) | |
584 | + | then invoke(this, "stakeUnstake", [true, cW, cz], nil) | |
585 | + | else 0 | |
586 | + | if ((cj == cj)) | |
587 | + | then { | |
588 | + | let ck = if (containsElement(L, cY)) | |
589 | + | then invoke(this, "stakeUnstake", [false, cX, cY], nil) | |
590 | + | else 0 | |
591 | + | if ((ck == ck)) | |
592 | + | then [Reissue(X, cR, true), ScriptTransfer(au.caller, cR, X), ScriptTransfer(H, cT, P), ScriptTransfer(H, cU, Q), IntegerEntry(f, (cN - cT)), IntegerEntry(g, (cO - cU)), IntegerEntry(i, (Y + cR)), IntegerEntry(k, aF((cN - cT), (cO - cU)))] | |
593 | + | else throw("Strict value is not equal to itself.") | |
594 | + | } | |
595 | + | else throw("Strict value is not equal to itself.") | |
596 | + | } | |
585 | 597 | } | |
586 | 598 | }) | |
587 | 599 | ||
589 | 601 | ||
590 | 602 | @Callable(au) | |
591 | 603 | func withdraw () = valueOrElse(bk(), { | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
604 | + | let cZ = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
605 | + | let bK = cZ._1 | |
606 | + | let bL = cZ._2 | |
607 | + | let da = fraction(bK, V, Y) | |
608 | + | let db = fraction(bK, W, Y) | |
609 | + | let ci = aF((V - da), (W - db)) | |
598 | 610 | if ((size(au.payments) != 1)) | |
599 | 611 | then bn() | |
600 | - | else if (( | |
612 | + | else if ((bL != X)) | |
601 | 613 | then throw(("Incorrect asset attached. Expected: " + toBase58String(X))) | |
602 | 614 | else if (!(aB)) | |
603 | - | then ([ScriptTransfer(au.caller, | |
615 | + | then ([ScriptTransfer(au.caller, bK, bL)] ++ bo()) | |
604 | 616 | else { | |
605 | - | let | |
606 | - | then invoke(this, "stakeUnstake", [false, | |
617 | + | let cj = if (containsElement(L, N)) | |
618 | + | then invoke(this, "stakeUnstake", [false, da, N], nil) | |
607 | 619 | else 0 | |
608 | - | if (( | |
620 | + | if ((cj == cj)) | |
609 | 621 | then { | |
610 | - | let | |
611 | - | then invoke(this, "stakeUnstake", [false, | |
622 | + | let ck = if (containsElement(L, O)) | |
623 | + | then invoke(this, "stakeUnstake", [false, db, O], nil) | |
612 | 624 | else 0 | |
613 | - | if (( | |
614 | - | then [IntegerEntry(f, (V - | |
625 | + | if ((ck == ck)) | |
626 | + | then [IntegerEntry(f, (V - da)), IntegerEntry(g, (W - db)), IntegerEntry(i, (Y - bK)), IntegerEntry(k, ci), Burn(X, bK), ScriptTransfer(au.caller, da, P), ScriptTransfer(au.caller, db, Q)] | |
615 | 627 | else throw("Strict value is not equal to itself.") | |
616 | 628 | } | |
617 | 629 | else throw("Strict value is not equal to itself.") | |
621 | 633 | ||
622 | 634 | ||
623 | 635 | @Callable(au) | |
624 | - | func exchange ( | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | if ((0 >= | |
629 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
630 | - | else if (( | |
636 | + | func exchange (dc,bJ) = valueOrElse(bk(), { | |
637 | + | let dd = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
638 | + | let bK = dd._1 | |
639 | + | let bL = dd._2 | |
640 | + | if ((0 >= dc)) | |
641 | + | then throw(("Estimated amount must be positive. Actual: " + toString(dc))) | |
642 | + | else if ((bJ > dc)) | |
631 | 643 | then throw("Minimal amount can't be greater than estimated.") | |
632 | 644 | else if ((size(au.payments) != 1)) | |
633 | 645 | then bn() | |
634 | 646 | else if (!(aB)) | |
635 | - | then ([ScriptTransfer(au.caller, | |
636 | - | else if (if (( | |
637 | - | then ( | |
647 | + | then ([ScriptTransfer(au.caller, bK, bL)] ++ bo()) | |
648 | + | else if (if ((bL != P)) | |
649 | + | then (bL != Q) | |
638 | 650 | else false) | |
639 | 651 | then bm() | |
640 | - | else if ((10000000 > | |
652 | + | else if ((10000000 > bK)) | |
641 | 653 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
642 | - | else if (if ((ak > fraction(ae, cY, cq))) | |
643 | - | then true | |
644 | - | else (fraction(ae, cX, cq) > al)) | |
645 | - | then throw("Incorrect args and pmt ratio") | |
646 | - | else { | |
647 | - | let da = if ((cr == P)) | |
648 | - | then Q | |
649 | - | else P | |
650 | - | let bw = aH(cX, cY, cq, cr) | |
651 | - | let db = bB(au.originCaller) | |
652 | - | let dc = fraction(bw, fraction(ab, db, ac, CEILING), ac) | |
653 | - | let dd = fraction(bw, (ac - fraction(aa, db, ac, CEILING)), ac) | |
654 | - | let de = if ((cr == P)) | |
655 | - | then $Tuple2((V + cq), ((W - dd) - dc)) | |
656 | - | else $Tuple2(((V - dd) - dc), (W + cq)) | |
657 | - | let cH = de._1 | |
658 | - | let cI = de._2 | |
659 | - | let cL = fraction((cH + cI), ai, (2 * aj)) | |
660 | - | if (if ((cL > cH)) | |
661 | - | then true | |
662 | - | else (cL > cI)) | |
663 | - | then bo(cL, cH, cI) | |
664 | - | else { | |
665 | - | let df = be(cr) | |
666 | - | let ct = df._1 | |
667 | - | let cu = df._2 | |
668 | - | let cv = df._3 | |
669 | - | let dg = be(da) | |
670 | - | let dh = dg._1 | |
671 | - | let di = dg._2 | |
672 | - | let dj = dg._3 | |
673 | - | let cb = if (containsElement(L, ct)) | |
674 | - | then invoke(this, "stakeUnstake", [true, cq, ct], nil) | |
675 | - | else 0 | |
676 | - | if ((cb == cb)) | |
677 | - | then { | |
678 | - | let cc = if (containsElement(L, dh)) | |
679 | - | then invoke(this, "stakeUnstake", [false, (dd + dc), dh], nil) | |
680 | - | else 0 | |
681 | - | if ((cc == cc)) | |
682 | - | then $Tuple2([IntegerEntry(f, cH), IntegerEntry(g, cI), IntegerEntry(k, aF(cH, cI)), ScriptTransfer(au.caller, dd, da), ScriptTransfer(H, dc, da)], $Tuple2(dd, da)) | |
683 | - | else throw("Strict value is not equal to itself.") | |
684 | - | } | |
685 | - | else throw("Strict value is not equal to itself.") | |
686 | - | } | |
687 | - | } | |
654 | + | else { | |
655 | + | let de = bG(V, W, bJ, bK, bL) | |
656 | + | let df = de._1 | |
657 | + | let dg = de._2 | |
658 | + | if (((al - fraction(ak, df, ae)) > dg)) | |
659 | + | then throw("Incorrect args and pmt ratio") | |
660 | + | else { | |
661 | + | let dh = if ((bL == P)) | |
662 | + | then Q | |
663 | + | else P | |
664 | + | let bw = aH(dc, bJ, bK, bL) | |
665 | + | let di = bB(au.originCaller) | |
666 | + | let dj = fraction(bw, fraction(ab, di, ac, CEILING), ac) | |
667 | + | let dk = fraction(bw, (ac - fraction(aa, di, ac, CEILING)), ac) | |
668 | + | let dl = if ((bL == P)) | |
669 | + | then $Tuple2((V + bK), ((W - dk) - dj)) | |
670 | + | else $Tuple2(((V - dk) - dj), (W + bK)) | |
671 | + | let cN = dl._1 | |
672 | + | let cO = dl._2 | |
673 | + | let dm = fraction((cN + cO), ai, (2 * aj)) | |
674 | + | if (if ((dm > cN)) | |
675 | + | then true | |
676 | + | else (dm > cO)) | |
677 | + | then bp(dm, cN, cO) | |
678 | + | else { | |
679 | + | let dn = be(bL) | |
680 | + | let cz = dn._1 | |
681 | + | let cA = dn._2 | |
682 | + | let cB = dn._3 | |
683 | + | let do = be(dh) | |
684 | + | let dp = do._1 | |
685 | + | let dq = do._2 | |
686 | + | let dr = do._3 | |
687 | + | let cj = if (containsElement(L, cz)) | |
688 | + | then invoke(this, "stakeUnstake", [true, bK, cz], nil) | |
689 | + | else 0 | |
690 | + | if ((cj == cj)) | |
691 | + | then { | |
692 | + | let ck = if (containsElement(L, dp)) | |
693 | + | then invoke(this, "stakeUnstake", [false, (dk + dj), dp], nil) | |
694 | + | else 0 | |
695 | + | if ((ck == ck)) | |
696 | + | then $Tuple2([IntegerEntry(f, cN), IntegerEntry(g, cO), IntegerEntry(k, aF(cN, cO)), ScriptTransfer(au.caller, dk, dh), ScriptTransfer(H, dj, dh)], $Tuple2(dk, dh)) | |
697 | + | else throw("Strict value is not equal to itself.") | |
698 | + | } | |
699 | + | else throw("Strict value is not equal to itself.") | |
700 | + | } | |
701 | + | } | |
702 | + | } | |
688 | 703 | }) | |
689 | 704 | ||
690 | 705 | ||
705 | 720 | ||
706 | 721 | @Callable(au) | |
707 | 722 | func takeIntoAccountExtraFunds () = valueOrElse(bk(), { | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
723 | + | let ds = (az - V) | |
724 | + | let dt = (aA - W) | |
725 | + | let cP = aF((V + ds), (W + dt)) | |
711 | 726 | if ((au.caller != H)) | |
712 | 727 | then throw("Only the money box can call this function") | |
713 | - | else if (if ((0 > | |
728 | + | else if (if ((0 > ds)) | |
714 | 729 | then true | |
715 | - | else (0 > | |
730 | + | else (0 > dt)) | |
716 | 731 | then bh("Enroll amount negative") | |
717 | - | else if (if (( | |
718 | - | then ( | |
732 | + | else if (if ((ds == 0)) | |
733 | + | then (dt == 0) | |
719 | 734 | else false) | |
720 | 735 | then throw("No money to take") | |
721 | 736 | else { | |
722 | - | let | |
723 | - | then ( | |
737 | + | let cj = if (if (containsElement(L, N)) | |
738 | + | then (ds > 0) | |
724 | 739 | else false) | |
725 | - | then invoke(this, "stakeUnstake", [true, | |
740 | + | then invoke(this, "stakeUnstake", [true, ds, N], nil) | |
726 | 741 | else 0 | |
727 | - | if (( | |
742 | + | if ((cj == cj)) | |
728 | 743 | then { | |
729 | - | let | |
730 | - | then ( | |
744 | + | let ck = if (if (containsElement(L, O)) | |
745 | + | then (dt > 0) | |
731 | 746 | else false) | |
732 | - | then invoke(this, "stakeUnstake", [true, | |
747 | + | then invoke(this, "stakeUnstake", [true, dt, O], nil) | |
733 | 748 | else 0 | |
734 | - | if (( | |
735 | - | then [IntegerEntry(k, | |
749 | + | if ((ck == ck)) | |
750 | + | then [IntegerEntry(k, cP), IntegerEntry(f, (V + ds)), IntegerEntry(g, (W + dt))] | |
736 | 751 | else throw("Strict value is not equal to itself.") | |
737 | 752 | } | |
738 | 753 | else throw("Strict value is not equal to itself.") | |
742 | 757 | ||
743 | 758 | ||
744 | 759 | @Callable(au) | |
745 | - | func stakeUnstake (bu,bw, | |
760 | + | func stakeUnstake (bu,bw,du) = if ((au.caller != this)) | |
746 | 761 | then throw("Only contract itself can invoke this function") | |
747 | 762 | else { | |
748 | - | let | |
749 | - | let by = | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | if (( | |
763 | + | let dv = bv(bu, bw, fromBase58String(du)) | |
764 | + | let by = dv._1 | |
765 | + | let dw = dv._2 | |
766 | + | let dx = dv._3 | |
767 | + | let dy = dv._4 | |
768 | + | let dz = invoke(dw, by, dx, dy) | |
769 | + | if ((dz == dz)) | |
755 | 770 | then nil | |
756 | 771 | else throw("Strict value is not equal to itself.") | |
757 | 772 | } | |
762 | 777 | func toBigIntInvariant () = valueOrElse(bl(au), [IntegerEntry(k, aF(V, W))]) | |
763 | 778 | ||
764 | 779 | ||
765 | - | @Verifier( | |
766 | - | func | |
767 | - | let | |
768 | - | let | |
780 | + | @Verifier(dA) | |
781 | + | func dB () = { | |
782 | + | let dC = { | |
783 | + | let dD = if (sigVerify(dA.bodyBytes, dA.proofs[0], D)) | |
769 | 784 | then 1 | |
770 | 785 | else 0 | |
771 | - | let | |
786 | + | let dE = if (sigVerify(dA.bodyBytes, dA.proofs[1], E)) | |
772 | 787 | then 1 | |
773 | 788 | else 0 | |
774 | - | let | |
789 | + | let dF = if (sigVerify(dA.bodyBytes, dA.proofs[2], F)) | |
775 | 790 | then 1 | |
776 | 791 | else 0 | |
777 | - | ((( | |
792 | + | (((dD + dE) + dF) >= 2) | |
778 | 793 | } | |
779 | - | let A = | |
794 | + | let A = dA | |
780 | 795 | if ($isInstanceOf(A, "InvokeScriptTransaction")) | |
781 | 796 | then { | |
782 | - | let | |
783 | - | let | |
784 | - | then ( | |
797 | + | let dz = A | |
798 | + | let dG = if ((dz.dApp == this)) | |
799 | + | then (dz.function == "takeIntoAccountExtraFunds") | |
785 | 800 | else false | |
786 | - | let | |
801 | + | let dH = if (if (if (sigVerify(dA.bodyBytes, dA.proofs[0], D)) | |
787 | 802 | then true | |
788 | - | else sigVerify( | |
803 | + | else sigVerify(dA.bodyBytes, dA.proofs[0], E)) | |
789 | 804 | then true | |
790 | - | else sigVerify( | |
805 | + | else sigVerify(dA.bodyBytes, dA.proofs[0], F)) | |
791 | 806 | then true | |
792 | - | else sigVerify( | |
793 | - | if (if ( | |
794 | - | then | |
807 | + | else sigVerify(dA.bodyBytes, dA.proofs[0], G) | |
808 | + | if (if (dG) | |
809 | + | then dH | |
795 | 810 | else false) | |
796 | 811 | then true | |
797 | - | else | |
812 | + | else dC | |
798 | 813 | } | |
799 | - | else | |
814 | + | else dC | |
800 | 815 | } | |
801 | 816 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "2.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 = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let i = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let j = "commission" | |
23 | 23 | ||
24 | 24 | let k = "invariant" | |
25 | 25 | ||
26 | 26 | let l = "shutdown_cause" | |
27 | 27 | ||
28 | 28 | let m = "staking_usdnnsbt_address" | |
29 | 29 | ||
30 | 30 | let n = "staking_eurn_address" | |
31 | 31 | ||
32 | 32 | let o = "discounts" | |
33 | 33 | ||
34 | 34 | let p = "discount_values" | |
35 | 35 | ||
36 | 36 | let q = "_SWOP_amount" | |
37 | 37 | ||
38 | 38 | let r = "admin_pub_1" | |
39 | 39 | ||
40 | 40 | let s = "admin_pub_2" | |
41 | 41 | ||
42 | 42 | let t = "admin_pub_3" | |
43 | 43 | ||
44 | 44 | let u = "admin_invoke_pub" | |
45 | 45 | ||
46 | 46 | let v = "money_box_address" | |
47 | 47 | ||
48 | 48 | let w = "governance_address" | |
49 | 49 | ||
50 | 50 | let x = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
51 | 51 | ||
52 | 52 | func y (z) = { | |
53 | 53 | let A = getString(x, z) | |
54 | 54 | if ($isInstanceOf(A, "String")) | |
55 | 55 | then { | |
56 | 56 | let B = A | |
57 | 57 | fromBase58String(B) | |
58 | 58 | } | |
59 | 59 | else { | |
60 | 60 | let C = A | |
61 | 61 | throw((z + "is empty")) | |
62 | 62 | } | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | let D = y(r) | |
67 | 67 | ||
68 | 68 | let E = y(s) | |
69 | 69 | ||
70 | 70 | let F = y(t) | |
71 | 71 | ||
72 | 72 | let G = y(u) | |
73 | 73 | ||
74 | 74 | let H = Address(y(v)) | |
75 | 75 | ||
76 | 76 | let I = Address(y(w)) | |
77 | 77 | ||
78 | 78 | let J = Address(y(m)) | |
79 | 79 | ||
80 | 80 | let K = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
81 | 81 | ||
82 | 82 | let L = [toBase58String(K)] | |
83 | 83 | ||
84 | 84 | let M = getBooleanValue(this, c) | |
85 | 85 | ||
86 | 86 | let N = getStringValue(this, d) | |
87 | 87 | ||
88 | 88 | let O = getStringValue(this, e) | |
89 | 89 | ||
90 | 90 | let P = if ((N == "WAVES")) | |
91 | 91 | then unit | |
92 | 92 | else fromBase58String(N) | |
93 | 93 | ||
94 | 94 | let Q = if ((O == "WAVES")) | |
95 | 95 | then unit | |
96 | 96 | else fromBase58String(O) | |
97 | 97 | ||
98 | 98 | let R = { | |
99 | 99 | let A = P | |
100 | 100 | if ($isInstanceOf(A, "ByteVector")) | |
101 | 101 | then { | |
102 | 102 | let S = A | |
103 | 103 | value(assetInfo(S)).name | |
104 | 104 | } | |
105 | 105 | else if ($isInstanceOf(A, "Unit")) | |
106 | 106 | then { | |
107 | 107 | let T = A | |
108 | 108 | "WAVES" | |
109 | 109 | } | |
110 | 110 | else throw("Match error") | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | let U = { | |
114 | 114 | let A = Q | |
115 | 115 | if ($isInstanceOf(A, "ByteVector")) | |
116 | 116 | then { | |
117 | 117 | let S = A | |
118 | 118 | value(assetInfo(S)).name | |
119 | 119 | } | |
120 | 120 | else if ($isInstanceOf(A, "Unit")) | |
121 | 121 | then { | |
122 | 122 | let T = A | |
123 | 123 | "WAVES" | |
124 | 124 | } | |
125 | 125 | else throw("Match error") | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | let V = getIntegerValue(this, f) | |
129 | 129 | ||
130 | 130 | let W = getIntegerValue(this, g) | |
131 | 131 | ||
132 | 132 | let X = fromBase58String(getStringValue(this, h)) | |
133 | 133 | ||
134 | 134 | let Y = getIntegerValue(this, i) | |
135 | 135 | ||
136 | 136 | let Z = getIntegerValue(this, k) | |
137 | 137 | ||
138 | 138 | let aa = getIntegerValue(this, j) | |
139 | 139 | ||
140 | 140 | let ab = fraction(aa, 40, 100) | |
141 | 141 | ||
142 | 142 | let ac = 1000000 | |
143 | 143 | ||
144 | 144 | let ad = 1000 | |
145 | 145 | ||
146 | 146 | let ae = 100000000 | |
147 | 147 | ||
148 | 148 | let af = 10000000000000000 | |
149 | 149 | ||
150 | 150 | let ag = 1000 | |
151 | 151 | ||
152 | 152 | let ah = 8 | |
153 | 153 | ||
154 | - | let ai = | |
154 | + | let ai = 125 | |
155 | 155 | ||
156 | - | let aj = | |
156 | + | let aj = 1000 | |
157 | 157 | ||
158 | - | let ak = | |
158 | + | let ak = 2500000 | |
159 | 159 | ||
160 | - | let al = | |
160 | + | let al = 93500000 | |
161 | 161 | ||
162 | 162 | let am = 50 | |
163 | 163 | ||
164 | 164 | let an = 2 | |
165 | 165 | ||
166 | 166 | let ao = 4600000000000000 | |
167 | 167 | ||
168 | 168 | func ap (aq) = { | |
169 | 169 | let A = aq | |
170 | 170 | if ($isInstanceOf(A, "ByteVector")) | |
171 | 171 | then { | |
172 | 172 | let S = A | |
173 | 173 | assetBalance(this, S) | |
174 | 174 | } | |
175 | 175 | else if ($isInstanceOf(A, "Unit")) | |
176 | 176 | then { | |
177 | 177 | let T = A | |
178 | 178 | wavesBalance(this).available | |
179 | 179 | } | |
180 | 180 | else throw("Match error") | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func ar (aq) = { | |
185 | 185 | let as = { | |
186 | 186 | let A = aq | |
187 | 187 | if ($isInstanceOf(A, "ByteVector")) | |
188 | 188 | then { | |
189 | 189 | let at = A | |
190 | 190 | if ((at == K)) | |
191 | 191 | then getInteger(J, ((("rpd_balance_" + toBase58String(at)) + "_") + toString(this))) | |
192 | 192 | else 0 | |
193 | 193 | } | |
194 | 194 | else if ($isInstanceOf(A, "Unit")) | |
195 | 195 | then 0 | |
196 | 196 | else throw("Match error") | |
197 | 197 | } | |
198 | 198 | let A = as | |
199 | 199 | if ($isInstanceOf(A, "Int")) | |
200 | 200 | then { | |
201 | 201 | let au = A | |
202 | 202 | au | |
203 | 203 | } | |
204 | 204 | else 0 | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | let av = ar(P) | |
209 | 209 | ||
210 | 210 | let aw = ar(Q) | |
211 | 211 | ||
212 | 212 | let ax = (V - av) | |
213 | 213 | ||
214 | 214 | let ay = (W - aw) | |
215 | 215 | ||
216 | 216 | let az = (ap(P) + av) | |
217 | 217 | ||
218 | 218 | let aA = (ap(Q) + aw) | |
219 | 219 | ||
220 | 220 | let aB = if ((az >= V)) | |
221 | 221 | then (aA >= W) | |
222 | 222 | else false | |
223 | 223 | ||
224 | 224 | func aC (aD,aE) = ((fraction(af, aD, aE) + fraction(af, aE, aD)) / 2) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func aF (aD,aE) = { | |
228 | 228 | let aG = aC(aD, aE) | |
229 | 229 | (fraction((aD + aE), af, pow(aG, ah, am, an, ah, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aD), toBigInt(aE), toBigInt(ae)), 0, toBigInt(5), 1, (ah / 2), DOWN)), pow((aG - ao), ah, am, an, ah, DOWN), ae))) | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func aH (aI,aJ,aK,aL) = { | |
234 | 234 | let aM = (af - ((af * 1) / 10000000)) | |
235 | 235 | let aN = (aI - aJ) | |
236 | 236 | let aD = (V + aK) | |
237 | 237 | let aE = (W + aK) | |
238 | 238 | func aO (aP,aQ) = if ((aP._1 == -1)) | |
239 | 239 | then { | |
240 | 240 | let aR = (aI - (((aQ * aN) / 3) / ad)) | |
241 | 241 | let aS = if ((aL == P)) | |
242 | 242 | then aF(aD, (W - aR)) | |
243 | 243 | else aF((V - aR), aE) | |
244 | 244 | if ((aS > Z)) | |
245 | 245 | then $Tuple2(aR, aS) | |
246 | 246 | else $Tuple2(-1, 0) | |
247 | 247 | } | |
248 | 248 | else aP | |
249 | 249 | ||
250 | 250 | let aT = aO($Tuple2(-1, 0), 3000) | |
251 | 251 | if ((0 > aT._1)) | |
252 | 252 | then throw("Price is worse than minReceived") | |
253 | 253 | else { | |
254 | 254 | let aU = if ((aL == P)) | |
255 | 255 | then aF(aD, (W - aI)) | |
256 | 256 | else if ((aL == Q)) | |
257 | 257 | then aF((V - aI), aE) | |
258 | 258 | else throw("Wrong asset in payment") | |
259 | 259 | if ((Z > aU)) | |
260 | 260 | then if ((aM >= fraction(af, Z, aU))) | |
261 | 261 | then throw("The requested price is too not profitable for user") | |
262 | 262 | else { | |
263 | 263 | let aV = { | |
264 | 264 | let aW = [25, 200, 500] | |
265 | 265 | let aX = size(aW) | |
266 | 266 | let aY = $Tuple2(-1, 0) | |
267 | 267 | func aZ (ba,bb) = if ((bb >= aX)) | |
268 | 268 | then ba | |
269 | 269 | else aO(ba, aW[bb]) | |
270 | 270 | ||
271 | 271 | func bc (ba,bb) = if ((bb >= aX)) | |
272 | 272 | then ba | |
273 | 273 | else throw("List size exceeds 3") | |
274 | 274 | ||
275 | 275 | bc(aZ(aZ(aZ(aY, 0), 1), 2), 3) | |
276 | 276 | } | |
277 | 277 | if ((0 > aV._1)) | |
278 | 278 | then aT._1 | |
279 | 279 | else aV._1 | |
280 | 280 | } | |
281 | 281 | else { | |
282 | 282 | let aV = { | |
283 | 283 | let aW = [-500, -200, -25] | |
284 | 284 | let aX = size(aW) | |
285 | 285 | let aY = $Tuple2(-1, 0) | |
286 | 286 | func aZ (ba,bb) = if ((bb >= aX)) | |
287 | 287 | then ba | |
288 | 288 | else aO(ba, aW[bb]) | |
289 | 289 | ||
290 | 290 | func bc (ba,bb) = if ((bb >= aX)) | |
291 | 291 | then ba | |
292 | 292 | else throw("List size exceeds 3") | |
293 | 293 | ||
294 | 294 | bc(aZ(aZ(aZ(aY, 0), 1), 2), 3) | |
295 | 295 | } | |
296 | 296 | let bd = if ((0 > aV._1)) | |
297 | 297 | then $Tuple2(aI, aU) | |
298 | 298 | else aV | |
299 | 299 | if ((aM >= fraction(af, Z, bd._2))) | |
300 | 300 | then throw("The requested price is too not profitable for user") | |
301 | 301 | else bd._1 | |
302 | 302 | } | |
303 | 303 | } | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func be (aq) = { | |
308 | 308 | let A = aq | |
309 | 309 | if ($isInstanceOf(A, "ByteVector")) | |
310 | 310 | then { | |
311 | 311 | let S = A | |
312 | 312 | let bf = toBase58String(S) | |
313 | 313 | let bg = valueOrErrorMessage(assetInfo(S), (("Asset " + bf) + " doesn't exist")) | |
314 | 314 | $Tuple3(bf, bg.name, bg.decimals) | |
315 | 315 | } | |
316 | 316 | else if ($isInstanceOf(A, "Unit")) | |
317 | 317 | then { | |
318 | 318 | let T = A | |
319 | 319 | $Tuple3("WAVES", "WAVES", 8) | |
320 | 320 | } | |
321 | 321 | else throw("Match error") | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func bh (bi) = [BooleanEntry(c, false), StringEntry(l, bi)] | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func bj () = throw("DApp is already active") | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func bk () = if (M) | |
332 | 332 | then unit | |
333 | 333 | else throw("DApp is inactive at this moment") | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | func bl (au) = if (containsElement([D, E, F], au.callerPublicKey)) | |
337 | 337 | then unit | |
338 | 338 | else throw("Only admin can call this function") | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func bm () = throw(((("Incorrect assets attached. Expected: " + N) + " and ") + O)) | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func bn () = throw("One attached payment expected") | |
345 | 345 | ||
346 | 346 | ||
347 | - | func bo ( | |
347 | + | func bo () = bh(((((((((((((((("Suspicious state. Actual balances: " + toString(V)) + " ") + R) + ", ") + toString(W)) + " ") + U) + ". State: ") + toString(ap(P))) + " ") + R) + ", ") + toString(ap(Q))) + " ") + U)) | |
348 | 348 | ||
349 | 349 | ||
350 | - | func | |
350 | + | func bp (bq,br,bs) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bq)) + ": ") + toString(br)) + " ") + R) + ", ") + toString(bs)) + " ") + U)) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func bt (bu,aq) = if (bu) | |
354 | 354 | then $Tuple2("lockNeutrino", J) | |
355 | 355 | else $Tuple2("unlockNeutrino", J) | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func bv (bu,bw,aq) = if (bu) | |
359 | 359 | then { | |
360 | 360 | let bx = bt(bu, aq) | |
361 | 361 | let by = bx._1 | |
362 | 362 | let bz = bx._2 | |
363 | 363 | $Tuple4(by, bz, nil, [AttachedPayment(aq, bw)]) | |
364 | 364 | } | |
365 | 365 | else { | |
366 | 366 | let bA = bt(bu, aq) | |
367 | 367 | let by = bA._1 | |
368 | 368 | let bz = bA._2 | |
369 | 369 | $Tuple4(by, bz, [bw, toBase58String(aq)], nil) | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | func bB (bC) = { | |
374 | 374 | let bD = valueOrElse(getInteger(I, (toString(bC) + q)), 0) | |
375 | 375 | let bE = split(getStringValue(x, p), ",") | |
376 | 376 | let bF = split(getStringValue(x, o), ",") | |
377 | 377 | if (if ((bD >= parseIntValue(bE[0]))) | |
378 | 378 | then (parseIntValue(bE[1]) > bD) | |
379 | 379 | else false) | |
380 | 380 | then (ac - parseIntValue(bF[0])) | |
381 | 381 | else if (if ((bD >= parseIntValue(bE[1]))) | |
382 | 382 | then (parseIntValue(bE[2]) > bD) | |
383 | 383 | else false) | |
384 | 384 | then (ac - parseIntValue(bF[1])) | |
385 | 385 | else if (if ((bD >= parseIntValue(bE[2]))) | |
386 | 386 | then (parseIntValue(bE[3]) > bD) | |
387 | 387 | else false) | |
388 | 388 | then (ac - parseIntValue(bF[2])) | |
389 | 389 | else if (if ((bD >= parseIntValue(bE[3]))) | |
390 | 390 | then (parseIntValue(bE[4]) > bD) | |
391 | 391 | else false) | |
392 | 392 | then (ac - parseIntValue(bF[3])) | |
393 | 393 | else if ((bD >= parseIntValue(bE[4]))) | |
394 | 394 | then (ac - parseIntValue(bF[4])) | |
395 | 395 | else ac | |
396 | 396 | } | |
397 | 397 | ||
398 | 398 | ||
399 | + | func bG (bH,bI,bJ,bK,bL) = if ((V > W)) | |
400 | + | then { | |
401 | + | let bM = fraction(ae, V, W) | |
402 | + | let bN = if ((bL == P)) | |
403 | + | then fraction(ae, bJ, bK) | |
404 | + | else fraction(ae, bJ, bK) | |
405 | + | $Tuple2(bM, bN) | |
406 | + | } | |
407 | + | else { | |
408 | + | let bM = fraction(ae, W, V) | |
409 | + | let bN = if ((bL == P)) | |
410 | + | then fraction(ae, bJ, bK) | |
411 | + | else fraction(ae, bJ, bK) | |
412 | + | $Tuple2(bM, bN) | |
413 | + | } | |
414 | + | ||
415 | + | ||
399 | 416 | @Callable(au) | |
400 | 417 | func init () = { | |
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 | - | let | |
418 | + | let bO = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
419 | + | let bP = bO._1 | |
420 | + | let bQ = bO._2 | |
421 | + | let bR = $Tuple2(au.payments[1].amount, au.payments[1].assetId) | |
422 | + | let bS = bR._1 | |
423 | + | let bT = bR._2 | |
424 | + | let bU = be(bQ) | |
425 | + | let bV = bU._1 | |
426 | + | let bW = bU._2 | |
427 | + | let bX = bU._3 | |
428 | + | let bY = be(bT) | |
429 | + | let bZ = bY._1 | |
430 | + | let ca = bY._2 | |
431 | + | let cb = bY._3 | |
415 | 432 | if (isDefined(getBoolean(this, c))) | |
416 | 433 | then bj() | |
417 | - | else if (( | |
434 | + | else if ((bQ == bT)) | |
418 | 435 | then throw("Assets must be different") | |
419 | 436 | else { | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | then invoke(this, "stakeUnstake", [true, | |
437 | + | let cc = ((("s" + take(bW, 7)) + "_") + take(ca, 7)) | |
438 | + | let cd = ((((("ShareToken of SwopFi protocol for " + bW) + " and ") + ca) + " at address ") + toString(this)) | |
439 | + | let ce = ((bX + cb) / 2) | |
440 | + | let cf = fraction(pow(bP, bX, 5, 1, bX, DOWN), pow(bS, cb, 5, 1, cb, DOWN), pow(10, 0, ce, 0, 0, DOWN)) | |
441 | + | let cg = Issue(cc, cd, cf, ce, true) | |
442 | + | let ch = calculateAssetId(cg) | |
443 | + | let ci = aF(bP, bS) | |
444 | + | let cj = if (containsElement(L, bV)) | |
445 | + | then invoke(this, "stakeUnstake", [true, bP, bV], nil) | |
429 | 446 | else 0 | |
430 | - | if (( | |
447 | + | if ((cj == cj)) | |
431 | 448 | then { | |
432 | - | let | |
433 | - | then invoke(this, "stakeUnstake", [true, | |
449 | + | let ck = if (containsElement(L, bZ)) | |
450 | + | then invoke(this, "stakeUnstake", [true, bS, bZ], nil) | |
434 | 451 | else 0 | |
435 | - | if (( | |
436 | - | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, | |
452 | + | if ((ck == ck)) | |
453 | + | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bV), StringEntry(e, bZ), IntegerEntry(f, bP), IntegerEntry(g, bS), IntegerEntry(k, ci), IntegerEntry(j, getIntegerValue(x, "base_fee_flat")), cg, StringEntry(h, toBase58String(ch)), IntegerEntry(i, cf), ScriptTransfer(au.caller, cf, ch)] | |
437 | 454 | else throw("Strict value is not equal to itself.") | |
438 | 455 | } | |
439 | 456 | else throw("Strict value is not equal to itself.") | |
440 | 457 | } | |
441 | 458 | } | |
442 | 459 | ||
443 | 460 | ||
444 | 461 | ||
445 | 462 | @Callable(au) | |
446 | 463 | func replenishWithTwoTokens () = valueOrElse(bk(), { | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
464 | + | let bQ = au.payments[0].assetId | |
465 | + | let bT = au.payments[1].assetId | |
466 | + | let cl = fraction(ae, au.payments[0].amount, V) | |
467 | + | let cm = fraction(ae, au.payments[1].amount, W) | |
468 | + | let cn = be(bQ) | |
469 | + | let bV = cn._1 | |
470 | + | let bW = cn._2 | |
471 | + | let bX = cn._3 | |
472 | + | let co = be(bT) | |
473 | + | let bZ = co._1 | |
474 | + | let ca = co._2 | |
475 | + | let cb = co._3 | |
476 | + | let cp = if ((cm > cl)) | |
460 | 477 | then { | |
461 | - | let | |
462 | - | $Tuple5(au.payments[0].amount, | |
478 | + | let cq = fraction(W, cl, ae, CEILING) | |
479 | + | $Tuple5(au.payments[0].amount, cq, (au.payments[1].amount - cq), bT, cl) | |
463 | 480 | } | |
464 | 481 | else { | |
465 | - | let | |
466 | - | $Tuple5( | |
482 | + | let cq = fraction(V, cm, ae, CEILING) | |
483 | + | $Tuple5(cq, au.payments[1].amount, (au.payments[0].amount - cq), bQ, cm) | |
467 | 484 | } | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
485 | + | let bP = cp._1 | |
486 | + | let bS = cp._2 | |
487 | + | let cr = cp._3 | |
488 | + | let cs = cp._4 | |
489 | + | let ct = cp._5 | |
490 | + | let cu = fraction(ct, Y, ae) | |
474 | 491 | if ((size(au.payments) != 2)) | |
475 | 492 | then throw("Two attached assets expected") | |
476 | - | else if (if (( | |
493 | + | else if (if ((bQ != P)) | |
477 | 494 | then true | |
478 | - | else ( | |
495 | + | else (bT != Q)) | |
479 | 496 | then bm() | |
480 | - | else if (( | |
497 | + | else if ((cu == 0)) | |
481 | 498 | then throw("Too small amount to replenish") | |
482 | - | else if ((0 > | |
499 | + | else if ((0 > cr)) | |
483 | 500 | then throw("Change < 0") | |
484 | 501 | else if (!(aB)) | |
485 | - | then ([ScriptTransfer(au.caller, | |
502 | + | then ([ScriptTransfer(au.caller, bP, bQ), ScriptTransfer(au.caller, bS, bT)] ++ bo()) | |
486 | 503 | else { | |
487 | - | let | |
488 | - | then invoke(this, "stakeUnstake", [true, | |
504 | + | let cj = if (containsElement(L, bV)) | |
505 | + | then invoke(this, "stakeUnstake", [true, bP, bV], nil) | |
489 | 506 | else 0 | |
490 | - | if (( | |
507 | + | if ((cj == cj)) | |
491 | 508 | then { | |
492 | - | let | |
493 | - | then invoke(this, "stakeUnstake", [true, | |
509 | + | let ck = if (containsElement(L, bZ)) | |
510 | + | then invoke(this, "stakeUnstake", [true, bS, bZ], nil) | |
494 | 511 | else 0 | |
495 | - | if (( | |
496 | - | then [IntegerEntry(f, (V + | |
512 | + | if ((ck == ck)) | |
513 | + | then [IntegerEntry(f, (V + bP)), IntegerEntry(g, (W + bS)), IntegerEntry(i, (Y + cu)), IntegerEntry(k, aF((V + bP), (W + bS))), Reissue(X, cu, true), ScriptTransfer(au.caller, cu, X), ScriptTransfer(au.caller, cr, cs)] | |
497 | 514 | else throw("Strict value is not equal to itself.") | |
498 | 515 | } | |
499 | 516 | else throw("Strict value is not equal to itself.") | |
500 | 517 | } | |
501 | 518 | }) | |
502 | 519 | ||
503 | 520 | ||
504 | 521 | ||
505 | 522 | @Callable(au) | |
506 | - | func replenishWithOneToken ( | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
523 | + | func replenishWithOneToken (cv,cw) = valueOrElse(bk(), { | |
524 | + | let cx = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
525 | + | let bK = cx._1 | |
526 | + | let bL = cx._2 | |
527 | + | let cy = be(bL) | |
528 | + | let cz = cy._1 | |
529 | + | let cA = cy._2 | |
530 | + | let cB = cy._3 | |
531 | + | let cC = 5000000 | |
532 | + | let cD = 50000000 | |
533 | + | let cE = if ((cD > bK)) | |
517 | 534 | then 100000 | |
518 | 535 | else 1 | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | if (( | |
523 | - | then throw((((("Payment amount " + toString( | |
536 | + | let cF = (ae - ((ae * cE) / 10000000)) | |
537 | + | let cG = (ae + ((ae * cE) / 10000000)) | |
538 | + | let cH = (ae - ((ae * 1) / 10000000)) | |
539 | + | if ((cC > bK)) | |
540 | + | then throw((((("Payment amount " + toString(bK)) + " does not exceed the minimum amount of ") + toString(cC)) + " tokens")) | |
524 | 541 | else if ((size(au.payments) != 1)) | |
525 | 542 | then bn() | |
526 | 543 | else if (!(aB)) | |
527 | - | then ([ScriptTransfer(au.caller, | |
528 | - | else if (if (( | |
529 | - | then ( | |
544 | + | then ([ScriptTransfer(au.caller, bK, bL)] ++ bo()) | |
545 | + | else if (if ((bL != P)) | |
546 | + | then (bL != Q) | |
530 | 547 | else false) | |
531 | 548 | then bm() | |
532 | 549 | else { | |
533 | - | let cC = if ((cr == P)) | |
534 | - | then $Tuple6((cq - cn), co, (V + cn), (W - co), (V + cq), W) | |
535 | - | else $Tuple6(co, (cq - cn), (V - co), (W + cn), V, (W + cq)) | |
536 | - | let cD = cC._1 | |
537 | - | let cE = cC._2 | |
538 | - | let cF = cC._3 | |
539 | - | let cG = cC._4 | |
540 | - | let cH = cC._5 | |
541 | - | let cI = cC._6 | |
542 | - | let cJ = aF(cF, cG) | |
543 | - | let cK = (fraction(af, cF, cG) / fraction(ae, cD, cE)) | |
544 | - | let cL = fraction((cH + cI), ai, (2 * aj)) | |
545 | - | if (if ((cB >= fraction(ae, Z, cJ))) | |
550 | + | let cI = if ((bL == P)) | |
551 | + | then $Tuple6((bK - cv), cw, (V + cv), (W - cw), (V + bK), W) | |
552 | + | else $Tuple6(cw, (bK - cv), (V - cw), (W + cv), V, (W + bK)) | |
553 | + | let cJ = cI._1 | |
554 | + | let cK = cI._2 | |
555 | + | let cL = cI._3 | |
556 | + | let cM = cI._4 | |
557 | + | let cN = cI._5 | |
558 | + | let cO = cI._6 | |
559 | + | let cP = aF(cL, cM) | |
560 | + | let cQ = (fraction(af, cL, cM) / fraction(ae, cJ, cK)) | |
561 | + | if (if ((cH >= fraction(ae, Z, cP))) | |
546 | 562 | then true | |
547 | - | else (Z > | |
563 | + | else (Z > cP)) | |
548 | 564 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
549 | - | else if (if (( | |
565 | + | else if (if ((cF > cQ)) | |
550 | 566 | then true | |
551 | - | else ( | |
567 | + | else (cQ > cG)) | |
552 | 568 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
553 | - | else if (if ((cL > cH)) | |
554 | - | then true | |
555 | - | else (cL > cI)) | |
556 | - | then bo(cL, cH, cI) | |
557 | - | else { | |
558 | - | let cd = fraction(cD, ae, cF) | |
559 | - | let ce = fraction(cE, ae, cG) | |
560 | - | let cm = fraction(min([cd, ce]), Y, ae) | |
561 | - | let cM = fraction(cm, (ac - (aa / 2)), ac) | |
562 | - | let cN = fraction(cm, (ab / 2), ac) | |
563 | - | let cO = fraction(cN, V, Y) | |
564 | - | let cP = fraction(cN, W, Y) | |
565 | - | let cQ = if ((ct == N)) | |
566 | - | then $Tuple3((cq - cO), cP, O) | |
567 | - | else $Tuple3((cq - cP), cO, N) | |
568 | - | let cR = cQ._1 | |
569 | - | let cS = cQ._2 | |
570 | - | let cT = cQ._3 | |
571 | - | let cb = if (containsElement(L, ct)) | |
572 | - | then invoke(this, "stakeUnstake", [true, cR, ct], nil) | |
573 | - | else 0 | |
574 | - | if ((cb == cb)) | |
575 | - | then { | |
576 | - | let cc = if (containsElement(L, cT)) | |
577 | - | then invoke(this, "stakeUnstake", [false, cS, cT], nil) | |
578 | - | else 0 | |
579 | - | if ((cc == cc)) | |
580 | - | then [Reissue(X, cM, true), ScriptTransfer(au.caller, cM, X), ScriptTransfer(H, cO, P), ScriptTransfer(H, cP, Q), IntegerEntry(f, (cH - cO)), IntegerEntry(g, (cI - cP)), IntegerEntry(i, (Y + cM)), IntegerEntry(k, aF((cH - cO), (cI - cP)))] | |
581 | - | else throw("Strict value is not equal to itself.") | |
582 | - | } | |
583 | - | else throw("Strict value is not equal to itself.") | |
584 | - | } | |
569 | + | else { | |
570 | + | let cl = fraction(cJ, ae, cL) | |
571 | + | let cm = fraction(cK, ae, cM) | |
572 | + | let cu = fraction(min([cl, cm]), Y, ae) | |
573 | + | let cR = fraction(cu, (ac - (aa / 2)), ac) | |
574 | + | let cS = fraction(cu, (ab / 2), ac) | |
575 | + | let cT = fraction(cS, V, Y) | |
576 | + | let cU = fraction(cS, W, Y) | |
577 | + | let cV = if ((cz == N)) | |
578 | + | then $Tuple3((bK - cT), cU, O) | |
579 | + | else $Tuple3((bK - cU), cT, N) | |
580 | + | let cW = cV._1 | |
581 | + | let cX = cV._2 | |
582 | + | let cY = cV._3 | |
583 | + | let cj = if (containsElement(L, cz)) | |
584 | + | then invoke(this, "stakeUnstake", [true, cW, cz], nil) | |
585 | + | else 0 | |
586 | + | if ((cj == cj)) | |
587 | + | then { | |
588 | + | let ck = if (containsElement(L, cY)) | |
589 | + | then invoke(this, "stakeUnstake", [false, cX, cY], nil) | |
590 | + | else 0 | |
591 | + | if ((ck == ck)) | |
592 | + | then [Reissue(X, cR, true), ScriptTransfer(au.caller, cR, X), ScriptTransfer(H, cT, P), ScriptTransfer(H, cU, Q), IntegerEntry(f, (cN - cT)), IntegerEntry(g, (cO - cU)), IntegerEntry(i, (Y + cR)), IntegerEntry(k, aF((cN - cT), (cO - cU)))] | |
593 | + | else throw("Strict value is not equal to itself.") | |
594 | + | } | |
595 | + | else throw("Strict value is not equal to itself.") | |
596 | + | } | |
585 | 597 | } | |
586 | 598 | }) | |
587 | 599 | ||
588 | 600 | ||
589 | 601 | ||
590 | 602 | @Callable(au) | |
591 | 603 | func withdraw () = valueOrElse(bk(), { | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
604 | + | let cZ = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
605 | + | let bK = cZ._1 | |
606 | + | let bL = cZ._2 | |
607 | + | let da = fraction(bK, V, Y) | |
608 | + | let db = fraction(bK, W, Y) | |
609 | + | let ci = aF((V - da), (W - db)) | |
598 | 610 | if ((size(au.payments) != 1)) | |
599 | 611 | then bn() | |
600 | - | else if (( | |
612 | + | else if ((bL != X)) | |
601 | 613 | then throw(("Incorrect asset attached. Expected: " + toBase58String(X))) | |
602 | 614 | else if (!(aB)) | |
603 | - | then ([ScriptTransfer(au.caller, | |
615 | + | then ([ScriptTransfer(au.caller, bK, bL)] ++ bo()) | |
604 | 616 | else { | |
605 | - | let | |
606 | - | then invoke(this, "stakeUnstake", [false, | |
617 | + | let cj = if (containsElement(L, N)) | |
618 | + | then invoke(this, "stakeUnstake", [false, da, N], nil) | |
607 | 619 | else 0 | |
608 | - | if (( | |
620 | + | if ((cj == cj)) | |
609 | 621 | then { | |
610 | - | let | |
611 | - | then invoke(this, "stakeUnstake", [false, | |
622 | + | let ck = if (containsElement(L, O)) | |
623 | + | then invoke(this, "stakeUnstake", [false, db, O], nil) | |
612 | 624 | else 0 | |
613 | - | if (( | |
614 | - | then [IntegerEntry(f, (V - | |
625 | + | if ((ck == ck)) | |
626 | + | then [IntegerEntry(f, (V - da)), IntegerEntry(g, (W - db)), IntegerEntry(i, (Y - bK)), IntegerEntry(k, ci), Burn(X, bK), ScriptTransfer(au.caller, da, P), ScriptTransfer(au.caller, db, Q)] | |
615 | 627 | else throw("Strict value is not equal to itself.") | |
616 | 628 | } | |
617 | 629 | else throw("Strict value is not equal to itself.") | |
618 | 630 | } | |
619 | 631 | }) | |
620 | 632 | ||
621 | 633 | ||
622 | 634 | ||
623 | 635 | @Callable(au) | |
624 | - | func exchange ( | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | if ((0 >= | |
629 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
630 | - | else if (( | |
636 | + | func exchange (dc,bJ) = valueOrElse(bk(), { | |
637 | + | let dd = $Tuple2(au.payments[0].amount, au.payments[0].assetId) | |
638 | + | let bK = dd._1 | |
639 | + | let bL = dd._2 | |
640 | + | if ((0 >= dc)) | |
641 | + | then throw(("Estimated amount must be positive. Actual: " + toString(dc))) | |
642 | + | else if ((bJ > dc)) | |
631 | 643 | then throw("Minimal amount can't be greater than estimated.") | |
632 | 644 | else if ((size(au.payments) != 1)) | |
633 | 645 | then bn() | |
634 | 646 | else if (!(aB)) | |
635 | - | then ([ScriptTransfer(au.caller, | |
636 | - | else if (if (( | |
637 | - | then ( | |
647 | + | then ([ScriptTransfer(au.caller, bK, bL)] ++ bo()) | |
648 | + | else if (if ((bL != P)) | |
649 | + | then (bL != Q) | |
638 | 650 | else false) | |
639 | 651 | then bm() | |
640 | - | else if ((10000000 > | |
652 | + | else if ((10000000 > bK)) | |
641 | 653 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
642 | - | else if (if ((ak > fraction(ae, cY, cq))) | |
643 | - | then true | |
644 | - | else (fraction(ae, cX, cq) > al)) | |
645 | - | then throw("Incorrect args and pmt ratio") | |
646 | - | else { | |
647 | - | let da = if ((cr == P)) | |
648 | - | then Q | |
649 | - | else P | |
650 | - | let bw = aH(cX, cY, cq, cr) | |
651 | - | let db = bB(au.originCaller) | |
652 | - | let dc = fraction(bw, fraction(ab, db, ac, CEILING), ac) | |
653 | - | let dd = fraction(bw, (ac - fraction(aa, db, ac, CEILING)), ac) | |
654 | - | let de = if ((cr == P)) | |
655 | - | then $Tuple2((V + cq), ((W - dd) - dc)) | |
656 | - | else $Tuple2(((V - dd) - dc), (W + cq)) | |
657 | - | let cH = de._1 | |
658 | - | let cI = de._2 | |
659 | - | let cL = fraction((cH + cI), ai, (2 * aj)) | |
660 | - | if (if ((cL > cH)) | |
661 | - | then true | |
662 | - | else (cL > cI)) | |
663 | - | then bo(cL, cH, cI) | |
664 | - | else { | |
665 | - | let df = be(cr) | |
666 | - | let ct = df._1 | |
667 | - | let cu = df._2 | |
668 | - | let cv = df._3 | |
669 | - | let dg = be(da) | |
670 | - | let dh = dg._1 | |
671 | - | let di = dg._2 | |
672 | - | let dj = dg._3 | |
673 | - | let cb = if (containsElement(L, ct)) | |
674 | - | then invoke(this, "stakeUnstake", [true, cq, ct], nil) | |
675 | - | else 0 | |
676 | - | if ((cb == cb)) | |
677 | - | then { | |
678 | - | let cc = if (containsElement(L, dh)) | |
679 | - | then invoke(this, "stakeUnstake", [false, (dd + dc), dh], nil) | |
680 | - | else 0 | |
681 | - | if ((cc == cc)) | |
682 | - | then $Tuple2([IntegerEntry(f, cH), IntegerEntry(g, cI), IntegerEntry(k, aF(cH, cI)), ScriptTransfer(au.caller, dd, da), ScriptTransfer(H, dc, da)], $Tuple2(dd, da)) | |
683 | - | else throw("Strict value is not equal to itself.") | |
684 | - | } | |
685 | - | else throw("Strict value is not equal to itself.") | |
686 | - | } | |
687 | - | } | |
654 | + | else { | |
655 | + | let de = bG(V, W, bJ, bK, bL) | |
656 | + | let df = de._1 | |
657 | + | let dg = de._2 | |
658 | + | if (((al - fraction(ak, df, ae)) > dg)) | |
659 | + | then throw("Incorrect args and pmt ratio") | |
660 | + | else { | |
661 | + | let dh = if ((bL == P)) | |
662 | + | then Q | |
663 | + | else P | |
664 | + | let bw = aH(dc, bJ, bK, bL) | |
665 | + | let di = bB(au.originCaller) | |
666 | + | let dj = fraction(bw, fraction(ab, di, ac, CEILING), ac) | |
667 | + | let dk = fraction(bw, (ac - fraction(aa, di, ac, CEILING)), ac) | |
668 | + | let dl = if ((bL == P)) | |
669 | + | then $Tuple2((V + bK), ((W - dk) - dj)) | |
670 | + | else $Tuple2(((V - dk) - dj), (W + bK)) | |
671 | + | let cN = dl._1 | |
672 | + | let cO = dl._2 | |
673 | + | let dm = fraction((cN + cO), ai, (2 * aj)) | |
674 | + | if (if ((dm > cN)) | |
675 | + | then true | |
676 | + | else (dm > cO)) | |
677 | + | then bp(dm, cN, cO) | |
678 | + | else { | |
679 | + | let dn = be(bL) | |
680 | + | let cz = dn._1 | |
681 | + | let cA = dn._2 | |
682 | + | let cB = dn._3 | |
683 | + | let do = be(dh) | |
684 | + | let dp = do._1 | |
685 | + | let dq = do._2 | |
686 | + | let dr = do._3 | |
687 | + | let cj = if (containsElement(L, cz)) | |
688 | + | then invoke(this, "stakeUnstake", [true, bK, cz], nil) | |
689 | + | else 0 | |
690 | + | if ((cj == cj)) | |
691 | + | then { | |
692 | + | let ck = if (containsElement(L, dp)) | |
693 | + | then invoke(this, "stakeUnstake", [false, (dk + dj), dp], nil) | |
694 | + | else 0 | |
695 | + | if ((ck == ck)) | |
696 | + | then $Tuple2([IntegerEntry(f, cN), IntegerEntry(g, cO), IntegerEntry(k, aF(cN, cO)), ScriptTransfer(au.caller, dk, dh), ScriptTransfer(H, dj, dh)], $Tuple2(dk, dh)) | |
697 | + | else throw("Strict value is not equal to itself.") | |
698 | + | } | |
699 | + | else throw("Strict value is not equal to itself.") | |
700 | + | } | |
701 | + | } | |
702 | + | } | |
688 | 703 | }) | |
689 | 704 | ||
690 | 705 | ||
691 | 706 | ||
692 | 707 | @Callable(au) | |
693 | 708 | func shutdown () = valueOrElse(bl(au), if (!(M)) | |
694 | 709 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified"))) | |
695 | 710 | else bh("Paused by admin")) | |
696 | 711 | ||
697 | 712 | ||
698 | 713 | ||
699 | 714 | @Callable(au) | |
700 | 715 | func activate () = valueOrElse(bl(au), if (M) | |
701 | 716 | then bj() | |
702 | 717 | else [BooleanEntry(c, true), DeleteEntry(l)]) | |
703 | 718 | ||
704 | 719 | ||
705 | 720 | ||
706 | 721 | @Callable(au) | |
707 | 722 | func takeIntoAccountExtraFunds () = valueOrElse(bk(), { | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
723 | + | let ds = (az - V) | |
724 | + | let dt = (aA - W) | |
725 | + | let cP = aF((V + ds), (W + dt)) | |
711 | 726 | if ((au.caller != H)) | |
712 | 727 | then throw("Only the money box can call this function") | |
713 | - | else if (if ((0 > | |
728 | + | else if (if ((0 > ds)) | |
714 | 729 | then true | |
715 | - | else (0 > | |
730 | + | else (0 > dt)) | |
716 | 731 | then bh("Enroll amount negative") | |
717 | - | else if (if (( | |
718 | - | then ( | |
732 | + | else if (if ((ds == 0)) | |
733 | + | then (dt == 0) | |
719 | 734 | else false) | |
720 | 735 | then throw("No money to take") | |
721 | 736 | else { | |
722 | - | let | |
723 | - | then ( | |
737 | + | let cj = if (if (containsElement(L, N)) | |
738 | + | then (ds > 0) | |
724 | 739 | else false) | |
725 | - | then invoke(this, "stakeUnstake", [true, | |
740 | + | then invoke(this, "stakeUnstake", [true, ds, N], nil) | |
726 | 741 | else 0 | |
727 | - | if (( | |
742 | + | if ((cj == cj)) | |
728 | 743 | then { | |
729 | - | let | |
730 | - | then ( | |
744 | + | let ck = if (if (containsElement(L, O)) | |
745 | + | then (dt > 0) | |
731 | 746 | else false) | |
732 | - | then invoke(this, "stakeUnstake", [true, | |
747 | + | then invoke(this, "stakeUnstake", [true, dt, O], nil) | |
733 | 748 | else 0 | |
734 | - | if (( | |
735 | - | then [IntegerEntry(k, | |
749 | + | if ((ck == ck)) | |
750 | + | then [IntegerEntry(k, cP), IntegerEntry(f, (V + ds)), IntegerEntry(g, (W + dt))] | |
736 | 751 | else throw("Strict value is not equal to itself.") | |
737 | 752 | } | |
738 | 753 | else throw("Strict value is not equal to itself.") | |
739 | 754 | } | |
740 | 755 | }) | |
741 | 756 | ||
742 | 757 | ||
743 | 758 | ||
744 | 759 | @Callable(au) | |
745 | - | func stakeUnstake (bu,bw, | |
760 | + | func stakeUnstake (bu,bw,du) = if ((au.caller != this)) | |
746 | 761 | then throw("Only contract itself can invoke this function") | |
747 | 762 | else { | |
748 | - | let | |
749 | - | let by = | |
750 | - | let | |
751 | - | let | |
752 | - | let | |
753 | - | let | |
754 | - | if (( | |
763 | + | let dv = bv(bu, bw, fromBase58String(du)) | |
764 | + | let by = dv._1 | |
765 | + | let dw = dv._2 | |
766 | + | let dx = dv._3 | |
767 | + | let dy = dv._4 | |
768 | + | let dz = invoke(dw, by, dx, dy) | |
769 | + | if ((dz == dz)) | |
755 | 770 | then nil | |
756 | 771 | else throw("Strict value is not equal to itself.") | |
757 | 772 | } | |
758 | 773 | ||
759 | 774 | ||
760 | 775 | ||
761 | 776 | @Callable(au) | |
762 | 777 | func toBigIntInvariant () = valueOrElse(bl(au), [IntegerEntry(k, aF(V, W))]) | |
763 | 778 | ||
764 | 779 | ||
765 | - | @Verifier( | |
766 | - | func | |
767 | - | let | |
768 | - | let | |
780 | + | @Verifier(dA) | |
781 | + | func dB () = { | |
782 | + | let dC = { | |
783 | + | let dD = if (sigVerify(dA.bodyBytes, dA.proofs[0], D)) | |
769 | 784 | then 1 | |
770 | 785 | else 0 | |
771 | - | let | |
786 | + | let dE = if (sigVerify(dA.bodyBytes, dA.proofs[1], E)) | |
772 | 787 | then 1 | |
773 | 788 | else 0 | |
774 | - | let | |
789 | + | let dF = if (sigVerify(dA.bodyBytes, dA.proofs[2], F)) | |
775 | 790 | then 1 | |
776 | 791 | else 0 | |
777 | - | ((( | |
792 | + | (((dD + dE) + dF) >= 2) | |
778 | 793 | } | |
779 | - | let A = | |
794 | + | let A = dA | |
780 | 795 | if ($isInstanceOf(A, "InvokeScriptTransaction")) | |
781 | 796 | then { | |
782 | - | let | |
783 | - | let | |
784 | - | then ( | |
797 | + | let dz = A | |
798 | + | let dG = if ((dz.dApp == this)) | |
799 | + | then (dz.function == "takeIntoAccountExtraFunds") | |
785 | 800 | else false | |
786 | - | let | |
801 | + | let dH = if (if (if (sigVerify(dA.bodyBytes, dA.proofs[0], D)) | |
787 | 802 | then true | |
788 | - | else sigVerify( | |
803 | + | else sigVerify(dA.bodyBytes, dA.proofs[0], E)) | |
789 | 804 | then true | |
790 | - | else sigVerify( | |
805 | + | else sigVerify(dA.bodyBytes, dA.proofs[0], F)) | |
791 | 806 | then true | |
792 | - | else sigVerify( | |
793 | - | if (if ( | |
794 | - | then | |
807 | + | else sigVerify(dA.bodyBytes, dA.proofs[0], G) | |
808 | + | if (if (dG) | |
809 | + | then dH | |
795 | 810 | else false) | |
796 | 811 | then true | |
797 | - | else | |
812 | + | else dC | |
798 | 813 | } | |
799 | - | else | |
814 | + | else dC | |
800 | 815 | } | |
801 | 816 |
github/deemru/w8io/026f985 157.47 ms ◑