ETH Price: $1,771.99 (+3.96%)

Contract

0x7063ea2dBa364aCd9135752Da5395ac7CD12313D
 

Overview

ETH Balance

101.372483819185508015 ETH

ETH Value

$179,624.51 (@ $1,771.93/ETH)

Token Holdings

Multichain Info

No addresses found
Age:30D
Reset Filter

Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
183055032025-04-23 15:07:0113 mins ago1745420821
0x7063ea2d...7CD12313D
0 ETH
183046002025-04-23 14:36:5544 mins ago1745419015
0x7063ea2d...7CD12313D
0 ETH
183036972025-04-23 14:06:491 hr ago1745417209
0x7063ea2d...7CD12313D
0 ETH
183027932025-04-23 13:36:411 hr ago1745415401
0x7063ea2d...7CD12313D
0 ETH
183018902025-04-23 13:06:352 hrs ago1745413595
0x7063ea2d...7CD12313D
0 ETH
183009862025-04-23 12:36:272 hrs ago1745411787
0x7063ea2d...7CD12313D
0 ETH
183000832025-04-23 12:06:213 hrs ago1745409981
0x7063ea2d...7CD12313D
0 ETH
182991792025-04-23 11:36:133 hrs ago1745408173
0x7063ea2d...7CD12313D
0 ETH
182982772025-04-23 11:06:094 hrs ago1745406369
0x7063ea2d...7CD12313D
0 ETH
182973732025-04-23 10:36:014 hrs ago1745404561
0x7063ea2d...7CD12313D
0 ETH
182964722025-04-23 10:05:595 hrs ago1745402759
0x7063ea2d...7CD12313D
0 ETH
182955672025-04-23 9:35:495 hrs ago1745400949
0x7063ea2d...7CD12313D
0 ETH
182946642025-04-23 9:05:436 hrs ago1745399143
0x7063ea2d...7CD12313D
0 ETH
182937612025-04-23 8:35:376 hrs ago1745397337
0x7063ea2d...7CD12313D
0 ETH
182928582025-04-23 8:05:317 hrs ago1745395531
0x7063ea2d...7CD12313D
0 ETH
182919542025-04-23 7:35:237 hrs ago1745393723
0x7063ea2d...7CD12313D
0 ETH
182910512025-04-23 7:05:178 hrs ago1745391917
0x7063ea2d...7CD12313D
0 ETH
182901482025-04-23 6:35:118 hrs ago1745390111
0x7063ea2d...7CD12313D
0 ETH
182892452025-04-23 6:05:059 hrs ago1745388305
0x7063ea2d...7CD12313D
0 ETH
182883422025-04-23 5:34:599 hrs ago1745386499
0x7063ea2d...7CD12313D
0 ETH
182874392025-04-23 5:04:5310 hrs ago1745384693
0x7063ea2d...7CD12313D
0 ETH
182865352025-04-23 4:34:4510 hrs ago1745382885
0x7063ea2d...7CD12313D
0 ETH
182856322025-04-23 4:04:3911 hrs ago1745381079
0x7063ea2d...7CD12313D
0 ETH
182847292025-04-23 3:34:3311 hrs ago1745379273
0x7063ea2d...7CD12313D
0 ETH
182838262025-04-23 3:04:2712 hrs ago1745377467
0x7063ea2d...7CD12313D
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenPot

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 14 : TokenPot.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Context.sol";

import "../libs/Constants.sol";
import "../libs/TokensTransfer.sol";
import "../settings/ProtocolOwner.sol";
import "../interfaces/IBlast.sol";
import "../interfaces/IBlastPoints.sol";
import "../interfaces/IProtocolSettings.sol";
import "../interfaces/IWandProtocol.sol";

