ETH Price: $3,189.15 (+3.77%)

Contract

0x9327e2FDc57c7d70782F29AB46F6385afaf4503C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate All212159082024-11-18 16:50:353 hrs ago1731948635IN
0x9327e2FD...afaf4503C
0 ETH0.0231628525.09762627
Migrate All212156542024-11-18 15:59:354 hrs ago1731945575IN
0x9327e2FD...afaf4503C
0 ETH0.0144671518.21034453
Migrate All211602522024-11-10 22:26:597 days ago1731277619IN
0x9327e2FD...afaf4503C
0 ETH0.0157129717.87990965
Migrate All211263752024-11-06 4:58:4712 days ago1730869127IN
0x9327e2FD...afaf4503C
0 ETH0.0207326423.81817357
Migrate All211160122024-11-04 18:15:3514 days ago1730744135IN
0x9327e2FD...afaf4503C
0 ETH0.004522416.15738089
Migrate All211069122024-11-03 11:47:2315 days ago1730634443IN
0x9327e2FD...afaf4503C
0 ETH0.00350124.48877418
Migrate All210831192024-10-31 4:05:4718 days ago1730347547IN
0x9327e2FD...afaf4503C
0 ETH0.006515538.43098547
Migrate All210826762024-10-31 2:36:3518 days ago1730342195IN
0x9327e2FD...afaf4503C
0 ETH0.002372778.98661603
Migrate All210252292024-10-23 2:15:2326 days ago1729649723IN
0x9327e2FD...afaf4503C
0 ETH0.006350418.59366726
Migrate All210240312024-10-22 22:14:1126 days ago1729635251IN
0x9327e2FD...afaf4503C
0 ETH0.006129297.47833869
Migrate All210090002024-10-20 19:52:2329 days ago1729453943IN
0x9327e2FD...afaf4503C
0 ETH0.0087702510.02637839
Migrate All208663992024-09-30 22:15:5948 days ago1727734559IN
0x9327e2FD...afaf4503C
0 ETH0.008928210.15947429
Migrate All207876142024-09-19 22:25:4759 days ago1726784747IN
0x9327e2FD...afaf4503C
0 ETH0.006759138.52317121
Migrate All207790912024-09-18 17:52:2361 days ago1726681943IN
0x9327e2FD...afaf4503C
0 ETH0.0057436.5668625
Migrate All207600672024-09-16 2:00:5963 days ago1726452059IN
0x9327e2FD...afaf4503C
0 ETH0.000483712.10044819
Migrate All207085132024-09-08 21:15:4770 days ago1725830147IN
0x9327e2FD...afaf4503C
0 ETH0.001189011.30192625
Migrate All207020822024-09-07 23:41:4771 days ago1725752507IN
0x9327e2FD...afaf4503C
0 ETH0.001384991.58367353
Migrate All206964032024-09-07 4:42:5972 days ago1725684179IN
0x9327e2FD...afaf4503C
0 ETH0.001430181.63535481
Migrate All206566912024-09-01 15:43:2378 days ago1725205403IN
0x9327e2FD...afaf4503C
0 ETH0.000414171.5754928
Migrate All206566122024-09-01 15:27:3578 days ago1725204455IN
0x9327e2FD...afaf4503C
0 ETH0.001219821.63681006
Migrate All206484832024-08-31 12:13:5979 days ago1725106439IN
0x9327e2FD...afaf4503C
0 ETH0.000771010.76627924
Migrate All206465342024-08-31 5:42:3579 days ago1725082955IN
0x9327e2FD...afaf4503C
0 ETH0.000709480.708305
Migrate All206209522024-08-27 15:55:1183 days ago1724774111IN
0x9327e2FD...afaf4503C
0 ETH0.002515933.08573708
Migrate All206201642024-08-27 13:16:5983 days ago1724764619IN
0x9327e2FD...afaf4503C
0 ETH0.002115362.41882389
Migrate All205674512024-08-20 4:28:2390 days ago1724128103IN
0x9327e2FD...afaf4503C
0 ETH0.001733361.97241345
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SimpleVaultMigrator

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license
File 1 of 5 : SimpleVaultMigrator.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity ^0.8.15;

import "SafeERC20.sol";

