Blockwell

Invictus Hyperion

ERC20

This contract is an ERC20 token.

Name Invictus Hyperion
Symbol IHF
Decimals 18
Total Supply 121,335,657 IHF

About link

Invictus Hyperion Fund (IHF) is a cryptocurrency and operates on the Ethereum platform. Invictus Hyperion Fund has a current supply of 119,662,262.5638736 with 119,280,440.6173936 in circulation. The last known price of Invictus Hyperion Fund is 0.35307735 USD and is up 33.74 over the last 24 hours. It is currently trading on 1 active market(s) with $133,568.92 traded over the last 24 hours. More information can be found at https://invictuscapital.com/en/hyperion.

Stats

Public Functions 19
Event Types 2
Code Size 12,546 bytes

Library Use

Uses SafeMath for uint256.

Events (2) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

version Variable

string help

fundingEndBlock Variable

uint256 help

vestingContract Variable

address help

fundWallet1 Variable

address help

fundWallet2 Variable

address help

tradeable Variable

bool help

vestingSet Variable

bool help
Internal Variable

allowed Variable

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

balances Variable

mapping(address => uint256) help
Internal Variable

totalSupply_ Variable

uint256 help
Internal Variable

Functions Expand All Collapse All

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function totalSupply() public view returns (uint256) {
  return totalSupply_;
}

Parameters help

Name Type
_owner
address help

Properties

Visibility help public
Mutability help view
Source Code
function balanceOf(address _owner) public view 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)
  public
  isTradeable
  returns (bool success)
{
  return super.transfer(_to, _value);
}

Parameters help

Name Type
_owner
address help
_spender
address help

Properties

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

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
) public isTradeable returns (bool success) {
  return super.transferFrom(_from, _to, _value);
}

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) public returns (bool) {
  allowed[msg.sender][_spender] = _value;
  emit Approval(msg.sender, _spender, _value);
  return true;
}

Parameters help

Name Type
_spender
address help
_addedValue
uint help

Properties

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

Parameters help

Name Type
_spender
address help
_subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function decreaseApproval(address _spender, uint256 _subtractedValue)
  public
  returns (bool)
{
  uint256 oldValue = allowed[msg.sender][_spender];
  if (_subtractedValue > oldValue) {
    allowed[msg.sender][_spender] = 0;
  } else {
    allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
  }
  emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
  return true;
}

Parameters help

Name Type
vestingContractInput
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function setVestingContract(address vestingContractInput)
  external
  onlyFundWallets
{
  require(!vestingSet); // can only be called once
  require(vestingContractInput != address(0));
  vestingContract = vestingContractInput;
  vestingSet = true;
}

Parameters help

Name Type
participants
address[] help
values
uint256[] help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function batchAllocate(address[] participants, uint256[] values)
  external
  onlyFundWallets
  returns (uint256)
{
  require(block.number < fundingEndBlock);
  uint256 i = 0;
  while (i < participants.length) {
    allocateTokens(participants[i], values[i]);
    i++;
  }
  return (i);
}

Parameters help

Name Type
participant
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function adjustBalance(address participant) external onlyFundWallets {
  require(vestingSet);
  require(block.number < fundingEndBlock);
  uint256 amountTokens = balances[participant];
  uint256 developmentAllocation = amountTokens.mul(25641025641025641).div(
    1000000000000000000
  );
  uint256 removeTokens = amountTokens.add(developmentAllocation);
  totalSupply_ = totalSupply_.sub(removeTokens);
  balances[participant] = 0;
  balances[vestingContract] = balances[vestingContract].sub(
    developmentAllocation
  );
  emit Transfer(participant, address(0), amountTokens);
  emit Transfer(vestingContract, address(0), developmentAllocation);
}

Parameters help

Name Type
newFundWallet
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function changeFundWallet1(address newFundWallet) external onlyFundWallets {
  require(newFundWallet != address(0));
  fundWallet1 = newFundWallet;
}

Parameters help

Name Type
newFundWallet
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function changeFundWallet2(address newFundWallet) external onlyFundWallets {
  require(newFundWallet != address(0));
  fundWallet2 = newFundWallet;
}

Parameters help

Name Type
newFundingEndBlock
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function updateFundingEndBlock(uint256 newFundingEndBlock)
  external
  onlyFundWallets
{
  require(block.number < fundingEndBlock);
  require(block.number < newFundingEndBlock);
  fundingEndBlock = newFundingEndBlock;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function enableTrading() external onlyFundWallets {
  require(block.number > fundingEndBlock);
  tradeable = true;
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function() public payable {
  require(false); // throw
}

Parameters help

Name Type
_token
address help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function claimTokens(address _token) external onlyFundWallets {
  require(_token != address(0));
  ERC20Basic token = ERC20Basic(_token);
  uint256 balance = token.balanceOf(this);
  token.transfer(fundWallet1, balance);
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function removeEth() external onlyFundWallets {
  fundWallet1.transfer(address(this).balance);
}

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) external onlyFundWallets {
  require(balances[msg.sender] >= _value);
  balances[msg.sender] = balances[msg.sender].sub(_value);
  balances[0x0] = balances[0x0].add(_value);
  totalSupply_ = totalSupply_.sub(_value);
  emit Transfer(msg.sender, 0x0, _value);
}

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 IHF.allocateTokens keyboard_arrow_up

Parameters help

Name Type
participant
address help
amountTokens
uint256 help

Properties

Visibility help private
Mutability help transaction

Requirements help

Source Code
function allocateTokens(address participant, uint256 amountTokens) private {
  require(vestingSet);
  // 2.5% of total allocated for Invictus Capital & Team
  uint256 developmentAllocation = amountTokens.mul(25641025641025641).div(
    1000000000000000000
  );
  uint256 newTokens = amountTokens.add(developmentAllocation);
  // increase token supply, assign tokens to participant
  totalSupply_ = totalSupply_.add(newTokens);
  balances[participant] = balances[participant].add(amountTokens);
  balances[vestingContract] = balances[vestingContract].add(
    developmentAllocation
  );
  emit Transfer(address(0), participant, amountTokens);
  emit Transfer(address(0), vestingContract, developmentAllocation);
}