From cb7f7e0d184571f09f910624f3dc3e4454403674 Mon Sep 17 00:00:00 2001 From: Aayush Gupta <60979345+AAYUSH-GUPTA-coder@users.noreply.github.com> Date: Fri, 22 Nov 2024 19:40:08 +0530 Subject: [PATCH] added `isAllowedToken` modifier to liquidate() (#102) I think it is a good practice to check the Collateral token address --- src/DSCEngine.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DSCEngine.sol b/src/DSCEngine.sol index 2a7fff2..7f1c15d 100644 --- a/src/DSCEngine.sol +++ b/src/DSCEngine.sol @@ -220,6 +220,7 @@ contract DSCEngine is ReentrancyGuard { uint256 debtToCover ) external + isAllowedToken(collateral) moreThanZero(debtToCover) nonReentrant {