Potential Reentrancy Attack: Even though the contract uses a reentrancy guard, it's crucial to ensure that all external calls are at the end of the function (the Checks-Effects-Interactions pattern). In the liquidate
function, the _redeemCollateral
function (which makes an external call) is followed by _burnDsc
which alters the state. This could potentially lead to a reentrancy attack.
chaingpt
Swap the order of _redeemCollateral and _burnDsc on the liquidate function
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.