KryptoniteDAO / krp-cdp-contracts

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

Loans can be repaid without spending coins #1

Closed smithmonnnnnnn closed 11 months ago

smithmonnnnnnn commented 11 months ago

Description: In the repay_stable_coin function from central_control contract, there is no validation that the info.sender is pool_contract. As a consequence, anyone could call this function to repay the loans without spending coins; Code Location: krp-cdp-contracts/contracts/central_control/src/contract.rs#L612