FRAX Price: $0.87 (-14.24%)

Contract

0x26aCff2adc9104FE1c26c958dC4C9a5180840c35

Overview

FRAX Balance | FXTL Balance

0.00000000995513628 FRAX | 406 FXTL

FRAX Value

Less Than $0.01 (@ $0.87/FRAX)

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Transfer Governa...48666942024-05-24 9:48:19611 days ago1716544099IN
0x26aCff2a...180840c35
0 FRAX0.000000910.00100025
Set Depositor48666832024-05-24 9:47:57611 days ago1716544077IN
0x26aCff2a...180840c35
0 FRAX0.000000940.00100025
Set Accumulator48666792024-05-24 9:47:49611 days ago1716544069IN
0x26aCff2a...180840c35
0 FRAX0.000000940.00100025

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
264681702025-10-06 10:37:31111 days ago1759747051
0x26aCff2a...180840c35
0 FRAX
263985912025-10-04 19:58:13112 days ago1759607893
0x26aCff2a...180840c35
0 FRAX
263491132025-10-03 16:28:57113 days ago1759508937
0x26aCff2a...180840c35
0 FRAX

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FxsLockerFraxtal

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at fraxscan.com on 2024-05-24
*/

// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.19;

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

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

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

interface IFeeDistributor {
    function claim() external returns (uint256);

    function token() external view returns (address);

    function checkpoint_token() external;

    function checkpoint_total_supply() external;

    function recover_balance(address token) external;

    function kill_me() external;

    function emergency_return() external returns (address);

    function admin() external returns (address);
}

interface IVeToken {
    struct LockedBalance {
        int128 amount;
        uint256 end;
    }

    function create_lock(uint256 _value, uint256 _unlock_time) external;

    function increase_amount(uint256 _value) external;

    function increase_unlock_time(uint256 _unlock_time) external;

    function withdraw() external;

    function locked__end(address) external view returns (uint256);

    function balanceOf(address) external view returns (uint256);
}

interface IVestedFXS {
    function balanceOf(address _addr) external view returns (uint256);

    function createLock(address _addr, uint256 _value, uint128 _unlockTime)
        external
        returns (uint128 index_, uint256 newLockId_);

    function increaseAmount(uint256 _value, uint128 _lockIndex) external;

    function increaseUnlockTime(uint128 _unlockTime, uint128 _lockIndex) external;

    function lockedEnd(address _addr, uint128 _lockIndex) external view returns (uint256);

    function nextId(address _addr) external view returns (uint256);

    function withdraw(uint128 _lockIndex) external;
}

interface IYieldDistributor {
    function getYield() external returns (uint256);

    function checkpoint() external;

    function userVeFXSCheckpointed(address _user) external view returns (uint256);
}

