Contract 0x989aeb4d175e16225e39e87d0d97a3360524ad80 13

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7801e139ee7a87bca9f14f0902271f064bb8e7c713ffe69e8ae8898cc2726968Set Pending Owne...409708142022-11-25 2:22:08542 days 3 hrs ago0x947b7742c403f20e5faccdac5e092c943e7d0277 IN  0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH0.00002044 0.1
0x3aba862d3a464ae0973517c43d695d3e2884b4f2807d9b3d54864fb8d40202c0Set Pending Owne...409705942022-11-25 2:20:54542 days 3 hrs ago0x947b7742c403f20e5faccdac5e092c943e7d0277 IN  0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH0.00002243 0.1
0xc05654ac9932972b82fa3132ea97d967c906fee0743a620a0acd65081354e55eSet Operator382050712022-11-15 5:18:05552 days 15 mins ago0x947b7742c403f20e5faccdac5e092c943e7d0277 IN  0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH0.000029090.1
0x2e3252b75a1963d6be31c75004b6fb8018ddb48efaf541d760a75233bc46574a0x60806040381866882022-11-15 3:14:04552 days 2 hrs ago0x947b7742c403f20e5faccdac5e092c943e7d0277 IN  Create: VoterProxy0 ETH0.000486930.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x7f90122bf0700f9e7e1f688fe926940e8839f3530 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0xce5f24b7a95e9cba7df4b54e911b4a3dc8cdaf6f0 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0xf403c135812408bfbe8713b5a23a04b3d48aae31 0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0xabc000d88f23bb45525e447528dbf656a9d55bf50 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0x19997478a90c6288c485f51b99bfee8353fcdeceb3131904034e6f4bc3dc84d9720856502023-03-21 10:14:36425 days 19 hrs ago 0xf403c135812408bfbe8713b5a23a04b3d48aae31 0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0xabc000d88f23bb45525e447528dbf656a9d55bf50 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0xf403c135812408bfbe8713b5a23a04b3d48aae31 0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x555766f3da968ecbefa690ffd49a2ac02f47aa5f0 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x8e0b8c8bb9db49a46697f3a5bb8a308e744821d20 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x8e0b8c8bb9db49a46697f3a5bb8a308e744821d20 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x8e0b8c8bb9db49a46697f3a5bb8a308e744821d20 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0xf403c135812408bfbe8713b5a23a04b3d48aae31 0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0xabc000d88f23bb45525e447528dbf656a9d55bf50 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x11cdb42b0eb46d95f990bedd4695a6e3fa0349780 ETH
0xf70ebdfce9c3bbe2aadfb2e3f7441cfe6a329bb6b72d0cc654ff3f58167fcdd4720846132023-03-21 10:10:18425 days 19 hrs ago 0xf403c135812408bfbe8713b5a23a04b3d48aae31 0x989aeb4d175e16225e39e87d0d97a3360524ad800 ETH
0xa1a804024e9cf14f6164653406a67baa5068ac5fdcdf536c0b450bbb4349650a720738322023-03-21 9:25:55425 days 20 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0x7f90122bf0700f9e7e1f688fe926940e8839f3530 ETH
0xa1a804024e9cf14f6164653406a67baa5068ac5fdcdf536c0b450bbb4349650a720738322023-03-21 9:25:55425 days 20 hrs ago 0x989aeb4d175e16225e39e87d0d97a3360524ad80 0xce5f24b7a95e9cba7df4b54e911b4a3dc8cdaf6f0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VoterProxy

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2022-11-15
*/

// File: contracts\interfaces\IBooster.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

interface IBooster {
   function isShutdown() external view returns(bool);
   function withdrawTo(uint256,uint256,address) external;
   function claimCrv(uint256 _pid, address _gauge) external;
   function setGaugeRedirect(uint256 _pid) external returns(bool);
   function owner() external view returns(address);
   function rewardManager() external view returns(address);
   function feeDeposit() external view returns(address);
   function factoryCrv(address _factory) external view returns(address _crv);
   function calculatePlatformFees(uint256 _amount) external view returns(uint256);
   function addPool(address _lptoken, address _gauge, address _factory) external returns(bool);
   function shutdownPool(uint256 _pid) external returns(bool);
   function poolInfo(uint256) external view returns(address _lptoken, address _gauge, address _rewards,bool _shutdown, address _factory);
   function poolLength() external view returns (uint256);
   function activeMap(address) external view returns(bool);
   function setPoolManager(address _poolM) external;
}

// File: contracts\interfaces\IGauge.sol

pragma solidity 0.8.10;

interface IGauge {
    function deposit(uint256) external;
    function balanceOf(address) external view returns (uint256);
    function working_balances(address) external view returns (uint256);
    function totalSupply() external view returns (uint256);
    function working_supply() external view returns (uint256);
    function withdraw(uint256) external;
    function claim_rewards() external;
    function claim_rewards(address _account) external;
    function lp_token() external view returns(address);
    function set_rewards_receiver(address _receiver) external;
    function reward_count() external view returns(uint256);
    function reward_tokens(uint256 _rid) external view returns(address _rewardToken);
    function reward_data(address _reward) external view returns(address distributor, uint256 period_finish, uint256 rate, uint256 last_update, uint256 integral);
    function claimed_reward(address _account, address _token) external view returns(uint256);
    function claimable_reward(address _account, address _token) external view returns(uint256);
    function claimable_tokens(address _account) external returns(uint256);
    function inflation_rate(uint256 _week) external view returns(uint256);
    function period() external view returns(uint256);
    function period_timestamp(uint256 _period) external view returns(uint256);
    // function claimable_reward_write(address _account, address _token) external returns(uint256);
}