contract TokenPot is Context, ReentrancyGuard {

  // IBlastPoints public immutable blastPoints;
  IProtocolSettings public immutable settings;
  address public immutable owner;
  IWandProtocol public immutable wandProtocol;

  constructor(address _wandProtocol, address _settings) {
    require(_wandProtocol != address(0) && _settings != address(0), "Zero address detected");
    owner = msg.sender;
    settings = IProtocolSettings(_settings);
    wandProtocol = IWandProtocol(_wandProtocol);
  }

  receive() external payable {}

  function balance(address token) public view returns (uint256) {
    if (token == Constants.NATIVE_TOKEN) {
      return address(this).balance;
    }
    else {
      return IERC20(token).balanceOf(address(this));
    }
  }

  function configureBlastYieldsAndGas() external nonReentrant onlyOwner {
    address blastAddress = wandProtocol.blastAddress();
    if (blastAddress != address(0)) {
      IBlast blast = IBlast(wandProtocol.blastAddress());
      blast.configureAutomaticYield();
      blast.configureClaimableGas();
    }
  }

  function configureBlastPoints() external nonReentrant onlyOwner {
    address blastPointsAddress = wandProtocol.blastPointsAddress();
    address blastPointsOperatorAddress = wandProtocol.blastPointsOperator();
    if (blastPointsAddress != address(0) && blastPointsOperatorAddress != address(0)) {
      IBlastPoints blastPoints = IBlastPoints(blastPointsAddress);
      blastPoints.configurePointsOperator(blastPointsOperatorAddress);
    }
  }

  // Only owner could withdraw from this contract
  function withdraw(address recipient, address token, uint256 amount) external nonReentrant onlyOwner {
    require(recipient != address(0) && token != address(0), "Zero address detected");
    require(amount > 0 && amount <= balance(token), "Invalid amount");
    TokensTransfer.transferTokens(token, address(this), recipient, amount);
    emit Withdrawn(_msgSender(), recipient, token, amount);

    address blastAddress = wandProtocol.blastAddress();
    if (blastAddress != address(0)) {
      IBlast blast = IBlast(blastAddress);
      (uint256 etherSeconds, uint256 etherBalance, ,) = blast.readGasParams(address(this));
      if (etherSeconds > 0 && etherBalance > 0) {
        blast.claimAllGas(address(this), settings.treasury());
      }
    }
  }

  modifier onlyOwner() {
    require(_msgSender() == owner, "TokenPot: caller is not the owner");
    _;
  }
  /* =============== EVENTS ============= */

  event Withdrawn(address indexed withdrawer, address indexed recipient, address indexed token, uint256 amount);
}

File 2 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 3 of 14 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

File 4 of 14 : 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 5 of 14 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

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

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

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

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

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

File 6 of 14 : 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);
        }
    }
}

File 7 of 14 : Context.sol
// 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;
    }
}

File 8 of 14 : IBlast.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

enum YieldMode {
  AUTOMATIC,
  VOID,
  CLAIMABLE
}

enum GasMode {
  VOID,
  CLAIMABLE 
}

interface IBlast{
  // configure
  function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
  function configure(YieldMode _yield, GasMode gasMode, address governor) external;

  // base configuration options
  function configureClaimableYield() external;
  function configureClaimableYieldOnBehalf(address contractAddress) external;
  function configureAutomaticYield() external;
  function configureAutomaticYieldOnBehalf(address contractAddress) external;
  function configureVoidYield() external;
  function configureVoidYieldOnBehalf(address contractAddress) external;
  function configureClaimableGas() external;
  function configureClaimableGasOnBehalf(address contractAddress) external;
  function configureVoidGas() external;
  function configureVoidGasOnBehalf(address contractAddress) external;
  function configureGovernor(address _governor) external;
  function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

  // claim yield
  function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
  function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

  // claim gas
  function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
  function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256);
  function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
  function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256);

  // read functions
  function readClaimableYield(address contractAddress) external view returns (uint256);
  function readYieldConfiguration(address contractAddress) external view returns (uint8);
  function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

File 9 of 14 : IBlastPoints.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

interface IBlastPoints {
  function configurePointsOperator(address operator) external;
}

File 10 of 14 : IProtocolSettings.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

interface IProtocolSettings {

  function treasury() external view returns (address);

  function decimals() external view returns (uint256);

  function isValidParam(bytes32 param, uint256 value) external view returns (bool);

  function paramDefaultValue(bytes32 param) external view returns (uint256);

  function vaultParamValue(address vault, bytes32 param) external view returns (uint256);
}

File 11 of 14 : IWandProtocol.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

interface IWandProtocol {

  function protocolOwner() external view returns (address);

  function usbToken() external view returns (address);

  function blastAddress() external view returns (address);
  
  function blastPointsAddress() external view returns (address);

  function blastPointsOperator() external view returns (address);

  function isVault(address vaultAddress) external view returns (bool);

  function isVaultAsset(address assetToken) external view returns (bool);
}

File 12 of 14 : Constants.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

library Constants {
  /**
   * @notice The address interpreted as native token of the chain.
   */
  address public constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

  uint256 public constant PROTOCOL_DECIMALS = 10;

  struct Terms {
    uint256 T1;
    uint256 T2;
    uint256 T3;
    uint256 T4;
    uint256 T5;
    uint256 T6;
    uint256 T7;
    uint256 T8;
  }

  enum VaultType {
    Volatile,
    Stable
  }

  enum VaultMode {
    Empty,
    Stability,
    AdjustmentBelowAARS,
    AdjustmentAboveAARU
  }

  struct VaultState {
    uint256 M_ETH;
    uint256 P_ETH;
    uint256 P_ETH_DECIMALS;
    uint256 M_USB_ETH;
    uint256 M_ETHx;
    uint256 aar;
    uint256 AART;
    uint256 AARS;
    uint256 AARU;
    uint256 AARC;
    uint256 AARDecimals;
    uint256 RateR;
    uint256 AARBelowSafeLineTime;
    uint256 AARBelowCircuitBreakerLineTime;
  }

  struct StableVaultState {
    uint256 M_USDC;
    uint256 P_USDC;
    uint256 P_USDC_DECIMALS;
    uint256 M_USB_USDC;
    uint256 M_USDCx;
    uint256 aar;
    // uint256 AART;
    uint256 AARS;
    // uint256 AARU;
    // uint256 AARC;
    uint256 AARDecimals;
    uint256 RateR;
    uint256 AARBelowSafeLineTime;
  }

}

