Blockwell

CPAY Token

ERC20

This contract is an ERC20 token.

Name CPAY Token
Symbol CPAY
Decimals 0
Total Supply 90,414,745 CPAY

About link description

Cryptopay (CPAY) is a cryptocurrency and operates on the Ethereum platform. Cryptopay has a current supply of 90,414,745 with 68,380,685 in circulation. The last known price of Cryptopay is 0.08546129 USD and is down -0.66 over the last 24 hours. It is currently trading on 1 active market(s) with $1.28 traded over the last 24 hours. More information can be found at https://cryptopay.me/.

Stats

Public Functions 19
Event Types 9
Code Size 6,880 bytes

Library Use

Uses SafeMath for uint256.

Events (9) keyboard_arrow_up

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Burn Event

Parameters help
burner
address help
value
uint help

Mint Event

Parameters help
to
address help
amount
uint256 help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

Pause Event

Parameters help

PaymentForTest Event

Parameters help
to
address help
amount
uint256 help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Unpause Event

Parameters help

WithdrawPaymentForTest Event

Parameters help
to
address help
amount
uint256 help

name Variable

string help

symbol Variable

string help

totalSupply Variable

uint256 help

decimals Variable

uint8 help

owner Variable

address help

totalPayments Variable

uint256 help

paused Variable

bool help

payments Variable

mapping(address => uint256) help

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

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

reclaimAmount Variable

uint256 help
Internal Variable

Functions Expand All Collapse All

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help constant
Source Code
function totalSupply() constant returns (uint256 total) {
  return totalSupply;
}

Parameters help

Name Type
_who
address help

Properties

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

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Requirements help

Source Code
function transfer(address _to, uint256 _value)
  whenNotPaused
  returns (bool success)
{
  require(_to != address(0));

  balances[msg.sender] = balances[msg.sender].sub(_value);
  balances[_to] = balances[_to].add(_value);
  Transfer(msg.sender, _to, _value);
  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Requirements help

Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) whenNotPaused returns (bool success) {
  require(_to != address(0));

  var _allowance = allowed[_from][msg.sender];

  balances[_from] = balances[_from].sub(_value);
  balances[_to] = balances[_to].add(_value);
  allowed[_from][msg.sender] = _allowance.sub(_value);
  Transfer(_from, _to, _value);
  return true;
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Requirements help

One or more of the following:
Source Code
function approve(address _spender, uint256 _value)
  whenNotPaused
  returns (bool success)
{
  require((_value == 0) || (allowed[msg.sender][_spender] == 0));

  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];
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  whenNotPaused
  returns (bool success)
{
  allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(
    _addedValue
  );
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  whenNotPaused
  returns (bool success)
{
  uint256 oldValue = allowed[msg.sender][_spender];
  if (_subtractedValue > oldValue) {
    allowed[msg.sender][_spender] = 0;
  } else {
    allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
  }
  Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function burn(uint256 _value) returns (bool success) {
  require(_value > 0);

  address burner = msg.sender;
  balances[burner] = balances[burner].sub(_value);
  totalSupply = totalSupply.sub(_value);
  Burn(burner, _value);
  return true;
}

mint keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function mint(address _to, uint256 _amount) onlyOwner returns (bool success) {
  totalSupply = totalSupply.add(_amount);
  balances[_to] = balances[_to].add(_amount);
  Mint(_to, _amount);
  Transfer(0x0, _to, _amount);
  return true;
}

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function() payable {}

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

destroy keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function destroy() onlyOwner {
  selfdestruct(owner);
}

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

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

reclaimToken keyboard_arrow_up

Parameters help

Name Type
token
ERC20Interface help

Properties

Visibility help public
Mutability help transaction
Source Code
function reclaimToken(ERC20Interface token) external onlyOwner {
  reclaimAmount = token.balanceOf(this);
  token.transfer(owner, reclaimAmount);
  reclaimAmount = 0;
}

asyncSend keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function asyncSend(address _to, uint256 _amount) onlyOwner {
  payments[_to] = payments[_to].add(_amount);
  totalPayments = totalPayments.add(_amount);
  PaymentForTest(_to, _amount);
}

withdrawPayments keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function withdrawPayments() {
  address payee = msg.sender;
  uint256 payment = payments[payee];

  require(payment != 0);
  require(this.balance >= payment);

  totalPayments = totalPayments.sub(payment);
  payments[payee] = 0;

  payee.transfer(payment);
  WithdrawPaymentForTest(msg.sender, payment);
}

withdrawToAdress keyboard_arrow_up

Parameters help

Name Type
_to
address help
_amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function withdrawToAdress(address _to, uint256 _amount) onlyOwner {
  require(_to != address(0));
  require(this.balance >= _amount);
  _to.transfer(_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.