You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
569 B
23 lines
569 B
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/math/SignedMath.sol";
|
|
|
|
contract SignedMathMock {
|
|
function max(int256 a, int256 b) public pure returns (int256) {
|
|
return SignedMath.max(a, b);
|
|
}
|
|
|
|
function min(int256 a, int256 b) public pure returns (int256) {
|
|
return SignedMath.min(a, b);
|
|
}
|
|
|
|
function average(int256 a, int256 b) public pure returns (int256) {
|
|
return SignedMath.average(a, b);
|
|
}
|
|
|
|
function abs(int256 n) public pure returns (uint256) {
|
|
return SignedMath.abs(n);
|
|
}
|
|
}
|
|
|