ETH Price: $3,490.36 (-0.02%)

Contract

0xDe6B4964c4384BcDfA150a4A8bE9865C5b91E29C
 

Overview

ETH Balance

0.019015430365004823 ETH

Eth Value

$66.37 (@ $3,490.36/ETH)

Token Holdings

Transaction Hash
Method
Block
From
To
Transfer209258332024-10-09 5:06:2377 days ago1728450383IN
ReHold: Vault V2
0.0175 ETH0.0002293910.89514411
Withdraw209252602024-10-09 3:11:3577 days ago1728443495IN
ReHold: Vault V2
0 ETH0.0005208414.64778887
Withdraw Tokens209252532024-10-09 3:10:1177 days ago1728443411IN
ReHold: Vault V2
0 ETH0.0008748713.31553153
Withdraw Tokens209252512024-10-09 3:09:4777 days ago1728443387IN
ReHold: Vault V2
0 ETH0.0031797613.70017302
Withdraw Tokens209252502024-10-09 3:09:3577 days ago1728443375IN
ReHold: Vault V2
0 ETH0.0008679113.68157704
Withdraw Tokens209252482024-10-09 3:09:1177 days ago1728443351IN
ReHold: Vault V2
0 ETH0.0008677413.78310133
Withdraw Tokens209252472024-10-09 3:08:5977 days ago1728443339IN
ReHold: Vault V2
0 ETH0.0008468213.44644057
Withdraw Tokens209252452024-10-09 3:08:3577 days ago1728443315IN
ReHold: Vault V2
0 ETH0.0007833913.43964608
Withdraw Tokens209252442024-10-09 3:08:2377 days ago1728443303IN
ReHold: Vault V2
0 ETH0.0009427913.75017463
Withdraw Tokens209252432024-10-09 3:08:1177 days ago1728443291IN
ReHold: Vault V2
0 ETH0.0009648313.26567788
Withdraw Tokens209252422024-10-09 3:07:5977 days ago1728443279IN
ReHold: Vault V2
0 ETH0.0008964213.02438114
Withdraw Tokens209252402024-10-09 3:07:3577 days ago1728443255IN
ReHold: Vault V2
0 ETH0.0009626813.60800252
Withdraw Tokens209252392024-10-09 3:07:2377 days ago1728443243IN
ReHold: Vault V2
0 ETH0.0013099613.65415968
Withdraw Tokens209252372024-10-09 3:06:5977 days ago1728443219IN
ReHold: Vault V2
0 ETH0.0008715813.71089086
Withdraw Tokens209252352024-10-09 3:06:3577 days ago1728443195IN
ReHold: Vault V2
0 ETH0.0008357113.30541078
Withdraw Tokens209252332024-10-09 3:06:1177 days ago1728443171IN
ReHold: Vault V2
0 ETH0.0009662313.12461921
Withdraw Tokens209252312024-10-09 3:05:4777 days ago1728443147IN
ReHold: Vault V2
0 ETH0.0008477513.41594013
Withdraw Tokens209252292024-10-09 3:05:2377 days ago1728443123IN
ReHold: Vault V2
0 ETH0.0007802713.59537513
Withdraw Tokens209252272024-10-09 3:04:5977 days ago1728443099IN
ReHold: Vault V2
0 ETH0.000888213.50698832
Withdraw Tokens209252252024-10-09 3:04:3577 days ago1728443075IN
ReHold: Vault V2
0 ETH0.000940913.09613365
Withdraw Tokens209233792024-10-08 20:54:1178 days ago1728420851IN
ReHold: Vault V2
0 ETH0.0015026220.17138794
Withdraw Tokens209068662024-10-06 13:39:5980 days ago1728221999IN
ReHold: Vault V2
0 ETH0.000474737.53627978
Withdraw Tokens208762282024-10-02 7:10:1184 days ago1727853011IN
ReHold: Vault V2
0 ETH0.000384135.1565961
Withdraw Tokens208581332024-09-29 18:36:4787 days ago1727635007IN
ReHold: Vault V2
0 ETH0.000686159.54878488
Withdraw Tokens208431032024-09-27 16:17:4789 days ago1727453867IN
ReHold: Vault V2
0 ETH0.0014701920.46310835
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
209252602024-10-09 3:11:3577 days ago1728443495
ReHold: Vault V2
2.75 ETH
208350682024-09-26 13:24:1190 days ago1727357051
ReHold: Vault V2
0.03072065 ETH
208250382024-09-25 3:48:3591 days ago1727236115
ReHold: Vault V2
0.2715064 ETH
208203852024-09-24 12:14:1192 days ago1727180051
ReHold: Vault V2
0.10546847 ETH
208168732024-09-24 0:29:4792 days ago1727137787
ReHold: Vault V2
0.00003964 ETH
208167602024-09-24 0:06:5992 days ago1727136419
ReHold: Vault V2
0.00094731 ETH
208130022024-09-23 11:32:2393 days ago1727091143
ReHold: Vault V2
0.105 ETH
208130022024-09-23 11:32:2393 days ago1727091143
ReHold: Vault V2
0.105 ETH
208098672024-09-23 1:01:1193 days ago1727053271
ReHold: Vault V2
0.00289995 ETH
208015162024-09-21 21:03:4795 days ago1726952627
ReHold: Vault V2
6 ETH
207787932024-09-18 16:52:3598 days ago1726678355
ReHold: Vault V2
1.50368701 ETH
207739832024-09-18 0:44:4798 days ago1726620287
ReHold: Vault V2
0.00039636 ETH
207739202024-09-18 0:32:1198 days ago1726619531
ReHold: Vault V2
0.0000792 ETH
207572572024-09-15 16:37:35101 days ago1726418255
ReHold: Vault V2
1.51528 ETH
207572572024-09-15 16:37:35101 days ago1726418255
ReHold: Vault V2
1.51528 ETH
207571722024-09-15 16:20:23101 days ago1726417223
ReHold: Vault V2
1.51570067 ETH
207567102024-09-15 14:47:35101 days ago1726411655
ReHold: Vault V2
0.00000001 ETH
207497602024-09-14 15:32:11102 days ago1726327931
ReHold: Vault V2
1.50837 ETH
207497602024-09-14 15:32:11102 days ago1726327931
ReHold: Vault V2
1.50837 ETH
207446202024-09-13 22:16:59103 days ago1726265819
ReHold: Vault V2
0.00834531 ETH
207384482024-09-13 1:36:47103 days ago1726191407
ReHold: Vault V2
0.00039683 ETH
207383202024-09-13 1:11:11103 days ago1726189871
ReHold: Vault V2
0.00007959 ETH
207330082024-09-12 7:21:23104 days ago1726125683
ReHold: Vault V2
0.00015802 ETH
207311642024-09-12 1:10:59104 days ago1726103459
ReHold: Vault V2
0.62379693 ETH
207116632024-09-09 7:48:35107 days ago1725868115
ReHold: Vault V2
0.0003974 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vault

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 9 : Vault.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol";

