Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 775 Bytes
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol";
contract AerumToken is Ownable, PausableToken {
string public name = "Aerum";
string public symbol = "XRM";
uint8 public decimals = 18;
uint256 public initialSupply = 1000 * 1000 * 1000;
constructor() public {
totalSupply_ = initialSupply * (10 ** uint256(decimals));
balances[owner] = totalSupply_;
}
function approveAndCall(address _spender, uint256 _value, bytes _data) public payable returns (bool) {
require(_spender != address(this));
require(super.approve(_spender, _value));
require(_spender.call(_data));
return true;
}
}