ERC20
This contract is an ERC20 token.
Name
Presearch
Symbol
PRE
Decimals
18
Total Supply
1,000,000,000 PRE
About
Stats
Public Functions
10
Event Types
3
Code Size
5,776 bytes
Library Use
Uses SafeMath for uint256.
Events (3) keyboard_arrow_up
State Variables (6) keyboard_arrow_up
Functions
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Modifiers help
onlyPayloadSize checks for the following:
tradable checks for the following:
Source Code
function transfer(address _to, uint256 _value)
public
onlyPayloadSize(2 * 32)
tradable
returns (bool success)
{
require(_to != address(0));
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
transferFrom keyboard_arrow_up
Modifiers help
onlyPayloadSize checks for the following:
tradable checks for the following:
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public onlyPayloadSize(2 * 32) tradable returns (bool success) {
require(_from != address(0) && _to != address(0));
uint256 _allowance = allowed[_from][msg.sender];
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = _allowance.sub(_value);
Transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value)
public
returns (bool success)
{
require(_spender != address(0));
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
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;
}
mint keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function mint(uint256 _amount) public onlyOwner {
if (totalSupply.add(_amount) <= maxSupply) {
balances[msg.sender] = balances[msg.sender].add(_amount);
totalSupply = totalSupply.add(_amount);
} else {
revert();
}
}
burn keyboard_arrow_up
setCrowdsaleAddress keyboard_arrow_up
updateUnlockDate keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function updateUnlockDate(uint256 _newDate) public onlyOwner {
require(_newDate <= 1512018000);
unlockDate = _newDate;
}
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.