/**
 * @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. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    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));
    }
}

/// @title  VeCRVLocker
/// @notice Locker contract for locking tokens for a period of time compatible with the Voting Escrow contract from Curve
/// @author Stake DAO
/// @custom:contact [email protected]
abstract contract VeCRVLocker {
    using SafeERC20 for IERC20;

    /// @notice Address of the depositor which will mint sdTokens.
    address public depositor;

    /// @notice Address of the accumulator which will accumulate rewards.
    address public accumulator;

    /// @notice Address of the governance contract.
    address public governance;

    /// @notice Address of the future governance contract.
    address public futureGovernance;

    /// @notice Address of the token being locked.
    address public immutable token;

    /// @notice Address of the Voting Escrow contract.
    address public immutable veToken;

    ////////////////////////////////////////////////////////////////
    /// --- EVENTS & ERRORS
    ///////////////////////////////////////////////////////////////

    /// @notice Event emitted when tokens are released from the locker.
    /// @param user Address who released the tokens.
    /// @param value Amount of tokens released.
    event Released(address indexed user, uint256 value);

    /// @notice Event emitted when a lock is created.
    /// @param value Amount of tokens locked.
    /// @param duration Duration of the lock.
    event LockCreated(uint256 value, uint256 duration);

    /// @notice Event emitted when a lock is increased.
    /// @param value Amount of tokens locked.
    /// @param duration Duration of the lock.
    event LockIncreased(uint256 value, uint256 duration);

    /// @notice Event emitted when the depositor is changed.
    /// @param newDepositor Address of the new depositor.
    event DepositorChanged(address indexed newDepositor);

    /// @notice Event emitted when the accumulator is changed.
    /// @param newAccumulator Address of the new accumulator.
    event AccumulatorChanged(address indexed newAccumulator);

    /// @notice Event emitted when a new governance is proposed.
    event GovernanceProposed(address indexed newGovernance);

    /// @notice Event emitted when the governance is changed.
    event GovernanceChanged(address indexed newGovernance);

    /// @notice Throws if caller is not the governance.
    error GOVERNANCE();

    /// @notice Throws if caller is not the governance or depositor.
    error GOVERNANCE_OR_DEPOSITOR();

    /// @notice Throws if caller is not the governance or depositor.
    error GOVERNANCE_OR_ACCUMULATOR();

    ////////////////////////////////////////////////////////////////
    /// --- MODIFIERS
    ///////////////////////////////////////////////////////////////

    modifier onlyGovernance() {
        if (msg.sender != governance) revert GOVERNANCE();
        _;
    }

    modifier onlyGovernanceOrDepositor() {
        if (msg.sender != governance && msg.sender != depositor) revert GOVERNANCE_OR_DEPOSITOR();
        _;
    }

    modifier onlyGovernanceOrAccumulator() {
        if (msg.sender != governance && msg.sender != accumulator) revert GOVERNANCE_OR_ACCUMULATOR();
        _;
    }

    constructor(address _governance, address _token, address _veToken) {
        token = _token;
        veToken = _veToken;
        governance = _governance;
    }

    /// @dev Returns the name of the locker.
    function name() public pure virtual returns (string memory) {
        return "VeCRV Locker";
    }

    ////////////////////////////////////////////////////////////////
    /// --- LOCKER MANAGEMENT
    ///////////////////////////////////////////////////////////////

    /// @notice Create a lock for the contract on the Voting Escrow contract.
    /// @param _value Amount of tokens to lock
    /// @param _unlockTime Duration of the lock
    function createLock(uint256 _value, uint256 _unlockTime) external virtual onlyGovernanceOrDepositor {
        IERC20(token).safeApprove(veToken, type(uint256).max);
        IVeToken(veToken).create_lock(_value, _unlockTime);

        emit LockCreated(_value, _unlockTime);
    }

    /// @notice Increase the lock amount or duration for the contract on the Voting Escrow contract.
    /// @param _value Amount of tokens to lock
    /// @param _unlockTime Duration of the lock
    function increaseLock(uint256 _value, uint256 _unlockTime) external virtual onlyGovernanceOrDepositor {
        if (_value > 0) {
            IVeToken(veToken).increase_amount(_value);
        }

        if (_unlockTime > 0) {
            bool _canIncrease = (_unlockTime / 1 weeks * 1 weeks) > (IVeToken(veToken).locked__end(address(this)));

            if (_canIncrease) {
                IVeToken(veToken).increase_unlock_time(_unlockTime);
            }
        }

        emit LockIncreased(_value, _unlockTime);
    }

    /// @notice Claim the rewards from the fee distributor.
    /// @param _feeDistributor Address of the fee distributor.
    /// @param _token Address of the token to claim.
    /// @param _recipient Address to send the tokens to.
    function claimRewards(address _feeDistributor, address _token, address _recipient)
        external
        virtual
        onlyGovernanceOrAccumulator
    {
        uint256 claimed = IFeeDistributor(_feeDistributor).claim();

        if (_recipient != address(0)) {
            IERC20(_token).safeTransfer(_recipient, claimed);
        }
    }

    /// @notice Release the tokens from the Voting Escrow contract when the lock expires.
    /// @param _recipient Address to send the tokens to
    function release(address _recipient) external virtual onlyGovernance {
        IVeToken(veToken).withdraw();

        uint256 _balance = IERC20(token).balanceOf(address(this));
        IERC20(token).safeTransfer(_recipient, _balance);

        emit Released(msg.sender, _balance);
    }

    ////////////////////////////////////////////////////////////////
    /// --- GOVERNANCE PARAMETERS
    ///////////////////////////////////////////////////////////////

    /// @notice Transfer the governance to a new address.
    /// @param _governance Address of the new governance.
    function transferGovernance(address _governance) external onlyGovernance {
        emit GovernanceProposed(futureGovernance = _governance);
    }

    /// @notice Accept the governance transfer.
    function acceptGovernance() external {
        if (msg.sender != futureGovernance) revert GOVERNANCE();
        emit GovernanceChanged(governance = msg.sender);
    }

    /// @notice Change the depositor address.
    /// @param _depositor Address of the new depositor.
    function setDepositor(address _depositor) external onlyGovernance {
        emit DepositorChanged(depositor = _depositor);
    }

    function setAccumulator(address _accumulator) external onlyGovernance {
        emit AccumulatorChanged(accumulator = _accumulator);
    }

    /// @notice Execute an arbitrary transaction as the governance.
    /// @param to Address to send the transaction to.
    /// @param value Amount of ETH to send with the transaction.
    /// @param data Encoded data of the transaction.
    function execute(address to, uint256 value, bytes calldata data)
        external
        payable
        virtual
        onlyGovernance
        returns (bool, bytes memory)
    {
        (bool success, bytes memory result) = to.call{value: value}(data);
        return (success, result);
    }

    receive() external payable {}
}

/// @title Locker
/// @notice Locks the FXS tokens to veFXS contract
/// @author StakeDAO
/// @custom:contact [email protected]
contract FxsLockerFraxtal is VeCRVLocker {
    using SafeERC20 for IERC20;

    /// @notice Throws if a low leve call failed.
    error CallFailed();

    /// @notice Throws if the lock is already created.
    error LockAlreadyCreated();

    //////////////////////////////////////////////////////
    /// --- CONSTRUCTOR
    //////////////////////////////////////////////////////

    /// @notice Constructor
    /// @param _governance Address of the governance
    /// @param _token Address of the token to lock
    /// @param _veToken Address of the veToken
    /// @param _delegationRegistry Address of the fraxtal delegation registry
    /// @param _initialDelegate Address of the delegate that receives network reward
    constructor(
        address _governance,
        address _token,
        address _veToken,
        address _delegationRegistry,
        address _initialDelegate
    ) VeCRVLocker(_governance, _token, _veToken) {
        // Custom code for Fraxtal
        // set _initialDelegate as delegate
        (bool success,) =
            _delegationRegistry.call(abi.encodeWithSignature("setDelegationForSelf(address)", _initialDelegate));
        if (!success) revert CallFailed();
        // disable self managing delegation
        (success,) = _delegationRegistry.call(abi.encodeWithSignature("disableSelfManagingDelegations()"));
        if (!success) revert CallFailed();
    }

    /// @dev Returns the name of the locker.
    function name() public pure override returns (string memory) {
        return "FXS Locker";
    }

    /* ========== MUTATIVE FUNCTIONS ========== */
    /// @notice Creates a lock by locking FXS token in the veFXS contract for the specified time
    /// @dev Can only be called by governance or depositor
    /// @param _value The amount of token to be locked
    /// @param _unlockTime The duration for which the token is to be locked
    function createLock(uint256 _value, uint256 _unlockTime) external override onlyGovernanceOrDepositor {
        // constrain the locker to create at most one lock
        if (IVestedFXS(veToken).nextId(address(this)) != 0) revert LockAlreadyCreated();

        IERC20(token).safeApprove(veToken, type(uint256).max);
        IVestedFXS(veToken).createLock(address(this), _value, uint128(_unlockTime));

        emit LockCreated(_value, _unlockTime);
    }

    /// @notice Increase the lock amount or duration for the contract on the Voting Escrow contract.
    /// @param _value Amount of tokens to lock
    /// @param _unlockTime Duration of the lock
    function increaseLock(uint256 _value, uint256 _unlockTime) external override onlyGovernanceOrDepositor {
        if (_value != 0) {
            IVestedFXS(veToken).increaseAmount(_value, 0); // lock index = 0
        }

        if (_unlockTime != 0) {
            bool _canIncrease = (_unlockTime / 1 weeks * 1 weeks) > (IVestedFXS(veToken).lockedEnd(address(this), 0));

            if (_canIncrease) {
                IVestedFXS(veToken).increaseUnlockTime(uint128(_unlockTime), 0); // lock index = 0
            }
        }

        emit LockIncreased(_value, _unlockTime);
    }

    /// @notice Withdraw the FXS from veFXS
    /// @dev call only after lock time expires
    /// @param _recipient The address which will receive the released FXS
    function release(address _recipient) external override onlyGovernance {
        IVestedFXS(veToken).withdraw(0); // lock index = 0

        uint256 _balance = IERC20(token).balanceOf(address(this));
        IERC20(token).safeTransfer(_recipient, _balance);

        emit Released(msg.sender, _balance);
    }

    /// @notice Claim the rewards from the yield distributor.
    /// @param _yieldDistributor Address of the yield distributor.
    /// @param _token Address of the token to claim and transfer.
    /// @param _recipient Address to send the tokens to.
    function claimRewards(address _yieldDistributor, address _token, address _recipient)
        external
        override
        onlyGovernanceOrAccumulator
    {
        uint256 snapshotBalance = IERC20(_token).balanceOf(address(this));

        IYieldDistributor(_yieldDistributor).getYield();

        uint256 yield = IERC20(_token).balanceOf(address(this)) - snapshotBalance;

        if (yield != 0) {
            IERC20(_token).transfer(_recipient, yield);
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_veToken","type":"address"},{"internalType":"address","name":"_delegationRegistry","type":"address"},{"internalType":"address","name":"_initialDelegate","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallFailed","type":"error"},{"inputs":[],"name":"GOVERNANCE","type":"error"},{"inputs":[],"name":"GOVERNANCE_OR_ACCUMULATOR","type":"error"},{"inputs":[],"name":"GOVERNANCE_OR_DEPOSITOR","type":"error"},{"inputs":[],"name":"LockAlreadyCreated","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAccumulator","type":"address"}],"name":"AccumulatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newDepositor","type":"address"}],"name":"DepositorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newGovernance","type":"address"}],"name":"GovernanceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newGovernance","type":"address"}],"name":"GovernanceProposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"LockCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"LockIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Released","type":"event"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"accumulator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_yieldDistributor","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"createLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"payable","type":"function"},{"inputs":[],"name":"futureGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"increaseLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_accumulator","type":"address"}],"name":"setAccumulator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"setDepositor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"veToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b5060405162001795380380620017958339810160408190526200003491620001e0565b6001600160a01b0384811660805283811660a052600280546001600160a01b031916878316179055604051828216602482015260009184169060440160408051601f198184030181529181526020820180516001600160e01b03166302b8a21d60e01b17905251620000a7919062000250565b6000604051808303816000865af19150503d8060008114620000e6576040519150601f19603f3d011682016040523d82523d6000602084013e620000eb565b606091505b50509050806200010e57604051633204506f60e01b815260040160405180910390fd5b60408051600481526024810182526020810180516001600160e01b03166325ce9a3760e01b17905290516001600160a01b038516916200014e9162000250565b6000604051808303816000865af19150503d80600081146200018d576040519150601f19603f3d011682016040523d82523d6000602084013e62000192565b606091505b50508091505080620001b757604051633204506f60e01b815260040160405180910390fd5b50505050505062000281565b80516001600160a01b0381168114620001db57600080fd5b919050565b600080600080600060a08688031215620001f957600080fd5b6200020486620001c3565b94506200021460208701620001c3565b93506200022460408701620001c3565b92506200023460608701620001c3565b91506200024460808701620001c3565b90509295509295909350565b6000825160005b8181101562000273576020818601810151858301520162000257565b506000920191825250919050565b60805160a0516114a8620002ed600039600081816101c20152818161039a015281816105ca015281816106540152818161070f0152818161080d015281816108cd015261091f015260008181610337015281816104150152818161049801526108ab01526114a86000f3fe6080604052600436106100f75760003560e01c8063b52c05fe1161008a578063d38bfff411610059578063d38bfff4146102c5578063edc34ece146102e5578063f2c098b714610305578063fc0c546a1461032557600080fd5b8063b52c05fe14610244578063b61d27f614610264578063c7c4ff4614610285578063cecb13ac146102a557600080fd5b80633b92eb23116100c65780633b92eb23146101b05780635aa6e675146101e45780635e70a6dc146102045780638070c5031461022457600080fd5b8063033811541461010357806306fdde03146101405780631916558714610179578063238efcbc1461019b57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b50600154610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014c57600080fd5b50604080518082018252600a815269232c29902637b1b5b2b960b11b602082015290516101379190611211565b34801561018557600080fd5b50610199610194366004611247565b610359565b005b3480156101a757600080fd5b506101996104f8565b3480156101bc57600080fd5b506101237f000000000000000000000000000000000000000000000000000000000000000081565b3480156101f057600080fd5b50600254610123906001600160a01b031681565b34801561021057600080fd5b5061019961021f366004611262565b610563565b34801561023057600080fd5b50600354610123906001600160a01b031681565b34801561025057600080fd5b5061019961025f366004611262565b6107b4565b610277610272366004611284565b6109cb565b60405161013792919061130b565b34801561029157600080fd5b50600054610123906001600160a01b031681565b3480156102b157600080fd5b506101996102c0366004611247565b610a6c565b3480156102d157600080fd5b506101996102e0366004611247565b610ae1565b3480156102f157600080fd5b50610199610300366004611326565b610b56565b34801561031157600080fd5b50610199610320366004611247565b610d67565b34801561033157600080fd5b506101237f000000000000000000000000000000000000000000000000000000000000000081565b6002546001600160a01b03163314610384576040516305189e0d60e21b815260040160405180910390fd5b6040516302387a7b60e01b8152600060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906302387a7b90602401600060405180830381600087803b1580156103e657600080fd5b505af11580156103fa573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a0823190602401602060405180830381865afa158015610465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104899190611369565b90506104bf6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383610dda565b60405181815233907fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e9060200160405180910390a25050565b6003546001600160a01b03163314610523576040516305189e0d60e21b815260040160405180910390fd5b600280546001600160a01b031916339081179091556040517fa6a85f15b976d399f39ad43e515e75910bac714bc55eeff6131fb90780d6f74690600090a2565b6002546001600160a01b0316331480159061058957506000546001600160a01b03163314155b156105a7576040516336b401b760e01b815260040160405180910390fd5b811561062f5760405163929edf4560e01b815260048101839052600060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063929edf4590604401600060405180830381600087803b15801561061657600080fd5b505af115801561062a573d6000803e3d6000fd5b505050505b8015610776576040516376b34c4360e11b8152306004820152600060248201819052907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ed66988690604401602060405180830381865afa1580156106a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c79190611369565b6106d462093a8084611398565b6106e19062093a806113ba565b119050801561077457604051631c27aff360e31b81526001600160801b0383166004820152600060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e13d7f9890604401600060405180830381600087803b15801561075b57600080fd5b505af115801561076f573d6000803e3d6000fd5b505050505b505b60408051838152602081018390527f4879f53821b44fc745aeaf3081ec8771f44cac3bc5783d84c0024a2842b6844791015b60405180910390a15050565b6002546001600160a01b031633148015906107da57506000546001600160a01b03163314155b156107f8576040516336b401b760e01b815260040160405180910390fd5b60405163118643b160e21b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906346190ec490602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190611369565b1561089e5760405163177baf4560e01b815260040160405180910390fd5b6108f46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600019610e42565b60405163d41a464160e01b8152306004820152602481018390526001600160801b03821660448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d41a46419060640160408051808303816000875af115801561096f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099391906113d7565b505060408051838152602081018390527f16c98f98e8586dcb1ba596347ab4ad208bd5cdef50bd70608711805ae0b70ab491016107a8565b6002546000906060906001600160a01b031633146109fc576040516305189e0d60e21b815260040160405180910390fd5b600080876001600160a01b0316878787604051610a1a929190611411565b60006040518083038185875af1925050503d8060008114610a57576040519150601f19603f3d011682016040523d82523d6000602084013e610a5c565b606091505b5090999098509650505050505050565b6002546001600160a01b03163314610a97576040516305189e0d60e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040517f76dc87d21cfee66d285c569296bc83491b75727ee3822c28eadbcdaf1b5d946f90600090a250565b6002546001600160a01b03163314610b0c576040516305189e0d60e21b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0383169081179091556040517f1f95fb40be3a947982072902a887b521248d1d8931a39eb38f84f4d6fd758b6990600090a250565b6002546001600160a01b03163314801590610b7c57506001546001600160a01b03163314155b15610b9a57604051631f308a2560e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610be1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c059190611369565b9050836001600160a01b0316637c2628716040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6b9190611369565b506040516370a0823160e01b815230600482015260009082906001600160a01b038616906370a0823190602401602060405180830381865afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd99190611369565b610ce39190611421565b90508015610d605760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb906044016020604051808303816000875af1158015610d3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5e9190611434565b505b5050505050565b6002546001600160a01b03163314610d92576040516305189e0d60e21b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f165ea44172651427010df987e6fd454678cc3c3f3e7331ab563c596bc8e787f691a250565b6040516001600160a01b038316602482015260448101829052610e3d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610f5c565b505050565b801580610ebc5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eba9190611369565b155b610f2c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084015b60405180910390fd5b6040516001600160a01b038316602482015260448101829052610e3d90849063095ea7b360e01b90606401610e06565b6000610fb1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110319092919063ffffffff16565b9050805160001480610fd2575080806020019051810190610fd29190611434565b610e3d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610f23565b60606110408484600085611048565b949350505050565b6060824710156110a95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610f23565b600080866001600160a01b031685876040516110c59190611456565b60006040518083038185875af1925050503d8060008114611102576040519150601f19603f3d011682016040523d82523d6000602084013e611107565b606091505b509150915061111887838387611123565b979650505050505050565b6060831561119257825160000361118b576001600160a01b0385163b61118b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610f23565b5081611040565b61104083838151156111a75781518083602001fd5b8060405162461bcd60e51b8152600401610f239190611211565b60005b838110156111dc5781810151838201526020016111c4565b50506000910152565b600081518084526111fd8160208601602086016111c1565b601f01601f19169290920160200192915050565b60208152600061122460208301846111e5565b9392505050565b80356001600160a01b038116811461124257600080fd5b919050565b60006020828403121561125957600080fd5b6112248261122b565b6000806040838503121561127557600080fd5b50508035926020909101359150565b6000806000806060858703121561129a57600080fd5b6112a38561122b565b935060208501359250604085013567ffffffffffffffff808211156112c757600080fd5b818701915087601f8301126112db57600080fd5b8135818111156112ea57600080fd5b8860208285010111156112fc57600080fd5b95989497505060200194505050565b821515815260406020820152600061104060408301846111e5565b60008060006060848603121561133b57600080fd5b6113448461122b565b92506113526020850161122b565b91506113606040850161122b565b90509250925092565b60006020828403121561137b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000826113b557634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176113d1576113d1611382565b92915050565b600080604083850312156113ea57600080fd5b82516001600160801b038116811461140157600080fd5b6020939093015192949293505050565b8183823760009101908152919050565b818103818111156113d1576113d1611382565b60006020828403121561144657600080fd5b8151801515811461122457600080fd5b600082516114688184602087016111c1565b919091019291505056fea26469706673582212202d0ccf08ce2f7a40ad8a8f05bef689c888bb4731bd76570004d0c0090c25643464736f6c63430008130033000000000000000000000000000755fbe4a24d7478bfcfc1e561afce82d1ff62000000000000000000000000fc00000000000000000000000000000000000002000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a000000000000000000000000b0552b6860ce5c0202976db056b5e3cc4f9cc765

Deployed Bytecode

0x6080604052600436106100f75760003560e01c8063b52c05fe1161008a578063d38bfff411610059578063d38bfff4146102c5578063edc34ece146102e5578063f2c098b714610305578063fc0c546a1461032557600080fd5b8063b52c05fe14610244578063b61d27f614610264578063c7c4ff4614610285578063cecb13ac146102a557600080fd5b80633b92eb23116100c65780633b92eb23146101b05780635aa6e675146101e45780635e70a6dc146102045780638070c5031461022457600080fd5b8063033811541461010357806306fdde03146101405780631916558714610179578063238efcbc1461019b57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b50600154610123906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014c57600080fd5b50604080518082018252600a815269232c29902637b1b5b2b960b11b602082015290516101379190611211565b34801561018557600080fd5b50610199610194366004611247565b610359565b005b3480156101a757600080fd5b506101996104f8565b3480156101bc57600080fd5b506101237f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf81565b3480156101f057600080fd5b50600254610123906001600160a01b031681565b34801561021057600080fd5b5061019961021f366004611262565b610563565b34801561023057600080fd5b50600354610123906001600160a01b031681565b34801561025057600080fd5b5061019961025f366004611262565b6107b4565b610277610272366004611284565b6109cb565b60405161013792919061130b565b34801561029157600080fd5b50600054610123906001600160a01b031681565b3480156102b157600080fd5b506101996102c0366004611247565b610a6c565b3480156102d157600080fd5b506101996102e0366004611247565b610ae1565b3480156102f157600080fd5b50610199610300366004611326565b610b56565b34801561031157600080fd5b50610199610320366004611247565b610d67565b34801561033157600080fd5b506101237f000000000000000000000000fc0000000000000000000000000000000000000281565b6002546001600160a01b03163314610384576040516305189e0d60e21b815260040160405180910390fd5b6040516302387a7b60e01b8152600060048201527f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf6001600160a01b0316906302387a7b90602401600060405180830381600087803b1580156103e657600080fd5b505af11580156103fa573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f000000000000000000000000fc000000000000000000000000000000000000026001600160a01b031691506370a0823190602401602060405180830381865afa158015610465573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104899190611369565b90506104bf6001600160a01b037f000000000000000000000000fc00000000000000000000000000000000000002168383610dda565b60405181815233907fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e9060200160405180910390a25050565b6003546001600160a01b03163314610523576040516305189e0d60e21b815260040160405180910390fd5b600280546001600160a01b031916339081179091556040517fa6a85f15b976d399f39ad43e515e75910bac714bc55eeff6131fb90780d6f74690600090a2565b6002546001600160a01b0316331480159061058957506000546001600160a01b03163314155b156105a7576040516336b401b760e01b815260040160405180910390fd5b811561062f5760405163929edf4560e01b815260048101839052600060248201527f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf6001600160a01b03169063929edf4590604401600060405180830381600087803b15801561061657600080fd5b505af115801561062a573d6000803e3d6000fd5b505050505b8015610776576040516376b34c4360e11b8152306004820152600060248201819052907f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf6001600160a01b03169063ed66988690604401602060405180830381865afa1580156106a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c79190611369565b6106d462093a8084611398565b6106e19062093a806113ba565b119050801561077457604051631c27aff360e31b81526001600160801b0383166004820152600060248201527f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf6001600160a01b03169063e13d7f9890604401600060405180830381600087803b15801561075b57600080fd5b505af115801561076f573d6000803e3d6000fd5b505050505b505b60408051838152602081018390527f4879f53821b44fc745aeaf3081ec8771f44cac3bc5783d84c0024a2842b6844791015b60405180910390a15050565b6002546001600160a01b031633148015906107da57506000546001600160a01b03163314155b156107f8576040516336b401b760e01b815260040160405180910390fd5b60405163118643b160e21b81523060048201527f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf6001600160a01b0316906346190ec490602401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190611369565b1561089e5760405163177baf4560e01b815260040160405180910390fd5b6108f46001600160a01b037f000000000000000000000000fc00000000000000000000000000000000000002167f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf600019610e42565b60405163d41a464160e01b8152306004820152602481018390526001600160801b03821660448201527f000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf6001600160a01b03169063d41a46419060640160408051808303816000875af115801561096f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099391906113d7565b505060408051838152602081018390527f16c98f98e8586dcb1ba596347ab4ad208bd5cdef50bd70608711805ae0b70ab491016107a8565b6002546000906060906001600160a01b031633146109fc576040516305189e0d60e21b815260040160405180910390fd5b600080876001600160a01b0316878787604051610a1a929190611411565b60006040518083038185875af1925050503d8060008114610a57576040519150601f19603f3d011682016040523d82523d6000602084013e610a5c565b606091505b5090999098509650505050505050565b6002546001600160a01b03163314610a97576040516305189e0d60e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040517f76dc87d21cfee66d285c569296bc83491b75727ee3822c28eadbcdaf1b5d946f90600090a250565b6002546001600160a01b03163314610b0c576040516305189e0d60e21b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0383169081179091556040517f1f95fb40be3a947982072902a887b521248d1d8931a39eb38f84f4d6fd758b6990600090a250565b6002546001600160a01b03163314801590610b7c57506001546001600160a01b03163314155b15610b9a57604051631f308a2560e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610be1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c059190611369565b9050836001600160a01b0316637c2628716040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610c47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c6b9190611369565b506040516370a0823160e01b815230600482015260009082906001600160a01b038616906370a0823190602401602060405180830381865afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd99190611369565b610ce39190611421565b90508015610d605760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905285169063a9059cbb906044016020604051808303816000875af1158015610d3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5e9190611434565b505b5050505050565b6002546001600160a01b03163314610d92576040516305189e0d60e21b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f165ea44172651427010df987e6fd454678cc3c3f3e7331ab563c596bc8e787f691a250565b6040516001600160a01b038316602482015260448101829052610e3d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610f5c565b505050565b801580610ebc5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610e96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eba9190611369565b155b610f2c5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084015b60405180910390fd5b6040516001600160a01b038316602482015260448101829052610e3d90849063095ea7b360e01b90606401610e06565b6000610fb1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110319092919063ffffffff16565b9050805160001480610fd2575080806020019051810190610fd29190611434565b610e3d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610f23565b60606110408484600085611048565b949350505050565b6060824710156110a95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610f23565b600080866001600160a01b031685876040516110c59190611456565b60006040518083038185875af1925050503d8060008114611102576040519150601f19603f3d011682016040523d82523d6000602084013e611107565b606091505b509150915061111887838387611123565b979650505050505050565b6060831561119257825160000361118b576001600160a01b0385163b61118b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610f23565b5081611040565b61104083838151156111a75781518083602001fd5b8060405162461bcd60e51b8152600401610f239190611211565b60005b838110156111dc5781810151838201526020016111c4565b50506000910152565b600081518084526111fd8160208601602086016111c1565b601f01601f19169290920160200192915050565b60208152600061122460208301846111e5565b9392505050565b80356001600160a01b038116811461124257600080fd5b919050565b60006020828403121561125957600080fd5b6112248261122b565b6000806040838503121561127557600080fd5b50508035926020909101359150565b6000806000806060858703121561129a57600080fd5b6112a38561122b565b935060208501359250604085013567ffffffffffffffff808211156112c757600080fd5b818701915087601f8301126112db57600080fd5b8135818111156112ea57600080fd5b8860208285010111156112fc57600080fd5b95989497505060200194505050565b821515815260406020820152600061104060408301846111e5565b60008060006060848603121561133b57600080fd5b6113448461122b565b92506113526020850161122b565b91506113606040850161122b565b90509250925092565b60006020828403121561137b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000826113b557634e487b7160e01b600052601260045260246000fd5b500490565b80820281158282048414176113d1576113d1611382565b92915050565b600080604083850312156113ea57600080fd5b82516001600160801b038116811461140157600080fd5b6020939093015192949293505050565b8183823760009101908152919050565b818103818111156113d1576113d1611382565b60006020828403121561144657600080fd5b8151801515811461122457600080fd5b600082516114688184602087016111c1565b919091019291505056fea26469706673582212202d0ccf08ce2f7a40ad8a8f05bef689c888bb4731bd76570004d0c0090c25643464736f6c63430008130033

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

