ETH Price: $3,078.89 (-1.78%)
Gas: 5 Gwei

Contract

0xFeea0bDd3D07eb6FE305938878C0caDBFa169042
 
Transaction Hash
Method
Block
From
To
Value
0x5d51472b992cf1984e29257d4dd13bb926223099e15e63e758dd8bc979d92630Approve(pending)2024-05-05 2:08:362 days ago1714874916IN
8PAY Network: Old 8PAY Token
0 ETH(Pending)(Pending)
Approve197704552024-04-30 20:17:116 days ago1714508231IN
8PAY Network: Old 8PAY Token
0 ETH0.0006515214.08612577
Transfer197476982024-04-27 15:55:599 days ago1714233359IN
8PAY Network: Old 8PAY Token
0 ETH0.000392548
Transfer197413262024-04-26 18:31:5910 days ago1714156319IN
8PAY Network: Old 8PAY Token
0 ETH0.000263135.36004282
Approve197014072024-04-21 4:30:5915 days ago1713673859IN
8PAY Network: Old 8PAY Token
0 ETH0.000232645
Transfer196963982024-04-20 11:42:5916 days ago1713613379IN
8PAY Network: Old 8PAY Token
0 ETH0.000342356.97211217
Approve196220392024-04-10 1:46:1127 days ago1712713571IN
8PAY Network: Old 8PAY Token
0 ETH0.0006553514.16899851
Approve195985712024-04-06 18:48:1130 days ago1712429291IN
8PAY Network: Old 8PAY Token
0 ETH0.0005552812.00226857
Transfer195707432024-04-02 21:20:4734 days ago1712092847IN
8PAY Network: Old 8PAY Token
0 ETH0.0017858536.38655961
Transfer195385902024-03-29 8:52:2338 days ago1711702343IN
8PAY Network: Old 8PAY Token
0 ETH0.0009915520.19294707
Approve195308342024-03-28 6:30:1139 days ago1711607411IN
8PAY Network: Old 8PAY Token
0 ETH0.0009180519.73080633
Approve195009182024-03-24 0:41:5944 days ago1711240919IN
8PAY Network: Old 8PAY Token
0 ETH0.0007599116.33206592
Approve194010692024-03-10 0:17:3558 days ago1710029855IN
8PAY Network: Old 8PAY Token
0 ETH0.0028256860.72960553
Approve193995892024-03-09 19:20:2358 days ago1710012023IN
8PAY Network: Old 8PAY Token
0 ETH0.0033737472.63950658
Approve193812422024-03-07 5:35:3560 days ago1709789735IN
8PAY Network: Old 8PAY Token
0 ETH0.002688557.7813468
Approve193748472024-03-06 8:10:2361 days ago1709712623IN
8PAY Network: Old 8PAY Token
0 ETH0.0027274458.6181534
Transfer193508432024-03-02 23:44:4765 days ago1709423087IN
8PAY Network: Old 8PAY Token
0 ETH0.0019007938.70953074
Approve193324122024-02-29 9:55:3567 days ago1709200535IN
8PAY Network: Old 8PAY Token
0 ETH0.00569315122.35703726
Approve193284452024-02-28 20:35:2368 days ago1709152523IN
8PAY Network: Old 8PAY Token
0 ETH0.0016261555.75704353
Approve193283702024-02-28 20:20:2368 days ago1709151623IN
8PAY Network: Old 8PAY Token
0 ETH0.0026352956.63777588
Transfer192731142024-02-21 2:36:3576 days ago1708482995IN
8PAY Network: Old 8PAY Token
0 ETH0.0019292835.79913982
Transfer192515522024-02-18 1:52:1179 days ago1708221131IN
8PAY Network: Old 8PAY Token
0 ETH0.0008477317.27258906
Transfer191155602024-01-29 23:50:1198 days ago1706572211IN
8PAY Network: Old 8PAY Token
0 ETH0.0005401310.99986523
Approve190999242024-01-27 19:13:23100 days ago1706382803IN
8PAY Network: Old 8PAY Token
0 ETH0.0005577711.98772719
Approve190873072024-01-26 0:48:47102 days ago1706230127IN
8PAY Network: Old 8PAY Token
0 ETH0.0007687516.52211768
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EightPayToken

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 5000 runs

