ETH Price: $2,648.47 (+0.33%)

Contract

0x781B3BFeE5bD9D173cb7EF4e8dc49FE2c54F2DA8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit190114892024-01-15 9:48:23289 days ago1705312103IN
0x781B3BFe...2c54F2DA8
0 ETH0.0030143318.19021102
Withdraw187558922023-12-10 12:44:47325 days ago1702212287IN
0x781B3BFe...2c54F2DA8
0 ETH0.0037361826.93990353
Withdraw187558442023-12-10 12:35:11325 days ago1702211711IN
0x781B3BFe...2c54F2DA8
0 ETH0.0029579120.6353596
Emergency Withdr...187557372023-12-10 12:13:47325 days ago1702210427IN
0x781B3BFe...2c54F2DA8
0 ETH0.0042439224.20340988
Exit187532372023-12-10 3:49:47326 days ago1702180187IN
0x781B3BFe...2c54F2DA8
0 ETH0.0040628323.8272786
Get Reward186755462023-11-29 6:41:59336 days ago1701240119IN
0x781B3BFe...2c54F2DA8
0 ETH0.0039705329.87209854
Withdraw186754632023-11-29 6:25:23336 days ago1701239123IN
0x781B3BFe...2c54F2DA8
0 ETH0.0043977931.71593537
Withdraw186717732023-11-28 18:01:23337 days ago1701194483IN
0x781B3BFe...2c54F2DA8
0 ETH0.0095488466.19098556
Withdraw186701632023-11-28 12:36:23337 days ago1701174983IN
0x781B3BFe...2c54F2DA8
0 ETH0.0041765325.14438892
Withdraw186596192023-11-27 1:09:35339 days ago1701047375IN
0x781B3BFe...2c54F2DA8
0 ETH0.0042453629.59226815
Stake186594172023-11-27 0:28:59339 days ago1701044939IN
0x781B3BFe...2c54F2DA8
0 ETH0.0052518831.47250768
Stake186593622023-11-27 0:17:59339 days ago1701044279IN
0x781B3BFe...2c54F2DA8
0 ETH0.0051116430.63214647
Withdraw186570172023-11-26 16:25:11339 days ago1701015911IN
0x781B3BFe...2c54F2DA8
0 ETH0.0048698233.94503385
Get Reward186570042023-11-26 16:22:35339 days ago1701015755IN
0x781B3BFe...2c54F2DA8
0 ETH0.0043611932.13426101
Withdraw186569572023-11-26 16:12:59339 days ago1701015179IN
0x781B3BFe...2c54F2DA8
0 ETH0.0039919627.825919
Get Reward186569492023-11-26 16:11:23339 days ago1701015083IN
0x781B3BFe...2c54F2DA8
0 ETH0.0041192729.910947
Withdraw186546262023-11-26 8:21:35339 days ago1700986895IN
0x781B3BFe...2c54F2DA8
0 ETH0.0028498119.86460423
Get Reward186546212023-11-26 8:20:35339 days ago1700986835IN
0x781B3BFe...2c54F2DA8
0 ETH0.0023764417.25590608
Withdraw186544382023-11-26 7:43:47339 days ago1700984627IN
0x781B3BFe...2c54F2DA8
0 ETH0.0025806817.31144994
Get Reward186544132023-11-26 7:38:47339 days ago1700984327IN
0x781B3BFe...2c54F2DA8
0 ETH0.0024095918.12845153
Withdraw186544102023-11-26 7:38:11339 days ago1700984291IN
0x781B3BFe...2c54F2DA8
0 ETH0.0031583517.23407998
Withdraw186535612023-11-26 4:47:47339 days ago1700974067IN
0x781B3BFe...2c54F2DA8
0 ETH0.0024434317.03190474
Get Reward186535522023-11-26 4:45:59339 days ago1700973959IN
0x781B3BFe...2c54F2DA8
0 ETH0.0024798618.00684494
Withdraw186529282023-11-26 2:40:35340 days ago1700966435IN
0x781B3BFe...2c54F2DA8
0 ETH0.0028950820.87871459
Get Reward186529182023-11-26 2:38:23340 days ago1700966303IN
0x781B3BFe...2c54F2DA8
0 ETH0.0025926618.82589755
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xAE5a51a1...cb3211038
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Staking

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-10-22
*/

//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.19;

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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () {
        _paused = false;
    }

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

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

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

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

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

