Skip to content

Commit

Permalink
Some more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeating committed Oct 16, 2024
1 parent 09c4ece commit aa24a01
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/GovernanceStaker.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ contract AlterDelegatee is GovernanceStakerTest {
govStaker.alterDelegatee(_depositId, _newDelegatee);
}

function testFuzz_AlteringDelegateeUpdatesEarningPower(
function testFuzz_UpdatesDepositsEarningPower(
address _depositor,
uint256 _depositAmount,
address _firstDelegatee,
Expand All @@ -1853,7 +1853,7 @@ contract AlterDelegatee is GovernanceStakerTest {
assertEq(_deposit.earningPower, _newEarningPower);
}

function testFuzz_AlteringDelegateeUpdatesTotalEarningPower(
function testFuzz_UpdatesGlobalTotalEarningPower(
address _depositor,
uint256 _depositAmount,
address _firstDelegatee,
Expand All @@ -1877,7 +1877,7 @@ contract AlterDelegatee is GovernanceStakerTest {
assertEq(govStaker.totalEarningPower(), _newEarningPower);
}

function testFuzz_AlteringDelegateeUpdatesDepositorsTotalEarningPower(
function testFuzz_UpdatesDepositorsTotalEarningPower(
address _depositor,
uint256 _depositAmount,
address _firstDelegatee,
Expand Down Expand Up @@ -2281,7 +2281,7 @@ contract AlterBeneficiary is GovernanceStakerTest {
assertEq(_deposit.earningPower, _newEarningPower);
}

function testFuzz_UpdatesDepositsTotalEarningPower(
function testFuzz_UpdatesGlobalTotalEarningPower(
address _depositor,
uint256 _depositAmount,
address _delegatee,
Expand Down Expand Up @@ -5421,7 +5421,6 @@ contract ClaimReward is GovernanceStakerRewardsTest {

// The contract is notified of a reward
_mintTransferAndNotifyReward(_rewardAmount);
// A portion of the duration passes
_jumpAheadByPercentOfRewardDuration(100);

earningPowerCalculator.__setEarningPowerAndIsQualifiedForDelegatee(
Expand Down Expand Up @@ -5454,7 +5453,6 @@ contract ClaimReward is GovernanceStakerRewardsTest {

// The contract is notified of a reward
_mintTransferAndNotifyReward(_rewardAmount);
// A portion of the duration passes
_jumpAheadByPercentOfRewardDuration(100);

earningPowerCalculator.__setEarningPowerAndIsQualifiedForDelegatee(
Expand Down Expand Up @@ -5485,7 +5483,6 @@ contract ClaimReward is GovernanceStakerRewardsTest {

// The contract is notified of a reward
_mintTransferAndNotifyReward(_rewardAmount);
// A portion of the duration passes
_jumpAheadByPercentOfRewardDuration(100);

earningPowerCalculator.__setEarningPowerAndIsQualifiedForDelegatee(
Expand Down

0 comments on commit aa24a01

Please sign in to comment.