FRAX Price: $1.03 (+6.21%)

Contract

0xc98c0e3805364D9F2dA73945e1fB4a13EB81c1cE

Overview

FRAX Balance | FXTL Balance

0 FRAX | 39 FXTL

FRAX Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Unyield266223462025-10-10 0:16:43106 days ago1760055403IN
0xc98c0e38...3EB81c1cE
0 FRAX0.00001430.00100025
Yield265108372025-10-07 10:19:45109 days ago1759832385IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000015610.00100025
Approve Token Fo...265108362025-10-07 10:19:43109 days ago1759832383IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000012010.00100025
Unyield265108352025-10-07 10:19:41109 days ago1759832381IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000014070.00100025
Yield261588632025-09-29 6:47:17117 days ago1759128437IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000018940.00100038
Approve Token Fo...261588612025-09-29 6:47:13117 days ago1759128433IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000014660.00100038
Unyield261588582025-09-29 6:47:07117 days ago1759128427IN
0xc98c0e38...3EB81c1cE
0 FRAX0.00001740.00100038
Yield261134592025-09-28 5:33:49118 days ago1759037629IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000014160.00100134
Approve Token Fo...261134572025-09-28 5:33:45118 days ago1759037625IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000010950.00100135
Unyield261134552025-09-28 5:33:41118 days ago1759037621IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000012830.00100135
Yield257636492025-09-20 3:13:29126 days ago1758338009IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000019990.00100026
Approve Token Fo...257636472025-09-20 3:13:25126 days ago1758338005IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000015470.00100026
Unyield257636452025-09-20 3:13:21126 days ago1758338001IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000018430.00100025
Yield254686232025-09-13 7:19:17133 days ago1757747957IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000018510.00100814
Approve Token Fo...254686202025-09-13 7:19:11133 days ago1757747951IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000014310.00100813
Unyield254686182025-09-13 7:19:07133 days ago1757747947IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000016750.00100819
Yield244470092025-08-20 15:45:29157 days ago1755704729IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000243990.00100025
Approve Token Fo...244470072025-08-20 15:45:25157 days ago1755704725IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000194390.00100025
Deposit244469912025-08-20 15:44:53157 days ago1755704693IN
0xc98c0e38...3EB81c1cE
0 FRAX0.000196730.001

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
244469492025-08-20 15:43:29157 days ago1755704609  Contract Creation0 FRAX

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xb63A4d5e...385A33a8f
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Vault

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 832 runs

Other Settings:
shanghai EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "./IVaultCreator.sol";
import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

contract Vault is ReentrancyGuard {
    using SafeERC20 for IERC20;

    address public immutable userAddress; // The primary user of this vault
    IVaultCreator public immutable vaultCreator; // To check whitelisted protocols and get admin/bot addresses

    event Deposited(address indexed token, address indexed user, uint256 amount);
    event Withdrawn(address indexed token, address indexed recipient, uint256 amount);
    event Approved(address indexed token, address indexed spender, uint256 amount);
    event Yielded(address indexed targetProtocol, bytes params, string reason, address caller);
    event Unyielded(address indexed targetProtocol, bytes params, address caller);

    modifier onlyUser() {
        require(msg.sender == userAddress, "Vault: Not user");
        _;
    }

    modifier onlyBot() {
        require(msg.sender == vaultCreator.botAddress(), "Vault: Not bot");
        _;
    }

    modifier onlyAdmin() {
        require(msg.sender == vaultCreator.admin(), "Vault: Not admin");
        _;
    }

    modifier onlyUserOrAdmin() {
        require(msg.sender == userAddress || msg.sender == vaultCreator.admin(), "Vault: Not user or admin");
        _;
    }

    modifier onlyBotUserOrAdmin() {
        address botAddr = vaultCreator.botAddress();
        address adminAddr = vaultCreator.admin();
        require(msg.sender == botAddr || msg.sender == userAddress || msg.sender == adminAddr, "Vault: Not authorized");
        _;
    }

    constructor(address _userAddress, address _vaultCreatorAddress) {
        require(_userAddress != address(0), "Vault: Invalid user address");
        require(_vaultCreatorAddress != address(0), "Vault: Invalid vault creator address");

        userAddress = _userAddress;
        vaultCreator = IVaultCreator(_vaultCreatorAddress);
    }

    function deposit(address token, uint256 amount) external onlyUser nonReentrant {
        require(token != address(0), "Vault: Invalid token address");
        require(amount > 0, "Vault: Amount must be greater than 0");

        IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        emit Deposited(token, msg.sender, amount);
    }

    function withdraw(address token, uint256 amount) external onlyUserOrAdmin nonReentrant {
        require(amount > 0, "Vault: Amount must be greater than 0");

        if (token == address(0)) {
            require(address(this).balance >= amount, "Vault: Insufficient gas token balance");
            (bool success,) = payable(msg.sender).call{ value: amount }("");
            require(success, "Vault: Gas token transfer failed");
        } else {
            IERC20(token).safeTransfer(msg.sender, amount);
        }

        emit Withdrawn(token, msg.sender, amount);
    }

    function approveTokenForProtocol(
        address token,
        address protocolSpender,
        uint256 amount
    )
        external
        onlyBot
        nonReentrant
    {
        require(token != address(0), "Vault: Invalid token address");
        require(protocolSpender != address(0), "Vault: Invalid spender address");
        require(vaultCreator.isProtocolWhitelisted(protocolSpender), "Vault: Protocol not whitelisted");

        IERC20(token).approve(protocolSpender, amount);
        emit Approved(token, protocolSpender, amount);
    }

    function yield(
        address targetProtocol,
        bytes calldata callParams,
        uint256 valueToSend,
        string calldata reason
    )
        external
        payable
        onlyBot
        nonReentrant
    {
        require(targetProtocol != address(0), "Vault: Invalid target protocol");
        require(vaultCreator.isProtocolWhitelisted(targetProtocol), "Vault: Protocol not whitelisted for yield");
        require(address(this).balance >= valueToSend, "Vault: Insufficient gas token balance for call");

        (bool success, bytes memory returnData) = targetProtocol.call{ value: valueToSend }(callParams);
        require(success, _getRevertMsg(returnData, "Vault: Yield call failed"));

        emit Yielded(targetProtocol, callParams, reason, msg.sender);
    }

    function unyield(
        address targetProtocol,
        bytes calldata callParams,
        uint256 valueToSend
    )
        external
        payable
        onlyBotUserOrAdmin
        nonReentrant
    {
        require(targetProtocol != address(0), "Vault: Invalid target protocol");
        require(address(this).balance >= valueToSend, "Vault: Insufficient gas token balance for call");

        if (msg.sender == vaultCreator.botAddress()) {
            require(
                vaultCreator.isProtocolWhitelisted(targetProtocol), "Vault: Protocol not whitelisted for bot unyield"
            );
        }

        (bool success, bytes memory returnData) = targetProtocol.call{ value: valueToSend }(callParams);
        require(success, _getRevertMsg(returnData, "Vault: Unyield call failed"));

        emit Unyielded(targetProtocol, callParams, msg.sender);
    }

    function getBotAddress() external view returns (address) {
        return vaultCreator.botAddress();
    }

    function getAdminAddress() external view returns (address) {
        return vaultCreator.admin();
    }

    receive() external payable { }

    function _getRevertMsg(bytes memory _returnData, string memory _defaultMsg) internal pure returns (string memory) {
        if (_returnData.length < 68) return _defaultMsg;
        assembly {
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string));
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IVaultCreator {
    function isProtocolWhitelisted(address protocol) external view returns (bool);
    function botAddress() external view returns (address);
    function admin() external view returns (address); // The admin of VaultCreator
}

File 3 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, 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.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

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

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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 silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * 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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 832
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"address","name":"_vaultCreatorAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"targetProtocol","type":"address"},{"indexed":false,"internalType":"bytes","name":"params","type":"bytes"},{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"Unyielded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"targetProtocol","type":"address"},{"indexed":false,"internalType":"bytes","name":"params","type":"bytes"},{"indexed":false,"internalType":"string","name":"reason","type":"string"},{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"Yielded","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"protocolSpender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveTokenForProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAdminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBotAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"targetProtocol","type":"address"},{"internalType":"bytes","name":"callParams","type":"bytes"},{"internalType":"uint256","name":"valueToSend","type":"uint256"}],"name":"unyield","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"userAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultCreator","outputs":[{"internalType":"contract IVaultCreator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"targetProtocol","type":"address"},{"internalType":"bytes","name":"callParams","type":"bytes"},{"internalType":"uint256","name":"valueToSend","type":"uint256"},{"internalType":"string","name":"reason","type":"string"}],"name":"yield","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x60c060405234801562000010575f80fd5b5060405162001a2238038062001a2283398101604081905262000033916200012b565b60015f556001600160a01b038216620000935760405162461bcd60e51b815260206004820152601b60248201527f5661756c743a20496e76616c696420757365722061646472657373000000000060448201526064015b60405180910390fd5b6001600160a01b038116620000f75760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20496e76616c6964207661756c742063726561746f72206164646044820152637265737360e01b60648201526084016200008a565b6001600160a01b039182166080521660a05262000161565b80516001600160a01b038116811462000126575f80fd5b919050565b5f80604083850312156200013d575f80fd5b62000148836200010f565b915062000158602084016200010f565b90509250929050565b60805160a05161183d620001e55f395f81816101ae0152818161036c015281816103ef015281816105d4015281816106800152818161087501528181610a1701528181610b9b01528181610c2001528181610d6c01528181610fb2015261104001525f818161015c015281816101db0152818161048c0152611017015261183d5ff3fe608060405260043610610096575f3560e01c8063c016b70e11610066578063e4128fb31161004c578063e4128fb31461014b578063f3fef3a31461017e578063fe3a6d881461019d575f80fd5b8063c016b70e14610124578063c2fdda7d14610137575f80fd5b806347e7ef24146100a157806354d79813146100c25780637ea9ac2b146100d5578063b2e6b912146100f4575f80fd5b3661009d57005b5f80fd5b3480156100ac575f80fd5b506100c06100bb366004611486565b6101d0565b005b6100c06100d03660046114f5565b610369565b3480156100e0575f80fd5b506100c06100ef36600461154d565b610873565b3480156100ff575f80fd5b50610108610b98565b6040516001600160a01b03909116815260200160405180910390f35b6100c061013236600461158b565b610c1e565b348015610142575f80fd5b50610108610faf565b348015610156575f80fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b348015610189575f80fd5b506100c0610198366004611486565b61100c565b3480156101a8575f80fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461024d5760405162461bcd60e51b815260206004820152600f60248201527f5661756c743a204e6f742075736572000000000000000000000000000000000060448201526064015b60405180910390fd5b6102556112f2565b6001600160a01b0382166102ab5760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b5f81116103065760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b61031b6001600160a01b03831633308461131a565b60405181815233906001600160a01b038416907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a361036560015f55565b5050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ea9190611611565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610449573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061046d9190611611565b9050336001600160a01b03831614806104ae5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b806104c15750336001600160a01b038216145b61050d5760405162461bcd60e51b815260206004820152601560248201527f5661756c743a204e6f7420617574686f72697a656400000000000000000000006044820152606401610244565b6105156112f2565b6001600160a01b03861661056b5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b824710156105d25760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106529190611611565b6001600160a01b0316330361075b576040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa1580156106c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e99190611633565b61075b5760405162461bcd60e51b815260206004820152602f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f7220626f7420756e7969656c6400000000000000000000000000000000006064820152608401610244565b5f80876001600160a01b0316858888604051610778929190611652565b5f6040518083038185875af1925050503d805f81146107b2576040519150601f19603f3d011682016040523d82523d5f602084013e6107b7565b606091505b5091509150816107fc826040518060400160405280601a81526020017f5661756c743a20556e7969656c642063616c6c206661696c656400000000000081525061139c565b9061081a5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f57a958e4bb0f3c5ca1d328c43ef53e2c8fa1c35ae6325238ddf1ffd8169e1da7888833604051610858939291906116dd565b60405180910390a2505061086b60015f55565b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108cf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f39190611611565b6001600160a01b0316336001600160a01b0316146109445760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b61094c6112f2565b6001600160a01b0383166109a25760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b6001600160a01b0382166109f85760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207370656e646572206164647265737300006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa158015610a5c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a809190611633565b610acc5760405162461bcd60e51b815260206004820152601f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c6973746564006044820152606401610244565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303815f875af1158015610b18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b3c9190611633565b50816001600160a01b0316836001600160a01b03167f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9083604051610b8291815260200190565b60405180910390a3610b9360015f55565b505050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c199190611611565b905090565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c7a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9e9190611611565b6001600160a01b0316336001600160a01b031614610cef5760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b610cf76112f2565b6001600160a01b038616610d4d5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa158015610db1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dd59190611633565b610e475760405162461bcd60e51b815260206004820152602960248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f72207969656c6400000000000000000000000000000000000000000000006064820152608401610244565b82471015610eae5760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b5f80876001600160a01b0316858888604051610ecb929190611652565b5f6040518083038185875af1925050503d805f8114610f05576040519150601f19603f3d011682016040523d82523d5f602084013e610f0a565b606091505b509150915081610f4f826040518060400160405280601881526020017f5661756c743a205969656c642063616c6c206661696c6564000000000000000081525061139c565b90610f6d5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f8f19e6e133625f31c4ebd7c1c984dcdddac5793155aa96461bfe84eabab0086a8888878733604051610858959493929190611709565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110d357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110be9190611611565b6001600160a01b0316336001600160a01b0316145b61111f5760405162461bcd60e51b815260206004820152601860248201527f5661756c743a204e6f742075736572206f722061646d696e00000000000000006044820152606401610244565b6111276112f2565b5f81116111825760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b6001600160a01b0382166112a157804710156112065760405162461bcd60e51b815260206004820152602560248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201527f6c616e63650000000000000000000000000000000000000000000000000000006064820152608401610244565b6040515f90339083908381818185875af1925050503d805f8114611245576040519150601f19603f3d011682016040523d82523d5f602084013e61124a565b606091505b505090508061129b5760405162461bcd60e51b815260206004820181905260248201527f5661756c743a2047617320746f6b656e207472616e73666572206661696c65646044820152606401610244565b506112b5565b6112b56001600160a01b03831633836113d2565b60405181815233906001600160a01b038416907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb90602001610354565b60025f540361131457604051633ee5aeb560e01b815260040160405180910390fd5b60025f55565b6040516001600160a01b0384811660248301528381166044830152606482018390526113969186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611403565b50505050565b60606044835110156113af5750806113cc565b600483019250828060200190518101906113c9919061175f565b90505b92915050565b6040516001600160a01b03838116602483015260448201839052610b9391859182169063a9059cbb9060640161134f565b5f8060205f8451602086015f885af180611422576040513d5f823e3d81fd5b50505f513d91508115611439578060011415611446565b6001600160a01b0384163b155b1561139657604051635274afe760e01b81526001600160a01b0385166004820152602401610244565b6001600160a01b0381168114611483575f80fd5b50565b5f8060408385031215611497575f80fd5b82356114a28161146f565b946020939093013593505050565b5f8083601f8401126114c0575f80fd5b50813567ffffffffffffffff8111156114d7575f80fd5b6020830191508360208285010111156114ee575f80fd5b9250929050565b5f805f8060608587031215611508575f80fd5b84356115138161146f565b9350602085013567ffffffffffffffff81111561152e575f80fd5b61153a878288016114b0565b9598909750949560400135949350505050565b5f805f6060848603121561155f575f80fd5b833561156a8161146f565b9250602084013561157a8161146f565b929592945050506040919091013590565b5f805f805f80608087890312156115a0575f80fd5b86356115ab8161146f565b9550602087013567ffffffffffffffff808211156115c7575f80fd5b6115d38a838b016114b0565b90975095506040890135945060608901359150808211156115f2575f80fd5b506115ff89828a016114b0565b979a9699509497509295939492505050565b5f60208284031215611621575f80fd5b815161162c8161146f565b9392505050565b5f60208284031215611643575f80fd5b8151801515811461162c575f80fd5b818382375f9101908152919050565b5f5b8381101561167b578181015183820152602001611663565b50505f910152565b602081525f82518060208401526116a1816040850160208701611661565b601f01601f19169190910160400192915050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b604081525f6116f06040830185876116b5565b90506001600160a01b0383166020830152949350505050565b606081525f61171c6060830187896116b5565b828103602084015261172f8186886116b5565b9150506001600160a01b03831660408301529695505050505050565b634e487b7160e01b5f52604160045260245ffd5b5f6020828403121561176f575f80fd5b815167ffffffffffffffff80821115611786575f80fd5b818401915084601f830112611799575f80fd5b8151818111156117ab576117ab61174b565b604051601f8201601f19908116603f011681019083821181831017156117d3576117d361174b565b816040528281528760208487010111156117eb575f80fd5b6117fc836020830160208801611661565b97965050505050505056fea2646970667358221220373dd486bd28ffc5bf34778e25697c7ddcee383ebfdc6b294404879d46b054e864736f6c63430008140033000000000000000000000000078ef0ba848ee19750daf6f06ab1af3add271efe00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d51

