Skip to content

Commit 65bcd8e

Browse files
authored
Do not recalculate new pool debt already in poolState struct (#662)
1 parent 6517aee commit 65bcd8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/external/PoolCommons.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ library PoolCommons {
100100
poolState_.inflator,
101101
vars.t0Debt2ToCollateral
102102
);
103-
vars.newDebt = Maths.wmul(poolState_.inflator, poolState_.t0Debt);
103+
vars.newDebt = poolState_.debt;
104104
vars.newDebtCol = Maths.wmul(poolState_.inflator, vars.t0Debt2ToCollateral);
105105
vars.newLupt0Debt = Maths.wmul(lup_, poolState_.t0Debt);
106106

0 commit comments

Comments
 (0)