KryptoniteDAO / krp-cdp-contracts

Kryptonite stable coin kUSD relevant contracts
0 stars 0 forks source link

Collateral balance of liquidated users does not decrease #32

Closed smithmonnnnnnn closed 10 months ago

smithmonnnnnnn commented 10 months ago

Description: In liquidate_collateral function from central_control contract, when each collateral in the liquidation_amount vector is liquidated, the DecreaseBalance message is not called. As a consequence, the collateral balance of the liquidated user won't decrease and will continue accruing rewards. Code Location: krp-cdp-contracts/contracts/central_control/src/contract.rs#L280-L295