Dao.Casino
ERC20
This contract is an ERC20 token.
Name
Dao.Casino
Symbol
BET
Decimals
18
Total Supply
167,270,821 BET
About
Stats
Public Functions
11
Event Types
3
Code Size
9,794 bytes
State Variables (6) keyboard_arrow_up
Functions
transferOwnership keyboard_arrow_up
acceptOwnership keyboard_arrow_up
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint256 _amount) returns (bool success) {
if (
balances[msg.sender] >= _amount && // User has balance
_amount > 0 && // Non-zero transfer
balances[_to] + _amount > balances[_to] // Overflow check
) {
balances[msg.sender] = balances[msg.sender].sub(_amount);
balances[_to] = balances[_to].add(_amount);
Transfer(msg.sender, _to, _amount);
return true;
} else {
return false;
}
}
approve keyboard_arrow_up
Requirements help
One or more of the following:
Source Code
function approve(address _spender, uint256 _amount) returns (bool success) {
// Borrowed from the MiniMeToken contract
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender,0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
require((_amount == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _amount;
Approval(msg.sender, _spender, _amount);
return true;
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(
address _from,
address _to,
uint256 _amount
) returns (bool success) {
if (
balances[_from] >= _amount && // From a/c has balance
allowed[_from][msg.sender] >= _amount && // Transfer approved
_amount > 0 && // Non-zero transfer
balances[_to] + _amount > balances[_to] // Overflow check
) {
balances[_from] = balances[_from].sub(_amount);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
balances[_to] = balances[_to].add(_amount);
Transfer(_from, _to, _amount);
return true;
} else {
return false;
}
}
allowance keyboard_arrow_up
fill keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function fill(uint256[] data) onlyOwner {
require(!sealed);
for (uint256 i = 0; i < data.length; i++) {
address account = address(data[i] & (D160 - 1));
uint256 amount = data[i] / D160;
// Prevent duplicates
if (balances[account] == 0) {
balances[account] = amount;
_totalSupply = _totalSupply.add(amount);
Transfer(0x0, account, amount);
}
}
}
seal keyboard_arrow_up
transferAnyERC20Token keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferAnyERC20Token(address tokenAddress, uint256 amount)
onlyOwner
returns (bool success)
{
return ERC20Token(tokenAddress).transfer(owner, amount);
}
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.