S Price: $0.495159 (+9.78%)

Contract

0x716Ca912728505438eeb118Db014104CC74E6f0d

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiSigWallet

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 5 : MultiSigWallet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';

contract MultiSigWallet {

    using SafeERC20 for IERC20;

    event QueueTransaction(
        uint256 indexed idx,
        address indexed to,
        uint256 value,
        bytes   data,
        uint256 exeAfter,
        uint256 exeBefore
    );

    event ConfirmTransaction(uint256 indexed idx, address indexed admin);

    event RevokeConfirmation(uint256 indexed idx, address indexed admin);

    event ExecuteTransaction(uint256 indexed idx, address indexed admin);

    struct Transaction {
        uint256 idx;
        address to;
        uint256 value;
        bytes   data;
        uint256 exeAfter;
        uint256 exeBefore;
        bool    executed;
        uint256 numConfirmations;
    }

    modifier onlyAdmin() {
        require(isAdmin[msg.sender], 'Only Admin');
        _;
    }

    modifier txExists(uint256 idx) {
        require(idx < transactions.length, 'Tx not exist');
        _;
    }

    modifier notExecuted(uint256 idx) {
        require(!transactions[idx].executed, 'Tx already executed');
        _;
    }

    modifier notConfirmed(uint256 idx) {
        require(!isConfirmed[idx][msg.sender], 'Tx already confirmed');
        _;
    }

    uint256 public constant STALE_PERIOD = 14 days;

    address[] public admins;

    mapping (address => bool) public isAdmin;

    uint256 public numConfirmationsRequired;

    Transaction[] public transactions;

    mapping (uint256 => mapping (address => bool)) public isConfirmed;

    constructor (address[] memory admins_, uint256 numConfirmationsRequired_) {
        require(numConfirmationsRequired_ <= admins_.length, 'Invalid numConfirmationsRequired');
        for (uint256 i = 0; i < admins_.length; i++) {
            address admin = admins_[i];
            require(admin != address(0), 'Invalid admin');
            isAdmin[admin] = true;
            admins.push(admin);
        }
        numConfirmationsRequired = numConfirmationsRequired_;
    }

    //================================================================================
    // Getters
    //================================================================================

    function getAllAdmins() external view returns (address[] memory) {
        return admins;
    }

    function getLastNTransactions(uint256 n) external view returns (Transaction[] memory) {
        uint256 length = transactions.length;
        if (n > length) n = length;

        Transaction[] memory res = new Transaction[](n);
        for (uint256 i = 0; i < n; i++) {
            res[i] = transactions[length - n + i];
        }

        return res;
    }

    //================================================================================
    // Setters
    //================================================================================

    function addAdmin(address admin) external {
        require(msg.sender == address(this), 'Only MultiSigWallet');
        require(admin != address(0), 'Invalid admin');
        require(!isAdmin[admin], 'Admin not unique');
        isAdmin[admin] = true;
        admins.push(admin);
    }

    function delAdmin(address admin) external {
        require(msg.sender == address(this), 'Only MultiSigWallet');
        require(isAdmin[admin], 'Admin not exists');
        isAdmin[admin] = false;
        uint256 length = admins.length;
        for (uint256 i = 0; i < length - 1; i++) {
            if (admins[i] == admin) {
                admins[i] = admins[length - 1];
                break;
            }
        }
        admins.pop();
    }

    function setNumConfirmationRequired(uint256 newNumConfirmationsRequired) external {
        require(msg.sender == address(this), 'Only MultiSigWallet');
        numConfirmationsRequired = newNumConfirmationsRequired;
    }

    //================================================================================
    // Actions
    //================================================================================

    function queueTransaction(
        address to,
        uint256 value,
        bytes memory data,
        uint256 delay
    ) external {
        uint256 idx = transactions.length;
        uint256 exeAfter = block.timestamp + delay;
        uint256 exeBefore = block.timestamp + STALE_PERIOD;
        transactions.push(
            Transaction({
                idx: idx,
                to: to,
                value: value,
                data: data,
                exeAfter: exeAfter,
                exeBefore: exeBefore,
                executed: false,
                numConfirmations: 0
            })
        );
        emit QueueTransaction(idx, to, value, data, exeAfter, exeBefore);
    }

    function confirmTransaction(uint256 idx)
    public onlyAdmin txExists(idx) notExecuted(idx) notConfirmed(idx)
    {
        Transaction storage transaction = transactions[idx];
        transaction.numConfirmations += 1;
        isConfirmed[idx][msg.sender] = true;
        emit ConfirmTransaction(idx, msg.sender);
    }

    function revokeConfirmation(uint256 idx)
    external onlyAdmin txExists(idx) notExecuted(idx)
    {
        Transaction storage transaction = transactions[idx];
        require(isConfirmed[idx][msg.sender], 'Not confirmed');
        transaction.numConfirmations -= 1;
        isConfirmed[idx][msg.sender] = false;
        emit RevokeConfirmation(idx, msg.sender);
    }

    function executeTransaction(uint256 idx)
    external onlyAdmin txExists(idx) notExecuted(idx)
    {
        if (!isConfirmed[idx][msg.sender]) {
            confirmTransaction(idx);
        }

        Transaction storage transaction = transactions[idx];

        require(
            transaction.numConfirmations >= numConfirmationsRequired,
            'Cannot execute, confirmations not reached'
        );
        require(
            block.timestamp >= transaction.exeAfter && block.timestamp < transaction.exeBefore,
            'Connot execute, execution time window not met'
        );

        transaction.executed = true;

        (bool success, ) = transaction.to.call{value: transaction.value}(transaction.data);
        require(success, 'Execute failed');

        emit ExecuteTransaction(idx, msg.sender);
    }

    //================================================================================
    // Helpers
    //================================================================================

    receive() external payable {}

    // withdraw function for any stucked token or ETH in this contract
    // only 1 admin privilege required for this function
    function withdraw(address token, address to) external onlyAdmin {
        if (token == address(0)) {
            uint256 balance = address(this).balance;
            if (balance > 0) {
                (bool success, ) = payable(to).call{value: balance}('');
                require(success);
            }
        } else {
            uint256 balance = IERC20(token).balanceOf(address(this));
            if (balance > 0) {
                IERC20(token).safeTransfer(to, balance);
            }
        }
    }

}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

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

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address[]","name":"admins_","type":"address[]"},{"internalType":"uint256","name":"numConfirmationsRequired_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":true,"internalType":"address","name":"admin","type":"address"}],"name":"ConfirmTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":true,"internalType":"address","name":"admin","type":"address"}],"name":"ExecuteTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"exeAfter","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"exeBefore","type":"uint256"}],"name":"QueueTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"idx","type":"uint256"},{"indexed":true,"internalType":"address","name":"admin","type":"address"}],"name":"RevokeConfirmation","type":"event"},{"inputs":[],"name":"STALE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"admins","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"confirmTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"delAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"executeTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllAdmins","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"getLastNTransactions","outputs":[{"components":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"exeAfter","type":"uint256"},{"internalType":"uint256","name":"exeBefore","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"},{"internalType":"uint256","name":"numConfirmations","type":"uint256"}],"internalType":"struct MultiSigWallet.Transaction[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"isConfirmed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numConfirmationsRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"delay","type":"uint256"}],"name":"queueTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"revokeConfirmation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNumConfirmationsRequired","type":"uint256"}],"name":"setNumConfirmationRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"transactions","outputs":[{"internalType":"uint256","name":"idx","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"exeAfter","type":"uint256"},{"internalType":"uint256","name":"exeBefore","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"},{"internalType":"uint256","name":"numConfirmations","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162001f7838038062001f788339810160408190526200003491620001c0565b81518111156200008b5760405162461bcd60e51b815260206004820181905260248201527f496e76616c6964206e756d436f6e6669726d6174696f6e73526571756972656460448201526064015b60405180910390fd5b60005b825181101562000182576000838281518110620000af57620000af6200029a565b6020026020010151905060006001600160a01b0316816001600160a01b0316036200010d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21030b236b4b760991b604482015260640162000082565b6001600160a01b031660008181526001602081905260408220805460ff191682179055815490810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319169091179055806200017981620002b0565b9150506200008e565b5060025550620002d8565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b0381168114620001bb57600080fd5b919050565b60008060408385031215620001d457600080fd5b82516001600160401b0380821115620001ec57600080fd5b818501915085601f8301126200020157600080fd5b81516020828211156200021857620002186200018d565b8160051b604051601f19603f830116810181811086821117156200024057620002406200018d565b6040529283528183019350848101820192898411156200025f57600080fd5b948201945b8386101562000288576200027886620001a3565b8552948201949382019362000264565b97909101519698969750505050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201620002d157634e487b7160e01b600052601160045260246000fd5b5060010190565b611c9080620002e86000396000f3fe6080604052600436106100f75760003560e01c80639ace38c21161008a578063dfa4cb7e11610059578063dfa4cb7e14610302578063e9523c9714610319578063ee22610b1461033b578063f940e3851461035b57600080fd5b80639ace38c21461026a578063a58b66c61461029e578063c01a8c84146102be578063d0549b85146102de57600080fd5b806365e8e41a116100c657806365e8e41a146101c257806370480275146101ef57806380f59a651461020f5780638e361cdf1461024a57600080fd5b806314bfd6d01461010357806320ea8d861461014057806324d7806c1461016257806362d91855146101a257600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e36600461158b565b61037b565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014c57600080fd5b5061016061015b36600461158b565b6103a5565b005b34801561016e57600080fd5b5061019261017d3660046115c0565b60016020526000908152604090205460ff1681565b6040519015158152602001610137565b3480156101ae57600080fd5b506101606101bd3660046115c0565b610530565b3480156101ce57600080fd5b506101e26101dd36600461158b565b6106db565b6040516101379190611632565b3480156101fb57600080fd5b5061016061020a3660046115c0565b610918565b34801561021b57600080fd5b5061019261022a3660046116f5565b600460209081526000928352604080842090915290825290205460ff1681565b34801561025657600080fd5b50610160610265366004611737565b610a3b565b34801561027657600080fd5b5061028a61028536600461158b565b610c01565b60405161013798979695949392919061180a565b3480156102aa57600080fd5b506101606102b936600461158b565b610cf2565b3480156102ca57600080fd5b506101606102d936600461158b565b610d16565b3480156102ea57600080fd5b506102f460025481565b604051908152602001610137565b34801561030e57600080fd5b506102f46212750081565b34801561032557600080fd5b5061032e610ea7565b6040516101379190611864565b34801561034757600080fd5b5061016061035636600461158b565b610f09565b34801561036757600080fd5b506101606103763660046118b1565b6111c4565b6000818154811061038b57600080fd5b6000918252602090912001546001600160a01b0316905081565b3360009081526001602052604090205460ff166103dd5760405162461bcd60e51b81526004016103d4906118db565b60405180910390fd5b600354819081106104005760405162461bcd60e51b81526004016103d4906118ff565b816003818154811061041457610414611925565b600091825260209091206006600890920201015460ff16156104485760405162461bcd60e51b81526004016103d49061193b565b60006003848154811061045d5761045d611925565b600091825260208083208784526004825260408085203386529092529220546008909102909101915060ff166104c55760405162461bcd60e51b815260206004820152600d60248201526c139bdd0818dbdb999a5c9b5959609a1b60448201526064016103d4565b60018160070160008282546104da919061197e565b90915550506000848152600460209081526040808320338085529252808320805460ff1916905551909186917f7f8ce8e4f5a5b480ff78c18404639350996fd63efc83ace55b1d6a3e12158e249190a350505050565b33301461054f5760405162461bcd60e51b81526004016103d490611997565b6001600160a01b03811660009081526001602052604090205460ff166105aa5760405162461bcd60e51b815260206004820152601060248201526f41646d696e206e6f742065786973747360801b60448201526064016103d4565b6001600160a01b0381166000908152600160205260408120805460ff191690558054905b6105d960018361197e565b8110156106a357826001600160a01b0316600082815481106105fd576105fd611925565b6000918252602090912001546001600160a01b03160361069157600061062460018461197e565b8154811061063457610634611925565b600091825260208220015481546001600160a01b0390911691908390811061065e5761065e611925565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506106a3565b8061069b816119c4565b9150506105ce565b5060008054806106b5576106b56119dd565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b600354606090808311156106ed578092505b60008367ffffffffffffffff81111561070857610708611721565b60405190808252806020026020018201604052801561078c57816020015b6107796040518061010001604052806000815260200160006001600160a01b0316815260200160008152602001606081526020016000815260200160008152602001600015158152602001600081525090565b8152602001906001900390816107265790505b50905060005b84811015610910576003816107a7878661197e565b6107b191906119f3565b815481106107c1576107c1611925565b906000526020600020906008020160405180610100016040529081600082015481526020016001820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016002820154815260200160038201805461082e90611a06565b80601f016020809104026020016040519081016040528092919081815260200182805461085a90611a06565b80156108a75780601f1061087c576101008083540402835291602001916108a7565b820191906000526020600020905b81548152906001019060200180831161088a57829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460ff161515606082015260079091015460809091015282518390839081106108f2576108f2611925565b60200260200101819052508080610908906119c4565b915050610792565b509392505050565b3330146109375760405162461bcd60e51b81526004016103d490611997565b6001600160a01b03811661097d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21030b236b4b760991b60448201526064016103d4565b6001600160a01b03811660009081526001602052604090205460ff16156109d95760405162461bcd60e51b815260206004820152601060248201526f41646d696e206e6f7420756e6971756560801b60448201526064016103d4565b6001600160a01b031660008181526001602081905260408220805460ff191682179055815490810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319169091179055565b6003546000610a4a83426119f3565b90506000610a5b62127500426119f3565b60408051610100810182528581526001600160a01b038a8116602083019081529282018a8152606083018a81526080840188905260a08401869052600060c0850181905260e0850181905260038054600181018255915284517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600890920291820190815595517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c820180546001600160a01b031916919095161790935590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d8301555193945090927fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e90910190610b749082611a8e565b506080820151600482015560a0820151600582015560c082015160068201805460ff191691151591909117905560e0909101516007909101556040516001600160a01b0388169084907fb86477461503437ca5bbe26720296b99c82694b2db8ea0e5a67aa57153c84d0690610bf0908a908a9088908890611b4e565b60405180910390a350505050505050565b60038181548110610c1157600080fd5b600091825260209091206008909102018054600182015460028301546003840180549395506001600160a01b03909216939092909190610c5090611a06565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7c90611a06565b8015610cc95780601f10610c9e57610100808354040283529160200191610cc9565b820191906000526020600020905b815481529060010190602001808311610cac57829003601f168201915b5050506004840154600585015460068601546007909601549495919490935060ff909116915088565b333014610d115760405162461bcd60e51b81526004016103d490611997565b600255565b3360009081526001602052604090205460ff16610d455760405162461bcd60e51b81526004016103d4906118db565b60035481908110610d685760405162461bcd60e51b81526004016103d4906118ff565b8160038181548110610d7c57610d7c611925565b600091825260209091206006600890920201015460ff1615610db05760405162461bcd60e51b81526004016103d49061193b565b6000838152600460209081526040808320338452909152902054839060ff1615610e135760405162461bcd60e51b8152602060048201526014602482015273151e08185b1c9958591e4818dbdb999a5c9b595960621b60448201526064016103d4565b600060038581548110610e2857610e28611925565b906000526020600020906008020190506001816007016000828254610e4d91906119f3565b90915550506000858152600460209081526040808320338085529252808320805460ff1916600117905551909187917fcb0f87c749501e9cd0f274dc3a2c62b91b6a4f2909001c6c13663072b739d3d69190a35050505050565b60606000805480602002602001604051908101604052809291908181526020018280548015610eff57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ee1575b5050505050905090565b3360009081526001602052604090205460ff16610f385760405162461bcd60e51b81526004016103d4906118db565b60035481908110610f5b5760405162461bcd60e51b81526004016103d4906118ff565b8160038181548110610f6f57610f6f611925565b600091825260209091206006600890920201015460ff1615610fa35760405162461bcd60e51b81526004016103d49061193b565b600083815260046020908152604080832033845290915290205460ff16610fcd57610fcd83610d16565b600060038481548110610fe257610fe2611925565b906000526020600020906008020190506002548160070154101561105a5760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420657865637574652c20636f6e6669726d6174696f6e73206e6f6044820152681d081c995858da195960ba1b60648201526084016103d4565b806004015442101580156110715750806005015442105b6110d35760405162461bcd60e51b815260206004820152602d60248201527f436f6e6e6f7420657865637574652c20657865637574696f6e2074696d65207760448201526c1a5b991bddc81b9bdd081b595d609a1b60648201526084016103d4565b60068101805460ff1916600190811790915581015460028201546040516000926001600160a01b0316919061110c906003860190611b7a565b60006040518083038185875af1925050503d8060008114611149576040519150601f19603f3d011682016040523d82523d6000602084013e61114e565b606091505b50509050806111905760405162461bcd60e51b815260206004820152600e60248201526d115e1958dd5d194819985a5b195960921b60448201526064016103d4565b604051339086907fff0d827e815551ef359e2272c2751de1c593cdff65e6e59efab752e10e9ef6d290600090a35050505050565b3360009081526001602052604090205460ff166111f35760405162461bcd60e51b81526004016103d4906118db565b6001600160a01b03821661126f5747801561126a576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611255576040519150601f19603f3d011682016040523d82523d6000602084013e61125a565b606091505b505090508061126857600080fd5b505b505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da9190611bf0565b9050801561126a57604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261126a929086169185918591859185919060009061137b90849084906113fb565b905080516000148061139c57508080602001905181019061139c9190611c09565b61126a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d4565b606061140a8484600085611412565b949350505050565b6060824710156114735760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103d4565b600080866001600160a01b0316858760405161148f9190611c2b565b60006040518083038185875af1925050503d80600081146114cc576040519150601f19603f3d011682016040523d82523d6000602084013e6114d1565b606091505b50915091506114e2878383876114ed565b979650505050505050565b6060831561155c578251600003611555576001600160a01b0385163b6115555760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d4565b508161140a565b61140a83838151156115715781518083602001fd5b8060405162461bcd60e51b81526004016103d49190611c47565b60006020828403121561159d57600080fd5b5035919050565b80356001600160a01b03811681146115bb57600080fd5b919050565b6000602082840312156115d257600080fd5b6115db826115a4565b9392505050565b60005b838110156115fd5781810151838201526020016115e5565b50506000910152565b6000815180845261161e8160208601602086016115e2565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156116e757888303603f19018552815180518452878101516001600160a01b031688850152868101518785015260608082015161010082870181905291906116a683880182611606565b6080858101519089015260a0808601519089015260c08086015115159089015260e09485015194909701939093525050509386019390860190600101611659565b509098975050505050505050565b6000806040838503121561170857600080fd5b82359150611718602084016115a4565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561174d57600080fd5b611756856115a4565b935060208501359250604085013567ffffffffffffffff8082111561177a57600080fd5b818701915087601f83011261178e57600080fd5b8135818111156117a0576117a0611721565b604051601f8201601f19908116603f011681019083821181831017156117c8576117c8611721565b816040528281528a60208487010111156117e157600080fd5b826020860160208301376000928101602001929092525095989497509495606001359450505050565b8881526001600160a01b0388166020820152604081018790526101006060820181905260009061183c83820189611606565b6080840197909752505060a081019390935290151560c083015260e090910152949350505050565b6020808252825182820181905260009190848201906040850190845b818110156118a55783516001600160a01b031683529284019291840191600101611880565b50909695505050505050565b600080604083850312156118c457600080fd5b6118cd836115a4565b9150611718602084016115a4565b6020808252600a908201526927b7363c9020b236b4b760b11b604082015260600190565b6020808252600c908201526b151e081b9bdd08195e1a5cdd60a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260139082015272151e08185b1c9958591e48195e1958dd5d1959606a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561199157611991611968565b92915050565b60208082526013908201527213db9b1e48135d5b1d1a54da59d5d85b1b195d606a1b604082015260600190565b6000600182016119d6576119d6611968565b5060010190565b634e487b7160e01b600052603160045260246000fd5b8082018082111561199157611991611968565b600181811c90821680611a1a57607f821691505b602082108103611a3a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561126a57600081815260208120601f850160051c81016020861015611a675750805b601f850160051c820191505b81811015611a8657828155600101611a73565b505050505050565b815167ffffffffffffffff811115611aa857611aa8611721565b611abc81611ab68454611a06565b84611a40565b602080601f831160018114611af15760008415611ad95750858301515b600019600386901b1c1916600185901b178555611a86565b600085815260208120601f198616915b82811015611b2057888601518255948401946001909101908401611b01565b5085821015611b3e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b848152608060208201526000611b676080830186611606565b6040830194909452506060015292915050565b6000808354611b8881611a06565b60018281168015611ba05760018114611bb557611be4565b60ff1984168752821515830287019450611be4565b8760005260208060002060005b85811015611bdb5781548a820152908401908201611bc2565b50505082870194505b50929695505050505050565b600060208284031215611c0257600080fd5b5051919050565b600060208284031215611c1b57600080fd5b815180151581146115db57600080fd5b60008251611c3d8184602087016115e2565b9190910192915050565b6020815260006115db602083018461160656fea2646970667358221220a922975c697ce3fd47521bdfc909ac31f7cf751ccdcff7b916b5c963b0e3582764736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000067bfd33a75d8b17e838bebdaf7e646344936dde60000000000000000000000001bb02f1b0d50885a28eb8fd515e940d62fd0d980000000000000000000000000f89d02465310b1574f2d007ff6d5d3788917bef9000000000000000000000000a8e6642e1244b8286254e57eee6354b674e13c67

Deployed Bytecode

0x6080604052600436106100f75760003560e01c80639ace38c21161008a578063dfa4cb7e11610059578063dfa4cb7e14610302578063e9523c9714610319578063ee22610b1461033b578063f940e3851461035b57600080fd5b80639ace38c21461026a578063a58b66c61461029e578063c01a8c84146102be578063d0549b85146102de57600080fd5b806365e8e41a116100c657806365e8e41a146101c257806370480275146101ef57806380f59a651461020f5780638e361cdf1461024a57600080fd5b806314bfd6d01461010357806320ea8d861461014057806324d7806c1461016257806362d91855146101a257600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e36600461158b565b61037b565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014c57600080fd5b5061016061015b36600461158b565b6103a5565b005b34801561016e57600080fd5b5061019261017d3660046115c0565b60016020526000908152604090205460ff1681565b6040519015158152602001610137565b3480156101ae57600080fd5b506101606101bd3660046115c0565b610530565b3480156101ce57600080fd5b506101e26101dd36600461158b565b6106db565b6040516101379190611632565b3480156101fb57600080fd5b5061016061020a3660046115c0565b610918565b34801561021b57600080fd5b5061019261022a3660046116f5565b600460209081526000928352604080842090915290825290205460ff1681565b34801561025657600080fd5b50610160610265366004611737565b610a3b565b34801561027657600080fd5b5061028a61028536600461158b565b610c01565b60405161013798979695949392919061180a565b3480156102aa57600080fd5b506101606102b936600461158b565b610cf2565b3480156102ca57600080fd5b506101606102d936600461158b565b610d16565b3480156102ea57600080fd5b506102f460025481565b604051908152602001610137565b34801561030e57600080fd5b506102f46212750081565b34801561032557600080fd5b5061032e610ea7565b6040516101379190611864565b34801561034757600080fd5b5061016061035636600461158b565b610f09565b34801561036757600080fd5b506101606103763660046118b1565b6111c4565b6000818154811061038b57600080fd5b6000918252602090912001546001600160a01b0316905081565b3360009081526001602052604090205460ff166103dd5760405162461bcd60e51b81526004016103d4906118db565b60405180910390fd5b600354819081106104005760405162461bcd60e51b81526004016103d4906118ff565b816003818154811061041457610414611925565b600091825260209091206006600890920201015460ff16156104485760405162461bcd60e51b81526004016103d49061193b565b60006003848154811061045d5761045d611925565b600091825260208083208784526004825260408085203386529092529220546008909102909101915060ff166104c55760405162461bcd60e51b815260206004820152600d60248201526c139bdd0818dbdb999a5c9b5959609a1b60448201526064016103d4565b60018160070160008282546104da919061197e565b90915550506000848152600460209081526040808320338085529252808320805460ff1916905551909186917f7f8ce8e4f5a5b480ff78c18404639350996fd63efc83ace55b1d6a3e12158e249190a350505050565b33301461054f5760405162461bcd60e51b81526004016103d490611997565b6001600160a01b03811660009081526001602052604090205460ff166105aa5760405162461bcd60e51b815260206004820152601060248201526f41646d696e206e6f742065786973747360801b60448201526064016103d4565b6001600160a01b0381166000908152600160205260408120805460ff191690558054905b6105d960018361197e565b8110156106a357826001600160a01b0316600082815481106105fd576105fd611925565b6000918252602090912001546001600160a01b03160361069157600061062460018461197e565b8154811061063457610634611925565b600091825260208220015481546001600160a01b0390911691908390811061065e5761065e611925565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506106a3565b8061069b816119c4565b9150506105ce565b5060008054806106b5576106b56119dd565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b600354606090808311156106ed578092505b60008367ffffffffffffffff81111561070857610708611721565b60405190808252806020026020018201604052801561078c57816020015b6107796040518061010001604052806000815260200160006001600160a01b0316815260200160008152602001606081526020016000815260200160008152602001600015158152602001600081525090565b8152602001906001900390816107265790505b50905060005b84811015610910576003816107a7878661197e565b6107b191906119f3565b815481106107c1576107c1611925565b906000526020600020906008020160405180610100016040529081600082015481526020016001820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016002820154815260200160038201805461082e90611a06565b80601f016020809104026020016040519081016040528092919081815260200182805461085a90611a06565b80156108a75780601f1061087c576101008083540402835291602001916108a7565b820191906000526020600020905b81548152906001019060200180831161088a57829003601f168201915b50505091835250506004820154602082015260058201546040820152600682015460ff161515606082015260079091015460809091015282518390839081106108f2576108f2611925565b60200260200101819052508080610908906119c4565b915050610792565b509392505050565b3330146109375760405162461bcd60e51b81526004016103d490611997565b6001600160a01b03811661097d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21030b236b4b760991b60448201526064016103d4565b6001600160a01b03811660009081526001602052604090205460ff16156109d95760405162461bcd60e51b815260206004820152601060248201526f41646d696e206e6f7420756e6971756560801b60448201526064016103d4565b6001600160a01b031660008181526001602081905260408220805460ff191682179055815490810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319169091179055565b6003546000610a4a83426119f3565b90506000610a5b62127500426119f3565b60408051610100810182528581526001600160a01b038a8116602083019081529282018a8152606083018a81526080840188905260a08401869052600060c0850181905260e0850181905260038054600181018255915284517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600890920291820190815595517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c820180546001600160a01b031916919095161790935590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d8301555193945090927fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e90910190610b749082611a8e565b506080820151600482015560a0820151600582015560c082015160068201805460ff191691151591909117905560e0909101516007909101556040516001600160a01b0388169084907fb86477461503437ca5bbe26720296b99c82694b2db8ea0e5a67aa57153c84d0690610bf0908a908a9088908890611b4e565b60405180910390a350505050505050565b60038181548110610c1157600080fd5b600091825260209091206008909102018054600182015460028301546003840180549395506001600160a01b03909216939092909190610c5090611a06565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7c90611a06565b8015610cc95780601f10610c9e57610100808354040283529160200191610cc9565b820191906000526020600020905b815481529060010190602001808311610cac57829003601f168201915b5050506004840154600585015460068601546007909601549495919490935060ff909116915088565b333014610d115760405162461bcd60e51b81526004016103d490611997565b600255565b3360009081526001602052604090205460ff16610d455760405162461bcd60e51b81526004016103d4906118db565b60035481908110610d685760405162461bcd60e51b81526004016103d4906118ff565b8160038181548110610d7c57610d7c611925565b600091825260209091206006600890920201015460ff1615610db05760405162461bcd60e51b81526004016103d49061193b565b6000838152600460209081526040808320338452909152902054839060ff1615610e135760405162461bcd60e51b8152602060048201526014602482015273151e08185b1c9958591e4818dbdb999a5c9b595960621b60448201526064016103d4565b600060038581548110610e2857610e28611925565b906000526020600020906008020190506001816007016000828254610e4d91906119f3565b90915550506000858152600460209081526040808320338085529252808320805460ff1916600117905551909187917fcb0f87c749501e9cd0f274dc3a2c62b91b6a4f2909001c6c13663072b739d3d69190a35050505050565b60606000805480602002602001604051908101604052809291908181526020018280548015610eff57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610ee1575b5050505050905090565b3360009081526001602052604090205460ff16610f385760405162461bcd60e51b81526004016103d4906118db565b60035481908110610f5b5760405162461bcd60e51b81526004016103d4906118ff565b8160038181548110610f6f57610f6f611925565b600091825260209091206006600890920201015460ff1615610fa35760405162461bcd60e51b81526004016103d49061193b565b600083815260046020908152604080832033845290915290205460ff16610fcd57610fcd83610d16565b600060038481548110610fe257610fe2611925565b906000526020600020906008020190506002548160070154101561105a5760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420657865637574652c20636f6e6669726d6174696f6e73206e6f6044820152681d081c995858da195960ba1b60648201526084016103d4565b806004015442101580156110715750806005015442105b6110d35760405162461bcd60e51b815260206004820152602d60248201527f436f6e6e6f7420657865637574652c20657865637574696f6e2074696d65207760448201526c1a5b991bddc81b9bdd081b595d609a1b60648201526084016103d4565b60068101805460ff1916600190811790915581015460028201546040516000926001600160a01b0316919061110c906003860190611b7a565b60006040518083038185875af1925050503d8060008114611149576040519150601f19603f3d011682016040523d82523d6000602084013e61114e565b606091505b50509050806111905760405162461bcd60e51b815260206004820152600e60248201526d115e1958dd5d194819985a5b195960921b60448201526064016103d4565b604051339086907fff0d827e815551ef359e2272c2751de1c593cdff65e6e59efab752e10e9ef6d290600090a35050505050565b3360009081526001602052604090205460ff166111f35760405162461bcd60e51b81526004016103d4906118db565b6001600160a01b03821661126f5747801561126a576000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611255576040519150601f19603f3d011682016040523d82523d6000602084013e61125a565b606091505b505090508061126857600080fd5b505b505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da9190611bf0565b9050801561126a57604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261126a929086169185918591859185919060009061137b90849084906113fb565b905080516000148061139c57508080602001905181019061139c9190611c09565b61126a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103d4565b606061140a8484600085611412565b949350505050565b6060824710156114735760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103d4565b600080866001600160a01b0316858760405161148f9190611c2b565b60006040518083038185875af1925050503d80600081146114cc576040519150601f19603f3d011682016040523d82523d6000602084013e6114d1565b606091505b50915091506114e2878383876114ed565b979650505050505050565b6060831561155c578251600003611555576001600160a01b0385163b6115555760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103d4565b508161140a565b61140a83838151156115715781518083602001fd5b8060405162461bcd60e51b81526004016103d49190611c47565b60006020828403121561159d57600080fd5b5035919050565b80356001600160a01b03811681146115bb57600080fd5b919050565b6000602082840312156115d257600080fd5b6115db826115a4565b9392505050565b60005b838110156115fd5781810151838201526020016115e5565b50506000910152565b6000815180845261161e8160208601602086016115e2565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156116e757888303603f19018552815180518452878101516001600160a01b031688850152868101518785015260608082015161010082870181905291906116a683880182611606565b6080858101519089015260a0808601519089015260c08086015115159089015260e09485015194909701939093525050509386019390860190600101611659565b509098975050505050505050565b6000806040838503121561170857600080fd5b82359150611718602084016115a4565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561174d57600080fd5b611756856115a4565b935060208501359250604085013567ffffffffffffffff8082111561177a57600080fd5b818701915087601f83011261178e57600080fd5b8135818111156117a0576117a0611721565b604051601f8201601f19908116603f011681019083821181831017156117c8576117c8611721565b816040528281528a60208487010111156117e157600080fd5b826020860160208301376000928101602001929092525095989497509495606001359450505050565b8881526001600160a01b0388166020820152604081018790526101006060820181905260009061183c83820189611606565b6080840197909752505060a081019390935290151560c083015260e090910152949350505050565b6020808252825182820181905260009190848201906040850190845b818110156118a55783516001600160a01b031683529284019291840191600101611880565b50909695505050505050565b600080604083850312156118c457600080fd5b6118cd836115a4565b9150611718602084016115a4565b6020808252600a908201526927b7363c9020b236b4b760b11b604082015260600190565b6020808252600c908201526b151e081b9bdd08195e1a5cdd60a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b602080825260139082015272151e08185b1c9958591e48195e1958dd5d1959606a1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561199157611991611968565b92915050565b60208082526013908201527213db9b1e48135d5b1d1a54da59d5d85b1b195d606a1b604082015260600190565b6000600182016119d6576119d6611968565b5060010190565b634e487b7160e01b600052603160045260246000fd5b8082018082111561199157611991611968565b600181811c90821680611a1a57607f821691505b602082108103611a3a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561126a57600081815260208120601f850160051c81016020861015611a675750805b601f850160051c820191505b81811015611a8657828155600101611a73565b505050505050565b815167ffffffffffffffff811115611aa857611aa8611721565b611abc81611ab68454611a06565b84611a40565b602080601f831160018114611af15760008415611ad95750858301515b600019600386901b1c1916600185901b178555611a86565b600085815260208120601f198616915b82811015611b2057888601518255948401946001909101908401611b01565b5085821015611b3e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b848152608060208201526000611b676080830186611606565b6040830194909452506060015292915050565b6000808354611b8881611a06565b60018281168015611ba05760018114611bb557611be4565b60ff1984168752821515830287019450611be4565b8760005260208060002060005b85811015611bdb5781548a820152908401908201611bc2565b50505082870194505b50929695505050505050565b600060208284031215611c0257600080fd5b5051919050565b600060208284031215611c1b57600080fd5b815180151581146115db57600080fd5b60008251611c3d8184602087016115e2565b9190910192915050565b6020815260006115db602083018461160656fea2646970667358221220a922975c697ce3fd47521bdfc909ac31f7cf751ccdcff7b916b5c963b0e3582764736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000400000000000000000000000067bfd33a75d8b17e838bebdaf7e646344936dde60000000000000000000000001bb02f1b0d50885a28eb8fd515e940d62fd0d980000000000000000000000000f89d02465310b1574f2d007ff6d5d3788917bef9000000000000000000000000a8e6642e1244b8286254e57eee6354b674e13c67

-----Decoded View---------------
Arg [0] : admins_ (address[]): 0x67bfd33A75D8b17E838bebdaf7E646344936ddE6,0x1Bb02f1B0d50885a28eb8Fd515e940d62FD0D980,0xf89D02465310B1574f2d007FF6D5d3788917bEf9,0xA8E6642e1244B8286254E57EeE6354b674E13c67
Arg [1] : numConfirmationsRequired_ (uint256): 3

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 00000000000000000000000067bfd33a75d8b17e838bebdaf7e646344936dde6
Arg [4] : 0000000000000000000000001bb02f1b0d50885a28eb8fd515e940d62fd0d980
Arg [5] : 000000000000000000000000f89d02465310b1574f2d007ff6d5d3788917bef9
Arg [6] : 000000000000000000000000a8e6642e1244b8286254e57eee6354b674e13c67


Block Transaction 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

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.