import "./access/MPCOperable.sol";
import "./interfaces/IVault.sol";
import "./interfaces/IWETH.sol";

contract Vault is MPCOperable, IVault {
  using SafeERC20 for IERC20;
  using SafeERC20 for IERC20Permit;

  address public immutable WETH;

  constructor(address _WETH, address _MPC) MPCOperable(_MPC) {
    WETH = _WETH;
  }

  receive() external payable {}

  function deposit() external payable {}

  function depositToMPC() external payable {
    _withdraw(payable(mpc()), msg.value);
  }

  function depositTokens(address from, address token, uint256 amount) external onlyMPCOperable {
    _depositTokens(from, token, amount);
  }

  function depositTokensToMPC(address from, address token, uint256 amount) external onlyMPCOperable {
    _depositTokensToMPC(from, token, amount);
  }

  function depositTokensWithPermit(
    address from,
    address token,
    uint256 amount,
    Permit calldata permit
  ) external onlyMPCOperable {
    IERC20Permit(token).permit(from, address(this), permit.amount, permit.deadline, permit.v, permit.r, permit.s);
    _depositTokens(from, token, amount);
  }

  function depositTokensToMPCWithPermit(
    address from,
    address token,
    uint256 amount,
    Permit calldata permit
  ) external onlyMPCOperable {
    IERC20Permit(token).permit(from, address(this), permit.amount, permit.deadline, permit.v, permit.r, permit.s);
    _depositTokensToMPC(from, token, amount);
  }

  function withdraw(address payable to, uint256 amount) external onlyMPCOperable {
    _withdraw(to, amount);
  }

  function withdrawTokens(address to, address token, uint256 amount) external onlyMPCOperable {
    IERC20(token).safeTransfer(to, amount);
  }

  function _depositTokens(address from, address token, uint256 amount) internal {
    IERC20(token).safeTransferFrom(from, address(this), amount);

    if (token == WETH) {
      IWETH(WETH).withdraw(amount);
    }
  }

  function _depositTokensToMPC(address from, address token, uint256 amount) internal {
    if (token == WETH) {
      IERC20(token).safeTransferFrom(from, address(this), amount);
      IWETH(WETH).withdraw(amount);
      _withdraw(payable(mpc()), amount);
    } else {
      IERC20(token).safeTransferFrom(from, mpc(), amount);
    }
  }

  function _withdraw(address payable to, uint256 amount) private {
    (bool success, ) = to.call{value: amount}("");
    require(success, "Vault: Sending ETH has been failed");
  }
}

File 2 of 9 : 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 3 of 9 : 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 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

    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 5 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 9 : MPCManageable.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

abstract contract MPCManageable {
  event MPCUpdated(address indexed oldMPC, address indexed newMPC, uint256 effectiveTime);

  uint256 public constant DELAY = 2 days;

  address internal _oldMPC;
  address internal _newMPC;
  uint256 internal _newMPCEffectiveTime;

  constructor(address _MPC) {
    _updateMPC(_MPC, 0);
  }

  modifier onlyMPC() {
    _checkMPC();
    _;
  }

  function mpc() public view returns (address) {
    if (block.timestamp >= _newMPCEffectiveTime) {
      return _newMPC;
    }

    return _oldMPC;
  }

  function updateMPC(address newMPC) public onlyMPC {
    _updateMPC(newMPC, DELAY);
  }

  function _updateMPC(address newMPC, uint256 delay) private {
    require(newMPC != address(0), "MPCManageable: Nullable MPC");

    _oldMPC = mpc();
    _newMPC = newMPC;
    _newMPCEffectiveTime = block.timestamp + delay;

    emit MPCUpdated(_oldMPC, _newMPC, _newMPCEffectiveTime);
  }

  function _checkMPC() internal view {
    require(msg.sender == mpc(), "MPCManageable: Non MPC");
  }
}

File 7 of 9 : MPCOperable.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

import "./MPCManageable.sol";

