Skip to content

Commit

Permalink
Merge pull request #221 from Ithil-protocol/audit-fix-l7
Browse files Browse the repository at this point in the history
fix-l7
  • Loading branch information
lsqrl authored Dec 18, 2023
2 parents 11bfa4a + 60a72bf commit 16b328a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irmodels/AuctionRateModel.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ abstract contract AuctionRateModel is Ownable, BaseRiskModel {
freeLiquidity
);
// Reset new base and latest borrow, force IR stays below resolution
if (newBase + spread >= 1e18) revert InterestRateOverflow();
if (newBase + spread > 1e18) revert InterestRateOverflow();
latestAndBase[loan.token] = (block.timestamp << 128) + newBase;

return (newBase, spread);
Expand Down

0 comments on commit 16b328a

Please sign in to comment.