interface IVaultAPI is IERC20 {
    function deposit(uint256 _amount, address recipient)
        external
        returns (uint256 shares);

    function withdraw(uint256 _shares) external;

    function token() external view returns (address);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        bytes calldata signature
    ) external returns (bool);
}

interface IRegistry {
    function latestVault(address token) external view returns (address);
}

/// @title Yearn Simple Vault Migrator
/// @author yearn
/// @notice This contract is used to migrate from an older to a newer version of a yearn vault.
/// @dev Contract can only migrate to the newest version of a vault for a token. Migration
///  must be between vaults that have the same underlying token. Gasless approval via permit()
///  is an option for all v2 yearn vault API versions except 0.4.4.

contract SimpleVaultMigrator {
    using SafeERC20 for IERC20;
    using SafeERC20 for IVaultAPI;

    /* ========== STATE VARIABLES ========== */

    /// @notice Governance can update the registry and sweep stuck tokens.
    address public governance;

    /// @notice New address must be set by current gov and then accepted to transfer power.
    address public pendingGovernance;

    /// @notice Vault registry to pull info about yearn vaults. This will vary based on network.
    address public registry;

    /* ========== CONSTRUCTOR ========== */

    constructor(address _governance, address _registry) {
        require(_governance != address(0), "Governance cannot be 0");
        require(_registry != address(0), "Registry cannot be 0");
        governance = _governance;

        registry = _registry;
    }

    /* ========== EVENTS ========== */
    event NewGovernance(address indexed governance);

    event NewRegistry(address indexed registry);

    event SuccessfulMigration(
        address indexed user,
        address indexed vaultFrom,
        address indexed vaultTo,
        uint256 migratedAmount
    );

    /* ========== MODIFIERS ========== */
    modifier onlyGovernance {
        require(msg.sender == governance, "Sender must be governance");
        _;
    }

    modifier onlyPendingGovernance {
        require(
            msg.sender == pendingGovernance,
            "Sender must be pending governance"
        );
        _;
    }

    modifier checkVaults(address vaultFrom, address vaultTo) {
        require(
            IVaultAPI(vaultFrom).token() == IVaultAPI(vaultTo).token(),
            "Vaults must have the same token"
        );
        require(
            IRegistry(registry).latestVault(IVaultAPI(vaultFrom).token()) ==
                vaultTo,
            "Target vault should be the latest for token"
        );
        _;
    }

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

    /**
     * @notice Migrate all of our vault shares to the newest vault version.
     * @dev Throws if the vaults do not have the same want, or if our
     *  target is not the newest version
     * @param vaultFrom The old vault we are migrating from.
     * @param vaultTo The new vault we are migrating to.
     */
    function migrateAll(address vaultFrom, address vaultTo) external {
        uint256 shares = IVaultAPI(vaultFrom).balanceOf(msg.sender);

        _migrate(vaultFrom, vaultTo, shares);
    }

    /**
     * @notice Migrate a specific amount of our vault shares to the newest vault version.
     * @dev Throws if the vaults do not have the same want, or if our
     *  target is not the newest version
     * @param vaultFrom The old vault we are migrating from.
     * @param vaultTo The new vault we are migrating to.
     * @param shares The number of shares to migrate.
     */
    function migrateShares(
        address vaultFrom,
        address vaultTo,
        uint256 shares
    ) external {
        _migrate(vaultFrom, vaultTo, shares);
    }

    function _migrate(
        address vaultFrom,
        address vaultTo,
        uint256 shares
    ) internal checkVaults(vaultFrom, vaultTo) {
        // Transfer in vaultFrom shares
        IVaultAPI vf = IVaultAPI(vaultFrom);

        uint256 preBalanceVaultFrom = vf.balanceOf(address(this));

        vf.safeTransferFrom(msg.sender, address(this), shares);

        uint256 balanceVaultFrom =
            vf.balanceOf(address(this)) - preBalanceVaultFrom;

        // Withdraw token from vaultFrom
        IERC20 token = IERC20(vf.token());

        uint256 preBalanceToken = token.balanceOf(address(this));

        vf.withdraw(balanceVaultFrom);

        uint256 balanceToken = token.balanceOf(address(this)) - preBalanceToken;

        // Deposit new vault
        token.safeIncreaseAllowance(vaultTo, balanceToken);

        IVaultAPI(vaultTo).deposit(balanceToken, msg.sender);
        emit SuccessfulMigration(msg.sender, vaultFrom, vaultTo, shares);
    }

    /**
     * @notice Migrate all of our vault shares to the newest
     *  vault version using the permit function for gasless approvals.
     * @dev Throws if the vaults do not have the same want, or if our
     *  target is not the newest version. Cannot be used with 0.4.4 vaults.
     * @param vaultFrom The old vault we are migrating from.
     * @param vaultTo The new vault we are migrating to.
     * @param deadline The deadline for our permit call.
     * @param signature The signature for our permit call.
     */
    function migrateAllWithPermit(
        address vaultFrom,
        address vaultTo,
        uint256 deadline,
        bytes calldata signature
    ) external {
        uint256 shares = IVaultAPI(vaultFrom).balanceOf(msg.sender);

        _permit(vaultFrom, shares, deadline, signature);
        _migrate(vaultFrom, vaultTo, shares);
    }

    /**
     * @notice Migrate a specific amount of our vault shares to the newest
     *  vault version using the permit function for gasless approvals.
     * @dev Throws if the vaults do not have the same want, or if our
     *  target is not the newest version. Cannot be used with 0.4.4 vaults.
     * @param vaultFrom The old vault we are migrating from.
     * @param vaultTo The new vault we are migrating to.
     * @param shares The number of shares to migrate.
     * @param deadline The deadline for our permit call.
     * @param signature The signature for our permit call.
     */
    function migrateSharesWithPermit(
        address vaultFrom,
        address vaultTo,
        uint256 shares,
        uint256 deadline,
        bytes calldata signature
    ) external {
        _permit(vaultFrom, shares, deadline, signature);
        _migrate(vaultFrom, vaultTo, shares);
    }

    function _permit(
        address vault,
        uint256 value,
        uint256 deadline,
        bytes calldata signature
    ) internal {
        require(
            IVaultAPI(vault).permit(
                msg.sender,
                address(this),
                value,
                deadline,
                signature
            ),
            "Unable to permit on vault"
        );
    }

    /**
     * @notice Sweep out any tokens accidentally sent to this address.
     * @dev Throws if the caller is not current governance.
     * @param _token The token address to sweep out.
     */
    function sweep(address _token) external onlyGovernance {
        IERC20(_token).safeTransfer(
            governance,
            IERC20(_token).balanceOf(address(this))
        );
    }

    /* ========== SETTERS ========== */

    /**
     * @notice Starts the 1st phase of the governance transfer.
     * @dev Throws if the caller is not current governance.
     * @param _pendingGovernance The next governance address.
     */
    function setPendingGovernance(address _pendingGovernance)
        external
        onlyGovernance
    {
        pendingGovernance = _pendingGovernance;
    }

    /**
     * @notice Completes the 2nd phase of the governance transfer.
     * @dev Throws if the caller is not the pending caller.
     *  Emits a NewGovernance event.
     */
    function acceptGovernance() external onlyPendingGovernance {
        governance = msg.sender;
        pendingGovernance = address(0);
        emit NewGovernance(msg.sender);
    }

    /**
     * @notice Sets the address used for our registry.
     * @dev Throws if the caller is not current governance or if using 0 as address.
     * @param _registry The network's vault registry address.
     */
    function setRegistry(address _registry) external onlyGovernance {
        require(_registry != address(0), "Registry cannot be 0");
        registry = _registry;
        emit NewRegistry(_registry);
    }
}

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

