diff --git a/contracts/Treasury.sol b/contracts/Treasury.sol index da00f31..be209d3 100644 --- a/contracts/Treasury.sol +++ b/contracts/Treasury.sol @@ -111,12 +111,12 @@ contract Treasury is ITreasury, AccessControl, ReentrancyGuard { } // Control functuons - function pauseVault() external nonReentrant { + function pauseTreasury() external nonReentrant { require(hasRole(ADMIN_ROLE, msg.sender), "Not admin"); paused = true; } - function unPauseVault() external nonReentrant { + function unPauseTreasury() external nonReentrant { require(hasRole(ADMIN_ROLE, msg.sender), "Not admin"); paused = false; }