Blockwell

NXM

ERC20

This contract is an ERC20 token.

Name NXM
Symbol NXM
Decimals 18
Total Supply 7,388,165 NXM

About link

NXM (NXM) is a cryptocurrency and operates on the Ethereum platform. NXM has a current supply of 6,905,521.72272775 with 6,406,846.7499738 in circulation. The last known price of NXM is 73.51788291 USD and is up 0.44 over the last 24 hours. It is currently trading on 1 active market(s) with $40,414.76 traded over the last 24 hours. More information can be found at https://nexusmutual.io/.

Stats

Public Functions 16
Event Types 4
Code Size 14,602 bytes

Library Use

Uses SafeMath for uint256.

Events (4) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

BlackListed Event

Parameters help
member
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

WhiteListed Event

Parameters help
member
address help

name Variable

string help

symbol Variable

string help

decimals Variable

uint8 help

operator Variable

address help

whiteListed Variable

mapping(address => bool) help

isLockedForMV Variable

mapping(address => uint) help

_balances Variable

mapping(address => uint256) help
Internal Variable

_allowed Variable

mapping(address => 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) {
  return _balances[owner];
}

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
spender
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function approve(address spender, uint256 value) public returns (bool) {
  require(spender != address(0));

  _allowed[msg.sender][spender] = value;
  emit Approval(msg.sender, spender, value);
  return true;
}

Parameters help

Name Type
spender
address help
addedValue
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function increaseAllowance(address spender, uint256 addedValue)
  public
  returns (bool)
{
  require(spender != address(0));

  _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
uint256 help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function decreaseAllowance(address spender, uint256 subtractedValue)
  public
  returns (bool)
{
  require(spender != address(0));

  _allowed[msg.sender][spender] = (
    _allowed[msg.sender][spender].sub(subtractedValue)
  );
  emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
  return true;
}

Parameters help

Name Type
_member
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOperator checks for the following:
Source Code
function addToWhiteList(address _member) public onlyOperator returns (bool) {
  whiteListed[_member] = true;
  emit WhiteListed(_member);
  return true;
}

Parameters help

Name Type
_member
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOperator checks for the following:
Source Code
function removeFromWhiteList(address _member)
  public
  onlyOperator
  returns (bool)
{
  whiteListed[_member] = false;
  emit BlackListed(_member);
  return true;
}

Parameters help

Name Type
_newOperator
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOperator checks for the following:
Source Code
function changeOperator(address _newOperator)
  public
  onlyOperator
  returns (bool)
{
  operator = _newOperator;
  return true;
}

Parameters help

Name Type
amount
uint256 help

Properties

Visibility help public
Mutability help transaction
Source Code
function burn(uint256 amount) public returns (bool) {
  _burn(msg.sender, amount);
  return true;
}

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) {
  _burnFrom(from, value);
  return true;
}

Parameters help

Name Type
account
address help
amount
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOperator checks for the following:

Requirements help

Source Code
function mint(address account, uint256 amount) public onlyOperator {
  _mint(account, amount);
}

Parameters help

Name Type
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

canTransfer checks for the following:
Source Code
function transfer(address to, uint256 value)
  public
  canTransfer(to)
  returns (bool)
{
  require(isLockedForMV[msg.sender] < now); // if not voted under governance
  require(value <= _balances[msg.sender]);
  _transfer(to, value);
  return true;
}

Parameters help

Name Type
from
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOperator checks for the following:
Source Code
function operatorTransfer(address from, uint256 value)
  public
  onlyOperator
  returns (bool)
{
  require(value <= _balances[from]);
  _transferFrom(from, operator, value);
  return true;
}

Parameters help

Name Type
from
address help
to
address help
value
uint256 help

Properties

Visibility help public
Mutability help transaction

Modifiers help

canTransfer checks for the following:

Requirements help

Source Code
function transferFrom(
  address from,
  address to,
  uint256 value
) public canTransfer(to) returns (bool) {
  require(isLockedForMV[from] < now); // if not voted under governance
  require(value <= _balances[from]);
  require(value <= _allowed[from][msg.sender]);
  _transferFrom(from, to, value);
  return true;
}

Parameters help

Name Type
_of
address help
_days
uint help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyOperator checks for the following:
Source Code
function lockForMemberVote(address _of, uint256 _days) public onlyOperator {
  if (_days.add(now) > isLockedForMV[_of]) isLockedForMV[_of] = _days.add(now);
}

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

Parameters help

Name Type
to
address help
value
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _transfer(address to, uint256 value) internal {
  _balances[msg.sender] = _balances[msg.sender].sub(value);
  _balances[to] = _balances[to].add(value);
  emit Transfer(msg.sender, to, value);
}

internal NXMToken._transferFrom keyboard_arrow_up

Parameters help

Name Type
from
address help
to
address help
value
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _transferFrom(
  address from,
  address to,
  uint256 value
) internal {
  _balances[from] = _balances[from].sub(value);
  _balances[to] = _balances[to].add(value);
  _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
  emit Transfer(from, to, value);
}

internal NXMToken._mint keyboard_arrow_up

Parameters help

Name Type
account
address help
amount
uint256 help

Properties

Visibility help internal
Mutability help transaction

Requirements help

Source Code
function _mint(address account, uint256 amount) internal {
  require(account != address(0));
  _totalSupply = _totalSupply.add(amount);
  _balances[account] = _balances[account].add(amount);
  emit Transfer(address(0), account, amount);
}

internal NXMToken._burn keyboard_arrow_up

Parameters help

Name Type
account
address help
amount
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _burn(address account, uint256 amount) internal {
  require(amount <= _balances[account]);

  _totalSupply = _totalSupply.sub(amount);
  _balances[account] = _balances[account].sub(amount);
  emit Transfer(account, address(0), amount);
}

internal NXMToken._burnFrom keyboard_arrow_up

Parameters help

Name Type
account
address help
value
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _burnFrom(address account, uint256 value) internal {
  require(value <= _allowed[account][msg.sender]);

  // Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
  // this function needs to emit an event with the updated approval.
  _allowed[account][msg.sender] = _allowed[account][msg.sender].sub(value);
  _burn(account, value);
}