Blockwell

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

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Burn Event

Parameters help
from
address help
_value
uint256 help

DecreaseSupply Event

Parameters help
_value
uint256 help

IncreaseSupply Event

Parameters help
_value
uint256 help

IssueToken Event

Parameters help
_to
address help
_value
uint256 help

Migrate Event

Parameters help
_to
address help
_value
uint256 help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

name Constant

string help
UnlimitedIP Token

symbol Constant

string help
UIP

decimals Constant

uint256 help
18

version Variable

string help

ethFundDeposit Variable

address help

newContractAddr Variable

address help

isFunding Variable

bool help

fundingStartBlock Variable

uint256 help

fundingStopBlock Variable

uint256 help

currentSupply Variable

uint256 help

tokenRaised Variable

uint256 help

tokenMigrated Variable

uint256 help

tokenExchangeRate Variable

uint256 help

totalSupply Variable

uint256 help

balances Variable

mapping(address => uint256) help
Internal Variable

allowed Variable

mapping(address => mapping(address => uint256)) help
Internal Variable

Functions Expand All Collapse All

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help constant
Source Code
function balanceOf(address _owner) constant returns (uint256 balance) {
  return balances[_owner];
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
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;
  }
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
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;
  }
}

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function approve(address _spender, uint256 _value) returns (bool success) {
  allowed[msg.sender][_spender] = _value;
  Approval(msg.sender, _spender, _value);
  return true;
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

Visibility help public
Mutability help constant
Source Code
function allowance(address _owner, address _spender)
  constant
  returns (uint256 remaining)
{
  return allowed[_owner][_spender];
}

setTokenExchangeRate keyboard_arrow_up

Parameters help

Name Type
_tokenExchangeRate
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function setTokenExchangeRate(uint256 _tokenExchangeRate) external isOwner {
  require(_tokenExchangeRate > 0);
  require(_tokenExchangeRate != tokenExchangeRate);
  tokenExchangeRate = _tokenExchangeRate;
}

increaseSupply keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

Name Type
_fundingStartBlock
uint256 help
_fundingStopBlock
uint256 help

Properties

Visibility help public
Mutability help transaction
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

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function stopFunding() external isOwner {
  require(isFunding);
  isFunding = false;
}

setMigrateContract keyboard_arrow_up

Parameters help

Name Type
_newContractAddr
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function setMigrateContract(address _newContractAddr) external isOwner {
  require(_newContractAddr != newContractAddr);
  newContractAddr = _newContractAddr;
}

changeOwner keyboard_arrow_up

Parameters help

Name Type
_newFundDeposit
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function changeOwner(address _newFundDeposit) external isOwner() {
  require(_newFundDeposit != address(0x0));
  ethFundDeposit = _newFundDeposit;
}

migrate keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
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

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transferETH() external isOwner {
  require(this.balance > 0);
  require(ethFundDeposit.send(this.balance));
}

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
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.

Properties

Visibility help public
Mutability help payable

Requirements help

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 Expand All Collapse All

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

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function formatDecimals(uint256 _value) internal returns (uint256) {
  return _value * 10**decimals;
}

internal SafeMath.safeAdd keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function safeAdd(uint256 x, uint256 y) internal returns (uint256) {
  uint256 z = x + y;
  assert((z >= x) && (z >= y));
  return z;
}

internal SafeMath.safeSubtract keyboard_arrow_up

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help transaction

Requirements help

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

Parameters help

Name Type
x
uint256 help
y
uint256 help

Properties

Visibility help internal
Mutability help transaction

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;
}