When configureCollateralLiquidationPriority()
is called, it does not ensure that the passed assets are with loan-to-value in ascending order.
Assets in liquidation priority should be ordered by loan-to-value parameter, starting with the smallest. But this is not the case as there is no check for this when adding them.
Wrong asset order will result in the wrong tokens being sent when the position is liquidated.
Manual Review
When configureCollateralLiquidationPriority()
is called, there should be a check to see if the ltv of a collateral from GlobalConfigurationBranch
is less than the next one in the collateralTypes
array, if not first sort them and then configure them.
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.