Other Settings:
default evmVersion
File 1 of 6 : EightPayToken.sol
pragma solidity 0.5.16;

import { IERC20 } from "./IERC20.sol";
import { Context } from "./Context.sol";
import { SafeMath } from "./SafeMath.sol";
import { Ownable } from "./Ownable.sol";
import { LGEWhitelisted } from "./LGEWhitelisted.sol";

contract EightPayToken is Context, IERC20, Ownable, LGEWhitelisted {  
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;
    uint8 private _decimals;
    string private _symbol;
    string private _name;

    constructor() public {
        _name = "8PAY Network";
        _symbol = "8PAY";
        _decimals = 18;
        _totalSupply = 88888888 * 10 ** 18;
        _balances[_msgSender()] = _totalSupply;
        
        emit Transfer(address(0), _msgSender(), _totalSupply);
    }

    /**
    * @dev Returns the token owner.
    */
    function getOwner() external view returns (address) {
        return owner();
    }
    
    /**
    * @dev Returns the token decimals.
    */
    function decimals() external view returns (uint8) {
        return _decimals;
    }
    
    /**
    * @dev Returns the token symbol.
    */
    function symbol() external view returns (string memory) {
        return _symbol;
    }
    
    /**
    * @dev Returns the token name.
    */
    function name() external view returns (string memory) {
        return _name;
    }
    
    /**
    * @dev See {ERC20-totalSupply}.
    */
    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }
    
    /**
    * @dev See {ERC20-balanceOf}.
    */
    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }
    
    /**
    * @dev See {ERC20-transfer}.
    *
    * Requirements:
    *
    * - `recipient` cannot be the zero address.
    * - the caller must have a balance of at least `amount`.
    */
    function transfer(address recipient, uint256 amount) external returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
    
    /**
    * @dev See {ERC20-allowance}.
    */
    function allowance(address owner, address spender) external view returns (uint256) {
        return _allowances[owner][spender];
    }
    
    /**
    * @dev See {ERC20-approve}.
    *
    * Requirements:
    *
    * - `spender` cannot be the zero address.
    */
    function approve(address spender, uint256 amount) external returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    
    /**
    * @dev See {ERC20-transferFrom}.
    *
    * Emits an {Approval} event indicating the updated allowance. This is not
    * required by the EIP. See the note at the beginning of {ERC20};
    *
    * Requirements:
    * - `sender` and `recipient` cannot be the zero address.
    * - `sender` must have a balance of at least `amount`.
    * - the caller must have allowance for `sender`'s tokens of at least
    * `amount`.
    */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }
    
    /**
    * @dev Atomically increases the allowance granted to `spender` by the caller.
    *
    * This is an alternative to {approve} that can be used as a mitigation for
    * problems described in {ERC20-approve}.
    *
    * Emits an {Approval} event indicating the updated allowance.
    *
    * Requirements:
    *
    * - `spender` cannot be the zero address.
    */
    function increaseAllowance(address spender, uint256 addedValue) external returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }
    
    /**
    * @dev Atomically decreases the allowance granted to `spender` by the caller.
    *
    * This is an alternative to {approve} that can be used as a mitigation for
    * problems described in {ERC20-approve}.
    *
    * Emits an {Approval} event indicating the updated allowance.
    *
    * Requirements:
    *
    * - `spender` cannot be the zero address.
    * - `spender` must have allowance for the caller of at least
    * `subtractedValue`.
    */
    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }
    
    /**
    * @dev Moves tokens `amount` from `sender` to `recipient`.
    *
    * This is internal function is equivalent to {transfer}, and can be used to
    * e.g. implement automatic token fees, slashing mechanisms, etc.
    *
    * Emits a {Transfer} event.
    *
    * Requirements:
    *
    * - `sender` cannot be the zero address.
    * - `recipient` cannot be the zero address.
    * - `sender` must have a balance of at least `amount`.
    */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        
        _applyLGEWhitelist(sender, recipient, amount);
        
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }
    
    /**
    * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
    *
    * This is internal function is equivalent to `approve`, and can be used to
    * e.g. set automatic allowances for certain subsystems, etc.
    *
    * Emits an {Approval} event.
    *
    * Requirements:
    *
    * - `owner` cannot be the zero address.
    * - `spender` cannot be the zero address.
    */
    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    } 
}

