Contract 0x16227d60f7a0e586c66b005219dfc887d13c9531

Contract Overview

Balance:
0 BNB

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x998eef13c823050d5f3544e1f3fc95803b3cdde15660fac7dea6a6c4a7b7c28d81548012021-04-20 21:36:1613 hrs ago0x3c6c8714751682d6d1ca55fa71aeb63eed133339 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00050395
0x4662736573c3a4e0268302a505cb836aa3254b97b7881d2888b22664fcfa3b0981250332021-04-19 20:47:521 day 13 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076551
0xddd936adab42f5a1560d18b2f2d94dbb6639e695f81c7e66fefbeb60d4da78c681230502021-04-19 19:08:431 day 15 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076569
0xe9b69a9485531470616720cbe80771392224413e14e6be8e85f319a0affaf43b81043902021-04-19 3:35:432 days 7 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00054051
0xe743f215ebccb07a45132d7a8e4bc26300ec80e99e0f0f24181f5f81f125d0df81023872021-04-19 1:55:342 days 8 hrs ago0x377cb314e4b9a2be12a2ce79036aae03073b5475 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0x09de5c424bbb6a92e973a4a2043e8605082a7e0c4b86774f9534d5d65167b3a181004572021-04-19 0:19:042 days 10 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076551
0x1a7d76796e10c59f41c4be376a521620e4adf27b8f7e111aa2e66e7bac81062280814112021-04-18 8:26:463 days 2 hrs ago0x0c12e49314a794112b86892f5851b8d68dc8211c IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0xde20ded964b04e21d4a1ca37bf35bf4a2f34421cad760c55c3def162c34c4f6c80812002021-04-18 8:16:133 days 2 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076569
0xce33c1b58d764ffc2b5d4398496be727fb1219826cc56ab327b96d0191efe38e80774392021-04-18 5:08:103 days 5 hrs ago0x7ff1f8c467114bfbbcc56e406c0ec21e781bb959 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0xefb037809fff49983944aa2eada3b7f282c7648505eb075286629614872cf53480662262021-04-17 19:47:313 days 14 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076569
0xd363b44714800b3d5d1ca5e7051e79175dda18f389e3a1fca6ae6a7fefe3733580403092021-04-16 22:11:394 days 12 hrs ago0x0014d8a0c42e5ec5d69b2b9190186c494e2a6905 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0x56b636dcb4d6c4c2cdba50b36231a000b66f07b298d50538d1c2769b9c8852a080248052021-04-16 9:16:275 days 1 hr ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0x85299d36a5a5d240b3859e0201ed38b0f9a0df4cfb794bdd9c503a03b34c7fec80246892021-04-16 9:10:395 days 1 hr ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0x9b46468aac243f5958970e537780caf5f7ba71e7e99e430bad074c7172dd24d380245592021-04-16 9:04:095 days 1 hr ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0x62e9f289b40ffedcb7ead0877dad0194d9cdf806fd896f593e5f46bcb122ed6280234952021-04-16 8:10:575 days 2 hrs ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0x57ea1480f9124c4ff7eb6ecb1c43e7f060ba91fa6d9bdd5c645cf499bbc7d96480134192021-04-15 23:47:095 days 10 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076551
0xfc604730f2983c1c331f4548096b633edf28945a100f9121e2166769ff0b04f680078812021-04-15 19:10:155 days 15 hrs ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0xa41c99d88d08cb2d779dc3231050a21c510e9c27f9c7ee274ef4b812338c641080078592021-04-15 19:09:095 days 15 hrs ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0xb7784b823f94ad66e3ab46c5ef158a32ee9e364457b493eb8112684f03b0f34880074512021-04-15 18:48:455 days 15 hrs ago0x3feb4d10f18f32f504fd5d8a6f794acf279e30e5 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00050383
0x8ee516cc6650102d4dd8abb99aba5b271b67f7c69bb958c0b6857b367368d5f280024802021-04-15 14:40:125 days 19 hrs ago0x2ce1d0ffd7e869d9df33e28552b12ddded326706 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00076551
0xe693b4d0bf716e8f891c4b15e9918d7039e2c667950bf2a51fd8306765e0fb6679964492021-04-15 9:38:396 days 57 mins ago0x4f7e81ae7be2af74cf6496e7d6df64cdd7aaaaab IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00024682
0x324bafac9b620604307b7c8f68d5a554aeff4ea0401ab36ca4fc62232ffd7f1179884892021-04-15 3:00:396 days 7 hrs ago0x205a68ae210a16f52c1bc6b28e169a22c0f4ced2 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00044266
0xbf65ef74565efee83802a28fe0e363dadfd9d67ea8fc7232500d00edd671714779883932021-04-15 2:55:516 days 7 hrs ago0xf72aa682a8ddbb741d44c14523a1f8192fc936c2 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00051034
0x595f47566e1074763b9252dc7badb00ef86320c6c2dd2f843d5ac5cf68edbac579801102021-04-14 20:01:426 days 14 hrs ago0x79e9e4c26e9620e1de5dce23f73336456ea5e782 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00043966
0xf1302b6d6216c852f7556af9ce316454d2388bbc53086a73e514d1caa2748f1e79794992021-04-14 19:31:096 days 15 hrs ago0x79e9e4c26e9620e1de5dce23f73336456ea5e782 IN  0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB0.00043966
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe4de3c9c3f48081773d66f665451c88525d334c6af7a36d799b6687a3f53398981680042021-04-21 8:36:252 hrs ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xe4de3c9c3f48081773d66f665451c88525d334c6af7a36d799b6687a3f53398981680042021-04-21 8:36:252 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xe4de3c9c3f48081773d66f665451c88525d334c6af7a36d799b6687a3f53398981680042021-04-21 8:36:252 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x3aa4c1e896a7e6c53884d0bcc662d3b5791c9ee1c5f5ff3018683acfbc59194681679992021-04-21 8:36:102 hrs ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x3aa4c1e896a7e6c53884d0bcc662d3b5791c9ee1c5f5ff3018683acfbc59194681679992021-04-21 8:36:102 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x9bf107466dcfbc7577297e9ab3e7f025d93d6529b53d9402ab7967f9635c37a481679962021-04-21 8:36:012 hrs ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x9bf107466dcfbc7577297e9ab3e7f025d93d6529b53d9402ab7967f9635c37a481679962021-04-21 8:36:012 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xedd6b4cc20b07be310d8262e498f7ff4759864dfadaa43565e54d03d76194e5881679912021-04-21 8:35:462 hrs ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xedd6b4cc20b07be310d8262e498f7ff4759864dfadaa43565e54d03d76194e5881679912021-04-21 8:35:462 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xedd6b4cc20b07be310d8262e498f7ff4759864dfadaa43565e54d03d76194e5881679912021-04-21 8:35:462 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xb96f2155c43a15d904a0e59222cb1697f8a23ce31977028c168ef9c81963085181679862021-04-21 8:35:312 hrs ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xb96f2155c43a15d904a0e59222cb1697f8a23ce31977028c168ef9c81963085181679862021-04-21 8:35:312 hrs ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x2a78faf4aeaea32197852f424665c94de8dfa51f76883c6a421e5775bde0a45b81679812021-04-21 8:35:162 hrs 1 min ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x2a78faf4aeaea32197852f424665c94de8dfa51f76883c6a421e5775bde0a45b81679812021-04-21 8:35:162 hrs 1 min ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xb6bfd6a1d955f6de4297109f9d3b0bd46c3b8b5c83d8a6f18194050b76cf648081679782021-04-21 8:35:072 hrs 1 min ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xb6bfd6a1d955f6de4297109f9d3b0bd46c3b8b5c83d8a6f18194050b76cf648081679782021-04-21 8:35:072 hrs 1 min ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x934ff9fc90905cb576a2420855f8a429957f70e086283f48d8e3e86cf403db9981679732021-04-21 8:34:522 hrs 1 min ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x934ff9fc90905cb576a2420855f8a429957f70e086283f48d8e3e86cf403db9981679732021-04-21 8:34:522 hrs 1 min ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x4c8f9db021c00c81fe4b4e42e523d01c2e638616d856e955e50bc719b557921f81679682021-04-21 8:34:372 hrs 1 min ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x4c8f9db021c00c81fe4b4e42e523d01c2e638616d856e955e50bc719b557921f81679682021-04-21 8:34:372 hrs 1 min ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x4c8f9db021c00c81fe4b4e42e523d01c2e638616d856e955e50bc719b557921f81679682021-04-21 8:34:372 hrs 1 min ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x405589979fe409516d8bfdfeab2282175437014d190a6c2944f32213303560f681679622021-04-21 8:34:192 hrs 2 mins ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0x405589979fe409516d8bfdfeab2282175437014d190a6c2944f32213303560f681679622021-04-21 8:34:192 hrs 2 mins ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xe8f2eb641a45e22c4ea4e3c6689fa560539bcf34b709484d858f0cd72af75aa481679592021-04-21 8:34:102 hrs 2 mins ago 0x122204837dda35b682378be13b6b48ce125ae55f 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
0xe8f2eb641a45e22c4ea4e3c6689fa560539bcf34b709484d858f0cd72af75aa481679592021-04-21 8:34:102 hrs 2 mins ago 0xd5c4c2e2facbeb59d0216d0595d63fcdc6f9a1a7 0x16227d60f7a0e586c66b005219dfc887d13c95310 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x75107940cf1121232c0559c747a986defbc69da9

Contract Name:
FaucetToken

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 3: FaucetToken.sol
pragma solidity ^0.5.16;

import "./BEP20.sol";

/**
 * @title The Venus Faucet Test Token
 * @author Venus
 * @notice A simple test token that lets anyone get more of it.
 */
contract FaucetToken is StandardToken {
    constructor(uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol) public
        StandardToken(_initialAmount, _tokenName, _decimalUnits, _tokenSymbol) {
    }

    function allocateTo(address _owner, uint256 value) public {
        balanceOf[_owner] += value;
        totalSupply += value;
        emit Transfer(address(this), _owner, value);
    }
}

/**
 * @title The Venus Faucet Test Token (non-standard)
 * @author Venus
 * @notice A simple test token that lets anyone get more of it.
 */
contract FaucetNonStandardToken is NonStandardToken {
    constructor(uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol) public
        NonStandardToken(_initialAmount, _tokenName, _decimalUnits, _tokenSymbol) {
    }

    function allocateTo(address _owner, uint256 value) public {
        balanceOf[_owner] += value;
        totalSupply += value;
        emit Transfer(address(this), _owner, value);
    }
}

/**
 * @title The Venus Faucet Re-Entrant Test Token
 * @author Venus
 * @notice A test token that is malicious and tries to re-enter callers
 */
