ERC20
This contract is an ERC20 token.
Name
DICE
Symbol
ROL
Decimals
16
Total Supply
7,001,623 ROL
About
link
description
Etheroll (DICE) is a cryptocurrency token and operates on the Ethereum platform. Etheroll has a current supply of 7,001,622.649. The last known price of Etheroll is $0.561659 USD and is up 0.02% over the last 24 hours. It is currently trading on 2 active market(s) with $5,051.81 traded over the last 24 hours. More information can be found at https://etheroll.com/.
Stats
Public Functions
7
Event Types
3
Code Size
7,551 bytes
Events (3) keyboard_arrow_up
Functions
ownerTransferOwnership keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint _value) public
returns (bool success)
{
if(tokensFrozen && msg.sender != priviledgedAddress) return false; /* transfer only by priviledgedAddress during crowdfund or reward phases */
if (balanceOf[msg.sender] < _value) return false; /* check if the sender has enough */
if (balanceOf[_to] + _value < balanceOf[_to]) return false; /* check for overflows */
balanceOf[msg.sender] -= _value; /* subtract from the sender */
balanceOf[_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
Source Code
function transferFrom(address _from, address _to, uint _value) public
returns (bool success)
{
if(tokensFrozen && msg.sender != priviledgedAddress) return false; /* transfer only by priviledgedAddress during crowdfund or reward phases */
if (balanceOf[_from] < _value) return false; /* check if the sender has enough */
if (balanceOf[_to] + _value < balanceOf[_to]) return false; /* check for overflows */
if (_value > allowance[_from][msg.sender]) return false; /* check allowance */
balanceOf[_from] -= _value; /* subtract from the sender */
balanceOf[_to] += _value; /* add the same to the recipient */
allowance[_from][msg.sender] -= _value; /* reduce allowance */
Transfer(_from, _to, _value); /* notify anyone listening that this transfer took place */
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint _value) public
returns (bool success)
{
/* set allowance for _spender on behalf of msg.sender */
allowance[msg.sender][_spender] = _value;
/* log event about transaction */
Approval(msg.sender, _spender, _value);
return true;
}
priviledgedAddressBurnUnsoldCoins keyboard_arrow_up
Parameters help
This function has no parameters.
Modifiers help
onlyBy checks for the following:
Source Code
function priviledgedAddressBurnUnsoldCoins() public
/* only crowdfund contract can call this */
onlyBy(priviledgedAddress)
{
/* totalSupply should equal total tokens in circulation */
totalSupply = safeSub(totalSupply, balanceOf[priviledgedAddress]);
/* burns unsold tokens from crowdfund address */
balanceOf[priviledgedAddress] = 0;
}
updateTokenStatus keyboard_arrow_up
Parameters help
This function has no parameters.
Source Code
function updateTokenStatus() public
{
/* locks tokens during initial crowdfund period */
if(now < crowdfundDeadline){
tokensFrozen = true;
LogTokensFrozen(tokensFrozen);
}
/* locks tokens */
if(now >= nextFreeze){
tokensFrozen = true;
LogTokensFrozen(tokensFrozen);
}
/* unlocks tokens */
if(now >= nextThaw){
tokensFrozen = false;
nextFreeze = now + 12 * 1 weeks;
nextThaw = now + 13 * 1 weeks;
LogTokensFrozen(tokensFrozen);
}
}
ownerSetPriviledgedAddress keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function ownerSetPriviledgedAddress(address _newPriviledgedAddress) public
onlyOwner
{
priviledgedAddress = _newPriviledgedAddress;
}