pragma solidity ^0.8.0;

import "IERC20.sol";
import "draft-IERC20Permit.sol";
import "Address.sol";

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

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

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

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

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

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

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 3 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

File 4 of 5 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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.
 */
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);
}

File 5 of 5 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_governance","type":"address"},{"internalType":"address","name":"_registry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"governance","type":"address"}],"name":"NewGovernance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"registry","type":"address"}],"name":"NewRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"vaultFrom","type":"address"},{"indexed":true,"internalType":"address","name":"vaultTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"migratedAmount","type":"uint256"}],"name":"SuccessfulMigration","type":"event"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vaultFrom","type":"address"},{"internalType":"address","name":"vaultTo","type":"address"}],"name":"migrateAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vaultFrom","type":"address"},{"internalType":"address","name":"vaultTo","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"migrateAllWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vaultFrom","type":"address"},{"internalType":"address","name":"vaultTo","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"migrateShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vaultFrom","type":"address"},{"internalType":"address","name":"vaultTo","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"migrateSharesWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingGovernance","type":"address"}],"name":"setPendingGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_registry","type":"address"}],"name":"setRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620014f7380380620014f7833981016040819052620000349162000137565b6001600160a01b038216620000905760405162461bcd60e51b815260206004820152601660248201527f476f7665726e616e63652063616e6e6f7420626520300000000000000000000060448201526064015b60405180910390fd5b6001600160a01b038116620000e85760405162461bcd60e51b815260206004820152601460248201527f52656769737472792063616e6e6f742062652030000000000000000000000000604482015260640162000087565b600080546001600160a01b039384166001600160a01b031991821617909155600280549290931691161790556200016f565b80516001600160a01b03811681146200013257600080fd5b919050565b600080604083850312156200014b57600080fd5b62000156836200011a565b915062000166602084016200011a565b90509250929050565b611378806200017f6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806376dd04871161007157806376dd0487146101205780637b10399914610133578063a91ee0dc14610146578063d01b1f9d14610159578063f39c38a01461016c578063f64db0501461017f57600080fd5b806301681a62146100ae5780630abb6035146100c3578063238efcbc146100d65780634cc571f3146100de5780635aa6e675146100f1575b600080fd5b6100c16100bc366004610fd3565b610192565b005b6100c16100d1366004610fd3565b61024d565b6100c1610299565b6100c16100ec366004610ff0565b610346565b600054610104906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100c161012e36600461107a565b610356565b600254610104906001600160a01b031681565b6100c1610154366004610fd3565b610376565b6100c16101673660046110f6565b610437565b600154610104906001600160a01b031681565b6100c161018d366004611169565b6104bc565b6000546001600160a01b031633146101c55760405162461bcd60e51b81526004016101bc906111a2565b60405180910390fd5b6000546040516370a0823160e01b815230600482015261024a916001600160a01b0390811691908416906370a0823190602401602060405180830381865afa158015610215573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023991906111d9565b6001600160a01b0384169190610534565b50565b6000546001600160a01b031633146102775760405162461bcd60e51b81526004016101bc906111a2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146102fd5760405162461bcd60e51b815260206004820152602160248201527f53656e646572206d7573742062652070656e64696e6720676f7665726e616e636044820152606560f81b60648201526084016101bc565b60008054336001600160a01b0319918216811783556001805490921690915560405190917f4f386975ea1c2f7cf1845b08bee00626fbb624ecad16254d63d9bb9ba86526de91a2565b610351838383610597565b505050565b6103638685858585610bad565b61036e868686610597565b505050505050565b6000546001600160a01b031633146103a05760405162461bcd60e51b81526004016101bc906111a2565b6001600160a01b0381166103ed5760405162461bcd60e51b8152602060048201526014602482015273052656769737472792063616e6e6f7420626520360641b60448201526064016101bc565b600280546001600160a01b0319166001600160a01b0383169081179091556040517f777c8cc4da61f5d244f5f33737022a66151d457640744b5c2e2719d76c1b540f90600090a250565b6040516370a0823160e01b81523360048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa15801561047e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a291906111d9565b90506104b18682868686610bad565b61036e868683610597565b6040516370a0823160e01b81523360048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610503573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052791906111d9565b9050610351838383610597565b6040516001600160a01b03831660248201526044810182905261035190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610c79565b8282806001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb91906111f2565b6001600160a01b0316826001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066691906111f2565b6001600160a01b0316146106bc5760405162461bcd60e51b815260206004820152601f60248201527f5661756c7473206d7573742068617665207468652073616d6520746f6b656e0060448201526064016101bc565b806001600160a01b0316600260009054906101000a90046001600160a01b03166001600160a01b031663e177dc70846001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c91906111f2565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b491906111f2565b6001600160a01b03161461081e5760405162461bcd60e51b815260206004820152602b60248201527f546172676574207661756c742073686f756c6420626520746865206c6174657360448201526a3a103337b9103a37b5b2b760a91b60648201526084016101bc565b6040516370a0823160e01b815230600482015285906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610867573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088b91906111d9565b90506108a26001600160a01b038316333088610d4b565b6040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f91906111d9565b6109199190611225565b90506000836001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561095b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097f91906111f2565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ed91906111d9565b604051632e1a7d4d60e01b8152600481018590529091506001600160a01b03861690632e1a7d4d90602401600060405180830381600087803b158015610a3257600080fd5b505af1158015610a46573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092508391506001600160a01b038516906370a0823190602401602060405180830381865afa158015610a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab791906111d9565b610ac19190611225565b9050610ad76001600160a01b0384168b83610d89565b604051636e553f6560e01b8152600481018290523360248201526001600160a01b038b1690636e553f65906044016020604051808303816000875af1158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4891906111d9565b50896001600160a01b03168b6001600160a01b0316336001600160a01b03167fdcbc25361623955008b745ecf659b5382332eb120b842cc327044c55a2aefb198c604051610b9891815260200190565b60405180910390a45050505050505050505050565b604051639fd5a6cf60e01b81526001600160a01b03861690639fd5a6cf90610be39033903090899089908990899060040161123e565b6020604051808303816000875af1158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c26919061129a565b610c725760405162461bcd60e51b815260206004820152601960248201527f556e61626c6520746f207065726d6974206f6e207661756c740000000000000060448201526064016101bc565b5050505050565b6000610cce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e3b9092919063ffffffff16565b8051909150156103515780806020019051810190610cec919061129a565b6103515760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101bc565b6040516001600160a01b0380851660248301528316604482015260648101829052610d839085906323b872dd60e01b90608401610560565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe91906111d9565b610e0891906112bc565b6040516001600160a01b038516602482015260448101829052909150610d8390859063095ea7b360e01b90606401610560565b6060610e4a8484600085610e54565b90505b9392505050565b606082471015610eb55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101bc565b6001600160a01b0385163b610f0c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101bc565b600080866001600160a01b03168587604051610f2891906112f3565b60006040518083038185875af1925050503d8060008114610f65576040519150601f19603f3d011682016040523d82523d6000602084013e610f6a565b606091505b5091509150610f7a828286610f85565b979650505050505050565b60608315610f94575081610e4d565b825115610fa45782518084602001fd5b8160405162461bcd60e51b81526004016101bc919061130f565b6001600160a01b038116811461024a57600080fd5b600060208284031215610fe557600080fd5b8135610e4d81610fbe565b60008060006060848603121561100557600080fd5b833561101081610fbe565b9250602084013561102081610fbe565b929592945050506040919091013590565b60008083601f84011261104357600080fd5b50813567ffffffffffffffff81111561105b57600080fd5b60208301915083602082850101111561107357600080fd5b9250929050565b60008060008060008060a0878903121561109357600080fd5b863561109e81610fbe565b955060208701356110ae81610fbe565b94506040870135935060608701359250608087013567ffffffffffffffff8111156110d857600080fd5b6110e489828a01611031565b979a9699509497509295939492505050565b60008060008060006080868803121561110e57600080fd5b853561111981610fbe565b9450602086013561112981610fbe565b935060408601359250606086013567ffffffffffffffff81111561114c57600080fd5b61115888828901611031565b969995985093965092949392505050565b6000806040838503121561117c57600080fd5b823561118781610fbe565b9150602083013561119781610fbe565b809150509250929050565b60208082526019908201527f53656e646572206d75737420626520676f7665726e616e636500000000000000604082015260600190565b6000602082840312156111eb57600080fd5b5051919050565b60006020828403121561120457600080fd5b8151610e4d81610fbe565b634e487b7160e01b600052601160045260246000fd5b818103818111156112385761123861120f565b92915050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b6000602082840312156112ac57600080fd5b81518015158114610e4d57600080fd5b808201808211156112385761123861120f565b60005b838110156112ea5781810151838201526020016112d2565b50506000910152565b600082516113058184602087016112cf565b9190910192915050565b602081526000825180602084015261132e8160408501602087016112cf565b601f01601f1916919091016040019291505056fea2646970667358221220264a2c4684bf2bb9a694a78678cdc845841678e53a07e0426a5b7582fcde47d064736f6c63430008110033000000000000000000000000feb4acf3df3cdea7399794d0869ef76a6efaff52000000000000000000000000af1f5e1c19cb68b30aad73846effdf78a5863319

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c806376dd04871161007157806376dd0487146101205780637b10399914610133578063a91ee0dc14610146578063d01b1f9d14610159578063f39c38a01461016c578063f64db0501461017f57600080fd5b806301681a62146100ae5780630abb6035146100c3578063238efcbc146100d65780634cc571f3146100de5780635aa6e675146100f1575b600080fd5b6100c16100bc366004610fd3565b610192565b005b6100c16100d1366004610fd3565b61024d565b6100c1610299565b6100c16100ec366004610ff0565b610346565b600054610104906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6100c161012e36600461107a565b610356565b600254610104906001600160a01b031681565b6100c1610154366004610fd3565b610376565b6100c16101673660046110f6565b610437565b600154610104906001600160a01b031681565b6100c161018d366004611169565b6104bc565b6000546001600160a01b031633146101c55760405162461bcd60e51b81526004016101bc906111a2565b60405180910390fd5b6000546040516370a0823160e01b815230600482015261024a916001600160a01b0390811691908416906370a0823190602401602060405180830381865afa158015610215573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023991906111d9565b6001600160a01b0384169190610534565b50565b6000546001600160a01b031633146102775760405162461bcd60e51b81526004016101bc906111a2565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146102fd5760405162461bcd60e51b815260206004820152602160248201527f53656e646572206d7573742062652070656e64696e6720676f7665726e616e636044820152606560f81b60648201526084016101bc565b60008054336001600160a01b0319918216811783556001805490921690915560405190917f4f386975ea1c2f7cf1845b08bee00626fbb624ecad16254d63d9bb9ba86526de91a2565b610351838383610597565b505050565b6103638685858585610bad565b61036e868686610597565b505050505050565b6000546001600160a01b031633146103a05760405162461bcd60e51b81526004016101bc906111a2565b6001600160a01b0381166103ed5760405162461bcd60e51b8152602060048201526014602482015273052656769737472792063616e6e6f7420626520360641b60448201526064016101bc565b600280546001600160a01b0319166001600160a01b0383169081179091556040517f777c8cc4da61f5d244f5f33737022a66151d457640744b5c2e2719d76c1b540f90600090a250565b6040516370a0823160e01b81523360048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa15801561047e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a291906111d9565b90506104b18682868686610bad565b61036e868683610597565b6040516370a0823160e01b81523360048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610503573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052791906111d9565b9050610351838383610597565b6040516001600160a01b03831660248201526044810182905261035190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610c79565b8282806001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fb91906111f2565b6001600160a01b0316826001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066691906111f2565b6001600160a01b0316146106bc5760405162461bcd60e51b815260206004820152601f60248201527f5661756c7473206d7573742068617665207468652073616d6520746f6b656e0060448201526064016101bc565b806001600160a01b0316600260009054906101000a90046001600160a01b03166001600160a01b031663e177dc70846001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c91906111f2565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b491906111f2565b6001600160a01b03161461081e5760405162461bcd60e51b815260206004820152602b60248201527f546172676574207661756c742073686f756c6420626520746865206c6174657360448201526a3a103337b9103a37b5b2b760a91b60648201526084016101bc565b6040516370a0823160e01b815230600482015285906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610867573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088b91906111d9565b90506108a26001600160a01b038316333088610d4b565b6040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f91906111d9565b6109199190611225565b90506000836001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561095b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097f91906111f2565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ed91906111d9565b604051632e1a7d4d60e01b8152600481018590529091506001600160a01b03861690632e1a7d4d90602401600060405180830381600087803b158015610a3257600080fd5b505af1158015610a46573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092508391506001600160a01b038516906370a0823190602401602060405180830381865afa158015610a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab791906111d9565b610ac19190611225565b9050610ad76001600160a01b0384168b83610d89565b604051636e553f6560e01b8152600481018290523360248201526001600160a01b038b1690636e553f65906044016020604051808303816000875af1158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4891906111d9565b50896001600160a01b03168b6001600160a01b0316336001600160a01b03167fdcbc25361623955008b745ecf659b5382332eb120b842cc327044c55a2aefb198c604051610b9891815260200190565b60405180910390a45050505050505050505050565b604051639fd5a6cf60e01b81526001600160a01b03861690639fd5a6cf90610be39033903090899089908990899060040161123e565b6020604051808303816000875af1158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c26919061129a565b610c725760405162461bcd60e51b815260206004820152601960248201527f556e61626c6520746f207065726d6974206f6e207661756c740000000000000060448201526064016101bc565b5050505050565b6000610cce826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e3b9092919063ffffffff16565b8051909150156103515780806020019051810190610cec919061129a565b6103515760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016101bc565b6040516001600160a01b0380851660248301528316604482015260648101829052610d839085906323b872dd60e01b90608401610560565b50505050565b604051636eb1769f60e11b81523060048201526001600160a01b038381166024830152600091839186169063dd62ed3e90604401602060405180830381865afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe91906111d9565b610e0891906112bc565b6040516001600160a01b038516602482015260448101829052909150610d8390859063095ea7b360e01b90606401610560565b6060610e4a8484600085610e54565b90505b9392505050565b606082471015610eb55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016101bc565b6001600160a01b0385163b610f0c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101bc565b600080866001600160a01b03168587604051610f2891906112f3565b60006040518083038185875af1925050503d8060008114610f65576040519150601f19603f3d011682016040523d82523d6000602084013e610f6a565b606091505b5091509150610f7a828286610f85565b979650505050505050565b60608315610f94575081610e4d565b825115610fa45782518084602001fd5b8160405162461bcd60e51b81526004016101bc919061130f565b6001600160a01b038116811461024a57600080fd5b600060208284031215610fe557600080fd5b8135610e4d81610fbe565b60008060006060848603121561100557600080fd5b833561101081610fbe565b9250602084013561102081610fbe565b929592945050506040919091013590565b60008083601f84011261104357600080fd5b50813567ffffffffffffffff81111561105b57600080fd5b60208301915083602082850101111561107357600080fd5b9250929050565b60008060008060008060a0878903121561109357600080fd5b863561109e81610fbe565b955060208701356110ae81610fbe565b94506040870135935060608701359250608087013567ffffffffffffffff8111156110d857600080fd5b6110e489828a01611031565b979a9699509497509295939492505050565b60008060008060006080868803121561110e57600080fd5b853561111981610fbe565b9450602086013561112981610fbe565b935060408601359250606086013567ffffffffffffffff81111561114c57600080fd5b61115888828901611031565b969995985093965092949392505050565b6000806040838503121561117c57600080fd5b823561118781610fbe565b9150602083013561119781610fbe565b809150509250929050565b60208082526019908201527f53656e646572206d75737420626520676f7665726e616e636500000000000000604082015260600190565b6000602082840312156111eb57600080fd5b5051919050565b60006020828403121561120457600080fd5b8151610e4d81610fbe565b634e487b7160e01b600052601160045260246000fd5b818103818111156112385761123861120f565b92915050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b6000602082840312156112ac57600080fd5b81518015158114610e4d57600080fd5b808201808211156112385761123861120f565b60005b838110156112ea5781810151838201526020016112d2565b50506000910152565b600082516113058184602087016112cf565b9190910192915050565b602081526000825180602084015261132e8160408501602087016112cf565b601f01601f1916919091016040019291505056fea2646970667358221220264a2c4684bf2bb9a694a78678cdc845841678e53a07e0426a5b7582fcde47d064736f6c63430008110033

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

000000000000000000000000feb4acf3df3cdea7399794d0869ef76a6efaff52000000000000000000000000af1f5e1c19cb68b30aad73846effdf78a5863319

-----Decoded View---------------
Arg [0] : _governance (address): 0xFEB4acf3df3cDEA7399794D0869ef76A6EfAff52
Arg [1] : _registry (address): 0xaF1f5e1c19cB68B30aAD73846eFfDf78a5863319

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000feb4acf3df3cdea7399794d0869ef76a6efaff52
Arg [1] : 000000000000000000000000af1f5e1c19cb68b30aad73846effdf78a5863319


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.