contract FaucetTokenReEntrantHarness {
    using SafeMath for uint256;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 totalSupply_;
    mapping (address => mapping (address => uint256)) allowance_;
    mapping (address => uint256) balanceOf_;

    bytes public reEntryCallData;
    string public reEntryFun;

    constructor(uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol, bytes memory _reEntryCallData, string memory _reEntryFun) public {
        totalSupply_ = _initialAmount;
        balanceOf_[msg.sender] = _initialAmount;
        name = _tokenName;
        symbol = _tokenSymbol;
        decimals = _decimalUnits;
        reEntryCallData = _reEntryCallData;
        reEntryFun = _reEntryFun;
    }

    modifier reEnter(string memory funName) {
        string memory _reEntryFun = reEntryFun;
        if (compareStrings(_reEntryFun, funName)) {
            reEntryFun = ""; // Clear re-entry fun
            (bool success, bytes memory returndata) = msg.sender.call(reEntryCallData);
            assembly {
                if eq(success, 0) {
                    revert(add(returndata, 0x20), returndatasize())
                }
            }
        }

        _;
    }

    function compareStrings(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b)));
    }

    function allocateTo(address _owner, uint256 value) public {
        balanceOf_[_owner] += value;
        totalSupply_ += value;
        emit Transfer(address(this), _owner, value);
    }

    function totalSupply() public reEnter("totalSupply") returns (uint256) {
        return totalSupply_;
    }

    function allowance(address owner, address spender) public reEnter("allowance") returns (uint256 remaining) {
        return allowance_[owner][spender];
    }

    function approve(address spender, uint256 amount) public reEnter("approve") returns (bool success) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function balanceOf(address owner) public reEnter("balanceOf") returns (uint256 balance) {
        return balanceOf_[owner];
    }

    function transfer(address dst, uint256 amount) public reEnter("transfer") returns (bool success) {
        _transfer(msg.sender, dst, amount);
        return true;
    }

    function transferFrom(address src, address dst, uint256 amount) public reEnter("transferFrom") returns (bool success) {
        _transfer(src, dst, amount);
        _approve(src, msg.sender, allowance_[src][msg.sender].sub(amount));
        return true;
    }

    function _approve(address owner, address spender, uint256 amount) internal {
        require(spender != address(0));
        require(owner != address(0));
        allowance_[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(address src, address dst, uint256 amount) internal {
        require(dst != address(0));
        balanceOf_[src] = balanceOf_[src].sub(amount);
        balanceOf_[dst] = balanceOf_[dst].add(amount);
        emit Transfer(src, dst, amount);
    }
}

File 2 of 3: BEP20.sol
pragma solidity ^0.5.16;

import "SafeMath.sol";

interface BEP20Base {
    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Transfer(address indexed from, address indexed to, uint256 value);
    function totalSupply() external view returns (uint256);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 value) external returns (bool);
    function balanceOf(address who) external view returns (uint256);
}

