ETH Price: $3,399.19 (+1.94%)

Contract

0xEFB9b7e377cFeb3bDB2eD6F94a8B2A35bb5EE863
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Enter140800342022-01-26 7:55:521068 days ago1643183752IN
0xEFB9b7e3...5bb5EE863
0 ETH0.0069565584.50414463
Enter140296622022-01-18 13:06:091075 days ago1642511169IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01050433127.56339809
Enter140274442022-01-18 4:39:561076 days ago1642480796IN
0xEFB9b7e3...5bb5EE863
0 ETH0.0079072896.03910342
Enter140225092022-01-17 10:34:341077 days ago1642415674IN
0xEFB9b7e3...5bb5EE863
0 ETH0.0063569677.1982467
Enter140199172022-01-17 0:47:281077 days ago1642380448IN
0xEFB9b7e3...5bb5EE863
0 ETH0.0091848111.53915513
Enter140181632022-01-16 18:23:191077 days ago1642357399IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01536797186.65400148
Enter140133162022-01-16 0:26:491078 days ago1642292809IN
0xEFB9b7e3...5bb5EE863
0 ETH0.0075581791.78563348
Enter140053182022-01-14 18:46:071079 days ago1642185967IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01222903148.48629946
Enter140032502022-01-14 11:00:201080 days ago1642158020IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01052345127.77699959
Enter140000432022-01-13 23:10:231080 days ago1642115423IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01362846165.50243498
Enter139980732022-01-13 15:47:301080 days ago1642088850IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01499068182.04507292
Enter139957712022-01-13 7:15:081081 days ago1642058108IN
0xEFB9b7e3...5bb5EE863
0 ETH0.00990877120.34854956
Enter139905332022-01-12 11:50:111081 days ago1641988211IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01000434121.50933079
Enter139893852022-01-12 7:32:461082 days ago1641972766IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01188202144.27290869
Enter139887462022-01-12 5:03:111082 days ago1641963791IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01444382175.42966888
Enter139846012022-01-11 13:49:441082 days ago1641908984IN
0xEFB9b7e3...5bb5EE863
0 ETH0.00924287112.2444006
Enter139838502022-01-11 11:11:281083 days ago1641899488IN
0xEFB9b7e3...5bb5EE863
0 ETH0.01060552128.79221725
Enter139837012022-01-11 10:37:371083 days ago1641897457IN
0xEFB9b7e3...5bb5EE863
0 ETH0.00950689115.4506286
Enter139831602022-01-11 8:38:231083 days ago1641890303IN
0xEFB9b7e3...5bb5EE863
0 ETH0.02094472210.95770929
Add Reward ESD139768572022-01-10 9:05:001084 days ago1641805500IN
0xEFB9b7e3...5bb5EE863
0 ETH0.00991138.92989657

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EtherScanDAOStaking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 9: EtherscanDAOStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

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

contract EtherScanDAOStaking is ERC20("vbESD", "vbESD"), Ownable {
    using SafeERC20 for IERC20;
    using SafeCast for int256;
    using SafeCast for uint256;

    struct Config {
        // Timestamp in seconds is small enough to fit into uint64
        uint64 periodFinish;
        uint64 periodStart;

        // Staking incentive rewards to distribute in a steady rate
        uint128 totalReward;
    }

    IERC20 public esd;
    Config public config;

    /*
     * Construct an EtherscanDAOStaking contract.
     *
     * @param _esd the contract address of ESD token
     * @param _periodStart the initial start time of rewards period
     * @param _rewardsDuration the duration of rewards in seconds
     */
    constructor(IERC20 _esd, uint64 _periodStart, uint64 _rewardsDuration) {
        require(address(_esd) != address(0), "EtherscanDAOStaking: _esd cannot be the zero address");
        esd = _esd;
        setPeriod(_periodStart, _rewardsDuration);
    }

    /*
     * Add ESD tokens to the reward pool.
     *
     * @param _esdAmount the amount of ESD tokens to add to the reward pool
     */
    function addRewardESD(uint256 _esdAmount) external {
        Config memory cfg = config;
        require(block.timestamp < cfg.periodFinish, "EtherscanDAOStaking: Adding rewards is forbidden");

        esd.safeTransferFrom(msg.sender, address(this), _esdAmount);
        cfg.totalReward += _esdAmount.toUint128();
        config = cfg;
    }

    /*
     * Set the reward peroid. If only possible to set the reward period after last rewards have been
     * expired.
     *
     * @param _periodStart timestamp of reward starting time
     * @param _rewardsDuration the duration of rewards in seconds
     */
    function setPeriod(uint64 _periodStart, uint64 _rewardsDuration) public onlyOwner {
        require(_periodStart >= block.timestamp, "EtherscanDAOStaking: _periodStart shouldn't be in the past");
        require(_rewardsDuration > 0, "EtherscanDAOStaking: Invalid rewards duration");

        Config memory cfg = config;
        require(cfg.periodFinish < block.timestamp, "EtherscanDAOStaking: The last reward period should be finished before setting a new one");

        uint64 _periodFinish = _periodStart + _rewardsDuration;
        config.periodStart = _periodStart;
        config.periodFinish = _periodFinish;
        config.totalReward = 0;
    }

    /*
     * Returns the staked esd + release rewards
     *
     * @returns amount of available esd
     */
    function getESDPool() public view returns(uint256) {
        return esd.balanceOf(address(this)) - frozenRewards();
    }

    /*
     * Returns the frozen rewards
     *
     * @returns amount of frozen rewards
     */
    function frozenRewards() public view returns(uint256) {
        Config memory cfg = config;

        uint256 time = block.timestamp;
        uint256 remainingTime;
        uint256 duration = uint256(cfg.periodFinish) - uint256(cfg.periodStart);

        if (time <= cfg.periodStart) {
            remainingTime = duration;
        } else if (time >= cfg.periodFinish) {
            remainingTime = 0;
        } else {
            remainingTime = cfg.periodFinish - time;
        }

        return remainingTime * uint256(cfg.totalReward) / duration;
    }

    /*
     * Staking specific amount of ESD token and get corresponding amount of vbESD
     * as the user's share in the pool
     *
     * @param _esdAmount
     */
    function enter(uint256 _esdAmount) external {
        require(_esdAmount > 0, "EtherscanDAOStaking: Should at least stake something");

        uint256 totalESD = getESDPool();
        uint256 totalShares = totalSupply();

        esd.safeTransferFrom(msg.sender, address(this), _esdAmount);

        if (totalShares == 0 || totalESD == 0) {
            _mint(msg.sender, _esdAmount);
        } else {
            uint256 _share = _esdAmount * totalShares / totalESD;
            _mint(msg.sender, _share);
        }
    }

    /*
     * Redeem specific amount of vbESD to ESD tokens according to the user's share in the pool.
     * vbESD will be burnt.
     *
     * @param _share
     */
    function leave(uint256 _share) external {
        require(_share > 0, "EtherscanDAOStaking: Should at least unstake something");

        uint256 totalESD = getESDPool();
        uint256 totalShares = totalSupply();

        _burn(msg.sender, _share);

        uint256 _esdAmount = _share * totalESD / totalShares;
        esd.safeTransfer(msg.sender, _esdAmount);
    }
}

