Davinci coin
ERC20
This contract is an ERC20 token.
Name
Davinci coin
Symbol
DAC
Decimals
18
Total Supply
8,800,000,000 DAC
About link
Davinci Coin (DAC) is a cryptocurrency and operates on the Ethereum platform. Davinci Coin has a current supply of 8,800,000,000 with 8,478,561,024.7997 in circulation. The last known price of Davinci Coin is 0.00154204 USD and is up 13.50 over the last 24 hours. It is currently trading on 4 active market(s) with $5,077,731.78 traded over the last 24 hours. More information can be found at https://davinci.vision.
Stats
Public Functions
11
Event Types
7
Code Size
4,449 bytes
Events (7) 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 _new) public onlyOwner {
address oldaddr = owner;
owner = _new;
emit TransferOwnership(oldaddr, owner);
}
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value)
public
notStopped
returns (bool success)
{
require(balances[msg.sender] >= _value);
if (blackList[msg.sender] > 0) {
emit RejectedPaymentFromBlacklistedAddr(msg.sender, _to, _value);
return false;
}
if (blackList[_to] > 0) {
emit RejectedPaymentToBlacklistedAddr(msg.sender, _to, _value);
return false;
}
balances[msg.sender] -= _value;
balances[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
}
transferFrom keyboard_arrow_up
Requirements help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public notStopped returns (bool success) {
require(balances[_from] >= _value && allowed[_from][msg.sender] >= _value);
if (blackList[_from] > 0) {
emit RejectedPaymentFromBlacklistedAddr(_from, _to, _value);
return false;
}
if (blackList[_to] > 0) {
emit RejectedPaymentToBlacklistedAddr(_from, _to, _value);
return false;
}
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
balances[_to] += _value;
emit Transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value)
public
notStopped
returns (bool success)
{
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
airdrop keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
notStopped checks for the following:
Source Code
function airdrop(address[] _to, uint256[] _value) public onlyOwner notStopped {
for (uint256 i = 0; i < _to.length; i++) {
if (balances[_to[i]] > 0) {
continue;
}
transfer(_to[i], _value[i]);
}
}
blacklisting keyboard_arrow_up
deleteFromBlacklist keyboard_arrow_up
stop keyboard_arrow_up
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.