Skip to content

Commit

Permalink
Do not recalculate new pool debt already in poolState struct (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy authored Mar 6, 2023
1 parent 6517aee commit 65bcd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/external/PoolCommons.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ library PoolCommons {
poolState_.inflator,
vars.t0Debt2ToCollateral
);
vars.newDebt = Maths.wmul(poolState_.inflator, poolState_.t0Debt);
vars.newDebt = poolState_.debt;
vars.newDebtCol = Maths.wmul(poolState_.inflator, vars.t0Debt2ToCollateral);
vars.newLupt0Debt = Maths.wmul(lup_, poolState_.t0Debt);

Expand Down

0 comments on commit 65bcd8e

Please sign in to comment.