Skip to content

Commit

Permalink
fix: zokyo l18
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyonline committed Oct 21, 2024
1 parent c5f0683 commit 2871083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ynEIGEN/RedemptionAssetsVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ contract RedemptionAssetsVault is IRedemptionAssetsVault, Initializable, AccessC
error ZeroAddress();
error InsufficientAssetBalance(address asset, uint256 requestedAmount, uint256 balance);
error ContractPaused();
error ContractUnpaused();
error NotRedeemer(address caller);
error AssetNotSupported();
event Paused();
Expand Down Expand Up @@ -268,7 +269,7 @@ contract RedemptionAssetsVault is IRedemptionAssetsVault, Initializable, AccessC
* @notice Unpauses the contract, allowing certain actions.
*/
function unpause() external onlyRole(UNPAUSER_ROLE) {
if (!paused) revert ContractPaused();
if (!paused) revert ContractUnpaused();

paused = false;

Expand Down

0 comments on commit 2871083

Please sign in to comment.