Comparators.sol 448 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.1.0-rc.1) (utils/Comparators.sol)
  3. pragma solidity ^0.8.20;
  4. /**
  5. * @dev Provides a set of functions to compare values.
  6. *
  7. * _Available since v5.1._
  8. */
  9. library Comparators {
  10. function lt(uint256 a, uint256 b) internal pure returns (bool) {
  11. return a < b;
  12. }
  13. function gt(uint256 a, uint256 b) internal pure returns (bool) {
  14. return a > b;
  15. }
  16. }