Contract 0x3a45ff7fb721580619070422f32bbfd80555fdce

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x85f304839d2e5eea56845ecb795cee7e253eb5fea0304961766ad6b3b1279d0fPay Token(pending)2021-10-18 10:31:531 sec ago0xb4c3a918ae67b1f7ad364b73e96ae64f3cb7477e IN 0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB(Pending)
0x30cc571861fbbfe22f381c3f86310f7bf935d77a51b53decbb27acc4370b1926Pay Token(pending)2021-10-18 10:31:531 sec ago0xd35aaf17911cb7c7404b7117a90fc3148b5d7b27 IN 0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB(Pending)
0x2e4fe71103b9b0a03b3191ba91fe1921a570e06a0bfb90da04a83d692a84e17aPay Token118773852021-10-18 10:31:4212 secs ago0xe130648a348c4c172dd1483c451e97fb93fdde3a IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x672fd5cc6e22230f811aabaef2fbd197e469c4be911336ca615b4cc047e3c343Pay Token118773822021-10-18 10:31:3321 secs ago0x687c50ca099d2441b204301694b250520246ee4c IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x4b2970a930efb6ed8603081b269f928e75846a043e4c5ce1a3ff1c62889c3d30Pay Token118773792021-10-18 10:31:2430 secs ago0x0493a78c5039a90da21df899ac0df047ebca5152 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xa86598b7fb4cf85ed53fa206faea5df8fc63c6784cb118b23b1a98492bb5cdb0Pay Token118773772021-10-18 10:31:1836 secs ago0xf2f048a60e1315051f1e1a3ba0fedf6fe5317910 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x68988e8736485a8ff2108b0efc2213aed3a165a8342d14d94da4288e8c2a89c2Pay Token118773762021-10-18 10:31:1539 secs ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x97e9899e5d307433f62eaf6221a20bf39d887b1639df645d8788806b1d6f07c8Pay Token118773722021-10-18 10:31:0351 secs ago0x805982cf33fc9dc1641662148a0cee6e74c05a68 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x30aa305923ddc8ff6872826eab111f603af41230f7f12b5ea0d1700b0816658aPay Token118773632021-10-18 10:30:361 min ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x3709d33be7528ef73c6b66b1cd70c1e49dc04946d59182ad1e83df2a90e6056fPay Token118773502021-10-18 10:29:571 min ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xada9d2d43aa991ce32d9363e897eb39be88ed31277b020dcb6fa5d7f7a317445Pay Token118773502021-10-18 10:29:571 min ago0xe2339c66d51b252fd66e79a46757c5edc4205a29 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x705b62facd46e85bb646eeae5a85fd94396bd5f18568b20014e8b018d09a91c0Pay Token118773392021-10-18 10:29:242 mins ago0xe0f7d1aad01ee228d20365e87c519a7d825d24d7 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xb5aa41a16272020def0f72f2a1d5445350812f4b4408e52e2194e9e2c33d83adPay Token118773392021-10-18 10:29:242 mins ago0x8e8b8884f6309648768068a8a997b74d55596d58 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x14cde7acc130687922d0d99079e298e2c9abf581faa4edfde708e8d85eff1ee3Pay Token118773342021-10-18 10:29:092 mins ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xc46fc7f15214df3a9b5c89f60906f3b3c06436292cc8bc915ba86aa0ef06c385Pay Token118773172021-10-18 10:28:183 mins ago0xb4c3a918ae67b1f7ad364b73e96ae64f3cb7477e IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xc031a42ed7378c4ea7dad03f93104ab3923ead946be97b0e668c4a5aebf0725cPay Token118773162021-10-18 10:28:153 mins ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x627e552e144b8b1ccb2e75157c4779c641806be587faeab24b0cb826eb8f1f0aPay Token118773032021-10-18 10:27:364 mins ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xa0fd79175f226f1d576d879c5daf08b3f365bf88c8313e96b0e8e4e0b3f49731Pay Token118772972021-10-18 10:27:184 mins ago0xe2339c66d51b252fd66e79a46757c5edc4205a29 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x328a6b8aa44d1d4f10b666ab8ec4fe62ff06daaa8764da502112991386fe6a1ePay Token118772912021-10-18 10:27:004 mins ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xb8c7bb5058149925f7ba7099ea181e6ead0c8ad1831a885942774e435db7508aPay Token118772792021-10-18 10:26:245 mins ago0xe2339c66d51b252fd66e79a46757c5edc4205a29 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xcd8a14073a63524dc4e51504bc29fe981f8286fdc100dbe6191951f412e3a12aPay Token118772742021-10-18 10:26:095 mins ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x15fff95d931773276b623c347b44999606ffd9f3374e15b13114508b8fa0b5e6Pay Token118772722021-10-18 10:26:035 mins ago0x8e8b8884f6309648768068a8a997b74d55596d58 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x7331ec1ce3b9902153deb732074f8b5c2a28db4fd74c76ddd08123940105b893Pay Token118772622021-10-18 10:25:336 mins ago0xb4c3a918ae67b1f7ad364b73e96ae64f3cb7477e IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0x62c9962a9ec6fc35aece403467ea79ce27bf486a30ab7a902e23242bd57cf0d1Pay Token118772562021-10-18 10:25:156 mins ago0xe2339c66d51b252fd66e79a46757c5edc4205a29 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
0xb30ab89cf9c90c9050cffadb018f33d758d1657bcf1ee8a69535f8f228dfb57ePay Token118772482021-10-18 10:24:517 mins ago0xbac26d4c5b88666d92a91b7feadf4f79b6368ab1 IN  0x3a45ff7fb721580619070422f32bbfd80555fdce0 BNB0.0002707
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PaymentsCollector

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 7: PaymentsCollector.sol
pragma solidity ^0.5.8;

