Skip to content

Commit

Permalink
fix test function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ogtownsend committed Jan 22, 2025
1 parent b3b3a86 commit 8ee0986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/services/ocr2/plugins/ccip/internal/ccipcalc/calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func DeviatesOnCurve(xNew, xOld, noDeviationLowerBound *big.Int, ppb int64) bool
return Deviates(xNew, xOld, curveThresholdPPB)
}

// calculateCurveThresholdPPB calculates the deviation threshold percentage with xNew using the formula:
// y = (10e11) / (xNew^0.665).
// calculateCurveThresholdPPB calculates the deviation threshold percentage with x using the formula:
// y = (10e11) / (x^0.665).
func calculateCurveThresholdPPB(x float64) int64 {
const constantFactor = 10e11
const exponent = 0.665
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func TestDeviates(t *testing.T) {
}
}

func TestDeviatesOnGasCurve(t *testing.T) {
func TestDeviatesOnCurve(t *testing.T) {
type args struct {
xNew *big.Int
xOld *big.Int
Expand Down

0 comments on commit 8ee0986

Please sign in to comment.