000000000000000000000000000755fbe4a24d7478bfcfc1e561afce82d1ff62000000000000000000000000fc00000000000000000000000000000000000002000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a000000000000000000000000b0552b6860ce5c0202976db056b5e3cc4f9cc765

-----Decoded View---------------
Arg [0] : _governance (address): 0x000755Fbe4A24d7478bfcFC1E561AfCE82d1ff62
Arg [1] : _token (address): 0xFc00000000000000000000000000000000000002
Arg [2] : _veToken (address): 0x007FD070a7E1B0fA1364044a373Ac1339bAD89CF
Arg [3] : _delegationRegistry (address): 0xF5cA906f05cafa944c27c6881bed3DFd3a785b6A
Arg [4] : _initialDelegate (address): 0xB0552b6860CE5C0202976Db056b5e3Cc4f9CC765

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000000755fbe4a24d7478bfcfc1e561afce82d1ff62
Arg [1] : 000000000000000000000000fc00000000000000000000000000000000000002
Arg [2] : 000000000000000000000000007fd070a7e1b0fa1364044a373ac1339bad89cf
Arg [3] : 000000000000000000000000f5ca906f05cafa944c27c6881bed3dfd3a785b6a
Arg [4] : 000000000000000000000000b0552b6860ce5c0202976db056b5e3cc4f9cc765


