Skip to content

Commit

Permalink
✅ Adjust test to new StakingRewardsNotifier constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Jul 24, 2024
1 parent 210448c commit 79b12ba
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@ contract StakingRewardsNotifierTest is DefaultStakingV2Setup {

function testCannotDeployWithZeroOwnerAddress() public {
vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector);
new StakingRewardsNotifier(address(0), address(kwenta), address(supplySchedule));
new StakingRewardsNotifier(address(0), address(kwenta), address(usdc), address(supplySchedule));
}

function testCannotDeployWithZeroKwentaAddress() public {
vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector);
new StakingRewardsNotifier(address(this), address(0), address(supplySchedule));
new StakingRewardsNotifier(address(this), address(0), address(usdc), address(supplySchedule));
}

function testCannotDeployWithZeroUsdcAddress() public {
vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector);
new StakingRewardsNotifier(address(this), address(kwenta), address(0), address(supplySchedule));
}

function testCannotDeployWithZeroSupplyScheduleAddress() public {
vm.expectRevert(IStakingRewardsNotifier.ZeroAddress.selector);
new StakingRewardsNotifier(address(this), address(kwenta), address(0));
new StakingRewardsNotifier(address(this), address(kwenta), address(usdc), address(0));
}

function testNotifiableRewardAccumulatorSetStakingV2OnlyOwner() public {
Expand Down

0 comments on commit 79b12ba

Please sign in to comment.