Skip to content

Commit

Permalink
Fixed the Chronicle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jalextowle committed Sep 30, 2024
1 parent e3edf08 commit babf4ec
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ contract StakingUSDSHyperdriveInstanceTest is InstanceTest {
/// @dev A test that ensures that Hyperdrive is set up to claim the staking
/// rewards.
function test__rewards() external {
// If the rewards token is the zero address, this is a points vault, and
// we skip this test.
if (address(stakingUSDS.rewardsToken()) == address(0)) {
return;
}

// Advance time to accrue rewards.
advanceTime(POSITION_DURATION, 0);

Expand Down

0 comments on commit babf4ec

Please sign in to comment.