add unit test && fix

This commit is contained in:
owen05
2021-09-20 14:52:23 +08:00
parent cc57ee2c14
commit 013cbf66ca
10 changed files with 491 additions and 189 deletions

View File

@@ -48,7 +48,7 @@ library DecimalMath {
function powFloor(uint256 target, uint256 e) internal pure returns (uint256) {
if (e == 0) {
return 1;
return 10 ** 18;
} else if (e == 1) {
return target;
} else {