Skip to content

Commit

Permalink
added isAllowedToken modifier to liquidate() (#102)
Browse files Browse the repository at this point in the history
I think it is a good practice to check the Collateral token address
  • Loading branch information
AAYUSH-GUPTA-coder authored Nov 22, 2024
1 parent b53ed74 commit cb7f7e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DSCEngine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ contract DSCEngine is ReentrancyGuard {
uint256 debtToCover
)
external
isAllowedToken(collateral)
moreThanZero(debtToCover)
nonReentrant
{
Expand Down

0 comments on commit cb7f7e0

Please sign in to comment.