library SafeMath {

    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {

            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    function _callOptionalReturn(IERC20 token, bytes memory data) private {

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

abstract contract Ownable is Context {
    address private _owner;

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

    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    function owner() public view returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface IERC721 {
    function balanceOf(address owner) external view returns (uint256 balance);
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
    function ownerOf(uint256 tokenId) external view returns (address owner);
    function getTokenIds(address _owner) external view returns (uint256[] memory);
}

contract Staking is Pausable, Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    IERC721 public nftToken;

    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public stakingTokensDecimalRate;
    address public stakeAdmin;
    uint256 public lockDuration;

    bool private initialised;
    bool public locked;
    bool public needsNFTsToStake = true;

    uint256 public constant MAX_UNSTAKE_FEE = 2000;

    uint256 public earlyUnstakeFee = 2500;

    uint256 public maxStakableTokensPerNFT;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

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

    modifier notContract() {
        require(!_isContract(msg.sender), "contract not allowed");
        require(msg.sender == tx.origin, "proxy contract not allowed");
        _;
    }

    function _isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }
    /* ========== CONSTRUCTOR ========== */

    constructor (
        address _rewardsToken,
        address _stakingToken,
        address _nftToken,
        uint256 _maxStakableTokensPerNFT,
        uint _rewardsDuration,
        uint _stakingTokensDecimal,
        bool _locked
        )  {
        stakingTokensDecimalRate = pow(10, _stakingTokensDecimal);
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        nftToken = IERC721(_nftToken);
        maxStakableTokensPerNFT = _maxStakableTokensPerNFT;
        rewardsDuration = _rewardsDuration;
        locked = _locked;
        if(locked){
            lockDuration = _rewardsDuration;
        }
        stakeAdmin = msg.sender;
    }

    /* ========== VIEWS ========== */

    function getNFTs() public view returns(uint256[] memory) {
        uint256[] memory tokenIds = nftToken.getTokenIds(msg.sender);
        return tokenIds;
    }

    function getMaxStakableTokens(address user) public view returns(uint256) {
        return (maxStakableTokensPerNFT * nftToken.getTokenIds(user).length);
    }

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function pow(uint n, uint e) public pure returns (uint) {

        if (e == 0) {
            return 1;
        } else if (e == 1) {
            return n;
        } else {
            uint p = pow(n, e.div(2));
            p = p.mul(p);
            if (e.mod(2) == 1) {
                p = p.mul(n);
            }
            return p;
        }
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
        rewardPerTokenStored.add(
            lastTimeRewardApplicable()
            .sub(lastUpdateTime)
            .mul(rewardRate)
            .mul(stakingTokensDecimalRate)
            .div(_totalSupply)
        );
    }

    function earned(address account) public view returns (uint256) {
        return
        _balances[account]
        .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
        .div(stakingTokensDecimalRate)
        .add(rewards[account]);
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    function min(uint256 a, uint256 b) public pure returns (uint256) {
        return a < b ? a : b;
    }

    function PoolInfo() public view returns(uint256 _periodFinish, uint256 _rewardRate, uint256 _rewardsDuration, uint256 _lastUpdateTime, uint256 _rewardPerToken, uint256 _getRewardForDuration, uint256 _lockDuration, uint256 _earlyUnstakeFee, uint256 _totSupply, bool _needsNftsToStake, uint _maxStakableTokensPerNFT){
        _periodFinish = periodFinish;
        _rewardRate = rewardRate;
        _rewardsDuration = rewardsDuration;
        _lastUpdateTime = lastUpdateTime;
        _rewardPerToken = rewardPerToken();
        _getRewardForDuration = rewardRate.mul(rewardsDuration);
        _lockDuration = lockDuration;
        _earlyUnstakeFee = earlyUnstakeFee;
        _totSupply = _totalSupply;
        _needsNftsToStake = needsNFTsToStake;
        _maxStakableTokensPerNFT = maxStakableTokensPerNFT;
    }

    function UserInfo(address account) public view returns(uint256 _balanceOf, uint256 _earned, uint256 _rewards, uint256 _maxStakePossible ){
        _balanceOf = _balances[account];
        _earned = earned(account);
        _rewards = rewards[account];
        _maxStakePossible = getMaxStakableTokens(account);
    }


    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount)
    external
    notContract
    whenNotPaused
    updateReward(msg.sender)
    {
        require(amount > 0, "Cannot stake 0");
         _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        if (needsNFTsToStake){
            require(_balances[msg.sender] <= getMaxStakableTokens(msg.sender), "Cannot stake more than maxStakableTokensPerNFT");
        }
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount)
    public
    notContract
    updateReward(msg.sender)
    {
        require(amount > 0, "Cannot withdraw 0");
        if(locked){
            require(block.timestamp >= periodFinish, "Lock Time is not over");
        }
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public notContract updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function emergencyWithdraw(uint256 amount) 
    public
    notContract
    updateReward(msg.sender)
    {
        require(amount > 0, "Cannot withdraw 0");
        getReward();
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        if (earlyUnstakeFee > 0){
            uint256 adminFee = amount.mul(earlyUnstakeFee).div(10000);
            amount -= adminFee;
            stakingToken.safeTransfer(stakeAdmin, adminFee);
        }
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    
    function setStakeAdmin( address newAdmin) public onlyOwner{
        stakeAdmin = newAdmin;
    }

    function setMaxStakableTokensPerNFT(uint256 _maxStakableTokensPerNFT) public onlyOwner{
        maxStakableTokensPerNFT = _maxStakableTokensPerNFT;
    }

    function setNeedsNFTsToStake(bool _needsNFTsToStake) public onlyOwner{
        needsNFTsToStake = _needsNFTsToStake;
    }

    function setNFTToken(address token) external onlyOwner {
        nftToken = IERC721(token);
    }

    function notifyRewardAmount(uint256 reward)
    external
    onlyOwner
    updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 balance = rewardsToken.balanceOf(address(this));
        require(
            rewardRate <= balance.div(rewardsDuration),
            "Provided reward too high"
        );

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    function setEarlyUnstakeFee(uint256 _earlyUnstakeFee) external onlyOwner {
        require(_earlyUnstakeFee <= MAX_UNSTAKE_FEE, "earlyUnstakeFee cannot be more than MAX_UNSTAKE_FEE");
        earlyUnstakeFee = _earlyUnstakeFee;
    }

    function manualUnlock() external onlyOwner{
        locked = false;
    }

    function removeTokens(address tokenAddress, uint256 tokenAmount)
    external
    onlyOwner
    {
        require(block.timestamp >= periodFinish + 2 hours, "Lock Time is not over");

        IERC20(tokenAddress).safeTransfer(msg.sender, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
    event Compounded(address indexed user, uint256 amount);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_nftToken","type":"address"},{"internalType":"uint256","name":"_maxStakableTokensPerNFT","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"},{"internalType":"uint256","name":"_stakingTokensDecimal","type":"uint256"},{"internalType":"bool","name":"_locked","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Compounded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"MAX_UNSTAKE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PoolInfo","outputs":[{"internalType":"uint256","name":"_periodFinish","type":"uint256"},{"internalType":"uint256","name":"_rewardRate","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"},{"internalType":"uint256","name":"_lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"_rewardPerToken","type":"uint256"},{"internalType":"uint256","name":"_getRewardForDuration","type":"uint256"},{"internalType":"uint256","name":"_lockDuration","type":"uint256"},{"internalType":"uint256","name":"_earlyUnstakeFee","type":"uint256"},{"internalType":"uint256","name":"_totSupply","type":"uint256"},{"internalType":"bool","name":"_needsNftsToStake","type":"bool"},{"internalType":"uint256","name":"_maxStakableTokensPerNFT","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"UserInfo","outputs":[{"internalType":"uint256","name":"_balanceOf","type":"uint256"},{"internalType":"uint256","name":"_earned","type":"uint256"},{"internalType":"uint256","name":"_rewards","type":"uint256"},{"internalType":"uint256","name":"_maxStakePossible","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyUnstakeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getMaxStakableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNFTs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxStakableTokensPerNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"needsNFTsToStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftToken","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"uint256","name":"e","type":"uint256"}],"name":"pow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"removeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_earlyUnstakeFee","type":"uint256"}],"name":"setEarlyUnstakeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxStakableTokensPerNFT","type":"uint256"}],"name":"setMaxStakableTokensPerNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setNFTToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_needsNFTsToStake","type":"bool"}],"name":"setNeedsNFTsToStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setStakeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingTokensDecimalRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061029f5760003560e01c80637ae2b5c711610167578063cc1a378f116100ce578063df136d6511610087578063df136d65146105df578063e120343c146105e8578063e377ee1b146105f0578063e9fad8ee14610623578063ebe2b12b1461062b578063f2fde38b1461063457600080fd5b8063cc1a378f14610579578063cd3daf9d1461058c578063cf30901214610594578063d06fcba8146105a6578063d1af0c7d146105b9578063da9cd278146105cc57600080fd5b8063a694fc3a11610120578063a694fc3a1461052f578063a85fe3b714610542578063ada929201461054b578063b12dbd2214610554578063b1681a8c14610567578063c8f33c911461057057600080fd5b80637ae2b5c7146104785780637b0a47ee1461048b57806380faa57d146104945780638b8763471461049c5780638da5cb5b146104bc578063a3e43ab2146104d257600080fd5b806335ef749f1161020b57806359d6c3c4116101c457806359d6c3c4146103df5780635ba474b4146103f25780635c975abb1461040557806370a082311461041c578063715018a61461044557806372f702f31461044d57600080fd5b806335ef749f14610382578063386a9525146103955780633c6b16ab1461039e5780633d18b912146103b15780634e6cd3fa146103b95780635312ea8e146103cc57600080fd5b80631c1f78eb1161025d5780631c1f78eb146103195780631e10eeaf14610321578063224ac1f414610334578063227212f2146103475780632e1a7d4d1461035c5780632e4c697f1461036f57600080fd5b80628cc262146102a457806304554443146102ca5780630700037d146102d35780630711306d146102f357806310e71a02146102fc57806318160ddd14610311575b600080fd5b6102b76102b2366004611a71565b610647565b6040519081526020015b60405180910390f35b6102b7600b5481565b6102b76102e1366004611a71565b60106020526000908152604090205481565b6102b7600d5481565b61030f61030a366004611a71565b6106be565b005b6011546102b7565b6102b7610719565b61030f61032f366004611a8c565b610737565b6102b7610342366004611a71565b610817565b61034f610898565b6040516102c19190611ab6565b61030f61036a366004611afa565b61090e565b6102b761037d366004611b13565b610ad5565b61030f610390366004611b46565b610b3b565b6102b760065481565b61030f6103ac366004611afa565b610b87565b61030f610d98565b61030f6103c7366004611a71565b610ea6565b61030f6103da366004611afa565b610ef8565b61030f6103ed366004611afa565b611081565b61030f610400366004611afa565b611124565b60005460ff165b60405190151581526020016102c1565b6102b761042a366004611a71565b6001600160a01b031660009081526012602052604090205490565b61030f611159565b600254610460906001600160a01b031681565b6040516001600160a01b0390911681526020016102c1565b6102b7610486366004611b13565b6111d8565b6102b760055481565b6102b76111ee565b6102b76104aa366004611a71565b600f6020526000908152604090205481565b60005461010090046001600160a01b0316610460565b6104da6111fc565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e08501526101008401521515610120830152610140820152610160016102c1565b61030f61053d366004611afa565b611266565b6102b760095481565b6102b76107d081565b600a54610460906001600160a01b031681565b6102b7600e5481565b6102b760075481565b61030f610587366004611afa565b611499565b6102b76115a1565b600c5461040c90610100900460ff1681565b600354610460906001600160a01b031681565b600154610460906001600160a01b031681565b600c5461040c9062010000900460ff1681565b6102b760085481565b61030f6115e6565b6106036105fe366004611a71565b611623565b6040805194855260208501939093529183015260608201526080016102c1565b61030f611678565b6102b760045481565b61030f610642366004611a71565b61169b565b6001600160a01b038116600090815260106020908152604080832054600954600f909352908320546106b8926106b2916106ac9061068d906106876115a1565b90611796565b6001600160a01b038816600090815260126020526040902054906117a2565b906117ae565b906117ba565b92915050565b6000546001600160a01b036101009091041633146106f75760405162461bcd60e51b81526004016106ee90611b63565b60405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b60006107326006546005546117a290919063ffffffff16565b905090565b6000546001600160a01b036101009091041633146107675760405162461bcd60e51b81526004016106ee90611b63565b60045461077690611c20611bae565b4210156107bd5760405162461bcd60e51b81526020600482015260156024820152742637b1b5902a34b6b29034b9903737ba1037bb32b960591b60448201526064016106ee565b6107d16001600160a01b03831633836117c6565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b600354604051636802581b60e11b81526001600160a01b038381166004830152600092169063d004b03690602401600060405180830381865afa158015610862573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261088a9190810190611bd7565b51600e546106b89190611c95565b600354604051636802581b60e11b81523360048201526060916000916001600160a01b039091169063d004b03690602401600060405180830381865afa1580156108e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106b89190810190611bd7565b333b1561092d5760405162461bcd60e51b81526004016106ee90611cac565b33321461094c5760405162461bcd60e51b81526004016106ee90611cda565b336109556115a1565b6008556109606111ee565b6007556001600160a01b038116156109a75761097b81610647565b6001600160a01b038216600090815260106020908152604080832093909355600854600f909152919020555b600082116109eb5760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064016106ee565b600c54610100900460ff1615610a4557600454421015610a455760405162461bcd60e51b81526020600482015260156024820152742637b1b5902a34b6b29034b9903737ba1037bb32b960591b60448201526064016106ee565b601154610a529083611796565b60115533600090815260126020526040902054610a6f9083611796565b33600081815260126020526040902091909155600254610a9b916001600160a01b0390911690846117c6565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b600081600003610ae7575060016106b8565b81600103610af65750816106b8565b6000610b078461037d8560026117ae565b9050610b1381806117a2565b9050610b2083600261182e565b600103610b3457610b3181856117a2565b90505b9392505050565b6000546001600160a01b03610100909104163314610b6b5760405162461bcd60e51b81526004016106ee90611b63565b600c8054911515620100000262ff000019909216919091179055565b6000546001600160a01b03610100909104163314610bb75760405162461bcd60e51b81526004016106ee90611b63565b6000610bc16115a1565b600855610bcc6111ee565b6007556001600160a01b03811615610c1357610be781610647565b6001600160a01b038216600090815260106020908152604080832093909355600854600f909152919020555b6004544210610c3257600654610c2a9083906117ae565b600555610c75565b600454600090610c429042611796565b90506000610c5b600554836117a290919063ffffffff16565b600654909150610c6f906106ac86846117ba565b60055550505b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce29190611d11565b9050610cf9600654826117ae90919063ffffffff16565b6005541115610d4a5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f2068696768000000000000000060448201526064016106ee565b426007819055600654610d5d91906117ba565b6004556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b333b15610db75760405162461bcd60e51b81526004016106ee90611cac565b333214610dd65760405162461bcd60e51b81526004016106ee90611cda565b33610ddf6115a1565b600855610dea6111ee565b6007556001600160a01b03811615610e3157610e0581610647565b6001600160a01b038216600090815260106020908152604080832093909355600854600f909152919020555b336000908152601060205260409020548015610ea25733600081815260106020526040812055600154610e70916001600160a01b0390911690836117c6565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048690602001610ac9565b5050565b6000546001600160a01b03610100909104163314610ed65760405162461bcd60e51b81526004016106ee90611b63565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b333b15610f175760405162461bcd60e51b81526004016106ee90611cac565b333214610f365760405162461bcd60e51b81526004016106ee90611cda565b33610f3f6115a1565b600855610f4a6111ee565b6007556001600160a01b03811615610f9157610f6581610647565b6001600160a01b038216600090815260106020908152604080832093909355600854600f909152919020555b60008211610fd55760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064016106ee565b610fdd610d98565b601154610fea9083611796565b601155336000908152601260205260409020546110079083611796565b33600090815260126020526040902055600d541561106a57600061103c6127106106ac600d54866117a290919063ffffffff16565b90506110488184611d2a565b600a54600254919450611068916001600160a01b039081169116836117c6565b505b600254610a9b906001600160a01b031633846117c6565b6000546001600160a01b036101009091041633146110b15760405162461bcd60e51b81526004016106ee90611b63565b6107d081111561111f5760405162461bcd60e51b815260206004820152603360248201527f6561726c79556e7374616b654665652063616e6e6f74206265206d6f7265207460448201527268616e204d41585f554e5354414b455f46454560681b60648201526084016106ee565b600d55565b6000546001600160a01b036101009091041633146111545760405162461bcd60e51b81526004016106ee90611b63565b600e55565b6000546001600160a01b036101009091041633146111895760405162461bcd60e51b81526004016106ee90611b63565b600080546040516101009091046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360008054610100600160a81b0319169055565b60008183106111e75781610b34565b5090919050565b6000610732426004546111d8565b60045460055460065460075460008080808080806112186115a1565b96506112316006546005546117a290919063ffffffff16565b9550600b549450600d5493506011549250600c60029054906101000a900460ff169150600e549050909192939495969798999a565b333b156112855760405162461bcd60e51b81526004016106ee90611cac565b3332146112a45760405162461bcd60e51b81526004016106ee90611cda565b60005460ff16156112ea5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106ee565b336112f36115a1565b6008556112fe6111ee565b6007556001600160a01b038116156113455761131981610647565b6001600160a01b038216600090815260106020908152604080832093909355600854600f909152919020555b600082116113865760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b60448201526064016106ee565b60115461139390836117ba565b601155336000908152601260205260409020546113b090836117ba565b33600090815260126020526040902055600c5462010000900460ff161561144f576113da33610817565b33600090815260126020526040902054111561144f5760405162461bcd60e51b815260206004820152602e60248201527f43616e6e6f74207374616b65206d6f7265207468616e206d61785374616b616260448201526d1b19551bdad95b9cd4195c93919560921b60648201526084016106ee565b600254611467906001600160a01b031633308561183a565b60405182815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90602001610ac9565b6000546001600160a01b036101009091041633146114c95760405162461bcd60e51b81526004016106ee90611b63565b60045442116115665760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a4016106ee565b60068190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39060200160405180910390a150565b60006011546000036115b4575060085490565b6107326115dd6011546106ac6009546115d76005546115d76007546106876111ee565b906117a2565b600854906117ba565b6000546001600160a01b036101009091041633146116165760405162461bcd60e51b81526004016106ee90611b63565b600c805461ff0019169055565b6001600160a01b03811660009081526012602052604081205490808061164885610647565b6001600160a01b038616600090815260106020526040902054909350915061166f85610817565b90509193509193565b336000908152601260205260409020546116919061090e565b611699610d98565b565b6000546001600160a01b036101009091041633146116cb5760405162461bcd60e51b81526004016106ee90611b63565b6001600160a01b0381166117305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ee565b600080546040516001600160a01b038085169361010090930416917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000610b348284611d2a565b6000610b348284611c95565b6000610b348284611d53565b6000610b348284611bae565b6040516001600160a01b03831660248201526044810182905261182990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611878565b505050565b6000610b348284611d67565b6040516001600160a01b03808516602483015283166044820152606481018290526118729085906323b872dd60e01b906084016117f2565b50505050565b60006118cd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661194a9092919063ffffffff16565b80519091501561182957808060200190518101906118eb9190611d7b565b6118295760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106ee565b6060610b31848460008585843b6119a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ee565b600080866001600160a01b031685876040516119bf9190611dbc565b60006040518083038185875af1925050503d80600081146119fc576040519150601f19603f3d011682016040523d82523d6000602084013e611a01565b606091505b5091509150611a11828286611a1c565b979650505050505050565b60608315611a2b575081610b34565b825115611a3b5782518084602001fd5b8160405162461bcd60e51b81526004016106ee9190611dd8565b80356001600160a01b0381168114611a6c57600080fd5b919050565b600060208284031215611a8357600080fd5b610b3482611a55565b60008060408385031215611a9f57600080fd5b611aa883611a55565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015611aee57835183529284019291840191600101611ad2565b50909695505050505050565b600060208284031215611b0c57600080fd5b5035919050565b60008060408385031215611b2657600080fd5b50508035926020909101359150565b8015158114611b4357600080fd5b50565b600060208284031215611b5857600080fd5b8135610b3481611b35565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156106b8576106b8611b98565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215611bea57600080fd5b825167ffffffffffffffff80821115611c0257600080fd5b818501915085601f830112611c1657600080fd5b815181811115611c2857611c28611bc1565b8060051b604051601f19603f83011681018181108582111715611c4d57611c4d611bc1565b604052918252848201925083810185019188831115611c6b57600080fd5b938501935b82851015611c8957845184529385019392850192611c70565b98975050505050505050565b80820281158282048414176106b8576106b8611b98565b60208082526014908201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604082015260600190565b6020808252601a908201527f70726f787920636f6e7472616374206e6f7420616c6c6f776564000000000000604082015260600190565b600060208284031215611d2357600080fd5b5051919050565b818103818111156106b8576106b8611b98565b634e487b7160e01b600052601260045260246000fd5b600082611d6257611d62611d3d565b500490565b600082611d7657611d76611d3d565b500690565b600060208284031215611d8d57600080fd5b8151610b3481611b35565b60005b83811015611db3578181015183820152602001611d9b565b50506000910152565b60008251611dce818460208701611d98565b9190910192915050565b6020815260008251806020840152611df7816040850160208701611d98565b601f01601f1916919091016040019291505056fea26469706673582212204a5bf5c5f1bbba37f230231aa4d7790e042102a914a46a00e6c3871fb375c9ca64736f6c63430008130033

Deployed Bytecode Sourcemap

17172:11017:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20797:257;;;;;;:::i;:::-;;:::i;:::-;;;529:25:1;;;517:2;502:18;20797:257:0;;;;;;;;17650:27;;;;;;17998:42;;;;;;:::i;:::-;;;;;;;;;;;;;;17841:37;;;;;;25116:99;;;;;;:::i;:::-;;:::i;:::-;;19668:93;19741:12;;19668:93;;21062:121;;;:::i;26687:316::-;;;;;;:::i;:::-;;:::i;19500:160::-;;;;;;:::i;:::-;;:::i;19330:162::-;;;:::i;:::-;;;;;;;:::i;23109:488::-;;;;;;:::i;:::-;;:::i;19769:364::-;;;;;;:::i;:::-;;:::i;24984:124::-;;;;;;:::i;:::-;;:::i;17457:30::-;;;;;;25223:1129;;;;;;:::i;:::-;;:::i;23605:306::-;;;:::i;24715:98::-;;;;;;:::i;:::-;;:::i;23919:621::-;;;;;;:::i;:::-;;:::i;26360:236::-;;;;;;:::i;:::-;;:::i;24821:155::-;;;;;;:::i;:::-;;:::i;10352:78::-;10391:4;10415:7;;;10352:78;;;2433:14:1;;2426:22;2408:41;;2396:2;2381:18;10352:78:0;2268:187:1;20141:112:0;;;;;;:::i;:::-;-1:-1:-1;;;;;20227:18:0;20200:7;20227:18;;;:9;:18;;;;;;;20141:112;16392:148;;;:::i;17318:26::-;;;;;-1:-1:-1;;;;;17318:26:0;;;;;;-1:-1:-1;;;;;2638:32:1;;;2620:51;;2608:2;2593:18;17318:26:0;2460:217:1;21191:104:0;;;;;;:::i;:::-;;:::i;17421:29::-;;;;;;20261:126;;;:::i;17934:57::-;;;;;;:::i;:::-;;;;;;;;;;;;;;16178:79;16216:7;16243:6;;;;-1:-1:-1;;;;;16243:6:0;16178:79;;21303:823;;;:::i;:::-;;;;3312:25:1;;;3368:2;3353:18;;3346:34;;;;3396:18;;;3389:34;;;;3454:2;3439:18;;3432:34;;;;3497:3;3482:19;;3475:35;;;;3541:3;3526:19;;3519:35;;;;3585:3;3570:19;;3563:35;3629:3;3614:19;;3607:35;3673:3;3658:19;;3651:35;3730:14;3723:22;3717:3;3702:19;;3695:51;3777:3;3762:19;;3755:36;3299:3;3284:19;21303:823:0;2890:907:1;22519:582:0;;;;;;:::i;:::-;;:::i;17572:39::-;;;;;;17786:46;;17828:4;17786:46;;17618:25;;;;;-1:-1:-1;;;;;17618:25:0;;;17887:38;;;;;;17494:29;;;;;;27011:360;;;;;;:::i;:::-;;:::i;20395:394::-;;;:::i;17717:18::-;;;;;;;;;;;;17351:23;;;;;-1:-1:-1;;;;;17351:23:0;;;17285:26;;;;;-1:-1:-1;;;;;17285:26:0;;;17742:35;;;;;;;;;;;;17530;;;;;;26604:75;;;:::i;22134:321::-;;;;;;:::i;:::-;;:::i;:::-;;;;4257:25:1;;;4313:2;4298:18;;4291:34;;;;4341:18;;;4334:34;4399:2;4384:18;;4377:34;4244:3;4229:19;22134:321:0;4026:391:1;24548:97:0;;;:::i;17383:31::-;;;;;;16548:244;;;;;;:::i;:::-;;:::i;20797:257::-;-1:-1:-1;;;;;21029:16:0;;20851:7;21029:16;;;:7;:16;;;;;;;;;20989:24;;20941:22;:31;;;;;;;20887:159;;:127;;:87;;20920:53;;:16;:14;:16::i;:::-;:20;;:53::i;:::-;-1:-1:-1;;;;;20887:18:0;;;;;;:9;:18;;;;;;;:32;:87::i;:::-;:101;;:127::i;:::-;:141;;:159::i;:::-;20871:175;20797:257;-1:-1:-1;;20797:257:0:o;25116:99::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;;;;;;;;;25182:8:::1;:25:::0;;-1:-1:-1;;;;;;25182:25:0::1;-1:-1:-1::0;;;;;25182:25:0;;;::::1;::::0;;;::::1;::::0;;25116:99::o;21062:121::-;21117:7;21144:31;21159:15;;21144:10;;:14;;:31;;;;:::i;:::-;21137:38;;21062:121;:::o;26687:316::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;26824:12:::1;::::0;:22:::1;::::0;26839:7:::1;26824:22;:::i;:::-;26805:15;:41;;26797:75;;;::::0;-1:-1:-1;;;26797:75:0;;5247:2:1;26797:75:0::1;::::0;::::1;5229:21:1::0;5286:2;5266:18;;;5259:30;-1:-1:-1;;;5305:18:1;;;5298:51;5366:18;;26797:75:0::1;5045:345:1::0;26797:75:0::1;26885:58;-1:-1:-1::0;;;;;26885:33:0;::::1;26919:10;26931:11:::0;26885:33:::1;:58::i;:::-;26959:36;::::0;;-1:-1:-1;;;;;5587:32:1;;5569:51;;5651:2;5636:18;;5629:34;;;26959:36:0::1;::::0;5542:18:1;26959:36:0::1;;;;;;;26687:316:::0;;:::o;19500:160::-;19618:8;;:26;;-1:-1:-1;;;19618:26:0;;-1:-1:-1;;;;;2638:32:1;;;19618:26:0;;;2620:51:1;19564:7:0;;19618:8;;:20;;2593:18:1;;19618:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19618:26:0;;;;;;;;;;;;:::i;:::-;:33;19592:23;;:59;;;;:::i;19330:162::-;19426:8;;:32;;-1:-1:-1;;;19426:32:0;;19447:10;19426:32;;;2620:51:1;19369:16:0;;19398:25;;-1:-1:-1;;;;;19426:8:0;;;;:20;;2593:18:1;;19426:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19426:32:0;;;;;;;;;;;;:::i;23109:488::-;18193:10;18460:17;18505:8;18172:57;;;;-1:-1:-1;;;18172:57:0;;;;;;;:::i;:::-;18248:10;18262:9;18248:23;18240:62;;;;-1:-1:-1;;;18240:62:0;;;;;;;:::i;:::-;23190:10:::1;27497:16;:14;:16::i;:::-;27474:20;:39:::0;27541:26:::1;:24;:26::i;:::-;27524:14;:43:::0;-1:-1:-1;;;;;27582:21:0;::::1;::::0;27578:157:::1;;27639:15;27646:7;27639:6;:15::i;:::-;-1:-1:-1::0;;;;;27620:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;27703:20:::1;::::0;27669:22:::1;:31:::0;;;;;;:54;27578:157:::1;23235:1:::2;23226:6;:10;23218:40;;;::::0;-1:-1:-1;;;23218:40:0;;7995:2:1;23218:40:0::2;::::0;::::2;7977:21:1::0;8034:2;8014:18;;;8007:30;-1:-1:-1;;;8053:18:1;;;8046:47;8110:18;;23218:40:0::2;7793:341:1::0;23218:40:0::2;23272:6;::::0;::::2;::::0;::::2;;;23269:102;;;23321:12;;23302:15;:31;;23294:65;;;::::0;-1:-1:-1;;;23294:65:0;;5247:2:1;23294:65:0::2;::::0;::::2;5229:21:1::0;5286:2;5266:18;;;5259:30;-1:-1:-1;;;5305:18:1;;;5298:51;5366:18;;23294:65:0::2;5045:345:1::0;23294:65:0::2;23396:12;::::0;:24:::2;::::0;23413:6;23396:16:::2;:24::i;:::-;23381:12;:39:::0;23465:10:::2;23455:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;23481:6;23455:25:::2;:33::i;:::-;23441:10;23431:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;23499:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;23499:12:0;;::::2;::::0;23537:6;23499:25:::2;:45::i;:::-;23560:29;::::0;529:25:1;;;23570:10:0::2;::::0;23560:29:::2;::::0;517:2:1;502:18;23560:29:0::2;;;;;;;;18313:1:::1;23109:488:::0;:::o;19769:364::-;19819:4;19842:1;19847;19842:6;19838:288;;-1:-1:-1;19872:1:0;19865:8;;19838:288;19895:1;19900;19895:6;19891:235;;-1:-1:-1;19925:1:0;19918:8;;19891:235;19959:6;19968:16;19972:1;19975:8;:1;19981;19975:5;:8::i;19968:16::-;19959:25;-1:-1:-1;20003:8:0;19959:25;;20003:5;:8::i;:::-;19999:12;-1:-1:-1;20030:8:0;:1;20036;20030:5;:8::i;:::-;20042:1;20030:13;20026:66;;20068:8;:1;20074;20068:5;:8::i;:::-;20064:12;;20026:66;20113:1;19769:364;-1:-1:-1;;;19769:364:0:o;24984:124::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;25064:16:::1;:36:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;25064:36:0;;::::1;::::0;;;::::1;::::0;;24984:124::o;25223:1129::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;25322:1:::1;27497:16;:14;:16::i;:::-;27474:20;:39:::0;27541:26:::1;:24;:26::i;:::-;27524:14;:43:::0;-1:-1:-1;;;;;27582:21:0;::::1;::::0;27578:157:::1;;27639:15;27646:7;27639:6;:15::i;:::-;-1:-1:-1::0;;;;;27620:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;27703:20:::1;::::0;27669:22:::1;:31:::0;;;;;;:54;27578:157:::1;25365:12:::2;;25346:15;:31;25342:318;;25418:15;::::0;25407:27:::2;::::0;:6;;:10:::2;:27::i;:::-;25394:10;:40:::0;25342:318:::2;;;25487:12;::::0;25467:17:::2;::::0;25487:33:::2;::::0;25504:15:::2;25487:16;:33::i;:::-;25467:53;;25535:16;25554:25;25568:10;;25554:9;:13;;:25;;;;:::i;:::-;25632:15;::::0;25535:44;;-1:-1:-1;25607:41:0::2;::::0;:20:::2;:6:::0;25535:44;25607:10:::2;:20::i;:41::-;25594:10;:54:::0;-1:-1:-1;;25342:318:0::2;26038:12;::::0;:37:::2;::::0;-1:-1:-1;;;26038:37:0;;26069:4:::2;26038:37;::::0;::::2;2620:51:1::0;26020:15:0::2;::::0;-1:-1:-1;;;;;26038:12:0::2;::::0;:22:::2;::::0;2593:18:1;;26038:37:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;26020:55;;26122:28;26134:15;;26122:7;:11;;:28;;;;:::i;:::-;26108:10;;:42;;26086:116;;;::::0;-1:-1:-1;;;26086:116:0;;8530:2:1;26086:116:0::2;::::0;::::2;8512:21:1::0;8569:2;8549:18;;;8542:30;8608:26;8588:18;;;8581:54;8652:18;;26086:116:0::2;8328:348:1::0;26086:116:0::2;26232:15;26215:14;:32:::0;;;26293:15:::2;::::0;26273:36:::2;::::0;26232:15;26273:19:::2;:36::i;:::-;26258:12;:51:::0;26325:19:::2;::::0;529:25:1;;;26325:19:0::2;::::0;517:2:1;502:18;26325:19:0::2;;;;;;;25331:1021;16375:1:::1;25223:1129:::0;:::o;23605:306::-;18193:10;18460:17;18505:8;18172:57;;;;-1:-1:-1;;;18172:57:0;;;;;;;:::i;:::-;18248:10;18262:9;18248:23;18240:62;;;;-1:-1:-1;;;18240:62:0;;;;;;;:::i;:::-;23658:10:::1;27497:16;:14;:16::i;:::-;27474:20;:39:::0;27541:26:::1;:24;:26::i;:::-;27524:14;:43:::0;-1:-1:-1;;;;;27582:21:0;::::1;::::0;27578:157:::1;;27639:15;27646:7;27639:6;:15::i;:::-;-1:-1:-1::0;;;;;27620:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;27703:20:::1;::::0;27669:22:::1;:31:::0;;;;;;:54;27578:157:::1;23706:10:::2;23681:14;23698:19:::0;;;:7:::2;:19;::::0;;;;;23732:10;;23728:176:::2;;23767:10;23781:1;23759:19:::0;;;:7:::2;:19;::::0;;;;:23;23797:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;23797:12:0;;::::2;::::0;23835:6;23797:25:::2;:45::i;:::-;23862:30;::::0;529:25:1;;;23873:10:0::2;::::0;23862:30:::2;::::0;517:2:1;502:18;23862:30:0::2;383:177:1::0;23728:176:0::2;23670:241;18313:1:::1;23605:306::o:0;24715:98::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;24784:10:::1;:21:::0;;-1:-1:-1;;;;;;24784:21:0::1;-1:-1:-1::0;;;;;24784:21:0;;;::::1;::::0;;;::::1;::::0;;24715:98::o;23919:621::-;18193:10;18460:17;18505:8;18172:57;;;;-1:-1:-1;;;18172:57:0;;;;;;;:::i;:::-;18248:10;18262:9;18248:23;18240:62;;;;-1:-1:-1;;;18240:62:0;;;;;;;:::i;:::-;24010:10:::1;27497:16;:14;:16::i;:::-;27474:20;:39:::0;27541:26:::1;:24;:26::i;:::-;27524:14;:43:::0;-1:-1:-1;;;;;27582:21:0;::::1;::::0;27578:157:::1;;27639:15;27646:7;27639:6;:15::i;:::-;-1:-1:-1::0;;;;;27620:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;27703:20:::1;::::0;27669:22:::1;:31:::0;;;;;;:54;27578:157:::1;24055:1:::2;24046:6;:10;24038:40;;;::::0;-1:-1:-1;;;24038:40:0;;7995:2:1;24038:40:0::2;::::0;::::2;7977:21:1::0;8034:2;8014:18;;;8007:30;-1:-1:-1;;;8053:18:1;;;8046:47;8110:18;;24038:40:0::2;7793:341:1::0;24038:40:0::2;24089:11;:9;:11::i;:::-;24126:12;::::0;:24:::2;::::0;24143:6;24126:16:::2;:24::i;:::-;24111:12;:39:::0;24195:10:::2;24185:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;24211:6;24185:25:::2;:33::i;:::-;24171:10;24161:21;::::0;;;:9:::2;:21;::::0;;;;:57;24233:15:::2;::::0;:19;24229:203:::2;;24268:16;24287:38;24319:5;24287:27;24298:15;;24287:6;:10;;:27;;;;:::i;:38::-;24268:57:::0;-1:-1:-1;24340:18:0::2;24268:57:::0;24340:18;::::2;:::i;:::-;24399:10;::::0;24373:12:::2;::::0;24340:18;;-1:-1:-1;24373:47:0::2;::::0;-1:-1:-1;;;;;24373:12:0;;::::2;::::0;24399:10:::2;24411:8:::0;24373:25:::2;:47::i;:::-;24253:179;24229:203;24442:12;::::0;:45:::2;::::0;-1:-1:-1;;;;;24442:12:0::2;24468:10;24480:6:::0;24442:25:::2;:45::i;26360:236::-:0;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;17828:4:::1;26452:16;:35;;26444:99;;;::::0;-1:-1:-1;;;26444:99:0;;9016:2:1;26444:99:0::1;::::0;::::1;8998:21:1::0;9055:2;9035:18;;;9028:30;9094:34;9074:18;;;9067:62;-1:-1:-1;;;9145:18:1;;;9138:49;9204:19;;26444:99:0::1;8814:415:1::0;26444:99:0::1;26554:15;:34:::0;26360:236::o;24821:155::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;24918:23:::1;:50:::0;24821:155::o;16392:148::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;16499:1:::1;16483:6:::0;;16462:40:::1;::::0;16483:6:::1;::::0;;::::1;-1:-1:-1::0;;;;;16483:6:0::1;::::0;16462:40:::1;::::0;16499:1;;16462:40:::1;16530:1;16513:19:::0;;-1:-1:-1;;;;;;16513:19:0::1;::::0;;16392:148::o;21191:104::-;21247:7;21278:1;21274;:5;:13;;21286:1;21274:13;;;-1:-1:-1;21282:1:0;;21267:20;-1:-1:-1;21191:104:0:o;20261:126::-;20318:7;20345:34;20349:15;20366:12;;20345:3;:34::i;21303:823::-;21644:12;;21681:10;;21721:15;;21765:14;;21343:21;;;;;;;21808:16;:14;:16::i;:::-;21790:34;;21859:31;21874:15;;21859:10;;:14;;:31;;;;:::i;:::-;21835:55;;21917:12;;21901:28;;21959:15;;21940:34;;21998:12;;21985:25;;22041:16;;;;;;;;;;;22021:36;;22095:23;;22068:50;;21303:823;;;;;;;;;;;:::o;22519:582::-;18193:10;18460:17;18505:8;18172:57;;;;-1:-1:-1;;;18172:57:0;;;;;;;:::i;:::-;18248:10;18262:9;18248:23;18240:62;;;;-1:-1:-1;;;18240:62:0;;;;;;;:::i;:::-;10670:7:::1;::::0;::::1;;10669:8;10661:37;;;::::0;-1:-1:-1;;;10661:37:0;;9436:2:1;10661:37:0::1;::::0;::::1;9418:21:1::0;9475:2;9455:18;;;9448:30;-1:-1:-1;;;9494:18:1;;;9487:46;9550:18;;10661:37:0::1;9234:340:1::0;10661:37:0::1;22618:10:::2;27497:16;:14;:16::i;:::-;27474:20;:39:::0;27541:26:::2;:24;:26::i;:::-;27524:14;:43:::0;-1:-1:-1;;;;;27582:21:0;::::2;::::0;27578:157:::2;;27639:15;27646:7;27639:6;:15::i;:::-;-1:-1:-1::0;;;;;27620:16:0;::::2;;::::0;;;:7:::2;:16;::::0;;;;;;;:34;;;;27703:20:::2;::::0;27669:22:::2;:31:::0;;;;;;:54;27578:157:::2;22663:1:::3;22654:6;:10;22646:37;;;::::0;-1:-1:-1;;;22646:37:0;;9781:2:1;22646:37:0::3;::::0;::::3;9763:21:1::0;9820:2;9800:18;;;9793:30;-1:-1:-1;;;9839:18:1;;;9832:44;9893:18;;22646:37:0::3;9579:338:1::0;22646:37:0::3;22710:12;::::0;:24:::3;::::0;22727:6;22710:16:::3;:24::i;:::-;22695:12;:39:::0;22779:10:::3;22769:21;::::0;;;:9:::3;:21;::::0;;;;;:33:::3;::::0;22795:6;22769:25:::3;:33::i;:::-;22755:10;22745:21;::::0;;;:9:::3;:21;::::0;;;;:57;22817:16:::3;::::0;;;::::3;;;22813:164;;;22882:32;22903:10;22882:20;:32::i;:::-;22867:10;22857:21;::::0;;;:9:::3;:21;::::0;;;;;:57:::3;;22849:116;;;::::0;-1:-1:-1;;;22849:116:0;;10124:2:1;22849:116:0::3;::::0;::::3;10106:21:1::0;10163:2;10143:18;;;10136:30;10202:34;10182:18;;;10175:62;-1:-1:-1;;;10253:18:1;;;10246:44;10307:19;;22849:116:0::3;9922:410:1::0;22849:116:0::3;22987:12;::::0;:64:::3;::::0;-1:-1:-1;;;;;22987:12:0::3;23017:10;23037:4;23044:6:::0;22987:29:::3;:64::i;:::-;23067:26;::::0;529:25:1;;;23074:10:0::3;::::0;23067:26:::3;::::0;517:2:1;502:18;23067:26:0::3;383:177:1::0;27011:360:0;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;27135:12:::1;;27117:15;:30;27095:168;;;::::0;-1:-1:-1;;;27095:168:0;;10539:2:1;27095:168:0::1;::::0;::::1;10521:21:1::0;10578:2;10558:18;;;10551:30;10617:34;10597:18;;;10590:62;10688:34;10668:18;;;10661:62;10760:26;10739:19;;;10732:55;10804:19;;27095:168:0::1;10337:492:1::0;27095:168:0::1;27274:15;:34:::0;;;27324:39:::1;::::0;529:25:1;;;27324:39:0::1;::::0;517:2:1;502:18;27324:39:0::1;;;;;;;27011:360:::0;:::o;20395:394::-;20442:7;20466:12;;20482:1;20466:17;20462:77;;-1:-1:-1;20507:20:0;;;20395:394::o;20462:77::-;20565:216;20604:166;20757:12;;20604:134;20713:24;;20604:90;20683:10;;20604:60;20649:14;;20604:26;:24;:26::i;:60::-;:78;;:90::i;:166::-;20565:20;;;:24;:216::i;26604:75::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;26657:6:::1;:14:::0;;-1:-1:-1;;26657:14:0::1;::::0;;26604:75::o;22134:321::-;-1:-1:-1;;;;;22295:18:0;;22189;22295;;;:9;:18;;;;;;;22189;;22334:15;22305:7;22334:6;:15::i;:::-;-1:-1:-1;;;;;22371:16:0;;;;;;:7;:16;;;;;;22324:25;;-1:-1:-1;22371:16:0;-1:-1:-1;22418:29:0;22379:7;22418:20;:29::i;:::-;22398:49;;22134:321;;;;;:::o;24548:97::-;24603:10;24593:21;;;;:9;:21;;;;;;24584:31;;:8;:31::i;:::-;24626:11;:9;:11::i;:::-;24548:97::o;16548:244::-;16305:6;;-1:-1:-1;;;;;16305:6:0;;;;;9683:10;16305:22;16297:67;;;;-1:-1:-1;;;16297:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;16637:22:0;::::1;16629:73;;;::::0;-1:-1:-1;;;16629:73:0;;11036:2:1;16629:73:0::1;::::0;::::1;11018:21:1::0;11075:2;11055:18;;;11048:30;11114:34;11094:18;;;11087:62;-1:-1:-1;;;11165:18:1;;;11158:36;11211:19;;16629:73:0::1;10834:402:1::0;16629:73:0::1;16739:6;::::0;;16718:38:::1;::::0;-1:-1:-1;;;;;16718:38:0;;::::1;::::0;16739:6:::1;::::0;;::::1;;::::0;16718:38:::1;::::0;::::1;16767:6;:17:::0;;-1:-1:-1;;;;;16767:17:0;;::::1;;;-1:-1:-1::0;;;;;;16767:17:0;;::::1;::::0;;;::::1;::::0;;16548:244::o;12778:98::-;12836:7;12863:5;12867:1;12863;:5;:::i;12884:98::-;12942:7;12969:5;12973:1;12969;:5;:::i;12990:98::-;13048:7;13075:5;13079:1;13075;:5;:::i;12672:98::-;12730:7;12757:5;12761:1;12757;:5;:::i;14035:177::-;14145:58;;-1:-1:-1;;;;;5587:32:1;;14145:58:0;;;5569:51:1;5636:18;;;5629:34;;;14118:86:0;;14138:5;;-1:-1:-1;;;14168:23:0;5542:18:1;;14145:58:0;;;;-1:-1:-1;;14145:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;14145:58:0;-1:-1:-1;;;;;;14145:58:0;;;;;;;;;;14118:19;:86::i;:::-;14035:177;;;:::o;13096:98::-;13154:7;13181:5;13185:1;13181;:5;:::i;14220:205::-;14348:68;;-1:-1:-1;;;;;11873:15:1;;;14348:68:0;;;11855:34:1;11925:15;;11905:18;;;11898:43;11957:18;;;11950:34;;;14321:96:0;;14341:5;;-1:-1:-1;;;14371:27:0;11790:18:1;;14348:68:0;11615:375:1;14321:96:0;14220:205;;;;:::o;15422:420::-;15505:23;15531:69;15559:4;15531:69;;;;;;;;;;;;;;;;;15539:5;-1:-1:-1;;;;;15531:27:0;;;:69;;;;;:::i;:::-;15615:17;;15505:95;;-1:-1:-1;15615:21:0;15611:224;;15757:10;15746:30;;;;;;;;;;;;:::i;:::-;15738:85;;;;-1:-1:-1;;;15738:85:0;;12447:2:1;15738:85:0;;;12429:21:1;12486:2;12466:18;;;12459:30;12525:34;12505:18;;;12498:62;-1:-1:-1;;;12576:18:1;;;12569:40;12626:19;;15738:85:0;12245:406:1;3594:195:0;3697:12;3729:52;3751:6;3759:4;3765:1;3768:12;3697;18460:17;;4890:60;;;;-1:-1:-1;;;4890:60:0;;13265:2:1;4890:60:0;;;13247:21:1;13304:2;13284:18;;;13277:30;13343:31;13323:18;;;13316:59;13392:18;;4890:60:0;13063:353:1;4890:60:0;5024:12;5038:23;5065:6;-1:-1:-1;;;;;5065:11:0;5085:5;5093:4;5065:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5023:75;;;;5116:52;5134:7;5143:10;5155:12;5116:17;:52::i;:::-;5109:59;4646:530;-1:-1:-1;;;;;;;4646:530:0:o;6182:742::-;6297:12;6326:7;6322:595;;;-1:-1:-1;6357:10:0;6350:17;;6322:595;6471:17;;:21;6467:439;;6734:10;6728:17;6795:15;6782:10;6778:2;6774:19;6767:44;6467:439;6877:12;6870:20;;-1:-1:-1;;;6870:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:254::-;633:6;641;694:2;682:9;673:7;669:23;665:32;662:52;;;710:1;707;700:12;662:52;733:29;752:9;733:29;:::i;:::-;723:39;809:2;794:18;;;;781:32;;-1:-1:-1;;;565:254:1:o;824:632::-;995:2;1047:21;;;1117:13;;1020:18;;;1139:22;;;966:4;;995:2;1218:15;;;;1192:2;1177:18;;;966:4;1261:169;1275:6;1272:1;1269:13;1261:169;;;1336:13;;1324:26;;1405:15;;;;1370:12;;;;1297:1;1290:9;1261:169;;;-1:-1:-1;1447:3:1;;824:632;-1:-1:-1;;;;;;824:632:1:o;1461:180::-;1520:6;1573:2;1561:9;1552:7;1548:23;1544:32;1541:52;;;1589:1;1586;1579:12;1541:52;-1:-1:-1;1612:23:1;;1461:180;-1:-1:-1;1461:180:1:o;1646:248::-;1714:6;1722;1775:2;1763:9;1754:7;1750:23;1746:32;1743:52;;;1791:1;1788;1781:12;1743:52;-1:-1:-1;;1814:23:1;;;1884:2;1869:18;;;1856:32;;-1:-1:-1;1646:248:1:o;1899:118::-;1985:5;1978:13;1971:21;1964:5;1961:32;1951:60;;2007:1;2004;1997:12;1951:60;1899:118;:::o;2022:241::-;2078:6;2131:2;2119:9;2110:7;2106:23;2102:32;2099:52;;;2147:1;2144;2137:12;2099:52;2186:9;2173:23;2205:28;2227:5;2205:28;:::i;4422:356::-;4624:2;4606:21;;;4643:18;;;4636:30;4702:34;4697:2;4682:18;;4675:62;4769:2;4754:18;;4422:356::o;4783:127::-;4844:10;4839:3;4835:20;4832:1;4825:31;4875:4;4872:1;4865:15;4899:4;4896:1;4889:15;4915:125;4980:9;;;5001:10;;;4998:36;;;5014:18;;:::i;5674:127::-;5735:10;5730:3;5726:20;5723:1;5716:31;5766:4;5763:1;5756:15;5790:4;5787:1;5780:15;5806:1105;5901:6;5932:2;5975;5963:9;5954:7;5950:23;5946:32;5943:52;;;5991:1;5988;5981:12;5943:52;6024:9;6018:16;6053:18;6094:2;6086:6;6083:14;6080:34;;;6110:1;6107;6100:12;6080:34;6148:6;6137:9;6133:22;6123:32;;6193:7;6186:4;6182:2;6178:13;6174:27;6164:55;;6215:1;6212;6205:12;6164:55;6244:2;6238:9;6266:2;6262;6259:10;6256:36;;;6272:18;;:::i;:::-;6318:2;6315:1;6311:10;6350:2;6344:9;6413:2;6409:7;6404:2;6400;6396:11;6392:25;6384:6;6380:38;6468:6;6456:10;6453:22;6448:2;6436:10;6433:18;6430:46;6427:72;;;6479:18;;:::i;:::-;6515:2;6508:22;6565:18;;;6599:15;;;;-1:-1:-1;6641:11:1;;;6637:20;;;6669:19;;;6666:39;;;6701:1;6698;6691:12;6666:39;6725:11;;;;6745:135;6761:6;6756:3;6753:15;6745:135;;;6827:10;;6815:23;;6778:12;;;;6858;;;;6745:135;;;6899:6;5806:1105;-1:-1:-1;;;;;;;;5806:1105:1:o;6916:168::-;6989:9;;;7020;;7037:15;;;7031:22;;7017:37;7007:71;;7058:18;;:::i;7089:344::-;7291:2;7273:21;;;7330:2;7310:18;;;7303:30;-1:-1:-1;;;7364:2:1;7349:18;;7342:50;7424:2;7409:18;;7089:344::o;7438:350::-;7640:2;7622:21;;;7679:2;7659:18;;;7652:30;7718:28;7713:2;7698:18;;7691:56;7779:2;7764:18;;7438:350::o;8139:184::-;8209:6;8262:2;8250:9;8241:7;8237:23;8233:32;8230:52;;;8278:1;8275;8268:12;8230:52;-1:-1:-1;8301:16:1;;8139:184;-1:-1:-1;8139:184:1:o;8681:128::-;8748:9;;;8769:11;;;8766:37;;;8783:18;;:::i;11241:127::-;11302:10;11297:3;11293:20;11290:1;11283:31;11333:4;11330:1;11323:15;11357:4;11354:1;11347:15;11373:120;11413:1;11439;11429:35;;11444:18;;:::i;:::-;-1:-1:-1;11478:9:1;;11373:120::o;11498:112::-;11530:1;11556;11546:35;;11561:18;;:::i;:::-;-1:-1:-1;11595:9:1;;11498:112::o;11995:245::-;12062:6;12115:2;12103:9;12094:7;12090:23;12086:32;12083:52;;;12131:1;12128;12121:12;12083:52;12163:9;12157:16;12182:28;12204:5;12182:28;:::i;13421:250::-;13506:1;13516:113;13530:6;13527:1;13524:13;13516:113;;;13606:11;;;13600:18;13587:11;;;13580:39;13552:2;13545:10;13516:113;;;-1:-1:-1;;13663:1:1;13645:16;;13638:27;13421:250::o;13676:287::-;13805:3;13843:6;13837:13;13859:66;13918:6;13913:3;13906:4;13898:6;13894:17;13859:66;:::i;:::-;13941:16;;;;;13676:287;-1:-1:-1;;13676:287:1:o;13968:396::-;14117:2;14106:9;14099:21;14080:4;14149:6;14143:13;14192:6;14187:2;14176:9;14172:18;14165:34;14208:79;14280:6;14275:2;14264:9;14260:18;14255:2;14247:6;14243:15;14208:79;:::i;:::-;14348:2;14327:15;-1:-1:-1;;14323:29:1;14308:45;;;;14355:2;14304:54;;13968:396;-1:-1:-1;;13968:396:1:o

Swarm Source

ipfs://4a5bf5c5f1bbba37f230231aa4d7790e042102a914a46a00e6c3871fb375c9ca

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.