Skip to content

Commit

Permalink
add validations in SoulStore constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Nov 3, 2022
1 parent aa22448 commit 67cefe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/SoulStore.sol
Expand Up @@ -53,6 +53,8 @@ contract SoulStore is DexAMM, Ownable {
address _swapRouter,
address _reserveWallet
) DexAMM(_swapRouter, _wrappedNativeToken) {
require(_stableCoin != address(0), "ZERO_ADDRESS");
require(_utilityToken != address(0), "ZERO_ADDRESS");
require(_reserveWallet != address(0), "ZERO_ADDRESS");
require(address(_soulBoundIdentity) != address(0), "ZERO_ADDRESS");

Expand Down

0 comments on commit 67cefe8

Please sign in to comment.