-
Notifications
You must be signed in to change notification settings - Fork 45
/
WadRayMathWrapper.sol
50 lines (38 loc) · 1.24 KB
/
WadRayMathWrapper.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import {WadRayMath} from '../../protocol/libraries/math/WadRayMath.sol';
contract WadRayMathWrapper {
function WAD() public pure returns (uint256) {
return WadRayMath.WAD;
}
function RAY() public pure returns (uint256) {
return WadRayMath.RAY;
}
function HALF_RAY() public pure returns (uint256) {
return WadRayMath.HALF_RAY;
}
function HALF_WAD() public pure returns (uint256) {
return WadRayMath.HALF_WAD;
}
function WAD_RAY_RATIO() public pure returns (uint256) {
return WadRayMath.WAD_RAY_RATIO;
}
function wadMul(uint256 a, uint256 b) public pure returns (uint256) {
return WadRayMath.wadMul(a, b);
}
function wadDiv(uint256 a, uint256 b) public pure returns (uint256) {
return WadRayMath.wadDiv(a, b);
}
function rayMul(uint256 a, uint256 b) public pure returns (uint256) {
return WadRayMath.rayMul(a, b);
}
function rayDiv(uint256 a, uint256 b) public pure returns (uint256) {
return WadRayMath.rayDiv(a, b);
}
function rayToWad(uint256 a) public pure returns (uint256) {
return WadRayMath.rayToWad(a);
}
function wadToRay(uint256 a) public pure returns (uint256) {
return WadRayMath.wadToRay(a);
}
}