ERC20
This contract is an ERC20 token.
Name
VIN
Symbol
VIN
Decimals
18
Total Supply
1,000,000,000 VIN
About
Stats
Public Functions
14
Event Types
3
Code Size
10,841 bytes
Library Use
Uses SafeMath for uint.
Constants (7) keyboard_arrow_up
State Variables (12) 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));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
setContactInformation keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setContactInformation(string info) public onlyOwner {
contactInformation = info;
}
transfer keyboard_arrow_up
Modifiers help
isLockTimeEnded checks for the following:
whenActivated checks for the following:
One or more of the following:
-isActivated must be true
Source Code
function transfer(address _to, uint256 _value)
external
isLockTimeEnded(msg.sender)
whenActivated
returns (bool)
{
require(_to != 0x0);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
balanceOf keyboard_arrow_up
approve keyboard_arrow_up
Modifiers help
whenActivated checks for the following:
One or more of the following:
-isActivated must be true
Source Code
function approve(address _spender, uint256 _value)
external
whenActivated
returns (bool)
{
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Modifiers help
isLockTimeEnded checks for the following:
whenActivated checks for the following:
One or more of the following:
-isActivated must be true
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) external isLockTimeEnded(_from) whenActivated returns (bool) {
require(_to != 0x0);
uint256 _allowance = allowed[_from][msg.sender];
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
// _allowance.sub(_value) will throw if _value > _allowance
allowed[_from][msg.sender] = _allowance.sub(_value);
Transfer(_from, _to, _value);
return true;
}
increaseApproval keyboard_arrow_up
Modifiers help
whenActivated checks for the following:
One or more of the following:
-isActivated must be true
Source Code
function increaseApproval(address _spender, uint256 _addedValue)
external
whenActivated
returns (bool)
{
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(
_addedValue
);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
decreaseApproval keyboard_arrow_up
Modifiers help
whenActivated checks for the following:
One or more of the following:
-isActivated must be true
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
external
whenActivated
returns (bool)
{
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;
}
activate keyboard_arrow_up
editWhitelist keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function editWhitelist(address _address, bool isWhitelisted)
external
onlyOwner
returns (bool)
{
whitelistedBeforeActivation[_address] = isWhitelisted;
return true;
}
addToTimeLockedList keyboard_arrow_up
Modifiers help
onlySaleConract checks for the following:
Source Code
function addToTimeLockedList(address addr)
external
onlySaleConract
returns (bool)
{
require(addr != 0x0);
isPresaleBuyer[addr] = true;
return true;
}
setSaleAddress 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.