// File: contracts\interfaces\ICrvMinter.sol

pragma solidity 0.8.10;

interface ICrvMinter {
    function mint(address) external;
}

// File: @openzeppelin\contracts\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: @openzeppelin\contracts\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: @openzeppelin\contracts\token\ERC20\utils\SafeERC20.sol

pragma solidity ^0.8.0;


/**
 * @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");
        }
    }
}

// File: contracts\VoterProxy.sol

pragma solidity 0.8.10;
contract VoterProxy {
    using SafeERC20 for IERC20;
    
    address public owner;
    address public pendingOwner;
    address public operator;
    
    mapping (address => bool) public protectedTokens;

    event SetPendingOwner(address indexed _address);
    event OwnerChanged(address indexed _address);

    constructor(){
        owner = msg.sender;
    }

    function getName() external pure returns (string memory) {
        return "ConvexProxy";
    }

    //set next owner
    function setPendingOwner(address _po) external {
        require(msg.sender == owner, "!auth");
        pendingOwner = _po;
        emit SetPendingOwner(_po);
    }

    //claim ownership
    function acceptPendingOwner() external {
        require(msg.sender == pendingOwner, "!p_owner");

        owner = pendingOwner;
        pendingOwner = address(0);
        emit OwnerChanged(owner);
    }

    function setOperator(address _operator) external {
        require(msg.sender == owner, "!auth");
        require(operator == address(0) || IBooster(operator).isShutdown() == true, "needs shutdown");
        
        //require isshutdown interface
        require(IBooster(_operator).isShutdown() == false, "no shutdown interface");
        
        operator = _operator;
    }

    function deposit(address _token, address _gauge, uint256 _amount) external returns(bool){
        require(msg.sender == operator, "!auth");
        if(protectedTokens[_token] == false){
            protectedTokens[_token] = true;
        }
        if(protectedTokens[_gauge] == false){
            protectedTokens[_gauge] = true;
        }

        if (_amount > 0) {
            IERC20(_token).safeApprove(_gauge, 0);
            IERC20(_token).safeApprove(_gauge, _amount);
            IGauge(_gauge).deposit(_amount);
        }
        return true;
    }

    //function for rescuing tokens that are NOT lp or gauge tokens
    function rescue(IERC20 _asset, address _to) external returns (uint256 balance) {
        require(msg.sender == operator, "!auth");

        //check protection
        if(protectedTokens[address(_asset)] == true){
            return 0;
        }

        balance = _asset.balanceOf(address(this));
        _asset.safeTransfer(_to, balance);
        return balance;
    }

    // Withdraw partial funds from a gauge
    function withdraw(address _token, address _gauge, uint256 _amount) public returns(bool){
        require(msg.sender == operator, "!auth");

        //withdraw from the given gauge and return given tokens
        //because this is withdrawing protectedTokens,
        //legitimacy of request must be enforced on operator side
        IGauge(_gauge).withdraw(_amount);
        IERC20(_token).safeTransfer(msg.sender, _amount);
        return true;
    }

    //withdraw all funds from a gauge
    function withdrawAll(address _token, address _gauge) external returns(bool){
        require(msg.sender == operator, "!auth");
        uint256 amount = balanceOfPool(_gauge);
        withdraw(_token, _gauge, amount);
        return true;
    }

    function claimCrv(address _crv, address _minter, address _gauge, address _to) external returns(uint256){
        require(msg.sender == operator, "!auth");
        
        //get current balance
        uint256 _balance = IERC20(_crv).balanceOf(address(this));
        //try mint
        try ICrvMinter(_minter).mint(_gauge){
            //get difference
            _balance = IERC20(_crv).balanceOf(address(this)) - _balance;

            //only transfer balance that was minted(difference)
            //because difference is checked, lp/gauge tokens can not be affected
            IERC20(_crv).safeTransfer(_to, _balance);

            return _balance;
        }catch{}

        return 0;
    }

    function claimRewards(address _gauge) external returns(bool){
        require(msg.sender == operator, "!auth");
        IGauge(_gauge).claim_rewards();
        return true;
    }

    function balanceOfPool(address _gauge) public view returns (uint256) {
        return IGauge(_gauge).balanceOf(address(this));
    }

    function execute(
        address _to,
        uint256 _value,
        bytes calldata _data
    ) external returns (bool, bytes memory) {
        require(msg.sender == operator,"!auth");

        (bool success, bytes memory result) = _to.call{value:_value}(_data);

        return (success, result);
    }

}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetPendingOwner","type":"event"},{"inputs":[],"name":"acceptPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_crv","type":"address"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"claimCrv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gauge","type":"address"}],"name":"claimRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"protectedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"rescue","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_po","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_gauge","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_gauge","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b03191633179055611207806100326000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806399f4a38911610097578063c42069ec11610066578063c42069ec14610253578063d9caed1214610266578063e30c397814610279578063ef5cfb8c1461028c57600080fd5b806399f4a38914610202578063b0f637941461020c578063b3ab15fb1461021f578063b61d27f61461023257600080fd5b8063570ca735116100d3578063570ca7351461019e57806361c8c6a0146101c95780638340f549146101dc5780638da5cb5b146101ef57600080fd5b806303d681851461010557806309cae2c81461013d57806317d7de7c146101505780634fdf5d1d1461017d575b600080fd5b610128610113366004610f20565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61012861014b366004610f3d565b61029f565b604080518082018252600b81526a436f6e76657850726f787960a81b602082015290516101349190610fd2565b61019061018b366004610f3d565b6102fa565b604051908152602001610134565b6002546101b1906001600160a01b031681565b6040516001600160a01b039091168152602001610134565b6101906101d7366004610fe5565b6103d3565b6101286101ea366004611041565b61056b565b6000546101b1906001600160a01b031681565b61020a6106b5565b005b61019061021a366004610f20565b61074b565b61020a61022d366004610f20565b6107b6565b610245610240366004611082565b610976565b60405161013492919061110b565b61020a610261366004610f20565b610a16565b610128610274366004611041565b610a8a565b6001546101b1906001600160a01b031681565b61012861029a366004610f20565b610b26565b6002546000906001600160a01b031633146102d55760405162461bcd60e51b81526004016102cc90611126565b60405180910390fd5b60006102e08361074b565b90506102ed848483610a8a565b5060019150505b92915050565b6002546000906001600160a01b031633146103275760405162461bcd60e51b81526004016102cc90611126565b6001600160a01b03831660009081526003602052604090205460ff16151560011415610355575060006102f4565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bd9190611145565b90506102f46001600160a01b0384168383610bae565b6002546000906001600160a01b031633146104005760405162461bcd60e51b81526004016102cc90611126565b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046b9190611145565b6040516335313c2160e11b81526001600160a01b03868116600483015291925090861690636a62784290602401600060405180830381600087803b1580156104b257600080fd5b505af19250505080156104c3575060015b6104cc5761055d565b6040516370a0823160e01b815230600482015281906001600160a01b038816906370a0823190602401602060405180830381865afa158015610512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105369190611145565b610540919061115e565b90506105566001600160a01b0387168483610bae565b9050610563565b60009150505b949350505050565b6002546000906001600160a01b031633146105985760405162461bcd60e51b81526004016102cc90611126565b6001600160a01b03841660009081526003602052604090205460ff166105dc576001600160a01b0384166000908152600360205260409020805460ff191660011790555b6001600160a01b03831660009081526003602052604090205460ff16610620576001600160a01b0383166000908152600360205260409020805460ff191660011790555b81156106aa5761063b6001600160a01b038516846000610c16565b61064f6001600160a01b0385168484610c16565b60405163b6b55f2560e01b8152600481018390526001600160a01b0384169063b6b55f2590602401600060405180830381600087803b15801561069157600080fd5b505af11580156106a5573d6000803e3d6000fd5b505050505b5060015b9392505050565b6001546001600160a01b031633146106fa5760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016102cc565b60018054600080546001600160a01b0383166001600160a01b031991821681178355921690925560405190917fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3691a2565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f49190611145565b6000546001600160a01b031633146107e05760405162461bcd60e51b81526004016102cc90611126565b6002546001600160a01b031615806108705750600260009054906101000a90046001600160a01b03166001600160a01b031663bf86d6906040518163ffffffff1660e01b8152600401602060405180830381865afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a9190611183565b15156001145b6108ad5760405162461bcd60e51b815260206004820152600e60248201526d3732b2b2399039b43aba3237bbb760911b60448201526064016102cc565b806001600160a01b031663bf86d6906040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190611183565b156109545760405162461bcd60e51b81526020600482015260156024820152746e6f2073687574646f776e20696e7465726661636560581b60448201526064016102cc565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546000906060906001600160a01b031633146109a65760405162461bcd60e51b81526004016102cc90611126565b600080876001600160a01b03168787876040516109c49291906111a5565b60006040518083038185875af1925050503d8060008114610a01576040519150601f19603f3d011682016040523d82523d6000602084013e610a06565b606091505b5090999098509650505050505050565b6000546001600160a01b03163314610a405760405162461bcd60e51b81526004016102cc90611126565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6002546000906001600160a01b03163314610ab75760405162461bcd60e51b81526004016102cc90611126565b604051632e1a7d4d60e01b8152600481018390526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015610af957600080fd5b505af1158015610b0d573d6000803e3d6000fd5b506106aa925050506001600160a01b0385163384610bae565b6002546000906001600160a01b03163314610b535760405162461bcd60e51b81526004016102cc90611126565b816001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b8e57600080fd5b505af1158015610ba2573d6000803e3d6000fd5b50600195945050505050565b6040516001600160a01b038316602482015260448101829052610c1190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610d2b565b505050565b801580610c905750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610c6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8e9190611145565b155b610cfb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102cc565b6040516001600160a01b038316602482015260448101829052610c1190849063095ea7b360e01b90606401610bda565b6000610d80826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dfd9092919063ffffffff16565b805190915015610c115780806020019051810190610d9e9190611183565b610c115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102cc565b6060610563848460008585843b610e565760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102cc565b600080866001600160a01b03168587604051610e7291906111b5565b60006040518083038185875af1925050503d8060008114610eaf576040519150601f19603f3d011682016040523d82523d6000602084013e610eb4565b606091505b5091509150610ec4828286610ecf565b979650505050505050565b60608315610ede5750816106ae565b825115610eee5782518084602001fd5b8160405162461bcd60e51b81526004016102cc9190610fd2565b6001600160a01b0381168114610f1d57600080fd5b50565b600060208284031215610f3257600080fd5b81356106ae81610f08565b60008060408385031215610f5057600080fd5b8235610f5b81610f08565b91506020830135610f6b81610f08565b809150509250929050565b60005b83811015610f91578181015183820152602001610f79565b83811115610fa0576000848401525b50505050565b60008151808452610fbe816020860160208601610f76565b601f01601f19169290920160200192915050565b6020815260006106ae6020830184610fa6565b60008060008060808587031215610ffb57600080fd5b843561100681610f08565b9350602085013561101681610f08565b9250604085013561102681610f08565b9150606085013561103681610f08565b939692955090935050565b60008060006060848603121561105657600080fd5b833561106181610f08565b9250602084013561107181610f08565b929592945050506040919091013590565b6000806000806060858703121561109857600080fd5b84356110a381610f08565b935060208501359250604085013567ffffffffffffffff808211156110c757600080fd5b818701915087601f8301126110db57600080fd5b8135818111156110ea57600080fd5b8860208285010111156110fc57600080fd5b95989497505060200194505050565b82151581526040602082015260006105636040830184610fa6565b602080825260059082015264042c2eae8d60db1b604082015260600190565b60006020828403121561115757600080fd5b5051919050565b60008282101561117e57634e487b7160e01b600052601160045260246000fd5b500390565b60006020828403121561119557600080fd5b815180151581146106ae57600080fd5b8183823760009101908152919050565b600082516111c7818460208701610f76565b919091019291505056fea2646970667358221220b6409dedcb6282ae3c237ea087cee8f7027ede7ca4f251e668748e134a639b0f64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c806399f4a38911610097578063c42069ec11610066578063c42069ec14610253578063d9caed1214610266578063e30c397814610279578063ef5cfb8c1461028c57600080fd5b806399f4a38914610202578063b0f637941461020c578063b3ab15fb1461021f578063b61d27f61461023257600080fd5b8063570ca735116100d3578063570ca7351461019e57806361c8c6a0146101c95780638340f549146101dc5780638da5cb5b146101ef57600080fd5b806303d681851461010557806309cae2c81461013d57806317d7de7c146101505780634fdf5d1d1461017d575b600080fd5b610128610113366004610f20565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61012861014b366004610f3d565b61029f565b604080518082018252600b81526a436f6e76657850726f787960a81b602082015290516101349190610fd2565b61019061018b366004610f3d565b6102fa565b604051908152602001610134565b6002546101b1906001600160a01b031681565b6040516001600160a01b039091168152602001610134565b6101906101d7366004610fe5565b6103d3565b6101286101ea366004611041565b61056b565b6000546101b1906001600160a01b031681565b61020a6106b5565b005b61019061021a366004610f20565b61074b565b61020a61022d366004610f20565b6107b6565b610245610240366004611082565b610976565b60405161013492919061110b565b61020a610261366004610f20565b610a16565b610128610274366004611041565b610a8a565b6001546101b1906001600160a01b031681565b61012861029a366004610f20565b610b26565b6002546000906001600160a01b031633146102d55760405162461bcd60e51b81526004016102cc90611126565b60405180910390fd5b60006102e08361074b565b90506102ed848483610a8a565b5060019150505b92915050565b6002546000906001600160a01b031633146103275760405162461bcd60e51b81526004016102cc90611126565b6001600160a01b03831660009081526003602052604090205460ff16151560011415610355575060006102f4565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bd9190611145565b90506102f46001600160a01b0384168383610bae565b6002546000906001600160a01b031633146104005760405162461bcd60e51b81526004016102cc90611126565b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046b9190611145565b6040516335313c2160e11b81526001600160a01b03868116600483015291925090861690636a62784290602401600060405180830381600087803b1580156104b257600080fd5b505af19250505080156104c3575060015b6104cc5761055d565b6040516370a0823160e01b815230600482015281906001600160a01b038816906370a0823190602401602060405180830381865afa158015610512573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105369190611145565b610540919061115e565b90506105566001600160a01b0387168483610bae565b9050610563565b60009150505b949350505050565b6002546000906001600160a01b031633146105985760405162461bcd60e51b81526004016102cc90611126565b6001600160a01b03841660009081526003602052604090205460ff166105dc576001600160a01b0384166000908152600360205260409020805460ff191660011790555b6001600160a01b03831660009081526003602052604090205460ff16610620576001600160a01b0383166000908152600360205260409020805460ff191660011790555b81156106aa5761063b6001600160a01b038516846000610c16565b61064f6001600160a01b0385168484610c16565b60405163b6b55f2560e01b8152600481018390526001600160a01b0384169063b6b55f2590602401600060405180830381600087803b15801561069157600080fd5b505af11580156106a5573d6000803e3d6000fd5b505050505b5060015b9392505050565b6001546001600160a01b031633146106fa5760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b60448201526064016102cc565b60018054600080546001600160a01b0383166001600160a01b031991821681178355921690925560405190917fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3691a2565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610792573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f49190611145565b6000546001600160a01b031633146107e05760405162461bcd60e51b81526004016102cc90611126565b6002546001600160a01b031615806108705750600260009054906101000a90046001600160a01b03166001600160a01b031663bf86d6906040518163ffffffff1660e01b8152600401602060405180830381865afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a9190611183565b15156001145b6108ad5760405162461bcd60e51b815260206004820152600e60248201526d3732b2b2399039b43aba3237bbb760911b60448201526064016102cc565b806001600160a01b031663bf86d6906040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f9190611183565b156109545760405162461bcd60e51b81526020600482015260156024820152746e6f2073687574646f776e20696e7465726661636560581b60448201526064016102cc565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546000906060906001600160a01b031633146109a65760405162461bcd60e51b81526004016102cc90611126565b600080876001600160a01b03168787876040516109c49291906111a5565b60006040518083038185875af1925050503d8060008114610a01576040519150601f19603f3d011682016040523d82523d6000602084013e610a06565b606091505b5090999098509650505050505050565b6000546001600160a01b03163314610a405760405162461bcd60e51b81526004016102cc90611126565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6002546000906001600160a01b03163314610ab75760405162461bcd60e51b81526004016102cc90611126565b604051632e1a7d4d60e01b8152600481018390526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b158015610af957600080fd5b505af1158015610b0d573d6000803e3d6000fd5b506106aa925050506001600160a01b0385163384610bae565b6002546000906001600160a01b03163314610b535760405162461bcd60e51b81526004016102cc90611126565b816001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b8e57600080fd5b505af1158015610ba2573d6000803e3d6000fd5b50600195945050505050565b6040516001600160a01b038316602482015260448101829052610c1190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610d2b565b505050565b801580610c905750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610c6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8e9190611145565b155b610cfb5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102cc565b6040516001600160a01b038316602482015260448101829052610c1190849063095ea7b360e01b90606401610bda565b6000610d80826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610dfd9092919063ffffffff16565b805190915015610c115780806020019051810190610d9e9190611183565b610c115760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102cc565b6060610563848460008585843b610e565760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102cc565b600080866001600160a01b03168587604051610e7291906111b5565b60006040518083038185875af1925050503d8060008114610eaf576040519150601f19603f3d011682016040523d82523d6000602084013e610eb4565b606091505b5091509150610ec4828286610ecf565b979650505050505050565b60608315610ede5750816106ae565b825115610eee5782518084602001fd5b8160405162461bcd60e51b81526004016102cc9190610fd2565b6001600160a01b0381168114610f1d57600080fd5b50565b600060208284031215610f3257600080fd5b81356106ae81610f08565b60008060408385031215610f5057600080fd5b8235610f5b81610f08565b91506020830135610f6b81610f08565b809150509250929050565b60005b83811015610f91578181015183820152602001610f79565b83811115610fa0576000848401525b50505050565b60008151808452610fbe816020860160208601610f76565b601f01601f19169290920160200192915050565b6020815260006106ae6020830184610fa6565b60008060008060808587031215610ffb57600080fd5b843561100681610f08565b9350602085013561101681610f08565b9250604085013561102681610f08565b9150606085013561103681610f08565b939692955090935050565b60008060006060848603121561105657600080fd5b833561106181610f08565b9250602084013561107181610f08565b929592945050506040919091013590565b6000806000806060858703121561109857600080fd5b84356110a381610f08565b935060208501359250604085013567ffffffffffffffff808211156110c757600080fd5b818701915087601f8301126110db57600080fd5b8135818111156110ea57600080fd5b8860208285010111156110fc57600080fd5b95989497505060200194505050565b82151581526040602082015260006105636040830184610fa6565b602080825260059082015264042c2eae8d60db1b604082015260600190565b60006020828403121561115757600080fd5b5051919050565b60008282101561117e57634e487b7160e01b600052601160045260246000fd5b500390565b60006020828403121561119557600080fd5b815180151581146106ae57600080fd5b8183823760009101908152919050565b600082516111c7818460208701610f76565b919091019291505056fea2646970667358221220b6409dedcb6282ae3c237ea087cee8f7027ede7ca4f251e668748e134a639b0f64736f6c634300080a0033

Deployed ByteCode Sourcemap

17788:4539:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17951:48;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;567:14:1;;560:22;542:41;;530:2;515:18;17951:48:0;;;;;;;;20695:248;;;;;;:::i;:::-;;:::i;18173:96::-;18241:20;;;;;;;;;;;-1:-1:-1;;;18241:20:0;;;;18173:96;;;;18241:20;18173:96;:::i;19756:380::-;;;;;;:::i;:::-;;:::i;:::-;;;2291:25:1;;;2279:2;2264:18;19756:380:0;2145:177:1;17915:23:0;;;;;-1:-1:-1;;;;;17915:23:0;;;;;;-1:-1:-1;;;;;2491:32:1;;;2473:51;;2461:2;2446:18;17915:23:0;2327:203:1;20951:716:0;;;;;;:::i;:::-;;:::i;19108:572::-;;;;;;:::i;:::-;;:::i;17854:20::-;;;;;-1:-1:-1;;;;;17854:20:0;;;18498:209;;;:::i;:::-;;21865:134;;;;;;:::i;:::-;;:::i;18715:385::-;;;;;;:::i;:::-;;:::i;22007:315::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;18299:168::-;;;;;;:::i;:::-;;:::i;20188:460::-;;;;;;:::i;:::-;;:::i;17881:27::-;;;;;-1:-1:-1;;;;;17881:27:0;;;21675:182;;;;;;:::i;:::-;;:::i;20695:248::-;20803:8;;20765:4;;-1:-1:-1;;;;;20803:8:0;20789:10;:22;20781:40;;;;-1:-1:-1;;;20781:40:0;;;;;;;:::i;:::-;;;;;;;;;20832:14;20849:21;20863:6;20849:13;:21::i;:::-;20832:38;;20881:32;20890:6;20898;20906;20881:8;:32::i;:::-;;20931:4;20924:11;;;20695:248;;;;;:::o;19756:380::-;19868:8;;19818:15;;-1:-1:-1;;;;;19868:8:0;19854:10;:22;19846:40;;;;-1:-1:-1;;;19846:40:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;19930:32:0;;;;;;:15;:32;;;;;;;;:40;;:32;:40;19927:79;;;-1:-1:-1;19993:1:0;19986:8;;19927:79;20028:31;;-1:-1:-1;;;20028:31:0;;20053:4;20028:31;;;2473:51:1;-1:-1:-1;;;;;20028:16:0;;;;;2446:18:1;;20028:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;20018:41;-1:-1:-1;20070:33:0;-1:-1:-1;;;;;20070:19:0;;20090:3;20018:41;20070:19;:33::i;20951:716::-;21087:8;;21046:7;;-1:-1:-1;;;;;21087:8:0;21073:10;:22;21065:40;;;;-1:-1:-1;;;21065:40:0;;;;;;;:::i;:::-;21176:37;;-1:-1:-1;;;21176:37:0;;21207:4;21176:37;;;2473:51:1;21157:16:0;;-1:-1:-1;;;;;21176:22:0;;;;;2446:18:1;;21176:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;21248:32;;-1:-1:-1;;;21248:32:0;;-1:-1:-1;;;;;2491:32:1;;;21248::0;;;2473:51:1;21157:56:0;;-1:-1:-1;21248:24:0;;;;;;2446:18:1;;21248:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21244:395;;;;;21336:37;;-1:-1:-1;;;21336:37:0;;21367:4;21336:37;;;2473:51:1;21376:8:0;;-1:-1:-1;;;;;21336:22:0;;;;;2446:18:1;;21336:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;;;;:::i;:::-;21325:59;-1:-1:-1;21548:40:0;-1:-1:-1;;;;;21548:25:0;;21574:3;21325:59;21548:25;:40::i;:::-;21612:8;-1:-1:-1;21605:15:0;;21244:395;21658:1;21651:8;;;20951:716;;;;;;;:::o;19108:572::-;19229:8;;19191:4;;-1:-1:-1;;;;;19229:8:0;19215:10;:22;19207:40;;;;-1:-1:-1;;;19207:40:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;19261:23:0;;;;;;:15;:23;;;;;;;;19258:93;;-1:-1:-1;;;;;19309:23:0;;;;;;:15;:23;;;;;:30;;-1:-1:-1;;19309:30:0;19335:4;19309:30;;;19258:93;-1:-1:-1;;;;;19364:23:0;;;;;;:15;:23;;;;;;;;19361:93;;-1:-1:-1;;;;;19412:23:0;;;;;;:15;:23;;;;;:30;;-1:-1:-1;;19412:30:0;19438:4;19412:30;;;19361:93;19470:11;;19466:185;;19498:37;-1:-1:-1;;;;;19498:26:0;;19525:6;19533:1;19498:26;:37::i;:::-;19550:43;-1:-1:-1;;;;;19550:26:0;;19577:6;19585:7;19550:26;:43::i;:::-;19608:31;;-1:-1:-1;;;19608:31:0;;;;;2291:25:1;;;-1:-1:-1;;;;;19608:22:0;;;;;2264:18:1;;19608:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19466:185;-1:-1:-1;19668:4:0;19108:572;;;;;;:::o;18498:209::-;18570:12;;-1:-1:-1;;;;;18570:12:0;18556:10;:26;18548:47;;;;-1:-1:-1;;;18548:47:0;;5726:2:1;18548:47:0;;;5708:21:1;5765:1;5745:18;;;5738:29;-1:-1:-1;;;5783:18:1;;;5776:38;5831:18;;18548:47:0;5524:331:1;18548:47:0;18616:12;;;;18608:20;;-1:-1:-1;;;;;18616:12:0;;-1:-1:-1;;;;;;18608:20:0;;;;;;;18639:25;;;;;18680:19;;18616:12;;18680:19;;;18498:209::o;21865:134::-;21952:39;;-1:-1:-1;;;21952:39:0;;21985:4;21952:39;;;2473:51:1;21925:7:0;;-1:-1:-1;;;;;21952:24:0;;;;;2446:18:1;;21952:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;18715:385::-;18797:5;;-1:-1:-1;;;;;18797:5:0;18783:10;:19;18775:37;;;;-1:-1:-1;;;18775:37:0;;;;;;;:::i;:::-;18831:8;;-1:-1:-1;;;;;18831:8:0;:22;;:65;;;18866:8;;;;;;;;;-1:-1:-1;;;;;18866:8:0;-1:-1:-1;;;;;18857:29:0;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:39;;18892:4;18857:39;18831:65;18823:92;;;;-1:-1:-1;;;18823:92:0;;6344:2:1;18823:92:0;;;6326:21:1;6383:2;6363:18;;;6356:30;-1:-1:-1;;;6402:18:1;;;6395:44;6456:18;;18823:92:0;6142:338:1;18823:92:0;18993:9;-1:-1:-1;;;;;18984:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;18976:75;;;;-1:-1:-1;;;18976:75:0;;6687:2:1;18976:75:0;;;6669:21:1;6726:2;6706:18;;;6699:30;-1:-1:-1;;;6745:18:1;;;6738:51;6806:18;;18976:75:0;6485:345:1;18976:75:0;19072:8;:20;;-1:-1:-1;;;;;;19072:20:0;-1:-1:-1;;;;;19072:20:0;;;;;;;;;;18715:385::o;22007:315::-;22180:8;;22127:4;;22133:12;;-1:-1:-1;;;;;22180:8:0;22166:10;:22;22158:39;;;;-1:-1:-1;;;22158:39:0;;;;;;;:::i;:::-;22211:12;22225:19;22248:3;-1:-1:-1;;;;;22248:8:0;22263:6;22271:5;;22248:29;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22210:67:0;;;;-1:-1:-1;22007:315:0;-1:-1:-1;;;;;;;22007:315:0:o;18299:168::-;18379:5;;-1:-1:-1;;;;;18379:5:0;18365:10;:19;18357:37;;;;-1:-1:-1;;;18357:37:0;;;;;;;:::i;:::-;18405:12;:18;;-1:-1:-1;;;;;;18405:18:0;-1:-1:-1;;;;;18405:18:0;;;;;;;;18439:20;;;;-1:-1:-1;;18439:20:0;18299:168;:::o;20188:460::-;20308:8;;20270:4;;-1:-1:-1;;;;;20308:8:0;20294:10;:22;20286:40;;;;-1:-1:-1;;;20286:40:0;;;;;;;:::i;:::-;20527:32;;-1:-1:-1;;;20527:32:0;;;;;2291:25:1;;;-1:-1:-1;;;;;20527:23:0;;;;;2264:18:1;;20527:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20570:48:0;;-1:-1:-1;;;;;;;;20570:27:0;;20598:10;20610:7;20570:27;:48::i;21675:182::-;21768:8;;21730:4;;-1:-1:-1;;;;;21768:8:0;21754:10;:22;21746:40;;;;-1:-1:-1;;;21746:40:0;;;;;;;:::i;:::-;21804:6;-1:-1:-1;;;;;21797:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21845:4:0;;21675:182;-1:-1:-1;;;;;21675:182:0:o;14430:211::-;14574:58;;-1:-1:-1;;;;;7303:32:1;;14574:58:0;;;7285:51:1;7352:18;;;7345:34;;;14547:86:0;;14567:5;;-1:-1:-1;;;14597:23:0;7258:18:1;;14574:58:0;;;;-1:-1:-1;;14574:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;14574:58:0;-1:-1:-1;;;;;;14574:58:0;;;;;;;;;;14547:19;:86::i;:::-;14430:211;;;:::o;15166:616::-;15530:10;;;15529:62;;-1:-1:-1;15546:39:0;;-1:-1:-1;;;15546:39:0;;15570:4;15546:39;;;7602:34:1;-1:-1:-1;;;;;7672:15:1;;;7652:18;;;7645:43;15546:15:0;;;;;7537:18:1;;15546:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;15529:62;15507:166;;;;-1:-1:-1;;;15507:166:0;;7901:2:1;15507:166:0;;;7883:21:1;7940:2;7920:18;;;7913:30;7979:34;7959:18;;;7952:62;-1:-1:-1;;;8030:18:1;;;8023:52;8092:19;;15507:166:0;7699:418:1;15507:166:0;15711:62;;-1:-1:-1;;;;;7303:32:1;;15711:62:0;;;7285:51:1;7352:18;;;7345:34;;;15684:90:0;;15704:5;;-1:-1:-1;;;15734:22:0;7258:18:1;;15711:62:0;7111:274:1;17003:716:0;17427:23;17453:69;17481:4;17453:69;;;;;;;;;;;;;;;;;17461:5;-1:-1:-1;;;;;17453:27:0;;;:69;;;;;:::i;:::-;17537:17;;17427:95;;-1:-1:-1;17537:21:0;17533:179;;17634:10;17623:30;;;;;;;;;;;;:::i;:::-;17615:85;;;;-1:-1:-1;;;17615:85:0;;8324:2:1;17615:85:0;;;8306:21:1;8363:2;8343:18;;;8336:30;8402:34;8382:18;;;8375:62;-1:-1:-1;;;8453:18:1;;;8446:40;8503:19;;17615:85:0;8122:406:1;9282:229:0;9419:12;9451:52;9473:6;9481:4;9487:1;9490:12;9419;6799:20;;10689:60;;;;-1:-1:-1;;;10689:60:0;;9142:2:1;10689:60:0;;;9124:21:1;9181:2;9161:18;;;9154:30;9220:31;9200:18;;;9193:59;9269:18;;10689:60:0;8940:353:1;10689:60:0;10763:12;10777:23;10804:6;-1:-1:-1;;;;;10804:11:0;10823:5;10830:4;10804:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10762:73;;;;10853:51;10870:7;10879:10;10891:12;10853:16;:51::i;:::-;10846:58;10402:510;-1:-1:-1;;;;;;;10402:510:0:o;13088:712::-;13238:12;13267:7;13263:530;;;-1:-1:-1;13298:10:0;13291:17;;13263:530;13412:17;;:21;13408:374;;13610:10;13604:17;13671:15;13658:10;13654:2;13650:19;13643:44;13408:374;13753:12;13746:20;;-1:-1:-1;;;13746:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:247::-;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;594:388::-;662:6;670;723:2;711:9;702:7;698:23;694:32;691:52;;;739:1;736;729:12;691:52;778:9;765:23;797:31;822:5;797:31;:::i;:::-;847:5;-1:-1:-1;904:2:1;889:18;;876:32;917:33;876:32;917:33;:::i;:::-;969:7;959:17;;;594:388;;;;;:::o;987:258::-;1059:1;1069:113;1083:6;1080:1;1077:13;1069:113;;;1159:11;;;1153:18;1140:11;;;1133:39;1105:2;1098:10;1069:113;;;1200:6;1197:1;1194:13;1191:48;;;1235:1;1226:6;1221:3;1217:16;1210:27;1191:48;;987:258;;;:::o;1250:::-;1292:3;1330:5;1324:12;1357:6;1352:3;1345:19;1373:63;1429:6;1422:4;1417:3;1413:14;1406:4;1399:5;1395:16;1373:63;:::i;:::-;1490:2;1469:15;-1:-1:-1;;1465:29:1;1456:39;;;;1497:4;1452:50;;1250:258;-1:-1:-1;;1250:258:1:o;1513:220::-;1662:2;1651:9;1644:21;1625:4;1682:45;1723:2;1712:9;1708:18;1700:6;1682:45;:::i;2535:671::-;2621:6;2629;2637;2645;2698:3;2686:9;2677:7;2673:23;2669:33;2666:53;;;2715:1;2712;2705:12;2666:53;2754:9;2741:23;2773:31;2798:5;2773:31;:::i;:::-;2823:5;-1:-1:-1;2880:2:1;2865:18;;2852:32;2893:33;2852:32;2893:33;:::i;:::-;2945:7;-1:-1:-1;3004:2:1;2989:18;;2976:32;3017:33;2976:32;3017:33;:::i;:::-;3069:7;-1:-1:-1;3128:2:1;3113:18;;3100:32;3141:33;3100:32;3141:33;:::i;:::-;2535:671;;;;-1:-1:-1;2535:671:1;;-1:-1:-1;;2535:671:1:o;3211:456::-;3288:6;3296;3304;3357:2;3345:9;3336:7;3332:23;3328:32;3325:52;;;3373:1;3370;3363:12;3325:52;3412:9;3399:23;3431:31;3456:5;3431:31;:::i;:::-;3481:5;-1:-1:-1;3538:2:1;3523:18;;3510:32;3551:33;3510:32;3551:33;:::i;:::-;3211:456;;3603:7;;-1:-1:-1;;;3657:2:1;3642:18;;;;3629:32;;3211:456::o;3672:794::-;3760:6;3768;3776;3784;3837:2;3825:9;3816:7;3812:23;3808:32;3805:52;;;3853:1;3850;3843:12;3805:52;3892:9;3879:23;3911:31;3936:5;3911:31;:::i;:::-;3961:5;-1:-1:-1;4013:2:1;3998:18;;3985:32;;-1:-1:-1;4068:2:1;4053:18;;4040:32;4091:18;4121:14;;;4118:34;;;4148:1;4145;4138:12;4118:34;4186:6;4175:9;4171:22;4161:32;;4231:7;4224:4;4220:2;4216:13;4212:27;4202:55;;4253:1;4250;4243:12;4202:55;4293:2;4280:16;4319:2;4311:6;4308:14;4305:34;;;4335:1;4332;4325:12;4305:34;4380:7;4375:2;4366:6;4362:2;4358:15;4354:24;4351:37;4348:57;;;4401:1;4398;4391:12;4348:57;3672:794;;;;-1:-1:-1;;4432:2:1;4424:11;;-1:-1:-1;;;3672:794:1:o;4471:299::-;4654:6;4647:14;4640:22;4629:9;4622:41;4699:2;4694;4683:9;4679:18;4672:30;4603:4;4719:45;4760:2;4749:9;4745:18;4737:6;4719:45;:::i;4775:328::-;4977:2;4959:21;;;5016:1;4996:18;;;4989:29;-1:-1:-1;;;5049:2:1;5034:18;;5027:35;5094:2;5079:18;;4775:328::o;5108:184::-;5178:6;5231:2;5219:9;5210:7;5206:23;5202:32;5199:52;;;5247:1;5244;5237:12;5199:52;-1:-1:-1;5270:16:1;;5108:184;-1:-1:-1;5108:184:1:o;5297:222::-;5337:4;5365:1;5362;5359:8;5356:131;;;5409:10;5404:3;5400:20;5397:1;5390:31;5444:4;5441:1;5434:15;5472:4;5469:1;5462:15;5356:131;-1:-1:-1;5504:9:1;;5297:222::o;5860:277::-;5927:6;5980:2;5968:9;5959:7;5955:23;5951:32;5948:52;;;5996:1;5993;5986:12;5948:52;6028:9;6022:16;6081:5;6074:13;6067:21;6060:5;6057:32;6047:60;;6103:1;6100;6093:12;6835:271;7018:6;7010;7005:3;6992:33;6974:3;7044:16;;7069:13;;;7044:16;6835:271;-1:-1:-1;6835:271:1:o;9298:274::-;9427:3;9465:6;9459:13;9481:53;9527:6;9522:3;9515:4;9507:6;9503:17;9481:53;:::i;:::-;9550:16;;;;;9298:274;-1:-1:-1;;9298:274:1:o

Metadata Hash

b6409dedcb6282ae3c237ea087cee8f7027ede7ca4f251e668748e134a639b0f
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.