abstract contract MPCOperable is MPCManageable {
  event Initialized();
  event OperatorAdded(address indexed operator, uint256 effectiveTime);
  event OperatorRemoved(address indexed operator);

  bool private _initialized;
  mapping(address => uint256) public operators;

  modifier onlyMPCOperable() {
    _checkMPCOperable();
    _;
  }

  constructor(address _MPC) MPCManageable(_MPC) {}

  function initOperators(address[] memory _operators) public onlyMPC {
    require(!_initialized, "MPCOperable: Already initialized");
    require(_operators.length > 0, "MPCOperable: Empty operators");

    _initialized = true;

    for (uint256 i = 0; i < _operators.length; i++) {
      _addOperator(_operators[i], 0);
    }

    emit Initialized();
  }

  function initialized() public view returns (bool) {
    return _initialized;
  }

  function addOperator(address operator) public onlyMPC {
    _addOperator(operator, DELAY);
  }

  function removeOperator(address operator) public onlyMPC {
    require(operators[operator] != 0, "MPCOperable: Operator doesn't exist");

    delete operators[operator];

    emit OperatorRemoved(operator);
  }

  function _addOperator(address operator, uint256 delay) private {
    require(operator != address(0x0), "MPCOperable: Nullable operator");
    require(operators[operator] == 0, "MPCOperable: Operator exists");

    operators[operator] = block.timestamp + delay;

    emit OperatorAdded(operator, operators[operator]);
  }

  function _checkMPCOperable() internal view {
    require(
      (operators[msg.sender] > 0 && block.timestamp >= operators[msg.sender]) || msg.sender == mpc(),
      "MPCOperable: Must be MPC or operator"
    );
  }
}

File 8 of 9 : IVault.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

struct Permit {
  uint256 amount;
  uint256 deadline;
  uint8 v;
  bytes32 r;
  bytes32 s;
}

interface IVault {
  function WETH() external view returns (address);

  receive() external payable;

  function deposit() external payable;

  function depositToMPC() external payable;

  function depositTokens(address from, address token, uint256 amount) external;

  function depositTokensToMPC(address from, address token, uint256 amount) external;

  function depositTokensWithPermit(address from, address token, uint256 amount, Permit calldata permit) external;

  function depositTokensToMPCWithPermit(address from, address token, uint256 amount, Permit calldata permit) external;

  function withdraw(address payable to, uint256 amount) external;

  function withdrawTokens(address to, address token, uint256 amount) external;
}

File 9 of 9 : IWETH.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.17;

interface IWETH {
  function name() external view returns (string memory);

  function symbol() external view returns (string memory);

  function decimals() external view returns (uint8);

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

  function allowance(address, address) external view returns (uint256);

  function deposit() external payable;

  function withdraw(uint256) external;

  function approve(address guy, uint256 wad) external returns (bool);

  function transfer(address to, uint256 value) external returns (bool);

