From bf68eeabcabe8a40f5efe61d96cc727ccec5eb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Mon, 29 Jul 2024 11:03:25 +0200 Subject: [PATCH] Minor edit --- src/OptimisticTokenVotingPlugin.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OptimisticTokenVotingPlugin.sol b/src/OptimisticTokenVotingPlugin.sol index cf3fd18..4cb80bc 100644 --- a/src/OptimisticTokenVotingPlugin.sol +++ b/src/OptimisticTokenVotingPlugin.sol @@ -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;