diff --git a/src/libraries/ElasticMath.sol b/src/libraries/ElasticMath.sol index 8a21312..74b5b96 100644 --- a/src/libraries/ElasticMath.sol +++ b/src/libraries/ElasticMath.sol @@ -115,7 +115,7 @@ library ElasticMath { * @return uint256 */ function revamp(uint256 elasticity) internal pure returns (uint256) { - return SafeMath.add(elasticity, SafeMath.pow(10, 18)); + return SafeMath.add(elasticity, 1000000000000000000); } /** diff --git a/src/libraries/SafeMath.sol b/src/libraries/SafeMath.sol index da3c4bc..c07faef 100644 --- a/src/libraries/SafeMath.sol +++ b/src/libraries/SafeMath.sol @@ -72,26 +72,6 @@ library SafeMath { return c; } - /** - * @dev Returns one unsigned integer to the power of another, reverting on - * a multiplication overflow. - * - * Counterpart to Solidity's `**` operator. - */ - function pow(uint256 base, uint256 exponent) internal pure returns (uint256) { - if (exponent == 0) { - return 1; - } else if (exponent == 1) { - return base; - } else if (base == 0 && exponent != 0) { - return 0; - } else { - uint256 z = base; - for (uint256 i = 1; i < exponent; i += 1) z = mul(z, base); - return z; - } - } - /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero.