From e5684a350594ef2d899015f950b3e60a39db5e22 Mon Sep 17 00:00:00 2001 From: prateek105 Date: Thu, 9 Nov 2023 19:05:56 +0530 Subject: [PATCH] Fix incorrect lup is used to calculate new interest rate in lenderKick --- src/base/Pool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/Pool.sol b/src/base/Pool.sol index 0f7cf3504..49c5c3e49 100644 --- a/src/base/Pool.sol +++ b/src/base/Pool.sol @@ -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);