File 13 of 14 : TokensTransfer.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./Constants.sol";

library TokensTransfer {
  using SafeERC20 for IERC20;

  /// @dev Transfers a given amount of token.
  function transferTokens(
    address token,
    address from,
    address to,
    uint256 amount
  ) internal {
    if (token == Constants.NATIVE_TOKEN) {
      safeTransferNativeToken(from, to, amount);
    }
    else {
      safeTransferERC20(token, from, to, amount);
    }
  }

  /// @dev Transfers `amount` of native token to `to`.
  function safeTransferNativeToken(address from, address to, uint256 amount) internal {
    require(from != to, "Same address");
    require(from != address(0) && to != address(0), "Zero address");
    require(from == address(this) || to == address(this), "One of the addresses must be this contract");
    require(amount > 0, "Amount must be greater than 0");

    if (to == address(this)) {
      require(msg.value == amount, "Incorrect msg.value");
      return;
    }

    // solhint-disable avoid-low-level-calls
    // slither-disable-next-line low-level-calls
    (bool success, ) = to.call{ value: amount }("");
    require(success, "Native token transfer failed");
  }

  /// @dev Transfer `amount` of ERC20 token from `from` to `to`.
  function safeTransferERC20(
    address token,
    address from,
    address to,
    uint256 amount
  ) internal {
    require(from != to, "Same address");
    require(from != address(0) && to != address(0), "Zero address");
    // require(from == address(this) || to == address(this), "One of the addresses must be this contract");
    require(amount > 0, "Amount must be greater than 0");

    if (from == address(this)) {
      IERC20(token).safeTransfer(to, amount);
    }
    else {
      IERC20(token).safeTransferFrom(from, to, amount);
    }
  }
}

File 14 of 14 : ProtocolOwner.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/utils/Context.sol";
import "../interfaces/IWandProtocol.sol";

abstract contract ProtocolOwner is Context {
  IWandProtocol public immutable wandProtocol;

  constructor(address _wandProtocol_) {
    require(_wandProtocol_ != address(0), "Zero address detected");
    wandProtocol = IWandProtocol(_wandProtocol_);
  }

  modifier onlyProtocol() {
    require(_msgSender() == address(wandProtocol), "Ownable: caller is not the protocol");
    _;
  }

  modifier onlyOwner() {
    require(_msgSender() == IWandProtocol(wandProtocol).protocolOwner(), "Ownable: caller is not the owner");
    _;
  }

  function owner() public view returns(address) {
    return IWandProtocol(wandProtocol).protocolOwner();
  }
}

