Contract 0xc5092f04f02f0848521b5c33cb95c76265a3023d

Contract Overview

Balance:
0 BTT
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf4db00ff4cca0b52a5b01ce4b1898be4712fcde51bb471e5b164627248ba343bApprove81269062022-06-09 17:14:49180 days 13 hrs ago0x723e4bcb20008e7d1467a58a613d201b4da5419d IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT13.9098
0x2838cf885063a5f1a0fa2685011c32cd0f5364f7c4c627deda4de05ba9f21241Transfer80439132022-06-07 12:33:15182 days 18 hrs ago0xf0545b7343486afbe521db4afec0be2f738d9f1d IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT15.4746
0x7adb922afffb662e8f91c0b4313c092f3db82f6f426541e1f40d8e0921fe4f4aTransfer78776472022-06-03 3:00:11187 days 3 hrs ago0xa59340a7670c014ac038105ec04495d796169c00 IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT15.4782
0x71aa57c936bfa97fb25a4a4fb3e84926c4c58404b949a8fbc293dc72f6e1a960Transfer78762762022-06-03 2:08:45187 days 4 hrs ago0xa59340a7670c014ac038105ec04495d796169c00 IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT15.471
0x006f4492af633f066d823b90011fd4fe22061a1b308c2344573c25c43a5f1bd1Approve77922482022-05-31 19:57:19189 days 10 hrs ago0x017e10efdb065ca88fcb62452227d9a8bbeb3cbb IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT13.9098
0x297b2396373e52ab7047fb9e7b892fc9a816df18070cf410c71afa936a4bda48Transfer77921362022-05-31 19:53:31189 days 10 hrs ago0xf0545b7343486afbe521db4afec0be2f738d9f1d IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT15.4782
0x4ff8079075bfee84ea87df3378adcb9e9aed89529eb3e0d4e88006f02cc24447Approve77457982022-05-30 14:08:35190 days 16 hrs ago0xa59340a7670c014ac038105ec04495d796169c00 IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT13.9098
0xf3d852c948c3738a8f67422ecccc1095c26c1ba29436c074968021ce8c6523acAllocate To76202032022-05-27 14:10:59193 days 16 hrs ago0xf0545b7343486afbe521db4afec0be2f738d9f1d IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT10.1565
0x91e8a9640c9f354302c45ea33b35923f447a684e6ab168c7050f9d48b966047fAllocate To76199402022-05-27 14:01:57193 days 16 hrs ago0xf0545b7343486afbe521db4afec0be2f738d9f1d IN  0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT15.2721
0x04550b7c97fdd64442fe2c81c0ff634052e449f02368b3414b65ca68b7ae96cb0x6080604071548052022-05-16 11:31:55204 days 19 hrs ago0xa59340a7670c014ac038105ec04495d796169c00 IN  Contract Creation0 BTT188.8875
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x98ceb30c66d88170e25bf9cc2744d90d656482640bea45e8d471a4c0e9817623108434262022-08-18 20:56:49110 days 9 hrs ago 0x642d09e9a9b97982c54ee31b97f01fc893ee9d78 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x98ceb30c66d88170e25bf9cc2744d90d656482640bea45e8d471a4c0e9817623108434262022-08-18 20:56:49110 days 9 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x3d461ecf23bd5b1bb2c8c2f94031b6946d1fa65ea736240cc377847ba3da8a9c108388052022-08-18 18:17:59110 days 12 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x3d461ecf23bd5b1bb2c8c2f94031b6946d1fa65ea736240cc377847ba3da8a9c108388052022-08-18 18:17:59110 days 12 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x3d461ecf23bd5b1bb2c8c2f94031b6946d1fa65ea736240cc377847ba3da8a9c108388052022-08-18 18:17:59110 days 12 hrs ago 0x642d09e9a9b97982c54ee31b97f01fc893ee9d78 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x3d461ecf23bd5b1bb2c8c2f94031b6946d1fa65ea736240cc377847ba3da8a9c108388052022-08-18 18:17:59110 days 12 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x3d461ecf23bd5b1bb2c8c2f94031b6946d1fa65ea736240cc377847ba3da8a9c108388052022-08-18 18:17:59110 days 12 hrs ago 0x642d09e9a9b97982c54ee31b97f01fc893ee9d78 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x3d461ecf23bd5b1bb2c8c2f94031b6946d1fa65ea736240cc377847ba3da8a9c108388052022-08-18 18:17:59110 days 12 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xc7b609dfa3aa439132f4a443b80c331218ec643bace3ac66dc5df161f1e6fc9c108318092022-08-18 14:17:31110 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xc7b609dfa3aa439132f4a443b80c331218ec643bace3ac66dc5df161f1e6fc9c108318092022-08-18 14:17:31110 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xc7b609dfa3aa439132f4a443b80c331218ec643bace3ac66dc5df161f1e6fc9c108318092022-08-18 14:17:31110 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xc7b609dfa3aa439132f4a443b80c331218ec643bace3ac66dc5df161f1e6fc9c108318092022-08-18 14:17:31110 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xc7b609dfa3aa439132f4a443b80c331218ec643bace3ac66dc5df161f1e6fc9c108318092022-08-18 14:17:31110 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x942ddb0b626a1bccb6e6eb9000b16bce8dc6ea0949a6fb6440cb83eb49241d66104542742022-08-09 13:59:45119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x942ddb0b626a1bccb6e6eb9000b16bce8dc6ea0949a6fb6440cb83eb49241d66104542742022-08-09 13:59:45119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x942ddb0b626a1bccb6e6eb9000b16bce8dc6ea0949a6fb6440cb83eb49241d66104542742022-08-09 13:59:45119 days 16 hrs ago 0x642d09e9a9b97982c54ee31b97f01fc893ee9d78 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x942ddb0b626a1bccb6e6eb9000b16bce8dc6ea0949a6fb6440cb83eb49241d66104542742022-08-09 13:59:45119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x942ddb0b626a1bccb6e6eb9000b16bce8dc6ea0949a6fb6440cb83eb49241d66104542742022-08-09 13:59:45119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x942ddb0b626a1bccb6e6eb9000b16bce8dc6ea0949a6fb6440cb83eb49241d66104542742022-08-09 13:59:45119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x181305ff8ac8d8a24912b6266a3cd6c488b6374948a068780eaa382a3af8d5fa104542262022-08-09 13:58:05119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x181305ff8ac8d8a24912b6266a3cd6c488b6374948a068780eaa382a3af8d5fa104542262022-08-09 13:58:05119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x181305ff8ac8d8a24912b6266a3cd6c488b6374948a068780eaa382a3af8d5fa104542262022-08-09 13:58:05119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0x181305ff8ac8d8a24912b6266a3cd6c488b6374948a068780eaa382a3af8d5fa104542262022-08-09 13:58:05119 days 16 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xfa37d09e39711331f42ac10d671c6ca474c14b028caed8a70d596a205e6b76a282630452022-06-13 7:40:33176 days 23 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
0xfa37d09e39711331f42ac10d671c6ca474c14b028caed8a70d596a205e6b76a282630452022-06-13 7:40:33176 days 23 hrs ago 0xaa288edc5b1520e6ca78818aa6b38aa54f2aa00f 0xc5092f04f02f0848521b5c33cb95c76265a3023d0 BTT
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x4CeBe90fF9FAE0827Bd3554474de71a0b7AfDD30

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)

