UnlimitedIP Token
ERC20
This contract is an ERC20 token.
Name
UnlimitedIP Token
Symbol
UIP
Decimals
18
Total Supply
3,000,000,000 UIP
About link description
UnlimitedIP (UIP) is a cryptocurrency and operates on the Ethereum platform. UnlimitedIP has a current supply of 2,839,985,525.01 with 1,334,112,917.6535177 in circulation. The last known price of UnlimitedIP is 0.00443829 USD and is down -6.15 over the last 24 hours. It is currently trading on 9 active market(s) with $115,924.93 traded over the last 24 hours. More information can be found at http://www.uip.group.
Stats
Public Functions
16
Event Types
7
Code Size
9,722 bytes
Events (7) keyboard_arrow_up
State Variables (13) keyboard_arrow_up
Functions
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Source Code
function transfer(address _to, uint256 _value) returns (bool success) {
if (balances[msg.sender] >= _value && _value > 0) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
} else {
return false;
}
}
transferFrom keyboard_arrow_up
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) returns (bool success) {
if (
balances[_from] >= _value &&
allowed[_from][msg.sender] >= _value &&
_value > 0
) {
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
} else {
return false;
}
}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
setTokenExchangeRate keyboard_arrow_up
increaseSupply keyboard_arrow_up
Modifiers help
isOwner checks for the following:
Requirements help
Source Code
function increaseSupply(uint256 _value) external isOwner {
uint256 value = formatDecimals(_value);
require(value + currentSupply <= totalSupply);
require(balances[msg.sender] >= value && value > 0);
balances[msg.sender] -= value;
currentSupply = safeAdd(currentSupply, value);
IncreaseSupply(value);
}
decreaseSupply keyboard_arrow_up
Modifiers help
isOwner checks for the following:
Requirements help
Source Code
function decreaseSupply(uint256 _value) external isOwner {
uint256 value = formatDecimals(_value);
require(value + tokenRaised <= currentSupply);
currentSupply = safeSubtract(currentSupply, value);
balances[msg.sender] += value;
DecreaseSupply(value);
}
startFunding keyboard_arrow_up
Modifiers help
isOwner checks for the following:
Requirements help
Source Code
function startFunding(uint256 _fundingStartBlock, uint256 _fundingStopBlock)
external
isOwner
{
require(!isFunding);
require(_fundingStartBlock < _fundingStopBlock);
require(block.number < _fundingStartBlock);
fundingStartBlock = _fundingStartBlock;
fundingStopBlock = _fundingStopBlock;
isFunding = true;
}
stopFunding keyboard_arrow_up
setMigrateContract keyboard_arrow_up
changeOwner keyboard_arrow_up
migrate keyboard_arrow_up
Parameters help
This function has no parameters.
Requirements help
Source Code
function migrate() external {
require(!isFunding);
require(newContractAddr != address(0x0));
uint256 tokens = balances[msg.sender];
require(tokens > 0);
balances[msg.sender] = 0;
tokenMigrated = safeAdd(tokenMigrated, tokens);
IMigrationContract newContract = IMigrationContract(newContractAddr);
require(newContract.migrate(msg.sender, tokens));
Migrate(msg.sender, tokens); // log it
}
transferETH keyboard_arrow_up
burn keyboard_arrow_up
Modifiers help
isOwner checks for the following:
Requirements help
Source Code
function burn(uint256 _value) isOwner returns (bool success) {
uint256 value = formatDecimals(_value);
require(balances[msg.sender] >= value && value > 0);
balances[msg.sender] -= value;
totalSupply -= value;
Burn(msg.sender, value);
return true;
}
constructor keyboard_arrow_up
Parameters help
This function has no parameters.
Source Code
function() payable {
require(isFunding);
require(msg.value > 0);
require(block.number >= fundingStartBlock);
require(block.number <= fundingStopBlock);
uint256 tokens = safeMult(msg.value, tokenExchangeRate);
require(tokens + tokenRaised <= currentSupply);
tokenRaised = safeAdd(tokenRaised, tokens);
balances[msg.sender] += tokens;
IssueToken(msg.sender, tokens); // logs token issued
}
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 UnlimitedIPToken.formatDecimals keyboard_arrow_up
internal SafeMath.safeAdd keyboard_arrow_up
internal SafeMath.safeSubtract keyboard_arrow_up
Source Code
function safeSubtract(uint256 x, uint256 y) internal returns (uint256) {
assert(x >= y);
uint256 z = x - y;
return z;
}
internal SafeMath.safeMult keyboard_arrow_up
Requirements help
One or more of the following:
Source Code
function safeMult(uint256 x, uint256 y) internal returns (uint256) {
uint256 z = x * y;
assert((x == 0) || (z / x == y));
return z;
}