Description:
"The liquidate_collateral function in central_control contract is querying its own balance instead of the balance for stable_pool contract. Some unexpected situations could happen:
Trying to repay with an erroneous amount of stable coins
Collateral liquidation fails and the operation is reverted"
Code Location:
krp-cdp-contracts/contracts/central_control/src/contract.rs#L257
Description: "The
liquidate_collateral
function in central_control contract is querying its own balance instead of the balance for stable_pool contract. Some unexpected situations could happen: