Submitted by samuraii77, also found by samuraii77 and serial-coder
A flawed if check using && instead of || in RedemptionFacet::claimRemainingCollateral() leads to a break of one of the core protocol invariants. The total collateral and ercDebt of an asset should always equal the total collateral and ercDebt of all shortRecords combined. However, this will not be the case if the scenario explained below takes place. This results in the protocol holding inaccurate values of their ercDebt and collateral which are extremely important values used for very important calculations across the entire protocol.
Imagine the following scenario:
Add the following POC function to Redemption.t.sol:
Use || instead of &&
Invalid Validation
ditto-eth (DittoETH) confirmed
