ETH Price: $2,102.84 (+0.47%)

Contract

0x3079F61704E9eFa2BcF1db412f735d8d4cFa26f4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Approve241606362026-01-04 10:15:3569 days ago1767521735IN
HappyFans: HAPPY Token
0 ETH0.000001490.06158371
Approve241606352026-01-04 10:15:2369 days ago1767521723IN
HappyFans: HAPPY Token
0 ETH0.000001540.06351846
Approve240033212025-12-13 11:15:2391 days ago1765624523IN
HappyFans: HAPPY Token
0 ETH0.00002431.00252893
Approve240033202025-12-13 11:15:1191 days ago1765624511IN
HappyFans: HAPPY Token
0 ETH0.000003590.14829667
Approve238097722025-11-16 5:51:35118 days ago1763272295IN
HappyFans: HAPPY Token
0 ETH0.000004650.1
Approve236207662025-10-20 19:02:47145 days ago1760986967IN
HappyFans: HAPPY Token
0 ETH0.00001460.60243537
Approve234614612025-09-28 12:21:35167 days ago1759062095IN
HappyFans: HAPPY Token
0 ETH0.000024281.00166089
Approve234614602025-09-28 12:21:23167 days ago1759062083IN
HappyFans: HAPPY Token
0 ETH0.00002441.00668035
Approve234198172025-09-22 16:40:11173 days ago1758559211IN
HappyFans: HAPPY Token
0 ETH0.00003261.34494875
Approve234136732025-09-21 20:01:47174 days ago1758484907IN
HappyFans: HAPPY Token
0 ETH0.000006250.23777349
Approve234136712025-09-21 20:01:23174 days ago1758484883IN
HappyFans: HAPPY Token
0 ETH0.000006870.23620076
Transfer232631282025-08-31 19:10:59195 days ago1756667459IN
HappyFans: HAPPY Token
0 ETH0.000015390.31481779
Approve231942962025-08-22 4:42:35204 days ago1755837755IN
HappyFans: HAPPY Token
0 ETH0.000054362.24219813
Approve230641012025-08-04 0:24:35223 days ago1754267075IN
HappyFans: HAPPY Token
0 ETH0.000005140.21205875
Approve229888432025-07-24 11:53:59233 days ago1753358039IN
HappyFans: HAPPY Token
0 ETH0.000059682.46185002
Approve229888222025-07-24 11:49:47233 days ago1753357787IN
HappyFans: HAPPY Token
0 ETH0.000058232.40210969
Approve229015822025-07-12 7:25:59245 days ago1752305159IN
HappyFans: HAPPY Token
0 ETH0.000063132.6038772
Approve228718072025-07-08 3:32:47249 days ago1751945567IN
HappyFans: HAPPY Token
0 ETH0.000028920.62511534
Transfer225866252025-05-29 6:29:11289 days ago1748500151IN
HappyFans: HAPPY Token
0 ETH0.000082211.67433659
Approve225673442025-05-26 13:44:47292 days ago1748267087IN
HappyFans: HAPPY Token
0 ETH0.0000391.6088052
Approve224977962025-05-16 19:46:47302 days ago1747424807IN
HappyFans: HAPPY Token
0 ETH0.000325226.99878067
Approve219502782025-03-01 6:38:47378 days ago1740811127IN
HappyFans: HAPPY Token
0 ETH0.000028911.19281359
Approve217667142025-02-03 14:55:59404 days ago1738594559IN
HappyFans: HAPPY Token
0 ETH0.0005161519.61279841
Approve217667102025-02-03 14:55:11404 days ago1738594511IN
HappyFans: HAPPY Token
0 ETH0.0004980118.9235454
Approve217667102025-02-03 14:55:11404 days ago1738594511IN
HappyFans: HAPPY Token
0 ETH0.0008745818.9235454
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HappyFansToken

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 5000 runs

