diff --git a/.solhint.json b/.solhint.json index ce53bc8..8055e4d 100644 --- a/.solhint.json +++ b/.solhint.json @@ -2,21 +2,23 @@ "extends": "solhint:all", "rules": { "foundry-test-functions": ["off"], + "not-rely-on-time": ["off"], - "compiler-version": ["error","^0.8.0"], - "state-visibility": "error", - "no-empty-blocks": "error", + "avoid-tx-origin": "error", "check-send-result": "error", - "private-vars-leading-underscore": "error", "code-complexity": "error", - "visibility-modifier-order": "error", + "compiler-version": ["error","^0.8.0"], + "contract-name-camelcase": "error", "func-name-mixedcase": "error", "function-max-lines": "error", - "no-unused-vars": "error", + "gas-strict-inequalities": "error", + "max-states-count": "error", + "no-empty-blocks": "error", "no-inline-assembly": "error", - "contract-name-camelcase": "error", + "no-unused-vars": "error", "ordering": "error", - "avoid-tx-origin": "error", - "max-states-count": "error" + "private-vars-leading-underscore": "error", + "state-visibility": "error", + "visibility-modifier-order": "error" } } diff --git a/contracts/DateTimeUtils.sol b/contracts/DateTimeUtils.sol index ee41e76..cebae5e 100644 --- a/contracts/DateTimeUtils.sol +++ b/contracts/DateTimeUtils.sol @@ -44,7 +44,6 @@ using { } for Months global; using { _timestampLess as <, - _timestampLessOrEqual as <=, _timestampEqual as ==, _timestampNotEqual as != } for Timestamp global; @@ -68,10 +67,6 @@ function _monthsEqual(Months a, Months b) pure returns (bool equal) { return (Months.unwrap(a) == Months.unwrap(b)); } -function _timestampLessOrEqual(Timestamp left, Timestamp right) pure returns (bool result) { - return Timestamp.unwrap(left) <= Timestamp.unwrap(right); -} - function _timestampLess(Timestamp left, Timestamp right) pure returns (bool result) { return Timestamp.unwrap(left) < Timestamp.unwrap(right); }