From 375a77d1f35f7367d983a7f6afbe964bb2e98340 Mon Sep 17 00:00:00 2001 From: makcandrov Date: Thu, 3 Aug 2023 02:05:17 -0700 Subject: [PATCH] refactor: make `createMarket` more straightforward --- src/Blue.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blue.sol b/src/Blue.sol index 451df502d..0bc8692a3 100644 --- a/src/Blue.sol +++ b/src/Blue.sol @@ -122,7 +122,7 @@ contract Blue is IBlue { require(isLltvEnabled[market.lltv], Errors.LLTV_NOT_ENABLED); require(lastUpdate[id] == 0, Errors.MARKET_CREATED); - _accrueInterests(market, id); + lastUpdate[id] = block.timestamp; } // Supply management.