Skip to content

Commit

Permalink
compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Aug 20, 2024
1 parent ab9b76b commit 993fff1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions test/DelegateStaking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ contract Stake is DelegateStakingTest {
// alice withdraw rewards (bob stake) even when there is no rewards distributed
vm.startPrank(alice);
delegate.unstake(aliceStakeId, 0);
uint256 aliceRewards = delegate.claimRewards(0);
delegate.claimRewards(0);
vm.stopPrank();

uint256 aliceBalanceAfterAttack = govToken.balanceOf(alice);
Expand All @@ -733,10 +733,6 @@ contract Stake is DelegateStakingTest {
"Alice receive more than expend for the attack"
);

uint256 maxBobWithdrawable = delegate.convertToAssets(
delegate.balanceOf(bob)
);

vm.startPrank(bob);
delegate.unstake(bobStakeId, bobAmount - 1e5);

Expand Down
5 changes: 0 additions & 5 deletions test/Staking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,6 @@ contract Stake is StakingTest {
vm.prank(bob);
staking.unstake(bob, bobStakeId, bobStake - MIN_STAKE - 1e17);

uint256 bobBalance = govToken.balanceOf(bob);

assertApproxEqRel(
govToken.balanceOf(bob),
bobStake - MIN_STAKE,
Expand Down Expand Up @@ -830,7 +828,6 @@ contract ClaimRewards is StakingTest {

_stake(_depositor, _amount);

uint256 timestampBefore = vm.getBlockTimestamp();
uint256 sharesBefore = staking.balanceOf(_depositor);

_jumpAhead(_jump);
Expand Down Expand Up @@ -982,8 +979,6 @@ contract ClaimRewards is StakingTest {

_stake(_depositor, _amount);

uint256 timestampBefore = vm.getBlockTimestamp();

_jumpAhead(_jump);

// first 1000 shares was the dead shares so must decrease from the expected rewards
Expand Down

0 comments on commit 993fff1

Please sign in to comment.