ERC20
This contract is an ERC20 token.
Name
Spendcoin
Symbol
SPND
Decimals
18
Total Supply
2,000,000,000 SPND
About
Stats
Public Functions
12
Event Types
4
Code Size
9,174 bytes
Library Use
Uses SafeMath for uint.
Events (4) keyboard_arrow_up
State Variables (10) keyboard_arrow_up
Functions
freezeTime keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function freezeTime(uint256 _startTime, uint256 _endTime) public onlyOwner {
isLocked = 1;
lockStartTime = _startTime;
lockEndTime = _endTime;
emit Freezed(lockStartTime, lockEndTime);
}
freeze keyboard_arrow_up
unfreeze keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address to, uint256 tokens) public returns (bool success) {
balances[msg.sender] = balances[msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(msg.sender, to, tokens);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address spender, uint256 tokens)
public
returns (bool success)
{
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(
address from,
address to,
uint256 tokens
) public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
emit Transfer(from, to, tokens);
return true;
}
constructor keyboard_arrow_up
withdraw keyboard_arrow_up
transferAnyERC20Token keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferAnyERC20Token(address tokenAddress, uint256 tokens)
public
onlyOwner
returns (bool success)
{
return ERC20Interface(tokenAddress).transfer(owner, tokens);
}
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.