Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joaobrunoah committed Dec 18, 2024
1 parent 99c3e8a commit f6067c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/pool-gyro/contracts/lib/GyroECLPMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ library GyroECLPMath {
IGyroECLPPool.EclpParams memory params,
IGyroECLPPool.DerivedEclpParams memory derived
) internal pure {
require(derived.tauAlpha.y >= 0, DerivedTauAlphaYWrong());
require(derived.tauBeta.y >= 0, DerivedTauBetaYWrong());
// If tau is not within the range below, the pool math may be messed.
require(derived.tauAlpha.y > 0, DerivedTauAlphaYWrong());
require(derived.tauBeta.y > 0, DerivedTauBetaYWrong());
require(derived.tauBeta.x > derived.tauAlpha.x, DerivedTauXWrong());

int256 norm2;
Expand Down

0 comments on commit f6067c4

Please sign in to comment.