Blockwell

AirSwap Token

ERC20

This contract is an ERC20 token.

Name AirSwap Token
Symbol AST
Decimals 4
Total Supply 500,000,000 AST

About link description

AirSwap (AST) is a cryptocurrency and operates on the Ethereum platform. AirSwap has a current supply of 500,000,000 with 150,000,000 in circulation. The last known price of AirSwap is 0.10894093 USD and is up 1.40 over the last 24 hours. It is currently trading on 19 active market(s) with $1,018,293.04 traded over the last 24 hours. More information can be found at https://www.airswap.io/.

Stats

Public Functions 10
Event Types 6
Code Size 10,658 bytes

Events (6) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

BalanceLocked Event

Parameters help
_owner
address help
_oldLockedAmount
uint256 help
_newLockedAmount
uint256 help
_expiry
uint256 help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Pause Event

Parameters help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Unpause Event

Parameters help

BalanceLock Struct

Members
amount
uint256 help
unlockDate
uint256 help

name Constant

string help
AirSwap Token

symbol Constant

string help
AST

decimals Constant

uint8 help
4

totalSupply Constant

uint256 help
5000000000000

totalSupply Variable

uint256 help

paused Variable

bool help

owner Variable

address help

balances Variable

mapping(address => uint256) help

becomesTransferable Variable

uint256 help
Internal Variable

lockingPeriod Variable

uint256 help
Internal Variable

balanceLocks Variable

mapping(address => BalanceLock) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferOwnership(address newOwner) public onlyOwner {
  require(newOwner != address(0));
  OwnershipTransferred(owner, newOwner);
  owner = newOwner;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function pause() public onlyOwner whenNotPaused {
  paused = true;
  Pause();
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function unpause() public onlyOwner whenPaused {
  paused = false;
  Unpause();
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _owner) constant returns (uint256 balance) {
  return balances[_owner];
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address _to, uint256 _value)
  onlyAfter(becomesTransferable)
  whenNotPaused
  returns (bool success)
{
  require(availableBalance(msg.sender) >= _value);
  return super.transfer(_to, _value);
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyAfterOrOwner checks for the following:

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
)
  onlyAfterOrOwner(becomesTransferable, _from)
  whenNotPaused
  returns (bool success)
{
  require(availableBalance(_from) >= _value);
  return super.transferFrom(_from, _to, _value);
}

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) {
  allowed[msg.sender][_spender] = _value;
  Approval(msg.sender, _spender, _value);
  return true;
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
function allowance(address _owner, address _spender)
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function lockBalance(uint256 _value) {
  // Check if the lock on previously locked tokens is still active.
  if (balanceLocks[msg.sender].unlockDate > now) {
    // Only allow confirming the lock or adding to it.
    require(_value >= balanceLocks[msg.sender].amount);
  }
  // Ensure that no more than the balance can be locked.
  require(balances[msg.sender] >= _value);

  // Lock tokens and notify.
  uint256 _expiry = now + lockingPeriod;
  BalanceLocked(msg.sender, balanceLocks[msg.sender].amount, _value, _expiry);
  balanceLocks[msg.sender] = BalanceLock(_value, _expiry);
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function availableBalance(address _owner) constant returns (uint256) {
  if (balanceLocks[_owner].unlockDate < now) {
    return balances[_owner];
  } else {
    assert(balances[_owner] >= balanceLocks[_owner].amount);
    return balances[_owner] - balanceLocks[_owner].amount;
  }
}

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.