37 lines
1.1 KiB
Solidity
37 lines
1.1 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/math/SignedMathUpgradeable.sol";
|
|
import "../proxy/utils/Initializable.sol";
|
|
|
|
contract SignedMathMockUpgradeable is Initializable {
|
|
function __SignedMathMock_init() internal onlyInitializing {
|
|
}
|
|
|
|
function __SignedMathMock_init_unchained() internal onlyInitializing {
|
|
}
|
|
function max(int256 a, int256 b) public pure returns (int256) {
|
|
return SignedMathUpgradeable.max(a, b);
|
|
}
|
|
|
|
function min(int256 a, int256 b) public pure returns (int256) {
|
|
return SignedMathUpgradeable.min(a, b);
|
|
}
|
|
|
|
function average(int256 a, int256 b) public pure returns (int256) {
|
|
return SignedMathUpgradeable.average(a, b);
|
|
}
|
|
|
|
function abs(int256 n) public pure returns (uint256) {
|
|
return SignedMathUpgradeable.abs(n);
|
|
}
|
|
|
|
/**
|
|
* This empty reserved space is put in place to allow future versions to add new
|
|
* variables without shifting down storage in the inheritance chain.
|
|
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
|
|
*/
|
|
uint256[50] private __gap;
|
|
}
|