Skip to content

Commit

Permalink
Expand ranges.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Ignacio Ubeira committed Dec 19, 2024
1 parent 65b21db commit af51501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/pool-gyro/test/foundry/Gyro2CLPMathRounding.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ struct QuadraticTerms {
contract Gyro2CLPMathRoundingTest is Test {
using ArrayHelpers for *;

uint256 internal constant MIN_DIFF_ALPHA_BETA = 1e14;
uint256 internal constant MIN_DIFF_ALPHA_BETA = 100;

uint256 internal constant MIN_SQRT_ALPHA = 0.8e18;
uint256 internal constant MAX_SQRT_ALPHA = 1.2e18 - MIN_DIFF_ALPHA_BETA;
uint256 internal constant MIN_SQRT_ALPHA = 0.01e18;
uint256 internal constant MAX_SQRT_ALPHA = 10e18 - MIN_DIFF_ALPHA_BETA;
// Make sqrtBeta 0.5% higher than sqrtAlpha
uint256 internal constant MIN_SQRT_BETA = MIN_SQRT_ALPHA;
uint256 internal constant MAX_SQRT_BETA = MAX_SQRT_ALPHA + MIN_DIFF_ALPHA_BETA;
Expand Down

0 comments on commit af51501

Please sign in to comment.