Blockwell

ReapChain

ERC20

This contract is an ERC20 token.

Name ReapChain
Symbol REAP
Decimals 18
Total Supply 4,900,000,000 REAP

About link

ReapChain (REAP) is a cryptocurrency and operates on the Ethereum platform. ReapChain has a current supply of 4,900,000,000 with 70,500,000 in circulation. The last known price of ReapChain is 0.10293917 USD and is up 9.04 over the last 24 hours. It is currently trading on 1 active market(s) with $442,947.94 traded over the last 24 hours. More information can be found at https://www.reapchain.com/.

Stats

Public Functions 19
Event Types 8
Code Size 14,793 bytes

Events (8) keyboard_arrow_up

Approval Event

Parameters help
owner
address help
spender
address help
value
uint256 help

Paused Event

Parameters help

PausedUser Event

Parameters help
_user
address help

PauserAdded Event

Parameters help
account
address help

PauserRemoved Event

Parameters help
account
address help

Transfer Event

Parameters help
from
address help
to
address help
value
uint256 help

Unpaused Event

Parameters help

UnpausedUser Event

Parameters help
_user
address help

name Constant

string help
ReapChain

decimals Constant

uint8 help
18

symbol Constant

string help
REAP

_balances Variable

mapping(address => uint256) help
Internal Variable

_allowed Variable

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

_totalSupply Variable

uint256 help
Internal Variable

_paused Variable

bool help
Internal Variable

pausers Variable

Roles.Role help
Internal Variable

_pausedUser Variable

mapping(address => bool) help
Internal Variable

Functions Expand All Collapse All

isPauser keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help view
Source Code
function isPauser(address account) public view returns (bool) {
  return pausers.has(account);
}

addPauser keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyPauser checks for the following:
null
Source Code
function addPauser(address account) public onlyPauser {
  pausers.add(account);
  emit PauserAdded(account);
}

renouncePauser keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction
Source Code
function renouncePauser() public {
  pausers.remove(msg.sender);
}

pausedUser keyboard_arrow_up

Parameters help

Name Type
_user
address help

Properties

Visibility help public
Mutability help view
Source Code
function pausedUser(address _user) public view returns (bool) {
  return _pausedUser[_user];
}

pauseUser keyboard_arrow_up

Parameters help

Name Type
_user
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function pauseUser(address _user) public onlyPauser whenNotPausedUser(_user) {
  _pausedUser[_user] = true;
  emit PausedUser(_user);
}

unpauseUser keyboard_arrow_up

Parameters help

Name Type
_user
address help

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyPauser checks for the following:
null
whenPausedUser checks for the following:
Source Code
function unpauseUser(address _user) public onlyPauser whenPausedUser(_user) {
  _pausedUser[_user] = false;
  emit UnpausedUser(_user);
}

paused keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function paused() public view returns (bool) {
  return _paused;
}

pause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

onlyPauser checks for the following:
null
Source Code
function pause() public onlyPauser whenNotPaused {
  _paused = true;
  emit Paused();
}

unpause keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help transaction

Modifiers help

Source Code
function unpause() public onlyPauser whenPaused {
  _paused = false;
  emit Unpaused();
}

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help view
Source Code
function totalSupply() public view override 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 override 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
  override
  returns (uint256)
{
  return _allowed[owner][spender];
}

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
  override
  whenNotPaused
  whenNotPausedUser(msg.sender)
  returns (bool)
{
  return super.transfer(to, value);
}

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
  override
  whenNotPaused
  whenNotPausedUser(msg.sender)
  returns (bool)
{
  return super.approve(spender, value);
}

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 override whenNotPaused whenNotPausedUser(from) returns (bool) {
  return super.transferFrom(from, to, value);
}

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
  virtual
  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
  virtual
  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
spender
address help
addedValue
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function increaseAllowance(address spender, uint256 addedValue)
  public
  override
  whenNotPaused
  whenNotPausedUser(msg.sender)
  returns (bool success)
{
  return super.increaseAllowance(spender, addedValue);
}

Parameters help

Name Type
spender
address help
subtractedValue
uint help

Properties

Visibility help public
Mutability help transaction

Requirements help

Source Code
function decreaseAllowance(address spender, uint256 subtractedValue)
  public
  override
  whenNotPaused
  whenNotPausedUser(msg.sender)
  returns (bool success)
{
  return super.decreaseAllowance(spender, subtractedValue);
}

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 ERC20._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 ERC20._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(account != address(0));
  require(amount <= _balances[account]);

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

internal ERC20._burnFrom keyboard_arrow_up

Parameters help

Name Type
account
address help
amount
uint256 help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _burnFrom(address account, uint256 amount) internal {
  require(amount <= _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(amount);
  _burn(account, amount);
}

internal PauserRole._removePauser keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _removePauser(address account) internal {
  pausers.remove(account);
  emit PauserRemoved(account);
}

internal PauserRole._removePauser keyboard_arrow_up

Parameters help

Name Type
account
address help

Properties

Visibility help internal
Mutability help transaction
Source Code
function _removePauser(address account) internal {
  pausers.remove(account);
  emit PauserRemoved(account);
}