contract BEP20 is BEP20Base {
    function transfer(address to, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

contract BEP20NS is BEP20Base {
    function transfer(address to, uint256 value) external;
    function transferFrom(address from, address to, uint256 value) external;
}

/**
 * @title Standard BEP20 token
 * @dev Implementation of the basic standard token.
 *  See https://github.com/ethereum/EIPs/issues/20
 */
contract StandardToken is BEP20 {
    using SafeMath for uint256;

    string public name;
    string public symbol;
    uint8 public decimals;
    uint256 public totalSupply;
    mapping (address => mapping (address => uint256)) public allowance;
    mapping(address => uint256) public balanceOf;

    constructor(uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol) public {
        totalSupply = _initialAmount;
        balanceOf[msg.sender] = _initialAmount;
        name = _tokenName;
        symbol = _tokenSymbol;
        decimals = _decimalUnits;
    }

    function transfer(address dst, uint256 amount) external returns (bool) {
        balanceOf[msg.sender] = balanceOf[msg.sender].sub(amount, "Insufficient balance");
        balanceOf[dst] = balanceOf[dst].add(amount, "Balance overflow");
        emit Transfer(msg.sender, dst, amount);
        return true;
    }

    function transferFrom(address src, address dst, uint256 amount) external returns (bool) {
        allowance[src][msg.sender] = allowance[src][msg.sender].sub(amount, "Insufficient allowance");
        balanceOf[src] = balanceOf[src].sub(amount, "Insufficient balance");
        balanceOf[dst] = balanceOf[dst].add(amount, "Balance overflow");
        emit Transfer(src, dst, amount);
        return true;
    }

    function approve(address _spender, uint256 amount) external returns (bool) {
        allowance[msg.sender][_spender] = amount;
        emit Approval(msg.sender, _spender, amount);
        return true;
    }
}

/**
 * @title Non-Standard BEP20 token
 * @dev Version of BEP20 with no return values for `transfer` and `transferFrom`
 *  See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
 */
contract NonStandardToken is BEP20NS {
    using SafeMath for uint256;

    string public name;
    uint8 public decimals;
    string public symbol;
    uint256 public totalSupply;
    mapping (address => mapping (address => uint256)) public allowance;
    mapping(address => uint256) public balanceOf;

    constructor(uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol) public {
        totalSupply = _initialAmount;
        balanceOf[msg.sender] = _initialAmount;
        name = _tokenName;
        symbol = _tokenSymbol;
        decimals = _decimalUnits;
    }

    function transfer(address dst, uint256 amount) external {
        balanceOf[msg.sender] = balanceOf[msg.sender].sub(amount, "Insufficient balance");
        balanceOf[dst] = balanceOf[dst].add(amount, "Balance overflow");
        emit Transfer(msg.sender, dst, amount);
    }

    function transferFrom(address src, address dst, uint256 amount) external {
        allowance[src][msg.sender] = allowance[src][msg.sender].sub(amount, "Insufficient allowance");
        balanceOf[src] = balanceOf[src].sub(amount, "Insufficient balance");
        balanceOf[dst] = balanceOf[dst].add(amount, "Balance overflow");
        emit Transfer(src, dst, amount);
    }

    function approve(address _spender, uint256 amount) external returns (bool) {
        allowance[msg.sender][_spender] = amount;
        emit Approval(msg.sender, _spender, amount);
        return true;
    }
}

contract BEP20Harness is StandardToken {
    // To support testing, we can specify addresses for which transferFrom should fail and return false
    mapping (address => bool) public failTransferFromAddresses;

    // To support testing, we allow the contract to always fail `transfer`.
    mapping (address => bool) public failTransferToAddresses;

    constructor(uint256 _initialAmount, string memory _tokenName, uint8 _decimalUnits, string memory _tokenSymbol) public
        StandardToken(_initialAmount, _tokenName, _decimalUnits, _tokenSymbol) {}

    function harnessSetFailTransferFromAddress(address src, bool _fail) public {
        failTransferFromAddresses[src] = _fail;
    }

    function harnessSetFailTransferToAddress(address dst, bool _fail) public {
        failTransferToAddresses[dst] = _fail;
    }

    function harnessSetBalance(address _account, uint _amount) public {
        balanceOf[_account] = _amount;
    }

    function transfer(address dst, uint256 amount) external returns (bool success) {
        // Added for testing purposes
        if (failTransferToAddresses[dst]) {
            return false;
        }
        balanceOf[msg.sender] = balanceOf[msg.sender].sub(amount, "Insufficient balance");
        balanceOf[dst] = balanceOf[dst].add(amount, "Balance overflow");
        emit Transfer(msg.sender, dst, amount);
        return true;
    }

    function transferFrom(address src, address dst, uint256 amount) external returns (bool success) {
        // Added for testing purposes
        if (failTransferFromAddresses[src]) {
            return false;
        }
        allowance[src][msg.sender] = allowance[src][msg.sender].sub(amount, "Insufficient allowance");
        balanceOf[src] = balanceOf[src].sub(amount, "Insufficient balance");
        balanceOf[dst] = balanceOf[dst].add(amount, "Balance overflow");
        emit Transfer(src, dst, amount);
        return true;
    }
}

File 3 of 3: SafeMath.sol
pragma solidity ^0.5.16;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
  /**
   * @dev Returns the addition of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `+` operator.
   *
   * Requirements:
   * - Addition cannot overflow.
   */
  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    return add(a, b, "SafeMath: addition overflow");
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    uint256 c = a + b;
    require(c >= a, errorMessage);

    return c;
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    return sub(a, b, "SafeMath: subtraction overflow");
  }

  /**
   * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
   * overflow (when the result is negative).
   *
   * Counterpart to Solidity's `-` operator.
   *
   * Requirements:
   * - Subtraction cannot overflow.
   */
  function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    require(b <= a, errorMessage);
    uint256 c = a - b;

    return c;
  }

  /**
   * @dev Returns the multiplication of two unsigned integers, reverting on
   * overflow.
   *
   * Counterpart to Solidity's `*` operator.
   *
   * Requirements:
   * - Multiplication cannot overflow.
   */
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
    if (a == 0) {
      return 0;
    }

    uint256 c = a * b;
    require(c / a == b, "SafeMath: multiplication overflow");

    return c;
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    return div(a, b, "SafeMath: division by zero");
  }

  /**
   * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
   * division by zero. The result is rounded towards zero.
   *
   * Counterpart to Solidity's `/` operator. Note: this function uses a
   * `revert` opcode (which leaves remaining gas untouched) while Solidity
   * uses an invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    // Solidity only automatically asserts when dividing by 0
    require(b > 0, errorMessage);
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold

    return c;
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    return mod(a, b, "SafeMath: modulo by zero");
  }

  /**
   * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
   * Reverts with custom message when dividing by zero.
   *
   * Counterpart to Solidity's `%` operator. This function uses a `revert`
   * opcode (which leaves remaining gas untouched) while Solidity uses an
   * invalid opcode to revert (consuming all remaining gas).
   *
   * Requirements:
   * - The divisor cannot be zero.
   */
  function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
    require(b != 0, errorMessage);
    return a % b;
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_initialAmount","type":"uint256"},{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"uint8","name":"_decimalUnits","type":"uint8"},{"internalType":"string","name":"_tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"allocateTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610adc380380610adc8339818101604052608081101561003357600080fd5b81516020830180516040519294929383019291908464010000000082111561005a57600080fd5b90830190602082018581111561006f57600080fd5b825164010000000081118282018810171561008957600080fd5b82525081516020918201929091019080838360005b838110156100b657818101518382015260200161009e565b50505050905090810190601f1680156100e35780820380516001836020036101000a031916815260200191505b5060408181526020830151920180519294919391928464010000000082111561010b57600080fd5b90830190602082018581111561012057600080fd5b825164010000000081118282018810171561013a57600080fd5b82525081516020918201929091019080838360005b8381101561016757818101518382015260200161014f565b50505050905090810190601f1680156101945780820380516001836020036101000a031916815260200191505b506040908152600388905533600090815260056020908152918120899055875189955088945087935086926101cd929190860190610203565b5080516101e1906001906020840190610203565b50506002805460ff191660ff929092169190911790555061029e945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061024457805160ff1916838001178555610271565b82800160010185558215610271579182015b82811115610271578251825591602001919060010190610256565b5061027d929150610281565b5090565b61029b91905b8082111561027d5760008155600101610287565b90565b61082f806102ad6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce567146101de57806370a08231146101fc57806395d89b4114610222578063a9059cbb1461022a578063dd62ed3e146102565761009e565b806306fdde03146100a357806308bca56614610120578063095ea7b31461014e57806318160ddd1461018e57806323b872dd146101a8575b600080fd5b6100ab610284565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610312565b005b61017a6004803603604081101561016457600080fd5b506001600160a01b038135169060200135610372565b604080519115158252519081900360200190f35b6101966103d8565b60408051918252519081900360200190f35b61017a600480360360608110156101be57600080fd5b506001600160a01b038135811691602081013590911690604001356103de565b6101e661056a565b6040805160ff9092168252519081900360200190f35b6101966004803603602081101561021257600080fd5b50356001600160a01b0316610573565b6100ab610585565b61017a6004803603604081101561024057600080fd5b506001600160a01b0381351690602001356105df565b6101966004803603604081101561026c57600080fd5b506001600160a01b03813581169160200135166106e8565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b820191906000526020600020905b8154815290600101906020018083116102ed57829003601f168201915b505050505081565b6001600160a01b03821660008181526005602090815260409182902080548501905560038054850190558151848152915130927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35050565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6040805180820182526016815275496e73756666696369656e7420616c6c6f77616e636560501b6020808301919091526001600160a01b0386166000908152600482528381203382529091529182205461043f91849063ffffffff61070516565b6001600160a01b0385166000818152600460209081526040808320338452825280832094909455835180850185526014815273496e73756666696369656e742062616c616e636560601b818301529282526005905291909120546104aa91849063ffffffff61070516565b6001600160a01b0380861660009081526005602081815260408084209590955584518086018652601081526f42616c616e6365206f766572666c6f7760801b81830152938816835252919091205461050991849063ffffffff61079c16565b6001600160a01b0380851660008181526005602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60056020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b6040805180820182526014815273496e73756666696369656e742062616c616e636560601b60208083019190915233600090815260059091529182205461062d91849063ffffffff61070516565b3360009081526005602081815260408084209490945583518085018552601081526f42616c616e6365206f766572666c6f7760801b818301526001600160a01b03881684529190529190205461068a91849063ffffffff61079c16565b6001600160a01b0384166000818152600560209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600460209081526000928352604080842090915290825290205481565b600081848411156107945760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610759578181015183820152602001610741565b50505050905090810190601f1680156107865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600083830182858210156107f15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610759578181015183820152602001610741565b5094935050505056fea265627a7a72315820ec9fbf2d39470c112b647ff35b2761609d1631e5641051da73566d1f7b462b0b64736f6c63430005110032000000000000000000000000000000000000000000f8277896582678ac0000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003535850000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035358500000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

