diff --git a/src/DSCEngine.sol b/src/DSCEngine.sol index 7f1c15d..38edf4d 100644 --- a/src/DSCEngine.sol +++ b/src/DSCEngine.sol @@ -145,6 +145,9 @@ contract DSCEngine is ReentrancyGuard { uint256 amountDscToMint ) external + isAllowedToken(tokenCollateralAddress) + moreThanZero(amountCollateral) + moreThanZero(amountDscToMint) { depositCollateral(tokenCollateralAddress, amountCollateral); mintDsc(amountDscToMint);