Blockwell

Aeron

ERC20

This contract is an ERC20 token.

Name Aeron
Symbol ARN
Decimals 8
Total Supply 20,000,000 ARN

About

Stats

Public Functions 7
Event Types 4
Code Size 5,910 bytes

Events (4) keyboard_arrow_up

Burn Event

Parameters help
from
address help
value
uint256 help

Freeze Event

Parameters help
from
address help
value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Unfreeze Event

Parameters help
from
address help
value
uint256 help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

totalSupply Variable

uint256 help

owner Variable

address help

balanceOf Variable

mapping(address => uint256) help

freezeOf Variable

mapping(address => uint256) help

allowance Variable

mapping(address => mapping(address => uint256)) help
Internal Variable

Functions Expand All Collapse All

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transfer(address _to, uint256 _value) {
  if (_to == 0x0) revert(); // Prevent transfer to 0x0 address. Use burn() instead
  if (_value <= 0) revert();
  if (balanceOf[msg.sender] < _value) revert(); // Check if the sender has enough
  if (balanceOf[_to] + _value < balanceOf[_to]) revert(); // Check for overflows
  balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender
  balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value); // Add the same to the recipient
  Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value) returns (bool success) {
  if (_value <= 0) revert();
  allowance[msg.sender][_spender] = _value;
  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) returns (bool success) {
  if (_to == 0x0) revert(); // Prevent transfer to 0x0 address. Use burn() instead
  if (_value <= 0) revert();
  if (balanceOf[_from] < _value) revert(); // Check if the sender has enough
  if (balanceOf[_to] + _value < balanceOf[_to]) revert(); // Check for overflows
  if (_value > allowance[_from][msg.sender]) revert(); // Check allowance
  balanceOf[_from] = SafeMath.safeSub(balanceOf[_from], _value); // Subtract from the sender
  balanceOf[_to] = SafeMath.safeAdd(balanceOf[_to], _value); // Add the same to the recipient
  allowance[_from][msg.sender] = SafeMath.safeSub(
    allowance[_from][msg.sender],
    _value
  );
  Transfer(_from, _to, _value);
  return true;
}

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) returns (bool success) {
  if (balanceOf[msg.sender] < _value) revert(); // Check if the sender has enough
  if (_value <= 0) revert();
  balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender
  totalSupply = SafeMath.safeSub(totalSupply, _value); // Updates totalSupply
  Burn(msg.sender, _value);
  return true;
}

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function freeze(uint256 _value) returns (bool success) {
  if (balanceOf[msg.sender] < _value) revert(); // Check if the sender has enough
  if (_value <= 0) revert();
  balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); // Subtract from the sender
  freezeOf[msg.sender] = SafeMath.safeAdd(freezeOf[msg.sender], _value); // Updates frozen tokens
  Freeze(msg.sender, _value);
  return true;
}

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function unfreeze(uint256 _value) returns (bool success) {
  if (freezeOf[msg.sender] < _value) revert(); // Check if the sender has enough
  if (_value <= 0) revert();
  freezeOf[msg.sender] = SafeMath.safeSub(freezeOf[msg.sender], _value); // Updates frozen tokens
  balanceOf[msg.sender] = SafeMath.safeAdd(balanceOf[msg.sender], _value); // Add to the sender
  Unfreeze(msg.sender, _value);
  return true;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function() {
  revert();
}

Internal Functions Expand All Collapse All

Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.

internal SafeMath.safeMul keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeMul(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a * b;
  assert(a == 0 || c / a == b);
  return c;
}

internal SafeMath.safeDiv keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeDiv(uint256 a, uint256 b) internal returns (uint256) {
  assert(b > 0);
  uint256 c = a / b;
  assert(a == b * c + (a % b));
  return c;
}

internal SafeMath.safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function safeSub(uint256 a, uint256 b) internal returns (uint256) {
  assert(b <= a);
  return a - b;
}

internal SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint256 help
b
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeAdd(uint256 a, uint256 b) internal returns (uint256) {
  uint256 c = a + b;
  assert(c >= a && c >= b);
  return c;
}

internal SafeMath.assert keyboard_arrow_up

Parameters help

Name Type
assertion
bool help

Properties

Visibility help internal
Mutability help transaction
Source Code
function assert(bool assertion) internal {
  if (!assertion) {
    revert();
  }
}