frxETH Price: $1,790.90 (+2.43%)

Contract

0x4fe483391715Be3bf0C4a4fE37fa2E1AD0633D7f

Overview

frxETH Balance | FXTL Balance

0 frxETH | 8,375 FXTL

frxETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Execute104233232024-09-30 0:49:17205 days ago1727657357IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Claim Fees79838702024-08-04 13:34:11261 days ago1722778451IN
0x4fe48339...AD0633D7f
0 frxETH00.00000025
Set Vefxs Distro79838562024-08-04 13:33:43261 days ago1722778423IN
0x4fe48339...AD0633D7f
0 frxETH00.00000025
Claim Fees69722272024-07-12 3:32:45285 days ago1720755165IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Create Lock69722082024-07-12 3:32:07285 days ago1720755127IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Execute69722052024-07-12 3:32:01285 days ago1720755121IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Set Fpis Locker69721932024-07-12 3:31:37285 days ago1720755097IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Set Fxs Deposito...69721902024-07-12 3:31:31285 days ago1720755091IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Set Fee Info69721872024-07-12 3:31:25285 days ago1720755085IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Set Extra Distro69721842024-07-12 3:31:19285 days ago1720755079IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025
Set Vefxs Distro69721812024-07-12 3:31:13285 days ago1720755073IN
0x4fe48339...AD0633D7f
0 frxETH00.00001025

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FraxtalBooster

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 7 : FraxtalBooster.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;


import "../interfaces/IStaker.sol";
import "../interfaces/IRewardDistribution.sol";
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';


/*
Main interface for the whitelisted proxy contract.

**This contract is meant to be able to be replaced for upgrade purposes. use IVoterProxy.operator() to always reference the current booster

*/
contract FraxtalBooster{
    using SafeERC20 for IERC20;

    address public immutable proxy;
    address public immutable vefxs;
    address public immutable vefxsfpis;
    address public owner;
    address public pendingOwner;
    address public voteDelegate;
    address public fxsDepositor;
    address public fpisLocker;
    address public vefxsRewardDistribution;
    address public vefxsFeeToken;
    address public cvxfxsRewardReceiver;
    address public extraRewardDistribution;
    address public bridgeReceiver;
    uint256 public platformVefxsFees;
    address public platformReceiver;
    bool public isShutdown;



    constructor(address _proxy, address _vefxs, address _vefxsfpis) {
        proxy = _proxy;
        vefxs = _vefxs;
        vefxsfpis = _vefxsfpis;
        isShutdown = false;
        owner = msg.sender;
        voteDelegate = msg.sender;    
    }

    /////// Owner Section /////////

    modifier onlyOwner() {
        require(owner == msg.sender, "!auth");
        _;
    }
    modifier onlyDepositor() {
        require(fxsDepositor == msg.sender, "!deposit");
        _;
    }
    modifier onlyFpisLocker() {
        require(fpisLocker == msg.sender, "!locker");
        _;
    }

    //set pending owner
    function setPendingOwner(address _po) external onlyOwner{
        pendingOwner = _po;
        emit SetPendingOwner(_po);
    }

    function _proxyCall(address _to, bytes memory _data) internal{
        (bool success,) = IStaker(proxy).execute(_to,uint256(0),_data);
        require(success, "Proxy Call Fail");
    }

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

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

    //shutdown this contract.
    function shutdownSystem() external onlyOwner{
        //This version of booster does not require any special steps before shutting down
        //and can just immediately be set.
        isShutdown = true;
        emit Shutdown();
    }

    //set snapshot voting delegate
    function setDelegate(address _delegateContract, address _delegate, bytes32 _space) external onlyOwner{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("setDelegate(bytes32,address)")), _space, _delegate);
        _proxyCall(_delegateContract,data);
        emit DelegateSet(_delegate);
    }

    //set on chain governance voting delegate
    function setOnChainDelegate(address _delegateContract, address _delegate) external onlyOwner{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("delegate(address)")), _delegate);
        _proxyCall(_delegateContract,data);
        voteDelegate = _delegate;
        emit OnChainDelegateSet(_delegate);
    }

    function castVote(address _votingContract, uint256 _proposalId, bool _support) external{
        require(msg.sender == voteDelegate, "!voteDelegate");
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("castVote(uint256,uint8)")), _proposalId, _support?uint8(1):uint8(0));
        _proxyCall(_votingContract,data);
    }

    function setFxsDepositor(address _deposit) external onlyOwner{
        fxsDepositor = _deposit;
        emit SetFxsDepositor(_deposit);
    }

    function setFpisLocker(address _locker) external onlyOwner{
        fpisLocker = _locker;
        emit SetFpisLocker(_locker);
    }

    function setVefxsDistro(address _distro, address _feeToken, address _cvxFeeReceiver) external onlyOwner{
        require(_distro != address(0),"invalid");
        require(_feeToken != address(0),"invalid");
        require(_cvxFeeReceiver != address(0),"invalid");
        vefxsRewardDistribution = _distro;
        vefxsFeeToken = _feeToken;
        cvxfxsRewardReceiver = _cvxFeeReceiver;
        emit SetVefxsDistro(_distro, _feeToken, _cvxFeeReceiver);
    }

    function setExtraDistro(address _distro, address _bridgeReceiver) external onlyOwner{
        require(_distro != address(0),"invalid");
        require(vefxsFeeToken != address(0),"!feeToken");
        extraRewardDistribution = _distro;
        bridgeReceiver = _bridgeReceiver;
        IERC20(vefxsFeeToken).approve(extraRewardDistribution,type(uint256).max);
        emit SetExtraDistro(_distro,_bridgeReceiver);
    }

    function setFeeInfo(address _platformReceiver, uint256 _fee) external onlyOwner{
        require(_platformReceiver != address(0),"invalid receiver");
        require(_fee <= 1e17, "invalid fee");
        platformReceiver = _platformReceiver;
        platformVefxsFees = _fee;
        emit SetFeeInfo(_platformReceiver, _fee);
    }

    //recover tokens on this contract
    function recoverERC20(address _tokenAddress, uint256 _tokenAmount, address _withdrawTo) external onlyOwner{
        IERC20(_tokenAddress).safeTransfer(_withdrawTo, _tokenAmount);
        emit Recovered(_tokenAddress, _tokenAmount);
    }

    //recover tokens on the proxy
    function recoverERC20FromProxy(address _tokenAddress, uint256 _tokenAmount, address _withdrawTo) external onlyOwner{

        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("transfer(address,uint256)")), _withdrawTo, _tokenAmount);
        _proxyCall(_tokenAddress,data);

        emit Recovered(_tokenAddress, _tokenAmount);
    }

    //create a new lock
    function createLock(address _locker, uint256 _value, uint128 _unlockTime) external onlyOwner{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("createLock(address,uint256,uint128)")), proxy, _value, _unlockTime);
        _proxyCall(_locker,data);
    }

    //arbitrary execute
    function execute(address _to, bytes calldata _data) external onlyOwner{
        _proxyCall(_to,_data);
    }

    //////// End Owner Section ///////////

    //// Depositor ///
    function increaseAmount(uint256 _value, uint128 _lockIndex) external onlyDepositor{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("increaseAmount(uint256,uint128)")), _value, _lockIndex);
        _proxyCall(vefxs,data);
    }

    function increaseUnlockTime(uint128 _unlockTime, uint128 _lockIndex) external onlyDepositor{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("increaseUnlockTime(uint128,uint128)")), _unlockTime, _lockIndex);
        _proxyCall(vefxs,data);
    }

    function increaseFpisAmount(uint256 _value, uint128 _lockIndex) external onlyFpisLocker{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("increaseAmount(uint256,uint128)")), _value, _lockIndex);
        _proxyCall(vefxsfpis,data);
    }

    function increaseFpisUnlockTime(uint128 _unlockTime, uint128 _lockIndex) external onlyFpisLocker{
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("increaseUnlockTime(uint128,uint128)")), _unlockTime, _lockIndex);
        _proxyCall(vefxsfpis,data);
    }

    /// End Depositor ///



    //claim and distribute fees
    function claimFees() external {
        uint256 _balance = IERC20(vefxsFeeToken).balanceOf(proxy);
        bytes memory data = abi.encodeWithSelector(bytes4(keccak256("getYield()")));
        _proxyCall(vefxsRewardDistribution,data);
        _balance = IERC20(vefxsFeeToken).balanceOf(proxy) - _balance;

        uint256 platformshare = _balance * platformVefxsFees / 10000; 
        data = abi.encodeWithSelector(bytes4(keccak256("transfer(address,uint256)")), platformReceiver, platformshare);
        _proxyCall(vefxsFeeToken,data);
        emit ClaimFees(platformReceiver,platformshare);
        _balance -= platformshare;
        data = abi.encodeWithSelector(bytes4(keccak256("transfer(address,uint256)")), cvxfxsRewardReceiver, _balance);
        _proxyCall(vefxsFeeToken,data);
        emit ClaimFees(cvxfxsRewardReceiver, _balance);

        //pull rewards from bridge
        uint256 bridgeBalance = IERC20(vefxsFeeToken).balanceOf(bridgeReceiver);
        data = abi.encodeWithSelector(bytes4(keccak256("withdrawTo(address,uint256,address)")),vefxsFeeToken,bridgeBalance,address(this));
        _proxyCall(bridgeReceiver,data);

        //enqueue rewards
        IRewardDistribution(extraRewardDistribution).queueNewRewards(bridgeBalance);

        //claim rewards
        data = abi.encodeWithSelector(bytes4(keccak256("getReward(address)")), address(this));
        _proxyCall(extraRewardDistribution,data);
        IERC20(vefxsFeeToken).safeTransfer(cvxfxsRewardReceiver, IERC20(vefxsFeeToken).balanceOf(address(this)));
    }

    /* ========== EVENTS ========== */
    event SetPendingOwner(address indexed _address);
    event SetFxsDepositor(address indexed _address);
    event SetFpisLocker(address indexed _address);
    event SetVefxsDistro(address indexed _vefxsdistro, address _token, address _receiver);
    event SetExtraDistro(address indexed _distro, address _bridgeReceiver);
    event SetFeeInfo(address indexed _platformreceiver, uint256 _fee);
    event ClaimFees(address indexed _receiver, uint256 _amount );
    event OwnerChanged(address indexed _address);
    event Shutdown();
    event DelegateSet(address indexed _address);
    event OnChainDelegateSet(address indexed _address);
    event Recovered(address indexed _token, uint256 _amount);
}

File 2 of 7 : IStaker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

interface IStaker{
    function createLock(uint256, uint256) external returns (bool);
    function increaseAmount(uint256) external returns (bool);
    function increaseTime(uint256) external returns (bool);
    function release() external returns (bool);
    function checkpointFeeRewards(address) external;
    function claimFees(address,address,address) external returns (uint256);
    function voteGaugeWeight(address,uint256) external returns (bool);
    function operator() external view returns (address);
    function execute(address _to, uint256 _value, bytes calldata _data) external returns (bool, bytes memory);
}

File 3 of 7 : IRewardDistribution.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

interface IRewardDistribution{
    function getReward(address _claimTo) external returns(bool);
    function queueNewRewards(uint256 _rewards) external returns(bool);
    function totalSupply() external view returns (uint256);
    function balanceOf(address _account) external view returns (uint256);
}

