KryptoniteDAO / krp-cdp-contracts

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

Unchecked max loan-to-value ratio #13

Closed smithmonnnnnnn closed 10 months ago

smithmonnnnnnn commented 11 months ago

Description: The whitelist_collateral function in central_control contract does not verify that max_ltv is lower than 1. If it is mistakenly set to a value greater than 1, users will be able to redeem more coins than the value of their deposited collaterals.

Code Location: krp-cdp-contracts/contracts/central_control/src/contract.rs#L842