Skip to content

Commit

Permalink
Fix incorrect lup is used to calculate new interest rate in lenderKick
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek105 committed Nov 9, 2023
1 parent 50aa42f commit e5684a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ abstract contract Pool is Clone, ReentrancyGuard, Multicall, IPool {
poolBalances.t0DebtInAuction = poolState.t0DebtInAuction;

// update pool interest rate state
_updateInterestState(poolState, result.lup);
_updateInterestState(poolState, Deposits.getLup(deposits, poolState.debt));

// transfer from kicker to pool the difference to cover bond
if (result.amountToCoverBond != 0) _transferQuoteTokenFrom(msg.sender, result.amountToCoverBond);
Expand Down

0 comments on commit e5684a3

Please sign in to comment.