From 57240de0d00d783dd7a8fd8324f749dc74bced06 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 17 Jun 2024 16:22:55 -0700 Subject: [PATCH] variable rename --- test/utils/HyperdriveUtils.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/utils/HyperdriveUtils.sol b/test/utils/HyperdriveUtils.sol index 275f4f014..f9cb3260b 100644 --- a/test/utils/HyperdriveUtils.sol +++ b/test/utils/HyperdriveUtils.sol @@ -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 @@ -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); }