import "./Ownable.sol";
import "./IERC20.sol";
import "./SafeERC20.sol";

// TODO - Safe ERC20: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol

contract PaymentsCollector is Ownable {

    address[] public tokens;
    address withdrawer;
    address payable acceptor;

    event EthPayment(address indexed buyer, uint256 indexed amount, string orderId);
    event TokenPayment(address indexed token, address indexed buyer, uint256 indexed amount, string orderId);

    constructor(address payable _acceptor) public {
        require(_acceptor != address(0), "PaymentsCollector: Acceptor Cannot Be Empty");
        acceptor = _acceptor;
    }

    // PAYMENTS

    function payEth(string memory _orderId) public payable {
        require(msg.value > 0, "PaymentsCollector: Cannot Pay 0 ETH");
        emit EthPayment(msg.sender, msg.value, _orderId);
    }

    function payToken(address _tokenAddr, uint256 _amount, string memory _orderId) public isWhitelisted(_tokenAddr) {
        require(_amount > 0, "PaymentsCollector: Cannot Pay 0 Tokens");

        IERC20 token = IERC20(_tokenAddr);
        SafeERC20.safeTransferFrom(token, msg.sender, address(this), _amount);

        emit TokenPayment(_tokenAddr, msg.sender, _amount, _orderId);
    }

    // WITHDRAWLS

    function withdrawEth() public onlyWithdrawer() {
        require(address(this).balance > 0, "PaymentsCollector: No Eth");
        acceptor.transfer(address(this).balance);
    }

    function withdrawToken(address _tokenAddr) public onlyWithdrawer() isWhitelisted(_tokenAddr) {
        IERC20 token = IERC20(_tokenAddr);
        uint256 balance = token.balanceOf(address(this));

        require(balance > 0, "PaymentsCollector: No Token Balance");

        SafeERC20.safeTransfer(token, acceptor, balance);
    }

    //  ADMINISTRATION

    function setWithdrawer(address _newWithdrawer) public onlyOwner() {
        withdrawer = _newWithdrawer;
    }

    function setAcceptor(address payable _newAcceptor) public onlyOwner() {
        require(acceptor != address(0), "PaymentsCollector: Acceptor Cannot Be Empty");
        acceptor = _newAcceptor;
    }

    function whitelist(address _tokenAddr) public onlyOwner() isNotWhitelisted(_tokenAddr) {
        tokens.push(_tokenAddr);
    }

    function delist(address _tokenAddr) public onlyOwner() {
        for(uint i = 0; i < tokens.length; i++) {

            if (tokens[i] == _tokenAddr) {
                if (i < (tokens.length - 1)) {
                    tokens[i] = tokens[tokens.length - 1];
                }

                tokens.length -= 1;
                return;
            }
        }

        require(false, "PaymentsCollector: Token Not Whitelisted");
    }

    // VIEWS

    function numTokens() public view returns(uint256) {
        return tokens.length;
    }

    // FALLBACK

    function() external payable {
        require(false, "PaymentsCollector: Cannot Pay Direct To Contract");
    }

    // MODIFIERS

    modifier isNotWhitelisted(address _tokenAddr) {
        for(uint i = 0; i < tokens.length; i++) {
            require(tokens[i] != _tokenAddr, "PaymentsCollector: Token Already Listed");
        }

        _;
    }

    modifier isWhitelisted(address _tokenAddr) {
        bool tokenFound = false;

        for(uint i = 0; i < tokens.length; i++) {
            if (tokens[i] == _tokenAddr) {
                tokenFound = true;
                break;
            }
        }

        require(tokenFound, "PaymentsCollector: Token Not Approved");
        _;
    }

    modifier onlyWithdrawer() {
        require(msg.sender == withdrawer, "PaymentsCollector: Not Withdrawer");
        _;
    }
}

