Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fix: mv check that tokensReceiver is not address(this)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyamospan committed Jan 17, 2024
1 parent ed71715 commit d84b0ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/abstract/ManageableVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ abstract contract ManageableVault is Greenlistable, Pausable, IManageableVault {
) internal onlyInitializing {
require(_mTBILL != address(0), "zero address");
require(_tokensReceiver != address(0), "zero address");
require(_tokensReceiver != address(this), "invalid address");

mTBILL = IMTbill(_mTBILL);
__Greenlistable_init(_ac);
Expand Down

0 comments on commit d84b0ed

Please sign in to comment.