more than one same collateralType in collateralLiquidationPriority then our final collateralLiquidationPriority will be wrongly collected.
if there are more than one same collateralType in collateralLiquidationPriority then our final collateralLiquidationPriority will be wrongly collected.
https://github.com/Cyfrin/2024-07-zaros/blob/main/src/perpetuals/leaves/GlobalConfiguration.sol#L163
}
wrong calculation of self.collateralLiquidationPriority.
for (uint256 i; i < indexCollateral; i++) {
self.collateralLiquidationPriority.add(newCollateralLiquidationPriority[i]);
}
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.