Skip to content

Commit

Permalink
Get rid of hardcoded timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed May 23, 2024
1 parent f3dc69a commit d9d2e2e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions script/deploy/mainnet/011_OgnOgvMigrationScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,5 @@ contract OgnOgvMigrationScript is BaseMainnetScript {

// Simulate proposal on OGV Governance
govProposal.simulate(Addresses.GOVERNOR_FIVE);

// Go to the start of everything
vm.warp(OGN_EPOCH); // 30th of May
}
}
6 changes: 0 additions & 6 deletions tests/staking/OGNRewardsSourceForkTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ contract OGNRewardsSourceForkTest is Test {
}

function testRewardDistribution() external {
if (block.timestamp < (OGN_EPOCH - 2 days)) {
// If it's post launch date, skip this test
(uint64 lastColect,) = ognRewardsSource.rewardConfig();
assertEq(lastColect, OGN_EPOCH, "last collect not updated (before deploy)");
}

uint256 rewardsBefore = ognRewardsSource.previewRewards();
vm.warp(block.timestamp + 1 days);
assertEq(
Expand Down

0 comments on commit d9d2e2e

Please sign in to comment.