Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions contracts/src/libraries/LPMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -830,12 +830,7 @@ library LPMath {
return (0, false);
}

// Calculate the net flat trade using the original reserves.
_params.presentValueParams.shareReserves = _params
.originalShareReserves;
_params.presentValueParams.shareAdjustment = _params
.originalShareAdjustment;
_params.presentValueParams.bondReserves = _params.originalBondReserves;
// Calculate the net flat trade.
int256 netFlatTrade = calculateNetFlatTrade(_params.presentValueParams);

// NOTE: Round up since this is the rhs of the final subtraction.
Expand Down