Settings
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 100,
    "details": {
      "yulDetails": {
        "optimizerSteps": "u"
      }
    }
  },
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_wandProtocol","type":"address"},{"internalType":"address","name":"_settings","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"configureBlastPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configureBlastYieldsAndGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"settings","outputs":[{"internalType":"contract IProtocolSettings","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wandProtocol","outputs":[{"internalType":"contract IWandProtocol","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e0604052346200006f576200001f6200001862000123565b90620001de565b6040516115eb620002a782396080518181816102530152610bba015260a051818181610188015261047a015260c051818181610109015281816104ee0152818161079d0152610ad301526115eb90f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f191681019081106001600160401b03821117620000ac57604052565b62000074565b90620000c9620000c160405190565b92836200008a565b565b6001600160a01b031690565b90565b6001600160a01b038116036200006f57565b90505190620000c982620000da565b91906040838203126200006f57620000d790620001198185620000ec565b93602001620000ec565b6200014662001892803803806200013a81620000b2565b928339810190620000fb565b9091565b620000cb620000d7620000d79290565b620000d7906200014a565b156200016d57565b60405162461bcd60e51b815260206004820152601560248201527f5a65726f206164647265737320646574656374656400000000000000000000006044820152606490fd5b620000d790620000cb906001600160a01b031682565b620000d790620001b2565b620000d790620001c8565b620002306200023992620001f162000290565b620002266200020160006200015a565b6001600160a01b0381166001600160a01b038616141590816200023e575b5062000165565b3360a052620001d3565b608052620001d3565b60c052565b6001600160a01b031690506001600160a01b0383161415386200021f565b620000d7620000d7620000d79290565b620000d760016200025c565b90620000d7620000d76200028c926200025c565b9055565b620000c96200029e6200026c565b60006200027856fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80633fef6dc11461008b5780634e29a333146100865780638da5cb5b14610081578063d9caed121461007c578063ddef195314610077578063e06174e4146100725763e3d670d70361000e5761028b565b61023e565b610226565b61020d565b61016f565b610139565b6100f4565b600091031261009b57565b600080fd5b6100b4906100b7906001600160a01b031682565b90565b6001600160a01b031690565b6100b4906100a0565b6100b4906100c3565b6100de906100cc565b9052565b6020810192916100f291906100d5565b565b3461009b57610104366004610090565b6101357f00000000000000000000000000000000000000000000000000000000000000005b604051918291826100e2565b0390f35b3461009b57610149366004610090565b61015161069f565b604051005b6100de906100b7565b6020810192916100f29190610156565b3461009b5761017f366004610090565b604051806101357f00000000000000000000000000000000000000000000000000000000000000008261015f565b6101b6816100b7565b0361009b57565b905035906100f2826101ad565b806101b6565b905035906100f2826101ca565b909160608284031261009b576100b46101f684846101bd565b9361020481602086016101bd565b936040016101d0565b3461009b576101516102203660046101dd565b91610d31565b3461009b57610236366004610090565b6101516108ed565b3461009b5761024e366004610090565b6101357f0000000000000000000000000000000000000000000000000000000000000000610129565b9060208282031261009b576100b4916101bd565b3461009b576101356102a66102a1366004610277565b610321565b6040515b9182918290815260200190565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176102ef57604052565b6102b7565b905051906100f2826101ca565b9060208282031261009b576100b4916102f4565b6040513d6000823e3d90fd5b61034373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6100b7565b6100b7565b61034c826100b7565b0361035f575061035b306100cc565b3190565b60206103756103706103a9936100cc565b6100cc565b6370a082319061039e610387306100cc565b9261039160405190565b9586948593849360e01b90565b83526004830161015f565b03915afa9081156103e7576000916103bf575090565b6100b4915060203d81116103e0575b6103d881836102cd565b810190610301565b503d6103ce565b610315565b6103f461073a565b6103fc61046d565b6100f2610776565b0190565b60208082526021908201527f546f6b656e506f743a2063616c6c6572206973206e6f7420746865206f776e656040820152603960f91b606082015260800190565b1561045057565b60405162461bcd60e51b81528061046960048201610408565b0390fd5b6104aa335b6104a461049e7f00000000000000000000000000000000000000000000000000000000000000006100b7565b916100b7565b14610449565b6100f26104e9565b905051906100f2826101ad565b9060208282031261009b576100b4916104b2565b6100b76100b46100b49290565b6100b4906104d3565b6105127f00000000000000000000000000000000000000000000000000000000000000006100cc565b6349d3d5e161052060405190565b9161052b8260e01b90565b8352602083600481845afa9283156103e75760009361067f575b5060009261055861049e61033e866104e0565b0361056257505050565b61057b9160209161057260405190565b93849260e01b90565b825260049082905afa9081156103e7576105a19161037091600091610651575b506100cc565b637114177a813b1561009b576105c06105b960405190565b9160e01b90565b8152828160048183865af180156103e757610635575b50634e606c4790803b1561009b576105f391839161057260405190565b8252818381600481015b03925af180156103e75761060f575050565b816100f292903d1061062e575b61062681836102cd565b810190610090565b503d61061c565b61064b90833d851161062e5761062681836102cd565b386105d6565b610672915060203d8111610678575b61066a81836102cd565b8101906104bf565b3861059b565b503d610660565b61069891935060203d81116106785761066a81836102cd565b9138610545565b6100f26103ec565b6100b49081565b6100b490546106a7565b6100b46100b46100b49290565b6100b460026106b8565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b1561070d57565b60405162461bcd60e51b815280610469600482016106cf565b906100b46100b4610736926106b8565b9055565b6100f261074760006106ae565b6107656107526106c5565b91829061075e565b9190565b1415610706565b6000610726565b6100b460016106b8565b6100f261076561076c565b61078961073a565b6103fc61079533610472565b6100f26107c17f00000000000000000000000000000000000000000000000000000000000000006100cc565b63095f363c906107da6107d360405190565b9260e01b90565b8252602082600481845afa9182156103e7576000926108c7575b50602061080a916340ae3e149061057260405190565b825260049082905afa9081156103e7576000916108a9575b5060009161082f836104e0565b610838816100b7565b610841836100b7565b1415908161088e575b5061085457505050565b610370610860916100cc565b906336b91f2b90823b1561009b576105fd9261039e85809461088160405190565b9687958694859360e01b90565b61089891506100b7565b6108a1836100b7565b14153861084a565b6108c1915060203d81116106785761066a81836102cd565b38610822565b61080a9192506108e5602091823d81116106785761066a81836102cd565b9291506107f4565b6100f2610781565b906103fc929161090361073a565b6100f292919061091233610472565b610a23565b60208082526015908201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b604082015260600190565b1561094d57565b60405162461bcd60e51b81528061046960048201610917565b6020808252600e908201526d125b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b1561099557565b60405162461bcd60e51b81528061046960048201610966565b6002111561009b57565b905051906100f2826109ae565b60808183031261009b576109d982826102f4565b926100b46109ea84602085016102f4565b936109f881604086016102f4565b936060016109b8565b9160206100f2929493610a1c60408201966000830190610156565b0190610156565b90610b0f90600093610a34856104e0565b91610a3e836100b7565b610a47866100b7565b141580610d12575b610a5890610946565b610a61866106b8565b821180610cf8575b610a729061098e565b610a7b306100cc565b94610a8883828885610d3c565b7fa4195c37c2947bbe89165f03e320b6903116f0b10d8cfdb522330f7ce6f9fa24610ac9610abf610ab980336100cc565b946100cc565b946102aa60405190565b0390a46020610af77f00000000000000000000000000000000000000000000000000000000000000006100cc565b6349d3d5e190610b0660405190565b94859260e01b90565b825260049082905afa9182156103e757600092610cd4575b50610b31906100b7565b610b3a826100b7565b03610b4457505050565b610370610b50916100cc565b9063dde798a4610b626105b960405190565b815260808180610b75856004830161015f565b0381865afa80156103e7576000918291610ca1575b50610b9761075a866106b8565b119081610c8c575b50610ba957505050565b610bf69163954fa5ee936020610bde7f00000000000000000000000000000000000000000000000000000000000000006100cc565b6361d027b390610bed60405190565b96879260e01b90565b825260049082905afa9384156103e757600094610c66575b50610c309060209495610c3b610c2360405190565b9788968795869460e01b90565b845260048401610a01565b03925af180156103e757610c4c5750565b610c639060203d81116103e0576103d881836102cd565b50565b6020945090610c84610c3092863d81116106785761066a81836102cd565b945090610c0e565b9050610c9a61075a856106b8565b1138610b9f565b9050610cc4915060803d8111610ccd575b610cbc81836102cd565b8101906109c5565b50919091610b8a565b503d610cb2565b610b31919250610cf19060203d81116106785761066a81836102cd565b9190610b27565b50610a72610d086100b483610321565b8311159050610a69565b50610a58610d1f846100b7565b610d28836100b7565b14159050610a4f565b906100f292916108f5565b929190610d5c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6100b7565b610d65856100b7565b03610d74576100f29350610fd5565b6100f2936110ea565b6020808252600c908201526b53616d65206164647265737360a01b604082015260600190565b15610daa57565b60405162461bcd60e51b81528061046960048201610d7d565b6020808252600c908201526b5a65726f206164647265737360a01b604082015260600190565b15610df057565b60405162461bcd60e51b81528061046960048201610dc3565b6020808252602a908201527f4f6e65206f662074686520616464726573736573206d757374206265207468696040820152691cc818dbdb9d1c9858dd60b21b606082015260800190565b15610e5a57565b60405162461bcd60e51b81528061046960048201610e09565b6020808252601d908201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604082015260600190565b15610eb157565b60405162461bcd60e51b81528061046960048201610e73565b602080825260139082015272496e636f7272656374206d73672e76616c756560681b604082015260600190565b15610efe57565b60405162461bcd60e51b81528061046960048201610eca565b906100f2610f2460405190565b92836102cd565b67ffffffffffffffff81116102ef57602090601f01601f19160190565b90610f5a610f5583610f2b565b610f17565b918252565b3d15610f7957610f6e3d610f48565b903d6000602084013e565b606090565b6020808252601c908201527f4e617469766520746f6b656e207472616e73666572206661696c656400000000604082015260600190565b15610fbc57565b60405162461bcd60e51b81528061046960048201610f7e565b90610ff2610fe2826100b7565b610feb846100b7565b1415610da3565b611060600092611025611004856104e0565b61100d816100b7565b611016846100b7565b141590816110cf575b50610de9565b61102e306100cc565b9061103b61049e836100b7565b1480156110b1575b61104c90610e53565b61033e611058856106b8565b865b11610eaa565b611069826100b7565b1461109a5781906100f29361107d60405190565b9081611088816100b4565b03925af1611094610f5f565b50610fb5565b50506100f2906110ab61075a349290565b14610ef7565b5061104c6110be826100b7565b6110c7856100b7565b149050611043565b6110d991506100b7565b6110e2856100b7565b14153861101f565b9291906111026110f9836100b7565b610feb836100b7565b61114161113b6000611136611116826104e0565b61111f816100b7565b611128876100b7565b1415908161117e5750610de9565b6106b8565b8461105a565b61114d61033e306100cc565b611156826100b7565b0361116d57506111686100f2936100cc565b6111d6565b6111796100f2946100cc565b611248565b61118891506100b7565b6110e2876100b7565b6111aa6111a46100b49263ffffffff1690565b60e01b90565b6001600160e01b03191690565b9160206100f29294936111d260408201966000830190610156565b0152565b61121960049261120a6100f2956111f063a9059cbb611191565b926111fa60405190565b96879460208601908152016111b7565b602082018103825203836102cd565b61134c565b6040906111d26100f2949695939661123e60608401986000850190610156565b6020830190610156565b906112199061120a6100f2956004956112646323b872dd611191565b9361126e60405190565b978895602087019081520161121e565b6112886020610f48565b7f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564602082015290565b6100b461127e565b8015156101b6565b905051906100f2826112b9565b9060208282031261009b576100b4916112c1565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b1561133357565b60405162461bcd60e51b815280610469600482016112e2565b6100f29161135c61136b926100cc565b906113656112b1565b916113a9565b805161137a61075a60006106b8565b14908115611389575b5061132c565b6113a391506020611398825190565b8183010191016112ce565b38611383565b6100b492916113b860006106b8565b91611424565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b1561140b57565b60405162461bcd60e51b815280610469600482016113be565b9060006100b494938192611436606090565b5061144d611443306100cc565b8390311015611404565b60208101905191855af161145f610f5f565b916114bc565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b156114a357565b60405162461bcd60e51b81528061046960048201611465565b919290156114ee575081516114d461075a60006106b8565b146114dd575090565b6114e96100b4916114f4565b61149c565b8261156e565b3b61150261075a60006106b8565b1190565b60005b8381106115195750506000910152565b8181015183820152602001611509565b61154a6115536020936104049361153e815190565b80835293849260200190565b95869101611506565b601f01601f191690565b60208082526100b492910190611529565b90611577825190565b61158461075a60006106b8565b11156115935750805190602001fd5b610469906115a060405190565b62461bcd60e51b81529182916004830161155d56fea26469706673582212201e7c7c7bc36c12b89caf700f5cdfb9fb8166a9843a51e36321d55a3a82c5e7bc64736f6c6343000812003300000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933

