Submitted by 0xpiken, also found by josephxander and 0xNirix
When a borrower creates a market hooked by a fixed-term hook, all lenders are prohibited from withdrawing their assets from the market before the fixed-term time has elapsed.
The borrower can close the market at any time. However, fixedTermEndTime of the market is not updated, preventing lenders from withdrawing their assets if fixedTermEndTime has not yet elapsed.
Copy below codes to WildcatMarket.t.sol and run forge test match-test testcloseMarketBeforeFixedTermExpired:
When a market hooked by a fixed-term hook is closed, fixedTermEndTime should be set to block.timestamp if it has not yet elapsed:
laurenceday (Wildcat) confirmed and commented:
laurenceday (Wildcat) commented:
