Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
50,000 ANG PROMO
Holders
3,969
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AngeniumPromoToken
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-09-11 */ pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return a / b; } /** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; } } /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev Allows the current owner to relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */ function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */ function transferOwnership(address _newOwner) public onlyOwner { _transferOwnership(_newOwner); } /** * @dev Transfers control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */ function _transferOwnership(address _newOwner) internal { require(_newOwner != address(0)); emit OwnershipTransferred(owner, _newOwner); owner = _newOwner; } } /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * See https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer(ERC20 token, address to, uint256 value) internal { require(token.transfer(to, value)); } function safeTransferFrom( ERC20 token, address from, address to, uint256 value ) internal { require(token.transferFrom(from, to, value)); } function safeApprove(ERC20 token, address spender, uint256 value) internal { require(token.approve(spender, value)); } } /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 is ERC20Basic { function allowance(address owner, address spender) public view returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Approval( address indexed owner, address indexed spender, uint256 value ); } /** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */ contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, _value); return true; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; } } /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/issues/20 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); emit Transfer(_from, _to, _value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint256 _value) public returns (bool) { // allowed[msg.sender][_spender] = _value; // emit Approval(msg.sender, _spender, _value); _spender; _value; return true; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance( address _owner, address _spender ) public view returns (uint256) { return allowed[_owner][_spender]; } } /** * @title SimpleToken * @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `StandardToken` functions. */ contract AngeniumPromoToken is StandardToken, Ownable { address public mainToken = 0xC5C02655BbD508545B4e32eC88Cef3Aa5e741D87; string public constant name = "Angenium Promo Token"; string public constant symbol = "ANG PROMO"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 50000 * (10 ** uint256(decimals)); constructor() public { totalSupply_ = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; } function multisend(address[] _owners) public onlyOwner { for (uint256 i = 0; i < _owners.length; i++) { transfer(_owners[i], 1000000000000000000); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"mainToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_owners","type":"address[]"}],"name":"multisend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
608060405260048054600160a060020a03191673c5c02655bbd508545b4e32ec88cef3aa5e741d8717905534801561003657600080fd5b5060038054600160a060020a03191633908117909155690a968163f0a57b40000060018190556000918252602082905260409091205561088e8061007b6000396000f3006080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd146101a157806323b872dd146101c85780632ff2e9dc146101f2578063313ce567146102075780633fc15f15146102325780634d2e1b7f1461026357806370a08231146102ba578063715018a6146102db5780638da5cb5b146102f057806395d89b4114610305578063a9059cbb1461031a578063dd62ed3e1461033e578063f2fde38b14610365575b600080fd5b3480156100eb57600080fd5b506100f4610386565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012e578181015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017557600080fd5b5061018d600160a060020a03600435166024356103bd565b604080519115158252519081900360200190f35b3480156101ad57600080fd5b506101b66103c5565b60408051918252519081900360200190f35b3480156101d457600080fd5b5061018d600160a060020a03600435811690602435166044356103cb565b3480156101fe57600080fd5b506101b6610542565b34801561021357600080fd5b5061021c610550565b6040805160ff9092168252519081900360200190f35b34801561023e57600080fd5b50610247610555565b60408051600160a060020a039092168252519081900360200190f35b34801561026f57600080fd5b50604080516020600480358082013583810280860185019096528085526102b8953695939460249493850192918291850190849080828437509497506105649650505050505050565b005b3480156102c657600080fd5b506101b6600160a060020a03600435166105c1565b3480156102e757600080fd5b506102b86105dc565b3480156102fc57600080fd5b5061024761064a565b34801561031157600080fd5b506100f4610659565b34801561032657600080fd5b5061018d600160a060020a0360043516602435610690565b34801561034a57600080fd5b506101b6600160a060020a0360043581169060243516610771565b34801561037157600080fd5b506102b8600160a060020a036004351661079c565b60408051808201909152601481527f416e67656e69756d2050726f6d6f20546f6b656e000000000000000000000000602082015281565b600192915050565b60015490565b6000600160a060020a03831615156103e257600080fd5b600160a060020a03841660009081526020819052604090205482111561040757600080fd5b600160a060020a038416600090815260026020908152604080832033845290915290205482111561043757600080fd5b600160a060020a038416600090815260208190526040902054610460908363ffffffff6107bf16565b600160a060020a038086166000908152602081905260408082209390935590851681522054610495908363ffffffff6107d116565b600160a060020a038085166000908152602081815260408083209490945591871681526002825282812033825290915220546104d7908363ffffffff6107bf16565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b690a968163f0a57b40000081565b601281565b600454600160a060020a031681565b600354600090600160a060020a0316331461057e57600080fd5b5060005b81518110156105bd576105b4828281518110151561059c57fe5b90602001906020020151670de0b6b3a7640000610690565b50600101610582565b5050565b600160a060020a031660009081526020819052604090205490565b600354600160a060020a031633146105f357600080fd5b600354604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26003805473ffffffffffffffffffffffffffffffffffffffff19169055565b600354600160a060020a031681565b60408051808201909152600981527f414e472050524f4d4f0000000000000000000000000000000000000000000000602082015281565b6000600160a060020a03831615156106a757600080fd5b336000908152602081905260409020548211156106c357600080fd5b336000908152602081905260409020546106e3908363ffffffff6107bf16565b3360009081526020819052604080822092909255600160a060020a03851681522054610715908363ffffffff6107d116565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600354600160a060020a031633146107b357600080fd5b6107bc816107e4565b50565b6000828211156107cb57fe5b50900390565b818101828110156107de57fe5b92915050565b600160a060020a03811615156107f957600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820b1b234bd1a6410b7b15e8f463c9e9f6614a84945eb64a34c8333bdfeff87b1620029
Deployed Bytecode
0x6080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd146101a157806323b872dd146101c85780632ff2e9dc146101f2578063313ce567146102075780633fc15f15146102325780634d2e1b7f1461026357806370a08231146102ba578063715018a6146102db5780638da5cb5b146102f057806395d89b4114610305578063a9059cbb1461031a578063dd62ed3e1461033e578063f2fde38b14610365575b600080fd5b3480156100eb57600080fd5b506100f4610386565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012e578181015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017557600080fd5b5061018d600160a060020a03600435166024356103bd565b604080519115158252519081900360200190f35b3480156101ad57600080fd5b506101b66103c5565b60408051918252519081900360200190f35b3480156101d457600080fd5b5061018d600160a060020a03600435811690602435166044356103cb565b3480156101fe57600080fd5b506101b6610542565b34801561021357600080fd5b5061021c610550565b6040805160ff9092168252519081900360200190f35b34801561023e57600080fd5b50610247610555565b60408051600160a060020a039092168252519081900360200190f35b34801561026f57600080fd5b50604080516020600480358082013583810280860185019096528085526102b8953695939460249493850192918291850190849080828437509497506105649650505050505050565b005b3480156102c657600080fd5b506101b6600160a060020a03600435166105c1565b3480156102e757600080fd5b506102b86105dc565b3480156102fc57600080fd5b5061024761064a565b34801561031157600080fd5b506100f4610659565b34801561032657600080fd5b5061018d600160a060020a0360043516602435610690565b34801561034a57600080fd5b506101b6600160a060020a0360043581169060243516610771565b34801561037157600080fd5b506102b8600160a060020a036004351661079c565b60408051808201909152601481527f416e67656e69756d2050726f6d6f20546f6b656e000000000000000000000000602082015281565b600192915050565b60015490565b6000600160a060020a03831615156103e257600080fd5b600160a060020a03841660009081526020819052604090205482111561040757600080fd5b600160a060020a038416600090815260026020908152604080832033845290915290205482111561043757600080fd5b600160a060020a038416600090815260208190526040902054610460908363ffffffff6107bf16565b600160a060020a038086166000908152602081905260408082209390935590851681522054610495908363ffffffff6107d116565b600160a060020a038085166000908152602081815260408083209490945591871681526002825282812033825290915220546104d7908363ffffffff6107bf16565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b690a968163f0a57b40000081565b601281565b600454600160a060020a031681565b600354600090600160a060020a0316331461057e57600080fd5b5060005b81518110156105bd576105b4828281518110151561059c57fe5b90602001906020020151670de0b6b3a7640000610690565b50600101610582565b5050565b600160a060020a031660009081526020819052604090205490565b600354600160a060020a031633146105f357600080fd5b600354604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26003805473ffffffffffffffffffffffffffffffffffffffff19169055565b600354600160a060020a031681565b60408051808201909152600981527f414e472050524f4d4f0000000000000000000000000000000000000000000000602082015281565b6000600160a060020a03831615156106a757600080fd5b336000908152602081905260409020548211156106c357600080fd5b336000908152602081905260409020546106e3908363ffffffff6107bf16565b3360009081526020819052604080822092909255600160a060020a03851681522054610715908363ffffffff6107d116565b600160a060020a038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600354600160a060020a031633146107b357600080fd5b6107bc816107e4565b50565b6000828211156107cb57fe5b50900390565b818101828110156107de57fe5b92915050565b600160a060020a03811615156107f957600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820b1b234bd1a6410b7b15e8f463c9e9f6614a84945eb64a34c8333bdfeff87b1620029
Swarm Source
bzzr://b1b234bd1a6410b7b15e8f463c9e9f6614a84945eb64a34c8333bdfeff87b162
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.