Skip to content

Commit

Permalink
Cleaned comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
alcueca committed Jan 7, 2020
1 parent 3bdc673 commit 1368822
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/drafts/examples/energy/EnergyMarket.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
pragma solidity ^0.5.10;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts/math/Math.sol";
// import "@hq20/contracts/contracts/access/Whitelist.sol";
import "./../../../access/Whitelist.sol";

Expand All @@ -16,7 +14,6 @@ import "./../../../access/Whitelist.sol";
* meters that communicate the production and consumption of energy.
*/
contract EnergyMarket is ERC20, Whitelist {
// using SafeMath for uint256;

event EnergyProduced(address producer, uint256 time);
event EnergyConsumed(address consumer, uint256 time);
Expand Down Expand Up @@ -108,7 +105,7 @@ contract EnergyMarket is ERC20, Whitelist {
}

/**
* @dev Substracts b from a using types safely casting from uint to int.
* @dev Substracts b from a using types safely casting from uint128 to int256.
*/
function safeSub(uint128 a, uint128 b) internal pure returns (int256) {
return int256(a) - int256(b);
Expand Down

0 comments on commit 1368822

Please sign in to comment.