Skip to content

Commit

Permalink
removed quadratic coeff
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaniza committed Oct 10, 2024
1 parent 316dcf7 commit 9b6f316
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/escrow/increasing/LinearIncreasingEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ contract LinearIncreasingEscrow is
CURVE COEFFICIENTS
//////////////////////////////////////////////////////////////*/

/// @return The coefficient for the quadratic term of the quadratic curve, for the given amount
function _getQuadraticCoeff(uint256 amount) internal pure returns (int256) {
return (SignedFixedPointMath.toFP(amount.toInt256()).mul(SHARED_QUADRATIC_COEFFICIENT));
}

/// @return The coefficient for the linear term of the quadratic curve, for the given amount
function _getLinearCoeff(uint256 amount) internal pure returns (int256) {
return (SignedFixedPointMath.toFP(amount.toInt256())).mul(SHARED_LINEAR_COEFFICIENT);
Expand Down Expand Up @@ -552,7 +547,7 @@ contract LinearIncreasingEscrow is
// User is reducing, not exiting
if (_newPoint.bias > 0) {
// Add the new user's bias back to the global bias
_latestPoint.coefficients[0] += _newPoint.bias;
_latestPoint.coefficients[0] += int256(_newPoint.bias);
}

// the immediate reduction is slope requires removing the old and adding the new
Expand Down

0 comments on commit 9b6f316

Please sign in to comment.