Blockwell

Orbit Chain

ERC20

This contract is an ERC20 token.

Name Orbit Chain
Symbol ORC
Decimals 18
Total Supply 990,086,470 ORC

About link description

Orbit Chain (ORC) is a cryptocurrency launched in 2019and operates on the Ethereum platform. Orbit Chain has a current supply of 990,086,469.6170542 with 465,987,647 in circulation. The last known price of Orbit Chain is 0.61192262 USD and is down -0.85 over the last 24 hours. It is currently trading on 13 active market(s) with $14,363,379.13 traded over the last 24 hours. More information can be found at https://orbitchain.io/.

Stats

Public Functions 7
Event Types 4
Code Size 3,334 bytes

Events (4) 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

FrozenFunds Event

Parameters help
target
address help
frozen
bool 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

totalSupply Variable

uint256 help

owner Variable

address help

balanceOf Variable

mapping(address => uint256) help

frozenAccount Variable

mapping(address => bool) help

allowance Variable

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

Functions Expand All Collapse All

transferOwnership keyboard_arrow_up

Parameters help

Name Type
newOwner
address help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferOwnership(address newOwner) public onlyOwner {
  owner = newOwner;
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address _to, uint256 _value) public returns (bool success) {
  _transfer(msg.sender, _to, _value);
  return true;
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

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

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

burn keyboard_arrow_up

Parameters help

Name Type
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 _value) public returns (bool success) {
  require(balanceOf[msg.sender] >= _value);
  balanceOf[msg.sender] -= _value;
  totalSupply -= _value;
  emit Burn(msg.sender, _value);
  return true;
}

burnFrom keyboard_arrow_up

Parameters help

Name Type
_from
address help
_value
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burnFrom(address _from, uint256 _value) public returns (bool success) {
  require(balanceOf[_from] >= _value);
  require(_value <= allowance[_from][msg.sender]);
  balanceOf[_from] -= _value;
  allowance[_from][msg.sender] -= _value;
  totalSupply -= _value;
  emit Burn(_from, _value);
  return true;
}

freezeAccount keyboard_arrow_up

Parameters help

Name Type
target
address help
freeze
bool help

Properties

Visibility help public
Mutability help transaction
Source Code
function freezeAccount(address target, bool freeze) public onlyOwner {
  frozenAccount[target] = freeze;
  emit FrozenFunds(target, freeze);
}

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 ORCToken._transfer keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function _transfer(
  address _from,
  address _to,
  uint256 _value
) internal {
  require(_to != address(0x0));
  require(balanceOf[_from] >= _value);
  require(balanceOf[_to] + _value >= balanceOf[_to]);

  require(!frozenAccount[_from]);
  require(!frozenAccount[_to]);

  uint256 previousBalances = balanceOf[_from] + balanceOf[_to];
  balanceOf[_from] -= _value;
  balanceOf[_to] += _value;

  emit Transfer(_from, _to, _value);

  assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
}