  function transferFrom(address src, address dst, uint256 amount) external returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_WETH","type":"address"},{"internalType":"address","name":"_MPC","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldMPC","type":"address"},{"indexed":true,"internalType":"address","name":"newMPC","type":"address"},{"indexed":false,"internalType":"uint256","name":"effectiveTime","type":"uint256"}],"name":"MPCUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"effectiveTime","type":"uint256"}],"name":"OperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"OperatorRemoved","type":"event"},{"inputs":[],"name":"DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"depositToMPC","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTokensToMPC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Permit","name":"permit","type":"tuple"}],"name":"depositTokensToMPCWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Permit","name":"permit","type":"tuple"}],"name":"depositTokensWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_operators","type":"address[]"}],"name":"initOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mpc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"removeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMPC","type":"address"}],"name":"updateMPC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b506040516200168e3803806200168e833981016040819052620000349162000192565b80806200004381600062000058565b5050506001600160a01b0316608052620001f2565b6001600160a01b038216620000b35760405162461bcd60e51b815260206004820152601b60248201527f4d50434d616e61676561626c653a204e756c6c61626c65204d50430000000000604482015260640160405180910390fd5b620000bd62000149565b600080546001600160a01b03199081166001600160a01b039384161790915560018054909116918416919091179055620000f88142620001ca565b60028190556001546000546040519283526001600160a01b03918216929116907fd4f738392c346d39b1aa1a5aec7636e00ee014a495f29ce6fb1770051c4d8aff9060200160405180910390a35050565b600060025442106200016557506001546001600160a01b031690565b506000546001600160a01b031690565b80516001600160a01b03811681146200018d57600080fd5b919050565b60008060408385031215620001a657600080fd5b620001b18362000175565b9150620001c16020840162000175565b90509250929050565b80820180821115620001ec57634e487b7160e01b600052601160045260246000fd5b92915050565b6080516114646200022a6000396000818161029401528181610a1301528181610a6001528181610d5d0152610dbf01526114646000f3fe6080604052600436106101125760003560e01c8063a60cdab2116100a5578063c669c65711610074578063e2a804d211610059578063e2a804d2146102ee578063f3fef3a31461030e578063f75c26641461032e57600080fd5b8063c669c657146102ce578063d0e30db01461013e57600080fd5b8063a60cdab214610222578063ac20243e14610242578063ac8a584a14610262578063ad5c46481461028257600080fd5b80633b057a10116100e15780633b057a10146101c35780635e35359e146101cb57806369b41170146101eb5780639870d7fe1461020257600080fd5b8063105aeb961461011e57806313e7c9d814610140578063158ef93e1461018057806339dc5ef2146101a357600080fd5b3661011957005b600080fd5b34801561012a57600080fd5b5061013e610139366004611150565b610343565b005b34801561014c57600080fd5b5061016d61015b366004611150565b60046020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561018c57600080fd5b5060035460ff166040519015158152602001610177565b3480156101af57600080fd5b5061013e6101be366004611174565b61035b565b61013e610373565b3480156101d757600080fd5b5061013e6101e6366004611174565b610386565b3480156101f757600080fd5b5061016d6202a30081565b34801561020e57600080fd5b5061013e61021d366004611150565b6103a2565b34801561022e57600080fd5b5061013e61023d3660046111b5565b6103b7565b34801561024e57600080fd5b5061013e61025d366004611227565b61049b565b34801561026e57600080fd5b5061013e61027d366004611150565b6105c8565b34801561028e57600080fd5b506102b67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610177565b3480156102da57600080fd5b5061013e6102e93660046111b5565b6106a1565b3480156102fa57600080fd5b5061013e610309366004611174565b61077f565b34801561031a57600080fd5b5061013e6103293660046112ec565b610792565b34801561033a57600080fd5b506102b66107a8565b61034b6107d3565b610358816202a30061083b565b50565b61036361093b565b61036e8383836109fc565b505050565b61038461037e6107a8565b34610ac9565b565b61038e61093b565b61036e6001600160a01b0383168483610b92565b6103aa6107d3565b610358816202a300610c3b565b6103bf61093b565b6001600160a01b03831663d505accf8530843560208601356103e76060880160408901611318565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b0395861660048201529490931660248501526044840191909152606483015260ff166084820152606084013560a4820152608084013560c482015260e401600060405180830381600087803b15801561047257600080fd5b505af1158015610486573d6000803e3d6000fd5b505050506104958484846109fc565b50505050565b6104a36107d3565b60035460ff16156104fb5760405162461bcd60e51b815260206004820181905260248201527f4d50434f70657261626c653a20416c726561647920696e697469616c697a656460448201526064015b60405180910390fd5b600081511161054c5760405162461bcd60e51b815260206004820152601c60248201527f4d50434f70657261626c653a20456d707479206f70657261746f72730000000060448201526064016104f2565b6003805460ff1916600117905560005b815181101561059b5761058982828151811061057a5761057a61133b565b60200260200101516000610c3b565b8061059381611367565b91505061055c565b506040517f5daa87a0e9463431830481fd4b6e3403442dfb9a12b9c07597e9f61d50b633c890600090a150565b6105d06107d3565b6001600160a01b038116600090815260046020526040812054900361065d5760405162461bcd60e51b815260206004820152602360248201527f4d50434f70657261626c653a204f70657261746f7220646f65736e277420657860448201527f697374000000000000000000000000000000000000000000000000000000000060648201526084016104f2565b6001600160a01b038116600081815260046020526040808220829055517f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d9190a250565b6106a961093b565b6001600160a01b03831663d505accf8530843560208601356106d16060880160408901611318565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b0395861660048201529490931660248501526044840191909152606483015260ff166084820152606084013560a4820152608084013560c482015260e401600060405180830381600087803b15801561075c57600080fd5b505af1158015610770573d6000803e3d6000fd5b50505050610495848484610d5b565b61078761093b565b61036e838383610d5b565b61079a61093b565b6107a48282610ac9565b5050565b600060025442106107c357506001546001600160a01b031690565b506000546001600160a01b031690565b6107db6107a8565b6001600160a01b0316336001600160a01b0316146103845760405162461bcd60e51b815260206004820152601660248201527f4d50434d616e61676561626c653a204e6f6e204d50430000000000000000000060448201526064016104f2565b6001600160a01b0382166108915760405162461bcd60e51b815260206004820152601b60248201527f4d50434d616e61676561626c653a204e756c6c61626c65204d5043000000000060448201526064016104f2565b6108996107a8565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b0393841617909155600180549091169184169190911790556108ea8142611380565b60028190556001546000546040519283526001600160a01b03918216929116907fd4f738392c346d39b1aa1a5aec7636e00ee014a495f29ce6fb1770051c4d8aff9060200160405180910390a35050565b33600090815260046020526040902054158015906109685750336000908152600460205260409020544210155b8061098b57506109766107a8565b6001600160a01b0316336001600160a01b0316145b6103845760405162461bcd60e51b8152602060048201526024808201527f4d50434f70657261626c653a204d757374206265204d5043206f72206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104f2565b610a116001600160a01b038316843084610e4e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03160361036e57604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015610aac57600080fd5b505af1158015610ac0573d6000803e3d6000fd5b50505050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b16576040519150601f19603f3d011682016040523d82523d6000602084013e610b1b565b606091505b505090508061036e5760405162461bcd60e51b815260206004820152602260248201527f5661756c743a2053656e64696e672045544820686173206265656e206661696c60448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016104f2565b6040516001600160a01b03831660248201526044810182905261036e9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610e9f565b6001600160a01b038216610c915760405162461bcd60e51b815260206004820152601e60248201527f4d50434f70657261626c653a204e756c6c61626c65206f70657261746f72000060448201526064016104f2565b6001600160a01b03821660009081526004602052604090205415610cf75760405162461bcd60e51b815260206004820152601c60248201527f4d50434f70657261626c653a204f70657261746f72206578697374730000000060448201526064016104f2565b610d018142611380565b6001600160a01b038316600081815260046020526040908190208390555190917fcbcb793495a5fd793da61a1d62ab99b58925f94b0a61beeec3ea7d7d6c4f259491610d4f91815260200190565b60405180910390a25050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603610e3457610da96001600160a01b038316843084610e4e565b604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015610e0b57600080fd5b505af1158015610e1f573d6000803e3d6000fd5b5050505061036e610e2e6107a8565b82610ac9565b61036e83610e406107a8565b6001600160a01b0385169190845b6040516001600160a01b03808516602483015283166044820152606481018290526104959085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610bd7565b6000610ef4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f849092919063ffffffff16565b80519091501561036e5780806020019051810190610f129190611399565b61036e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104f2565b6060610f938484600085610f9b565b949350505050565b6060824710156110135760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104f2565b600080866001600160a01b0316858760405161102f91906113df565b60006040518083038185875af1925050503d806000811461106c576040519150601f19603f3d011682016040523d82523d6000602084013e611071565b606091505b50915091506110828783838761108d565b979650505050505050565b606083156110fc5782516000036110f5576001600160a01b0385163b6110f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104f2565b5081610f93565b610f9383838151156111115781518083602001fd5b8060405162461bcd60e51b81526004016104f291906113fb565b6001600160a01b038116811461035857600080fd5b803561114b8161112b565b919050565b60006020828403121561116257600080fd5b813561116d8161112b565b9392505050565b60008060006060848603121561118957600080fd5b83356111948161112b565b925060208401356111a48161112b565b929592945050506040919091013590565b6000806000808486036101008112156111cd57600080fd5b85356111d88161112b565b945060208601356111e88161112b565b93506040860135925060a0605f198201121561120357600080fd5b509295919450926060019150565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561123a57600080fd5b823567ffffffffffffffff8082111561125257600080fd5b818501915085601f83011261126657600080fd5b81358181111561127857611278611211565b8060051b604051601f19603f8301168101818110858211171561129d5761129d611211565b6040529182528482019250838101850191888311156112bb57600080fd5b938501935b828510156112e0576112d185611140565b845293850193928501926112c0565b98975050505050505050565b600080604083850312156112ff57600080fd5b823561130a8161112b565b946020939093013593505050565b60006020828403121561132a57600080fd5b813560ff8116811461116d57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161137957611379611351565b5060010190565b8082018082111561139357611393611351565b92915050565b6000602082840312156113ab57600080fd5b8151801515811461116d57600080fd5b60005b838110156113d65781810151838201526020016113be565b50506000910152565b600082516113f18184602087016113bb565b9190910192915050565b602081526000825180602084015261141a8160408501602087016113bb565b601f01601f1916919091016040019291505056fea264697066735822122064c7d3e5a67d5171b84be4a20bd4a1f367bc589cc9bf028cc7e20d816c24f6b764736f6c63430008110033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000c76281a72dbb71ae4762cda699cd3d6ba53afba

Deployed Bytecode

0x6080604052600436106101125760003560e01c8063a60cdab2116100a5578063c669c65711610074578063e2a804d211610059578063e2a804d2146102ee578063f3fef3a31461030e578063f75c26641461032e57600080fd5b8063c669c657146102ce578063d0e30db01461013e57600080fd5b8063a60cdab214610222578063ac20243e14610242578063ac8a584a14610262578063ad5c46481461028257600080fd5b80633b057a10116100e15780633b057a10146101c35780635e35359e146101cb57806369b41170146101eb5780639870d7fe1461020257600080fd5b8063105aeb961461011e57806313e7c9d814610140578063158ef93e1461018057806339dc5ef2146101a357600080fd5b3661011957005b600080fd5b34801561012a57600080fd5b5061013e610139366004611150565b610343565b005b34801561014c57600080fd5b5061016d61015b366004611150565b60046020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561018c57600080fd5b5060035460ff166040519015158152602001610177565b3480156101af57600080fd5b5061013e6101be366004611174565b61035b565b61013e610373565b3480156101d757600080fd5b5061013e6101e6366004611174565b610386565b3480156101f757600080fd5b5061016d6202a30081565b34801561020e57600080fd5b5061013e61021d366004611150565b6103a2565b34801561022e57600080fd5b5061013e61023d3660046111b5565b6103b7565b34801561024e57600080fd5b5061013e61025d366004611227565b61049b565b34801561026e57600080fd5b5061013e61027d366004611150565b6105c8565b34801561028e57600080fd5b506102b67f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b039091168152602001610177565b3480156102da57600080fd5b5061013e6102e93660046111b5565b6106a1565b3480156102fa57600080fd5b5061013e610309366004611174565b61077f565b34801561031a57600080fd5b5061013e6103293660046112ec565b610792565b34801561033a57600080fd5b506102b66107a8565b61034b6107d3565b610358816202a30061083b565b50565b61036361093b565b61036e8383836109fc565b505050565b61038461037e6107a8565b34610ac9565b565b61038e61093b565b61036e6001600160a01b0383168483610b92565b6103aa6107d3565b610358816202a300610c3b565b6103bf61093b565b6001600160a01b03831663d505accf8530843560208601356103e76060880160408901611318565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b0395861660048201529490931660248501526044840191909152606483015260ff166084820152606084013560a4820152608084013560c482015260e401600060405180830381600087803b15801561047257600080fd5b505af1158015610486573d6000803e3d6000fd5b505050506104958484846109fc565b50505050565b6104a36107d3565b60035460ff16156104fb5760405162461bcd60e51b815260206004820181905260248201527f4d50434f70657261626c653a20416c726561647920696e697469616c697a656460448201526064015b60405180910390fd5b600081511161054c5760405162461bcd60e51b815260206004820152601c60248201527f4d50434f70657261626c653a20456d707479206f70657261746f72730000000060448201526064016104f2565b6003805460ff1916600117905560005b815181101561059b5761058982828151811061057a5761057a61133b565b60200260200101516000610c3b565b8061059381611367565b91505061055c565b506040517f5daa87a0e9463431830481fd4b6e3403442dfb9a12b9c07597e9f61d50b633c890600090a150565b6105d06107d3565b6001600160a01b038116600090815260046020526040812054900361065d5760405162461bcd60e51b815260206004820152602360248201527f4d50434f70657261626c653a204f70657261746f7220646f65736e277420657860448201527f697374000000000000000000000000000000000000000000000000000000000060648201526084016104f2565b6001600160a01b038116600081815260046020526040808220829055517f80c0b871b97b595b16a7741c1b06fed0c6f6f558639f18ccbce50724325dc40d9190a250565b6106a961093b565b6001600160a01b03831663d505accf8530843560208601356106d16060880160408901611318565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b0395861660048201529490931660248501526044840191909152606483015260ff166084820152606084013560a4820152608084013560c482015260e401600060405180830381600087803b15801561075c57600080fd5b505af1158015610770573d6000803e3d6000fd5b50505050610495848484610d5b565b61078761093b565b61036e838383610d5b565b61079a61093b565b6107a48282610ac9565b5050565b600060025442106107c357506001546001600160a01b031690565b506000546001600160a01b031690565b6107db6107a8565b6001600160a01b0316336001600160a01b0316146103845760405162461bcd60e51b815260206004820152601660248201527f4d50434d616e61676561626c653a204e6f6e204d50430000000000000000000060448201526064016104f2565b6001600160a01b0382166108915760405162461bcd60e51b815260206004820152601b60248201527f4d50434d616e61676561626c653a204e756c6c61626c65204d5043000000000060448201526064016104f2565b6108996107a8565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b0393841617909155600180549091169184169190911790556108ea8142611380565b60028190556001546000546040519283526001600160a01b03918216929116907fd4f738392c346d39b1aa1a5aec7636e00ee014a495f29ce6fb1770051c4d8aff9060200160405180910390a35050565b33600090815260046020526040902054158015906109685750336000908152600460205260409020544210155b8061098b57506109766107a8565b6001600160a01b0316336001600160a01b0316145b6103845760405162461bcd60e51b8152602060048201526024808201527f4d50434f70657261626c653a204d757374206265204d5043206f72206f70657260448201527f61746f720000000000000000000000000000000000000000000000000000000060648201526084016104f2565b610a116001600160a01b038316843084610e4e565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b03160361036e57604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015610aac57600080fd5b505af1158015610ac0573d6000803e3d6000fd5b50505050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b16576040519150601f19603f3d011682016040523d82523d6000602084013e610b1b565b606091505b505090508061036e5760405162461bcd60e51b815260206004820152602260248201527f5661756c743a2053656e64696e672045544820686173206265656e206661696c60448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016104f2565b6040516001600160a01b03831660248201526044810182905261036e9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610e9f565b6001600160a01b038216610c915760405162461bcd60e51b815260206004820152601e60248201527f4d50434f70657261626c653a204e756c6c61626c65206f70657261746f72000060448201526064016104f2565b6001600160a01b03821660009081526004602052604090205415610cf75760405162461bcd60e51b815260206004820152601c60248201527f4d50434f70657261626c653a204f70657261746f72206578697374730000000060448201526064016104f2565b610d018142611380565b6001600160a01b038316600081815260046020526040908190208390555190917fcbcb793495a5fd793da61a1d62ab99b58925f94b0a61beeec3ea7d7d6c4f259491610d4f91815260200190565b60405180910390a25050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b031603610e3457610da96001600160a01b038316843084610e4e565b604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015610e0b57600080fd5b505af1158015610e1f573d6000803e3d6000fd5b5050505061036e610e2e6107a8565b82610ac9565b61036e83610e406107a8565b6001600160a01b0385169190845b6040516001600160a01b03808516602483015283166044820152606481018290526104959085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401610bd7565b6000610ef4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f849092919063ffffffff16565b80519091501561036e5780806020019051810190610f129190611399565b61036e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104f2565b6060610f938484600085610f9b565b949350505050565b6060824710156110135760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016104f2565b600080866001600160a01b0316858760405161102f91906113df565b60006040518083038185875af1925050503d806000811461106c576040519150601f19603f3d011682016040523d82523d6000602084013e611071565b606091505b50915091506110828783838761108d565b979650505050505050565b606083156110fc5782516000036110f5576001600160a01b0385163b6110f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104f2565b5081610f93565b610f9383838151156111115781518083602001fd5b8060405162461bcd60e51b81526004016104f291906113fb565b6001600160a01b038116811461035857600080fd5b803561114b8161112b565b919050565b60006020828403121561116257600080fd5b813561116d8161112b565b9392505050565b60008060006060848603121561118957600080fd5b83356111948161112b565b925060208401356111a48161112b565b929592945050506040919091013590565b6000806000808486036101008112156111cd57600080fd5b85356111d88161112b565b945060208601356111e88161112b565b93506040860135925060a0605f198201121561120357600080fd5b509295919450926060019150565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561123a57600080fd5b823567ffffffffffffffff8082111561125257600080fd5b818501915085601f83011261126657600080fd5b81358181111561127857611278611211565b8060051b604051601f19603f8301168101818110858211171561129d5761129d611211565b6040529182528482019250838101850191888311156112bb57600080fd5b938501935b828510156112e0576112d185611140565b845293850193928501926112c0565b98975050505050505050565b600080604083850312156112ff57600080fd5b823561130a8161112b565b946020939093013593505050565b60006020828403121561132a57600080fd5b813560ff8116811461116d57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161137957611379611351565b5060010190565b8082018082111561139357611393611351565b92915050565b6000602082840312156113ab57600080fd5b8151801515811461116d57600080fd5b60005b838110156113d65781810151838201526020016113be565b50506000910152565b600082516113f18184602087016113bb565b9190910192915050565b602081526000825180602084015261141a8160408501602087016113bb565b601f01601f1916919091016040019291505056fea264697066735822122064c7d3e5a67d5171b84be4a20bd4a1f367bc589cc9bf028cc7e20d816c24f6b764736f6c63430008110033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000c76281a72dbb71ae4762cda699cd3d6ba53afba

