Skip to content

Commit

Permalink
perf: remove accrue interest from supplyCollateral function
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinEgalite committed Jul 5, 2023
1 parent 9fdc2c0 commit 2dc5593
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Blue.sol
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ contract Blue {
require(lastUpdate[id] != 0, "unknown market");
require(amount > 0, "zero amount");

accrueInterests(id);

collateral[id][msg.sender] += amount;

market.collateralAsset.safeTransferFrom(msg.sender, address(this), amount);
Expand Down

0 comments on commit 2dc5593

Please sign in to comment.