Deployed Bytecode

0x608060405260043610610096575f3560e01c8063c016b70e11610066578063e4128fb31161004c578063e4128fb31461014b578063f3fef3a31461017e578063fe3a6d881461019d575f80fd5b8063c016b70e14610124578063c2fdda7d14610137575f80fd5b806347e7ef24146100a157806354d79813146100c25780637ea9ac2b146100d5578063b2e6b912146100f4575f80fd5b3661009d57005b5f80fd5b3480156100ac575f80fd5b506100c06100bb366004611486565b6101d0565b005b6100c06100d03660046114f5565b610369565b3480156100e0575f80fd5b506100c06100ef36600461154d565b610873565b3480156100ff575f80fd5b50610108610b98565b6040516001600160a01b03909116815260200160405180910390f35b6100c061013236600461158b565b610c1e565b348015610142575f80fd5b50610108610faf565b348015610156575f80fd5b506101087f000000000000000000000000078ef0ba848ee19750daf6f06ab1af3add271efe81565b348015610189575f80fd5b506100c0610198366004611486565b61100c565b3480156101a8575f80fd5b506101087f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d5181565b336001600160a01b037f000000000000000000000000078ef0ba848ee19750daf6f06ab1af3add271efe161461024d5760405162461bcd60e51b815260206004820152600f60248201527f5661756c743a204e6f742075736572000000000000000000000000000000000060448201526064015b60405180910390fd5b6102556112f2565b6001600160a01b0382166102ab5760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b5f81116103065760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b61031b6001600160a01b03831633308461131a565b60405181815233906001600160a01b038416907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a361036560015f55565b5050565b5f7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ea9190611611565b90505f7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610449573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061046d9190611611565b9050336001600160a01b03831614806104ae5750336001600160a01b037f000000000000000000000000078ef0ba848ee19750daf6f06ab1af3add271efe16145b806104c15750336001600160a01b038216145b61050d5760405162461bcd60e51b815260206004820152601560248201527f5661756c743a204e6f7420617574686f72697a656400000000000000000000006044820152606401610244565b6105156112f2565b6001600160a01b03861661056b5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b824710156105d25760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106529190611611565b6001600160a01b0316330361075b576040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d511690639387bbd490602401602060405180830381865afa1580156106c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e99190611633565b61075b5760405162461bcd60e51b815260206004820152602f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f7220626f7420756e7969656c6400000000000000000000000000000000006064820152608401610244565b5f80876001600160a01b0316858888604051610778929190611652565b5f6040518083038185875af1925050503d805f81146107b2576040519150601f19603f3d011682016040523d82523d5f602084013e6107b7565b606091505b5091509150816107fc826040518060400160405280601a81526020017f5661756c743a20556e7969656c642063616c6c206661696c656400000000000081525061139c565b9061081a5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f57a958e4bb0f3c5ca1d328c43ef53e2c8fa1c35ae6325238ddf1ffd8169e1da7888833604051610858939291906116dd565b60405180910390a2505061086b60015f55565b505050505050565b7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108cf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f39190611611565b6001600160a01b0316336001600160a01b0316146109445760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b61094c6112f2565b6001600160a01b0383166109a25760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b6001600160a01b0382166109f85760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207370656e646572206164647265737300006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0383811660048301527f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d511690639387bbd490602401602060405180830381865afa158015610a5c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a809190611633565b610acc5760405162461bcd60e51b815260206004820152601f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c6973746564006044820152606401610244565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303815f875af1158015610b18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b3c9190611633565b50816001600160a01b0316836001600160a01b03167f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9083604051610b8291815260200190565b60405180910390a3610b9360015f55565b505050565b5f7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c199190611611565b905090565b7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c7a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9e9190611611565b6001600160a01b0316336001600160a01b031614610cef5760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b610cf76112f2565b6001600160a01b038616610d4d5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d511690639387bbd490602401602060405180830381865afa158015610db1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dd59190611633565b610e475760405162461bcd60e51b815260206004820152602960248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f72207969656c6400000000000000000000000000000000000000000000006064820152608401610244565b82471015610eae5760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b5f80876001600160a01b0316858888604051610ecb929190611652565b5f6040518083038185875af1925050503d805f8114610f05576040519150601f19603f3d011682016040523d82523d5f602084013e610f0a565b606091505b509150915081610f4f826040518060400160405280601881526020017f5661756c743a205969656c642063616c6c206661696c6564000000000000000081525061139c565b90610f6d5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f8f19e6e133625f31c4ebd7c1c984dcdddac5793155aa96461bfe84eabab0086a8888878733604051610858959493929190611709565b5f7f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b336001600160a01b037f000000000000000000000000078ef0ba848ee19750daf6f06ab1af3add271efe1614806110d357507f00000000000000000000000097bdfe765bc0c79a767f1e1cad9060f065828d516001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110be9190611611565b6001600160a01b0316336001600160a01b0316145b61111f5760405162461bcd60e51b815260206004820152601860248201527f5661756c743a204e6f742075736572206f722061646d696e00000000000000006044820152606401610244565b6111276112f2565b5f81116111825760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b6001600160a01b0382166112a157804710156112065760405162461bcd60e51b815260206004820152602560248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201527f6c616e63650000000000000000000000000000000000000000000000000000006064820152608401610244565b6040515f90339083908381818185875af1925050503d805f8114611245576040519150601f19603f3d011682016040523d82523d5f602084013e61124a565b606091505b505090508061129b5760405162461bcd60e51b815260206004820181905260248201527f5661756c743a2047617320746f6b656e207472616e73666572206661696c65646044820152606401610244565b506112b5565b6112b56001600160a01b03831633836113d2565b60405181815233906001600160a01b038416907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb90602001610354565b60025f540361131457604051633ee5aeb560e01b815260040160405180910390fd5b60025f55565b6040516001600160a01b0384811660248301528381166044830152606482018390526113969186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611403565b50505050565b60606044835110156113af5750806113cc565b600483019250828060200190518101906113c9919061175f565b90505b92915050565b6040516001600160a01b03838116602483015260448201839052610b9391859182169063a9059cbb9060640161134f565b5f8060205f8451602086015f885af180611422576040513d5f823e3d81fd5b50505f513d91508115611439578060011415611446565b6001600160a01b0384163b155b1561139657604051635274afe760e01b81526001600160a01b0385166004820152602401610244565b6001600160a01b0381168114611483575f80fd5b50565b5f8060408385031215611497575f80fd5b82356114a28161146f565b946020939093013593505050565b5f8083601f8401126114c0575f80fd5b50813567ffffffffffffffff8111156114d7575f80fd5b6020830191508360208285010111156114ee575f80fd5b9250929050565b5f805f8060608587031215611508575f80fd5b84356115138161146f565b9350602085013567ffffffffffffffff81111561152e575f80fd5b61153a878288016114b0565b9598909750949560400135949350505050565b5f805f6060848603121561155f575f80fd5b833561156a8161146f565b9250602084013561157a8161146f565b929592945050506040919091013590565b5f805f805f80608087890312156115a0575f80fd5b86356115ab8161146f565b9550602087013567ffffffffffffffff808211156115c7575f80fd5b6115d38a838b016114b0565b90975095506040890135945060608901359150808211156115f2575f80fd5b506115ff89828a016114b0565b979a9699509497509295939492505050565b5f60208284031215611621575f80fd5b815161162c8161146f565b9392505050565b5f60208284031215611643575f80fd5b8151801515811461162c575f80fd5b818382375f9101908152919050565b5f5b8381101561167b578181015183820152602001611663565b50505f910152565b602081525f82518060208401526116a1816040850160208701611661565b601f01601f19169190910160400192915050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b604081525f6116f06040830185876116b5565b90506001600160a01b0383166020830152949350505050565b606081525f61171c6060830187896116b5565b828103602084015261172f8186886116b5565b9150506001600160a01b03831660408301529695505050505050565b634e487b7160e01b5f52604160045260245ffd5b5f6020828403121561176f575f80fd5b815167ffffffffffffffff80821115611786575f80fd5b818401915084601f830112611799575f80fd5b8151818111156117ab576117ab61174b565b604051601f8201601f19908116603f011681019083821181831017156117d3576117d361174b565b816040528281528760208487010111156117eb575f80fd5b6117fc836020830160208801611661565b97965050505050505056fea2646970667358221220373dd486bd28ffc5bf34778e25697c7ddcee383ebfdc6b294404879d46b054e864736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.