File 4 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 6 of 7 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 7 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_proxy","type":"address"},{"internalType":"address","name":"_vefxs","type":"address"},{"internalType":"address","name":"_vefxsfpis","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ClaimFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"DelegateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OnChainDelegateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_distro","type":"address"},{"indexed":false,"internalType":"address","name":"_bridgeReceiver","type":"address"}],"name":"SetExtraDistro","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_platformreceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"SetFeeInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetFpisLocker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetFxsDepositor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"}],"name":"SetPendingOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_vefxsdistro","type":"address"},{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"address","name":"_receiver","type":"address"}],"name":"SetVefxsDistro","type":"event"},{"anonymous":false,"inputs":[],"name":"Shutdown","type":"event"},{"inputs":[],"name":"acceptPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bridgeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_votingContract","type":"address"},{"internalType":"uint256","name":"_proposalId","type":"uint256"},{"internalType":"bool","name":"_support","type":"bool"}],"name":"castVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_locker","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint128","name":"_unlockTime","type":"uint128"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cvxfxsRewardReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"extraRewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fpisLocker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fxsDepositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint128","name":"_lockIndex","type":"uint128"}],"name":"increaseAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint128","name":"_lockIndex","type":"uint128"}],"name":"increaseFpisAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_unlockTime","type":"uint128"},{"internalType":"uint128","name":"_lockIndex","type":"uint128"}],"name":"increaseFpisUnlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_unlockTime","type":"uint128"},{"internalType":"uint128","name":"_lockIndex","type":"uint128"}],"name":"increaseUnlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isShutdown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"platformReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformVefxsFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"address","name":"_withdrawTo","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"address","name":"_withdrawTo","type":"address"}],"name":"recoverERC20FromProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegateContract","type":"address"},{"internalType":"address","name":"_delegate","type":"address"},{"internalType":"bytes32","name":"_space","type":"bytes32"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distro","type":"address"},{"internalType":"address","name":"_bridgeReceiver","type":"address"}],"name":"setExtraDistro","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platformReceiver","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFeeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_locker","type":"address"}],"name":"setFpisLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_deposit","type":"address"}],"name":"setFxsDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegateContract","type":"address"},{"internalType":"address","name":"_delegate","type":"address"}],"name":"setOnChainDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_po","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distro","type":"address"},{"internalType":"address","name":"_feeToken","type":"address"},{"internalType":"address","name":"_cvxFeeReceiver","type":"address"}],"name":"setVefxsDistro","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shutdownSystem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vefxs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxsFeeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxsRewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxsfpis","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteDelegate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040523480156200001157600080fd5b50604051620021f5380380620021f583398101604081905262000034916200009e565b6001600160a01b0392831660805290821660a0521660c052600b805460ff60a01b1916905560008054336001600160a01b03199182168117909255600280549091169091179055620000e8565b80516001600160a01b03811681146200009957600080fd5b919050565b600080600060608486031215620000b457600080fd5b620000bf8462000081565b9250620000cf6020850162000081565b9150620000df6040850162000081565b90509250925092565b60805160a05160c0516120b362000142600039600081816102b701526106f901526000818161030c0152610cec0152600081816104e701528181610f45015281816110170152818161148401526117f201526120b36000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806399f4a38911610125578063d294f093116100ad578063e30c39781161007c578063e30c3978146104a5578063e7715751146104b8578063ea928304146104cf578063ec556889146104e2578063f5cb282a1461050957600080fd5b8063d294f09314610464578063d41a46411461046c578063d579bb531461047f578063e13d7f981461049257600080fd5b8063b20cc6a4116100f4578063b20cc6a4146103f4578063b51609b414610407578063bf86d6901461041a578063c42069ec1461043e578063cbca603b1461045157600080fd5b806399f4a389146103b35780639e8bc92a146103bb5780639f00332b146103ce5780639ff4a3b1146103e157600080fd5b80633b788da9116101a85780637873fae6116101775780637873fae614610354578063875b9ae7146103675780638bd45c0b1461037a5780638da5cb5b1461038d578063929edf45146103a057600080fd5b80633b788da9146102f45780636a32eb51146103075780636d11b8a51461032e5780637739eb421461034157600080fd5b80631cff79cd116101ef5780631cff79cd1461028c57806322f24bec1461029f5780632f530f2e146102b2578063354af919146102d957806338178d95146102e157600080fd5b80630a208972146102215780630f2097c0146102515780631278af4c1461026657806312d320c514610279575b600080fd5b600954610234906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61026461025f366004611b6d565b61051c565b005b610264610274366004611bae565b610639565b610264610287366004611bf2565b610723565b61026461029a366004611c32565b6107fb565b600554610234906001600160a01b031681565b6102347f000000000000000000000000000000000000000000000000000000000000000081565b610264610865565b6102646102ef366004611cb5565b6108cd565b610264610302366004611cdf565b610990565b6102347f000000000000000000000000000000000000000000000000000000000000000081565b61026461033c366004611cb5565b610a48565b600854610234906001600160a01b031681565b600454610234906001600160a01b031681565b600754610234906001600160a01b031681565b610264610388366004611d1b565b610bb8565b600054610234906001600160a01b031681565b6102646103ae366004611d3d565b610c2c565b610264610d11565b600b54610234906001600160a01b031681565b600254610234906001600160a01b031681565b6102646103ef366004611d1b565b610dbd565b600654610234906001600160a01b031681565b610264610415366004611d60565b610e31565b600b5461042e90600160a01b900460ff1681565b6040519015158152602001610248565b61026461044c366004611d1b565b610eb7565b600354610234906001600160a01b031681565b610264610f2b565b61026461047a366004611d9c565b61144d565b61026461048d366004611d60565b6114ec565b6102646104a0366004611bae565b6115b0565b600154610234906001600160a01b031681565b6104c1600a5481565b604051908152602001610248565b6102646104dd366004611d3d565b61163c565b6102347f000000000000000000000000000000000000000000000000000000000000000081565b610264610517366004611dcf565b6116c6565b6000546001600160a01b0316331461054f5760405162461bcd60e51b815260040161054690611e09565b60405180910390fd5b6001600160a01b0382166105985760405162461bcd60e51b815260206004820152601060248201526f34b73b30b634b2103932b1b2b4bb32b960811b6044820152606401610546565b67016345785d8a00008111156105de5760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b6044820152606401610546565b600b80546001600160a01b0319166001600160a01b038416908117909155600a8290556040518281527fcbc58c704c1bf4b5c4bc61fc2a87feccba3adc71846e5a529dad2be7012fe90b906020015b60405180910390a25050565b6004546001600160a01b0316331461067d5760405162461bcd60e51b815260206004820152600760248201526610b637b1b5b2b960c91b6044820152606401610546565b6040516001600160801b038084166024830152821660448201526000907fe13d7f9836fd7ce83aee2e23d60e8d95cbfe226d3629a20990f64fdb01ed3486906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905061071e7f0000000000000000000000000000000000000000000000000000000000000000826117d8565b505050565b6002546001600160a01b0316331461076d5760405162461bcd60e51b815260206004820152600d60248201526c21766f746544656c656761746560981b6044820152606401610546565b60007f567813887e9a02f0fdc9e5cce34dad3f5e8ac785aa0259ba5d30339dd056cd23838361079d5760006107a0565b60015b604051602481019290925260ff1660448201526064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290506107f584826117d8565b50505050565b6000546001600160a01b031633146108255760405162461bcd60e51b815260040161054690611e09565b61071e8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117d892505050565b6000546001600160a01b0316331461088f5760405162461bcd60e51b815260040161054690611e09565b600b805460ff60a01b1916600160a01b1790556040517f4426aa1fb73e391071491fcfe21a88b5c38a0a0333a1f6e77161470439704cf890600090a1565b6000546001600160a01b031633146108f75760405162461bcd60e51b815260040161054690611e09565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166317066a5760e21b17905261094483826117d8565b600280546001600160a01b0319166001600160a01b0384169081179091556040517ffe3d977891d8a37d81321b525b70781640d7bca89d42a9ca844204831a87944390600090a2505050565b6000546001600160a01b031633146109ba5760405162461bcd60e51b815260040161054690611e09565b60408051602481018390526001600160a01b0384166044808301919091528251808303909101815260649091019091526020810180516001600160e01b03166317b0dca160e31b179052610a0e84826117d8565b6040516001600160a01b038416907f2bb25fbb42d8e727aa4821b933cc09877ef371e86860cb18c52f8fda3cf18b5c90600090a250505050565b6000546001600160a01b03163314610a725760405162461bcd60e51b815260040161054690611e09565b6001600160a01b038216610a985760405162461bcd60e51b815260040161054690611e28565b6006546001600160a01b0316610adc5760405162461bcd60e51b815260206004820152600960248201526810b332b2aa37b5b2b760b91b6044820152606401610546565b600880546001600160a01b038481166001600160a01b031992831681179093556009805485831693169290921790915560065460405163095ea7b360e01b815260048101939093526000196024840152169063095ea7b3906044016020604051808303816000875af1158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a9190611e49565b506040516001600160a01b0382811682528316907f8c606cbbbd5994a055de0871efcbd6933cf298770d401ead8e6b5f26335caf4f9060200161062d565b6000546001600160a01b03163314610be25760405162461bcd60e51b815260040161054690611e09565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f28a9fab4be0ec9a4ff10f809e2518b59aef027b50370cad6ad265196e124188f90600090a250565b6003546001600160a01b03163314610c715760405162461bcd60e51b81526020600482015260086024820152670859195c1bdcda5d60c21b6044820152606401610546565b604051602481018390526001600160801b03821660448201526000907f929edf45814a1ade0d0329dc744addf3c0d1b80d5e6797a553437076f6ddf071906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905061071e7f0000000000000000000000000000000000000000000000000000000000000000826117d8565b6001546001600160a01b031615801590610d3557506001546001600160a01b031633145b610d6c5760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b6044820152606401610546565b60018054600080546001600160a01b0383166001600160a01b031991821681178355921690925560405190917fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3691a2565b6000546001600160a01b03163314610de75760405162461bcd60e51b815260040161054690611e09565b600480546001600160a01b0319166001600160a01b0383169081179091556040517f1e69b6d07d5bf89ac8a0a1a858a6417a0519444d31c04f827e514e600c08ead190600090a250565b6000546001600160a01b03163314610e5b5760405162461bcd60e51b815260040161054690611e09565b610e6f6001600160a01b03841682846118b4565b826001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2883604051610eaa91815260200190565b60405180910390a2505050565b6000546001600160a01b03163314610ee15760405162461bcd60e51b815260040161054690611e09565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6006546040516370a0823160e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260009216906370a0823190602401602060405180830381865afa158015610f96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fba9190611e66565b6040805160048152602481019091526020810180516001600160e01b0316637c26287160e01b17905260055491925090610ffd906001600160a01b0316826117d8565b6006546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152849216906370a0823190602401602060405180830381865afa158015611067573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108b9190611e66565b6110959190611e95565b91506000612710600a54846110aa9190611eac565b6110b49190611ecb565b600b54604080516001600160a01b03928316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526006549094509192506111139116836117d8565b600b546040518281526001600160a01b03909116907f1fdd0020358893559713def8b42cad661ffbc755d1a264594027921442bb56a09060200160405180910390a261115f8184611e95565b600754604080516001600160a01b03928316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905260065492955093506111bd9116836117d8565b6007546040518481526001600160a01b03909116907f1fdd0020358893559713def8b42cad661ffbc755d1a264594027921442bb56a09060200160405180910390a26006546009546040516370a0823160e01b81526001600160a01b03918216600482015260009291909116906370a0823190602401602060405180830381865afa158015611250573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112749190611e66565b600654604080516001600160a01b03928316602482015260448101849052306064808301919091528251808303909101815260849091019091526020810180516001600160e01b031663627160f360e11b1790526009549095509192506112dc9116846117d8565b60085460405163590a41f560e01b8152600481018390526001600160a01b039091169063590a41f5906024016020604051808303816000875af1158015611327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134b9190611e49565b506040513060248201527fc00007b0b14ce14d1d8e20828982c1e51944313ec54b52ee46020e0e016774959060440160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526008549093506113c5906001600160a01b0316846117d8565b6007546006546040516370a0823160e01b81523060048201526107f5926001600160a01b039081169216906370a0823190602401602060405180830381865afa158015611416573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143a9190611e66565b6006546001600160a01b031691906118b4565b6000546001600160a01b031633146114775760405162461bcd60e51b815260040161054690611e09565b6040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604481018390526001600160801b03821660648201526000907fd41a464133141ad9a62a86a751990b0402488da126f9cfb9ae3724bced06cbd4906084016107b7565b6000546001600160a01b031633146115165760405162461bcd60e51b815260040161054690611e09565b604080516001600160a01b038316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261156784826117d8565b836001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28846040516115a291815260200190565b60405180910390a250505050565b6003546001600160a01b031633146115f55760405162461bcd60e51b81526020600482015260086024820152670859195c1bdcda5d60c21b6044820152606401610546565b6040516001600160801b038084166024830152821660448201526000907fe13d7f9836fd7ce83aee2e23d60e8d95cbfe226d3629a20990f64fdb01ed348690606401610cb3565b6004546001600160a01b031633146116805760405162461bcd60e51b815260206004820152600760248201526610b637b1b5b2b960c91b6044820152606401610546565b604051602481018390526001600160801b03821660448201526000907f929edf45814a1ade0d0329dc744addf3c0d1b80d5e6797a553437076f6ddf071906064016106c0565b6000546001600160a01b031633146116f05760405162461bcd60e51b815260040161054690611e09565b6001600160a01b0383166117165760405162461bcd60e51b815260040161054690611e28565b6001600160a01b03821661173c5760405162461bcd60e51b815260040161054690611e28565b6001600160a01b0381166117625760405162461bcd60e51b815260040161054690611e28565b600580546001600160a01b038581166001600160a01b03199283168117909355600680548683169084168117909155600780549286169290931682179092556040805192835260208301919091527f6d6a8c29ce8da52532ca9cf01e942a8df6441c35ea8aed5d4078da410e5daf789101610eaa565b604051635b0e93fb60e11b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b61d27f69061182b90869085908790600401611f45565b6000604051808303816000875af115801561184a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118729190810190611f8b565b5090508061071e5760405162461bcd60e51b815260206004820152600f60248201526e141c9bde1e4810d85b1b0811985a5b608a1b6044820152606401610546565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261071e928692916000916119449185169084906119c4565b90508051600014806119655750808060200190518101906119659190611e49565b61071e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610546565b60606119d384846000856119db565b949350505050565b606082471015611a3c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610546565b600080866001600160a01b03168587604051611a58919061204e565b60006040518083038185875af1925050503d8060008114611a95576040519150601f19603f3d011682016040523d82523d6000602084013e611a9a565b606091505b5091509150611aab87838387611ab6565b979650505050505050565b60608315611b22578251611b1b576001600160a01b0385163b611b1b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610546565b50816119d3565b6119d38383815115611b375781518083602001fd5b8060405162461bcd60e51b8152600401610546919061206a565b80356001600160a01b0381168114611b6857600080fd5b919050565b60008060408385031215611b8057600080fd5b611b8983611b51565b946020939093013593505050565b80356001600160801b0381168114611b6857600080fd5b60008060408385031215611bc157600080fd5b611bca83611b97565b9150611bd860208401611b97565b90509250929050565b8015158114611bef57600080fd5b50565b600080600060608486031215611c0757600080fd5b611c1084611b51565b9250602084013591506040840135611c2781611be1565b809150509250925092565b600080600060408486031215611c4757600080fd5b611c5084611b51565b9250602084013567ffffffffffffffff80821115611c6d57600080fd5b818601915086601f830112611c8157600080fd5b813581811115611c9057600080fd5b876020828501011115611ca257600080fd5b6020830194508093505050509250925092565b60008060408385031215611cc857600080fd5b611cd183611b51565b9150611bd860208401611b51565b600080600060608486031215611cf457600080fd5b611cfd84611b51565b9250611d0b60208501611b51565b9150604084013590509250925092565b600060208284031215611d2d57600080fd5b611d3682611b51565b9392505050565b60008060408385031215611d5057600080fd5b82359150611bd860208401611b97565b600080600060608486031215611d7557600080fd5b611d7e84611b51565b925060208401359150611d9360408501611b51565b90509250925092565b600080600060608486031215611db157600080fd5b611dba84611b51565b925060208401359150611d9360408501611b97565b600080600060608486031215611de457600080fd5b611ded84611b51565b9250611dfb60208501611b51565b9150611d9360408501611b51565b602080825260059082015264042c2eae8d60db1b604082015260600190565b6020808252600790820152661a5b9d985b1a5960ca1b604082015260600190565b600060208284031215611e5b57600080fd5b8151611d3681611be1565b600060208284031215611e7857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ea757611ea7611e7f565b500390565b6000816000190483118215151615611ec657611ec6611e7f565b500290565b600082611ee857634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611f08578181015183820152602001611ef0565b838111156107f55750506000910152565b60008151808452611f31816020860160208601611eed565b601f01601f19169290920160200192915050565b60018060a01b0384168152826020820152606060408201526000611f6c6060830184611f19565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215611f9e57600080fd5b8251611fa981611be1565b602084015190925067ffffffffffffffff80821115611fc757600080fd5b818501915085601f830112611fdb57600080fd5b815181811115611fed57611fed611f75565b604051601f8201601f19908116603f0116810190838211818310171561201557612015611f75565b8160405282815288602084870101111561202e57600080fd5b61203f836020830160208801611eed565b80955050505050509250929050565b60008251612060818460208701611eed565b9190910192915050565b602081526000611d366020830184611f1956fea26469706673582212203344009c9e8a3ee7753ec5783ce27c143002f0e2215c6e673d7756e5fd1a7ed364736f6c634300080a003300000000000000000000000059cfcd384746ec3035299d90782be065e466800b000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf000000000000000000000000437e9f65ca234ecfed12149109587139d435ad35

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c806399f4a38911610125578063d294f093116100ad578063e30c39781161007c578063e30c3978146104a5578063e7715751146104b8578063ea928304146104cf578063ec556889146104e2578063f5cb282a1461050957600080fd5b8063d294f09314610464578063d41a46411461046c578063d579bb531461047f578063e13d7f981461049257600080fd5b8063b20cc6a4116100f4578063b20cc6a4146103f4578063b51609b414610407578063bf86d6901461041a578063c42069ec1461043e578063cbca603b1461045157600080fd5b806399f4a389146103b35780639e8bc92a146103bb5780639f00332b146103ce5780639ff4a3b1146103e157600080fd5b80633b788da9116101a85780637873fae6116101775780637873fae614610354578063875b9ae7146103675780638bd45c0b1461037a5780638da5cb5b1461038d578063929edf45146103a057600080fd5b80633b788da9146102f45780636a32eb51146103075780636d11b8a51461032e5780637739eb421461034157600080fd5b80631cff79cd116101ef5780631cff79cd1461028c57806322f24bec1461029f5780632f530f2e146102b2578063354af919146102d957806338178d95146102e157600080fd5b80630a208972146102215780630f2097c0146102515780631278af4c1461026657806312d320c514610279575b600080fd5b600954610234906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61026461025f366004611b6d565b61051c565b005b610264610274366004611bae565b610639565b610264610287366004611bf2565b610723565b61026461029a366004611c32565b6107fb565b600554610234906001600160a01b031681565b6102347f000000000000000000000000437e9f65ca234ecfed12149109587139d435ad3581565b610264610865565b6102646102ef366004611cb5565b6108cd565b610264610302366004611cdf565b610990565b6102347f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf81565b61026461033c366004611cb5565b610a48565b600854610234906001600160a01b031681565b600454610234906001600160a01b031681565b600754610234906001600160a01b031681565b610264610388366004611d1b565b610bb8565b600054610234906001600160a01b031681565b6102646103ae366004611d3d565b610c2c565b610264610d11565b600b54610234906001600160a01b031681565b600254610234906001600160a01b031681565b6102646103ef366004611d1b565b610dbd565b600654610234906001600160a01b031681565b610264610415366004611d60565b610e31565b600b5461042e90600160a01b900460ff1681565b6040519015158152602001610248565b61026461044c366004611d1b565b610eb7565b600354610234906001600160a01b031681565b610264610f2b565b61026461047a366004611d9c565b61144d565b61026461048d366004611d60565b6114ec565b6102646104a0366004611bae565b6115b0565b600154610234906001600160a01b031681565b6104c1600a5481565b604051908152602001610248565b6102646104dd366004611d3d565b61163c565b6102347f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b81565b610264610517366004611dcf565b6116c6565b6000546001600160a01b0316331461054f5760405162461bcd60e51b815260040161054690611e09565b60405180910390fd5b6001600160a01b0382166105985760405162461bcd60e51b815260206004820152601060248201526f34b73b30b634b2103932b1b2b4bb32b960811b6044820152606401610546565b67016345785d8a00008111156105de5760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b6044820152606401610546565b600b80546001600160a01b0319166001600160a01b038416908117909155600a8290556040518281527fcbc58c704c1bf4b5c4bc61fc2a87feccba3adc71846e5a529dad2be7012fe90b906020015b60405180910390a25050565b6004546001600160a01b0316331461067d5760405162461bcd60e51b815260206004820152600760248201526610b637b1b5b2b960c91b6044820152606401610546565b6040516001600160801b038084166024830152821660448201526000907fe13d7f9836fd7ce83aee2e23d60e8d95cbfe226d3629a20990f64fdb01ed3486906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905061071e7f000000000000000000000000437e9f65ca234ecfed12149109587139d435ad35826117d8565b505050565b6002546001600160a01b0316331461076d5760405162461bcd60e51b815260206004820152600d60248201526c21766f746544656c656761746560981b6044820152606401610546565b60007f567813887e9a02f0fdc9e5cce34dad3f5e8ac785aa0259ba5d30339dd056cd23838361079d5760006107a0565b60015b604051602481019290925260ff1660448201526064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915290506107f584826117d8565b50505050565b6000546001600160a01b031633146108255760405162461bcd60e51b815260040161054690611e09565b61071e8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117d892505050565b6000546001600160a01b0316331461088f5760405162461bcd60e51b815260040161054690611e09565b600b805460ff60a01b1916600160a01b1790556040517f4426aa1fb73e391071491fcfe21a88b5c38a0a0333a1f6e77161470439704cf890600090a1565b6000546001600160a01b031633146108f75760405162461bcd60e51b815260040161054690611e09565b604080516001600160a01b0383166024808301919091528251808303909101815260449091019091526020810180516001600160e01b03166317066a5760e21b17905261094483826117d8565b600280546001600160a01b0319166001600160a01b0384169081179091556040517ffe3d977891d8a37d81321b525b70781640d7bca89d42a9ca844204831a87944390600090a2505050565b6000546001600160a01b031633146109ba5760405162461bcd60e51b815260040161054690611e09565b60408051602481018390526001600160a01b0384166044808301919091528251808303909101815260649091019091526020810180516001600160e01b03166317b0dca160e31b179052610a0e84826117d8565b6040516001600160a01b038416907f2bb25fbb42d8e727aa4821b933cc09877ef371e86860cb18c52f8fda3cf18b5c90600090a250505050565b6000546001600160a01b03163314610a725760405162461bcd60e51b815260040161054690611e09565b6001600160a01b038216610a985760405162461bcd60e51b815260040161054690611e28565b6006546001600160a01b0316610adc5760405162461bcd60e51b815260206004820152600960248201526810b332b2aa37b5b2b760b91b6044820152606401610546565b600880546001600160a01b038481166001600160a01b031992831681179093556009805485831693169290921790915560065460405163095ea7b360e01b815260048101939093526000196024840152169063095ea7b3906044016020604051808303816000875af1158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a9190611e49565b506040516001600160a01b0382811682528316907f8c606cbbbd5994a055de0871efcbd6933cf298770d401ead8e6b5f26335caf4f9060200161062d565b6000546001600160a01b03163314610be25760405162461bcd60e51b815260040161054690611e09565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f28a9fab4be0ec9a4ff10f809e2518b59aef027b50370cad6ad265196e124188f90600090a250565b6003546001600160a01b03163314610c715760405162461bcd60e51b81526020600482015260086024820152670859195c1bdcda5d60c21b6044820152606401610546565b604051602481018390526001600160801b03821660448201526000907f929edf45814a1ade0d0329dc744addf3c0d1b80d5e6797a553437076f6ddf071906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905061071e7f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf826117d8565b6001546001600160a01b031615801590610d3557506001546001600160a01b031633145b610d6c5760405162461bcd60e51b815260206004820152600860248201526710b82fb7bbb732b960c11b6044820152606401610546565b60018054600080546001600160a01b0383166001600160a01b031991821681178355921690925560405190917fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3691a2565b6000546001600160a01b03163314610de75760405162461bcd60e51b815260040161054690611e09565b600480546001600160a01b0319166001600160a01b0383169081179091556040517f1e69b6d07d5bf89ac8a0a1a858a6417a0519444d31c04f827e514e600c08ead190600090a250565b6000546001600160a01b03163314610e5b5760405162461bcd60e51b815260040161054690611e09565b610e6f6001600160a01b03841682846118b4565b826001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa2883604051610eaa91815260200190565b60405180910390a2505050565b6000546001600160a01b03163314610ee15760405162461bcd60e51b815260040161054690611e09565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f5f4861af37461865f168c6e320428b3141f409a1763bd61b6359d38ad38ae74c90600090a250565b6006546040516370a0823160e01b81526001600160a01b037f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b8116600483015260009216906370a0823190602401602060405180830381865afa158015610f96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fba9190611e66565b6040805160048152602481019091526020810180516001600160e01b0316637c26287160e01b17905260055491925090610ffd906001600160a01b0316826117d8565b6006546040516370a0823160e01b81526001600160a01b037f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b81166004830152849216906370a0823190602401602060405180830381865afa158015611067573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108b9190611e66565b6110959190611e95565b91506000612710600a54846110aa9190611eac565b6110b49190611ecb565b600b54604080516001600160a01b03928316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526006549094509192506111139116836117d8565b600b546040518281526001600160a01b03909116907f1fdd0020358893559713def8b42cad661ffbc755d1a264594027921442bb56a09060200160405180910390a261115f8184611e95565b600754604080516001600160a01b03928316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905260065492955093506111bd9116836117d8565b6007546040518481526001600160a01b03909116907f1fdd0020358893559713def8b42cad661ffbc755d1a264594027921442bb56a09060200160405180910390a26006546009546040516370a0823160e01b81526001600160a01b03918216600482015260009291909116906370a0823190602401602060405180830381865afa158015611250573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112749190611e66565b600654604080516001600160a01b03928316602482015260448101849052306064808301919091528251808303909101815260849091019091526020810180516001600160e01b031663627160f360e11b1790526009549095509192506112dc9116846117d8565b60085460405163590a41f560e01b8152600481018390526001600160a01b039091169063590a41f5906024016020604051808303816000875af1158015611327573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134b9190611e49565b506040513060248201527fc00007b0b14ce14d1d8e20828982c1e51944313ec54b52ee46020e0e016774959060440160408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526008549093506113c5906001600160a01b0316846117d8565b6007546006546040516370a0823160e01b81523060048201526107f5926001600160a01b039081169216906370a0823190602401602060405180830381865afa158015611416573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143a9190611e66565b6006546001600160a01b031691906118b4565b6000546001600160a01b031633146114775760405162461bcd60e51b815260040161054690611e09565b6040516001600160a01b037f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b166024820152604481018390526001600160801b03821660648201526000907fd41a464133141ad9a62a86a751990b0402488da126f9cfb9ae3724bced06cbd4906084016107b7565b6000546001600160a01b031633146115165760405162461bcd60e51b815260040161054690611e09565b604080516001600160a01b038316602482015260448082018590528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261156784826117d8565b836001600160a01b03167f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28846040516115a291815260200190565b60405180910390a250505050565b6003546001600160a01b031633146115f55760405162461bcd60e51b81526020600482015260086024820152670859195c1bdcda5d60c21b6044820152606401610546565b6040516001600160801b038084166024830152821660448201526000907fe13d7f9836fd7ce83aee2e23d60e8d95cbfe226d3629a20990f64fdb01ed348690606401610cb3565b6004546001600160a01b031633146116805760405162461bcd60e51b815260206004820152600760248201526610b637b1b5b2b960c91b6044820152606401610546565b604051602481018390526001600160801b03821660448201526000907f929edf45814a1ade0d0329dc744addf3c0d1b80d5e6797a553437076f6ddf071906064016106c0565b6000546001600160a01b031633146116f05760405162461bcd60e51b815260040161054690611e09565b6001600160a01b0383166117165760405162461bcd60e51b815260040161054690611e28565b6001600160a01b03821661173c5760405162461bcd60e51b815260040161054690611e28565b6001600160a01b0381166117625760405162461bcd60e51b815260040161054690611e28565b600580546001600160a01b038581166001600160a01b03199283168117909355600680548683169084168117909155600780549286169290931682179092556040805192835260208301919091527f6d6a8c29ce8da52532ca9cf01e942a8df6441c35ea8aed5d4078da410e5daf789101610eaa565b604051635b0e93fb60e11b81526000906001600160a01b037f00000000000000000000000059cfcd384746ec3035299d90782be065e466800b169063b61d27f69061182b90869085908790600401611f45565b6000604051808303816000875af115801561184a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118729190810190611f8b565b5090508061071e5760405162461bcd60e51b815260206004820152600f60248201526e141c9bde1e4810d85b1b0811985a5b608a1b6044820152606401610546565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261071e928692916000916119449185169084906119c4565b90508051600014806119655750808060200190518101906119659190611e49565b61071e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610546565b60606119d384846000856119db565b949350505050565b606082471015611a3c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610546565b600080866001600160a01b03168587604051611a58919061204e565b60006040518083038185875af1925050503d8060008114611a95576040519150601f19603f3d011682016040523d82523d6000602084013e611a9a565b606091505b5091509150611aab87838387611ab6565b979650505050505050565b60608315611b22578251611b1b576001600160a01b0385163b611b1b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610546565b50816119d3565b6119d38383815115611b375781518083602001fd5b8060405162461bcd60e51b8152600401610546919061206a565b80356001600160a01b0381168114611b6857600080fd5b919050565b60008060408385031215611b8057600080fd5b611b8983611b51565b946020939093013593505050565b80356001600160801b0381168114611b6857600080fd5b60008060408385031215611bc157600080fd5b611bca83611b97565b9150611bd860208401611b97565b90509250929050565b8015158114611bef57600080fd5b50565b600080600060608486031215611c0757600080fd5b611c1084611b51565b9250602084013591506040840135611c2781611be1565b809150509250925092565b600080600060408486031215611c4757600080fd5b611c5084611b51565b9250602084013567ffffffffffffffff80821115611c6d57600080fd5b818601915086601f830112611c8157600080fd5b813581811115611c9057600080fd5b876020828501011115611ca257600080fd5b6020830194508093505050509250925092565b60008060408385031215611cc857600080fd5b611cd183611b51565b9150611bd860208401611b51565b600080600060608486031215611cf457600080fd5b611cfd84611b51565b9250611d0b60208501611b51565b9150604084013590509250925092565b600060208284031215611d2d57600080fd5b611d3682611b51565b9392505050565b60008060408385031215611d5057600080fd5b82359150611bd860208401611b97565b600080600060608486031215611d7557600080fd5b611d7e84611b51565b925060208401359150611d9360408501611b51565b90509250925092565b600080600060608486031215611db157600080fd5b611dba84611b51565b925060208401359150611d9360408501611b97565b600080600060608486031215611de457600080fd5b611ded84611b51565b9250611dfb60208501611b51565b9150611d9360408501611b51565b602080825260059082015264042c2eae8d60db1b604082015260600190565b6020808252600790820152661a5b9d985b1a5960ca1b604082015260600190565b600060208284031215611e5b57600080fd5b8151611d3681611be1565b600060208284031215611e7857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ea757611ea7611e7f565b500390565b6000816000190483118215151615611ec657611ec6611e7f565b500290565b600082611ee857634e487b7160e01b600052601260045260246000fd5b500490565b60005b83811015611f08578181015183820152602001611ef0565b838111156107f55750506000910152565b60008151808452611f31816020860160208601611eed565b601f01601f19169290920160200192915050565b60018060a01b0384168152826020820152606060408201526000611f6c6060830184611f19565b95945050505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215611f9e57600080fd5b8251611fa981611be1565b602084015190925067ffffffffffffffff80821115611fc757600080fd5b818501915085601f830112611fdb57600080fd5b815181811115611fed57611fed611f75565b604051601f8201601f19908116603f0116810190838211818310171561201557612015611f75565b8160405282815288602084870101111561202e57600080fd5b61203f836020830160208801611eed565b80955050505050509250929050565b60008251612060818460208701611eed565b9190910192915050565b602081526000611d366020830184611f1956fea26469706673582212203344009c9e8a3ee7753ec5783ce27c143002f0e2215c6e673d7756e5fd1a7ed364736f6c634300080a0033

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

00000000000000000000000059cfcd384746ec3035299d90782be065e466800b000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf000000000000000000000000437e9f65ca234ecfed12149109587139d435ad35

-----Decoded View---------------
Arg [0] : _proxy (address): 0x59CFCD384746ec3035299D90782Be065e466800B
Arg [1] : _vefxs (address): 0x007FD070a7E1B0fA1364044a373Ac1339bAD89CF
Arg [2] : _vefxsfpis (address): 0x437E9F65cA234eCfed12149109587139d435AD35

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000059cfcd384746ec3035299d90782be065e466800b
Arg [1] : 000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf
Arg [2] : 000000000000000000000000437e9f65ca234ecfed12149109587139d435ad35


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
[ 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.