Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x4655B6A10C83D6bEfF1DC7116436cFD8b4F8d48A
Balance 0 ETH
Nonce 1
Code Size 522 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

522 bytes
0x608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f3fef3a31461002d575b5f80fd5b61004061003b36600461016c565b610042565b005b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000008be3460a480c80728a8c4d7a5d5303c85ba7b3b916146100b1576040517f17dd114500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152602482018390527f00000000000000000000000057e114b691db790c35207b2e685d4a43181e6061169063a9059cbb906044016020604051808303815f875af1158015610143573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061016791906101ae565b505050565b5f806040838503121561017d575f80fd5b823573ffffffffffffffffffffffffffffffffffffffff811681146101a0575f80fd5b946020939093013593505050565b5f602082840312156101be575f80fd5b815180151581146101cd575f80fd5b939250505056fea2646970667358221220a97c7d05d6167ff346094b14f8cf0ac9ac519e86f3f33f3f733de9da7db9489464736f6c634300081a0033

Verified Source Code Full Match

Compiler: v0.8.26+commit.8a97fa7a EVM: shanghai Optimization: Yes (20000 runs)
ENASilo.sol 28 lines
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../contracts/interfaces/IEnaSiloDefinitions.sol";

/**
 * @title EnaSilo
 * @notice The Silo allows to store ENA during the stake cooldown process.
 */
contract EnaSilo is IEnaSiloDefinitions {
  address immutable _STAKING_VAULT;
  IERC20 immutable _ENA;

  constructor(address stakingVault, address ena) {
    _STAKING_VAULT = stakingVault;
    _ENA = IERC20(ena);
  }

  modifier onlyStakingVault() {
    if (msg.sender != _STAKING_VAULT) revert OnlyStakingVault();
    _;
  }

  function withdraw(address to, uint256 amount) external onlyStakingVault {
    _ENA.transfer(to, amount);
  }
}
IERC20.sol 78 lines
// 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);
}
IEnaSiloDefinitions.sol 7 lines
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.26;

interface IEnaSiloDefinitions {
  /// @notice Error emitted when the staking vault is not the caller
  error OnlyStakingVault();
}

Write Contract 1 functions

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

withdraw 0xf3fef3a3
address to
uint256 amount

Recent Transactions

No transactions found for this address