[G-02] Move storage variables into fewer storage slots
bool and address can be packed into slot 0.
diff --git a/contracts/governance/Pausable.sol b/contracts/governance/Pausable.sol
index b1ecbdf..872a8d3 100644
--- a/contracts/governance/Pausable.sol
+++ b/contracts/governance/Pausable.sol
@@ -8,14 +8,12 @@ contract Pausable {
bool internal _partialPaused;
// Paused will pause all major protocol functions
bool internal _paused;
-
+ // Pause guardian is a separate entity from the governor that can pause
+ address public pauseGuardian;
// Time last paused for both pauses
uint256 public lastPausePartialTime;
uint256 public lastPauseTime;
- // Pause guardian is a separate entity from the governor that can pause
- address public pauseGuardian;
-
event PartialPauseChanged(bool isPaused);
event PauseChanged(bool isPaused);
event NewPauseGuardian(address indexed oldPauseGuardian, address indexed pauseGuardian);
[G-03] Use custom errors instead of require() and revert()
require() instance : 77
revert() instance : 1
[G-01] Use local variable instead of storage variable for event emit
[G-02] Move storage variables into fewer storage slots bool and address can be packed into slot 0.
[G-03] Use custom errors instead of require() and revert() require() instance : 77 revert() instance : 1
[G-04] require() strings longer than 32 bytes cost extra gas
[G-05] Use a more recent version of solidity Solidity version used is 0.7.6, can be updated.