Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal committed Apr 22, 2024
1 parent cec0f09 commit 39be966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/rewards/GenericMultiRewardsVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ contract GenericMultiRewardsVault is ERC4626, Ownable {
super._withdraw(caller, receiver, owner_, assets, shares);
}

error NotAllowed();

function _update(address from, address to, uint256 amount) internal virtual override {
if (from != address(0) && to != address(0)) {
revert NotAllowed();
revert Errors.NotAllowed();
}

super._update(from, to, amount);
Expand Down
3 changes: 3 additions & 0 deletions contracts/rewards/definitions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ abstract contract Errors {
error RewardsAreDynamic(IERC20 rewardToken);
error ZeroRewardsSpeed();
error InvalidConfig();

// Transfers
error NotAllowed();
}

abstract contract Events {
Expand Down

0 comments on commit 39be966

Please sign in to comment.