Skip to content

Commit

Permalink
Minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jul 29, 2024
1 parent 053b7e5 commit bf68eea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OptimisticTokenVotingPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ contract OptimisticTokenVotingPlugin is
return _totalVotingPower;
}

/// @notice Determines whether the L2 is currently available
/// @notice Determines whether L2 votes are currently usable for voting
function isL2Available() public view returns (bool) {
// Actively disabled L2 voting?
if (governanceSettings.skipL2) return false;
// Is the L1 bridge paused?
else if (taikoL1.paused()) return false;

uint64 _id = taikoL1.slotB().numBlocks;
Expand Down

0 comments on commit bf68eea

Please sign in to comment.