Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x9485711f11B17f73f2CCc8561bcae05BDc7E9ad9
Balance 791.9673 ETH
Nonce 1
Code Size 919 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

919 bytes
0x608060405260043610610056575f3560e01c8062258d6b1461006157806312065fe01461009d578063ba93ec29146100b7578063d0e30db0146100d5578063e7b77f70146100df578063f3fef3a3146100fe575f80fd5b3661005d57005b5f80fd5b34801561006c575f80fd5b50600154610080906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100a8575f80fd5b50604051478152602001610094565b3480156100c2575f80fd5b505f54610080906001600160a01b031681565b6100dd61011d565b005b3480156100ea575f80fd5b506100dd6100f93660046102c9565b61015f565b348015610109575f80fd5b506100dd6101183660046102e9565b6101be565b345f0361015d5760405162461bcd60e51b81526020600482015260096024820152681d1bdbc81cdb585b1b60ba1b60448201526064015b60405180910390fd5b565b5f546001600160a01b031633148061018157506001546001600160a01b031633145b61019d5760405162461bcd60e51b815260040161015490610311565b5f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b03163314806101e057506001546001600160a01b031633145b6101fc5760405162461bcd60e51b815260040161015490610311565b610206828261020a565b5050565b604080515f808252602082019092526001600160a01b0384169083906040516102339190610335565b5f6040518083038185875af1925050503d805f811461026d576040519150601f19603f3d011682016040523d82523d5f602084013e610272565b606091505b50509050806102a95760405162461bcd60e51b815260206004820152600360248201526253544560e81b6044820152606401610154565b505050565b80356001600160a01b03811681146102c4575f80fd5b919050565b5f602082840312156102d9575f80fd5b6102e2826102ae565b9392505050565b5f80604083850312156102fa575f80fd5b610303836102ae565b946020939093013593505050565b6020808252600a90820152691b9bdd081c195c9b5a5d60b21b604082015260600190565b5f82515f5b81811015610354576020818601810151858301520161033a565b505f92019182525091905056fea26469706673582212206521a7c2deab2358a2bd329e7d1d5e591b0146b8dfb7ccf3eab70a9e3e8a902c64736f6c63430008150033

Verified Source Code Partial Match

Compiler: v0.8.21+commit.d9974bed EVM: shanghai Optimization: Yes (10 runs)
AssetsVault.sol 44 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;

import {TransferHelper} from "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";

contract AssetsVault {
    address public stoneVault;
    address public strategyController;

    modifier onlyPermit() {
        require(
            stoneVault == msg.sender || strategyController == msg.sender,
            "not permit"
        );
        _;
    }

    constructor(address _stoneVault, address _strategyController) {
        require(
            _stoneVault != address(0) && _strategyController != address(0),
            "ZERO ADDRESS"
        );
        stoneVault = _stoneVault;
        strategyController = _strategyController;
    }

    function deposit() external payable {
        require(msg.value != 0, "too small");
    }

    function withdraw(address _to, uint256 _amount) external onlyPermit {
        TransferHelper.safeTransferETH(_to, _amount);
    }

    function setNewVault(address _vault) external onlyPermit {
        stoneVault = _vault;
    }

    function getBalance() external view returns (uint256 amount) {
        amount = address(this).balance;
    }

    receive() external payable {}
}
TransferHelper.sol 60 lines
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;

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

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

Read Contract

getBalance 0x12065fe0 → uint256
stoneVault 0xba93ec29 → address
strategyController 0x00258d6b → address

Write Contract 3 functions

These functions modify contract state and require a wallet transaction to execute.

deposit 0xd0e30db0
No parameters
setNewVault 0xe7b77f70
address _vault
withdraw 0xf3fef3a3
address _to
uint256 _amount

Token Balances (1)

View Transfers →
WETH 0

Recent Transactions

No transactions found for this address