The function "depositCollateralAndMintDsc" has a reentrancy vulnerability because it makes external calls to the functions "depositCollateral" and "mintDsc" before updating certain state variables.
Reentrancy in function: "redeemCollateralForDsc"(address,uint256,uint256) (src/DSCEngine.sol#169-175):
The function "redeemCollateralForDsc"
This vulnerability is caused by the function making external calls to the "burnDsc" and "redeemCollateral" functions. After these calls, certain state variables are modified, which creates an opportunity for reentrant manipulation.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.