ETH Price: $2,345.78 (+2.50%)

Contract

0xb54f54B2265796B808b5F7b767430f900e2C2FDF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60a06040142640922022-02-23 19:08:33929 days ago1645643313IN
 Create: AOC_ERC20
0 ETH0.4478226150

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AOC_ERC20

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 13 : AOC_ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "./library/DateTime.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract AOC_ERC20 is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable, OwnableUpgradeable, PausableUpgradeable, UUPSUpgradeable {
    using DateTimeLibrary for uint;

    struct Level {
        uint256 start;
        uint256 end;
        uint256 percentage;
    }

    struct UserInfo {
        uint256 balance;
        uint256 level;
        uint256 year;
        uint256 month;
    }
    
    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) public blacklisted;
    mapping (address => bool) public excludedFromRAMS;
    mapping (address => bool) public includedInLTAF;
    mapping(uint256 => Level) public levels;
    mapping(address => UserInfo) public userInfo;

    uint256 private _totalSupply;
    uint8 private constant _decimal = 18;
    string private constant _name = "Alpha Omega Coin";
    string private constant _symbol = "AOC";
    uint256 public ltafPercentage;


    event ExternalTokenTransfered(
        address from,
        address to,
        uint256 amount
    );
    
    event ETHFromContractTransferred(
        uint256 amount
    );
    
    event Blacklisted(
        string indexed action,
        address indexed to,
        uint256 at
       
    );
    
    event RemovedFromBlacklist(
        string indexed action,
        address indexed to,
        uint256 at
    );

    event IncludedInRAMS(
        address indexed account
    );

    event ExcludedFromRAMS(
        address indexed account
    );

    event IncludedInLTAF(
        address indexed account
    );

    event ExcludedFromLTAF(
        address indexed account
    );

    event LtafPercentageUpdated(
        uint256 percentage
    );

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function initialize() public initializer {
        _mint(_msgSender(), (1000 * 10**8 * 10**18)); //mint the initial total supply
        ltafPercentage = 60;

        addLevels(1, 1640995200, 1704153599, 20);
        addLevels(2, 1704153600, 1767311999, 15);
        addLevels(3, 1767312000, 1830383999, 10);
        addLevels(4, 1830384000, 0, 5);

        // initializing
        __Pausable_init_unchained();  
        __Ownable_init_unchained();  
        __Context_init_unchained();
    }

    function _authorizeUpgrade(address) internal override onlyOwner {}

    /**
     * @dev Returns the name of the token.
     */
    function name() external view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() external view virtual override returns (uint8) {
        return _decimal;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() external view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) external view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-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 virtual override whenNotPaused returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) external view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) external virtual override whenNotPaused returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-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 virtual override whenNotPaused returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        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 {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) external virtual whenNotPaused returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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 {IERC20-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 virtual whenNotPaused returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }
    
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) external virtual onlyOwner whenNotPaused returns (bool) {
        _burn(_msgSender(), amount);
        return true;
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) external virtual onlyOwner whenNotPaused {
        uint256 currentAllowance = _allowances[account][_msgSender()];
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        _approve(account, _msgSender(), currentAllowance - amount);
        _burn(account, amount);
    }

    function blacklistUser(address _address) external onlyOwner whenNotPaused {
        require(!blacklisted[_address], "User is already blacklisted");
        blacklisted[_address] = true;
        emit Blacklisted("Blacklisted", _address, block.timestamp);
	}
	
	function removeFromBlacklist(address _address) external onlyOwner whenNotPaused {
	    require(blacklisted[_address], "User is not in the blacklist");
	    blacklisted[_address] = false;
	    emit RemovedFromBlacklist("Removed", _address, block.timestamp);
        
	}

    function includeInRAMS(address account) external onlyOwner whenNotPaused {
        require(excludedFromRAMS[account], "User is already included");
        excludedFromRAMS[account] = false;
        emit IncludedInRAMS(account);
	}

    function excludeFromRAMS(address account) external onlyOwner whenNotPaused {
        require(!excludedFromRAMS[account], "User is already excluded");
        excludedFromRAMS[account] = true;
        emit ExcludedFromRAMS(account);
	}

    function includeInLTAF(address account) external onlyOwner whenNotPaused {
        require(!includedInLTAF[account], "User is already included");
        includedInLTAF[account] = true;
        emit IncludedInLTAF(account);
	}

    function excludedFromLTAF(address account) external onlyOwner whenNotPaused {
        require(includedInLTAF[account], "User is already excluded");
        includedInLTAF[account] = false;
        emit ExcludedFromLTAF(account);
	}

    function updateLtafPercentage(uint256 percentage) external onlyOwner whenNotPaused {
        require(percentage > 0, "Percentage must be greater than zero");
        ltafPercentage = percentage;
        emit LtafPercentageUpdated(ltafPercentage);
    }

    /**
     * @dev Pause `contract` - pause events.
     *
     * See {ERC20Pausable-_pause}.
     */
    function pauseContract() external virtual onlyOwner {
        _pause();
    }
    
    /**
     * @dev Pause `contract` - pause events.
     *
     * See {ERC20Pausable-_pause}.
     */
    function unPauseContract() external virtual onlyOwner {
        _unpause();
    }

    function withdrawETHFromContract(address payable recipient, uint256 amount) external onlyOwner payable {
        require(recipient != address(0), "Address cant be zero address");
        require(amount <= address(this).balance, "withdrawETHFromContract: withdraw amount exceeds ETH balance");              
        recipient.transfer(amount);        
        emit ETHFromContractTransferred(amount);
    }

    function withdrawToken(address _tokenContract, uint256 _amount) external onlyOwner {
        require(_tokenContract != address(0), "Address cant be zero address");
		// require amount greter than 0
		require(_amount > 0, "amount cannot be 0");
        IERC20Upgradeable tokenContract = IERC20Upgradeable(_tokenContract);
        require(tokenContract.balanceOf(address(this)) > _amount, "withdrawToken: withdraw amount exceeds token balance");
		tokenContract.transfer(msg.sender, _amount);
        emit ExternalTokenTransfered(_tokenContract, msg.sender, _amount);
	}

    // to recieve ETH
    receive() external payable {}

    /**
     * @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 virtual {
        require(!blacklisted[sender] || !blacklisted[recipient], "AOC: Cant't transfer, User is blacklisted");
        require(sender != address(0), "AOC: transfer from the zero address");
        require(recipient != address(0), "AOC: transfer to the zero address");

        if(includedInLTAF[sender] || !excludedFromRAMS[sender]) {
            // convert current timestamp to uint256
            (uint256 year, uint256 month, uint256 day) = DateTimeLibrary.timestampToDate(block.timestamp);
            if(day == 1 || year != userInfo[sender].year || month != userInfo[sender].month || userInfo[sender].level == 0) updateUserInfo(sender, year, month);

            if(includedInLTAF[sender]) {
                // validate amount
                require(amount <= ((userInfo[sender].balance * ltafPercentage) / 10**2), "ERC20: Amount is higher than LTAF percentage");
            } else if(!excludedFromRAMS[sender]) {
                // validate amount
                if(userInfo[sender].level > 0) require(amount <= ((userInfo[sender].balance * levels[userInfo[sender].level].percentage) / 10**2), "ERC20: Amount is higher");
            }
        }

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    function updateUserInfo(address account, uint256 year, uint256 month) internal {
        userInfo[account].balance = _balances[account];
        userInfo[account].year = year;
        userInfo[account].month = month;
        for(uint256 i = 1; i <= 4; i++) {
            if(i == 4) {
                userInfo[account].level = i;
                break;
            }
            if(block.timestamp >= levels[i].start && block.timestamp <= levels[i].end) {
                userInfo[account].level = i;
                break;
            }
        }
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");
        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        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);
    }

    function addLevels(uint256 level, uint256 startDay, uint256 endDay, uint256 percentage) internal {
        levels[level] = Level({
            start: startDay,
            end: endDay,
            percentage: percentage
        });
    }
    
}

File 2 of 13 : DateTime.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library DateTimeLibrary {

    uint constant SECONDS_PER_DAY = 24 * 60 * 60;
    int constant OFFSET19700101 = 2440588;

    // ------------------------------------------------------------------------
    // Calculate year/month/day from the number of days since 1970/01/01 using
    // the date conversion algorithm
    // and adding the offset 2440588 so that 1970/01/01 is day 0
    //
    // int L = days + 68569 + offset
    // int N = 4 * L / 146097
    // L = L - (146097 * N + 3) / 4
    // year = 4000 * (L + 1) / 1461001
    // L = L - 1461 * year / 4 + 31
    // month = 80 * L / 2447
    // dd = L - 2447 * month / 80
    // L = month / 11
    // month = month + 2 - 12 * L
    // year = 100 * (N - 49) + year + L
    // ------------------------------------------------------------------------
    function _daysToDate(uint _days) internal pure returns (uint year, uint month, uint day) {
        int __days = int(_days);

        int L = __days + 68569 + OFFSET19700101;
        int N = 4 * L / 146097;
        L = L - (146097 * N + 3) / 4;
        int _year = 4000 * (L + 1) / 1461001;
        L = L - 1461 * _year / 4 + 31;
        int _month = 80 * L / 2447;
        int _day = L - 2447 * _month / 80;
        L = _month / 11;
        _month = _month + 2 - 12 * L;
        _year = 100 * (N - 49) + _year + L;

        year = uint(_year);
        month = uint(_month);
        day = uint(_day);
    }

    function timestampToDate(uint timestamp) internal pure returns (uint year, uint month, uint day) {
        (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY);
    }
}

File 3 of 13 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

File 4 of 13 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 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.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

File 5 of 13 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 13 : IERC20MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 7 of 13 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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 8 of 13 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

File 9 of 13 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
        __ERC1967Upgrade_init_unchained();
        __UUPSUpgradeable_init_unchained();
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;
    uint256[50] private __gap;
}

File 10 of 13 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 11 of 13 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 12 of 13 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
        __ERC1967Upgrade_init_unchained();
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallSecure(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlotUpgradeable.BooleanSlot storage rollbackTesting = StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            _functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature("upgradeTo(address)", oldImplementation)
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
            // Finally reset to the new implementation and log the upgrade
            _upgradeTo(newImplementation);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }
    uint256[50] private __gap;
}

File 13 of 13 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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.
 */
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
    uint256[49] private __gap;
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "byzantium",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"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":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"action","type":"string"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"Blacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHFromContractTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludedFromLTAF","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"ExcludedFromRAMS","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExternalTokenTransfered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"IncludedInLTAF","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"IncludedInRAMS","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"LtafPercentageUpdated","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"action","type":"string"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"RemovedFromBlacklist","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"blacklistUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromRAMS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludedFromLTAF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromRAMS","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInLTAF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInRAMS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"includedInLTAF","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"levels","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ltafPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unPauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"updateLtafPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"year","type":"uint256"},{"internalType":"uint256","name":"month","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETHFromContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523060805234801561001457600080fd5b5060805161353c61004560003960008181610c5701528181610c9a01528181610e290152610e6c015261353c6000f3fe60806040526004361061023b576000357c01000000000000000000000000000000000000000000000000000000009004806370a0823111610140578063a457c2d7116100c8578063dbac26e91161008c578063dbac26e91461071f578063dd62ed3e1461074f578063ea03b81b14610795578063f2fde38b146107ac578063fcbca456146107cc57600080fd5b8063a457c2d71461065f578063a678129d1461067f578063a9059cbb14610692578063b2596a67146106b2578063bac152031461070a57600080fd5b806381e4ae801161010f57806381e4ae80146105805780638da5cb5b146105a057806395d89b41146105c85780639e281a981461060e578063a276b85a1461062e57600080fd5b806370a0823114610500578063715018a61461053657806379cc67901461054b5780638129fc1c1461056b57600080fd5b806333895989116101c3578063439766ce11610192578063439766ce146104805780634f1ef28614610495578063537df3b6146104a85780635c975abb146104c85780636a3f5e16146104e057600080fd5b806333895989146104005780633659cfe614610420578063395093511461044057806342966c681461046057600080fd5b806318160ddd1161020a57806318160ddd146103115780631959a002146103315780631f3c6ae31461039457806323b872dd146103c4578063313ce567146103e457600080fd5b806306fdde0314610247578063095ea7b31461029f5780630c6f874e146102cf5780630e83f1dd146102f157600080fd5b3661024257005b600080fd5b34801561025357600080fd5b5060408051808201909152601081527f416c706861204f6d65676120436f696e0000000000000000000000000000000060208201525b6040516102969190612e95565b60405180910390f35b3480156102ab57600080fd5b506102bf6102ba366004612edd565b6107ec565b6040519015158152602001610296565b3480156102db57600080fd5b506102ef6102ea366004612f09565b610837565b005b3480156102fd57600080fd5b506102ef61030c366004612f22565b61093e565b34801561031d57600080fd5b50610102545b604051908152602001610296565b34801561033d57600080fd5b5061037461034c366004612f22565b6101016020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610296565b3480156103a057600080fd5b506102bf6103af366004612f22565b60fe6020526000908152604090205460ff1681565b3480156103d057600080fd5b506102bf6103df366004612f3f565b610a4a565b3480156103f057600080fd5b5060405160128152602001610296565b34801561040c57600080fd5b506102ef61041b366004612f22565b610b41565b34801561042c57600080fd5b506102ef61043b366004612f22565b610c4c565b34801561044c57600080fd5b506102bf61045b366004612edd565b610d1b565b34801561046c57600080fd5b506102bf61047b366004612f09565b610d7f565b34801561048c57600080fd5b506102ef610de7565b6102ef6104a3366004612faf565b610e1e565b3480156104b457600080fd5b506102ef6104c3366004612f22565b610ede565b3480156104d457600080fd5b5060655460ff166102bf565b3480156104ec57600080fd5b506102ef6104fb366004612f22565b611023565b34801561050c57600080fd5b5061032361051b366004612f22565b600160a060020a0316600090815260fb602052604090205490565b34801561054257600080fd5b506102ef61112a565b34801561055757600080fd5b506102ef610566366004612edd565b611161565b34801561057757600080fd5b506102ef61126e565b34801561058c57600080fd5b506102ef61059b366004612f22565b6113c2565b3480156105ac57600080fd5b50603354604051600160a060020a039091168152602001610296565b3480156105d457600080fd5b5060408051808201909152600381527f414f4300000000000000000000000000000000000000000000000000000000006020820152610289565b34801561061a57600080fd5b506102ef610629366004612edd565b6114ca565b34801561063a57600080fd5b506102bf610649366004612f22565b60ff602081905260009182526040909120541681565b34801561066b57600080fd5b506102bf61067a366004612edd565b611795565b6102ef61068d366004612edd565b611879565b34801561069e57600080fd5b506102bf6106ad366004612edd565b6119e7565b3480156106be57600080fd5b506106ef6106cd366004612f09565b6101006020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610296565b34801561071657600080fd5b506102ef611a20565b34801561072b57600080fd5b506102bf61073a366004612f22565b60fd6020526000908152604090205460ff1681565b34801561075b57600080fd5b5061032361076a366004613073565b600160a060020a03918216600090815260fc6020908152604080832093909416825291909152205490565b3480156107a157600080fd5b506103236101035481565b3480156107b857600080fd5b506102ef6107c7366004612f22565b611a55565b3480156107d857600080fd5b506102ef6107e7366004612f22565b611b0a565b60006107fa60655460ff1690565b156108235760405160e560020a62461bcd02815260040161081a906130ac565b60405180910390fd5b61082e338484611c53565b50600192915050565b603354600160a060020a031633146108645760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff161561088a5760405160e560020a62461bcd02815260040161081a906130ac565b600081116109025760405160e560020a62461bcd028152602060048201526024808201527f50657263656e74616765206d7573742062652067726561746572207468616e2060448201527f7a65726f00000000000000000000000000000000000000000000000000000000606482015260840161081a565b6101038190556040518181527f9d7304c19a90c858e2ba52cb72c3d4bc476c999b015c4a56efd3775a41b5ab409060200160405180910390a150565b603354600160a060020a0316331461096b5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156109915760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260ff602081905260409091205416156109fe5760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c726561647920696e636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260ff6020526040808220805460ff19166001179055517ff1bdab157beab73b6937994de72fd165de2fb13f740b95288ab940d31ed4d7b79190a250565b6000610a5860655460ff1690565b15610a785760405160e560020a62461bcd02815260040161081a906130ac565b610a83848484611db2565b600160a060020a038416600090815260fc6020908152604080832033845290915290205482811015610b205760405160e560020a62461bcd02815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606482015260840161081a565b610b348533610b2f8685613147565b611c53565b60019150505b9392505050565b603354600160a060020a03163314610b6e5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615610b945760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fe602052604090205460ff1615610c005760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c7265616479206578636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260fe6020526040808220805460ff19166001179055517f7437fa351a313721ef8c97fa1cc2ae691f43923b37a9444322f8ae82cce076109190a250565b30600160a060020a037f0000000000000000000000000000000000000000000000000000000000000000161415610c985760405160e560020a62461bcd02815260040161081a9061315e565b7f0000000000000000000000000000000000000000000000000000000000000000600160a060020a0316610cca612329565b600160a060020a031614610cf35760405160e560020a62461bcd02815260040161081a906131bb565b610cfc81612357565b60408051600080825260208201909252610d1891839190612384565b50565b6000610d2960655460ff1690565b15610d495760405160e560020a62461bcd02815260040161081a906130ac565b33600081815260fc60209081526040808320600160a060020a038816845290915290205461082e91908590610b2f908690613218565b603354600090600160a060020a03163314610daf5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615610dd55760405160e560020a62461bcd02815260040161081a906130ac565b610ddf338361250e565b506001919050565b603354600160a060020a03163314610e145760405160e560020a62461bcd02815260040161081a906130e3565b610e1c61269b565b565b30600160a060020a037f0000000000000000000000000000000000000000000000000000000000000000161415610e6a5760405160e560020a62461bcd02815260040161081a9061315e565b7f0000000000000000000000000000000000000000000000000000000000000000600160a060020a0316610e9c612329565b600160a060020a031614610ec55760405160e560020a62461bcd02815260040161081a906131bb565b610ece82612357565b610eda82826001612384565b5050565b603354600160a060020a03163314610f0b5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615610f315760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fd602052604090205460ff16610f9c5760405160e560020a62461bcd02815260206004820152601c60248201527f55736572206973206e6f7420696e2074686520626c61636b6c69737400000000604482015260640161081a565b600160a060020a038116600081815260fd602052604090819020805460ff19169055517f52656d6f766564000000000000000000000000000000000000000000000000008152600701604051908190038120428252907ff9b9af8d7586075ce301a82cd3ce81dc2675e78f3a31ba0c9a4c61a81fa389e4906020015b60405180910390a350565b603354600160a060020a031633146110505760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156110765760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fe602052604090205460ff166110e15760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c726561647920696e636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260fe6020526040808220805460ff19169055517fb20225b76692cf88483096ea8109b9614442bb0d8d208eb8970fa9ba4f9e857b9190a250565b603354600160a060020a031633146111575760405160e560020a62461bcd02815260040161081a906130e3565b610e1c6000612713565b603354600160a060020a0316331461118e5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156111b45760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038216600090815260fc60209081526040808320338452909152902054818110156112505760405160e560020a62461bcd028152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161081a565b61125f8333610b2f8585613147565b611269838361250e565b505050565b600054610100900460ff166112895760005460ff161561128d565b303b155b6113025760405160e560020a62461bcd02815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161081a565b600054610100900460ff16158015611324576000805461ffff19166101011790555b61133b336c01431e0fae6d7217caa0000000612772565b603c6101035561135760016361cf998063659351ff6014612855565b61136d600263659352006369570a7f600f612855565b61138360036369570a80636d19717f600a612855565b6113966004636d19718060006005612855565b61139e612891565b6113a66128c7565b6113ae6128fa565b8015610d18576000805461ff001916905550565b603354600160a060020a031633146113ef5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156114155760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260ff6020819052604090912054166114815760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c7265616479206578636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260ff6020526040808220805460ff19169055517f44c11ce15af40cec10cdb8ec63b0e9485705407e3752a4e81825d6e16441c7859190a250565b603354600160a060020a031633146114f75760405160e560020a62461bcd02815260040161081a906130e3565b600160a060020a0382166115505760405160e560020a62461bcd02815260206004820152601c60248201527f416464726573732063616e74206265207a65726f206164647265737300000000604482015260640161081a565b600081116115a35760405160e560020a62461bcd02815260206004820152601260248201527f616d6f756e742063616e6e6f7420626520300000000000000000000000000000604482015260640161081a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282908290600160a060020a038316906370a082319060240160206040518083038186803b1580156115ff57600080fd5b505afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116379190613230565b116116ad5760405160e560020a62461bcd02815260206004820152603460248201527f7769746864726177546f6b656e3a20776974686472617720616d6f756e74206560448201527f78636565647320746f6b656e2062616c616e6365000000000000000000000000606482015260840161081a565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101839052600160a060020a0382169063a9059cbb90604401602060405180830381600087803b15801561170e57600080fd5b505af1158015611722573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117469190613249565b5060408051600160a060020a03851681523360208201529081018390527f5c5578c78fc9b87943279247ef36abf638b9551372bb769b5d87d1ae6a31be649060600160405180910390a1505050565b60006117a360655460ff1690565b156117c35760405160e560020a62461bcd02815260040161081a906130ac565b33600090815260fc60209081526040808320600160a060020a0387168452909152902054828110156118605760405160e560020a62461bcd02815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161081a565b61186f3385610b2f8685613147565b5060019392505050565b603354600160a060020a031633146118a65760405160e560020a62461bcd02815260040161081a906130e3565b600160a060020a0382166118ff5760405160e560020a62461bcd02815260206004820152601c60248201527f416464726573732063616e74206265207a65726f206164647265737300000000604482015260640161081a565b30318111156119795760405160e560020a62461bcd02815260206004820152603c60248201527f776974686472617745544846726f6d436f6e74726163743a207769746864726160448201527f7720616d6f756e742065786365656473204554482062616c616e636500000000606482015260840161081a565b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156119af573d6000803e3d6000fd5b506040518181527f1f589fd3c3b90e57cfda964f6cb4c051da89f79da4908a2b9ddfe5449673e3c79060200160405180910390a15050565b60006119f560655460ff1690565b15611a155760405160e560020a62461bcd02815260040161081a906130ac565b61082e338484611db2565b603354600160a060020a03163314611a4d5760405160e560020a62461bcd02815260040161081a906130e3565b610e1c612924565b603354600160a060020a03163314611a825760405160e560020a62461bcd02815260040161081a906130e3565b600160a060020a038116611b015760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161081a565b610d1881612713565b603354600160a060020a03163314611b375760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615611b5d5760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fd602052604090205460ff1615611bc95760405160e560020a62461bcd02815260206004820152601b60248201527f5573657220697320616c726561647920626c61636b6c69737465640000000000604482015260640161081a565b600160a060020a038116600081815260fd602052604090819020805460ff1916600117905551611c1c907f426c61636b6c69737465640000000000000000000000000000000000000000008152600b0190565b604051908190038120428252907f540799798d5b60cd89c0a8776ba0b2432413063ae82d21fe61f8830f079bcaa390602001611018565b600160a060020a038316611cd15760405160e560020a62461bcd028152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038216611d505760405160e560020a62461bcd02815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a03838116600081815260fc602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600160a060020a038316600090815260fd602052604090205460ff161580611df35750600160a060020a038216600090815260fd602052604090205460ff16155b611e685760405160e560020a62461bcd02815260206004820152602960248201527f414f433a2043616e742774207472616e736665722c205573657220697320626c60448201527f61636b6c69737465640000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038316611ee75760405160e560020a62461bcd02815260206004820152602360248201527f414f433a207472616e736665722066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038216611f665760405160e560020a62461bcd02815260206004820152602160248201527f414f433a207472616e7366657220746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038316600090815260ff60208190526040909120541680611fa75750600160a060020a038316600090815260fe602052604090205460ff16155b156121fd576000806000611fba426129aa565b9250925092508060011480611feb5750600160a060020a038616600090815261010160205260409020600201548314155b806120125750600160a060020a038616600090815261010160205260409020600301548214155b806120375750600160a060020a03861660009081526101016020526040902060010154155b15612047576120478684846129d0565b600160a060020a038616600090815260ff6020819052604090912054161561211a5761010354600160a060020a038716600090815261010160205260409020546064916120939161326b565b61209d91906132b9565b8411156121155760405160e560020a62461bcd02815260206004820152602c60248201527f45524332303a20416d6f756e7420697320686967686572207468616e204c544160448201527f462070657263656e746167650000000000000000000000000000000000000000606482015260840161081a565b6121f9565b600160a060020a038616600090815260fe602052604090205460ff166121f957600160a060020a03861660009081526101016020526040902060010154156121f957600160a060020a0386166000818152610101602081815260408084206001810154855261010083529084206002015494909352525460649161219d9161326b565b6121a791906132b9565b8411156121f95760405160e560020a62461bcd02815260206004820152601760248201527f45524332303a20416d6f756e7420697320686967686572000000000000000000604482015260640161081a565b5050505b600160a060020a038316600090815260fb60205260409020548181101561228f5760405160e560020a62461bcd02815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161081a565b6122998282613147565b600160a060020a03808616600090815260fb602052604080822093909355908516815290812080548492906122cf908490613218565b9250508190555082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161231b91815260200190565b60405180910390a350505050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54600160a060020a031690565b603354600160a060020a03163314610d185760405160e560020a62461bcd02815260040161081a906130e3565b600061238e612329565b905061239984612aaf565b6000835111806123a65750815b156123b7576123b58484612b74565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661250757805460ff19166001178155604051600160a060020a038316602482015261246490869060440160408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f3659cfe600000000000000000000000000000000000000000000000000000000179052612b74565b50805460ff19168155612475612329565b600160a060020a031682600160a060020a0316146124fe5760405160e560020a62461bcd02815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201527f7572746865722075706772616465730000000000000000000000000000000000606482015260840161081a565b61250785612c79565b5050505050565b600160a060020a03821661258d5760405160e560020a62461bcd02815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038216600090815260fb60205260409020548181101561261f5760405160e560020a62461bcd02815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b6126298282613147565b600160a060020a038416600090815260fb60205260408120919091556101028054849290612658908490613147565b9091555050604051828152600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611da5565b60655460ff16156126c15760405160e560020a62461bcd02815260040161081a906130ac565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126f63390565b604051600160a060020a03909116815260200160405180910390a1565b60338054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a0382166127cb5760405160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161081a565b8061010260008282546127de9190613218565b9091555050600160a060020a038216600090815260fb60205260408120805483929061280b908490613218565b9091555050604051818152600160a060020a038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60408051606081018252938452602080850193845284820192835260009586526101009052909320915182555160018201559051600290910155565b600054610100900460ff166128bb5760405160e560020a62461bcd02815260040161081a906132cd565b6065805460ff19169055565b600054610100900460ff166128f15760405160e560020a62461bcd02815260040161081a906132cd565b610e1c33612713565b600054610100900460ff16610e1c5760405160e560020a62461bcd02815260040161081a906132cd565b60655460ff166129795760405160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161081a565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336126f6565b600080806129c36129be62015180866132b9565b612cb9565b9196909550909350915050565b600160a060020a038316600090815260fb60209081526040808320546101019092529091209081556002810183905560030181905560015b60048111612aa9578060041415612a3d57600160a060020a038416600090815261010160205260409020600101819055612aa9565b600081815261010060205260409020544210801590612a6e5750600081815261010060205260409020600101544211155b15612a9757600160a060020a038416600090815261010160205260409020600101819055612aa9565b80612aa18161332a565b915050612a08565b50505050565b803b612b265760405160e560020a62461bcd02815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161081a565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060823b612bed5760405160e560020a62461bcd02815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161081a565b60008084600160a060020a031684604051612c089190613345565b600060405180830381855af49150503d8060008114612c43576040519150601f19603f3d011682016040523d82523d6000602084013e612c48565b606091505b5091509150612c7082826040518060600160405280602781526020016134e060279139612e2d565b95945050505050565b612c8281612aaf565b604051600160a060020a038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60008080838162253d8c612cd08362010bd9613361565b612cda9190613361565b9050600062023ab1612ced8360046133b9565b612cf79190613459565b90506004612d088262023ab16133b9565b612d13906003613361565b612d1d9190613459565b612d279083613487565b9150600062164b09612d3a846001613361565b612d4690610fa06133b9565b612d509190613459565b90506004612d60826105b56133b9565b612d6a9190613459565b612d749084613487565b612d7f90601f613361565b9250600061098f612d918560506133b9565b612d9b9190613459565b905060006050612dad8361098f6133b9565b612db79190613459565b612dc19086613487565b9050612dce600b83613459565b9450612ddb85600c6133b9565b612de6836002613361565b612df09190613487565b91508483612dff603187613487565b612e0a9060646133b9565b612e149190613361565b612e1e9190613361565b9a919950975095505050505050565b60608315612e3c575081610b3a565b825115612e4c5782518084602001fd5b8160405160e560020a62461bcd02815260040161081a9190612e95565b60005b83811015612e84578181015183820152602001612e6c565b83811115612aa95750506000910152565b6020815260008251806020840152612eb4816040850160208701612e69565b601f01601f19169190910160400192915050565b600160a060020a0381168114610d1857600080fd5b60008060408385031215612ef057600080fd5b8235612efb81612ec8565b946020939093013593505050565b600060208284031215612f1b57600080fd5b5035919050565b600060208284031215612f3457600080fd5b8135610b3a81612ec8565b600080600060608486031215612f5457600080fd5b8335612f5f81612ec8565b92506020840135612f6f81612ec8565b929592945050506040919091013590565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060408385031215612fc257600080fd5b8235612fcd81612ec8565b9150602083013567ffffffffffffffff80821115612fea57600080fd5b818501915085601f830112612ffe57600080fd5b81358181111561301057613010612f80565b604051601f8201601f19908116603f0116810190838211818310171561303857613038612f80565b8160405282815288602084870101111561305157600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121561308657600080fd5b823561309181612ec8565b915060208301356130a181612ec8565b809150509250929050565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561315957613159613118565b500390565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201527f64656c656761746563616c6c0000000000000000000000000000000000000000606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201527f6163746976652070726f78790000000000000000000000000000000000000000606082015260800190565b6000821982111561322b5761322b613118565b500190565b60006020828403121561324257600080fd5b5051919050565b60006020828403121561325b57600080fd5b81518015158114610b3a57600080fd5b600081600019048311821515161561328557613285613118565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826132c8576132c861328a565b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201527f6e697469616c697a696e67000000000000000000000000000000000000000000606082015260800190565b600060001982141561333e5761333e613118565b5060010190565b60008251613357818460208701612e69565b9190910192915050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561339b5761339b613118565b8260ff60020a0384128116156133b3576133b3613118565b50500190565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000841360008413858304851182821616156133fa576133fa613118565b60ff60020a600087128682058812818416161561341957613419613118565b6000871292508782058712848416161561343557613435613118565b8785058712818416161561344b5761344b613118565b505050929093029392505050565b6000826134685761346861328a565b60ff60020a82146000198414161561348257613482613118565b500590565b60008083128360ff60020a018312811516156134a5576134a5613118565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156134d9576134d9613118565b5050039056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206cfecefff5e91175911b4c18d09f001d66fe3c5662336eb0bb2bd9e169d2a8fc64736f6c63430008090033

Deployed Bytecode

0x60806040526004361061023b576000357c01000000000000000000000000000000000000000000000000000000009004806370a0823111610140578063a457c2d7116100c8578063dbac26e91161008c578063dbac26e91461071f578063dd62ed3e1461074f578063ea03b81b14610795578063f2fde38b146107ac578063fcbca456146107cc57600080fd5b8063a457c2d71461065f578063a678129d1461067f578063a9059cbb14610692578063b2596a67146106b2578063bac152031461070a57600080fd5b806381e4ae801161010f57806381e4ae80146105805780638da5cb5b146105a057806395d89b41146105c85780639e281a981461060e578063a276b85a1461062e57600080fd5b806370a0823114610500578063715018a61461053657806379cc67901461054b5780638129fc1c1461056b57600080fd5b806333895989116101c3578063439766ce11610192578063439766ce146104805780634f1ef28614610495578063537df3b6146104a85780635c975abb146104c85780636a3f5e16146104e057600080fd5b806333895989146104005780633659cfe614610420578063395093511461044057806342966c681461046057600080fd5b806318160ddd1161020a57806318160ddd146103115780631959a002146103315780631f3c6ae31461039457806323b872dd146103c4578063313ce567146103e457600080fd5b806306fdde0314610247578063095ea7b31461029f5780630c6f874e146102cf5780630e83f1dd146102f157600080fd5b3661024257005b600080fd5b34801561025357600080fd5b5060408051808201909152601081527f416c706861204f6d65676120436f696e0000000000000000000000000000000060208201525b6040516102969190612e95565b60405180910390f35b3480156102ab57600080fd5b506102bf6102ba366004612edd565b6107ec565b6040519015158152602001610296565b3480156102db57600080fd5b506102ef6102ea366004612f09565b610837565b005b3480156102fd57600080fd5b506102ef61030c366004612f22565b61093e565b34801561031d57600080fd5b50610102545b604051908152602001610296565b34801561033d57600080fd5b5061037461034c366004612f22565b6101016020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610296565b3480156103a057600080fd5b506102bf6103af366004612f22565b60fe6020526000908152604090205460ff1681565b3480156103d057600080fd5b506102bf6103df366004612f3f565b610a4a565b3480156103f057600080fd5b5060405160128152602001610296565b34801561040c57600080fd5b506102ef61041b366004612f22565b610b41565b34801561042c57600080fd5b506102ef61043b366004612f22565b610c4c565b34801561044c57600080fd5b506102bf61045b366004612edd565b610d1b565b34801561046c57600080fd5b506102bf61047b366004612f09565b610d7f565b34801561048c57600080fd5b506102ef610de7565b6102ef6104a3366004612faf565b610e1e565b3480156104b457600080fd5b506102ef6104c3366004612f22565b610ede565b3480156104d457600080fd5b5060655460ff166102bf565b3480156104ec57600080fd5b506102ef6104fb366004612f22565b611023565b34801561050c57600080fd5b5061032361051b366004612f22565b600160a060020a0316600090815260fb602052604090205490565b34801561054257600080fd5b506102ef61112a565b34801561055757600080fd5b506102ef610566366004612edd565b611161565b34801561057757600080fd5b506102ef61126e565b34801561058c57600080fd5b506102ef61059b366004612f22565b6113c2565b3480156105ac57600080fd5b50603354604051600160a060020a039091168152602001610296565b3480156105d457600080fd5b5060408051808201909152600381527f414f4300000000000000000000000000000000000000000000000000000000006020820152610289565b34801561061a57600080fd5b506102ef610629366004612edd565b6114ca565b34801561063a57600080fd5b506102bf610649366004612f22565b60ff602081905260009182526040909120541681565b34801561066b57600080fd5b506102bf61067a366004612edd565b611795565b6102ef61068d366004612edd565b611879565b34801561069e57600080fd5b506102bf6106ad366004612edd565b6119e7565b3480156106be57600080fd5b506106ef6106cd366004612f09565b6101006020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610296565b34801561071657600080fd5b506102ef611a20565b34801561072b57600080fd5b506102bf61073a366004612f22565b60fd6020526000908152604090205460ff1681565b34801561075b57600080fd5b5061032361076a366004613073565b600160a060020a03918216600090815260fc6020908152604080832093909416825291909152205490565b3480156107a157600080fd5b506103236101035481565b3480156107b857600080fd5b506102ef6107c7366004612f22565b611a55565b3480156107d857600080fd5b506102ef6107e7366004612f22565b611b0a565b60006107fa60655460ff1690565b156108235760405160e560020a62461bcd02815260040161081a906130ac565b60405180910390fd5b61082e338484611c53565b50600192915050565b603354600160a060020a031633146108645760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff161561088a5760405160e560020a62461bcd02815260040161081a906130ac565b600081116109025760405160e560020a62461bcd028152602060048201526024808201527f50657263656e74616765206d7573742062652067726561746572207468616e2060448201527f7a65726f00000000000000000000000000000000000000000000000000000000606482015260840161081a565b6101038190556040518181527f9d7304c19a90c858e2ba52cb72c3d4bc476c999b015c4a56efd3775a41b5ab409060200160405180910390a150565b603354600160a060020a0316331461096b5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156109915760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260ff602081905260409091205416156109fe5760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c726561647920696e636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260ff6020526040808220805460ff19166001179055517ff1bdab157beab73b6937994de72fd165de2fb13f740b95288ab940d31ed4d7b79190a250565b6000610a5860655460ff1690565b15610a785760405160e560020a62461bcd02815260040161081a906130ac565b610a83848484611db2565b600160a060020a038416600090815260fc6020908152604080832033845290915290205482811015610b205760405160e560020a62461bcd02815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000606482015260840161081a565b610b348533610b2f8685613147565b611c53565b60019150505b9392505050565b603354600160a060020a03163314610b6e5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615610b945760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fe602052604090205460ff1615610c005760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c7265616479206578636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260fe6020526040808220805460ff19166001179055517f7437fa351a313721ef8c97fa1cc2ae691f43923b37a9444322f8ae82cce076109190a250565b30600160a060020a037f000000000000000000000000b54f54b2265796b808b5f7b767430f900e2c2fdf161415610c985760405160e560020a62461bcd02815260040161081a9061315e565b7f000000000000000000000000b54f54b2265796b808b5f7b767430f900e2c2fdf600160a060020a0316610cca612329565b600160a060020a031614610cf35760405160e560020a62461bcd02815260040161081a906131bb565b610cfc81612357565b60408051600080825260208201909252610d1891839190612384565b50565b6000610d2960655460ff1690565b15610d495760405160e560020a62461bcd02815260040161081a906130ac565b33600081815260fc60209081526040808320600160a060020a038816845290915290205461082e91908590610b2f908690613218565b603354600090600160a060020a03163314610daf5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615610dd55760405160e560020a62461bcd02815260040161081a906130ac565b610ddf338361250e565b506001919050565b603354600160a060020a03163314610e145760405160e560020a62461bcd02815260040161081a906130e3565b610e1c61269b565b565b30600160a060020a037f000000000000000000000000b54f54b2265796b808b5f7b767430f900e2c2fdf161415610e6a5760405160e560020a62461bcd02815260040161081a9061315e565b7f000000000000000000000000b54f54b2265796b808b5f7b767430f900e2c2fdf600160a060020a0316610e9c612329565b600160a060020a031614610ec55760405160e560020a62461bcd02815260040161081a906131bb565b610ece82612357565b610eda82826001612384565b5050565b603354600160a060020a03163314610f0b5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615610f315760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fd602052604090205460ff16610f9c5760405160e560020a62461bcd02815260206004820152601c60248201527f55736572206973206e6f7420696e2074686520626c61636b6c69737400000000604482015260640161081a565b600160a060020a038116600081815260fd602052604090819020805460ff19169055517f52656d6f766564000000000000000000000000000000000000000000000000008152600701604051908190038120428252907ff9b9af8d7586075ce301a82cd3ce81dc2675e78f3a31ba0c9a4c61a81fa389e4906020015b60405180910390a350565b603354600160a060020a031633146110505760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156110765760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fe602052604090205460ff166110e15760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c726561647920696e636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260fe6020526040808220805460ff19169055517fb20225b76692cf88483096ea8109b9614442bb0d8d208eb8970fa9ba4f9e857b9190a250565b603354600160a060020a031633146111575760405160e560020a62461bcd02815260040161081a906130e3565b610e1c6000612713565b603354600160a060020a0316331461118e5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156111b45760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038216600090815260fc60209081526040808320338452909152902054818110156112505760405160e560020a62461bcd028152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161081a565b61125f8333610b2f8585613147565b611269838361250e565b505050565b600054610100900460ff166112895760005460ff161561128d565b303b155b6113025760405160e560020a62461bcd02815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840161081a565b600054610100900460ff16158015611324576000805461ffff19166101011790555b61133b336c01431e0fae6d7217caa0000000612772565b603c6101035561135760016361cf998063659351ff6014612855565b61136d600263659352006369570a7f600f612855565b61138360036369570a80636d19717f600a612855565b6113966004636d19718060006005612855565b61139e612891565b6113a66128c7565b6113ae6128fa565b8015610d18576000805461ff001916905550565b603354600160a060020a031633146113ef5760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff16156114155760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260ff6020819052604090912054166114815760405160e560020a62461bcd02815260206004820152601860248201527f5573657220697320616c7265616479206578636c756465640000000000000000604482015260640161081a565b600160a060020a038116600081815260ff6020526040808220805460ff19169055517f44c11ce15af40cec10cdb8ec63b0e9485705407e3752a4e81825d6e16441c7859190a250565b603354600160a060020a031633146114f75760405160e560020a62461bcd02815260040161081a906130e3565b600160a060020a0382166115505760405160e560020a62461bcd02815260206004820152601c60248201527f416464726573732063616e74206265207a65726f206164647265737300000000604482015260640161081a565b600081116115a35760405160e560020a62461bcd02815260206004820152601260248201527f616d6f756e742063616e6e6f7420626520300000000000000000000000000000604482015260640161081a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015282908290600160a060020a038316906370a082319060240160206040518083038186803b1580156115ff57600080fd5b505afa158015611613573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116379190613230565b116116ad5760405160e560020a62461bcd02815260206004820152603460248201527f7769746864726177546f6b656e3a20776974686472617720616d6f756e74206560448201527f78636565647320746f6b656e2062616c616e6365000000000000000000000000606482015260840161081a565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101839052600160a060020a0382169063a9059cbb90604401602060405180830381600087803b15801561170e57600080fd5b505af1158015611722573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117469190613249565b5060408051600160a060020a03851681523360208201529081018390527f5c5578c78fc9b87943279247ef36abf638b9551372bb769b5d87d1ae6a31be649060600160405180910390a1505050565b60006117a360655460ff1690565b156117c35760405160e560020a62461bcd02815260040161081a906130ac565b33600090815260fc60209081526040808320600160a060020a0387168452909152902054828110156118605760405160e560020a62461bcd02815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161081a565b61186f3385610b2f8685613147565b5060019392505050565b603354600160a060020a031633146118a65760405160e560020a62461bcd02815260040161081a906130e3565b600160a060020a0382166118ff5760405160e560020a62461bcd02815260206004820152601c60248201527f416464726573732063616e74206265207a65726f206164647265737300000000604482015260640161081a565b30318111156119795760405160e560020a62461bcd02815260206004820152603c60248201527f776974686472617745544846726f6d436f6e74726163743a207769746864726160448201527f7720616d6f756e742065786365656473204554482062616c616e636500000000606482015260840161081a565b604051600160a060020a0383169082156108fc029083906000818181858888f193505050501580156119af573d6000803e3d6000fd5b506040518181527f1f589fd3c3b90e57cfda964f6cb4c051da89f79da4908a2b9ddfe5449673e3c79060200160405180910390a15050565b60006119f560655460ff1690565b15611a155760405160e560020a62461bcd02815260040161081a906130ac565b61082e338484611db2565b603354600160a060020a03163314611a4d5760405160e560020a62461bcd02815260040161081a906130e3565b610e1c612924565b603354600160a060020a03163314611a825760405160e560020a62461bcd02815260040161081a906130e3565b600160a060020a038116611b015760405160e560020a62461bcd02815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161081a565b610d1881612713565b603354600160a060020a03163314611b375760405160e560020a62461bcd02815260040161081a906130e3565b60655460ff1615611b5d5760405160e560020a62461bcd02815260040161081a906130ac565b600160a060020a038116600090815260fd602052604090205460ff1615611bc95760405160e560020a62461bcd02815260206004820152601b60248201527f5573657220697320616c726561647920626c61636b6c69737465640000000000604482015260640161081a565b600160a060020a038116600081815260fd602052604090819020805460ff1916600117905551611c1c907f426c61636b6c69737465640000000000000000000000000000000000000000008152600b0190565b604051908190038120428252907f540799798d5b60cd89c0a8776ba0b2432413063ae82d21fe61f8830f079bcaa390602001611018565b600160a060020a038316611cd15760405160e560020a62461bcd028152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038216611d505760405160e560020a62461bcd02815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a03838116600081815260fc602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600160a060020a038316600090815260fd602052604090205460ff161580611df35750600160a060020a038216600090815260fd602052604090205460ff16155b611e685760405160e560020a62461bcd02815260206004820152602960248201527f414f433a2043616e742774207472616e736665722c205573657220697320626c60448201527f61636b6c69737465640000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038316611ee75760405160e560020a62461bcd02815260206004820152602360248201527f414f433a207472616e736665722066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038216611f665760405160e560020a62461bcd02815260206004820152602160248201527f414f433a207472616e7366657220746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038316600090815260ff60208190526040909120541680611fa75750600160a060020a038316600090815260fe602052604090205460ff16155b156121fd576000806000611fba426129aa565b9250925092508060011480611feb5750600160a060020a038616600090815261010160205260409020600201548314155b806120125750600160a060020a038616600090815261010160205260409020600301548214155b806120375750600160a060020a03861660009081526101016020526040902060010154155b15612047576120478684846129d0565b600160a060020a038616600090815260ff6020819052604090912054161561211a5761010354600160a060020a038716600090815261010160205260409020546064916120939161326b565b61209d91906132b9565b8411156121155760405160e560020a62461bcd02815260206004820152602c60248201527f45524332303a20416d6f756e7420697320686967686572207468616e204c544160448201527f462070657263656e746167650000000000000000000000000000000000000000606482015260840161081a565b6121f9565b600160a060020a038616600090815260fe602052604090205460ff166121f957600160a060020a03861660009081526101016020526040902060010154156121f957600160a060020a0386166000818152610101602081815260408084206001810154855261010083529084206002015494909352525460649161219d9161326b565b6121a791906132b9565b8411156121f95760405160e560020a62461bcd02815260206004820152601760248201527f45524332303a20416d6f756e7420697320686967686572000000000000000000604482015260640161081a565b5050505b600160a060020a038316600090815260fb60205260409020548181101561228f5760405160e560020a62461bcd02815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161081a565b6122998282613147565b600160a060020a03808616600090815260fb602052604080822093909355908516815290812080548492906122cf908490613218565b9250508190555082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161231b91815260200190565b60405180910390a350505050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc54600160a060020a031690565b603354600160a060020a03163314610d185760405160e560020a62461bcd02815260040161081a906130e3565b600061238e612329565b905061239984612aaf565b6000835111806123a65750815b156123b7576123b58484612b74565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff1661250757805460ff19166001178155604051600160a060020a038316602482015261246490869060440160408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f3659cfe600000000000000000000000000000000000000000000000000000000179052612b74565b50805460ff19168155612475612329565b600160a060020a031682600160a060020a0316146124fe5760405160e560020a62461bcd02815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201527f7572746865722075706772616465730000000000000000000000000000000000606482015260840161081a565b61250785612c79565b5050505050565b600160a060020a03821661258d5760405160e560020a62461bcd02815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b600160a060020a038216600090815260fb60205260409020548181101561261f5760405160e560020a62461bcd02815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161081a565b6126298282613147565b600160a060020a038416600090815260fb60205260408120919091556101028054849290612658908490613147565b9091555050604051828152600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611da5565b60655460ff16156126c15760405160e560020a62461bcd02815260040161081a906130ac565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126f63390565b604051600160a060020a03909116815260200160405180910390a1565b60338054600160a060020a0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160a060020a0382166127cb5760405160e560020a62461bcd02815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161081a565b8061010260008282546127de9190613218565b9091555050600160a060020a038216600090815260fb60205260408120805483929061280b908490613218565b9091555050604051818152600160a060020a038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60408051606081018252938452602080850193845284820192835260009586526101009052909320915182555160018201559051600290910155565b600054610100900460ff166128bb5760405160e560020a62461bcd02815260040161081a906132cd565b6065805460ff19169055565b600054610100900460ff166128f15760405160e560020a62461bcd02815260040161081a906132cd565b610e1c33612713565b600054610100900460ff16610e1c5760405160e560020a62461bcd02815260040161081a906132cd565b60655460ff166129795760405160e560020a62461bcd02815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161081a565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336126f6565b600080806129c36129be62015180866132b9565b612cb9565b9196909550909350915050565b600160a060020a038316600090815260fb60209081526040808320546101019092529091209081556002810183905560030181905560015b60048111612aa9578060041415612a3d57600160a060020a038416600090815261010160205260409020600101819055612aa9565b600081815261010060205260409020544210801590612a6e5750600081815261010060205260409020600101544211155b15612a9757600160a060020a038416600090815261010160205260409020600101819055612aa9565b80612aa18161332a565b915050612a08565b50505050565b803b612b265760405160e560020a62461bcd02815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e747261637400000000000000000000000000000000000000606482015260840161081a565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060823b612bed5760405160e560020a62461bcd02815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e74726163740000000000000000000000000000000000000000000000000000606482015260840161081a565b60008084600160a060020a031684604051612c089190613345565b600060405180830381855af49150503d8060008114612c43576040519150601f19603f3d011682016040523d82523d6000602084013e612c48565b606091505b5091509150612c7082826040518060600160405280602781526020016134e060279139612e2d565b95945050505050565b612c8281612aaf565b604051600160a060020a038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60008080838162253d8c612cd08362010bd9613361565b612cda9190613361565b9050600062023ab1612ced8360046133b9565b612cf79190613459565b90506004612d088262023ab16133b9565b612d13906003613361565b612d1d9190613459565b612d279083613487565b9150600062164b09612d3a846001613361565b612d4690610fa06133b9565b612d509190613459565b90506004612d60826105b56133b9565b612d6a9190613459565b612d749084613487565b612d7f90601f613361565b9250600061098f612d918560506133b9565b612d9b9190613459565b905060006050612dad8361098f6133b9565b612db79190613459565b612dc19086613487565b9050612dce600b83613459565b9450612ddb85600c6133b9565b612de6836002613361565b612df09190613487565b91508483612dff603187613487565b612e0a9060646133b9565b612e149190613361565b612e1e9190613361565b9a919950975095505050505050565b60608315612e3c575081610b3a565b825115612e4c5782518084602001fd5b8160405160e560020a62461bcd02815260040161081a9190612e95565b60005b83811015612e84578181015183820152602001612e6c565b83811115612aa95750506000910152565b6020815260008251806020840152612eb4816040850160208701612e69565b601f01601f19169190910160400192915050565b600160a060020a0381168114610d1857600080fd5b60008060408385031215612ef057600080fd5b8235612efb81612ec8565b946020939093013593505050565b600060208284031215612f1b57600080fd5b5035919050565b600060208284031215612f3457600080fd5b8135610b3a81612ec8565b600080600060608486031215612f5457600080fd5b8335612f5f81612ec8565b92506020840135612f6f81612ec8565b929592945050506040919091013590565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060408385031215612fc257600080fd5b8235612fcd81612ec8565b9150602083013567ffffffffffffffff80821115612fea57600080fd5b818501915085601f830112612ffe57600080fd5b81358181111561301057613010612f80565b604051601f8201601f19908116603f0116810190838211818310171561303857613038612f80565b8160405282815288602084870101111561305157600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121561308657600080fd5b823561309181612ec8565b915060208301356130a181612ec8565b809150509250929050565b60208082526010908201527f5061757361626c653a2070617573656400000000000000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561315957613159613118565b500390565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201527f64656c656761746563616c6c0000000000000000000000000000000000000000606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201527f6163746976652070726f78790000000000000000000000000000000000000000606082015260800190565b6000821982111561322b5761322b613118565b500190565b60006020828403121561324257600080fd5b5051919050565b60006020828403121561325b57600080fd5b81518015158114610b3a57600080fd5b600081600019048311821515161561328557613285613118565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826132c8576132c861328a565b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201527f6e697469616c697a696e67000000000000000000000000000000000000000000606082015260800190565b600060001982141561333e5761333e613118565b5060010190565b60008251613357818460208701612e69565b9190910192915050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561339b5761339b613118565b8260ff60020a0384128116156133b3576133b3613118565b50500190565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6000841360008413858304851182821616156133fa576133fa613118565b60ff60020a600087128682058812818416161561341957613419613118565b6000871292508782058712848416161561343557613435613118565b8785058712818416161561344b5761344b613118565b505050929093029392505050565b6000826134685761346861328a565b60ff60020a82146000198414161561348257613482613118565b500590565b60008083128360ff60020a018312811516156134a5576134a5613118565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156134d9576134d9613118565b5050039056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206cfecefff5e91175911b4c18d09f001d66fe3c5662336eb0bb2bd9e169d2a8fc64736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

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.