Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions contracts/Undertaker/Undertaker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ contract Undertaker is Ownable2Step {
* @custom:event Emits MarketPaused event.
*/
function pauseMarket(address market) external {
IVToken(market).accrueInterest();

if (!canPauseMarket(market)) {
revert MarketNotEligibleForPause();
}
Expand Down Expand Up @@ -170,6 +172,8 @@ contract Undertaker is Ownable2Step {
* @custom:event Emits MarketUnlisted event.
*/
function unlistMarket(address market) external {
IVToken(market).accrueInterest();

if (!canUnlistMarket(market)) {
revert MarketNotEligibleForUnlisting();
}
Expand Down