Blockwell

GNYerc20

ERC20

This contract is an ERC20 token.

Name GNYerc20
Symbol GNYerc20
Decimals 18
Total Supply 400,000,000 GNYerc20

About link description

GNY (GNY) is a cryptocurrency and operates on the Ethereum platform. GNY has a current supply of 400,000,000 with 192,376,657 in circulation. The last known price of GNY is 0.35893659 USD and is up 2.74 over the last 24 hours. It is currently trading on 7 active market(s) with $160,569.70 traded over the last 24 hours. More information can be found at https://www.gny.io/.

Stats

Public Functions 10
Event Types 4
Code Size 4,355 bytes

Events (4) keyboard_arrow_up

Approval Event

Parameters help
tokenOwner
address help
spender
address help
tokens
uint help

Approval Event

Parameters help
_owner
address help
_spender
address help
_value
uint256 help

Transfer Event

Parameters help
from
address help
to
address help
tokens
uint help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

symbol Variable

string help

name Variable

string help

decimals Variable

uint8 help

_totalSupply Variable

uint help

balances Variable

mapping(address => uint) help
Internal Variable

allowed Variable

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

Functions Expand All Collapse All

safeAdd keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure

Requirements help

Source Code
function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {
  c = a + b;
  require(c >= a);
}

safeSub keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure

Requirements help

Source Code
function safeSub(uint256 a, uint256 b) public pure returns (uint256 c) {
  require(b <= a);
  c = a - b;
}

safeMul keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure
Source Code
function safeMul(uint256 a, uint256 b) public pure returns (uint256 c) {
  c = a * b;
  require(a == 0 || c / a == b);
}

safeDiv keyboard_arrow_up

Parameters help

Name Type
a
uint help
b
uint help

Properties

Visibility help public
Mutability help pure

Requirements help

Source Code
function safeDiv(uint256 a, uint256 b) public pure returns (uint256 c) {
  require(b > 0);
  c = a / b;
}

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
tokenOwner
address help
spender
address help

Properties

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

Parameters help

Name Type
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function transfer(address to, uint256 tokens) public returns (bool success) {
  require(to != 0x0);
  balances[msg.sender] = safeSub(balances[msg.sender], tokens);
  balances[to] = safeAdd(balances[to], tokens);
  emit Transfer(msg.sender, to, tokens);
  return true;
}

Parameters help

Name Type
spender
address help
tokens
uint help

Properties

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

Parameters help

Name Type
from
address help
to
address help
tokens
uint help

Properties

Visibility help public
Mutability help transaction
Source Code
function transferFrom(
  address from,
  address to,
  uint256 tokens
) public returns (bool success) {
  balances[from] = safeSub(balances[from], tokens);
  allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
  balances[to] = safeAdd(balances[to], tokens);
  emit Transfer(from, to, tokens);
  return true;
}

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.