Skip to content

Commit

Permalink
Merge pull request #216 from morpho-labs/refactor/create-market
Browse files Browse the repository at this point in the history
refactor: make `createMarket` more straightforward
  • Loading branch information
MathisGD authored Aug 4, 2023
2 parents 66d0bf3 + aef4c0c commit 8b8a493
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Blue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ contract Blue is IBlue {
require(isIrmEnabled[market.irm], Errors.IRM_NOT_ENABLED);
require(isLltvEnabled[market.lltv], Errors.LLTV_NOT_ENABLED);
require(lastUpdate[id] == 0, Errors.MARKET_CREATED);
lastUpdate[id] = block.timestamp;

emit Events.CreateMarket(id, market);

_accrueInterests(market, id);
}

// Supply management.
Expand Down

0 comments on commit 8b8a493

Please sign in to comment.