Skip to content

Commit

Permalink
feat: prevent supporting address 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux committed Dec 30, 2024
1 parent 5446bde commit b79578b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/contracts/harvest/OETHHarvesterSimple.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ contract OETHHarvesterSimple is Governable {
external
onlyStrategist
{
require(_strategy != address(0), "Invalid strategy");

supportedStrategies[_strategy] = _isSupported;
emit SupportedStrategyUpdate(_strategy, _isSupported);
}
Expand Down

0 comments on commit b79578b

Please sign in to comment.