File 3 of 6 : IERC20.sol
pragma solidity 0.5.16;

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 4 of 6 : Context.sol
pragma solidity 0.5.16;

/*
 * @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 { }

    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 5 of 6 : SafeMath.sol
pragma solidity 0.5.16;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 6 of 6 : Ownable.sol
pragma solidity 0.5.16;

import { Context } from "./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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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(_owner == _msgSender(), "Ownable: caller is not the 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() external 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) external 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 7 of 6 : LGEWhitelisted.sol
pragma solidity 0.5.16;

import { Context } from "./Context.sol";
import { SafeMath } from "./SafeMath.sol";

contract LGEWhitelisted is Context { 
    using SafeMath for uint256;

    struct WhitelistRound {
        uint256 duration;
        uint256 amountMax;
        mapping(address => bool) addresses;
        mapping(address => uint256) purchased;
    }

    WhitelistRound[] public _lgeWhitelistRounds;

    uint256 public _lgeTimestamp;
    address public _lgePairAddress;

    address public _whitelister;

    event WhitelisterTransferred(address indexed previousWhitelister, address indexed newWhitelister);

    constructor () internal {
        _whitelister = _msgSender();
    }

    modifier onlyWhitelister() {
        require(_whitelister == _msgSender(), "Caller is not the whitelister");
        _;
    }

    function renounceWhitelister() external onlyWhitelister {
        emit WhitelisterTransferred(_whitelister, address(0));
        _whitelister = address(0);
    }

    function transferWhitelister(address newWhitelister) external onlyWhitelister {
        _transferWhitelister(newWhitelister);
    }

    function _transferWhitelister(address newWhitelister) internal {
        require(newWhitelister != address(0), "New whitelister is the zero address");
        emit WhitelisterTransferred(_whitelister, newWhitelister);
        _whitelister = newWhitelister;
    }

    /*
     * createLGEWhitelist - Call this after initial Token Generation Event (TGE) 
     * 
     * pairAddress - address generated from createPair() event on DEX
     * durations - array of durations (seconds) for each whitelist rounds
     * amountsMax - array of max amounts (TOKEN decimals) for each whitelist round
     * 
     */
    function createLGEWhitelist(address pairAddress, uint256[] calldata durations, uint256[] calldata amountsMax) external onlyWhitelister() {
        require(durations.length == amountsMax.length, "Invalid whitelist(s)");
        
        _lgePairAddress = pairAddress;
        
        if(durations.length > 0) {   
            delete _lgeWhitelistRounds;
        
            for (uint256 i = 0; i < durations.length; i++) {
                _lgeWhitelistRounds.push(WhitelistRound(durations[i], amountsMax[i]));
            } 
        }
    }
    
    /*
     * modifyLGEWhitelistAddresses - Define what addresses are included/excluded from a whitelist round
     * 
     * index - 0-based index of round to modify whitelist
     * duration - period in seconds from LGE event or previous whitelist round
     * amountMax - max amount (TOKEN decimals) for each whitelist round
     * 
     */
    function modifyLGEWhitelist(uint256 index, uint256 duration, uint256 amountMax, address[] calldata addresses, bool enabled) external onlyWhitelister() {
        require(index < _lgeWhitelistRounds.length, "Invalid index");
        require(amountMax > 0, "Invalid amountMax");

        if(duration != _lgeWhitelistRounds[index].duration)
            _lgeWhitelistRounds[index].duration = duration;
        
        if(amountMax != _lgeWhitelistRounds[index].amountMax)  
            _lgeWhitelistRounds[index].amountMax = amountMax;
        
        for (uint256 i = 0; i < addresses.length; i++) {
            _lgeWhitelistRounds[index].addresses[addresses[i]] = enabled;
        }
    }
    
    /*
     *  getLGEWhitelistRound
     *
     *  returns:
     *
     *  1. whitelist round number ( 0 = no active round now )
     *  2. duration, in seconds, current whitelist round is active for
     *  3. timestamp current whitelist round closes at
     *  4. maximum amount a whitelister can purchase in this round
     *  5. is caller whitelisted
     *  6. how much caller has purchased in current whitelist round
     *
     */
    function getLGEWhitelistRound() public view returns (uint256, uint256, uint256, uint256, bool, uint256) {
        if(_lgeTimestamp > 0) {        
            uint256 wlCloseTimestampLast = _lgeTimestamp;
        
            for (uint256 i = 0; i < _lgeWhitelistRounds.length; i++) {     
                WhitelistRound storage wlRound = _lgeWhitelistRounds[i];
                wlCloseTimestampLast = wlCloseTimestampLast.add(wlRound.duration);

                if(now <= wlCloseTimestampLast)
                    return (i.add(1), wlRound.duration, wlCloseTimestampLast, wlRound.amountMax, wlRound.addresses[_msgSender()], wlRound.purchased[_msgSender()]);
            }
        }
        
        return (0, 0, 0, 0, false, 0);
    }
    
    /*
     * _applyLGEWhitelist - internal function to be called initially before any transfers
     * 
     */  
    function _applyLGEWhitelist(address sender, address recipient, uint256 amount) internal {
        if(_lgePairAddress == address(0) || _lgeWhitelistRounds.length == 0)
            return;
        
        if(_lgeTimestamp == 0 && sender != _lgePairAddress && recipient == _lgePairAddress && amount > 0)
            _lgeTimestamp = now;
        
        if(sender == _lgePairAddress && recipient != _lgePairAddress) {
            //buying

            (uint256 wlRoundNumber,,,,,) = getLGEWhitelistRound();
        
            if(wlRoundNumber > 0) {    
                WhitelistRound storage wlRound = _lgeWhitelistRounds[wlRoundNumber.sub(1)];
                
                require(wlRound.addresses[recipient], "LGE - Buyer is not whitelisted");
                
                uint256 amountRemaining = 0;
                
                if(wlRound.purchased[recipient] < wlRound.amountMax)
                    amountRemaining = wlRound.amountMax.sub(wlRound.purchased[recipient]);
    
                require(amount <= amountRemaining, "LGE - Amount exceeds whitelist maximum");
                wlRound.purchased[recipient] = wlRound.purchased[recipient].add(amount);   
            }        
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 5000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousWhitelister","type":"address"},{"indexed":true,"internalType":"address","name":"newWhitelister","type":"address"}],"name":"WhitelisterTransferred","type":"event"},{"constant":true,"inputs":[],"name":"_lgePairAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_lgeTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_lgeWhitelistRounds","outputs":[{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"amountMax","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_whitelister","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"pairAddress","type":"address"},{"internalType":"uint256[]","name":"durations","type":"uint256[]"},{"internalType":"uint256[]","name":"amountsMax","type":"uint256[]"}],"name":"createLGEWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getLGEWhitelistRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"amountMax","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"modifyLGEWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceWhitelister","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"recipient","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":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"newWhitelister","type":"address"}],"name":"transferWhitelister","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506000620000276001600160e01b03620001bd16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000846001600160e01b03620001bd16565b600480546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600c8082526b38504159204e6574776f726b60a01b6020909201918252620000d991600a91620001c2565b50604080518082019091526004808252633850415960e01b60209092019182526200010791600991620001c2565b506008805460ff191660121790556a4986f44622f73835e000006007819055600560006200013d6001600160e01b03620001bd16565b6001600160a01b031681526020810191909152604001600020556200016a6001600160e01b03620001bd16565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6007546040518082815260200191505060405180910390a362000264565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200020557805160ff191683800117855562000235565b8280016001018555821562000235579182015b828111156200023557825182559160200191906001019062000218565b506200024392915062000247565b5090565b620001bf91905b808211156200024357600081556001016200024e565b611a0a80620002746000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063a77cac7a1161008c578063da91b76e11610066578063da91b76e146105b8578063dd62ed3e146105c0578063f2fde38b146105ee57610198565b8063a77cac7a1461054e578063a9059cbb14610584578063d5215d11146105b057610198565b806395d89b41116100bd57806395d89b41146105125780639ad3a7ba1461051a578063a457c2d71461052257610198565b8063715018a6146104fa578063893d20e8146105025780638da5cb5b1461050a57610198565b8063313ce56711610145578063494488981161011f57806349448898146103de578063532f1fed1461040257806370a08231146104d457610198565b8063313ce5671461030f578063395093511461032d57806344ade3c51461035957610198565b80631b29b0cd116101765780631b29b0cd1461027457806323b872dd146102b15780632e15e5c7146102e757610198565b806306fdde031461019d578063095ea7b31461021a57806318160ddd1461025a575b600080fd5b6101a5610614565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101df5781810151838201526020016101c7565b50505050905090810190601f16801561020c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102466004803603604081101561023057600080fd5b506001600160a01b0381351690602001356106c9565b604080519115158252519081900360200190f35b6102626106e6565b60408051918252519081900360200190f35b61027c6106ec565b6040805196875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b610246600480360360608110156102c757600080fd5b506001600160a01b03813581169160208101359091169060400135610800565b61030d600480360360208110156102fd57600080fd5b50356001600160a01b031661088d565b005b610317610903565b6040805160ff9092168252519081900360200190f35b6102466004803603604081101561034357600080fd5b506001600160a01b03813516906020013561090c565b61030d600480360360a081101561036f57600080fd5b8135916020810135916040820135919081019060808101606082013564010000000081111561039d57600080fd5b8201836020820111156103af57600080fd5b803590602001918460208302840111640100000000831117156103d157600080fd5b9193509150351515610960565b6103e6610b9b565b604080516001600160a01b039092168252519081900360200190f35b61030d6004803603606081101561041857600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561044357600080fd5b82018360208201111561045557600080fd5b8035906020019184602083028401116401000000008311171561047757600080fd5b91939092909160208101903564010000000081111561049557600080fd5b8201836020820111156104a757600080fd5b803590602001918460208302840111640100000000831117156104c957600080fd5b509092509050610baa565b610262600480360360208110156104ea57600080fd5b50356001600160a01b0316610d2d565b61030d610d48565b6103e6610e14565b6103e6610e23565b6101a5610e32565b61030d610eb1565b6102466004803603604081101561053857600080fd5b506001600160a01b038135169060200135610f7d565b61056b6004803603602081101561056457600080fd5b5035610feb565b6040805192835260208301919091528051918290030190f35b6102466004803603604081101561059a57600080fd5b506001600160a01b038135169060200135611016565b6103e661102a565b610262611039565b610262600480360360408110156105d657600080fd5b506001600160a01b038135811691602001351661103f565b61030d6004803603602081101561060457600080fd5b50356001600160a01b031661106a565b600a8054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b505050505090505b90565b60006106dd6106d66110dd565b84846110e1565b50600192915050565b60075490565b600080600080600080600060025411156107e55760025460005b6001548110156107e25760006001828154811061071f57fe5b906000526020600020906004020190506107468160000154846111cd90919063ffffffff16565b92508242116107d95761076082600163ffffffff6111cd16565b8154600183015485906002850160006107776110dd565b6001600160a01b03168152602081019190915260400160009081205460ff169060038701906107a46110dd565b6001600160a01b03166001600160a01b03168152602001908152602001600020549850985098509850985098505050506107f8565b50600101610706565b50505b5060009450849350839250829150819050805b909192939495565b600061080d84848461122e565b610883846108196110dd565b61087e8560405180606001604052806028815260200161191d602891396001600160a01b038a166000908152600660205260408120906108576110dd565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61139716565b6110e1565b5060019392505050565b6108956110dd565b6004546001600160a01b039081169116146108f7576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6109008161142e565b50565b60085460ff1690565b60006106dd6109196110dd565b8461087e856006600061092a6110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6111cd16565b6109686110dd565b6004546001600160a01b039081169116146109ca576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6001548610610a20576040805162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e64657800000000000000000000000000000000000000604482015290519081900360640190fd5b60008411610a75576040805162461bcd60e51b815260206004820152601160248201527f496e76616c696420616d6f756e744d6178000000000000000000000000000000604482015290519081900360640190fd5b60018681548110610a8257fe5b9060005260206000209060040201600001548514610aba578460018781548110610aa857fe5b60009182526020909120600490910201555b60018681548110610ac757fe5b9060005260206000209060040201600101548414610b03578360018781548110610aed57fe5b9060005260206000209060040201600101819055505b60005b82811015610b92578160018881548110610b1c57fe5b90600052602060002090600402016002016000868685818110610b3b57fe5b602090810292909201356001600160a01b031683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610b06565b50505050505050565b6003546001600160a01b031681565b610bb26110dd565b6004546001600160a01b03908116911614610c14576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b828114610c68576040805162461bcd60e51b815260206004820152601460248201527f496e76616c69642077686974656c697374287329000000000000000000000000604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387161790558215610d2657610cad60016000611825565b60005b83811015610d245760016040518060400160405280878785818110610cd157fe5b905060200201358152602001858585818110610ce957fe5b602090810292909201359092528354600181810186556000958652948290208451600490920201908155920151918301919091555001610cb0565b505b5050505050565b6001600160a01b031660009081526005602052604090205490565b610d506110dd565b6000546001600160a01b03908116911614610db2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000610e1e610e23565b905090565b6000546001600160a01b031690565b60098054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b610eb96110dd565b6004546001600160a01b03908116911614610f1b576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6004546040516000916001600160a01b0316907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b4908390a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006106dd610f8a6110dd565b8461087e856040518060600160405280602581526020016119b16025913960066000610fb46110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61139716565b60018181548110610ff857fe5b60009182526020909120600490910201805460019091015490915082565b60006106dd6110236110dd565b848461122e565b6004546001600160a01b031681565b60025481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6110726110dd565b6000546001600160a01b039081169116146110d4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610900816114e7565b3390565b6001600160a01b0383166111265760405162461bcd60e51b815260040180806020018281038252602481526020018061198d6024913960400191505060405180910390fd5b6001600160a01b03821661116b5760405162461bcd60e51b81526004018080602001828103825260228152602001806118af6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260066020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082820183811015611227576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166112735760405162461bcd60e51b81526004018080602001828103825260258152602001806119456025913960400191505060405180910390fd5b6001600160a01b0382166112b85760405162461bcd60e51b81526004018080602001828103825260238152602001806118666023913960400191505060405180910390fd5b6112c383838361159f565b611306816040518060600160405280602681526020016118d1602691396001600160a01b038616600090815260056020526040902054919063ffffffff61139716565b6001600160a01b03808516600090815260056020526040808220939093559084168152205461133b908263ffffffff6111cd16565b6001600160a01b0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113eb5781810151838201526020016113d3565b50505050905090810190601f1680156114185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0381166114735760405162461bcd60e51b815260040180806020018281038252602381526020018061196a6023913960400191505060405180910390fd5b6004546040516001600160a01b038084169216907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b490600090a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03811661152c5760405162461bcd60e51b81526004018080602001828103825260268152602001806118896026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6003546001600160a01b031615806115b75750600154155b156115c1576117de565b6002541580156115df57506003546001600160a01b03848116911614155b80156115f857506003546001600160a01b038381169116145b80156116045750600081115b1561160e57426002555b6003546001600160a01b03848116911614801561163957506003546001600160a01b03838116911614155b156117de5760006116486106ec565b5050505050905060008111156117dc576000600161166c838263ffffffff6117e316565b8154811061167657fe5b600091825260208083206001600160a01b03881684526002600490930201918201905260409091205490915060ff166116f6576040805162461bcd60e51b815260206004820152601e60248201527f4c4745202d204275796572206973206e6f742077686974656c69737465640000604482015290519081900360640190fd5b60018101546001600160a01b038516600090815260038301602052604081205490911115611750576001600160a01b0385166000908152600383016020526040902054600183015461174d9163ffffffff6117e316565b90505b8084111561178f5760405162461bcd60e51b81526004018080602001828103825260268152602001806118f76026913960400191505060405180910390fd5b6001600160a01b03851660009081526003830160205260409020546117ba908563ffffffff6111cd16565b6001600160a01b03861660009081526003909301602052604090922091909155505b505b505050565b600061122783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611397565b508054600082556004029060005260206000209081019061090091906106c691905b808211156118615760008082556001820155600401611847565b509056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654c4745202d20416d6f756e7420657863656564732077686974656c697374206d6178696d756d45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734e65772077686974656c697374657220697320746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582002d9925ae2dec314642263bdcf363e0d8d150d173407146f5d46387cb4e4c7cd64736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063a77cac7a1161008c578063da91b76e11610066578063da91b76e146105b8578063dd62ed3e146105c0578063f2fde38b146105ee57610198565b8063a77cac7a1461054e578063a9059cbb14610584578063d5215d11146105b057610198565b806395d89b41116100bd57806395d89b41146105125780639ad3a7ba1461051a578063a457c2d71461052257610198565b8063715018a6146104fa578063893d20e8146105025780638da5cb5b1461050a57610198565b8063313ce56711610145578063494488981161011f57806349448898146103de578063532f1fed1461040257806370a08231146104d457610198565b8063313ce5671461030f578063395093511461032d57806344ade3c51461035957610198565b80631b29b0cd116101765780631b29b0cd1461027457806323b872dd146102b15780632e15e5c7146102e757610198565b806306fdde031461019d578063095ea7b31461021a57806318160ddd1461025a575b600080fd5b6101a5610614565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101df5781810151838201526020016101c7565b50505050905090810190601f16801561020c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102466004803603604081101561023057600080fd5b506001600160a01b0381351690602001356106c9565b604080519115158252519081900360200190f35b6102626106e6565b60408051918252519081900360200190f35b61027c6106ec565b6040805196875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b610246600480360360608110156102c757600080fd5b506001600160a01b03813581169160208101359091169060400135610800565b61030d600480360360208110156102fd57600080fd5b50356001600160a01b031661088d565b005b610317610903565b6040805160ff9092168252519081900360200190f35b6102466004803603604081101561034357600080fd5b506001600160a01b03813516906020013561090c565b61030d600480360360a081101561036f57600080fd5b8135916020810135916040820135919081019060808101606082013564010000000081111561039d57600080fd5b8201836020820111156103af57600080fd5b803590602001918460208302840111640100000000831117156103d157600080fd5b9193509150351515610960565b6103e6610b9b565b604080516001600160a01b039092168252519081900360200190f35b61030d6004803603606081101561041857600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561044357600080fd5b82018360208201111561045557600080fd5b8035906020019184602083028401116401000000008311171561047757600080fd5b91939092909160208101903564010000000081111561049557600080fd5b8201836020820111156104a757600080fd5b803590602001918460208302840111640100000000831117156104c957600080fd5b509092509050610baa565b610262600480360360208110156104ea57600080fd5b50356001600160a01b0316610d2d565b61030d610d48565b6103e6610e14565b6103e6610e23565b6101a5610e32565b61030d610eb1565b6102466004803603604081101561053857600080fd5b506001600160a01b038135169060200135610f7d565b61056b6004803603602081101561056457600080fd5b5035610feb565b6040805192835260208301919091528051918290030190f35b6102466004803603604081101561059a57600080fd5b506001600160a01b038135169060200135611016565b6103e661102a565b610262611039565b610262600480360360408110156105d657600080fd5b506001600160a01b038135811691602001351661103f565b61030d6004803603602081101561060457600080fd5b50356001600160a01b031661106a565b600a8054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b505050505090505b90565b60006106dd6106d66110dd565b84846110e1565b50600192915050565b60075490565b600080600080600080600060025411156107e55760025460005b6001548110156107e25760006001828154811061071f57fe5b906000526020600020906004020190506107468160000154846111cd90919063ffffffff16565b92508242116107d95761076082600163ffffffff6111cd16565b8154600183015485906002850160006107776110dd565b6001600160a01b03168152602081019190915260400160009081205460ff169060038701906107a46110dd565b6001600160a01b03166001600160a01b03168152602001908152602001600020549850985098509850985098505050506107f8565b50600101610706565b50505b5060009450849350839250829150819050805b909192939495565b600061080d84848461122e565b610883846108196110dd565b61087e8560405180606001604052806028815260200161191d602891396001600160a01b038a166000908152600660205260408120906108576110dd565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61139716565b6110e1565b5060019392505050565b6108956110dd565b6004546001600160a01b039081169116146108f7576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6109008161142e565b50565b60085460ff1690565b60006106dd6109196110dd565b8461087e856006600061092a6110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6111cd16565b6109686110dd565b6004546001600160a01b039081169116146109ca576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6001548610610a20576040805162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e64657800000000000000000000000000000000000000604482015290519081900360640190fd5b60008411610a75576040805162461bcd60e51b815260206004820152601160248201527f496e76616c696420616d6f756e744d6178000000000000000000000000000000604482015290519081900360640190fd5b60018681548110610a8257fe5b9060005260206000209060040201600001548514610aba578460018781548110610aa857fe5b60009182526020909120600490910201555b60018681548110610ac757fe5b9060005260206000209060040201600101548414610b03578360018781548110610aed57fe5b9060005260206000209060040201600101819055505b60005b82811015610b92578160018881548110610b1c57fe5b90600052602060002090600402016002016000868685818110610b3b57fe5b602090810292909201356001600160a01b031683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610b06565b50505050505050565b6003546001600160a01b031681565b610bb26110dd565b6004546001600160a01b03908116911614610c14576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b828114610c68576040805162461bcd60e51b815260206004820152601460248201527f496e76616c69642077686974656c697374287329000000000000000000000000604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387161790558215610d2657610cad60016000611825565b60005b83811015610d245760016040518060400160405280878785818110610cd157fe5b905060200201358152602001858585818110610ce957fe5b602090810292909201359092528354600181810186556000958652948290208451600490920201908155920151918301919091555001610cb0565b505b5050505050565b6001600160a01b031660009081526005602052604090205490565b610d506110dd565b6000546001600160a01b03908116911614610db2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000610e1e610e23565b905090565b6000546001600160a01b031690565b60098054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b610eb96110dd565b6004546001600160a01b03908116911614610f1b576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6004546040516000916001600160a01b0316907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b4908390a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006106dd610f8a6110dd565b8461087e856040518060600160405280602581526020016119b16025913960066000610fb46110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61139716565b60018181548110610ff857fe5b60009182526020909120600490910201805460019091015490915082565b60006106dd6110236110dd565b848461122e565b6004546001600160a01b031681565b60025481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6110726110dd565b6000546001600160a01b039081169116146110d4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610900816114e7565b3390565b6001600160a01b0383166111265760405162461bcd60e51b815260040180806020018281038252602481526020018061198d6024913960400191505060405180910390fd5b6001600160a01b03821661116b5760405162461bcd60e51b81526004018080602001828103825260228152602001806118af6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260066020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082820183811015611227576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166112735760405162461bcd60e51b81526004018080602001828103825260258152602001806119456025913960400191505060405180910390fd5b6001600160a01b0382166112b85760405162461bcd60e51b81526004018080602001828103825260238152602001806118666023913960400191505060405180910390fd5b6112c383838361159f565b611306816040518060600160405280602681526020016118d1602691396001600160a01b038616600090815260056020526040902054919063ffffffff61139716565b6001600160a01b03808516600090815260056020526040808220939093559084168152205461133b908263ffffffff6111cd16565b6001600160a01b0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113eb5781810151838201526020016113d3565b50505050905090810190601f1680156114185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0381166114735760405162461bcd60e51b815260040180806020018281038252602381526020018061196a6023913960400191505060405180910390fd5b6004546040516001600160a01b038084169216907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b490600090a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03811661152c5760405162461bcd60e51b81526004018080602001828103825260268152602001806118896026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6003546001600160a01b031615806115b75750600154155b156115c1576117de565b6002541580156115df57506003546001600160a01b03848116911614155b80156115f857506003546001600160a01b038381169116145b80156116045750600081115b1561160e57426002555b6003546001600160a01b03848116911614801561163957506003546001600160a01b03838116911614155b156117de5760006116486106ec565b5050505050905060008111156117dc576000600161166c838263ffffffff6117e316565b8154811061167657fe5b600091825260208083206001600160a01b03881684526002600490930201918201905260409091205490915060ff166116f6576040805162461bcd60e51b815260206004820152601e60248201527f4c4745202d204275796572206973206e6f742077686974656c69737465640000604482015290519081900360640190fd5b60018101546001600160a01b038516600090815260038301602052604081205490911115611750576001600160a01b0385166000908152600383016020526040902054600183015461174d9163ffffffff6117e316565b90505b8084111561178f5760405162461bcd60e51b81526004018080602001828103825260268152602001806118f76026913960400191505060405180910390fd5b6001600160a01b03851660009081526003830160205260409020546117ba908563ffffffff6111cd16565b6001600160a01b03861660009081526003909301602052604090922091909155505b505b505050565b600061122783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611397565b508054600082556004029060005260206000209081019061090091906106c691905b808211156118615760008082556001820155600401611847565b509056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654c4745202d20416d6f756e7420657863656564732077686974656c697374206d6178696d756d45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734e65772077686974656c697374657220697320746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582002d9925ae2dec314642263bdcf363e0d8d150d173407146f5d46387cb4e4c7cd64736f6c63430005100032

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

8PAY Network token contract has migrated to 0x06DDb3a8BC0aBc14f85e974CF1A93a6f8d4909d9

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.