Other Settings:
default evmVersion
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 HappyFansToken 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 = "HappyFans";
        _symbol = "HAPPY";
        _decimals = 18;
        _totalSupply = 100000000000 * 10 ** 18;
        _balances[_msgSender()] = _totalSupply;
        
        emit Transfer(address(0), _msgSender(), _totalSupply);
    }

    /**
    * @dev Returns the bep 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 {BEP20-totalSupply}.
    */
    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }
    
    /**
    * @dev See {BEP20-balanceOf}.
    */
    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }
    
    /**
    * @dev See {BEP20-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 {BEP20-allowance}.
    */
    function allowance(address owner, address spender) external view returns (uint256) {
        return _allowances[owner][spender];
    }
    
    /**
    * @dev See {BEP20-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 {BEP20-transferFrom}.
    *
    * Emits an {Approval} event indicating the updated allowance. This is not
    * required by the EIP. See the note at the beginning of {BEP20};
    *
    * 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, "BEP20: 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 {BEP20-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 {BEP20-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, "BEP20: 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), "BEP20: transfer from the zero address");
        require(recipient != address(0), "BEP20: transfer to the zero address");
        
        _applyLGEWhitelist(sender, recipient, amount);
        
        _balances[sender] = _balances[sender].sub(amount, "BEP20: 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), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: approve to the zero address");
        
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    } 
}

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

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

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

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

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",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"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"}]

60806040523480156200001157600080fd5b506000620000276001600160e01b03620001bd16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000846001600160e01b03620001bd16565b600480546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600980825268486170707946616e7360b81b6020909201918252620000d691600a91620001c2565b5060408051808201909152600580825264484150505960d81b60209092019182526200010591600991620001c2565b506008805460ff191660121790556c01431e0fae6d7217caa00000006007819055600560006200013d6001600160e01b03620001bd16565b6001600160a01b031681526020810191909152604001600020556200016a6001600160e01b03620001bd16565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6007546040518082815260200191505060405180910390a362000264565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200020557805160ff191683800117855562000235565b8280016001018555821562000235579182015b828111156200023557825182559160200191906001019062000218565b506200024392915062000247565b5090565b620001bf91905b808211156200024357600081556001016200024e565b611a0a80620002746000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063a77cac7a1161008c578063da91b76e11610066578063da91b76e146105b8578063dd62ed3e146105c0578063f2fde38b146105ee57610198565b8063a77cac7a1461054e578063a9059cbb14610584578063d5215d11146105b057610198565b806395d89b41116100bd57806395d89b41146105125780639ad3a7ba1461051a578063a457c2d71461052257610198565b8063715018a6146104fa578063893d20e8146105025780638da5cb5b1461050a57610198565b8063313ce56711610145578063494488981161011f57806349448898146103de578063532f1fed1461040257806370a08231146104d457610198565b8063313ce5671461030f578063395093511461032d57806344ade3c51461035957610198565b80631b29b0cd116101765780631b29b0cd1461027457806323b872dd146102b15780632e15e5c7146102e757610198565b806306fdde031461019d578063095ea7b31461021a57806318160ddd1461025a575b600080fd5b6101a5610614565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101df5781810151838201526020016101c7565b50505050905090810190601f16801561020c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102466004803603604081101561023057600080fd5b506001600160a01b0381351690602001356106c9565b604080519115158252519081900360200190f35b6102626106e6565b60408051918252519081900360200190f35b61027c6106ec565b6040805196875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b610246600480360360608110156102c757600080fd5b506001600160a01b03813581169160208101359091169060400135610800565b61030d600480360360208110156102fd57600080fd5b50356001600160a01b031661088d565b005b610317610903565b6040805160ff9092168252519081900360200190f35b6102466004803603604081101561034357600080fd5b506001600160a01b03813516906020013561090c565b61030d600480360360a081101561036f57600080fd5b8135916020810135916040820135919081019060808101606082013564010000000081111561039d57600080fd5b8201836020820111156103af57600080fd5b803590602001918460208302840111640100000000831117156103d157600080fd5b9193509150351515610960565b6103e6610b9b565b604080516001600160a01b039092168252519081900360200190f35b61030d6004803603606081101561041857600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561044357600080fd5b82018360208201111561045557600080fd5b8035906020019184602083028401116401000000008311171561047757600080fd5b91939092909160208101903564010000000081111561049557600080fd5b8201836020820111156104a757600080fd5b803590602001918460208302840111640100000000831117156104c957600080fd5b509092509050610baa565b610262600480360360208110156104ea57600080fd5b50356001600160a01b0316610d2d565b61030d610d48565b6103e6610e14565b6103e6610e23565b6101a5610e32565b61030d610eb1565b6102466004803603604081101561053857600080fd5b506001600160a01b038135169060200135610f7d565b61056b6004803603602081101561056457600080fd5b5035610feb565b6040805192835260208301919091528051918290030190f35b6102466004803603604081101561059a57600080fd5b506001600160a01b038135169060200135611016565b6103e661102a565b610262611039565b610262600480360360408110156105d657600080fd5b506001600160a01b038135811691602001351661103f565b61030d6004803603602081101561060457600080fd5b50356001600160a01b031661106a565b600a8054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b505050505090505b90565b60006106dd6106d66110dd565b84846110e1565b50600192915050565b60075490565b600080600080600080600060025411156107e55760025460005b6001548110156107e25760006001828154811061071f57fe5b906000526020600020906004020190506107468160000154846111cd90919063ffffffff16565b92508242116107d95761076082600163ffffffff6111cd16565b8154600183015485906002850160006107776110dd565b6001600160a01b03168152602081019190915260400160009081205460ff169060038701906107a46110dd565b6001600160a01b03166001600160a01b03168152602001908152602001600020549850985098509850985098505050506107f8565b50600101610706565b50505b5060009450849350839250829150819050805b909192939495565b600061080d84848461122e565b610883846108196110dd565b61087e856040518060600160405280602881526020016118d5602891396001600160a01b038a166000908152600660205260408120906108576110dd565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61139716565b6110e1565b5060019392505050565b6108956110dd565b6004546001600160a01b039081169116146108f7576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6109008161142e565b50565b60085460ff1690565b60006106dd6109196110dd565b8461087e856006600061092a6110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6111cd16565b6109686110dd565b6004546001600160a01b039081169116146109ca576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6001548610610a20576040805162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e64657800000000000000000000000000000000000000604482015290519081900360640190fd5b60008411610a75576040805162461bcd60e51b815260206004820152601160248201527f496e76616c696420616d6f756e744d6178000000000000000000000000000000604482015290519081900360640190fd5b60018681548110610a8257fe5b9060005260206000209060040201600001548514610aba578460018781548110610aa857fe5b60009182526020909120600490910201555b60018681548110610ac757fe5b9060005260206000209060040201600101548414610b03578360018781548110610aed57fe5b9060005260206000209060040201600101819055505b60005b82811015610b92578160018881548110610b1c57fe5b90600052602060002090600402016002016000868685818110610b3b57fe5b602090810292909201356001600160a01b031683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610b06565b50505050505050565b6003546001600160a01b031681565b610bb26110dd565b6004546001600160a01b03908116911614610c14576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b828114610c68576040805162461bcd60e51b815260206004820152601460248201527f496e76616c69642077686974656c697374287329000000000000000000000000604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387161790558215610d2657610cad60016000611825565b60005b83811015610d245760016040518060400160405280878785818110610cd157fe5b905060200201358152602001858585818110610ce957fe5b602090810292909201359092528354600181810186556000958652948290208451600490920201908155920151918301919091555001610cb0565b505b5050505050565b6001600160a01b031660009081526005602052604090205490565b610d506110dd565b6000546001600160a01b03908116911614610db2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000610e1e610e23565b905090565b6000546001600160a01b031690565b60098054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b610eb96110dd565b6004546001600160a01b03908116911614610f1b576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6004546040516000916001600160a01b0316907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b4908390a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006106dd610f8a6110dd565b8461087e8560405180606001604052806025815260200161196c6025913960066000610fb46110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61139716565b60018181548110610ff857fe5b60009182526020909120600490910201805460019091015490915082565b60006106dd6110236110dd565b848461122e565b6004546001600160a01b031681565b60025481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6110726110dd565b6000546001600160a01b039081169116146110d4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610900816114e7565b3390565b6001600160a01b0383166111265760405162461bcd60e51b815260040180806020018281038252602481526020018061188b6024913960400191505060405180910390fd5b6001600160a01b03821661116b5760405162461bcd60e51b81526004018080602001828103825260228152602001806119b46022913960400191505060405180910390fd5b6001600160a01b03808416600081815260066020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082820183811015611227576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166112735760405162461bcd60e51b81526004018080602001828103825260258152602001806118666025913960400191505060405180910390fd5b6001600160a01b0382166112b85760405162461bcd60e51b81526004018080602001828103825260238152602001806119496023913960400191505060405180910390fd5b6112c383838361159f565b61130681604051806060016040528060268152602001611923602691396001600160a01b038616600090815260056020526040902054919063ffffffff61139716565b6001600160a01b03808516600090815260056020526040808220939093559084168152205461133b908263ffffffff6111cd16565b6001600160a01b0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113eb5781810151838201526020016113d3565b50505050905090810190601f1680156114185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0381166114735760405162461bcd60e51b81526004018080602001828103825260238152602001806119916023913960400191505060405180910390fd5b6004546040516001600160a01b038084169216907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b490600090a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03811661152c5760405162461bcd60e51b81526004018080602001828103825260268152602001806118af6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6003546001600160a01b031615806115b75750600154155b156115c1576117de565b6002541580156115df57506003546001600160a01b03848116911614155b80156115f857506003546001600160a01b038381169116145b80156116045750600081115b1561160e57426002555b6003546001600160a01b03848116911614801561163957506003546001600160a01b03838116911614155b156117de5760006116486106ec565b5050505050905060008111156117dc576000600161166c838263ffffffff6117e316565b8154811061167657fe5b600091825260208083206001600160a01b03881684526002600490930201918201905260409091205490915060ff166116f6576040805162461bcd60e51b815260206004820152601e60248201527f4c4745202d204275796572206973206e6f742077686974656c69737465640000604482015290519081900360640190fd5b60018101546001600160a01b038516600090815260038301602052604081205490911115611750576001600160a01b0385166000908152600383016020526040902054600183015461174d9163ffffffff6117e316565b90505b8084111561178f5760405162461bcd60e51b81526004018080602001828103825260268152602001806118fd6026913960400191505060405180910390fd5b6001600160a01b03851660009081526003830160205260409020546117ba908563ffffffff6111cd16565b6001600160a01b03861660009081526003909301602052604090922091909155505b505b505050565b600061122783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611397565b508054600082556004029060005260206000209081019061090091906106c691905b808211156118615760008082556001820155600401611847565b509056fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654c4745202d20416d6f756e7420657863656564732077686974656c697374206d6178696d756d42455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f4e65772077686974656c697374657220697320746865207a65726f206164647265737342455032303a20617070726f766520746f20746865207a65726f2061646472657373a265627a7a723158207437dad93dc6e64d700f3a0e363346e15a85f372c95595bf56ab94bf33a26d3164736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101985760003560e01c8063715018a6116100e3578063a77cac7a1161008c578063da91b76e11610066578063da91b76e146105b8578063dd62ed3e146105c0578063f2fde38b146105ee57610198565b8063a77cac7a1461054e578063a9059cbb14610584578063d5215d11146105b057610198565b806395d89b41116100bd57806395d89b41146105125780639ad3a7ba1461051a578063a457c2d71461052257610198565b8063715018a6146104fa578063893d20e8146105025780638da5cb5b1461050a57610198565b8063313ce56711610145578063494488981161011f57806349448898146103de578063532f1fed1461040257806370a08231146104d457610198565b8063313ce5671461030f578063395093511461032d57806344ade3c51461035957610198565b80631b29b0cd116101765780631b29b0cd1461027457806323b872dd146102b15780632e15e5c7146102e757610198565b806306fdde031461019d578063095ea7b31461021a57806318160ddd1461025a575b600080fd5b6101a5610614565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101df5781810151838201526020016101c7565b50505050905090810190601f16801561020c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102466004803603604081101561023057600080fd5b506001600160a01b0381351690602001356106c9565b604080519115158252519081900360200190f35b6102626106e6565b60408051918252519081900360200190f35b61027c6106ec565b6040805196875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b610246600480360360608110156102c757600080fd5b506001600160a01b03813581169160208101359091169060400135610800565b61030d600480360360208110156102fd57600080fd5b50356001600160a01b031661088d565b005b610317610903565b6040805160ff9092168252519081900360200190f35b6102466004803603604081101561034357600080fd5b506001600160a01b03813516906020013561090c565b61030d600480360360a081101561036f57600080fd5b8135916020810135916040820135919081019060808101606082013564010000000081111561039d57600080fd5b8201836020820111156103af57600080fd5b803590602001918460208302840111640100000000831117156103d157600080fd5b9193509150351515610960565b6103e6610b9b565b604080516001600160a01b039092168252519081900360200190f35b61030d6004803603606081101561041857600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561044357600080fd5b82018360208201111561045557600080fd5b8035906020019184602083028401116401000000008311171561047757600080fd5b91939092909160208101903564010000000081111561049557600080fd5b8201836020820111156104a757600080fd5b803590602001918460208302840111640100000000831117156104c957600080fd5b509092509050610baa565b610262600480360360208110156104ea57600080fd5b50356001600160a01b0316610d2d565b61030d610d48565b6103e6610e14565b6103e6610e23565b6101a5610e32565b61030d610eb1565b6102466004803603604081101561053857600080fd5b506001600160a01b038135169060200135610f7d565b61056b6004803603602081101561056457600080fd5b5035610feb565b6040805192835260208301919091528051918290030190f35b6102466004803603604081101561059a57600080fd5b506001600160a01b038135169060200135611016565b6103e661102a565b610262611039565b610262600480360360408110156105d657600080fd5b506001600160a01b038135811691602001351661103f565b61030d6004803603602081101561060457600080fd5b50356001600160a01b031661106a565b600a8054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b820191906000526020600020905b8154815290600101906020018083116106a157829003601f168201915b505050505090505b90565b60006106dd6106d66110dd565b84846110e1565b50600192915050565b60075490565b600080600080600080600060025411156107e55760025460005b6001548110156107e25760006001828154811061071f57fe5b906000526020600020906004020190506107468160000154846111cd90919063ffffffff16565b92508242116107d95761076082600163ffffffff6111cd16565b8154600183015485906002850160006107776110dd565b6001600160a01b03168152602081019190915260400160009081205460ff169060038701906107a46110dd565b6001600160a01b03166001600160a01b03168152602001908152602001600020549850985098509850985098505050506107f8565b50600101610706565b50505b5060009450849350839250829150819050805b909192939495565b600061080d84848461122e565b610883846108196110dd565b61087e856040518060600160405280602881526020016118d5602891396001600160a01b038a166000908152600660205260408120906108576110dd565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61139716565b6110e1565b5060019392505050565b6108956110dd565b6004546001600160a01b039081169116146108f7576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6109008161142e565b50565b60085460ff1690565b60006106dd6109196110dd565b8461087e856006600061092a6110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6111cd16565b6109686110dd565b6004546001600160a01b039081169116146109ca576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6001548610610a20576040805162461bcd60e51b815260206004820152600d60248201527f496e76616c696420696e64657800000000000000000000000000000000000000604482015290519081900360640190fd5b60008411610a75576040805162461bcd60e51b815260206004820152601160248201527f496e76616c696420616d6f756e744d6178000000000000000000000000000000604482015290519081900360640190fd5b60018681548110610a8257fe5b9060005260206000209060040201600001548514610aba578460018781548110610aa857fe5b60009182526020909120600490910201555b60018681548110610ac757fe5b9060005260206000209060040201600101548414610b03578360018781548110610aed57fe5b9060005260206000209060040201600101819055505b60005b82811015610b92578160018881548110610b1c57fe5b90600052602060002090600402016002016000868685818110610b3b57fe5b602090810292909201356001600160a01b031683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610b06565b50505050505050565b6003546001600160a01b031681565b610bb26110dd565b6004546001600160a01b03908116911614610c14576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b828114610c68576040805162461bcd60e51b815260206004820152601460248201527f496e76616c69642077686974656c697374287329000000000000000000000000604482015290519081900360640190fd5b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387161790558215610d2657610cad60016000611825565b60005b83811015610d245760016040518060400160405280878785818110610cd157fe5b905060200201358152602001858585818110610ce957fe5b602090810292909201359092528354600181810186556000958652948290208451600490920201908155920151918301919091555001610cb0565b505b5050505050565b6001600160a01b031660009081526005602052604090205490565b610d506110dd565b6000546001600160a01b03908116911614610db2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000610e1e610e23565b905090565b6000546001600160a01b031690565b60098054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106be5780601f10610693576101008083540402835291602001916106be565b610eb96110dd565b6004546001600160a01b03908116911614610f1b576040805162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f74207468652077686974656c6973746572000000604482015290519081900360640190fd5b6004546040516000916001600160a01b0316907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b4908390a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60006106dd610f8a6110dd565b8461087e8560405180606001604052806025815260200161196c6025913960066000610fb46110dd565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61139716565b60018181548110610ff857fe5b60009182526020909120600490910201805460019091015490915082565b60006106dd6110236110dd565b848461122e565b6004546001600160a01b031681565b60025481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6110726110dd565b6000546001600160a01b039081169116146110d4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610900816114e7565b3390565b6001600160a01b0383166111265760405162461bcd60e51b815260040180806020018281038252602481526020018061188b6024913960400191505060405180910390fd5b6001600160a01b03821661116b5760405162461bcd60e51b81526004018080602001828103825260228152602001806119b46022913960400191505060405180910390fd5b6001600160a01b03808416600081815260066020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082820183811015611227576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166112735760405162461bcd60e51b81526004018080602001828103825260258152602001806118666025913960400191505060405180910390fd5b6001600160a01b0382166112b85760405162461bcd60e51b81526004018080602001828103825260238152602001806119496023913960400191505060405180910390fd5b6112c383838361159f565b61130681604051806060016040528060268152602001611923602691396001600160a01b038616600090815260056020526040902054919063ffffffff61139716565b6001600160a01b03808516600090815260056020526040808220939093559084168152205461133b908263ffffffff6111cd16565b6001600160a01b0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156114265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113eb5781810151838201526020016113d3565b50505050905090810190601f1680156114185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0381166114735760405162461bcd60e51b81526004018080602001828103825260238152602001806119916023913960400191505060405180910390fd5b6004546040516001600160a01b038084169216907f4e78506f3260e366dc9440ee0b4eca2d03aa91536b7605deb90e873d3fc4e5b490600090a3600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b03811661152c5760405162461bcd60e51b81526004018080602001828103825260268152602001806118af6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6003546001600160a01b031615806115b75750600154155b156115c1576117de565b6002541580156115df57506003546001600160a01b03848116911614155b80156115f857506003546001600160a01b038381169116145b80156116045750600081115b1561160e57426002555b6003546001600160a01b03848116911614801561163957506003546001600160a01b03838116911614155b156117de5760006116486106ec565b5050505050905060008111156117dc576000600161166c838263ffffffff6117e316565b8154811061167657fe5b600091825260208083206001600160a01b03881684526002600490930201918201905260409091205490915060ff166116f6576040805162461bcd60e51b815260206004820152601e60248201527f4c4745202d204275796572206973206e6f742077686974656c69737465640000604482015290519081900360640190fd5b60018101546001600160a01b038516600090815260038301602052604081205490911115611750576001600160a01b0385166000908152600383016020526040902054600183015461174d9163ffffffff6117e316565b90505b8084111561178f5760405162461bcd60e51b81526004018080602001828103825260268152602001806118fd6026913960400191505060405180910390fd5b6001600160a01b03851660009081526003830160205260409020546117ba908563ffffffff6111cd16565b6001600160a01b03861660009081526003909301602052604090922091909155505b505b505050565b600061122783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611397565b508054600082556004029060005260206000209081019061090091906106c691905b808211156118615760008082556001820155600401611847565b509056fe42455032303a207472616e736665722066726f6d20746865207a65726f206164647265737342455032303a20617070726f76652066726f6d20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737342455032303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654c4745202d20416d6f756e7420657863656564732077686974656c697374206d6178696d756d42455032303a207472616e7366657220616d6f756e7420657863656564732062616c616e636542455032303a207472616e7366657220746f20746865207a65726f206164647265737342455032303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f4e65772077686974656c697374657220697320746865207a65726f206164647265737342455032303a20617070726f766520746f20746865207a65726f2061646472657373a265627a7a723158207437dad93dc6e64d700f3a0e363346e15a85f372c95595bf56ab94bf33a26d3164736f6c63430005100032

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

OVERVIEW

HappyFans is a subscription-based social network based on blockchain,with fast transactions and very low fees that allows unlockable content, donations and NFT marckatplaces for the content creator market.

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.