contract PrimeLendToken is MintableToken {

  string public constant name = "PrimeLendToken";
  string public constant symbol = "PML";
  uint8 public constant decimals = 18;
  uint256 public constant MAX_TOKEN = 8000000 * (10 ** uint256(decimals));

  // cap minting so that totalSupply <= MAX_TOKEN

  function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
    require(totalSupply.add(_amount) <= MAX_TOKEN);
    return super.mint(_to, _amount);
  }

}
/**
 * @title PrimeLendToken main function
 */
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
  require(totalSupply.add(_amount) <= MAX_TOKEN);
  return super.mint(_to, _amount);
}

// cap minting so that totalSupply <= MAX_TOKEN