ETH Price: $3,103.96 (-2.17%)

Contract

0x24719d3AF60e1B622a29317d29E5Ce283617DeEC
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw237619632025-11-09 13:20:597 days ago1762694459IN
0x24719d3A...83617DeEC
0 ETH0.00021072.07709544
Withdraw231042022025-08-09 14:49:3599 days ago1754750975IN
0x24719d3A...83617DeEC
0 ETH0.000289442.85327366
Withdraw230578042025-08-03 3:19:35105 days ago1754191175IN
0x24719d3A...83617DeEC
0 ETH0.000079530.78407423
Withdraw229612712025-07-20 15:22:35119 days ago1753024955IN
0x24719d3A...83617DeEC
0 ETH0.000429664.23546771
Withdraw228379612025-07-03 9:59:23136 days ago1751536763IN
0x24719d3A...83617DeEC
0 ETH0.000340193.35355778
Withdraw227742092025-06-24 12:12:23145 days ago1750767143IN
0x24719d3A...83617DeEC
0 ETH0.000190933.99689169
Withdraw227741952025-06-24 12:09:35145 days ago1750766975IN
0x24719d3A...83617DeEC
0 ETH0.000381873.76442113
Withdraw227640792025-06-23 2:13:59146 days ago1750644839IN
0x24719d3A...83617DeEC
0 ETH0.000112681.11067777
Withdraw227549082025-06-21 19:26:11148 days ago1750533971IN
0x24719d3A...83617DeEC
0 ETH0.000143431.41391518
Withdraw225186232025-05-19 17:55:35181 days ago1747677335IN
0x24719d3A...83617DeEC
0 ETH0.000227872.24631467
Withdraw222895402025-04-17 15:13:59213 days ago1744902839IN
0x24719d3A...83617DeEC
0 ETH0.000232782.2949579
Withdraw222577562025-04-13 4:47:35217 days ago1744519655IN
0x24719d3A...83617DeEC
0 ETH0.000099780.98379793
Withdraw221731242025-04-01 9:21:11229 days ago1743499271IN
0x24719d3A...83617DeEC
0 ETH0.000193091.90349267
Withdraw221400202025-03-27 18:23:35234 days ago1743099815IN
0x24719d3A...83617DeEC
0 ETH0.000023970.50279614
Withdraw221399912025-03-27 18:17:47234 days ago1743099467IN
0x24719d3A...83617DeEC
0 ETH0.000017660.62089103
Withdraw220960162025-03-21 15:03:35240 days ago1742569415IN
0x24719d3A...83617DeEC
0 ETH0.00010341.01933676
Withdraw219206992025-02-25 3:36:11264 days ago1740454571IN
0x24719d3A...83617DeEC
0 ETH0.000101441
Withdraw219006522025-02-22 8:22:11267 days ago1740212531IN
0x24719d3A...83617DeEC
0 ETH0.000116161.14506666
Withdraw218814662025-02-19 15:59:47270 days ago1739980787IN
0x24719d3A...83617DeEC
0 ETH0.000108821.29019426
Withdraw218612982025-02-16 20:19:35273 days ago1739737175IN
0x24719d3A...83617DeEC
0 ETH0.000133851.31949478
Withdraw218473612025-02-14 21:25:47274 days ago1739568347IN
0x24719d3A...83617DeEC
0 ETH0.000109091.29328285
Withdraw218249362025-02-11 18:01:35278 days ago1739296895IN
0x24719d3A...83617DeEC
0 ETH0.00020712.04155245
Withdraw218221872025-02-11 8:48:11278 days ago1739263691IN
0x24719d3A...83617DeEC
0 ETH0.000146241.44167293
Withdraw218108662025-02-09 18:52:11280 days ago1739127131IN
0x24719d3A...83617DeEC
0 ETH0.000115011.36368429
Withdraw217812182025-02-05 15:34:23284 days ago1738769663IN
0x24719d3A...83617DeEC
0 ETH0.000356093.51027974
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VaultEarlyWithdraw

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
pragma solidity ^0.8.4;
// SPDX-License-Identifier: AGPL-3.0-or-later

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface IVault {
    function toTokenAmount(uint256 sharesAmount) external view returns (uint256 tokenAmount);
}

/// @notice Allow a user to withdraw Temple from a vault early,
// by swapping vaulted Temple for pre-funded un-vaulted Temple.
contract VaultEarlyWithdraw is Pausable, Ownable {
    using SafeERC20 for IERC20;

    IERC20 immutable public templeToken;
    mapping(address => bool) public validVaults;

    // @notice Enforce a minimum withdraw amount to circumvent very small rounding issues on exit
    uint256 public minWithdrawAmount = 1_000;

    event TokenRecovered(address indexed token, address indexed to, uint256 amount);
    event EarlyWithdraw(address indexed addr, uint256 amount);
    event MinWithdrawAmountSet(uint256 amount);

    error MinAmountNotMet();
    error InvalidVault(address _vaultAddress);
    error InvalidAddress(address _addr);
    error SendFailed();
    
    constructor(address _templeTokenAddress, address[] memory _validVaults) {
        templeToken = IERC20(_templeTokenAddress);

        for (uint256 i=0; i<_validVaults.length; ++i) {
            validVaults[_validVaults[i]] = true;
        }
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function setMinWithdrawAmount(uint256 amount) external onlyOwner {
        minWithdrawAmount = amount;
        emit MinWithdrawAmountSet(amount);
    }

    /**
     * @notice User with vaulted token in one of the whitelisted vaults can withdraw early.
     */
    function withdraw(address _vault, uint256 _templeAmount) external whenNotPaused {
        if (!validVaults[_vault]) revert InvalidVault(_vault);
        if (_templeAmount < minWithdrawAmount) revert MinAmountNotMet();

        // Pull the user's vaulted temple, and send to the owner
        IERC20(_vault).safeTransferFrom(msg.sender, owner(), _templeAmount);

        // Send un-vaulted $TEMPLE, pre-funded into this contract, to sender.
        templeToken.safeTransfer(msg.sender, _templeAmount);

        emit EarlyWithdraw(msg.sender, _templeAmount);
    }

    /**
     * @notice Owner can recover token, including any left over $TEMPLE
     */
    function recoverToken(address token, address to, uint256 amount) external onlyOwner {
        if (to == address(0)) revert InvalidAddress(to);
        IERC20(token).safeTransfer(to, amount);
        emit TokenRecovered(token, to, amount);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_templeTokenAddress","type":"address"},{"internalType":"address[]","name":"_validVaults","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"InvalidAddress","type":"error"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"InvalidVault","type":"error"},{"inputs":[],"name":"MinAmountNotMet","type":"error"},{"inputs":[],"name":"SendFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EarlyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MinWithdrawAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"minWithdrawAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinWithdrawAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"templeToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"validVaults","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"uint256","name":"_templeAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526103e86002553480156200001757600080fd5b5060405162001111380380620011118339810160408190526200003a916200015d565b6000805460ff191690556200004f33620000d1565b6001600160a01b03821660805260005b8151811015620000c857600180600084848151811062000083576200008362000246565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055620000c0816200025c565b90506200005f565b50505062000284565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b80516001600160a01b03811681146200014257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156200017157600080fd5b6200017c836200012a565b602084810151919350906001600160401b03808211156200019c57600080fd5b818601915086601f830112620001b157600080fd5b815181811115620001c657620001c662000147565b8060051b604051601f19603f83011681018181108582111715620001ee57620001ee62000147565b6040529182528482019250838101850191898311156200020d57600080fd5b938501935b82851015620002365762000226856200012a565b8452938501939285019262000212565b8096505050505050509250929050565b634e487b7160e01b600052603260045260246000fd5b6000600182016200027d57634e487b7160e01b600052601160045260246000fd5b5060010190565b608051610e6a620002a7600039600081816101b8015261054a0152610e6a6000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80638456cb5911610081578063b1a9069c1161005b578063b1a9069c146101b3578063f2fde38b146101da578063f3fef3a3146101ed57600080fd5b80638456cb59146101545780638da5cb5b1461015c578063a7229fd9146101a057600080fd5b80635c975abb116100b25780635c975abb146101125780636657fc6714610129578063715018a61461014c57600080fd5b80633f4ba83a146100d9578063457e1a49146100e35780635abdb0dc146100ff575b600080fd5b6100e1610200565b005b6100ec60025481565b6040519081526020015b60405180910390f35b6100e161010d366004610cb7565b610212565b60005460ff165b60405190151581526020016100f6565b610119610137366004610cf9565b60016020526000908152604090205460ff1681565b6100e1610255565b6100e1610267565b600054610100900473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f6565b6100e16101ae366004610d1b565b610277565b61017b7f000000000000000000000000000000000000000000000000000000000000000081565b6100e16101e8366004610cf9565b610376565b6100e16101fb366004610d57565b61042d565b6102086105aa565b610210610631565b565b61021a6105aa565b60028190556040518181527f755134315a797bb3da2a1dd9a4fe4183310c83d99e9b32ca94eb17d356a083e69060200160405180910390a150565b61025d6105aa565b61021060006106ae565b61026f6105aa565b61021061072b565b61027f6105aa565b73ffffffffffffffffffffffffffffffffffffffff82166102e9576040517f8e4c8aa600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b61030a73ffffffffffffffffffffffffffffffffffffffff84168383610786565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f879f92dded0f26b83c3e00b12e0395dc72cfc3077343d1854ed6988edd1f90968360405161036991815260200190565b60405180910390a3505050565b61037e6105aa565b73ffffffffffffffffffffffffffffffffffffffff8116610421576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102e0565b61042a816106ae565b50565b61043561085f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff166104ac576040517faf7301ae00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024016102e0565b6002548110156104e8576040517f2fe65d3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105303361051160005473ffffffffffffffffffffffffffffffffffffffff6101009091041690565b73ffffffffffffffffffffffffffffffffffffffff85169190846108cc565b61057173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383610786565b60405181815233907f79273e16333ddc825a0d0ac202d9e533b62bc03870b7f8c978b30afad47efeca9060200160405180910390a25050565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e0565b610639610930565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b61073361085f565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586106843390565b60405173ffffffffffffffffffffffffffffffffffffffff831660248201526044810182905261085a9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261099c565b505050565b60005460ff1615610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016102e0565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261092a9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016107d8565b50505050565b60005460ff16610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016102e0565b60006109fe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610aa89092919063ffffffff16565b80519091501561085a5780806020019051810190610a1c9190610d81565b61085a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102e0565b6060610ab78484600085610abf565b949350505050565b606082471015610b51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102e0565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b7a9190610dc7565b60006040518083038185875af1925050503d8060008114610bb7576040519150601f19603f3d011682016040523d82523d6000602084013e610bbc565b606091505b5091509150610bcd87838387610bd8565b979650505050505050565b60608315610c6e578251600003610c675773ffffffffffffffffffffffffffffffffffffffff85163b610c67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e0565b5081610ab7565b610ab78383815115610c835781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e09190610de3565b600060208284031215610cc957600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610cf457600080fd5b919050565b600060208284031215610d0b57600080fd5b610d1482610cd0565b9392505050565b600080600060608486031215610d3057600080fd5b610d3984610cd0565b9250610d4760208501610cd0565b9150604084013590509250925092565b60008060408385031215610d6a57600080fd5b610d7383610cd0565b946020939093013593505050565b600060208284031215610d9357600080fd5b81518015158114610d1457600080fd5b60005b83811015610dbe578181015183820152602001610da6565b50506000910152565b60008251610dd9818460208701610da3565b9190910192915050565b6020815260008251806020840152610e02816040850160208701610da3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220419f57bbe04fddbbf7a1bb46a6026831de6c95b6c92694b84bda1d1d99237bf064736f6c63430008120033000000000000000000000000470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000402832ec42305cf7123bc9903f693e944484b9c1000000000000000000000000a99980c64fc6c302377c39f21431217fcbaf39af000000000000000000000000b6226ad4fef850dc8b85a83bdc0d4aff9c61cd39000000000000000000000000d43cc1814bd87b67b318e4807cde50c090d01c1a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80638456cb5911610081578063b1a9069c1161005b578063b1a9069c146101b3578063f2fde38b146101da578063f3fef3a3146101ed57600080fd5b80638456cb59146101545780638da5cb5b1461015c578063a7229fd9146101a057600080fd5b80635c975abb116100b25780635c975abb146101125780636657fc6714610129578063715018a61461014c57600080fd5b80633f4ba83a146100d9578063457e1a49146100e35780635abdb0dc146100ff575b600080fd5b6100e1610200565b005b6100ec60025481565b6040519081526020015b60405180910390f35b6100e161010d366004610cb7565b610212565b60005460ff165b60405190151581526020016100f6565b610119610137366004610cf9565b60016020526000908152604090205460ff1681565b6100e1610255565b6100e1610267565b600054610100900473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100f6565b6100e16101ae366004610d1b565b610277565b61017b7f000000000000000000000000470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b781565b6100e16101e8366004610cf9565b610376565b6100e16101fb366004610d57565b61042d565b6102086105aa565b610210610631565b565b61021a6105aa565b60028190556040518181527f755134315a797bb3da2a1dd9a4fe4183310c83d99e9b32ca94eb17d356a083e69060200160405180910390a150565b61025d6105aa565b61021060006106ae565b61026f6105aa565b61021061072b565b61027f6105aa565b73ffffffffffffffffffffffffffffffffffffffff82166102e9576040517f8e4c8aa600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024015b60405180910390fd5b61030a73ffffffffffffffffffffffffffffffffffffffff84168383610786565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f879f92dded0f26b83c3e00b12e0395dc72cfc3077343d1854ed6988edd1f90968360405161036991815260200190565b60405180910390a3505050565b61037e6105aa565b73ffffffffffffffffffffffffffffffffffffffff8116610421576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102e0565b61042a816106ae565b50565b61043561085f565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff166104ac576040517faf7301ae00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024016102e0565b6002548110156104e8576040517f2fe65d3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105303361051160005473ffffffffffffffffffffffffffffffffffffffff6101009091041690565b73ffffffffffffffffffffffffffffffffffffffff85169190846108cc565b61057173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7163383610786565b60405181815233907f79273e16333ddc825a0d0ac202d9e533b62bc03870b7f8c978b30afad47efeca9060200160405180910390a25050565b60005473ffffffffffffffffffffffffffffffffffffffff610100909104163314610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e0565b610639610930565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b61073361085f565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586106843390565b60405173ffffffffffffffffffffffffffffffffffffffff831660248201526044810182905261085a9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261099c565b505050565b60005460ff1615610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016102e0565b60405173ffffffffffffffffffffffffffffffffffffffff8085166024830152831660448201526064810182905261092a9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016107d8565b50505050565b60005460ff16610210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016102e0565b60006109fe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610aa89092919063ffffffff16565b80519091501561085a5780806020019051810190610a1c9190610d81565b61085a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102e0565b6060610ab78484600085610abf565b949350505050565b606082471015610b51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102e0565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610b7a9190610dc7565b60006040518083038185875af1925050503d8060008114610bb7576040519150601f19603f3d011682016040523d82523d6000602084013e610bbc565b606091505b5091509150610bcd87838387610bd8565b979650505050505050565b60608315610c6e578251600003610c675773ffffffffffffffffffffffffffffffffffffffff85163b610c67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e0565b5081610ab7565b610ab78383815115610c835781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e09190610de3565b600060208284031215610cc957600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610cf457600080fd5b919050565b600060208284031215610d0b57600080fd5b610d1482610cd0565b9392505050565b600080600060608486031215610d3057600080fd5b610d3984610cd0565b9250610d4760208501610cd0565b9150604084013590509250925092565b60008060408385031215610d6a57600080fd5b610d7383610cd0565b946020939093013593505050565b600060208284031215610d9357600080fd5b81518015158114610d1457600080fd5b60005b83811015610dbe578181015183820152602001610da6565b50506000910152565b60008251610dd9818460208701610da3565b9190910192915050565b6020815260008251806020840152610e02816040850160208701610da3565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220419f57bbe04fddbbf7a1bb46a6026831de6c95b6c92694b84bda1d1d99237bf064736f6c63430008120033

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

000000000000000000000000470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000402832ec42305cf7123bc9903f693e944484b9c1000000000000000000000000a99980c64fc6c302377c39f21431217fcbaf39af000000000000000000000000b6226ad4fef850dc8b85a83bdc0d4aff9c61cd39000000000000000000000000d43cc1814bd87b67b318e4807cde50c090d01c1a

-----Decoded View---------------
Arg [0] : _templeTokenAddress (address): 0x470EBf5f030Ed85Fc1ed4C2d36B9DD02e77CF1b7
Arg [1] : _validVaults (address[]): 0x402832eC42305cf7123BC9903f693E944484b9c1,0xA99980c64fc6C302377C39f21431217fcBAF39af,0xB6226ad4fEf850dC8b85A83bDc0D4afF9C61CD39,0xd43cC1814bD87b67b318E4807Cde50C090D01c1a

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [3] : 000000000000000000000000402832ec42305cf7123bc9903f693e944484b9c1
Arg [4] : 000000000000000000000000a99980c64fc6c302377c39f21431217fcbaf39af
Arg [5] : 000000000000000000000000b6226ad4fef850dc8b85a83bdc0d4aff9c61cd39
Arg [6] : 000000000000000000000000d43cc1814bd87b67b318e4807cde50c090d01c1a


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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