tx · HQW4vHYKpdyhR8DECMn17Kmt89TxY57ZZvfvLMtZZitz 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU: -0.03400000 Waves 2022.07.16 15:09 [2142281] smart account 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU > SELF 0.00000000 Waves
{ "type": 13, "id": "HQW4vHYKpdyhR8DECMn17Kmt89TxY57ZZvfvLMtZZitz", "fee": 3400000, "feeAssetId": null, "timestamp": 1657973411446, "version": 2, "chainId": 84, "sender": "3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU", "senderPublicKey": "GDio3pYFUMSWQ3yen7TJP79nTPaGuPbxjKixvKLuYS8E", "proofs": [ "43Ah9eFsrm3NQZcdhrt6PFMesAPR2C6C52Jrb3UPhhpmnfNrfCEfBJz5sj2tQoZdng7kseD8XUdNB9xQN2xZSwNc" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAA0QxMAAAAAACVAvkAAEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJAAQlAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEFA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uCQAAAgAAAAECAAAANVN3YXAgZGVuaWVkISAwLjAwMyBBeEFpIGlzIHJlcXVpcmVkIGZvciB0aGUgc3dhcCBmZWUuCQAAAgAAAAECAAAAEkludmFsaWQgcmF0ZSBhc3NldAkAAAIAAAABAgAAABFJbnZhbGlkIFN3YXAgS2V5LgkAAAIAAAABAgAAABlJbnZhbGlkIEFzc2V0MSBvciBBc3NldDIhCQAAAgAAAAECAAAAIEFzc2V0MSBjYW5ub3QgYmUgZXF1YWwgdG8gQXNzZXQyCQAAAgAAAAECAAAAJFN3YXAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgkAAAIAAAABAgAAACRkQXBwIGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJ0dAAAAAlyZWNpcGllbnQJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVhZG1pbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm4eMhH", "height": 2142281, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: qgSu8ANW3gbCXjv4afS8rANZuuo8FGs4BJid83TaieB Next: 87W9Fs1WFuJ6J4ftKTv68iZfLHwU6baumEKrVems54nX Diff:
Old | New | Differences | |
---|---|---|---|
347 | 347 | } | |
348 | 348 | else 0 | |
349 | 349 | } | |
350 | + | let bj = if ((bb == 0)) | |
351 | + | then height | |
352 | + | else valueOrElse(getIntegerValue(this, ((((h + "_") + ba) + "_") + bi)), height) | |
350 | 353 | let bc = (bb + r.payments[0].amount) | |
351 | 354 | let bd = IntegerEntry(((("STAKE_LP_" + ba) + "_") + bi), bc) | |
352 | 355 | let be = IntegerEntry(((((h + "_") + ba) + "_") + bi), height) | |
372 | 375 | ||
373 | 376 | ||
374 | 377 | @Callable(r) | |
375 | - | func remove (aV,T,U, | |
378 | + | func remove (aV,T,U,bk) = { | |
376 | 379 | let aW = getBooleanValue(this, u) | |
377 | 380 | let aX = getBooleanValue(this, x) | |
378 | - | let | |
381 | + | let bl = r.payments[0] | |
379 | 382 | let aY = fromBase58String(getStringValue(this, a)) | |
380 | 383 | if (aW) | |
381 | 384 | then if (!(aX)) | |
392 | 395 | } | |
393 | 396 | else 0 | |
394 | 397 | } | |
395 | - | let | |
398 | + | let bm = if (aV) | |
396 | 399 | then ((((h + "_") + ba) + "_") + I(T, U)) | |
397 | 400 | else (h + ba) | |
398 | 401 | let bf = if (aV) | |
399 | 402 | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + I(T, U))) | |
400 | 403 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
401 | - | let bg = (bf - | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | if ((0 > | |
404 | + | let bg = (bf - bk) | |
405 | + | let bn = (height - getIntegerValue(this, bm)) | |
406 | + | let bo = getIntegerValue(this, y) | |
407 | + | let bp = ((bn * bo) * i) | |
408 | + | let bq = (bp / (bf / bk)) | |
409 | + | if ((0 > bk)) | |
407 | 410 | then throw(if (aV) | |
408 | 411 | then (((("Can't withdraw negative " + T) + "/") + U) + " amount") | |
409 | 412 | else "Can't withdraw negative AxAi amount") | |
410 | 413 | else { | |
411 | - | let bc = (bb - | |
414 | + | let bc = (bb - bk) | |
412 | 415 | if ((0 > bc)) | |
413 | 416 | then throw(if (aV) | |
414 | 417 | then (((("Not enough Asset Lp " + T) + "/") + U) + " balance") | |
417 | 420 | then ((("STAKE_LP_" + ba) + "_") + I(T, U)) | |
418 | 421 | else ba, bc), IntegerEntry(if (aV) | |
419 | 422 | then ("Total_Tokens_LP_Locked_" + I(T, U)) | |
420 | - | else "Total_Tokens_Locked:", bg), ScriptTransfer(r.caller, | |
423 | + | else "Total_Tokens_Locked:", bg), ScriptTransfer(r.caller, bk, if (aV) | |
421 | 424 | then fromBase58String(getStringValue(this, (b + I(T, U)))) | |
422 | - | else aY), ScriptTransfer(r.caller, | |
425 | + | else aY), ScriptTransfer(r.caller, bq, aY)] | |
423 | 426 | } | |
424 | 427 | } | |
425 | 428 | else throw("liquidity is currently under maintenance.") | |
431 | 434 | @Callable(r) | |
432 | 435 | func addLiquidity (T,U) = { | |
433 | 436 | let aW = getBooleanValue(this, u) | |
434 | - | let | |
437 | + | let br = getBooleanValue(this, v) | |
435 | 438 | let aa = getBooleanValue(this, G) | |
436 | 439 | let M = L(I(T, U)) | |
437 | 440 | let J = r.payments[0].assetId | |
438 | 441 | let K = r.payments[1].assetId | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
442 | + | let bs = fromBase58String(getStringValue(this, A)) | |
443 | + | let bt = fromBase58String(getStringValue(this, C)) | |
444 | + | let bu = fromBase58String(getStringValue(this, B)) | |
445 | + | let bv = fromBase58String(getStringValue(this, D)) | |
446 | + | let bw = fromBase58String(getStringValue(this, E)) | |
444 | 447 | let aY = fromBase58String(getStringValue(this, a)) | |
445 | 448 | let aZ = getStringValue(this, (b + I(T, U))) | |
446 | - | let | |
449 | + | let bx = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
447 | 450 | then r.payments[0].amount | |
448 | 451 | else ab(((I(T, U) + "_") + T), false) | |
449 | - | let | |
452 | + | let by = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
450 | 453 | then r.payments[1].amount | |
451 | 454 | else ab(((I(T, U) + "_") + U), false) | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
455 | + | let bz = ab(aZ, true) | |
456 | + | let bA = ((bx + by) / bz) | |
457 | + | let bB = (r.payments[0].amount * (by / bx)) | |
458 | + | let bC = if ((r.payments[1].amount == bB)) | |
456 | 459 | then true | |
457 | 460 | else false | |
458 | 461 | if (aW) | |
459 | - | then if (!( | |
462 | + | then if (!(br)) | |
460 | 463 | then if (if (if (!((J == K))) | |
461 | 464 | then X(J, T, aa) | |
462 | 465 | else false) | |
463 | 466 | then X(K, U, aa) | |
464 | 467 | else false) | |
465 | - | then if (if (if (if (if (if (if (if ((J == br)) | |
466 | - | then true | |
467 | - | else (J == bs)) | |
468 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
468 | 469 | then true | |
469 | 470 | else (J == bt)) | |
470 | 471 | then true | |
471 | 472 | else (J == bu)) | |
472 | 473 | then true | |
474 | + | else (J == bv)) | |
475 | + | then true | |
473 | 476 | else (J == aY)) | |
474 | 477 | then true | |
475 | 478 | else (J == H)) | |
476 | 479 | then true | |
477 | - | else (J == bv)) | |
478 | - | then if (if (if (if (if (if ((K == br)) | |
479 | - | then true | |
480 | - | else (K == bs)) | |
480 | + | else (J == bw)) | |
481 | + | then if (if (if (if (if (if ((K == bs)) | |
481 | 482 | then true | |
482 | 483 | else (K == bt)) | |
483 | 484 | then true | |
484 | 485 | else (K == bu)) | |
485 | 486 | then true | |
487 | + | else (K == bv)) | |
488 | + | then true | |
486 | 489 | else (K == aY)) | |
487 | 490 | then true | |
488 | 491 | else (K == H)) | |
489 | 492 | then true | |
490 | - | else (K == | |
493 | + | else (K == bw) | |
491 | 494 | else false) | |
492 | 495 | then if ((M != false)) | |
493 | - | then if ( | |
496 | + | then if (bC) | |
494 | 497 | then { | |
495 | 498 | let ba = toBase58String(r.caller.bytes) | |
496 | 499 | let bb = N(ba, I(T, U)) | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
500 | + | let bD = P(ba, I(T, U), T) | |
501 | + | let bE = P(ba, I(T, U), U) | |
502 | + | let bF = R(I(T, U), T) | |
503 | + | let bG = R(I(T, U), U) | |
504 | + | let bH = if ((bx == r.payments[0].amount)) | |
502 | 505 | then (1 * i) | |
503 | - | else ((r.payments[0].amount + r.payments[1].amount) / (( | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | [Reissue(fromBase58String(aZ), | |
506 | + | else ((r.payments[0].amount + r.payments[1].amount) / ((bx + by) / bz)) | |
507 | + | let bI = (bD + r.payments[0].amount) | |
508 | + | let bJ = (bE + r.payments[1].amount) | |
509 | + | let bK = (bb + bH) | |
510 | + | let bL = (bF + r.payments[0].amount) | |
511 | + | let bM = (bG + r.payments[1].amount) | |
512 | + | [Reissue(fromBase58String(aZ), bH, true), ScriptTransfer(Address(r.caller.bytes), bH, fromBase58String(aZ)), IntegerEntry(S(T, U, ba), height), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + T), bI), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + U), bJ), IntegerEntry(((I(T, U) + "_") + ba), bK), IntegerEntry(((I(T, U) + "_") + T), bL), IntegerEntry(((I(T, U) + "_") + U), bM), IntegerEntry(T, (p(T) + r.payments[0].amount)), IntegerEntry(U, (p(U) + r.payments[1].amount)), IntegerEntry(aZ, (p(aZ) + bH))] | |
510 | 513 | } | |
511 | - | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * ( | |
514 | + | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * (by / bx)))) + "} Received: ") + toString(r.payments[1].amount)) + " Validate: ") + toString(bC))) | |
512 | 515 | else throw("Invalid Pool Key.") | |
513 | 516 | else throw("Invalid Asset1 or Asset2!") | |
514 | 517 | else throw("Asset1 cannot be equal to Asset2") | |
519 | 522 | ||
520 | 523 | ||
521 | 524 | @Callable(r) | |
522 | - | func removeLiquidity (T,U, | |
525 | + | func removeLiquidity (T,U,bN) = { | |
523 | 526 | let ba = toBase58String(r.caller.bytes) | |
524 | 527 | let aW = getBooleanValue(this, u) | |
525 | - | let | |
528 | + | let br = getBooleanValue(this, v) | |
526 | 529 | let aa = getBooleanValue(this, G) | |
527 | 530 | let bi = I(T, U) | |
528 | 531 | let M = L(bi) | |
536 | 539 | then H | |
537 | 540 | else throw("The smart contract does not currently support Waves.") | |
538 | 541 | else fromBase58String(U) | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
542 | + | let bs = fromBase58String(getStringValue(this, A)) | |
543 | + | let bt = fromBase58String(getStringValue(this, C)) | |
544 | + | let bu = fromBase58String(getStringValue(this, B)) | |
545 | + | let bv = fromBase58String(getStringValue(this, D)) | |
543 | 546 | let aY = fromBase58String(getStringValue(this, a)) | |
544 | - | let | |
547 | + | let bw = fromBase58String(getStringValue(this, E)) | |
545 | 548 | let aZ = getStringValue(this, (b + I(T, U))) | |
546 | 549 | let bb = N(ba, I(T, U)) | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
550 | + | let bO = V(ba, bi) | |
551 | + | let bP = ab(aZ, true) | |
552 | + | let bx = ab(((I(T, U) + "_") + T), false) | |
553 | + | let by = ab(((I(T, U) + "_") + U), false) | |
551 | 554 | if (aW) | |
552 | - | then if (!( | |
555 | + | then if (!(br)) | |
553 | 556 | then if (!((T == U))) | |
554 | - | then if (if (if (if (if (if (if (if ((J == br)) | |
555 | - | then true | |
556 | - | else (J == bs)) | |
557 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
557 | 558 | then true | |
558 | 559 | else (J == bt)) | |
559 | 560 | then true | |
560 | 561 | else (J == bu)) | |
561 | 562 | then true | |
563 | + | else (J == bv)) | |
564 | + | then true | |
562 | 565 | else (J == aY)) | |
563 | 566 | then true | |
564 | 567 | else (J == H)) | |
565 | 568 | then true | |
566 | - | else (J == bv)) | |
567 | - | then if (if (if (if (if (if ((K == br)) | |
568 | - | then true | |
569 | - | else (K == bs)) | |
569 | + | else (J == bw)) | |
570 | + | then if (if (if (if (if (if ((K == bs)) | |
570 | 571 | then true | |
571 | 572 | else (K == bt)) | |
572 | 573 | then true | |
573 | 574 | else (K == bu)) | |
574 | 575 | then true | |
576 | + | else (K == bv)) | |
577 | + | then true | |
575 | 578 | else (K == aY)) | |
576 | 579 | then true | |
577 | 580 | else (K == H)) | |
578 | 581 | then true | |
579 | - | else (K == | |
582 | + | else (K == bw) | |
580 | 583 | else false) | |
581 | 584 | then if ((M != false)) | |
582 | 585 | then if (!((bb == 0))) | |
583 | - | then if (((bb - | |
584 | - | then if (if (( | |
586 | + | then if (((bb - bO) >= bN)) | |
587 | + | then if (if ((bx > 2)) | |
585 | 588 | then true | |
586 | - | else ( | |
589 | + | else (by > 2)) | |
587 | 590 | then { | |
588 | - | let bP = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bO)) * toBigInt(bw)) / toBigInt(i))) | |
589 | - | let bQ = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bO)) * toBigInt(bx)) / toBigInt(i))) | |
590 | - | let bE = R(I(T, U), T) | |
591 | - | let bF = R(I(T, U), U) | |
592 | - | let bC = P(ba, I(T, U), T) | |
593 | - | let bD = P(ba, I(T, U), U) | |
594 | - | let bH = (bC - bP) | |
591 | + | let bQ = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bP)) * toBigInt(bx)) / toBigInt(i))) | |
592 | + | let bR = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bP)) * toBigInt(by)) / toBigInt(i))) | |
593 | + | let bF = R(I(T, U), T) | |
594 | + | let bG = R(I(T, U), U) | |
595 | + | let bD = P(ba, I(T, U), T) | |
596 | + | let bE = P(ba, I(T, U), U) | |
595 | 597 | let bI = (bD - bQ) | |
596 | - | let bJ = ( | |
597 | - | let bK = ( | |
598 | + | let bJ = (bE - bR) | |
599 | + | let bK = (bb - bN) | |
598 | 600 | let bL = (bF - bQ) | |
601 | + | let bM = (bG - bR) | |
599 | 602 | if ((r.payments[0].assetId == fromBase58String(aZ))) | |
600 | - | then if (( | |
601 | - | then [Burn(fromBase58String(aZ), | |
602 | - | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString( | |
603 | + | then if ((bN == r.payments[0].amount)) | |
604 | + | then [Burn(fromBase58String(aZ), bN), ScriptTransfer(Address(r.caller.bytes), bQ, J), ScriptTransfer(Address(r.caller.bytes), bR, K), IntegerEntry(S(T, U, ba), height), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + T), bI), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + U), bJ), IntegerEntry(((I(T, U) + "_") + ba), bK), IntegerEntry(((I(T, U) + "_") + T), bL), IntegerEntry(((I(T, U) + "_") + U), bM), IntegerEntry(T, (p(T) - bQ)), IntegerEntry(U, (p(U) - bR)), IntegerEntry(aZ, (p(aZ) - bN))] | |
605 | + | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(bN))) | |
603 | 606 | else throw("Requires an lp asset as payment to remove locked amounts.") | |
604 | 607 | } | |
605 | 608 | else throw("Pool has no liquidity.") | |
606 | - | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString( | |
609 | + | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(bN))) | |
607 | 610 | else throw("You have no locked values in the pool") | |
608 | 611 | else throw("Invalid Pool Key.") | |
609 | 612 | else throw("Invalid Asset1 or Asset2!") | |
619 | 622 | let ba = toBase58String(r.caller.bytes) | |
620 | 623 | let aa = getBooleanValue(this, G) | |
621 | 624 | let aW = getBooleanValue(this, u) | |
622 | - | let | |
625 | + | let bS = getBooleanValue(this, w) | |
623 | 626 | let bi = I(T, U) | |
624 | 627 | let M = L(bi) | |
625 | 628 | let J = r.payments[0].assetId | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
629 | + | let bs = fromBase58String(getStringValue(this, A)) | |
630 | + | let bt = fromBase58String(getStringValue(this, C)) | |
631 | + | let bu = fromBase58String(getStringValue(this, B)) | |
632 | + | let bv = fromBase58String(getStringValue(this, D)) | |
630 | 633 | let aY = fromBase58String(getStringValue(this, a)) | |
631 | - | let | |
634 | + | let bw = fromBase58String(getStringValue(this, E)) | |
632 | 635 | let aZ = getStringValue(this, (b + I(T, U))) | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
636 | + | let bT = ab(((I(T, U) + "_") + T), false) | |
637 | + | let bU = ab(((I(T, U) + "_") + U), false) | |
638 | + | let bV = getIntegerValue(this, g) | |
639 | + | let bW = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bU), toBigInt(bT))) | |
640 | + | let bX = toInt(((bW - ((bW / toBigInt(bV)) * toBigInt(100))) / toBigInt(i))) | |
641 | + | let bY = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bT), toBigInt(bU))) | |
642 | + | let bZ = toInt(((bY - ((bY / toBigInt(bV)) * toBigInt(100))) / toBigInt(i))) | |
643 | + | let ca = if (if ((J == unit)) | |
641 | 644 | then (T == F) | |
642 | 645 | else false) | |
643 | - | then | |
646 | + | then bX | |
644 | 647 | else if ((J == fromBase58String(T))) | |
645 | - | then | |
646 | - | else | |
647 | - | let | |
648 | + | then bX | |
649 | + | else bZ | |
650 | + | let cb = if ((J == unit)) | |
648 | 651 | then F | |
649 | 652 | else if ((J == fromBase58String(T))) | |
650 | 653 | then T | |
651 | 654 | else U | |
652 | - | let | |
655 | + | let cc = if ((J == unit)) | |
653 | 656 | then F | |
654 | 657 | else if ((J == fromBase58String(T))) | |
655 | 658 | then U | |
656 | 659 | else T | |
657 | - | let | |
660 | + | let cd = if ((J == unit)) | |
658 | 661 | then H | |
659 | 662 | else if ((J == fromBase58String(T))) | |
660 | 663 | then fromBase58String(U) | |
661 | 664 | else fromBase58String(T) | |
662 | 665 | if (aW) | |
663 | - | then if (!( | |
666 | + | then if (!(bS)) | |
664 | 667 | then if (if (!((T == U))) | |
665 | 668 | then if (X(J, T, aa)) | |
666 | 669 | then true | |
667 | 670 | else X(J, U, aa) | |
668 | 671 | else false) | |
669 | - | then if (if (if (if (if (if (if ((J == br)) | |
670 | - | then true | |
671 | - | else (J == bs)) | |
672 | + | then if (if (if (if (if (if (if ((J == bs)) | |
672 | 673 | then true | |
673 | 674 | else (J == bt)) | |
674 | 675 | then true | |
675 | 676 | else (J == bu)) | |
676 | 677 | then true | |
678 | + | else (J == bv)) | |
679 | + | then true | |
677 | 680 | else (J == aY)) | |
678 | 681 | then true | |
679 | - | else (J == | |
682 | + | else (J == bw)) | |
680 | 683 | then true | |
681 | 684 | else (J == H)) | |
682 | 685 | then if ((M != false)) | |
683 | 686 | then if ((r.payments[1].assetId == aY)) | |
684 | 687 | then if ((r.payments[1].amount == 300000)) | |
685 | - | then if (if (( | |
688 | + | then if (if ((bT > 2)) | |
686 | 689 | then true | |
687 | - | else ( | |
688 | - | then [ScriptTransfer(Address(r.caller.bytes), | |
690 | + | else (bU > 2)) | |
691 | + | then [ScriptTransfer(Address(r.caller.bytes), ca, cd), IntegerEntry(cc, (p(cc) - ca)), IntegerEntry(((I(T, U) + "_") + cc), (R(I(T, U), cc) - ca)), IntegerEntry(((I(T, U) + "_") + cb), (R(I(T, U), cb) + r.payments[0].amount)), IntegerEntry(cb, (p(cb) + r.payments[0].amount)), IntegerEntry(toBase58String(aY), (p(toBase58String(aY)) + r.payments[1].amount))] | |
689 | 692 | else throw("Pool has no liquidity.") | |
690 | 693 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
691 | 694 | else throw("Invalid rate asset") | |
697 | 700 | } | |
698 | 701 | ||
699 | 702 | ||
700 | - | @Verifier( | |
701 | - | func | |
702 | - | let q = | |
703 | + | @Verifier(ce) | |
704 | + | func cf () = { | |
705 | + | let q = ce | |
703 | 706 | if ($isInstanceOf(q, "Order")) | |
704 | 707 | then { | |
705 | - | let | |
708 | + | let cg = q | |
706 | 709 | true | |
707 | 710 | } | |
708 | 711 | else if ($isInstanceOf(q, "ExchangeTransaction")) | |
709 | 712 | then { | |
710 | - | let | |
713 | + | let ch = q | |
711 | 714 | true | |
712 | 715 | } | |
713 | 716 | else if ($isInstanceOf(q, "TransferTransaction")) | |
714 | 717 | then { | |
715 | - | let | |
716 | - | ( | |
718 | + | let ci = q | |
719 | + | (ci.recipient == Address(fromBase58String(getStringValue(this, "admin")))) | |
717 | 720 | } | |
718 | - | else sigVerify( | |
721 | + | else sigVerify(ce.bodyBytes, ce.proofs[0], ce.senderPublicKey) | |
719 | 722 | } | |
720 | 723 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "main_asset" | |
5 | 5 | ||
6 | 6 | let b = "lp_asset_" | |
7 | 7 | ||
8 | 8 | let c = "pool__" | |
9 | 9 | ||
10 | 10 | let d = "STAKING_AMOUNT_" | |
11 | 11 | ||
12 | 12 | let e = "LEASE_AMOUNT_" | |
13 | 13 | ||
14 | 14 | let f = "ID_" | |
15 | 15 | ||
16 | 16 | let g = "percentage_rate_fee" | |
17 | 17 | ||
18 | 18 | let h = "Deposit_Height_Of_" | |
19 | 19 | ||
20 | 20 | let i = 100000000 | |
21 | 21 | ||
22 | 22 | let j = 1000000 | |
23 | 23 | ||
24 | 24 | let k = 10000000000 | |
25 | 25 | ||
26 | 26 | func l (m) = toString(valueOrErrorMessage(addressFromString(m), (("Can't parse " + m) + " as address"))) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (o) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(o))).id, (("Asset Id: " + o) + " is invalid."))) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func p (o) = { | |
33 | 33 | let q = getInteger(this, o) | |
34 | 34 | if ($isInstanceOf(q, "Int")) | |
35 | 35 | then { | |
36 | 36 | let r = q | |
37 | 37 | r | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s (o) = { | |
44 | 44 | let q = assetInfo(o) | |
45 | 45 | if ($isInstanceOf(q, "Asset")) | |
46 | 46 | then { | |
47 | 47 | let t = q | |
48 | 48 | t.name | |
49 | 49 | } | |
50 | 50 | else throw("Can't find asset") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let u = "activate" | |
55 | 55 | ||
56 | 56 | let v = "activate_pools" | |
57 | 57 | ||
58 | 58 | let w = "activate_swap" | |
59 | 59 | ||
60 | 60 | let x = "activate_liquidity" | |
61 | 61 | ||
62 | 62 | let y = "block_distribuition" | |
63 | 63 | ||
64 | 64 | let z = "Total_Tokens_Locked_" | |
65 | 65 | ||
66 | 66 | let A = "usdn_asset" | |
67 | 67 | ||
68 | 68 | let B = "usdt_asset" | |
69 | 69 | ||
70 | 70 | let C = "usdc_asset" | |
71 | 71 | ||
72 | 72 | let D = "ngnn_asset" | |
73 | 73 | ||
74 | 74 | let E = "eurn_asset" | |
75 | 75 | ||
76 | 76 | let F = "WAVES" | |
77 | 77 | ||
78 | 78 | let G = "accept_waves" | |
79 | 79 | ||
80 | 80 | let H = unit | |
81 | 81 | ||
82 | 82 | func I (J,K) = (((c + J) + "_") + K) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func L (M) = { | |
86 | 86 | let q = getInteger(this, M) | |
87 | 87 | if ($isInstanceOf(q, "Int")) | |
88 | 88 | then { | |
89 | 89 | let r = q | |
90 | 90 | r | |
91 | 91 | } | |
92 | 92 | else false | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (m,M) = { | |
97 | 97 | let q = getInteger(this, ((M + "_") + m)) | |
98 | 98 | if ($isInstanceOf(q, "Int")) | |
99 | 99 | then { | |
100 | 100 | let O = q | |
101 | 101 | O | |
102 | 102 | } | |
103 | 103 | else 0 | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (m,M,t) = { | |
108 | 108 | let q = getInteger(this, ((((m + "_") + M) + "_") + t)) | |
109 | 109 | if ($isInstanceOf(q, "Int")) | |
110 | 110 | then { | |
111 | 111 | let Q = q | |
112 | 112 | Q | |
113 | 113 | } | |
114 | 114 | else 0 | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func R (M,t) = { | |
119 | 119 | let q = getInteger(this, ((M + "_") + t)) | |
120 | 120 | if ($isInstanceOf(q, "Int")) | |
121 | 121 | then { | |
122 | 122 | let Q = q | |
123 | 123 | Q | |
124 | 124 | } | |
125 | 125 | else 1 | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func S (T,U,m) = (((h + I(T, U)) + "_") + m) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func V (m,M) = { | |
133 | 133 | let q = getInteger(this, ((("STAKE_LP_" + m) + "_") + M)) | |
134 | 134 | if ($isInstanceOf(q, "Int")) | |
135 | 135 | then { | |
136 | 136 | let Q = q | |
137 | 137 | Q | |
138 | 138 | } | |
139 | 139 | else 0 | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func W () = { | |
144 | 144 | let q = getString(this, "admin") | |
145 | 145 | if ($isInstanceOf(q, "String")) | |
146 | 146 | then { | |
147 | 147 | let O = q | |
148 | 148 | Address(fromBase58String(O)) | |
149 | 149 | } | |
150 | 150 | else this | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func X (Y,Z,aa) = if (if ((Y == H)) | |
155 | 155 | then (Z == "WAVES") | |
156 | 156 | else false) | |
157 | 157 | then if (aa) | |
158 | 158 | then true | |
159 | 159 | else throw("The smart contract does not currently support Waves.") | |
160 | 160 | else if ((Y == fromBase58String(Z))) | |
161 | 161 | then true | |
162 | 162 | else false | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ab (M,ac) = { | |
166 | 166 | let q = getInteger(this, M) | |
167 | 167 | if ($isInstanceOf(q, "Int")) | |
168 | 168 | then { | |
169 | 169 | let Q = q | |
170 | 170 | Q | |
171 | 171 | } | |
172 | 172 | else if (ac) | |
173 | 173 | then (1 * i) | |
174 | 174 | else 1 | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(r) | |
179 | 179 | func constructor (ad,ae,af,ag,ah,ai,aj,ak,al) = { | |
180 | 180 | let am = I(af, F) | |
181 | 181 | if (if ((r.caller == this)) | |
182 | 182 | then true | |
183 | 183 | else (r.caller == W())) | |
184 | 184 | then if ((valueOrElse(getInteger(this, am), 0) == 0)) | |
185 | 185 | then { | |
186 | 186 | let an = I(ae, af) | |
187 | 187 | let ao = I(ae, ag) | |
188 | 188 | let ap = I(ae, ah) | |
189 | 189 | let aq = I(ae, F) | |
190 | 190 | let ar = I(ae, ad) | |
191 | 191 | let as = I(ae, ai) | |
192 | 192 | let at = I(ag, af) | |
193 | 193 | let au = I(ag, ah) | |
194 | 194 | let av = I(ag, F) | |
195 | 195 | let aw = I(ag, ad) | |
196 | 196 | let ax = I(ag, ai) | |
197 | 197 | let ay = I(af, ah) | |
198 | 198 | let az = I(af, ad) | |
199 | 199 | let aA = I(af, ai) | |
200 | 200 | let aB = I(ah, F) | |
201 | 201 | let aC = I(ah, ad) | |
202 | 202 | let aD = I(ah, ai) | |
203 | 203 | let aE = I(ad, F) | |
204 | 204 | let aF = I(ad, ai) | |
205 | 205 | let aG = I(ai, F) | |
206 | 206 | [StringEntry(a, ad), StringEntry(A, ae), StringEntry(C, ag), StringEntry(B, af), StringEntry(D, ah), BooleanEntry(G, al), IntegerEntry(g, aj), BooleanEntry(u, true), BooleanEntry(w, false), BooleanEntry(v, false), BooleanEntry(x, false), IntegerEntry(y, ak), IntegerEntry(an, 1), IntegerEntry(aq, 1), IntegerEntry(ao, 1), IntegerEntry(ap, 1), IntegerEntry(ar, 1), IntegerEntry(at, 1), IntegerEntry(au, 1), IntegerEntry(av, 1), IntegerEntry(az, 1), IntegerEntry(ay, 1), IntegerEntry(am, 1), IntegerEntry(aB, 1), IntegerEntry(aC, 1), IntegerEntry(aE, 1), IntegerEntry(aG, 1), IntegerEntry(aF, 1), IntegerEntry(aD, 1), IntegerEntry(ax, 1), IntegerEntry(as, 1), IntegerEntry(aA, 1), IntegerEntry(aw, 1), StringEntry(E, ai)] | |
207 | 207 | } | |
208 | 208 | else throw("Smart Contract has been started") | |
209 | 209 | else throw("Only the Admin itself can invoke this function") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(r) | |
215 | 215 | func activate (aH) = if (if ((r.caller == this)) | |
216 | 216 | then true | |
217 | 217 | else (r.caller == W())) | |
218 | 218 | then [BooleanEntry(u, aH)] | |
219 | 219 | else throw("Only the Admin itself can invoke this function") | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(r) | |
224 | 224 | func maintenance (aI,aJ,aK) = if (if ((r.caller == this)) | |
225 | 225 | then true | |
226 | 226 | else (r.caller == W())) | |
227 | 227 | then [BooleanEntry(v, aI), BooleanEntry(w, aJ), BooleanEntry(x, aK)] | |
228 | 228 | else throw("Only the Admin itself can invoke this function") | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | ||
232 | 232 | @Callable(r) | |
233 | 233 | func percentualRateFeeSwapEdit (aL) = if (if ((r.caller == this)) | |
234 | 234 | then true | |
235 | 235 | else (r.caller == W())) | |
236 | 236 | then [IntegerEntry(g, aL)] | |
237 | 237 | else throw("Only the Admin itself can invoke this function") | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | ||
241 | 241 | @Callable(r) | |
242 | 242 | func acceptWaves (aM) = if (if ((r.caller == this)) | |
243 | 243 | then true | |
244 | 244 | else (r.caller == W())) | |
245 | 245 | then [BooleanEntry(G, aM)] | |
246 | 246 | else throw("Only the Admin itself can invoke this function") | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(r) | |
251 | 251 | func blockDistribution (aN) = if (if ((r.caller == this)) | |
252 | 252 | then true | |
253 | 253 | else (r.caller == W())) | |
254 | 254 | then [IntegerEntry(y, aN)] | |
255 | 255 | else throw("Only the Admin itself can invoke this function") | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | ||
259 | 259 | @Callable(r) | |
260 | 260 | func addAdmin (m) = if (if ((r.caller == this)) | |
261 | 261 | then true | |
262 | 262 | else (r.caller == W())) | |
263 | 263 | then [StringEntry("admin", m)] | |
264 | 264 | else throw("Only the Admin itself can invoke this function") | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | ||
268 | 268 | @Callable(r) | |
269 | 269 | func lpAssetCreateForPairPool (J,K,aO,aP) = { | |
270 | 270 | let aQ = if ((J == F)) | |
271 | 271 | then F | |
272 | 272 | else s(fromBase58String(J)) | |
273 | 273 | let aR = if ((K == F)) | |
274 | 274 | then F | |
275 | 275 | else s(fromBase58String(K)) | |
276 | 276 | let aS = if (aP) | |
277 | 277 | then aO | |
278 | 278 | else ((aQ + "_") + aR) | |
279 | 279 | let M = L(I(J, K)) | |
280 | 280 | if (if ((r.caller == this)) | |
281 | 281 | then true | |
282 | 282 | else (r.caller == W())) | |
283 | 283 | then if ((M != false)) | |
284 | 284 | then { | |
285 | 285 | let aT = Issue(aS, ((("LP asset for pool liquidity in AxAi Swap pair " + J) + "_") + K), (1 * i), 8, true) | |
286 | 286 | let aU = calculateAssetId(aT) | |
287 | 287 | [StringEntry((b + I(J, K)), toBase58String(aU)), aT] | |
288 | 288 | } | |
289 | 289 | else throw("Invalid Pool Key. Try inverting the assets") | |
290 | 290 | else throw("Only the Admin itself can invoke this function") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(r) | |
296 | 296 | func deposit (aV,T,U) = { | |
297 | 297 | let aW = getBooleanValue(this, u) | |
298 | 298 | let aX = getBooleanValue(this, x) | |
299 | 299 | let aY = getStringValue(this, a) | |
300 | 300 | let aZ = if (aV) | |
301 | 301 | then getStringValue(this, (b + I(T, U))) | |
302 | 302 | else aY | |
303 | 303 | if (aW) | |
304 | 304 | then if (!(aX)) | |
305 | 305 | then if ((r.payments[0].assetId != fromBase58String(aZ))) | |
306 | 306 | then throw((("Invalid asset! Kindly Deposit Only " + aY) + " or valid asset lp")) | |
307 | 307 | else if (!(aV)) | |
308 | 308 | then { | |
309 | 309 | let ba = toBase58String(r.caller.bytes) | |
310 | 310 | let bb = { | |
311 | 311 | let q = getInteger(this, ba) | |
312 | 312 | if ($isInstanceOf(q, "Int")) | |
313 | 313 | then { | |
314 | 314 | let Q = q | |
315 | 315 | Q | |
316 | 316 | } | |
317 | 317 | else 0 | |
318 | 318 | } | |
319 | 319 | let bc = (bb + r.payments[0].amount) | |
320 | 320 | let bd = IntegerEntry(ba, bc) | |
321 | 321 | let be = IntegerEntry((h + ba), height) | |
322 | 322 | let bf = { | |
323 | 323 | let q = getInteger(this, "Total_Tokens_Locked:") | |
324 | 324 | if ($isInstanceOf(q, "Int")) | |
325 | 325 | then { | |
326 | 326 | let Q = q | |
327 | 327 | Q | |
328 | 328 | } | |
329 | 329 | else 0 | |
330 | 330 | } | |
331 | 331 | let bg = (bf + r.payments[0].amount) | |
332 | 332 | let bh = IntegerEntry("Total_Tokens_Locked:", bg) | |
333 | 333 | [bd, be, bh] | |
334 | 334 | } | |
335 | 335 | else { | |
336 | 336 | let bi = I(T, U) | |
337 | 337 | let M = L(bi) | |
338 | 338 | if ((M != false)) | |
339 | 339 | then { | |
340 | 340 | let ba = toBase58String(r.caller.bytes) | |
341 | 341 | let bb = { | |
342 | 342 | let q = getInteger(this, ((("STAKE_LP_" + ba) + "_") + bi)) | |
343 | 343 | if ($isInstanceOf(q, "Int")) | |
344 | 344 | then { | |
345 | 345 | let Q = q | |
346 | 346 | Q | |
347 | 347 | } | |
348 | 348 | else 0 | |
349 | 349 | } | |
350 | + | let bj = if ((bb == 0)) | |
351 | + | then height | |
352 | + | else valueOrElse(getIntegerValue(this, ((((h + "_") + ba) + "_") + bi)), height) | |
350 | 353 | let bc = (bb + r.payments[0].amount) | |
351 | 354 | let bd = IntegerEntry(((("STAKE_LP_" + ba) + "_") + bi), bc) | |
352 | 355 | let be = IntegerEntry(((((h + "_") + ba) + "_") + bi), height) | |
353 | 356 | let bf = { | |
354 | 357 | let q = getInteger(this, ("Total_Tokens_LP_Locked_" + bi)) | |
355 | 358 | if ($isInstanceOf(q, "Int")) | |
356 | 359 | then { | |
357 | 360 | let Q = q | |
358 | 361 | Q | |
359 | 362 | } | |
360 | 363 | else 0 | |
361 | 364 | } | |
362 | 365 | let bg = (bf + r.payments[0].amount) | |
363 | 366 | let bh = IntegerEntry(("Total_Tokens_LP_Locked_" + bi), bg) | |
364 | 367 | [bd, be, bh] | |
365 | 368 | } | |
366 | 369 | else throw("Invalid Pool key.") | |
367 | 370 | } | |
368 | 371 | else throw("liquidity is currently under maintenance.") | |
369 | 372 | else throw("dApp is currently under maintenance.") | |
370 | 373 | } | |
371 | 374 | ||
372 | 375 | ||
373 | 376 | ||
374 | 377 | @Callable(r) | |
375 | - | func remove (aV,T,U, | |
378 | + | func remove (aV,T,U,bk) = { | |
376 | 379 | let aW = getBooleanValue(this, u) | |
377 | 380 | let aX = getBooleanValue(this, x) | |
378 | - | let | |
381 | + | let bl = r.payments[0] | |
379 | 382 | let aY = fromBase58String(getStringValue(this, a)) | |
380 | 383 | if (aW) | |
381 | 384 | then if (!(aX)) | |
382 | 385 | then { | |
383 | 386 | let ba = toBase58String(r.caller.bytes) | |
384 | 387 | let bb = { | |
385 | 388 | let q = if (aV) | |
386 | 389 | then getIntegerValue(this, ((("STAKE_LP_" + ba) + "_") + I(T, U))) | |
387 | 390 | else getIntegerValue(this, ba) | |
388 | 391 | if ($isInstanceOf(q, "Int")) | |
389 | 392 | then { | |
390 | 393 | let Q = q | |
391 | 394 | Q | |
392 | 395 | } | |
393 | 396 | else 0 | |
394 | 397 | } | |
395 | - | let | |
398 | + | let bm = if (aV) | |
396 | 399 | then ((((h + "_") + ba) + "_") + I(T, U)) | |
397 | 400 | else (h + ba) | |
398 | 401 | let bf = if (aV) | |
399 | 402 | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + I(T, U))) | |
400 | 403 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
401 | - | let bg = (bf - | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | if ((0 > | |
404 | + | let bg = (bf - bk) | |
405 | + | let bn = (height - getIntegerValue(this, bm)) | |
406 | + | let bo = getIntegerValue(this, y) | |
407 | + | let bp = ((bn * bo) * i) | |
408 | + | let bq = (bp / (bf / bk)) | |
409 | + | if ((0 > bk)) | |
407 | 410 | then throw(if (aV) | |
408 | 411 | then (((("Can't withdraw negative " + T) + "/") + U) + " amount") | |
409 | 412 | else "Can't withdraw negative AxAi amount") | |
410 | 413 | else { | |
411 | - | let bc = (bb - | |
414 | + | let bc = (bb - bk) | |
412 | 415 | if ((0 > bc)) | |
413 | 416 | then throw(if (aV) | |
414 | 417 | then (((("Not enough Asset Lp " + T) + "/") + U) + " balance") | |
415 | 418 | else "Not enough AxAi balance") | |
416 | 419 | else [IntegerEntry(if (aV) | |
417 | 420 | then ((("STAKE_LP_" + ba) + "_") + I(T, U)) | |
418 | 421 | else ba, bc), IntegerEntry(if (aV) | |
419 | 422 | then ("Total_Tokens_LP_Locked_" + I(T, U)) | |
420 | - | else "Total_Tokens_Locked:", bg), ScriptTransfer(r.caller, | |
423 | + | else "Total_Tokens_Locked:", bg), ScriptTransfer(r.caller, bk, if (aV) | |
421 | 424 | then fromBase58String(getStringValue(this, (b + I(T, U)))) | |
422 | - | else aY), ScriptTransfer(r.caller, | |
425 | + | else aY), ScriptTransfer(r.caller, bq, aY)] | |
423 | 426 | } | |
424 | 427 | } | |
425 | 428 | else throw("liquidity is currently under maintenance.") | |
426 | 429 | else throw("dApp is currently under maintenance.") | |
427 | 430 | } | |
428 | 431 | ||
429 | 432 | ||
430 | 433 | ||
431 | 434 | @Callable(r) | |
432 | 435 | func addLiquidity (T,U) = { | |
433 | 436 | let aW = getBooleanValue(this, u) | |
434 | - | let | |
437 | + | let br = getBooleanValue(this, v) | |
435 | 438 | let aa = getBooleanValue(this, G) | |
436 | 439 | let M = L(I(T, U)) | |
437 | 440 | let J = r.payments[0].assetId | |
438 | 441 | let K = r.payments[1].assetId | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
442 | + | let bs = fromBase58String(getStringValue(this, A)) | |
443 | + | let bt = fromBase58String(getStringValue(this, C)) | |
444 | + | let bu = fromBase58String(getStringValue(this, B)) | |
445 | + | let bv = fromBase58String(getStringValue(this, D)) | |
446 | + | let bw = fromBase58String(getStringValue(this, E)) | |
444 | 447 | let aY = fromBase58String(getStringValue(this, a)) | |
445 | 448 | let aZ = getStringValue(this, (b + I(T, U))) | |
446 | - | let | |
449 | + | let bx = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
447 | 450 | then r.payments[0].amount | |
448 | 451 | else ab(((I(T, U) + "_") + T), false) | |
449 | - | let | |
452 | + | let by = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
450 | 453 | then r.payments[1].amount | |
451 | 454 | else ab(((I(T, U) + "_") + U), false) | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
455 | + | let bz = ab(aZ, true) | |
456 | + | let bA = ((bx + by) / bz) | |
457 | + | let bB = (r.payments[0].amount * (by / bx)) | |
458 | + | let bC = if ((r.payments[1].amount == bB)) | |
456 | 459 | then true | |
457 | 460 | else false | |
458 | 461 | if (aW) | |
459 | - | then if (!( | |
462 | + | then if (!(br)) | |
460 | 463 | then if (if (if (!((J == K))) | |
461 | 464 | then X(J, T, aa) | |
462 | 465 | else false) | |
463 | 466 | then X(K, U, aa) | |
464 | 467 | else false) | |
465 | - | then if (if (if (if (if (if (if (if ((J == br)) | |
466 | - | then true | |
467 | - | else (J == bs)) | |
468 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
468 | 469 | then true | |
469 | 470 | else (J == bt)) | |
470 | 471 | then true | |
471 | 472 | else (J == bu)) | |
472 | 473 | then true | |
474 | + | else (J == bv)) | |
475 | + | then true | |
473 | 476 | else (J == aY)) | |
474 | 477 | then true | |
475 | 478 | else (J == H)) | |
476 | 479 | then true | |
477 | - | else (J == bv)) | |
478 | - | then if (if (if (if (if (if ((K == br)) | |
479 | - | then true | |
480 | - | else (K == bs)) | |
480 | + | else (J == bw)) | |
481 | + | then if (if (if (if (if (if ((K == bs)) | |
481 | 482 | then true | |
482 | 483 | else (K == bt)) | |
483 | 484 | then true | |
484 | 485 | else (K == bu)) | |
485 | 486 | then true | |
487 | + | else (K == bv)) | |
488 | + | then true | |
486 | 489 | else (K == aY)) | |
487 | 490 | then true | |
488 | 491 | else (K == H)) | |
489 | 492 | then true | |
490 | - | else (K == | |
493 | + | else (K == bw) | |
491 | 494 | else false) | |
492 | 495 | then if ((M != false)) | |
493 | - | then if ( | |
496 | + | then if (bC) | |
494 | 497 | then { | |
495 | 498 | let ba = toBase58String(r.caller.bytes) | |
496 | 499 | let bb = N(ba, I(T, U)) | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
500 | + | let bD = P(ba, I(T, U), T) | |
501 | + | let bE = P(ba, I(T, U), U) | |
502 | + | let bF = R(I(T, U), T) | |
503 | + | let bG = R(I(T, U), U) | |
504 | + | let bH = if ((bx == r.payments[0].amount)) | |
502 | 505 | then (1 * i) | |
503 | - | else ((r.payments[0].amount + r.payments[1].amount) / (( | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | [Reissue(fromBase58String(aZ), | |
506 | + | else ((r.payments[0].amount + r.payments[1].amount) / ((bx + by) / bz)) | |
507 | + | let bI = (bD + r.payments[0].amount) | |
508 | + | let bJ = (bE + r.payments[1].amount) | |
509 | + | let bK = (bb + bH) | |
510 | + | let bL = (bF + r.payments[0].amount) | |
511 | + | let bM = (bG + r.payments[1].amount) | |
512 | + | [Reissue(fromBase58String(aZ), bH, true), ScriptTransfer(Address(r.caller.bytes), bH, fromBase58String(aZ)), IntegerEntry(S(T, U, ba), height), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + T), bI), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + U), bJ), IntegerEntry(((I(T, U) + "_") + ba), bK), IntegerEntry(((I(T, U) + "_") + T), bL), IntegerEntry(((I(T, U) + "_") + U), bM), IntegerEntry(T, (p(T) + r.payments[0].amount)), IntegerEntry(U, (p(U) + r.payments[1].amount)), IntegerEntry(aZ, (p(aZ) + bH))] | |
510 | 513 | } | |
511 | - | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * ( | |
514 | + | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * (by / bx)))) + "} Received: ") + toString(r.payments[1].amount)) + " Validate: ") + toString(bC))) | |
512 | 515 | else throw("Invalid Pool Key.") | |
513 | 516 | else throw("Invalid Asset1 or Asset2!") | |
514 | 517 | else throw("Asset1 cannot be equal to Asset2") | |
515 | 518 | else throw("liquidity is currently under maintenance.") | |
516 | 519 | else throw("dApp is currently under maintenance.") | |
517 | 520 | } | |
518 | 521 | ||
519 | 522 | ||
520 | 523 | ||
521 | 524 | @Callable(r) | |
522 | - | func removeLiquidity (T,U, | |
525 | + | func removeLiquidity (T,U,bN) = { | |
523 | 526 | let ba = toBase58String(r.caller.bytes) | |
524 | 527 | let aW = getBooleanValue(this, u) | |
525 | - | let | |
528 | + | let br = getBooleanValue(this, v) | |
526 | 529 | let aa = getBooleanValue(this, G) | |
527 | 530 | let bi = I(T, U) | |
528 | 531 | let M = L(bi) | |
529 | 532 | let J = if ((T == F)) | |
530 | 533 | then if (aa) | |
531 | 534 | then H | |
532 | 535 | else throw("The smart contract does not currently support Waves.") | |
533 | 536 | else fromBase58String(T) | |
534 | 537 | let K = if ((U == F)) | |
535 | 538 | then if (aa) | |
536 | 539 | then H | |
537 | 540 | else throw("The smart contract does not currently support Waves.") | |
538 | 541 | else fromBase58String(U) | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
542 | + | let bs = fromBase58String(getStringValue(this, A)) | |
543 | + | let bt = fromBase58String(getStringValue(this, C)) | |
544 | + | let bu = fromBase58String(getStringValue(this, B)) | |
545 | + | let bv = fromBase58String(getStringValue(this, D)) | |
543 | 546 | let aY = fromBase58String(getStringValue(this, a)) | |
544 | - | let | |
547 | + | let bw = fromBase58String(getStringValue(this, E)) | |
545 | 548 | let aZ = getStringValue(this, (b + I(T, U))) | |
546 | 549 | let bb = N(ba, I(T, U)) | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
550 | + | let bO = V(ba, bi) | |
551 | + | let bP = ab(aZ, true) | |
552 | + | let bx = ab(((I(T, U) + "_") + T), false) | |
553 | + | let by = ab(((I(T, U) + "_") + U), false) | |
551 | 554 | if (aW) | |
552 | - | then if (!( | |
555 | + | then if (!(br)) | |
553 | 556 | then if (!((T == U))) | |
554 | - | then if (if (if (if (if (if (if (if ((J == br)) | |
555 | - | then true | |
556 | - | else (J == bs)) | |
557 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
557 | 558 | then true | |
558 | 559 | else (J == bt)) | |
559 | 560 | then true | |
560 | 561 | else (J == bu)) | |
561 | 562 | then true | |
563 | + | else (J == bv)) | |
564 | + | then true | |
562 | 565 | else (J == aY)) | |
563 | 566 | then true | |
564 | 567 | else (J == H)) | |
565 | 568 | then true | |
566 | - | else (J == bv)) | |
567 | - | then if (if (if (if (if (if ((K == br)) | |
568 | - | then true | |
569 | - | else (K == bs)) | |
569 | + | else (J == bw)) | |
570 | + | then if (if (if (if (if (if ((K == bs)) | |
570 | 571 | then true | |
571 | 572 | else (K == bt)) | |
572 | 573 | then true | |
573 | 574 | else (K == bu)) | |
574 | 575 | then true | |
576 | + | else (K == bv)) | |
577 | + | then true | |
575 | 578 | else (K == aY)) | |
576 | 579 | then true | |
577 | 580 | else (K == H)) | |
578 | 581 | then true | |
579 | - | else (K == | |
582 | + | else (K == bw) | |
580 | 583 | else false) | |
581 | 584 | then if ((M != false)) | |
582 | 585 | then if (!((bb == 0))) | |
583 | - | then if (((bb - | |
584 | - | then if (if (( | |
586 | + | then if (((bb - bO) >= bN)) | |
587 | + | then if (if ((bx > 2)) | |
585 | 588 | then true | |
586 | - | else ( | |
589 | + | else (by > 2)) | |
587 | 590 | then { | |
588 | - | let bP = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bO)) * toBigInt(bw)) / toBigInt(i))) | |
589 | - | let bQ = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bO)) * toBigInt(bx)) / toBigInt(i))) | |
590 | - | let bE = R(I(T, U), T) | |
591 | - | let bF = R(I(T, U), U) | |
592 | - | let bC = P(ba, I(T, U), T) | |
593 | - | let bD = P(ba, I(T, U), U) | |
594 | - | let bH = (bC - bP) | |
591 | + | let bQ = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bP)) * toBigInt(bx)) / toBigInt(i))) | |
592 | + | let bR = toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bP)) * toBigInt(by)) / toBigInt(i))) | |
593 | + | let bF = R(I(T, U), T) | |
594 | + | let bG = R(I(T, U), U) | |
595 | + | let bD = P(ba, I(T, U), T) | |
596 | + | let bE = P(ba, I(T, U), U) | |
595 | 597 | let bI = (bD - bQ) | |
596 | - | let bJ = ( | |
597 | - | let bK = ( | |
598 | + | let bJ = (bE - bR) | |
599 | + | let bK = (bb - bN) | |
598 | 600 | let bL = (bF - bQ) | |
601 | + | let bM = (bG - bR) | |
599 | 602 | if ((r.payments[0].assetId == fromBase58String(aZ))) | |
600 | - | then if (( | |
601 | - | then [Burn(fromBase58String(aZ), | |
602 | - | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString( | |
603 | + | then if ((bN == r.payments[0].amount)) | |
604 | + | then [Burn(fromBase58String(aZ), bN), ScriptTransfer(Address(r.caller.bytes), bQ, J), ScriptTransfer(Address(r.caller.bytes), bR, K), IntegerEntry(S(T, U, ba), height), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + T), bI), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + U), bJ), IntegerEntry(((I(T, U) + "_") + ba), bK), IntegerEntry(((I(T, U) + "_") + T), bL), IntegerEntry(((I(T, U) + "_") + U), bM), IntegerEntry(T, (p(T) - bQ)), IntegerEntry(U, (p(U) - bR)), IntegerEntry(aZ, (p(aZ) - bN))] | |
605 | + | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(bN))) | |
603 | 606 | else throw("Requires an lp asset as payment to remove locked amounts.") | |
604 | 607 | } | |
605 | 608 | else throw("Pool has no liquidity.") | |
606 | - | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString( | |
609 | + | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(bN))) | |
607 | 610 | else throw("You have no locked values in the pool") | |
608 | 611 | else throw("Invalid Pool Key.") | |
609 | 612 | else throw("Invalid Asset1 or Asset2!") | |
610 | 613 | else throw("Asset1 cannot be equal to Asset2") | |
611 | 614 | else throw("liquidity is currently under maintenance.") | |
612 | 615 | else throw("dApp is currently under maintenance.") | |
613 | 616 | } | |
614 | 617 | ||
615 | 618 | ||
616 | 619 | ||
617 | 620 | @Callable(r) | |
618 | 621 | func swap (T,U) = { | |
619 | 622 | let ba = toBase58String(r.caller.bytes) | |
620 | 623 | let aa = getBooleanValue(this, G) | |
621 | 624 | let aW = getBooleanValue(this, u) | |
622 | - | let | |
625 | + | let bS = getBooleanValue(this, w) | |
623 | 626 | let bi = I(T, U) | |
624 | 627 | let M = L(bi) | |
625 | 628 | let J = r.payments[0].assetId | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
629 | + | let bs = fromBase58String(getStringValue(this, A)) | |
630 | + | let bt = fromBase58String(getStringValue(this, C)) | |
631 | + | let bu = fromBase58String(getStringValue(this, B)) | |
632 | + | let bv = fromBase58String(getStringValue(this, D)) | |
630 | 633 | let aY = fromBase58String(getStringValue(this, a)) | |
631 | - | let | |
634 | + | let bw = fromBase58String(getStringValue(this, E)) | |
632 | 635 | let aZ = getStringValue(this, (b + I(T, U))) | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
636 | + | let bT = ab(((I(T, U) + "_") + T), false) | |
637 | + | let bU = ab(((I(T, U) + "_") + U), false) | |
638 | + | let bV = getIntegerValue(this, g) | |
639 | + | let bW = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bU), toBigInt(bT))) | |
640 | + | let bX = toInt(((bW - ((bW / toBigInt(bV)) * toBigInt(100))) / toBigInt(i))) | |
641 | + | let bY = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bT), toBigInt(bU))) | |
642 | + | let bZ = toInt(((bY - ((bY / toBigInt(bV)) * toBigInt(100))) / toBigInt(i))) | |
643 | + | let ca = if (if ((J == unit)) | |
641 | 644 | then (T == F) | |
642 | 645 | else false) | |
643 | - | then | |
646 | + | then bX | |
644 | 647 | else if ((J == fromBase58String(T))) | |
645 | - | then | |
646 | - | else | |
647 | - | let | |
648 | + | then bX | |
649 | + | else bZ | |
650 | + | let cb = if ((J == unit)) | |
648 | 651 | then F | |
649 | 652 | else if ((J == fromBase58String(T))) | |
650 | 653 | then T | |
651 | 654 | else U | |
652 | - | let | |
655 | + | let cc = if ((J == unit)) | |
653 | 656 | then F | |
654 | 657 | else if ((J == fromBase58String(T))) | |
655 | 658 | then U | |
656 | 659 | else T | |
657 | - | let | |
660 | + | let cd = if ((J == unit)) | |
658 | 661 | then H | |
659 | 662 | else if ((J == fromBase58String(T))) | |
660 | 663 | then fromBase58String(U) | |
661 | 664 | else fromBase58String(T) | |
662 | 665 | if (aW) | |
663 | - | then if (!( | |
666 | + | then if (!(bS)) | |
664 | 667 | then if (if (!((T == U))) | |
665 | 668 | then if (X(J, T, aa)) | |
666 | 669 | then true | |
667 | 670 | else X(J, U, aa) | |
668 | 671 | else false) | |
669 | - | then if (if (if (if (if (if (if ((J == br)) | |
670 | - | then true | |
671 | - | else (J == bs)) | |
672 | + | then if (if (if (if (if (if (if ((J == bs)) | |
672 | 673 | then true | |
673 | 674 | else (J == bt)) | |
674 | 675 | then true | |
675 | 676 | else (J == bu)) | |
676 | 677 | then true | |
678 | + | else (J == bv)) | |
679 | + | then true | |
677 | 680 | else (J == aY)) | |
678 | 681 | then true | |
679 | - | else (J == | |
682 | + | else (J == bw)) | |
680 | 683 | then true | |
681 | 684 | else (J == H)) | |
682 | 685 | then if ((M != false)) | |
683 | 686 | then if ((r.payments[1].assetId == aY)) | |
684 | 687 | then if ((r.payments[1].amount == 300000)) | |
685 | - | then if (if (( | |
688 | + | then if (if ((bT > 2)) | |
686 | 689 | then true | |
687 | - | else ( | |
688 | - | then [ScriptTransfer(Address(r.caller.bytes), | |
690 | + | else (bU > 2)) | |
691 | + | then [ScriptTransfer(Address(r.caller.bytes), ca, cd), IntegerEntry(cc, (p(cc) - ca)), IntegerEntry(((I(T, U) + "_") + cc), (R(I(T, U), cc) - ca)), IntegerEntry(((I(T, U) + "_") + cb), (R(I(T, U), cb) + r.payments[0].amount)), IntegerEntry(cb, (p(cb) + r.payments[0].amount)), IntegerEntry(toBase58String(aY), (p(toBase58String(aY)) + r.payments[1].amount))] | |
689 | 692 | else throw("Pool has no liquidity.") | |
690 | 693 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
691 | 694 | else throw("Invalid rate asset") | |
692 | 695 | else throw("Invalid Swap Key.") | |
693 | 696 | else throw("Invalid Asset1 or Asset2!") | |
694 | 697 | else throw("Asset1 cannot be equal to Asset2") | |
695 | 698 | else throw("Swap is currently under maintenance.") | |
696 | 699 | else throw("dApp is currently under maintenance.") | |
697 | 700 | } | |
698 | 701 | ||
699 | 702 | ||
700 | - | @Verifier( | |
701 | - | func | |
702 | - | let q = | |
703 | + | @Verifier(ce) | |
704 | + | func cf () = { | |
705 | + | let q = ce | |
703 | 706 | if ($isInstanceOf(q, "Order")) | |
704 | 707 | then { | |
705 | - | let | |
708 | + | let cg = q | |
706 | 709 | true | |
707 | 710 | } | |
708 | 711 | else if ($isInstanceOf(q, "ExchangeTransaction")) | |
709 | 712 | then { | |
710 | - | let | |
713 | + | let ch = q | |
711 | 714 | true | |
712 | 715 | } | |
713 | 716 | else if ($isInstanceOf(q, "TransferTransaction")) | |
714 | 717 | then { | |
715 | - | let | |
716 | - | ( | |
718 | + | let ci = q | |
719 | + | (ci.recipient == Address(fromBase58String(getStringValue(this, "admin")))) | |
717 | 720 | } | |
718 | - | else sigVerify( | |
721 | + | else sigVerify(ce.bodyBytes, ce.proofs[0], ce.senderPublicKey) | |
719 | 722 | } | |
720 | 723 |
github/deemru/w8io/169f3d6 213.47 ms ◑