Deployed Bytecode

0x6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80633fef6dc11461008b5780634e29a333146100865780638da5cb5b14610081578063d9caed121461007c578063ddef195314610077578063e06174e4146100725763e3d670d70361000e5761028b565b61023e565b610226565b61020d565b61016f565b610139565b6100f4565b600091031261009b57565b600080fd5b6100b4906100b7906001600160a01b031682565b90565b6001600160a01b031690565b6100b4906100a0565b6100b4906100c3565b6100de906100cc565b9052565b6020810192916100f291906100d5565b565b3461009b57610104366004610090565b6101357f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b5b604051918291826100e2565b0390f35b3461009b57610149366004610090565b61015161069f565b604051005b6100de906100b7565b6020810192916100f29190610156565b3461009b5761017f366004610090565b604051806101357f000000000000000000000000691867213c0d43c167e7c035e489ae36f32861418261015f565b6101b6816100b7565b0361009b57565b905035906100f2826101ad565b806101b6565b905035906100f2826101ca565b909160608284031261009b576100b46101f684846101bd565b9361020481602086016101bd565b936040016101d0565b3461009b576101516102203660046101dd565b91610d31565b3461009b57610236366004610090565b6101516108ed565b3461009b5761024e366004610090565b6101357f0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933610129565b9060208282031261009b576100b4916101bd565b3461009b576101356102a66102a1366004610277565b610321565b6040515b9182918290815260200190565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176102ef57604052565b6102b7565b905051906100f2826101ca565b9060208282031261009b576100b4916102f4565b6040513d6000823e3d90fd5b61034373eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6100b7565b6100b7565b61034c826100b7565b0361035f575061035b306100cc565b3190565b60206103756103706103a9936100cc565b6100cc565b6370a082319061039e610387306100cc565b9261039160405190565b9586948593849360e01b90565b83526004830161015f565b03915afa9081156103e7576000916103bf575090565b6100b4915060203d81116103e0575b6103d881836102cd565b810190610301565b503d6103ce565b610315565b6103f461073a565b6103fc61046d565b6100f2610776565b0190565b60208082526021908201527f546f6b656e506f743a2063616c6c6572206973206e6f7420746865206f776e656040820152603960f91b606082015260800190565b1561045057565b60405162461bcd60e51b81528061046960048201610408565b0390fd5b6104aa335b6104a461049e7f000000000000000000000000691867213c0d43c167e7c035e489ae36f32861416100b7565b916100b7565b14610449565b6100f26104e9565b905051906100f2826101ad565b9060208282031261009b576100b4916104b2565b6100b76100b46100b49290565b6100b4906104d3565b6105127f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6100cc565b6349d3d5e161052060405190565b9161052b8260e01b90565b8352602083600481845afa9283156103e75760009361067f575b5060009261055861049e61033e866104e0565b0361056257505050565b61057b9160209161057260405190565b93849260e01b90565b825260049082905afa9081156103e7576105a19161037091600091610651575b506100cc565b637114177a813b1561009b576105c06105b960405190565b9160e01b90565b8152828160048183865af180156103e757610635575b50634e606c4790803b1561009b576105f391839161057260405190565b8252818381600481015b03925af180156103e75761060f575050565b816100f292903d1061062e575b61062681836102cd565b810190610090565b503d61061c565b61064b90833d851161062e5761062681836102cd565b386105d6565b610672915060203d8111610678575b61066a81836102cd565b8101906104bf565b3861059b565b503d610660565b61069891935060203d81116106785761066a81836102cd565b9138610545565b6100f26103ec565b6100b49081565b6100b490546106a7565b6100b46100b46100b49290565b6100b460026106b8565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b1561070d57565b60405162461bcd60e51b815280610469600482016106cf565b906100b46100b4610736926106b8565b9055565b6100f261074760006106ae565b6107656107526106c5565b91829061075e565b9190565b1415610706565b6000610726565b6100b460016106b8565b6100f261076561076c565b61078961073a565b6103fc61079533610472565b6100f26107c17f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6100cc565b63095f363c906107da6107d360405190565b9260e01b90565b8252602082600481845afa9182156103e7576000926108c7575b50602061080a916340ae3e149061057260405190565b825260049082905afa9081156103e7576000916108a9575b5060009161082f836104e0565b610838816100b7565b610841836100b7565b1415908161088e575b5061085457505050565b610370610860916100cc565b906336b91f2b90823b1561009b576105fd9261039e85809461088160405190565b9687958694859360e01b90565b61089891506100b7565b6108a1836100b7565b14153861084a565b6108c1915060203d81116106785761066a81836102cd565b38610822565b61080a9192506108e5602091823d81116106785761066a81836102cd565b9291506107f4565b6100f2610781565b906103fc929161090361073a565b6100f292919061091233610472565b610a23565b60208082526015908201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b604082015260600190565b1561094d57565b60405162461bcd60e51b81528061046960048201610917565b6020808252600e908201526d125b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b1561099557565b60405162461bcd60e51b81528061046960048201610966565b6002111561009b57565b905051906100f2826109ae565b60808183031261009b576109d982826102f4565b926100b46109ea84602085016102f4565b936109f881604086016102f4565b936060016109b8565b9160206100f2929493610a1c60408201966000830190610156565b0190610156565b90610b0f90600093610a34856104e0565b91610a3e836100b7565b610a47866100b7565b141580610d12575b610a5890610946565b610a61866106b8565b821180610cf8575b610a729061098e565b610a7b306100cc565b94610a8883828885610d3c565b7fa4195c37c2947bbe89165f03e320b6903116f0b10d8cfdb522330f7ce6f9fa24610ac9610abf610ab980336100cc565b946100cc565b946102aa60405190565b0390a46020610af77f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6100cc565b6349d3d5e190610b0660405190565b94859260e01b90565b825260049082905afa9182156103e757600092610cd4575b50610b31906100b7565b610b3a826100b7565b03610b4457505050565b610370610b50916100cc565b9063dde798a4610b626105b960405190565b815260808180610b75856004830161015f565b0381865afa80156103e7576000918291610ca1575b50610b9761075a866106b8565b119081610c8c575b50610ba957505050565b610bf69163954fa5ee936020610bde7f0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f879336100cc565b6361d027b390610bed60405190565b96879260e01b90565b825260049082905afa9384156103e757600094610c66575b50610c309060209495610c3b610c2360405190565b9788968795869460e01b90565b845260048401610a01565b03925af180156103e757610c4c5750565b610c639060203d81116103e0576103d881836102cd565b50565b6020945090610c84610c3092863d81116106785761066a81836102cd565b945090610c0e565b9050610c9a61075a856106b8565b1138610b9f565b9050610cc4915060803d8111610ccd575b610cbc81836102cd565b8101906109c5565b50919091610b8a565b503d610cb2565b610b31919250610cf19060203d81116106785761066a81836102cd565b9190610b27565b50610a72610d086100b483610321565b8311159050610a69565b50610a58610d1f846100b7565b610d28836100b7565b14159050610a4f565b906100f292916108f5565b929190610d5c73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6100b7565b610d65856100b7565b03610d74576100f29350610fd5565b6100f2936110ea565b6020808252600c908201526b53616d65206164647265737360a01b604082015260600190565b15610daa57565b60405162461bcd60e51b81528061046960048201610d7d565b6020808252600c908201526b5a65726f206164647265737360a01b604082015260600190565b15610df057565b60405162461bcd60e51b81528061046960048201610dc3565b6020808252602a908201527f4f6e65206f662074686520616464726573736573206d757374206265207468696040820152691cc818dbdb9d1c9858dd60b21b606082015260800190565b15610e5a57565b60405162461bcd60e51b81528061046960048201610e09565b6020808252601d908201527f416d6f756e74206d7573742062652067726561746572207468616e2030000000604082015260600190565b15610eb157565b60405162461bcd60e51b81528061046960048201610e73565b602080825260139082015272496e636f7272656374206d73672e76616c756560681b604082015260600190565b15610efe57565b60405162461bcd60e51b81528061046960048201610eca565b906100f2610f2460405190565b92836102cd565b67ffffffffffffffff81116102ef57602090601f01601f19160190565b90610f5a610f5583610f2b565b610f17565b918252565b3d15610f7957610f6e3d610f48565b903d6000602084013e565b606090565b6020808252601c908201527f4e617469766520746f6b656e207472616e73666572206661696c656400000000604082015260600190565b15610fbc57565b60405162461bcd60e51b81528061046960048201610f7e565b90610ff2610fe2826100b7565b610feb846100b7565b1415610da3565b611060600092611025611004856104e0565b61100d816100b7565b611016846100b7565b141590816110cf575b50610de9565b61102e306100cc565b9061103b61049e836100b7565b1480156110b1575b61104c90610e53565b61033e611058856106b8565b865b11610eaa565b611069826100b7565b1461109a5781906100f29361107d60405190565b9081611088816100b4565b03925af1611094610f5f565b50610fb5565b50506100f2906110ab61075a349290565b14610ef7565b5061104c6110be826100b7565b6110c7856100b7565b149050611043565b6110d991506100b7565b6110e2856100b7565b14153861101f565b9291906111026110f9836100b7565b610feb836100b7565b61114161113b6000611136611116826104e0565b61111f816100b7565b611128876100b7565b1415908161117e5750610de9565b6106b8565b8461105a565b61114d61033e306100cc565b611156826100b7565b0361116d57506111686100f2936100cc565b6111d6565b6111796100f2946100cc565b611248565b61118891506100b7565b6110e2876100b7565b6111aa6111a46100b49263ffffffff1690565b60e01b90565b6001600160e01b03191690565b9160206100f29294936111d260408201966000830190610156565b0152565b61121960049261120a6100f2956111f063a9059cbb611191565b926111fa60405190565b96879460208601908152016111b7565b602082018103825203836102cd565b61134c565b6040906111d26100f2949695939661123e60608401986000850190610156565b6020830190610156565b906112199061120a6100f2956004956112646323b872dd611191565b9361126e60405190565b978895602087019081520161121e565b6112886020610f48565b7f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564602082015290565b6100b461127e565b8015156101b6565b905051906100f2826112b9565b9060208282031261009b576100b4916112c1565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b1561133357565b60405162461bcd60e51b815280610469600482016112e2565b6100f29161135c61136b926100cc565b906113656112b1565b916113a9565b805161137a61075a60006106b8565b14908115611389575b5061132c565b6113a391506020611398825190565b8183010191016112ce565b38611383565b6100b492916113b860006106b8565b91611424565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b1561140b57565b60405162461bcd60e51b815280610469600482016113be565b9060006100b494938192611436606090565b5061144d611443306100cc565b8390311015611404565b60208101905191855af161145f610f5f565b916114bc565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b156114a357565b60405162461bcd60e51b81528061046960048201611465565b919290156114ee575081516114d461075a60006106b8565b146114dd575090565b6114e96100b4916114f4565b61149c565b8261156e565b3b61150261075a60006106b8565b1190565b60005b8381106115195750506000910152565b8181015183820152602001611509565b61154a6115536020936104049361153e815190565b80835293849260200190565b95869101611506565b601f01601f191690565b60208082526100b492910190611529565b90611577825190565b61158461075a60006106b8565b11156115935750805190602001fd5b610469906115a060405190565b62461bcd60e51b81529182916004830161155d56fea26469706673582212201e7c7c7bc36c12b89caf700f5cdfb9fb8166a9843a51e36321d55a3a82c5e7bc64736f6c63430008120033

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

00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933

-----Decoded View---------------
Arg [0] : _wandProtocol (address): 0x31e9026bf3A20FA3250a94caD5E6BFbE203B001B
Arg [1] : _settings (address): 0x7449dc43a03e70050c4AcD3F8A6acab9A7F87933

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b
Arg [1] : 0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
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.