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
State Variables (6) keyboard_arrow_up
Functions
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
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
Modifiers help
onlyOwner checks for the following:
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);
}
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value) public returns (bool) {
require(!frozenAccount[msg.sender]);
return super.transfer(_to, _value);
}
approve keyboard_arrow_up
Requirements help
One or more of the following:
-
allowed for the sender's address for _spender
must be equal to
0
- OR
_value
must be equal to
0
Source Code
function approve(address _spender, uint256 _value) public returns (bool) {
return super.approve(_spender, _value);
}
transferFrom keyboard_arrow_up
Requirements help
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
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
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
Modifiers help
onlyOwner checks for the following:
Source Code
function freezeAccount(address target, bool freeze) public onlyOwner {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
increaseApproval keyboard_arrow_up
decreaseApproval keyboard_arrow_up
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
public
returns (bool success)
{
return super.decreaseApproval(_spender, _subtractedValue);
}
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.