Blockwell

King DAG

ERC20

This contract is an ERC20 token.

Name King DAG
Symbol KDAG
Decimals 18
Total Supply 1,000,000,000 KDAG

About link description

King DAG (KDAG) is a cryptocurrency and operates on the Ethereum platform. King DAG has a current supply of 1,000,000,000 with 54,251,545 in circulation. The last known price of King DAG is 0.31284234 USD and is down -0.24 over the last 24 hours. It is currently trading on 5 active market(s) with $32,985.04 traded over the last 24 hours. More information can be found at https://kdag.io/.

Stats

Public Functions 13
Event Types 5
Code Size 10,603 bytes

Events (5) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

FrozenFunds Event

Parameters help
target
address help
frozen
bool help

OwnershipTransferred Event

Parameters help
previousOwner
address help
newOwner
address help

SetBlacklist Event

Parameters help
_address
address help
_bool
bool help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Constant

string help
King DAG

symbol Constant

string help
KDAG

decimals Constant

uint8 help
18

INITIAL_SUPPLY Constant

uint256 help
1000000000

owner Variable

address help

frozenAccount Variable

mapping(address => bool) help

blacklist Variable

mapping(address => bool) help

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

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

totalSupply_ Variable

uint256 help
Internal Variable

Functions Expand All Collapse All

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) public onlyOwner {
  require(_newOwner != address(0), "New owner cannot be address(0)");
  emit OwnershipTransferred(owner, _newOwner);
  owner = _newOwner;
}

setBlacklist keyboard_arrow_up

Parameters help

Name Type
_address
address help
_bool
bool help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function setBlacklist(address _address, bool _bool) public onlyOwner {
  require(_address != address(0));

  if (_bool) {
    require(!blacklist[_address], "Already in blacklist");
  } else {
    require(blacklist[_address], "Not in blacklist yet");
  }

  blacklist[_address] = _bool;
  emit SetBlacklist(_address, _bool);
}

Parameters help

This function has no parameters.

Properties

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

Parameters help

Name Type
_owner
address help

Properties

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

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

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

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) public returns (bool) {
  require(!frozenAccount[msg.sender]);
  return super.transfer(_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) public returns (bool) {
  return super.approve(_spender, _value);
}

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
) public returns (bool) {
  require(!frozenAccount[_from]);
  return super.transferFrom(_from, _to, _value);
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  public
  returns (bool)
{
  allowed[msg.sender][_spender] = (
    allowed[msg.sender][_spender].add(_addedValue)
  );

  emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  public
  returns (bool)
{
  uint256 oldValue = allowed[msg.sender][_spender];
  if (_subtractedValue >= oldValue) {
    allowed[msg.sender][_spender] = 0;
  } else {
    allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
  }

  emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

freezeAccount keyboard_arrow_up

Parameters help

Name Type
target
address help
freeze
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
function freezeAccount(address target, bool freeze) public onlyOwner {
  frozenAccount[target] = freeze;
  emit FrozenFunds(target, freeze);
}

increaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
  public
  returns (bool success)
{
  return super.increaseApproval(_spender, _addedValue);
}

decreaseApproval keyboard_arrow_up

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  public
  returns (bool success)
{
  return super.decreaseApproval(_spender, _subtractedValue);
}

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.