Commit 9daf260
fix(pulse): ensure subscription balance is greater than minimum balance after adding funds (#2680)
* feat(pulse): add maximum deposit limit for permanent subscriptions
Co-Authored-By: Tejas Badadare <[email protected]>
* fix: remove unused variable in PulseScheduler.t.sol
Co-Authored-By: Tejas Badadare <[email protected]>
* fix: update deposit limit check to only check incoming deposit amount
Co-Authored-By: Tejas Badadare <[email protected]>
* fix: remove redundant access
* fix: ensure subscription balance is greater than minimum balance after adding funds
Co-Authored-By: Tejas Badadare <[email protected]>
* fix: format code to pass CI
Co-Authored-By: Tejas Badadare <[email protected]>
* test: improve addFunds minimum balance test
Co-Authored-By: Tejas Badadare <[email protected]>
* test: fix unused variable warnings in PulseScheduler tests
Co-Authored-By: Tejas Badadare <[email protected]>
* test: fix unused variable in PulseScheduler test
Co-Authored-By: Tejas Badadare <[email protected]>
* test: remove duplicate test functions
Co-Authored-By: Tejas Badadare <[email protected]>
* ci: fmt
* test: fix testAddFundsEnforcesMinimumBalance
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Tejas Badadare <[email protected]>
Co-authored-by: Tejas Badadare <[email protected]>
Co-authored-by: Tejas Badadare <[email protected]>1 parent 379cdd7 commit 9daf260
File tree
2 files changed
+124
-0
lines changed- target_chains/ethereum/contracts
- contracts/pulse
- forge-test
2 files changed
+124
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
544 | 554 | | |
545 | 555 | | |
546 | 556 | | |
| |||
Lines changed: 114 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
549 | 663 | | |
550 | 664 | | |
551 | 665 | | |
| |||
0 commit comments