Deployed Bytecode Sourcemap

30784:4453:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23449:26;;;;;;;;;;-1:-1:-1;23449:26:0;;;;-1:-1:-1;;;;;23449:26:0;;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;23449:26:0;;;;;;;;32275:99;;;;;;;;;;-1:-1:-1;32347:19:0;;;;;;;;;;;-1:-1:-1;;;32347:19:0;;;;32275:99;;;;32347:19;32275:99;:::i;34165:315::-;;;;;;;;;;-1:-1:-1;34165:315:0;;;;;:::i;:::-;;:::i;:::-;;29491:169;;;;;;;;;;;;;:::i;23818:32::-;;;;;;;;;;;;;;;23537:25;;;;;;;;;;-1:-1:-1;23537:25:0;;;;-1:-1:-1;;;;;23537:25:0;;;33393:596;;;;;;;;;;-1:-1:-1;33393:596:0;;;;;:::i;:::-;;:::i;23631:31::-;;;;;;;;;;-1:-1:-1;23631:31:0;;;;-1:-1:-1;;;;;23631:31:0;;;32725:461;;;;;;;;;;-1:-1:-1;32725:461:0;;;;;:::i;:::-;;:::i;30302:303::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;23341:24::-;;;;;;;;;;-1:-1:-1;23341:24:0;;;;-1:-1:-1;;;;;23341:24:0;;;29910:140;;;;;;;;;;-1:-1:-1;29910:140:0;;;;;:::i;:::-;;:::i;29287:147::-;;;;;;;;;;-1:-1:-1;29287:147:0;;;;;:::i;:::-;;:::i;34744:490::-;;;;;;;;;;-1:-1:-1;34744:490:0;;;;;:::i;:::-;;:::i;29772:130::-;;;;;;;;;;-1:-1:-1;29772:130:0;;;;;:::i;:::-;;:::i;23723:30::-;;;;;;;;;;;;;;;34165:315;25840:10;;-1:-1:-1;;;;;25840:10:0;25826;:24;25822:49;;25859:12;;-1:-1:-1;;;25859:12:0;;;;;;;;;;;25822:49;34246:31:::1;::::0;-1:-1:-1;;;34246:31:0;;34275:1:::1;34246:31;::::0;::::1;3135:66:1::0;34257:7:0::1;-1:-1:-1::0;;;;;34246:28:0::1;::::0;::::1;::::0;3108:18:1;;34246:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;34327:38:0::1;::::0;-1:-1:-1;;;34327:38:0;;34359:4:::1;34327:38;::::0;::::1;160:51:1::0;34308:16:0::1;::::0;-1:-1:-1;34334:5:0::1;-1:-1:-1::0;;;;;34327:23:0::1;::::0;-1:-1:-1;34327:23:0::1;::::0;133:18:1;;34327:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;34308:57:::0;-1:-1:-1;34376:48:0::1;-1:-1:-1::0;;;;;34383:5:0::1;34376:26;34403:10:::0;34308:57;34376:26:::1;:48::i;:::-;34442:30;::::0;3547:25:1;;;34451:10:0::1;::::0;34442:30:::1;::::0;3535:2:1;3520:18;34442:30:0::1;;;;;;;34235:245;34165:315:::0;:::o;29491:169::-;29557:16;;-1:-1:-1;;;;;29557:16:0;29543:10;:30;29539:55;;29582:12;;-1:-1:-1;;;29582:12:0;;;;;;;;;;;29539:55;29628:10;:23;;-1:-1:-1;;;;;;29628:23:0;29641:10;29628:23;;;;;;29610:42;;;;29628:10;;29610:42;29491:169::o;33393:596::-;25965:10;;-1:-1:-1;;;;;25965:10:0;25951;:24;;;;:51;;-1:-1:-1;25993:9:0;;-1:-1:-1;;;;;25993:9:0;25979:10;:23;;25951:51;25947:89;;;26011:25;;-1:-1:-1;;;26011:25:0;;;;;;;;;;;25947:89;33511:11;;33507:107:::1;;33539:45;::::0;-1:-1:-1;;;33539:45:0;;::::1;::::0;::::1;3765:25:1::0;;;33582:1:0::1;3806:18:1::0;;;3799:75;33550:7:0::1;-1:-1:-1::0;;;;;33539:34:0::1;::::0;::::1;::::0;3738:18:1;;33539:45:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;33507:107;33630:16:::0;;33626:304:::1;;33720:47;::::0;-1:-1:-1;;;33720:47:0;;33758:4:::1;33720:47;::::0;::::1;4067:51:1::0;33663:17:0::1;4134:18:1::0;;;4127:75;;;33663:17:0;33731:7:::1;-1:-1:-1::0;;;;;33720:29:0::1;::::0;::::1;::::0;4040:18:1;;33720:47:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33684:21;33698:7;33684:11:::0;:21:::1;:::i;:::-;:31;::::0;33708:7:::1;33684:31;:::i;:::-;33683:85;33663:105;;33789:12;33785:134;;;33822:63;::::0;-1:-1:-1;;;33822:63:0;;-1:-1:-1;;;;;4993:15:1;;33822:63:0::1;::::0;::::1;4975:34:1::0;33883:1:0::1;5025:18:1::0;;;5018:43;33833:7:0::1;-1:-1:-1::0;;;;;33822:38:0::1;::::0;::::1;::::0;4895:18:1;;33822:63:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;33785:134;33648:282;33626:304;33947:34;::::0;;5246:25:1;;;5302:2;5287:18;;5280:34;;;33947::0::1;::::0;5219:18:1;33947:34:0::1;;;;;;;;33393:596:::0;;:::o;32725:461::-;25965:10;;-1:-1:-1;;;;;25965:10:0;25951;:24;;;;:51;;-1:-1:-1;25993:9:0;;-1:-1:-1;;;;;25993:9:0;25979:10;:23;;25951:51;25947:89;;;26011:25;;-1:-1:-1;;;26011:25:0;;;;;;;;;;;25947:89;32901:41:::1;::::0;-1:-1:-1;;;32901:41:0;;32936:4:::1;32901:41;::::0;::::1;160:51:1::0;32912:7:0::1;-1:-1:-1::0;;;;;32901:26:0::1;::::0;::::1;::::0;133:18:1;;32901:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46:::0;32897:79:::1;;32956:20;;-1:-1:-1::0;;;32956:20:0::1;;;;;;;;;;;32897:79;32989:53;-1:-1:-1::0;;;;;32996:5:0::1;32989:25;33015:7;-1:-1:-1::0;;32989:25:0::1;:53::i;:::-;33053:75;::::0;-1:-1:-1;;;33053:75:0;;33092:4:::1;33053:75;::::0;::::1;5527:51:1::0;5594:18;;;5587:34;;;-1:-1:-1;;;;;5657:47:1;;5637:18;;;5630:75;33064:7:0::1;-1:-1:-1::0;;;;;33053:30:0::1;::::0;::::1;::::0;5500:18:1;;33053:75:0::1;::::0;::::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;33146:32:0::1;::::0;;5246:25:1;;;5302:2;5287:18;;5280:34;;;33146:32:0::1;::::0;5219:18:1;33146:32:0::1;5072:248:1::0;30302:303:0;25840:10;;30461:4;;30467:12;;-1:-1:-1;;;;;25840:10:0;25826;:24;25822:49;;25859:12;;-1:-1:-1;;;25859:12:0;;;;;;;;;;;25822:49;30498:12:::1;30512:19:::0;30535:2:::1;-1:-1:-1::0;;;;;30535:7:0::1;30550:5;30557:4;;30535:27;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;30497:65:0;;;;-1:-1:-1;30302:303:0;-1:-1:-1;;;;;;;30302:303:0:o;29910:140::-;25840:10;;-1:-1:-1;;;;;25840:10:0;25826;:24;25822:49;;25859:12;;-1:-1:-1;;;25859:12:0;;;;;;;;;;;25822:49;30015:11:::1;:26:::0;;-1:-1:-1;;;;;;30015:26:0::1;-1:-1:-1::0;;;;;30015:26:0;::::1;::::0;;::::1;::::0;;;29996:46:::1;::::0;::::1;::::0;-1:-1:-1;;29996:46:0::1;29910:140:::0;:::o;29287:147::-;25840:10;;-1:-1:-1;;;;;25840:10:0;25826;:24;25822:49;;25859:12;;-1:-1:-1;;;25859:12:0;;;;;;;;;;;25822:49;29395:16:::1;:30:::0;;-1:-1:-1;;;;;;29395:30:0::1;-1:-1:-1::0;;;;;29395:30:0;::::1;::::0;;::::1;::::0;;;29376:50:::1;::::0;::::1;::::0;-1:-1:-1;;29376:50:0::1;29287:147:::0;:::o;34744:490::-;26132:10;;-1:-1:-1;;;;;26132:10:0;26118;:24;;;;:53;;-1:-1:-1;26160:11:0;;-1:-1:-1;;;;;26160:11:0;26146:10;:25;;26118:53;26114:93;;;26180:27;;-1:-1:-1;;;26180:27:0;;;;;;;;;;;26114:93;34944:39:::1;::::0;-1:-1:-1;;;34944:39:0;;34977:4:::1;34944:39;::::0;::::1;160:51:1::0;34918:23:0::1;::::0;-1:-1:-1;;;;;34944:24:0;::::1;::::0;::::1;::::0;133:18:1;;34944:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;34918:65;;35014:17;-1:-1:-1::0;;;;;34996:45:0::1;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;35072:39:0::1;::::0;-1:-1:-1;;;35072:39:0;;35105:4:::1;35072:39;::::0;::::1;160:51:1::0;35056:13:0::1;::::0;35114:15;;-1:-1:-1;;;;;35072:24:0;::::1;::::0;::::1;::::0;133:18:1;;35072:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:57;;;;:::i;:::-;35056:73:::0;-1:-1:-1;35146:10:0;;35142:85:::1;;35173:42;::::0;-1:-1:-1;;;35173:42:0;;-1:-1:-1;;;;;6688:32:1;;;35173:42:0::1;::::0;::::1;6670:51:1::0;6737:18;;;6730:34;;;35173:23:0;::::1;::::0;::::1;::::0;6643:18:1;;35173:42:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35142:85;34907:327;;34744:490:::0;;;:::o;29772:130::-;25840:10;;-1:-1:-1;;;;;25840:10:0;25826;:24;25822:49;;25859:12;;-1:-1:-1;;;25859:12:0;;;;;;;;;;;25822:49;29871:9:::1;:22:::0;;-1:-1:-1;;;;;;29871:22:0::1;-1:-1:-1::0;;;;;29871:22:0;::::1;::::0;;::::1;::::0;;29854:40:::1;::::0;29871:22;;29854:40:::1;::::0;::::1;29772:130:::0;:::o;16896:177::-;17006:58;;-1:-1:-1;;;;;6688:32:1;;17006:58:0;;;6670:51:1;6737:18;;;6730:34;;;16979:86:0;;16999:5;;-1:-1:-1;;;17029:23:0;6643:18:1;;17006:58:0;;;;-1:-1:-1;;17006:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;17006:58:0;-1:-1:-1;;;;;;17006:58:0;;;;;;;;;;16979:19;:86::i;:::-;16896:177;;;:::o;17792:582::-;18122:10;;;18121:62;;-1:-1:-1;18138:39:0;;-1:-1:-1;;;18138:39:0;;18162:4;18138:39;;;7269:34:1;-1:-1:-1;;;;;7339:15:1;;;7319:18;;;7312:43;18138:15:0;;;;;7204:18:1;;18138:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;18121:62;18099:166;;;;-1:-1:-1;;;18099:166:0;;7568:2:1;18099:166:0;;;7550:21:1;7607:2;7587:18;;;7580:30;7646:34;7626:18;;;7619:62;-1:-1:-1;;;7697:18:1;;;7690:52;7759:19;;18099:166:0;;;;;;;;;18303:62;;-1:-1:-1;;;;;6688:32:1;;18303:62:0;;;6670:51:1;6737:18;;;6730:34;;;18276:90:0;;18296:5;;-1:-1:-1;;;18326:22:0;6643:18:1;;18303:62:0;6496:274:1;21219:649:0;21643:23;21669:69;21697:4;21669:69;;;;;;;;;;;;;;;;;21677:5;-1:-1:-1;;;;;21669:27:0;;;:69;;;;;:::i;:::-;21643:95;;21757:10;:17;21778:1;21757:22;:56;;;;21794:10;21783:30;;;;;;;;;;;;:::i;:::-;21749:111;;;;-1:-1:-1;;;21749:111:0;;7991:2:1;21749:111:0;;;7973:21:1;8030:2;8010:18;;;8003:30;8069:34;8049:18;;;8042:62;-1:-1:-1;;;8120:18:1;;;8113:40;8170:19;;21749:111:0;7789:406:1;8996:229:0;9133:12;9165:52;9187:6;9195:4;9201:1;9204:12;9165:21;:52::i;:::-;9158:59;8996:229;-1:-1:-1;;;;8996:229:0:o;10082:455::-;10252:12;10310:5;10285:21;:30;;10277:81;;;;-1:-1:-1;;;10277:81:0;;8402:2:1;10277:81:0;;;8384:21:1;8441:2;8421:18;;;8414:30;8480:34;8460:18;;;8453:62;-1:-1:-1;;;8531:18:1;;;8524:36;8577:19;;10277:81:0;8200:402:1;10277:81:0;10370:12;10384:23;10411:6;-1:-1:-1;;;;;10411:11:0;10430:5;10437:4;10411:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10369:73;;;;10460:69;10487:6;10495:7;10504:10;10516:12;10460:26;:69::i;:::-;10453:76;10082:455;-1:-1:-1;;;;;;;10082:455:0:o;12655:644::-;12840:12;12869:7;12865:427;;;12897:10;:17;12918:1;12897:22;12893:290;;-1:-1:-1;;;;;6536:19:0;;;13107:60;;;;-1:-1:-1;;;13107:60:0;;9101:2:1;13107:60:0;;;9083:21:1;9140:2;9120:18;;;9113:30;9179:31;9159:18;;;9152:59;9228:18;;13107:60:0;8899:353:1;13107:60:0;-1:-1:-1;13204:10:0;13197:17;;12865:427;13247:33;13255:10;13267:12;14002:17;;:21;13998:388;;14234:10;14228:17;14291:15;14278:10;14274:2;14270:19;14263:44;13998:388;14361:12;14354:20;;-1:-1:-1;;;14354:20:0;;;;;;;;:::i;222:250:1:-;307:1;317:113;331:6;328:1;325:13;317:113;;;407:11;;;401:18;388:11;;;381:39;353:2;346:10;317:113;;;-1:-1:-1;;464:1:1;446:16;;439:27;222:250::o;477:271::-;519:3;557:5;551:12;584:6;579:3;572:19;600:76;669:6;662:4;657:3;653:14;646:4;639:5;635:16;600:76;:::i;:::-;730:2;709:15;-1:-1:-1;;705:29:1;696:39;;;;737:4;692:50;;477:271;-1:-1:-1;;477:271:1:o;753:220::-;902:2;891:9;884:21;865:4;922:45;963:2;952:9;948:18;940:6;922:45;:::i;:::-;914:53;753:220;-1:-1:-1;;;753:220:1:o;978:173::-;1046:20;;-1:-1:-1;;;;;1095:31:1;;1085:42;;1075:70;;1141:1;1138;1131:12;1075:70;978:173;;;:::o;1156:186::-;1215:6;1268:2;1256:9;1247:7;1243:23;1239:32;1236:52;;;1284:1;1281;1274:12;1236:52;1307:29;1326:9;1307:29;:::i;1347:248::-;1415:6;1423;1476:2;1464:9;1455:7;1451:23;1447:32;1444:52;;;1492:1;1489;1482:12;1444:52;-1:-1:-1;;1515:23:1;;;1585:2;1570:18;;;1557:32;;-1:-1:-1;1347:248:1:o;1600:733::-;1688:6;1696;1704;1712;1765:2;1753:9;1744:7;1740:23;1736:32;1733:52;;;1781:1;1778;1771:12;1733:52;1804:29;1823:9;1804:29;:::i;:::-;1794:39;;1880:2;1869:9;1865:18;1852:32;1842:42;;1935:2;1924:9;1920:18;1907:32;1958:18;1999:2;1991:6;1988:14;1985:34;;;2015:1;2012;2005:12;1985:34;2053:6;2042:9;2038:22;2028:32;;2098:7;2091:4;2087:2;2083:13;2079:27;2069:55;;2120:1;2117;2110:12;2069:55;2160:2;2147:16;2186:2;2178:6;2175:14;2172:34;;;2202:1;2199;2192:12;2172:34;2247:7;2242:2;2233:6;2229:2;2225:15;2221:24;2218:37;2215:57;;;2268:1;2265;2258:12;2215:57;1600:733;;;;-1:-1:-1;;2299:2:1;2291:11;;-1:-1:-1;;;1600:733:1:o;2338:299::-;2521:6;2514:14;2507:22;2496:9;2489:41;2566:2;2561;2550:9;2546:18;2539:30;2470:4;2586:45;2627:2;2616:9;2612:18;2604:6;2586:45;:::i;2642:334::-;2719:6;2727;2735;2788:2;2776:9;2767:7;2763:23;2759:32;2756:52;;;2804:1;2801;2794:12;2756:52;2827:29;2846:9;2827:29;:::i;:::-;2817:39;;2875:38;2909:2;2898:9;2894:18;2875:38;:::i;:::-;2865:48;;2932:38;2966:2;2955:9;2951:18;2932:38;:::i;:::-;2922:48;;2642:334;;;;;:::o;3212:184::-;3282:6;3335:2;3323:9;3314:7;3310:23;3306:32;3303:52;;;3351:1;3348;3341:12;3303:52;-1:-1:-1;3374:16:1;;3212:184;-1:-1:-1;3212:184:1:o;4213:127::-;4274:10;4269:3;4265:20;4262:1;4255:31;4305:4;4302:1;4295:15;4329:4;4326:1;4319:15;4345:217;4385:1;4411;4401:132;;4455:10;4450:3;4446:20;4443:1;4436:31;4490:4;4487:1;4480:15;4518:4;4515:1;4508:15;4401:132;-1:-1:-1;4547:9:1;;4345:217::o;4567:168::-;4640:9;;;4671;;4688:15;;;4682:22;;4668:37;4658:71;;4709:18;;:::i;:::-;4567:168;;;;:::o;5716:366::-;5795:6;5803;5856:2;5844:9;5835:7;5831:23;5827:32;5824:52;;;5872:1;5869;5862:12;5824:52;5904:9;5898:16;-1:-1:-1;;;;;5947:5:1;5943:46;5936:5;5933:57;5923:85;;6004:1;6001;5994:12;5923:85;6072:2;6057:18;;;;6051:25;6027:5;;6051:25;;-1:-1:-1;;;5716:366:1:o;6087:271::-;6270:6;6262;6257:3;6244:33;6226:3;6296:16;;6321:13;;;6296:16;6087:271;-1:-1:-1;6087:271:1:o;6363:128::-;6430:9;;;6451:11;;;6448:37;;;6465:18;;:::i;6775:277::-;6842:6;6895:2;6883:9;6874:7;6870:23;6866:32;6863:52;;;6911:1;6908;6901:12;6863:52;6943:9;6937:16;6996:5;6989:13;6982:21;6975:5;6972:32;6962:60;;7018:1;7015;7008:12;8607:287;8736:3;8774:6;8768:13;8790:66;8849:6;8844:3;8837:4;8829:6;8825:17;8790:66;:::i;:::-;8872:16;;;;;8607:287;-1:-1:-1;;8607:287:1:o

Swarm Source

ipfs://2d0ccf08ce2f7a40ad8a8f05bef689c888bb4731bd76570004d0c0090c256434

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.