-----Decoded View---------------
Arg [0] : _WETH (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [1] : _MPC (address): 0x0c76281A72dbb71AE4762CdA699Cd3D6Ba53aFBa

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [1] : 0000000000000000000000000c76281a72dbb71ae4762cda699cd3d6ba53afba


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
Chain Token Portfolio % Price Amount Value
ETH27.04%$1.254,450.5509$5,563.19
ETH3.06%$0.00001933,977,639.0125$629.61
ETH1.61%$0.0001781,862,434.7987$331.89
ETH1.26%$0.00002311,382,506.896$260.2
ETH1.06%$0.415771522.0921$217.07
ETH0.66%$0.223069610.4289$136.17
ETH
Ether (ETH)
0.32%$3,490.360.019$66.37
ETH0.23%$98,7820.00047298$46.72
ETH0.17%$0.038482891.061$34.29
ETH0.15%$0.51359161.4824$31.58
ETH0.15%$1.9116$30.56
ETH0.13%$0.57238947.8337$27.38
ETH0.12%$3,777.720.00679867$25.68
ETH0.12%$3,488.20.00706046$24.63
ETH0.10%$1.4413.7397$19.79
ETH0.08%$3,490.360.00451531$15.76
ETH0.07%$3,641.30.00376202$13.7
ETH0.05%$1.437.83$11.2
ETH0.05%$13.840.7341$10.16
ETH0.04%$5.271.4767$7.78
ETH0.03%$0.40606516.6168$6.75
ETH0.03%$3,909.990.00170197$6.65
ETH0.03%$18.950.3342$6.33
ETH0.02%$0.15942528.5366$4.55
ETH0.02%$7.520.5226$3.93
ETH0.02%$3.731$3.73
ETH0.02%$0.10732629.4438$3.16
ETH0.02%$3,692.420.00084707$3.13
ETH0.01%$1.342.2424$3
ETH0.01%$0.15767913.7106$2.16
ETH<0.01%<$0.00000132,028,985.1927$2.02
ETH<0.01%$0.3515244.1594$1.46
ETH<0.01%$0.0007991,613.3462$1.29
ETH<0.01%<$0.0000011,674,773,178.1466$1.28
ETH<0.01%$369.060.00346226$1.28
ETH<0.01%<$0.00000116,053,221.2726$1.23
ETH<0.01%$1.580.7127$1.13
ETH<0.01%$0.3856472.5731$0.9923
ETH<0.01%$97,9880.00000799$0.7829
ETH<0.01%$0.04486717.1348$0.7687
ETH<0.01%$0.9665990.719$0.6949
ETH<0.01%$0.9995570.6907$0.6904
ETH<0.01%$6.720.0758$0.5091
ETH<0.01%$0.00255183.5921$0.468
ETH<0.01%$0.2846891.5082$0.4293
ETH<0.01%$10.4234$0.4234
ETH<0.01%$1.740.2165$0.3766
ETH<0.01%$10.3162$0.3161
ETH<0.01%$24.490.00928673$0.2274
ETH<0.01%$3,416.930.00005473$0.187
ETH<0.01%$22.570.00731198$0.165
ETH<0.01%$0.7739870.1671$0.1293
BSC9.51%$0.00017810,987,619.2105$1,956.13
BSC6.16%$98,865.170.0128$1,266.8
BSC4.75%$3,489.880.2798$976.4
BSC3.42%$22.5831.1535$703.45
BSC2.43%$1499.7331$499.77
BSC1.94%$6.9157.7639$399.42
BSC1.35%$701.520.3948$276.96
BSC1.07%$0.334449658.0746$220.09
BSC1.01%$0.999189208.3574$208.19
BSC0.68%$108.931.2928$140.83
BSC0.63%$462.660.2786$128.89
BSC0.41%$0.0000165,302,346.9032$83.56
BSC0.29%$0.0000232,579,524.883$58.88
BSC0.19%$138.7206$38.84
BSC0.18%$196.880.1905$37.51
BSC0.18%$0.41586289.789$37.34
BSC0.16%$5.436.2332$33.82
BSC0.16%$13.812.3714$32.74
BSC0.15%$0.83947237.3615$31.36
BSC0.15%$0.51459860.8949$31.34
BSC0.07%$0.4113333.9264$13.95
BSC0.04%$701.820.0113$7.93
BSC0.03%$1.34.0316$5.25
BSC0.02%$13.4817$3.49
BSC0.01%$12.2649$2.27
BSC0.01%$2.550.8543$2.18
BSC<0.01%$6.720.2838$1.91
BSC<0.01%$1.70.9572$1.62
BSC<0.01%$2.30.61$1.4
BSC<0.01%$0.10532512.5785$1.32
BSC<0.01%$0.7435651.5814$1.18
BSC<0.01%$2.060.5495$1.13
BSC<0.01%<$0.000001277,745,668.579$1.01
BSC<0.01%$0.4394432.0405$0.8966
BSC<0.01%$0.1805984.3382$0.7834
BSC<0.01%$0.133315.8306$0.7772
BSC<0.01%$0.967760.6608$0.6394
BSC<0.01%$1.260.4517$0.5701
BSC<0.01%$0.4296951.1966$0.5141
BSC<0.01%$5.290.092$0.487
BSC<0.01%$0.0512599.2733$0.4753
BSC<0.01%$9.970.0432$0.4308
BSC<0.01%$0.00001923,237.008$0.4298
BSC<0.01%$0.9146130.32$0.2926
BSC<0.01%$0.4954680.5271$0.2611
BSC<0.01%$0.4562650.5548$0.2531
BSC<0.01%$0.7644190.3188$0.2437
BSC<0.01%$368.870.00042052$0.1551
BSC<0.01%$0.7420980.2028$0.1504
BSC<0.01%$0.9978110.1499$0.1496
BSC<0.01%$0.0344784.3289$0.1492
BSC<0.01%$0.0869651.5984$0.139
BSC<0.01%$0.2548180.4977$0.1268
BSC<0.01%$0.9969460.1166$0.1162
BSC<0.01%$0.00844213.4934$0.1139
BSC<0.01%$0.1113960.9884$0.1101
BSC<0.01%$0.1583170.6719$0.1063
BSC<0.01%$0.0838411.2177$0.102
ARB7.46%$11,532.5015$1,534.03
ARB2.15%$0.802695549.9894$441.47
ARB0.64%$29.764.4558$132.6
ARB0.59%$0.463942260.0016$120.63
ARB0.09%$3,487.870.00556584$19.41
ARB0.05%$24.480.4067$9.96
ARB0.03%$0.42055613.4971$5.68
ARB0.02%$3,488.740.00113228$3.95
ARB<0.01%$6.050.3214$1.94
ARB<0.01%$0.411334.2117$1.73
ARB<0.01%$0.2250996.9491$1.56
ARB<0.01%$11.3005$1.3
ARB<0.01%$0.9991890.9845$0.9837
ARB<0.01%$10.9228$0.9237
ARB<0.01%$0.2230023.8431$0.857
ARB<0.01%$10.8$0.8015
ARB<0.01%$0.0000958,393.8726$0.7949
ARB<0.01%$98,8110.00000653$0.6452
ARB<0.01%$3,907.890.00011978$0.468
ARB<0.01%$1.040.2612$0.2719
ARB<0.01%$0.2900450.7289$0.2114
ARB<0.01%$5.260.0347$0.1826
ARB<0.01%$0.017459.4745$0.1653
ARB<0.01%$4,132.50.00003935$0.1626
ARB<0.01%$13.830.0113$0.1559
BASE7.58%$11,559.1916$1,559.19
BASE0.54%$3,488.740.0317$110.55
BASE0.28%$158.3228$58.33
BASE0.06%$3,488.430.00365042$12.73
BASE0.02%$3,775.120.00102734$3.88
BASE0.01%$12.7342$2.73
BASE<0.01%$0.02294380.8$1.85
BASE<0.01%$6.050.1783$1.08
BASE<0.01%<$0.00000127,374,001.0539$0.9416
BASE<0.01%$0.7152440.8666$0.6198
BASE<0.01%$10.5604$0.5614
BASE<0.01%$0.02238819.8922$0.4453
BASE<0.01%$3,591.790.0000785$0.2819
BASE<0.01%<$0.00000125,229,583.4352$0.2119
BASE<0.01%$3.110.0325$0.1012
OP2.41%$1.91258.6825$495.26
OP0.39%$0.99938581.1207$81.07
OP0.27%$3,490.370.0161$56.24
OP0.13%$0.98723626.3221$25.99
OP0.02%$2.31.9997$4.6
OP0.01%$0.9999212.2993$2.3
OP<0.01%$5.260.3787$1.99
OP<0.01%$98,7190.00001714$1.69
OP<0.01%$3,891.840.00034297$1.33
OP<0.01%$28.650.0462$1.32
OP<0.01%$3,489.420.00022803$0.7956
OP<0.01%$4,136.860.00014802$0.6123
OP<0.01%$2.20.2048$0.4505
OP<0.01%$3,439.980.00006165$0.212
OP<0.01%$10.1163$0.1162
AVAX1.71%$40.38.7366$352.12
AVAX1.14%$0.42022560.062$235.35
AVAX0.18%$0.0178982,099.9185$37.58
AVAX0.05%$98,9510.00010647$10.54
AVAX0.04%$29.790.3035$9.04
AVAX0.02%$369.060.0117$4.33
AVAX<0.01%$0.9991631.3092$1.31
AVAX<0.01%$0.0116767.7903$0.7911
AVAX<0.01%$10.6101$0.6101
AVAX<0.01%$47.50.0123$0.5848
AVAX<0.01%$10.4987$0.4987
AVAX<0.01%$3,488.430.00009766$0.3406
AVAX<0.01%$0.9991630.3198$0.3194
AVAX<0.01%$0.6277850.5021$0.3152
AVAX<0.01%$10.2814$0.2814
AVAX<0.01%$98,7820.00000198$0.1955
LINEA0.34%$0.99920670.3341$70.28
LINEA0.22%$3,588.030.0126$45.06
LINEA0.18%$137.205$37.2
LINEA0.15%$3,478.70.00897192$31.21
LINEA0.15%$98,6850.00030527$30.13
LINEA0.02%$3,492.190.000945$3.3
LINEA0.01%$4,130.910.00061927$2.56
LINEA<0.01%$0.001501446.5213$0.67
LINEA<0.01%$10.2$0.2001
LINEA<0.01%$0.000256481.2046$0.1229
POL0.19%$13.832.8283$39.12
POL0.16%$0.51526965.4226$33.71
POL0.12%$0.51371348.5435$24.94
POL0.07%$98,8150.00014656$14.48
POL0.05%$197.510.053$10.46
POL0.04%$0.9991399.1155$9.11
POL0.04%$3,489.880.00253171$8.84
POL0.04%$1.914.1352$7.9
POL0.04%$17.2036$7.22
POL0.03%$1.036.6181$6.8
POL0.03%$1.593.8465$6.12
POL0.02%<$0.000001395,487,402.6408$5.1
POL0.02%$0.011094317.6864$3.52
POL0.02%$0.9969013.3753$3.36
POL0.02%$86.250.0377$3.25
POL0.01%$3.80.718$2.73
POL0.01%$1.042.5613$2.67
POL0.01%$0.007475354.0537$2.65
POL0.01%$0.22510911.7342$2.64
POL<0.01%$40.320.0505$2.04
POL<0.01%$0.5287883.4795$1.84
POL<0.01%$0.04530730.936$1.4
POL<0.01%$0.2230325.0903$1.14
POL<0.01%$0.5856891.8919$1.11
POL<0.01%$0.0002693,100$0.833
POL<0.01%$10.6619$0.6618
POL<0.01%$10.623$0.623
POL<0.01%$1.060.561$0.5951
POL<0.01%$2.680.2059$0.5517
POL<0.01%$0.5787140.8507$0.4922
POL<0.01%$0.00559760.78$0.3401
POL<0.01%$0.9999190.3173$0.3172
POL<0.01%$2.20.0954$0.2097
POL<0.01%$10.1821$0.1822
POL<0.01%$0.0492953.6028$0.1776
POL<0.01%$0.001393113.5327$0.1581
POL<0.01%$93,603.260.00000154$0.1441
POL<0.01%$0.7402140.1919$0.142
POL<0.01%$0.9940140.132$0.1312
POL<0.01%$0.000752140.6597$0.1057
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.