176:440:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;176:440:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1113:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1113:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;430:184:1;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;430:184:1;;;;;;;;:::i;:::-;;2387:206:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2387:206:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1190:26;;;:::i;:::-;;;;;;;;;;;;;;;;1971:410;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1971:410:0;;;;;;;;;;;;;;;;;:::i;1163:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1294:44;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1294:44:0;-1:-1:-1;;;;;1294:44:0;;:::i;1137:20::-;;;:::i;1654:311::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1654:311:0;;;;;;;;:::i;1222:66::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1222:66:0;;;;;;;;;;:::i;1113:18::-;;;;;;;;;;;;;;;-1:-1:-1;;1113:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;430:184:1:-;-1:-1:-1;;;;;498:17:1;;;;;;:9;:17;;;;;;;;;:26;;;;;;534:11;:20;;;;;;569:38;;;;;;;586:4;;569:38;;;;;;;;;430:184;;:::o;2387:206:0:-;2482:10;2456:4;2472:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2472:31:0;;;;;;;;;;;:40;;;2527:38;;;;;;;2456:4;;2472:31;;2482:10;;2527:38;;;;;;;;-1:-1:-1;2582:4:0;2387:206;;;;:::o;1190:26::-;;;;:::o;1971:410::-;2098:64;;;;;;;;;;;-1:-1:-1;;;2098:64:0;;;;;;;;-1:-1:-1;;;;;2098:14:0;;2053:4;2098:14;;;:9;:14;;;;;2113:10;2098:26;;;;;;;;;:64;;2129:6;;2098:64;:30;:64;:::i;:::-;-1:-1:-1;;;;;2069:14:0;;;;;;:9;:14;;;;;;;;2084:10;2069:26;;;;;;;:93;;;;2189:50;;;;;;;;;;-1:-1:-1;;;2189:50:0;;;;:14;;;:9;:14;;;;;;;:50;;2208:6;;2189:50;:18;:50;:::i;:::-;-1:-1:-1;;;;;2172:14:0;;;;;;;:9;:14;;;;;;;;:67;;;;2266:46;;;;;;;;;;-1:-1:-1;;;2266:46:0;;;;:14;;;;;;;;;;;:46;;2285:6;;2266:46;:18;:46;:::i;:::-;-1:-1:-1;;;;;2249:14:0;;;;;;;:9;:14;;;;;;;;;:63;;;;2327:26;;;;;;;2249:14;;2327:26;;;;;;;;;;;;;-1:-1:-1;2370:4:0;1971:410;;;;;:::o;1163:21::-;;;;;;:::o;1294:44::-;;;;;;;;;;;;;:::o;1137:20::-;;;;;;;;;;;;;;;-1:-1:-1;;1137:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1654:311;1759:57;;;;;;;;;;;-1:-1:-1;;;1759:57:0;;;;;;;;1769:10;1719:4;1759:21;;;:9;:21;;;;;;;:57;;1785:6;;1759:57;:25;:57;:::i;:::-;1745:10;1735:21;;;;:9;:21;;;;;;;;:81;;;;1843:46;;;;;;;;;;-1:-1:-1;;;1843:46:0;;;;-1:-1:-1;;;;;1843:14:0;;;;;;;;;;;:46;;1862:6;;1843:46;:18;:46;:::i;:::-;-1:-1:-1;;;;;1826:14:0;;;;;;:9;:14;;;;;;;;;:63;;;;1904:33;;;;;;;1826:14;;1913:10;;1904:33;;;;;;;;;;-1:-1:-1;1954:4:0;1654:311;;;;:::o;1222:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;2013:173:2:-;2099:7;2130:12;2122:6;;;;2114:29;;;;-1:-1:-1;;;2114:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2114:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2161:5:2;;;2013:173::o;1204:::-;1290:7;1317:5;;;1344:12;1336:6;;;;1328:29;;;;-1:-1:-1;;;1328:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;1328:29:2;-1:-1:-1;1371:1:2;1204:173;-1:-1:-1;;;;1204:173:2:o

Swarm Source

bzzr://ec9fbf2d39470c112b647ff35b2761609d1631e5641051da73566d1f7b462b0b
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading