Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jun 30, 2024
1 parent 9412d82 commit 852da7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/Staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ contract Staking is ERC20VotesUpgradeable, Ownable2StepUpgradeable {
stakingToken.safeTransferFrom(keyper, address(this), amount);

emit Staked(keyper, amount, sharesToMint, lockPeriod);

return stakeId;
}

/// @notice Unstake SHU
Expand Down
2 changes: 1 addition & 1 deletion test/RewardsDistributor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract RewardsDistributorTest is Test {

contract Constructor is RewardsDistributorTest {
function test_SetUp() public view {
assertEq(address(rewardsDistributor.rewardToken()), address(govToken));
assertEq(rewardsDistributor.rewardToken(), address(govToken));
assertEq(Ownable(address(rewardsDistributor)).owner(), address(this));
}
}
Expand Down
2 changes: 2 additions & 0 deletions test/Staking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ contract Initializer is StakingTest {
);
assertEq(staking.lockPeriod(), LOCK_PERIOD, "Wrong lock period");
assertEq(staking.minStake(), MIN_STAKE, "Wrong min stake");

assertEq(staking.exposed_nextStakeId(), 1);
}

function test_RevertIf_InitializeImplementation() public {
Expand Down

0 comments on commit 852da7d

Please sign in to comment.