ETH Price: $2,640.59 (+1.58%)

Contract

0x96948ca569fFAEf0CE0f05B79aA9CDe073690CEd
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

1 Internal Transaction and > 10 Token Transfers found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
211449502024-11-08 19:15:3596 days ago1731093335  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
slvlUSDSilo

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 3 : slvlUSDSilo.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;

/* solhint-disable var-name-mixedcase  */

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

/**
 * @title slvlUSDSilo
 * @notice The Silo allows to store lvlUSD during the stake cooldown process.
 *         Forked from Ethena's USDeSilo contract.
 */
contract slvlUSDSilo is IslvlUSDSiloDefinitions {
    address immutable _STAKING_VAULT;
    IERC20 immutable _lvlUSD;

    constructor(address stakingVault, address lvlUSD) {
        _STAKING_VAULT = stakingVault;
        _lvlUSD = IERC20(lvlUSD);
    }

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

    function withdraw(address to, uint256 amount) external onlyStakingVault {
        _lvlUSD.transfer(to, amount);
    }
}

File 2 of 3 : IERC20.sol
// 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);
}

File 3 of 3 : IslvlUSDSiloDefinitions.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.19;

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

Settings
{
  "remappings": [
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin-4.9.0/contracts/=lib/openzeppelin-contracts-4.9.0/contracts/",
    "@solmate/=lib/solmate/",
    "aave-v3-core/=lib/aave-v3-core/",
    "erc4626-tests/=lib/openzeppelin-contracts-4.9.0/lib/erc4626-tests/",
    "openzeppelin-contracts-4.9.0/=lib/openzeppelin-contracts-4.9.0/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts-4.9.0/contracts/",
    "solmate/=lib/solmate/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"stakingVault","type":"address"},{"internalType":"address","name":"lvlUSD","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyStakingVault","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052348015600e575f80fd5b50604051610257380380610257833981016040819052602b91605b565b6001600160a01b039182166080521660a0526087565b80516001600160a01b03811681146056575f80fd5b919050565b5f8060408385031215606b575f80fd5b6072836041565b9150607e602084016041565b90509250929050565b60805160a0516101b16100a65f395f60b101525f604d01526101b15ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f3fef3a31461002d575b5f80fd5b61004061003b366004610120565b610042565b005b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461008b576040516317dd114560e01b815260040160405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303815f875af11580156100f7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061011b9190610155565b505050565b5f8060408385031215610131575f80fd5b82356001600160a01b0381168114610147575f80fd5b946020939093013593505050565b5f60208284031215610165575f80fd5b81518015158114610174575f80fd5b939250505056fea26469706673582212200250487a46fe9feacb0a4d9450ee3d88b1b4d6b3f77fa573e392d5c3ddd4743364736f6c634300081900330000000000000000000000004737d9b4592b40d51e110b94c9c043c6654067ae0000000000000000000000007c1156e515aa1a2e851674120074968c905aaf37

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f3fef3a31461002d575b5f80fd5b61004061003b366004610120565b610042565b005b336001600160a01b037f0000000000000000000000004737d9b4592b40d51e110b94c9c043c6654067ae161461008b576040516317dd114560e01b815260040160405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390527f0000000000000000000000007c1156e515aa1a2e851674120074968c905aaf37169063a9059cbb906044016020604051808303815f875af11580156100f7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061011b9190610155565b505050565b5f8060408385031215610131575f80fd5b82356001600160a01b0381168114610147575f80fd5b946020939093013593505050565b5f60208284031215610165575f80fd5b81518015158114610174575f80fd5b939250505056fea26469706673582212200250487a46fe9feacb0a4d9450ee3d88b1b4d6b3f77fa573e392d5c3ddd4743364736f6c63430008190033

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

0000000000000000000000004737d9b4592b40d51e110b94c9c043c6654067ae0000000000000000000000007c1156e515aa1a2e851674120074968c905aaf37

-----Decoded View---------------
Arg [0] : stakingVault (address): 0x4737D9b4592B40d51e110b94c9C043c6654067Ae
Arg [1] : lvlUSD (address): 0x7C1156E515aA1A2E851674120074968C905aAF37

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004737d9b4592b40d51e110b94c9c043c6654067ae
Arg [1] : 0000000000000000000000007c1156e515aa1a2e851674120074968c905aaf37


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
[ 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.