Blockwell

YGGDRASH

ERC20

This contract is an ERC20 token.

Name YGGDRASH
Symbol YEED
Decimals 18
Total Supply 10,000,000,000 YEED

About link

YGGDRASH (YEED) is a cryptocurrency token and operates on the Ethereum platform. YGGDRASH has a current supply of 10,000,000,000 with 5,447,415,594.35 in circulation. The last known price of YGGDRASH is $0.000193 USD and is up 1.87% over the last 24 hours. It is currently trading on 6 active market(s) with $41,724.23 traded over the last 24 hours. More information can be found at https://yggdrash.io.

Stats

Public Functions 14
Event Types 8
Code Size 10,865 bytes

Library Use

Uses SafeMath for uint256.

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

EmergencyTransfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Locked Event

Parameters help
lockAddress
address help
status
bool help

SetAdminMode Event

Parameters help
adminMode
bool help

SetTokenTransfer Event

Parameters help
transfer
bool help

TokenBurned Event

Parameters help
burnAddress
address help
amountOfTokens
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Unlocked Event

Parameters help
unlockedAddress
address help
status
bool help

Functions Expand All Collapse All

setLockAddress keyboard_arrow_up

Parameters help

Name Type
target
address help
status
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
    function setLockAddress(address target, bool status)
    external
    isOwner
    {
        require(owner != target);
        lockAddress[target] = status;
        emit Locked(target, status);
    }

setUnlockAddress keyboard_arrow_up

Parameters help

Name Type
target
address help
status
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
    function setUnlockAddress(address target, bool status)
    external
    isOwner
    {
        unlockAddress[target] = status;
        emit Unlocked(target, status);
    }

totalSupply keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

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

balanceOf keyboard_arrow_up

Parameters help

Name Type
who
address help

Properties

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

transfer keyboard_arrow_up

Parameters help

Name Type
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
    function transfer(address to, uint256 value)
    public
    isTokenTransfer
    checkLock
    returns (bool) {
        require(to != address(0));
        require(_balances[msg.sender] >= value);

        _balances[msg.sender] = _balances[msg.sender].sub(value);
        _balances[to] = _balances[to].add(value);
        emit Transfer(msg.sender, to, value);
        return true;
    }

allowance keyboard_arrow_up

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 _approvals[owner][spender];
    }

transferFrom keyboard_arrow_up

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)
    public
    isTokenTransfer
    checkLock
    returns (bool success) {
        require(!lockAddress[from]);
        require(_balances[from] >= value);
        require(_approvals[from][msg.sender] >= value);
        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(value);
        _approvals[from][msg.sender] = _approvals[from][msg.sender].sub(value);
        emit Transfer(from, to, value);
        return true;
    }

approve keyboard_arrow_up

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
    checkLock
    returns (bool) {
        _approvals[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

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
    checkLock
    returns (bool) {
        _approvals[msg.sender][_spender] = (
        _approvals[msg.sender][_spender].add(_addedValue));
        emit Approval(msg.sender, _spender, _approvals[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
    checkLock
    returns (bool) {
        uint256 oldValue = _approvals[msg.sender][_spender];
        if (_subtractedValue > oldValue) {
            _approvals[msg.sender][_spender] = 0;
        } else {
            _approvals[msg.sender][_spender] = oldValue.sub(_subtractedValue);
        }
        emit Approval(msg.sender, _spender, _approvals[msg.sender][_spender]);
        return true;
    }

burnTokens keyboard_arrow_up

Parameters help

Name Type
tokensAmount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
    function burnTokens(uint256 tokensAmount)
    public
    isAdminMode
    isOwner
    {
        require(_balances[msg.sender] >= tokensAmount);

        _balances[msg.sender] = _balances[msg.sender].sub(tokensAmount);
        _supply = _supply.sub(tokensAmount);
        emit TokenBurned(msg.sender, tokensAmount);
    }

setTokenTransfer keyboard_arrow_up

Parameters help

Name Type
_tokenTransfer
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
    function setTokenTransfer(bool _tokenTransfer)
    external
    isAdminMode
    isOwner
    {
        tokenTransfer = _tokenTransfer;
        emit SetTokenTransfer(tokenTransfer);
    }

setAdminMode keyboard_arrow_up

Parameters help

Name Type
_adminMode
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
    function setAdminMode(bool _adminMode)
    public
    isOwner
    {
        adminMode = _adminMode;
        emit SetAdminMode(adminMode);
    }

emergencyTransfer keyboard_arrow_up

Parameters help

Name Type
emergencyAddress
address help

Properties

Visibility help public
Mutability help transaction
Source Code
    function emergencyTransfer(address emergencyAddress)
    public
    isAdminMode
    isOwner
    returns (bool success) {
        require(emergencyAddress != owner);
        _balances[owner] = _balances[owner].add(_balances[emergencyAddress]);

        emit Transfer(emergencyAddress, owner, _balances[emergencyAddress]);
        emit EmergencyTransfer(emergencyAddress, owner, _balances[emergencyAddress]);
    
        _balances[emergencyAddress] = 0;
        return true;
    }