File 2 of 9: Address.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 Address {
    /**
     * @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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @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,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(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 3 of 9: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 9: ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./Context.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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * 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 ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default 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.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public 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() public view virtual override returns (uint8) {
        return 18;
    }

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

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

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public 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) public virtual override 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
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _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) public virtual 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) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @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:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

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

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal 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);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 5 of 9: IERC20.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 IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @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 9: Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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 Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _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);
    }
}

File 8 of 9: SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 9 of 9: SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_esd","type":"address"},{"internalType":"uint64","name":"_periodStart","type":"uint64"},{"internalType":"uint64","name":"_rewardsDuration","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_esdAmount","type":"uint256"}],"name":"addRewardESD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"name":"config","outputs":[{"internalType":"uint64","name":"periodFinish","type":"uint64"},{"internalType":"uint64","name":"periodStart","type":"uint64"},{"internalType":"uint128","name":"totalReward","type":"uint128"}],"stateMutability":"view","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":"uint256","name":"_esdAmount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"esd","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frozenRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getESDPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"leave","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_periodStart","type":"uint64"},{"internalType":"uint64","name":"_rewardsDuration","type":"uint64"}],"name":"setPeriod","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"}]

60806040523480156200001157600080fd5b50604051620020bf380380620020bf8339810160408190526200003491620004e8565b6040805180820182526005808252641d989154d160da1b602080840182815285518087019096529285528401528151919291620000749160039162000425565b5080516200008a90600490602084019062000425565b505050620000a7620000a16200015960201b60201c565b6200015d565b6001600160a01b038316620001295760405162461bcd60e51b815260206004820152603460248201527f45746865727363616e44414f5374616b696e673a205f6573642063616e6e6f7460448201527f20626520746865207a65726f206164647265737300000000000000000000000060648201526084015b60405180910390fd5b600680546001600160a01b0319166001600160a01b038516179055620001508282620001af565b505050620005b6565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6005546001600160a01b031633146200020b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000120565b42826001600160401b031610156200028c5760405162461bcd60e51b815260206004820152603a60248201527f45746865727363616e44414f5374616b696e673a205f706572696f645374617260448201527f742073686f756c646e277420626520696e207468652070617374000000000000606482015260840162000120565b6000816001600160401b031611620002fd5760405162461bcd60e51b815260206004820152602d60248201527f45746865727363616e44414f5374616b696e673a20496e76616c69642072657760448201526c30b9323990323ab930ba34b7b760991b606482015260840162000120565b604080516060810182526007546001600160401b038082168084526801000000000000000083049091166020840152600160801b9091046001600160801b031692820192909252904211620003e15760405162461bcd60e51b815260206004820152605760248201527f45746865727363616e44414f5374616b696e673a20546865206c61737420726560448201527f7761726420706572696f642073686f756c642062652066696e6973686564206260648201527f65666f72652073657474696e672061206e6577206f6e65000000000000000000608482015260a40162000120565b6000620003ef83856200053f565b6001600160401b0394851668010000000000000000026fffffffffffffffff000000000000000016941693909317600755505050565b828054620004339062000579565b90600052602060002090601f016020900481019282620004575760008555620004a2565b82601f106200047257805160ff1916838001178555620004a2565b82800160010185558215620004a2579182015b82811115620004a257825182559160200191906001019062000485565b50620004b0929150620004b4565b5090565b5b80821115620004b05760008155600101620004b5565b80516001600160401b0381168114620004e357600080fd5b919050565b600080600060608486031215620004fe57600080fd5b83516001600160a01b03811681146200051657600080fd5b92506200052660208501620004cb565b91506200053660408501620004cb565b90509250925092565b60006001600160401b038281168482168083038211156200057057634e487b7160e01b600052601160045260246000fd5b01949350505050565b600181811c908216806200058e57607f821691505b60208210811415620005b057634e487b7160e01b600052602260045260246000fd5b50919050565b611af980620005c66000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063a457c2d71161008c578063dd62ed3e11610066578063dd62ed3e14610353578063f2fde38b1461038c578063f451a9921461039f57600080fd5b8063a457c2d71461031a578063a59f3e0c1461032d578063a9059cbb1461034057600080fd5b806379502c55116100bd57806379502c551461028b5780638da5cb5b146102ed57806395d89b411461031257600080fd5b8063715018a614610270578063788f11bb1461027857600080fd5b8063313ce5671161013a5780634e5ce27f116101145780634e5ce27f1461021f57806367dfd4c91461023457806370a082311461024757600080fd5b8063313ce567146101f557806339509351146102045780634c21a04e1461021757600080fd5b806318160ddd1161016b57806318160ddd146101c857806323b872dd146101da5780632faf795e146101ed57600080fd5b806306fdde0314610187578063095ea7b3146101a5575b600080fd5b61018f6103b2565b60405161019c91906117ff565b60405180910390f35b6101b86101b336600461184e565b610444565b604051901515815260200161019c565b6002545b60405190815260200161019c565b6101b86101e8366004611878565b61045a565b6101cc610520565b6040516012815260200161019c565b6101b861021236600461184e565b6105f8565b6101cc610634565b61023261022d3660046118b4565b6106c8565b005b6102326102423660046118b4565b610817565b6101cc6102553660046118cd565b6001600160a01b031660009081526020819052604090205490565b6102326108e7565b610232610286366004611900565b61094d565b6007546102bd9067ffffffffffffffff80821691600160401b810490911690600160801b90046001600160801b031683565b6040805167ffffffffffffffff94851681529390921660208401526001600160801b03169082015260600161019c565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161019c565b61018f610bc3565b6101b861032836600461184e565b610bd2565b61023261033b3660046118b4565b610c83565b6101b861034e36600461184e565b610d6d565b6101cc610361366004611933565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61023261039a3660046118cd565b610d7a565b6006546102fa906001600160a01b031681565b6060600380546103c19061195d565b80601f01602080910402602001604051908101604052809291908181526020018280546103ed9061195d565b801561043a5780601f1061040f5761010080835404028352916020019161043a565b820191906000526020600020905b81548152906001019060200180831161041d57829003601f168201915b5050505050905090565b6000610451338484610e5c565b50600192915050565b6000610467848484610f80565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105138533858403610e5c565b60019150505b9392505050565b6040805160608101825260075467ffffffffffffffff808216808452600160401b830490911660208401819052600160801b9092046001600160801b031693830193909352600092429184918291610577916119ae565b9050836020015167ffffffffffffffff168311610596578091506105cb565b835167ffffffffffffffff1683106105b157600091506105cb565b83516105c890849067ffffffffffffffff166119ae565b91505b8084604001516001600160801b0316836105e591906119c5565b6105ef91906119e4565b94505050505090565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161045191859061062f908690611a06565b610e5c565b600061063e610520565b6006546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561068157600080fd5b505afa158015610695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b99190611a1e565b6106c391906119ae565b905090565b6040805160608101825260075467ffffffffffffffff808216808452600160401b83049091166020840152600160801b9091046001600160801b0316928201929092529042106107805760405162461bcd60e51b815260206004820152603060248201527f45746865727363616e44414f5374616b696e673a20416464696e67207265776160448201527f72647320697320666f7262696464656e0000000000000000000000000000000060648201526084016104fd565b600654610798906001600160a01b031633308561117d565b6107a182611215565b816040018181516107b29190611a37565b6001600160801b0390811690915282516007805460208601516040909601518416600160801b0267ffffffffffffffff968716600160401b026fffffffffffffffffffffffffffffffff19909216969093169590951794909417909116179091555050565b6000811161088d5760405162461bcd60e51b815260206004820152603660248201527f45746865727363616e44414f5374616b696e673a2053686f756c64206174206c60448201527f6561737420756e7374616b6520736f6d657468696e670000000000000000000060648201526084016104fd565b6000610897610634565b905060006108a460025490565b90506108b03384611298565b6000816108bd84866119c5565b6108c791906119e4565b6006549091506108e1906001600160a01b031633836113e6565b50505050565b6005546001600160a01b031633146109415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fd565b61094b6000611416565b565b6005546001600160a01b031633146109a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fd565b428267ffffffffffffffff161015610a275760405162461bcd60e51b815260206004820152603a60248201527f45746865727363616e44414f5374616b696e673a205f706572696f645374617260448201527f742073686f756c646e277420626520696e20746865207061737400000000000060648201526084016104fd565b60008167ffffffffffffffff1611610aa75760405162461bcd60e51b815260206004820152602d60248201527f45746865727363616e44414f5374616b696e673a20496e76616c69642072657760448201527f61726473206475726174696f6e0000000000000000000000000000000000000060648201526084016104fd565b6040805160608101825260075467ffffffffffffffff808216808452600160401b83049091166020840152600160801b9091046001600160801b031692820192909252904211610b855760405162461bcd60e51b815260206004820152605760248201527f45746865727363616e44414f5374616b696e673a20546865206c61737420726560448201527f7761726420706572696f642073686f756c642062652066696e6973686564206260648201527f65666f72652073657474696e672061206e6577206f6e65000000000000000000608482015260a4016104fd565b6000610b918385611a62565b67ffffffffffffffff948516600160401b026fffffffffffffffff000000000000000016941693909317600755505050565b6060600480546103c19061195d565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610c6c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016104fd565b610c793385858403610e5c565b5060019392505050565b60008111610cf95760405162461bcd60e51b815260206004820152603460248201527f45746865727363616e44414f5374616b696e673a2053686f756c64206174206c60448201527f65617374207374616b6520736f6d657468696e6700000000000000000000000060648201526084016104fd565b6000610d03610634565b90506000610d1060025490565b600654909150610d2b906001600160a01b031633308661117d565b801580610d36575081155b15610d4a57610d453384611480565b505050565b600082610d5783866119c5565b610d6191906119e4565b90506108e13382611480565b6000610451338484610f80565b6005546001600160a01b03163314610dd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fd565b6001600160a01b038116610e505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104fd565b610e5981611416565b50565b6001600160a01b038316610ebe5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104fd565b6001600160a01b038216610f1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104fd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610ffc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104fd565b6001600160a01b03821661105e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104fd565b6001600160a01b038316600090815260208190526040902054818110156110ed5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104fd565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611124908490611a06565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161117091815260200190565b60405180910390a36108e1565b6040516001600160a01b03808516602483015283166044820152606481018290526108e19085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261155f565b60006001600160801b038211156112945760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f323820626974730000000000000000000000000000000000000000000000000060648201526084016104fd565b5090565b6001600160a01b0382166112f85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104fd565b6001600160a01b0382166000908152602081905260409020548181101561136c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104fd565b6001600160a01b038316600090815260208190526040812083830390556002805484929061139b9084906119ae565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052610d4590849063a9059cbb60e01b906064016111b1565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166114d65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104fd565b80600260008282546114e89190611a06565b90915550506001600160a01b03821660009081526020819052604081208054839290611515908490611a06565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006115b4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116449092919063ffffffff16565b805190915015610d4557808060200190518101906115d29190611a85565b610d455760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104fd565b6060611653848460008561165b565b949350505050565b6060824710156116d35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104fd565b843b6117215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104fd565b600080866001600160a01b0316858760405161173d9190611aa7565b60006040518083038185875af1925050503d806000811461177a576040519150601f19603f3d011682016040523d82523d6000602084013e61177f565b606091505b509150915061178f82828661179a565b979650505050505050565b606083156117a9575081610519565b8251156117b95782518084602001fd5b8160405162461bcd60e51b81526004016104fd91906117ff565b60005b838110156117ee5781810151838201526020016117d6565b838111156108e15750506000910152565b602081526000825180602084015261181e8160408501602087016117d3565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461184957600080fd5b919050565b6000806040838503121561186157600080fd5b61186a83611832565b946020939093013593505050565b60008060006060848603121561188d57600080fd5b61189684611832565b92506118a460208501611832565b9150604084013590509250925092565b6000602082840312156118c657600080fd5b5035919050565b6000602082840312156118df57600080fd5b61051982611832565b803567ffffffffffffffff8116811461184957600080fd5b6000806040838503121561191357600080fd5b61191c836118e8565b915061192a602084016118e8565b90509250929050565b6000806040838503121561194657600080fd5b61194f83611832565b915061192a60208401611832565b600181811c9082168061197157607f821691505b6020821081141561199257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156119c0576119c0611998565b500390565b60008160001904831182151516156119df576119df611998565b500290565b600082611a0157634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611a1957611a19611998565b500190565b600060208284031215611a3057600080fd5b5051919050565b60006001600160801b03808316818516808303821115611a5957611a59611998565b01949350505050565b600067ffffffffffffffff808316818516808303821115611a5957611a59611998565b600060208284031215611a9757600080fd5b8151801515811461051957600080fd5b60008251611ab98184602087016117d3565b919091019291505056fea2646970667358221220aede771e921d57cd656851156eccd85bda56b157a05e72fbd93b0c5630acf21164736f6c63430008090033000000000000000000000000575157729e5e9d6383be5278238be6161c44d2d90000000000000000000000000000000000000000000000000000000061dc42e80000000000000000000000000000000000000000000000000000000063bd7668

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063715018a6116100d8578063a457c2d71161008c578063dd62ed3e11610066578063dd62ed3e14610353578063f2fde38b1461038c578063f451a9921461039f57600080fd5b8063a457c2d71461031a578063a59f3e0c1461032d578063a9059cbb1461034057600080fd5b806379502c55116100bd57806379502c551461028b5780638da5cb5b146102ed57806395d89b411461031257600080fd5b8063715018a614610270578063788f11bb1461027857600080fd5b8063313ce5671161013a5780634e5ce27f116101145780634e5ce27f1461021f57806367dfd4c91461023457806370a082311461024757600080fd5b8063313ce567146101f557806339509351146102045780634c21a04e1461021757600080fd5b806318160ddd1161016b57806318160ddd146101c857806323b872dd146101da5780632faf795e146101ed57600080fd5b806306fdde0314610187578063095ea7b3146101a5575b600080fd5b61018f6103b2565b60405161019c91906117ff565b60405180910390f35b6101b86101b336600461184e565b610444565b604051901515815260200161019c565b6002545b60405190815260200161019c565b6101b86101e8366004611878565b61045a565b6101cc610520565b6040516012815260200161019c565b6101b861021236600461184e565b6105f8565b6101cc610634565b61023261022d3660046118b4565b6106c8565b005b6102326102423660046118b4565b610817565b6101cc6102553660046118cd565b6001600160a01b031660009081526020819052604090205490565b6102326108e7565b610232610286366004611900565b61094d565b6007546102bd9067ffffffffffffffff80821691600160401b810490911690600160801b90046001600160801b031683565b6040805167ffffffffffffffff94851681529390921660208401526001600160801b03169082015260600161019c565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161019c565b61018f610bc3565b6101b861032836600461184e565b610bd2565b61023261033b3660046118b4565b610c83565b6101b861034e36600461184e565b610d6d565b6101cc610361366004611933565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61023261039a3660046118cd565b610d7a565b6006546102fa906001600160a01b031681565b6060600380546103c19061195d565b80601f01602080910402602001604051908101604052809291908181526020018280546103ed9061195d565b801561043a5780601f1061040f5761010080835404028352916020019161043a565b820191906000526020600020905b81548152906001019060200180831161041d57829003601f168201915b5050505050905090565b6000610451338484610e5c565b50600192915050565b6000610467848484610f80565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156105065760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105138533858403610e5c565b60019150505b9392505050565b6040805160608101825260075467ffffffffffffffff808216808452600160401b830490911660208401819052600160801b9092046001600160801b031693830193909352600092429184918291610577916119ae565b9050836020015167ffffffffffffffff168311610596578091506105cb565b835167ffffffffffffffff1683106105b157600091506105cb565b83516105c890849067ffffffffffffffff166119ae565b91505b8084604001516001600160801b0316836105e591906119c5565b6105ef91906119e4565b94505050505090565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161045191859061062f908690611a06565b610e5c565b600061063e610520565b6006546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561068157600080fd5b505afa158015610695573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b99190611a1e565b6106c391906119ae565b905090565b6040805160608101825260075467ffffffffffffffff808216808452600160401b83049091166020840152600160801b9091046001600160801b0316928201929092529042106107805760405162461bcd60e51b815260206004820152603060248201527f45746865727363616e44414f5374616b696e673a20416464696e67207265776160448201527f72647320697320666f7262696464656e0000000000000000000000000000000060648201526084016104fd565b600654610798906001600160a01b031633308561117d565b6107a182611215565b816040018181516107b29190611a37565b6001600160801b0390811690915282516007805460208601516040909601518416600160801b0267ffffffffffffffff968716600160401b026fffffffffffffffffffffffffffffffff19909216969093169590951794909417909116179091555050565b6000811161088d5760405162461bcd60e51b815260206004820152603660248201527f45746865727363616e44414f5374616b696e673a2053686f756c64206174206c60448201527f6561737420756e7374616b6520736f6d657468696e670000000000000000000060648201526084016104fd565b6000610897610634565b905060006108a460025490565b90506108b03384611298565b6000816108bd84866119c5565b6108c791906119e4565b6006549091506108e1906001600160a01b031633836113e6565b50505050565b6005546001600160a01b031633146109415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fd565b61094b6000611416565b565b6005546001600160a01b031633146109a75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fd565b428267ffffffffffffffff161015610a275760405162461bcd60e51b815260206004820152603a60248201527f45746865727363616e44414f5374616b696e673a205f706572696f645374617260448201527f742073686f756c646e277420626520696e20746865207061737400000000000060648201526084016104fd565b60008167ffffffffffffffff1611610aa75760405162461bcd60e51b815260206004820152602d60248201527f45746865727363616e44414f5374616b696e673a20496e76616c69642072657760448201527f61726473206475726174696f6e0000000000000000000000000000000000000060648201526084016104fd565b6040805160608101825260075467ffffffffffffffff808216808452600160401b83049091166020840152600160801b9091046001600160801b031692820192909252904211610b855760405162461bcd60e51b815260206004820152605760248201527f45746865727363616e44414f5374616b696e673a20546865206c61737420726560448201527f7761726420706572696f642073686f756c642062652066696e6973686564206260648201527f65666f72652073657474696e672061206e6577206f6e65000000000000000000608482015260a4016104fd565b6000610b918385611a62565b67ffffffffffffffff948516600160401b026fffffffffffffffff000000000000000016941693909317600755505050565b6060600480546103c19061195d565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610c6c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016104fd565b610c793385858403610e5c565b5060019392505050565b60008111610cf95760405162461bcd60e51b815260206004820152603460248201527f45746865727363616e44414f5374616b696e673a2053686f756c64206174206c60448201527f65617374207374616b6520736f6d657468696e6700000000000000000000000060648201526084016104fd565b6000610d03610634565b90506000610d1060025490565b600654909150610d2b906001600160a01b031633308661117d565b801580610d36575081155b15610d4a57610d453384611480565b505050565b600082610d5783866119c5565b610d6191906119e4565b90506108e13382611480565b6000610451338484610f80565b6005546001600160a01b03163314610dd45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fd565b6001600160a01b038116610e505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104fd565b610e5981611416565b50565b6001600160a01b038316610ebe5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104fd565b6001600160a01b038216610f1f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104fd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610ffc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104fd565b6001600160a01b03821661105e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104fd565b6001600160a01b038316600090815260208190526040902054818110156110ed5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104fd565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611124908490611a06565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161117091815260200190565b60405180910390a36108e1565b6040516001600160a01b03808516602483015283166044820152606481018290526108e19085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261155f565b60006001600160801b038211156112945760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201527f323820626974730000000000000000000000000000000000000000000000000060648201526084016104fd565b5090565b6001600160a01b0382166112f85760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104fd565b6001600160a01b0382166000908152602081905260409020548181101561136c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104fd565b6001600160a01b038316600090815260208190526040812083830390556002805484929061139b9084906119ae565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052610d4590849063a9059cbb60e01b906064016111b1565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166114d65760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104fd565b80600260008282546114e89190611a06565b90915550506001600160a01b03821660009081526020819052604081208054839290611515908490611a06565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006115b4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116449092919063ffffffff16565b805190915015610d4557808060200190518101906115d29190611a85565b610d455760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104fd565b6060611653848460008561165b565b949350505050565b6060824710156116d35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104fd565b843b6117215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104fd565b600080866001600160a01b0316858760405161173d9190611aa7565b60006040518083038185875af1925050503d806000811461177a576040519150601f19603f3d011682016040523d82523d6000602084013e61177f565b606091505b509150915061178f82828661179a565b979650505050505050565b606083156117a9575081610519565b8251156117b95782518084602001fd5b8160405162461bcd60e51b81526004016104fd91906117ff565b60005b838110156117ee5781810151838201526020016117d6565b838111156108e15750506000910152565b602081526000825180602084015261181e8160408501602087016117d3565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461184957600080fd5b919050565b6000806040838503121561186157600080fd5b61186a83611832565b946020939093013593505050565b60008060006060848603121561188d57600080fd5b61189684611832565b92506118a460208501611832565b9150604084013590509250925092565b6000602082840312156118c657600080fd5b5035919050565b6000602082840312156118df57600080fd5b61051982611832565b803567ffffffffffffffff8116811461184957600080fd5b6000806040838503121561191357600080fd5b61191c836118e8565b915061192a602084016118e8565b90509250929050565b6000806040838503121561194657600080fd5b61194f83611832565b915061192a60208401611832565b600181811c9082168061197157607f821691505b6020821081141561199257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156119c0576119c0611998565b500390565b60008160001904831182151516156119df576119df611998565b500290565b600082611a0157634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115611a1957611a19611998565b500190565b600060208284031215611a3057600080fd5b5051919050565b60006001600160801b03808316818516808303821115611a5957611a59611998565b01949350505050565b600067ffffffffffffffff808316818516808303821115611a5957611a59611998565b600060208284031215611a9757600080fd5b8151801515811461051957600080fd5b60008251611ab98184602087016117d3565b919091019291505056fea2646970667358221220aede771e921d57cd656851156eccd85bda56b157a05e72fbd93b0c5630acf21164736f6c63430008090033

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

000000000000000000000000575157729e5e9d6383be5278238be6161c44d2d90000000000000000000000000000000000000000000000000000000061dc42e80000000000000000000000000000000000000000000000000000000063bd7668

-----Decoded View---------------
Arg [0] : _esd (address): 0x575157729E5e9D6383Be5278238bE6161c44D2d9
Arg [1] : _periodStart (uint64): 1641825000
Arg [2] : _rewardsDuration (uint64): 1673361000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000575157729e5e9d6383be5278238be6161c44d2d9
Arg [1] : 0000000000000000000000000000000000000000000000000000000061dc42e8
Arg [2] : 0000000000000000000000000000000000000000000000000000000063bd7668


Deployed Bytecode Sourcemap

178:4527:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2120:98:2;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4217:166;;;;;;:::i;:::-;;:::i;:::-;;;1290:14:9;;1283:22;1265:41;;1253:2;1238:18;4217:166:2;1125:187:9;3208:106:2;3295:12;;3208:106;;;1463:25:9;;;1451:2;1436:18;3208:106:2;1317:177:9;4850:478:2;;;;;;:::i;:::-;;:::i;2909:555:3:-;;;:::i;3057:91:2:-;;;3139:2;1974:36:9;;1962:2;1947:18;3057:91:2;1832:184:9;5723:212:2;;;;;;:::i;:::-;;:::i;2685:121:3:-;;;:::i;1300:342::-;;;;;;:::i;:::-;;:::i;:::-;;4333:370;;;;;;:::i;:::-;;:::i;3372:125:2:-;;;;;;:::i;:::-;-1:-1:-1;;;;;3472:18:2;3446:7;3472:18;;;;;;;;;;;;3372:125;1661:101:6;;;:::i;1914:655:3:-;;;;;;:::i;:::-;;:::i;617:20::-;;;;;;;;;;-1:-1:-1;;;617:20:3;;;;;;-1:-1:-1;;;617:20:3;;-1:-1:-1;;;;;617:20:3;;;;;;;3042:18:9;3087:15;;;3069:34;;3139:15;;;;3134:2;3119:18;;3112:43;-1:-1:-1;;;;;3191:47:9;3171:18;;;3164:75;3020:2;3005:18;617:20:3;2834:411:9;1029:85:6;1101:6;;-1:-1:-1;;;;;1101:6:6;1029:85;;;-1:-1:-1;;;;;3414:55:9;;;3396:74;;3384:2;3369:18;1029:85:6;3250:226:9;2331:102:2;;;:::i;6422:405::-;;;;;;:::i;:::-;;:::i;3638:522:3:-;;;;;;:::i;:::-;;:::i;3700:172:2:-;;;;;;:::i;:::-;;:::i;3930:149::-;;;;;;:::i;:::-;-1:-1:-1;;;;;4045:18:2;;;4019:7;4045:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3930:149;1911:198:6;;;;;;:::i;:::-;;:::i;594:17:3:-;;;;;-1:-1:-1;;;;;594:17:3;;;2120:98:2;2174:13;2206:5;2199:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2120:98;:::o;4217:166::-;4300:4;4316:39;666:10:1;4339:7:2;4348:6;4316:8;:39::i;:::-;-1:-1:-1;4372:4:2;4217:166;;;;:::o;4850:478::-;4986:4;5002:36;5012:6;5020:9;5031:6;5002:9;:36::i;:::-;-1:-1:-1;;;;;5076:19:2;;5049:24;5076:19;;;:11;:19;;;;;;;;666:10:1;5076:33:2;;;;;;;;5127:26;;;;5119:79;;;;-1:-1:-1;;;5119:79:2;;4579:2:9;5119:79:2;;;4561:21:9;4618:2;4598:18;;;4591:30;4657:34;4637:18;;;4630:62;4728:10;4708:18;;;4701:38;4756:19;;5119:79:2;;;;;;;;;5232:57;5241:6;666:10:1;5282:6:2;5263:16;:25;5232:8;:57::i;:::-;5317:4;5310:11;;;4850:478;;;;;;:::o;2909:555:3:-;2973:26;;;;;;;;2993:6;2973:26;;;;;;;;-1:-1:-1;;;2973:26:3;;;;;;;;;;;-1:-1:-1;;;2973:26:3;;;-1:-1:-1;;;;;2973:26:3;;;;;;;;-1:-1:-1;;3025:15:3;;-1:-1:-1;;;;3100:52:3;;;:::i;:::-;3081:71;;3175:3;:15;;;3167:23;;:4;:23;3163:226;;3222:8;3206:24;;3163:226;;;3259:16;;3251:24;;;;3247:142;;3307:1;3291:17;;3247:142;;;3355:16;;:23;;3374:4;;3355:23;;;:::i;:::-;3339:39;;3247:142;3449:8;3430:3;:15;;;-1:-1:-1;;;;;3422:24:3;3406:13;:40;;;;:::i;:::-;:51;;;;:::i;:::-;3399:58;;;;;;2909:555;:::o;5723:212:2:-;666:10:1;5811:4:2;5859:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;5859:34:2;;;;;;;;;;5811:4;;5827:80;;5850:7;;5859:47;;5896:10;;5859:47;:::i;:::-;5827:8;:80::i;2685:121:3:-;2727:7;2784:15;:13;:15::i;:::-;2753:3;;:28;;-1:-1:-1;;;2753:28:3;;2775:4;2753:28;;;3396:74:9;-1:-1:-1;;;;;2753:3:3;;;;:13;;3369:18:9;;2753:28:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;;;;:::i;:::-;2746:53;;2685:121;:::o;1300:342::-;1361:26;;;;;;;;1381:6;1361:26;;;;;;;;-1:-1:-1;;;1361:26:3;;;;;;;;;-1:-1:-1;;;1361:26:3;;;-1:-1:-1;;;;;1361:26:3;;;;;;;;;1405:15;:34;1397:95;;;;-1:-1:-1;;;1397:95:3;;5967:2:9;1397:95:3;;;5949:21:9;6006:2;5986:18;;;5979:30;6045:34;6025:18;;;6018:62;6116:18;6096;;;6089:46;6152:19;;1397:95:3;5765:412:9;1397:95:3;1503:3;;:59;;-1:-1:-1;;;;;1503:3:3;1524:10;1544:4;1551:10;1503:20;:59::i;:::-;1591:22;:10;:20;:22::i;:::-;1572:3;:15;;:41;;;;;;;:::i;:::-;-1:-1:-1;;;;;1572:41:3;;;;;;1623:12;;:6;:12;;;;;;;;;;;;;-1:-1:-1;;;1623:12:3;;;;;-1:-1:-1;;;1623:12:3;-1:-1:-1;;1623:12:3;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1300:342:3:o;4333:370::-;4400:1;4391:6;:10;4383:77;;;;-1:-1:-1;;;4383:77:3;;6642:2:9;4383:77:3;;;6624:21:9;6681:2;6661:18;;;6654:30;6720:34;6700:18;;;6693:62;6791:24;6771:18;;;6764:52;6833:19;;4383:77:3;6440:418:9;4383:77:3;4471:16;4490:12;:10;:12::i;:::-;4471:31;;4512:19;4534:13;3295:12:2;;;3208:106;4534:13:3;4512:35;;4558:25;4564:10;4576:6;4558:5;:25::i;:::-;4594:18;4635:11;4615:17;4624:8;4615:6;:17;:::i;:::-;:31;;;;:::i;:::-;4656:3;;4594:52;;-1:-1:-1;4656:40:3;;-1:-1:-1;;;;;4656:3:3;4673:10;4594:52;4656:16;:40::i;:::-;4373:330;;;4333:370;:::o;1661:101:6:-;1101:6;;-1:-1:-1;;;;;1101:6:6;666:10:1;1241:23:6;1233:68;;;;-1:-1:-1;;;1233:68:6;;7065:2:9;1233:68:6;;;7047:21:9;;;7084:18;;;7077:30;7143:34;7123:18;;;7116:62;7195:18;;1233:68:6;6863:356:9;1233:68:6;1725:30:::1;1752:1;1725:18;:30::i;:::-;1661:101::o:0;1914:655:3:-;1101:6:6;;-1:-1:-1;;;;;1101:6:6;666:10:1;1241:23:6;1233:68;;;;-1:-1:-1;;;1233:68:6;;7065:2:9;1233:68:6;;;7047:21:9;;;7084:18;;;7077:30;7143:34;7123:18;;;7116:62;7195:18;;1233:68:6;6863:356:9;1233:68:6;2030:15:3::1;2014:12;:31;;;;2006:102;;;::::0;-1:-1:-1;;;2006:102:3;;7426:2:9;2006:102:3::1;::::0;::::1;7408:21:9::0;7465:2;7445:18;;;7438:30;7504:34;7484:18;;;7477:62;7575:28;7555:18;;;7548:56;7621:19;;2006:102:3::1;7224:422:9::0;2006:102:3::1;2145:1;2126:16;:20;;;2118:78;;;::::0;-1:-1:-1;;;2118:78:3;;7853:2:9;2118:78:3::1;::::0;::::1;7835:21:9::0;7892:2;7872:18;;;7865:30;7931:34;7911:18;;;7904:62;8002:15;7982:18;;;7975:43;8035:19;;2118:78:3::1;7651:409:9::0;2118:78:3::1;2207:26;::::0;;::::1;::::0;::::1;::::0;;2227:6:::1;2207:26:::0;::::1;::::0;;::::1;::::0;;;-1:-1:-1;;;2207:26:3;::::1;::::0;;::::1;;::::0;::::1;::::0;-1:-1:-1;;;2207:26:3;;::::1;-1:-1:-1::0;;;;;2207:26:3::1;::::0;;;;;;;;2270:15:::1;-1:-1:-1::0;2243:134:3::1;;;::::0;-1:-1:-1;;;2243:134:3;;8267:2:9;2243:134:3::1;::::0;::::1;8249:21:9::0;8306:2;8286:18;;;8279:30;8345:34;8325:18;;;8318:62;8416:34;8396:18;;;8389:62;8488:25;8467:19;;;8460:54;8531:19;;2243:134:3::1;8065:491:9::0;2243:134:3::1;2388:20;2411:31;2426:16:::0;2411:12;:31:::1;:::i;:::-;2452:33;::::0;;::::1;-1:-1:-1::0;;;2452:33:3::1;::::0;2540:22;2495:35;::::1;2540:22:::0;;;;2452:6:::1;2540:22:::0;-1:-1:-1;;;1914:655:3:o;2331:102:2:-;2387:13;2419:7;2412:14;;;;;:::i;6422:405::-;666:10:1;6515:4:2;6558:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;6558:34:2;;;;;;;;;;6610:35;;;;6602:85;;;;-1:-1:-1;;;6602:85:2;;9004:2:9;6602:85:2;;;8986:21:9;9043:2;9023:18;;;9016:30;9082:34;9062:18;;;9055:62;9153:7;9133:18;;;9126:35;9178:19;;6602:85:2;8802:401:9;6602:85:2;6721:67;666:10:1;6744:7:2;6772:15;6753:16;:34;6721:8;:67::i;:::-;-1:-1:-1;6816:4:2;;6422:405;-1:-1:-1;;;6422:405:2:o;3638:522:3:-;3713:1;3700:10;:14;3692:79;;;;-1:-1:-1;;;3692:79:3;;9410:2:9;3692:79:3;;;9392:21:9;9449:2;9429:18;;;9422:30;9488:34;9468:18;;;9461:62;9559:22;9539:18;;;9532:50;9599:19;;3692:79:3;9208:416:9;3692:79:3;3782:16;3801:12;:10;:12::i;:::-;3782:31;;3823:19;3845:13;3295:12:2;;;3208:106;3845:13:3;3869:3;;3823:35;;-1:-1:-1;3869:59:3;;-1:-1:-1;;;;;3869:3:3;3890:10;3910:4;3917:10;3869:20;:59::i;:::-;3943:16;;;:33;;-1:-1:-1;3963:13:3;;3943:33;3939:215;;;3992:29;3998:10;4010;3992:5;:29::i;:::-;3682:478;;3638:522;:::o;3939:215::-;4052:14;4096:8;4069:24;4082:11;4069:10;:24;:::i;:::-;:35;;;;:::i;:::-;4052:52;;4118:25;4124:10;4136:6;4118:5;:25::i;3700:172:2:-;3786:4;3802:42;666:10:1;3826:9:2;3837:6;3802:9;:42::i;1911:198:6:-;1101:6;;-1:-1:-1;;;;;1101:6:6;666:10:1;1241:23:6;1233:68;;;;-1:-1:-1;;;1233:68:6;;7065:2:9;1233:68:6;;;7047:21:9;;;7084:18;;;7077:30;7143:34;7123:18;;;7116:62;7195:18;;1233:68:6;6863:356:9;1233:68:6;-1:-1:-1;;;;;1999:22:6;::::1;1991:73;;;::::0;-1:-1:-1;;;1991:73:6;;9831:2:9;1991:73:6::1;::::0;::::1;9813:21:9::0;9870:2;9850:18;;;9843:30;9909:34;9889:18;;;9882:62;9980:8;9960:18;;;9953:36;10006:19;;1991:73:6::1;9629:402:9::0;1991:73:6::1;2074:28;2093:8;2074:18;:28::i;:::-;1911:198:::0;:::o;9998:370:2:-;-1:-1:-1;;;;;10129:19:2;;10121:68;;;;-1:-1:-1;;;10121:68:2;;10238:2:9;10121:68:2;;;10220:21:9;10277:2;10257:18;;;10250:30;10316:34;10296:18;;;10289:62;-1:-1:-1;;;10367:18:9;;;10360:34;10411:19;;10121:68:2;10036:400:9;10121:68:2;-1:-1:-1;;;;;10207:21:2;;10199:68;;;;-1:-1:-1;;;10199:68:2;;10643:2:9;10199:68:2;;;10625:21:9;10682:2;10662:18;;;10655:30;10721:34;10701:18;;;10694:62;-1:-1:-1;;;10772:18:9;;;10765:32;10814:19;;10199:68:2;10441:398:9;10199:68:2;-1:-1:-1;;;;;10278:18:2;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10329:32;;1463:25:9;;;10329:32:2;;1436:18:9;10329:32:2;;;;;;;9998:370;;;:::o;7301:713::-;-1:-1:-1;;;;;7436:20:2;;7428:70;;;;-1:-1:-1;;;7428:70:2;;11046:2:9;7428:70:2;;;11028:21:9;11085:2;11065:18;;;11058:30;11124:34;11104:18;;;11097:62;11195:7;11175:18;;;11168:35;11220:19;;7428:70:2;10844:401:9;7428:70:2;-1:-1:-1;;;;;7516:23:2;;7508:71;;;;-1:-1:-1;;;7508:71:2;;11452:2:9;7508:71:2;;;11434:21:9;11491:2;11471:18;;;11464:30;11530:34;11510:18;;;11503:62;-1:-1:-1;;;11581:18:9;;;11574:33;11624:19;;7508:71:2;11250:399:9;7508:71:2;-1:-1:-1;;;;;7672:17:2;;7648:21;7672:17;;;;;;;;;;;7707:23;;;;7699:74;;;;-1:-1:-1;;;7699:74:2;;11856:2:9;7699:74:2;;;11838:21:9;11895:2;11875:18;;;11868:30;11934:34;11914:18;;;11907:62;12005:8;11985:18;;;11978:36;12031:19;;7699:74:2;11654:402:9;7699:74:2;-1:-1:-1;;;;;7807:17:2;;;:9;:17;;;;;;;;;;;7827:22;;;7807:42;;7869:20;;;;;;;;:30;;7843:6;;7807:9;7869:30;;7843:6;;7869:30;:::i;:::-;;;;;;;;7932:9;-1:-1:-1;;;;;7915:35:2;7924:6;-1:-1:-1;;;;;7915:35:2;;7943:6;7915:35;;;;1463:25:9;;1451:2;1436:18;;1317:177;7915:35:2;;;;;;;;7961:46;3638:522:3;898:241:8;1063:68;;-1:-1:-1;;;;;12342:15:9;;;1063:68:8;;;12324:34:9;12394:15;;12374:18;;;12367:43;12426:18;;;12419:34;;;1036:96:8;;1056:5;;-1:-1:-1;;;1086:27:8;12236:18:9;;1063:68:8;;;;-1:-1:-1;;1063:68:8;;;;;;;;;;;;;;;;;;;;;;;;;;;1036:19;:96::i;1618:192:7:-;1675:7;-1:-1:-1;;;;;1702:26:7;;;1694:78;;;;-1:-1:-1;;;1694:78:7;;12666:2:9;1694:78:7;;;12648:21:9;12705:2;12685:18;;;12678:30;12744:34;12724:18;;;12717:62;12815:9;12795:18;;;12788:37;12842:19;;1694:78:7;12464:403:9;1694:78:7;-1:-1:-1;1797:5:7;1618:192::o;8999:576:2:-;-1:-1:-1;;;;;9082:21:2;;9074:67;;;;-1:-1:-1;;;9074:67:2;;13074:2:9;9074:67:2;;;13056:21:9;13113:2;13093:18;;;13086:30;13152:34;13132:18;;;13125:62;-1:-1:-1;;;13203:18:9;;;13196:31;13244:19;;9074:67:2;12872:397:9;9074:67:2;-1:-1:-1;;;;;9237:18:2;;9212:22;9237:18;;;;;;;;;;;9273:24;;;;9265:71;;;;-1:-1:-1;;;9265:71:2;;13476:2:9;9265:71:2;;;13458:21:9;13515:2;13495:18;;;13488:30;13554:34;13534:18;;;13527:62;-1:-1:-1;;;13605:18:9;;;13598:32;13647:19;;9265:71:2;13274:398:9;9265:71:2;-1:-1:-1;;;;;9370:18:2;;:9;:18;;;;;;;;;;9391:23;;;9370:44;;9434:12;:22;;9408:6;;9370:9;9434:22;;9408:6;;9434:22;:::i;:::-;;;;-1:-1:-1;;9472:37:2;;1463:25:9;;;9498:1:2;;-1:-1:-1;;;;;9472:37:2;;;;;1451:2:9;1436:18;9472:37:2;;;;;;;3682:478:3;;3638:522;:::o;687:205:8:-;826:58;;-1:-1:-1;;;;;13869:55:9;;826:58:8;;;13851:74:9;13941:18;;;13934:34;;;799:86:8;;819:5;;-1:-1:-1;;;849:23:8;13824:18:9;;826:58:8;13677:297:9;2263:187:6;2355:6;;;-1:-1:-1;;;;;2371:17:6;;;;;;;;;;;2403:40;;2355:6;;;2371:17;2355:6;;2403:40;;2336:16;;2403:40;2326:124;2263:187;:::o;8290:389:2:-;-1:-1:-1;;;;;8373:21:2;;8365:65;;;;-1:-1:-1;;;8365:65:2;;14181:2:9;8365:65:2;;;14163:21:9;14220:2;14200:18;;;14193:30;14259:33;14239:18;;;14232:61;14310:18;;8365:65:2;13979:355:9;8365:65:2;8517:6;8501:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;8533:18:2;;:9;:18;;;;;;;;;;:28;;8555:6;;8533:9;:28;;8555:6;;8533:28;:::i;:::-;;;;-1:-1:-1;;8576:37:2;;1463:25:9;;;-1:-1:-1;;;;;8576:37:2;;;8593:1;;8576:37;;1451:2:9;1436:18;8576:37:2;;;;;;;8290:389;;:::o;3193:706:8:-;3612:23;3638:69;3666:4;3638:69;;;;;;;;;;;;;;;;;3646:5;-1:-1:-1;;;;;3638:27:8;;;:69;;;;;:::i;:::-;3721:17;;3612:95;;-1:-1:-1;3721:21:8;3717:176;;3816:10;3805:30;;;;;;;;;;;;:::i;:::-;3797:85;;;;-1:-1:-1;;;3797:85:8;;14823:2:9;3797:85:8;;;14805:21:9;14862:2;14842:18;;;14835:30;14901:34;14881:18;;;14874:62;14972:12;14952:18;;;14945:40;15002:19;;3797:85:8;14621:406:9;3514:223:0;3647:12;3678:52;3700:6;3708:4;3714:1;3717:12;3678:21;:52::i;:::-;3671:59;3514:223;-1:-1:-1;;;;3514:223:0:o;4601:499::-;4766:12;4823:5;4798:21;:30;;4790:81;;;;-1:-1:-1;;;4790:81:0;;15234:2:9;4790:81:0;;;15216:21:9;15273:2;15253:18;;;15246:30;15312:34;15292:18;;;15285:62;15383:8;15363:18;;;15356:36;15409:19;;4790:81:0;15032:402:9;4790:81:0;1087:20;;4881:60;;;;-1:-1:-1;;;4881:60:0;;15641:2:9;4881:60:0;;;15623:21:9;15680:2;15660:18;;;15653:30;15719:31;15699:18;;;15692:59;15768:18;;4881:60:0;15439:353:9;4881:60:0;4953:12;4967:23;4994:6;-1:-1:-1;;;;;4994:11:0;5013:5;5020:4;4994:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4952:73;;;;5042:51;5059:7;5068:10;5080:12;5042:16;:51::i;:::-;5035:58;4601:499;-1:-1:-1;;;;;;;4601:499:0:o;7214:692::-;7360:12;7388:7;7384:516;;;-1:-1:-1;7418:10:0;7411:17;;7384:516;7529:17;;:21;7525:365;;7723:10;7717:17;7783:15;7770:10;7766:2;7762:19;7755:44;7525:365;7862:12;7855:20;;-1:-1:-1;;;7855:20:0;;;;;;;;:::i;14:258:9:-;86:1;96:113;110:6;107:1;104:13;96:113;;;186:11;;;180:18;167:11;;;160:39;132:2;125:10;96:113;;;227:6;224:1;221:13;218:48;;;-1:-1:-1;;262:1:9;244:16;;237:27;14:258::o;277:383::-;426:2;415:9;408:21;389:4;458:6;452:13;501:6;496:2;485:9;481:18;474:34;517:66;576:6;571:2;560:9;556:18;551:2;543:6;539:15;517:66;:::i;:::-;644:2;623:15;-1:-1:-1;;619:29:9;604:45;;;;651:2;600:54;;277:383;-1:-1:-1;;277:383:9:o;665:196::-;733:20;;-1:-1:-1;;;;;782:54:9;;772:65;;762:93;;851:1;848;841:12;762:93;665:196;;;:::o;866:254::-;934:6;942;995:2;983:9;974:7;970:23;966:32;963:52;;;1011:1;1008;1001:12;963:52;1034:29;1053:9;1034:29;:::i;:::-;1024:39;1110:2;1095:18;;;;1082:32;;-1:-1:-1;;;866:254:9:o;1499:328::-;1576:6;1584;1592;1645:2;1633:9;1624:7;1620:23;1616:32;1613:52;;;1661:1;1658;1651:12;1613:52;1684:29;1703:9;1684:29;:::i;:::-;1674:39;;1732:38;1766:2;1755:9;1751:18;1732:38;:::i;:::-;1722:48;;1817:2;1806:9;1802:18;1789:32;1779:42;;1499:328;;;;;:::o;2021:180::-;2080:6;2133:2;2121:9;2112:7;2108:23;2104:32;2101:52;;;2149:1;2146;2139:12;2101:52;-1:-1:-1;2172:23:9;;2021:180;-1:-1:-1;2021:180:9:o;2206:186::-;2265:6;2318:2;2306:9;2297:7;2293:23;2289:32;2286:52;;;2334:1;2331;2324:12;2286:52;2357:29;2376:9;2357:29;:::i;2397:171::-;2464:20;;2524:18;2513:30;;2503:41;;2493:69;;2558:1;2555;2548:12;2573:256;2639:6;2647;2700:2;2688:9;2679:7;2675:23;2671:32;2668:52;;;2716:1;2713;2706:12;2668:52;2739:28;2757:9;2739:28;:::i;:::-;2729:38;;2786:37;2819:2;2808:9;2804:18;2786:37;:::i;:::-;2776:47;;2573:256;;;;;:::o;3481:260::-;3549:6;3557;3610:2;3598:9;3589:7;3585:23;3581:32;3578:52;;;3626:1;3623;3616:12;3578:52;3649:29;3668:9;3649:29;:::i;:::-;3639:39;;3697:38;3731:2;3720:9;3716:18;3697:38;:::i;3992:380::-;4071:1;4067:12;;;;4114;;;4135:61;;4189:4;4181:6;4177:17;4167:27;;4135:61;4242:2;4234:6;4231:14;4211:18;4208:38;4205:161;;;4288:10;4283:3;4279:20;4276:1;4269:31;4323:4;4320:1;4313:15;4351:4;4348:1;4341:15;4205:161;;3992:380;;;:::o;4786:127::-;4847:10;4842:3;4838:20;4835:1;4828:31;4878:4;4875:1;4868:15;4902:4;4899:1;4892:15;4918:125;4958:4;4986:1;4983;4980:8;4977:34;;;4991:18;;:::i;:::-;-1:-1:-1;5028:9:9;;4918:125::o;5048:168::-;5088:7;5154:1;5150;5146:6;5142:14;5139:1;5136:21;5131:1;5124:9;5117:17;5113:45;5110:71;;;5161:18;;:::i;:::-;-1:-1:-1;5201:9:9;;5048:168::o;5221:217::-;5261:1;5287;5277:132;;5331:10;5326:3;5322:20;5319:1;5312:31;5366:4;5363:1;5356:15;5394:4;5391:1;5384:15;5277:132;-1:-1:-1;5423:9:9;;5221:217::o;5443:128::-;5483:3;5514:1;5510:6;5507:1;5504:13;5501:39;;;5520:18;;:::i;:::-;-1:-1:-1;5556:9:9;;5443:128::o;5576:184::-;5646:6;5699:2;5687:9;5678:7;5674:23;5670:32;5667:52;;;5715:1;5712;5705:12;5667:52;-1:-1:-1;5738:16:9;;5576:184;-1:-1:-1;5576:184:9:o;6182:253::-;6222:3;-1:-1:-1;;;;;6311:2:9;6308:1;6304:10;6341:2;6338:1;6334:10;6372:3;6368:2;6364:12;6359:3;6356:21;6353:47;;;6380:18;;:::i;:::-;6416:13;;6182:253;-1:-1:-1;;;;6182:253:9:o;8561:236::-;8600:3;8628:18;8673:2;8670:1;8666:10;8703:2;8700:1;8696:10;8734:3;8730:2;8726:12;8721:3;8718:21;8715:47;;;8742:18;;:::i;14339:277::-;14406:6;14459:2;14447:9;14438:7;14434:23;14430:32;14427:52;;;14475:1;14472;14465:12;14427:52;14507:9;14501:16;14560:5;14553:13;14546:21;14539:5;14536:32;14526:60;;14582:1;14579;14572:12;15797:274;15926:3;15964:6;15958:13;15980:53;16026:6;16021:3;16014:4;16006:6;16002:17;15980:53;:::i;:::-;16049:16;;;;;15797:274;-1:-1:-1;;15797:274:9:o

Swarm Source

ipfs://aede771e921d57cd656851156eccd85bda56b157a05e72fbd93b0c5630acf211

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.