/**
 *Submitted for verification at testnet.bttcscan.com on 2022-05-26
*/

// File: contracts/SafeMath.sol

pragma solidity ^0.5.16;

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting with custom message on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition 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 underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction underflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    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 multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) 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, errorMessage);

        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;
    }
}

// File: tests/Contracts/ERC20.sol

pragma solidity ^0.5.16;


interface ERC20Base {
    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 ERC20 is ERC20Base {
    function transfer(address to, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

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

/**
 * @title Standard ERC20 token
 * @dev Implementation of the basic standard token.
 *  See https://github.com/ethereum/EIPs/issues/20
 */
contract StandardToken is ERC20 {
    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 ERC20 token
 * @dev Version of ERC20 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 ERC20NS {
    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 ERC20Harness 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: tests/Contracts/FaucetToken.sol

pragma solidity ^0.5.16;


/**
 * @title The Aquarius Faucet Test Token
 * @author Aquarius
 * @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 Aquarius Faucet Test Token (non-standard)
 * @author Aquarius
 * @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 Aquarius Faucet Re-Entrant Test Token
 * @author Aquarius
 * @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);
    }
}

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"}]

608060405234801561001057600080fd5b50604051610adc380380610adc8339818101604052608081101561003357600080fd5b81516020830180516040519294929383019291908464010000000082111561005a57600080fd5b90830190602082018581111561006f57600080fd5b825164010000000081118282018810171561008957600080fd5b82525081516020918201929091019080838360005b838110156100b657818101518382015260200161009e565b50505050905090810190601f1680156100e35780820380516001836020036101000a031916815260200191505b5060408181526020830151920180519294919391928464010000000082111561010b57600080fd5b90830190602082018581111561012057600080fd5b825164010000000081118282018810171561013a57600080fd5b82525081516020918201929091019080838360005b8381101561016757818101518382015260200161014f565b50505050905090810190601f1680156101945780820380516001836020036101000a031916815260200191505b506040908152600388905533600090815260056020908152918120899055875189955088945087935086926101cd929190860190610203565b5080516101e1906001906020840190610203565b50506002805460ff191660ff929092169190911790555061029e945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061024457805160ff1916838001178555610271565b82800160010185558215610271579182015b82811115610271578251825591602001919060010190610256565b5061027d929150610281565b5090565b61029b91905b8082111561027d5760008155600101610287565b90565b61082f806102ad6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce567146101de57806370a08231146101fc57806395d89b4114610222578063a9059cbb1461022a578063dd62ed3e146102565761009e565b806306fdde03146100a357806308bca56614610120578063095ea7b31461014e57806318160ddd1461018e57806323b872dd146101a8575b600080fd5b6100ab610284565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610312565b005b61017a6004803603604081101561016457600080fd5b506001600160a01b038135169060200135610372565b604080519115158252519081900360200190f35b6101966103d8565b60408051918252519081900360200190f35b61017a600480360360608110156101be57600080fd5b506001600160a01b038135811691602081013590911690604001356103de565b6101e661056a565b6040805160ff9092168252519081900360200190f35b6101966004803603602081101561021257600080fd5b50356001600160a01b0316610573565b6100ab610585565b61017a6004803603604081101561024057600080fd5b506001600160a01b0381351690602001356105df565b6101966004803603604081101561026c57600080fd5b506001600160a01b03813581169160200135166106e8565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b820191906000526020600020905b8154815290600101906020018083116102ed57829003601f168201915b505050505081565b6001600160a01b03821660008181526005602090815260409182902080548501905560038054850190558151848152915130927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a35050565b3360008181526004602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6040805180820182526016815275496e73756666696369656e7420616c6c6f77616e636560501b6020808301919091526001600160a01b0386166000908152600482528381203382529091529182205461043f91849063ffffffff61070516565b6001600160a01b0385166000818152600460209081526040808320338452825280832094909455835180850185526014815273496e73756666696369656e742062616c616e636560601b818301529282526005905291909120546104aa91849063ffffffff61070516565b6001600160a01b0380861660009081526005602081815260408084209590955584518086018652601081526f42616c616e6365206f766572666c6f7760801b81830152938816835252919091205461050991849063ffffffff61079c16565b6001600160a01b0380851660008181526005602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60025460ff1681565b60056020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561030a5780601f106102df5761010080835404028352916020019161030a565b6040805180820182526014815273496e73756666696369656e742062616c616e636560601b60208083019190915233600090815260059091529182205461062d91849063ffffffff61070516565b3360009081526005602081815260408084209490945583518085018552601081526f42616c616e6365206f766572666c6f7760801b818301526001600160a01b03881684529190529190205461068a91849063ffffffff61079c16565b6001600160a01b0384166000818152600560209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b600460209081526000928352604080842090915290825290205481565b600081848411156107945760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610759578181015183820152602001610741565b50505050905090810190601f1680156107865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600083830182858210156107f15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610759578181015183820152602001610741565b5094935050505056fea265627a7a72315820ae82106ebf470d9e168aad5b2b44afce85b47b8ccd44a319a64d7e03e242a9f964736f6c63430005110032000000000000000000000000000000000000000c9f2c9cd04674edea400000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000006555344545f65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553445400000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

13260:450:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13260:450:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7793:18;;;:::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;7793:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13519:188;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;13519:188:0;;;;;;;;:::i;:::-;;9097:210;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;9097:210:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;7873:26;;;:::i;:::-;;;;;;;;;;;;;;;;8673:416;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;8673:416:0;;;;;;;;;;;;;;;;;:::i;7845:21::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;7979:44;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7979:44:0;-1:-1:-1;;;;;7979:44:0;;:::i;7818:20::-;;;:::i;8349:316::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;8349:316:0;;;;;;;;:::i;7906:66::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;7906:66:0;;;;;;;;;;:::i;7793:18::-;;;;;;;;;;;;;;;-1:-1:-1;;7793:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;13519:188::-;-1:-1:-1;;;;;13588:17:0;;;;;;:9;:17;;;;;;;;;:26;;;;;;13625:11;:20;;;;;;13661:38;;;;;;;13678:4;;13661:38;;;;;;;;;13519:188;;:::o;9097:210::-;9193:10;9166:4;9183:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;9183:31:0;;;;;;;;;;;:40;;;9239:38;;;;;;;9166:4;;9183:31;;9193:10;;9239:38;;;;;;;;-1:-1:-1;9295:4:0;9097:210;;;;:::o;7873:26::-;;;;:::o;8673:416::-;8801:64;;;;;;;;;;;-1:-1:-1;;;8801:64:0;;;;;;;;-1:-1:-1;;;;;8801:14:0;;8755:4;8801:14;;;:9;:14;;;;;8816:10;8801:26;;;;;;;;;:64;;8832:6;;8801:64;:30;:64;:::i;:::-;-1:-1:-1;;;;;8772:14:0;;;;;;:9;:14;;;;;;;;8787:10;8772:26;;;;;;;:93;;;;8893:50;;;;;;;;;;-1:-1:-1;;;8893:50:0;;;;:14;;;:9;:14;;;;;;;:50;;8912:6;;8893:50;:18;:50;:::i;:::-;-1:-1:-1;;;;;8876:14:0;;;;;;;:9;:14;;;;;;;;:67;;;;8971:46;;;;;;;;;;-1:-1:-1;;;8971:46:0;;;;:14;;;;;;;;;;;:46;;8990:6;;8971:46;:18;:46;:::i;:::-;-1:-1:-1;;;;;8954:14:0;;;;;;;:9;:14;;;;;;;;;:63;;;;9033:26;;;;;;;8954:14;;9033:26;;;;;;;;;;;;;-1:-1:-1;9077:4:0;8673:416;;;;;:::o;7845:21::-;;;;;;:::o;7979:44::-;;;;;;;;;;;;;:::o;7818:20::-;;;;;;;;;;;;;;;-1:-1:-1;;7818:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8349:316;8455:57;;;;;;;;;;;-1:-1:-1;;;8455:57:0;;;;;;;;8465:10;8414:4;8455:21;;;:9;:21;;;;;;;:57;;8481:6;;8455:57;:25;:57;:::i;:::-;8441:10;8431:21;;;;:9;:21;;;;;;;;:81;;;;8540:46;;;;;;;;;;-1:-1:-1;;;8540:46:0;;;;-1:-1:-1;;;;;8540:14:0;;;;;;;;;;;:46;;8559:6;;8540:46;:18;:46;:::i;:::-;-1:-1:-1;;;;;8523:14:0;;;;;;:9;:14;;;;;;;;;:63;;;;8602:33;;;;;;;8523:14;;8611:10;;8602:33;;;;;;;;;;-1:-1:-1;8653:4:0;8349:316;;;;:::o;7906:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;2340:192::-;2426:7;2462:12;2454:6;;;;2446:29;;;;-1:-1:-1;;;2446:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;2446:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2498:5:0;;;2340:192::o;1453:::-;1539:7;1571:5;;;1603:12;1595:6;;;;1587:29;;;;-1:-1:-1;;;1587:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;1587:29:0;-1:-1:-1;1636:1:0;1453:192;-1:-1:-1;;;;1453:192:0:o

Swarm Source

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