Skip to content

Commit

Permalink
fix: Adjusted logic for canRelease()
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJurassicPunk committed Mar 23, 2022
1 parent 4e166b1 commit ed9f8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/OperatorControllerForRewardsV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ contract OperatorControllerForRewardsV2 is Ownable {
function canRelease() public view returns (bool) {
uint256 endBlock = feeSharingSystem.periodEndBlock();
uint256 lastUpdateBlock = feeSharingSystem.lastUpdateBlock();
return lastUpdateBlock > endBlock && block.number > endBlock;
return lastUpdateBlock == endBlock;
}
}

0 comments on commit ed9f8eb

Please sign in to comment.