ERC20
This contract is an ERC20 token.
Name
RIALTO
Symbol
XRL
Decimals
9
Total Supply
100,000,000 XRL
About
Stats
Public Functions
9
Event Types
2
Code Size
5,870 bytes
State Variables (10) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Requirements help
One or more of the following:
-
UNKNOWN VALUE
must be greater than or equal to
lockPercentage * supply / 100
- OR
expiration
must be less than or equal to
block.timestamp
- OR
owner
must not be equal to
the sender's address
Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
if (balances[msg.sender] < _value) throw; // Check if the sender has enough
if (balances[_to] + _value < balances[_to]) throw; // Check for overflows
if (
msg.sender == owner &&
block.timestamp < expiration &&
(balances[msg.sender] - _value) < (lockPercentage * supply) / 100
) throw; // Locked funds
balances[msg.sender] -= _value; // Subtract from the sender
balances[_to] += _value; // Add the same to the recipient
Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
return true;
}
transferFrom keyboard_arrow_up
Requirements help
One or more of the following:
-
UNKNOWN VALUE
must be greater than or equal to
lockPercentage * supply / 100
- OR
expiration
must be less than or equal to
block.timestamp
- OR
_from
must not be equal to
owner
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) returns (bool success) {
if (balances[_from] < _value) throw; // Check if the sender has enough
if (balances[_to] + _value < balances[_to]) throw; // Check for overflows
if (_value > allowance[_from][msg.sender]) throw; // Check allowance
if (
_from == owner &&
block.timestamp < expiration &&
(balances[_from] - _value) < (lockPercentage * supply) / 100
) throw; //Locked funds
balances[_from] -= _value; // Subtract from the sender
balances[_to] += _value; // Add the same to the recipient
allowance[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
}
allowance keyboard_arrow_up
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value) returns (bool success) {
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
approveAndCall keyboard_arrow_up
Source Code
function approveAndCall(
address _spender,
uint256 _value,
bytes _extraData
) returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
constructor keyboard_arrow_up
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) onlyOwner {
if (!transfer(newOwner, balances[msg.sender])) throw;
owner = newOwner;
}
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.