Skip to content

Commit

Permalink
variable rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Jun 17, 2024
1 parent 61d0be0 commit 57240de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/utils/HyperdriveUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ library HyperdriveUtils {
}

// Calculate the pool's solvency after opening the short.
uint256 tradeFees = (calculateShortCurveFee(
uint256 totalCurveFee = (calculateShortCurveFee(
_shortAmount,
_spotPrice,
_params.curveFee
Expand All @@ -1244,10 +1244,10 @@ library HyperdriveUtils {
_params.curveFee,
_params.governanceLPFee
)).divUp(_params.vaultSharePrice);
if (shareAmount < tradeFees) {
if (shareAmount < totalCurveFee) {
return (0, false);
}
uint256 shareReservesDelta = shareAmount - tradeFees;
uint256 shareReservesDelta = shareAmount - totalCurveFee;
if (_params.shareReserves < shareReservesDelta) {
return (0, false);
}
Expand Down

0 comments on commit 57240de

Please sign in to comment.