Aurora DAO
ERC20
This contract is an ERC20 token.
Name
Aurora DAO
Symbol
AURA
Decimals
18
Total Supply
1,000,000,000 AURA
About
Stats
Public Functions
11
Event Types
1
Code Size
4,895 bytes
State Variables (9) keyboard_arrow_up
Functions
setOwner keyboard_arrow_up
safeMul keyboard_arrow_up
Requirements help
Source Code
function safeMul(uint256 a, uint256 b) returns (uint256) {
uint256 c = a * b;
require(a == 0 || c / a == b);
return c;
}
safeSub keyboard_arrow_up
safeAdd keyboard_arrow_up
Source Code
function safeAdd(uint256 a, uint256 b) returns (uint256) {
uint256 c = a + b;
require(c >= a && c >= b);
return c;
}
transfer keyboard_arrow_up
Requirements help
One or more of the following:
-
owner
must be equal to
the sender's address
- ORlocked must not be true
Source Code
function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
transferFrom keyboard_arrow_up
Requirements help
One or more of the following:
-
owner
must be equal to
the sender's address
- ORlocked must not be true
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value)
public
returns (bool success)
{
require(!locked);
allowance[msg.sender][_spender] = _value;
return true;
}
approveAndCall keyboard_arrow_up
Source Code
function approveAndCall(
address _spender,
uint256 _value,
bytes _extraData
) public returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
unlockToken keyboard_arrow_up
uploadBalances keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Requirements help
Source Code
function uploadBalances(address[] recipients, uint256[] balances) onlyOwner {
require(!balancesUploaded);
uint256 sum = 0;
for (uint256 i = 0; i < recipients.length; i++) {
balanceOf[recipients[i]] = safeAdd(balanceOf[recipients[i]], balances[i]);
sum = safeAdd(sum, balances[i]);
}
balanceOf[owner] = safeSub(balanceOf[owner], sum);
}
lockBalances keyboard_arrow_up
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.
internal AURA._transfer keyboard_arrow_up
Requirements help
One or more of the following:
-
owner
must be equal to
the sender's address
- ORlocked must not be true
Source Code
function _transfer(
address _from,
address _to,
uint256 _value
) internal {
require(!locked || msg.sender == owner);
require(_to != 0x0);
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value > balanceOf[_to]);
uint256 previousBalances = balanceOf[_from] + balanceOf[_to];
balanceOf[_from] -= _value;
balanceOf[_to] += _value;
Transfer(_from, _to, _value);
require(balanceOf[_from] + balanceOf[_to] == previousBalances);
}