borrower can set interest rate after closing market .
Impact
loss of funds for some lenders .
Vulnerability Details
borrower can set new interestRateBips after close market , this leads to accrue interest for available assets in market while there aren't enough assets to cover accrued interest so lenders that request withdraw earlier earn additional interest and lenders that request later can't withdraw all of their funds .
Tools Used
Manual Review
Recommended Mitigation Steps
prevent set interestRateBips after market is closed .
Lines of code
https://github.com/code-423n4/2023-10-wildcat/blob/c5df665f0bc2ca5df6f06938d66494b11e7bdada/src/market/WildcatMarketConfig.sol#L149-L159 https://github.com/code-423n4/2023-10-wildcat/blob/c5df665f0bc2ca5df6f06938d66494b11e7bdada/src/WildcatMarketController.sol#L468-L488
Vulnerability details
Summary
borrower can set interest rate after closing market .
Impact
loss of funds for some lenders .
Vulnerability Details
borrower can set new interestRateBips after close market , this leads to accrue interest for available assets in market while there aren't enough assets to cover accrued interest so lenders that request withdraw earlier earn additional interest and lenders that request later can't withdraw all of their funds .
Tools Used
Manual Review
Recommended Mitigation Steps
prevent set interestRateBips after market is closed .
Assessed type
Other