File 2 of 7: Address.sol
pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * IMPORTANT: It is unsafe to assume that an address for which this
     * function returns false is an externally-owned account (EOA) and not a
     * contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

File 3 of 7: Context.sol
pragma solidity ^0.5.8;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 4 of 7: IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 7: Ownable.sol
pragma solidity ^0.5.8;

import "./Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 6 of 7: SafeERC20.sol
pragma solidity ^0.5.8;

import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 7: SafeMath.sol
pragma solidity ^0.5.0;

/**
 * @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 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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_acceptor","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"orderId","type":"string"}],"name":"EthPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"orderId","type":"string"}],"name":"TokenPayment","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"}],"name":"delist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"numTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_orderId","type":"string"}],"name":"payEth","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_orderId","type":"string"}],"name":"payToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"_newAcceptor","type":"address"}],"name":"setAcceptor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newWithdrawer","type":"address"}],"name":"setWithdrawer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"}],"name":"whitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawEth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddr","type":"address"}],"name":"withdrawToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405162002054380380620020548339818101604052602081101561003557600080fd5b810190808051906020019092919050505060006100566101c260201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561017b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018062002029602b913960400191505060405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506101ca565b600033905090565b611e4f80620001da6000396000f3fe6080604052600436106100dd5760003560e01c80638e499bcf1161007f5780639b19251a116100595780639b19251a146104af578063a0ef91df14610500578063af7d51f514610517578063f2fde38b146105d2576100dd565b80638e499bcf146104045780638f32d59b1461042f57806391ab88eb1461045e576100dd565b80636b2cc75c116100bb5780636b2cc75c146102f4578063715018a614610345578063894760691461035c5780638da5cb5b146103ad576100dd565b80630d174c24146101365780634f64b2be146101875780635db537f414610202575b6000610134576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180611c6f6030913960400191505060405180910390fd5b005b34801561014257600080fd5b506101856004803603602081101561015957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610623565b005b34801561019357600080fd5b506101c0600480360360208110156101aa57600080fd5b81019080803590602001909291905050506106e1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561020e57600080fd5b506102f26004803603606081101561022557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561026c57600080fd5b82018360208201111561027e57600080fd5b803590602001918460018302840111640100000000831117156102a057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061071d565b005b34801561030057600080fd5b506103436004803603602081101561031757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061094b565b005b34801561035157600080fd5b5061035a610b6d565b005b34801561036857600080fd5b506103ab6004803603602081101561037f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ca6565b005b3480156103b957600080fd5b506103c2610f8b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561041057600080fd5b50610419610fb4565b6040518082815260200191505060405180910390f35b34801561043b57600080fd5b50610444610fc1565b604051808215151515815260200191505060405180910390f35b34801561046a57600080fd5b506104ad6004803603602081101561048157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061101f565b005b3480156104bb57600080fd5b506104fe600480360360208110156104d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611185565b005b34801561050c57600080fd5b50610515611347565b005b6105d06004803603602081101561052d57600080fd5b810190808035906020019064010000000081111561054a57600080fd5b82018360208201111561055c57600080fd5b8035906020019184600183028401116401000000008311171561057e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506114ce565b005b3480156105de57600080fd5b50610621600480360360208110156105f557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115de565b005b61062b610fc1565b61069d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600181815481106106ee57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b82600080905060008090505b6001805490508110156107b7578273ffffffffffffffffffffffffffffffffffffffff166001828154811061075a57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156107aa57600191506107b7565b8080600101915050610729565b508061080e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180611d306025913960400191505060405180910390fd5b60008411610867576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611d556026913960400191505060405180910390fd5b600085905061087881333088611664565b843373ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f873f5ee4a898873e02cea5b71079e1157f925971e58b687b1602228ac4be715a876040518080602001828103825283818151815260200191508051906020019080838360005b838110156109095780820151818401526020810190506108ee565b50505050905090810190601f1680156109365780820380516001836020036101000a031916815260200191505b509250505060405180910390a4505050505050565b610953610fc1565b6109c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b600180549050811015610b11578173ffffffffffffffffffffffffffffffffffffffff16600182815481106109fc57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610b04576001808054905003811015610ae65760018080805490500381548110610a6557fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660018281548110610a9d57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60018081818054905003915081610afd9190611c1d565b5050610b6a565b80806001019150506109cb565b506000610b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180611d7b6028913960400191505060405180910390fd5b5b50565b610b75610fc1565b610be7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611d0f6021913960400191505060405180910390fd5b80600080905060008090505b600180549050811015610de6578273ffffffffffffffffffffffffffffffffffffffff1660018281548110610d8957fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610dd95760019150610de6565b8080600101915050610d58565b5080610e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180611d306025913960400191505060405180910390fd5b600083905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ec157600080fd5b505afa158015610ed5573d6000803e3d6000fd5b505050506040513d6020811015610eeb57600080fd5b8101908080519060200190929190505050905060008111610f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611da36023913960400191505060405180910390fd5b610f8482600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361176a565b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600180549050905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661100361183b565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b611027610fc1565b611099576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611141576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611df0602b913960400191505060405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61118d610fc1565b6111ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060008090505b6001805490508110156112dc578173ffffffffffffffffffffffffffffffffffffffff166001828154811061123757fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156112cf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180611c9f6027913960400191505060405180910390fd5b8080600101915050611206565b5060018290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113ed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611d0f6021913960400191505060405180910390fd5b60004711611463576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f5061796d656e7473436f6c6c6563746f723a204e6f204574680000000000000081525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156114cb573d6000803e3d6000fd5b50565b60003411611527576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611cec6023913960400191505060405180910390fd5b343373ffffffffffffffffffffffffffffffffffffffff167f0b4a40c9e8bb67e4d31afa8d694250a240e45548561e742ae0cefc575f6fa916836040518080602001828103825283818151815260200191508051906020019080838360005b838110156115a1578082015181840152602081019050611586565b50505050905090810190601f1680156115ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390a350565b6115e6610fc1565b611658576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61166181611843565b50565b611764848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611987565b50505050565b611836838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611987565b505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118c9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611cc66026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6119a68273ffffffffffffffffffffffffffffffffffffffff16611bd2565b611a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310611a675780518252602082019150602081019050602083039250611a44565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ac9576040519150601f19603f3d011682016040523d82523d6000602084013e611ace565b606091505b509150915081611b46576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115611bcc57808060200190516020811015611b6557600080fd5b8101908080519060200190929190505050611bcb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611dc6602a913960400191505060405180910390fd5b5b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91506000801b8214158015611c145750808214155b92505050919050565b815481835581811115611c4457818360005260206000209182019101611c439190611c49565b5b505050565b611c6b91905b80821115611c67576000816000905550600101611c4f565b5090565b9056fe5061796d656e7473436f6c6c6563746f723a2043616e6e6f74205061792044697265637420546f20436f6e74726163745061796d656e7473436f6c6c6563746f723a20546f6b656e20416c7265616479204c69737465644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735061796d656e7473436f6c6c6563746f723a2043616e6e6f74205061792030204554485061796d656e7473436f6c6c6563746f723a204e6f7420576974686472617765725061796d656e7473436f6c6c6563746f723a20546f6b656e204e6f7420417070726f7665645061796d656e7473436f6c6c6563746f723a2043616e6e6f7420506179203020546f6b656e735061796d656e7473436f6c6c6563746f723a20546f6b656e204e6f742057686974656c69737465645061796d656e7473436f6c6c6563746f723a204e6f20546f6b656e2042616c616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645061796d656e7473436f6c6c6563746f723a204163636570746f722043616e6e6f7420426520456d707479a265627a7a723158203cc68a0a51564fc9003a5cf7aab28004c6d2fae4703f2a591e2ca95bbcc8434164736f6c634300051100325061796d656e7473436f6c6c6563746f723a204163636570746f722043616e6e6f7420426520456d707479000000000000000000000000547f5b802486e881d4805aa9605e3d67e52a8904

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000547f5b802486e881d4805aa9605e3d67e52a8904

-----Decoded View---------------
Arg [0] : _acceptor (address): 0x547f5b802486e881d4805aa9605e3d67e52a8904

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000547f5b802486e881d4805aa9605e3d67e52a8904


Deployed ByteCode Sourcemap

233:3632:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3052:5;3044:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;233:3632;1951:112;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1951:112:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1951:112:4;;;;;;;;;;;;;;;;;;;:::i;:::-;;280:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;280:23:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;280:23:4;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;971:392;;8:9:-1;5:2;;;30:1;27;20:12;5:2;971:392:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;971:392:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;971:392:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;971:392:4;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;971:392:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;971:392:4;;;;;;;;;;;;;;;:::i;:::-;;2417:448;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2417:448:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2417:448:4;;;;;;;;;;;;;;;;;;;:::i;:::-;;1734:140:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1734:140:3;;;:::i;:::-;;1580:337:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1580:337:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1580:337:4;;;;;;;;;;;;;;;;;;;:::i;:::-;;923:79:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;923:79:3;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2889:89:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2889:89:4;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1289:94:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1289:94:3;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2071:201:4;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2071:201:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2071:201:4;;;;;;;;;;;;;;;;;;;:::i;:::-;;2280:129;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2280:129:4;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2280:129:4;;;;;;;;;;;;;;;;;;;:::i;:::-;;1392:180;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1392:180:4;;;:::i;:::-;;769:194;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;769:194:4;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;769:194:4;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;769:194:4;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;769:194:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;769:194:4;;;;;;;;;;;;;;;:::i;:::-;;2029:109:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2029:109:3;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2029:109:3;;;;;;;;;;;;;;;;;;;:::i;:::-;;1951:112:4;1135:9:3;:7;:9::i;:::-;1127:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2041:14:4;2028:10;;:27;;;;;;;;;;;;;;;;;;1951:112;:::o;280:23::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;971:392::-;1071:10;3428:15;3446:5;3428:23;;3468:6;3477:1;3468:10;;3464:171;3484:6;:13;;;;3480:1;:17;3464:171;;;3536:10;3523:23;;:6;3530:1;3523:9;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;3519:105;;;3580:4;3567:17;;3603:5;;3519:105;3499:3;;;;;;;3464:171;;;;3655:10;3647:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1112:1;1102:7;:11;1094:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1169:12;1191:10;1169:33;;1213:69;1240:5;1247:10;1267:4;1274:7;1213:26;:69::i;:::-;1337:7;1325:10;1300:55;;1313:10;1300:55;;;1346:8;1300:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1300:55:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3718:1;971:392;;;;;:::o;2417:448::-;1135:9:3;:7;:9::i;:::-;1127:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2487:6:4;2496:1;2487:10;;2483:304;2503:6;:13;;;;2499:1;:17;2483:304;;;2557:10;2544:23;;:6;2551:1;2544:9;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;2540:236;;;2613:1;2597:6;:13;;;;:17;2592:1;:23;2588:109;;;2652:6;2675:1;2659:6;:13;;;;:17;2652:25;;;;;;;;;;;;;;;;;;;;;;;;;2640:6;2647:1;2640:9;;;;;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;2588:109;2734:1;2717:6;:18;;;;;;;;;;;;;;:::i;:::-;;2754:7;;;2540:236;2518:3;;;;;;;2483:304;;;;2807:5;2799:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1192:1:3;2417:448:4;:::o;1734:140:3:-;1135:9;:7;:9::i;:::-;1127:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1833:1;1796:40;;1817:6;;;;;;;;;;;1796:40;;;;;;;;;;;;1864:1;1847:6;;:19;;;;;;;;;;;;;;;;;;1734:140::o;1580:337:4:-;3794:10;;;;;;;;;;;3780:24;;:10;:24;;;3772:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1661:10;3428:15;3446:5;3428:23;;3468:6;3477:1;3468:10;;3464:171;3484:6;:13;;;;3480:1;:17;3464:171;;;3536:10;3523:23;;:6;3530:1;3523:9;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;3519:105;;;3580:4;3567:17;;3603:5;;3519:105;3499:3;;;;;;;3464:171;;;;3655:10;3647:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1684:12;1706:10;1684:33;;1728:15;1746:5;:15;;;1770:4;1746:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1746:30:4;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1746:30:4;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1746:30:4;;;;;;;;;;;;;;;;1728:48;;1807:1;1797:7;:11;1789:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1861:48;1884:5;1891:8;;;;;;;;;;;1901:7;1861:22;:48::i;:::-;3718:1;;3853;;1580:337;:::o;923:79:3:-;961:7;988:6;;;;;;;;;;;981:13;;923:79;:::o;2889:89:4:-;2930:7;2957:6;:13;;;;2950:20;;2889:89;:::o;1289:94:3:-;1329:4;1369:6;;;;;;;;;;;1353:22;;:12;:10;:12::i;:::-;:22;;;1346:29;;1289:94;:::o;2071:201:4:-;1135:9:3;:7;:9::i;:::-;1127:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2180:1:4;2160:22;;:8;;;;;;;;;;;:22;;;;2152:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2252:12;2241:8;;:23;;;;;;;;;;;;;;;;;;2071:201;:::o;2280:129::-;1135:9:3;:7;:9::i;:::-;1127:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2355:10:4;3207:6;3216:1;3207:10;;3203:142;3223:6;:13;;;;3219:1;:17;3203:142;;;3279:10;3266:23;;:6;3273:1;3266:9;;;;;;;;;;;;;;;;;;;;;;;;;:23;;;;3258:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3238:3;;;;;;;3203:142;;;;2378:6;2390:10;2378:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;2378:23:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1192:1:3;2280:129:4;:::o;1392:180::-;3794:10;;;;;;;;;;;3780:24;;:10;:24;;;3772:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1482:1;1458:21;:25;1450:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1524:8;;;;;;;;;;;:17;;:40;1542:21;1524:40;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1524:40:4;1392:180::o;769:194::-;855:1;843:9;:13;835:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;935:9;923:10;912:43;;;946:8;912:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;912:43:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;769:194;:::o;2029:109:3:-;1135:9;:7;:9::i;:::-;1127:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2102:28;2121:8;2102:18;:28::i;:::-;2029:109;:::o;846:204:5:-;947:95;966:5;996;:18;;;:27;;;;1025:4;1031:2;1035:5;973:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;973:68:5;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;973:68:5;947:18;:95::i;:::-;846:204;;;;:::o;662:176::-;745:85;764:5;794;:14;;;:23;;;;819:2;823:5;771:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;771:58:5;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;771:58:5;745:18;:85::i;:::-;662:176;;;:::o;806:98:1:-;851:15;886:10;879:17;;806:98;:::o;2244:229:3:-;2338:1;2318:22;;:8;:22;;;;2310:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2428:8;2399:38;;2420:6;;;;;;;;;;;2399:38;;;;;;;;;;;;2457:8;2448:6;;:17;;;;;;;;;;;;;;;;;;2244:229;:::o;2701:1114:5:-;3305:27;3313:5;3305:25;;;:27::i;:::-;3297:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3442:12;3456:23;3491:5;3483:19;;3503:4;3483:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;3483:25:5;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;3441:67:5;;;;3527:7;3519:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3608:1;3588:10;:17;:21;3584:224;;;3730:10;3719:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3719:30:5;;;;;;;;;;;;;;;;3711:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3584:224;2701:1114;;;;:::o;574:810:0:-;634:4;1087:16;1114:19;1136:66;1114:88;;;;1305:7;1293:20;1281:32;;1345:3;1333:15;;:8;:15;;:42;;;;;1364:11;1352:8;:23;;1333:42;1325:51;;;;574:810;;;:::o;233:3632:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://3cc68a0a51564fc9003a5cf7aab28004c6d2fae4703f2a591e2ca95bbcc84341
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.