diff --git a/contracts/contracts/Utils.sol b/contracts/contracts/Utils.sol index 7d91171e77..c1764bce51 100644 --- a/contracts/contracts/Utils.sol +++ b/contracts/contracts/Utils.sol @@ -16,6 +16,11 @@ library Utils { return a < b ? a : b; } + /// @notice Returns lesser of two values + function minU128(uint128 a, uint128 b) internal pure returns (uint128) { + return a < b ? a : b; + } + /// @notice Recovers signer's address from ethereum signature for given message /// @param _signature 65 bytes concatenated. R (32) + S (32) + V (1) /// @param _messageHash signed message hash.