When an asset's LTV changes, the liquidation priority must be reordered to use the more volatile collateral first.
When configureMarginCollateral()
is called, the ltv of an asset can be changed, but this does not change the liquidation priority, which in this case will be ordered incorrectly.
Wrong liquidation priority if asset's ltv changes.
Manual Review
When configureMarginCollateral
is called, the code should remove all assets from the liquidation priority and call configureCollateralLiquidationPriority
again with assets sorted based on loan-to-value.
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.