ETH Price: $2,932.01 (+0.32%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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

Contract Name:
WStethRatiosAggregatorV3

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: BSL-1.1
pragma solidity 0.8.25;

import "../interfaces/external/chainlink/IAggregatorV3.sol";
import "../interfaces/external/lido/IWSteth.sol";

contract WStethRatiosAggregatorV3 is IAggregatorV3 {
    uint8 public constant decimals = 18;
    address public immutable wsteth;

    constructor(address wsteth_) {
        wsteth = wsteth_;
    }

    function getAnswer() public view returns (int256) {
        return int256(IWSteth(wsteth).getStETHByWstETH(10 ** decimals));
    }

    function latestRoundData()
        public
        view
        override
        returns (uint80, int256, uint256, uint256, uint80)
    {
        return (0, getAnswer(), block.timestamp, block.timestamp, 0);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

interface IAggregatorV3 {
    function decimals() external view returns (uint8);

    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

interface IWSteth {
    function wrap(uint256 stethAmount) external payable returns (uint256);

    function unwrap(uint256 wstethAmount) external returns (uint256);

    function getStETHByWstETH(
        uint256 wstethAmount
    ) external view returns (uint256);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"wsteth_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wsteth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

0x60a0604052348015600f57600080fd5b506040516103b53803806103b5833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b60805161032a61008b60003960008181608b0152610110015261032a6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063313ce567146100515780639c16667c14610070578063d1d8bce714610086578063feaf968c146100c5575b600080fd5b610059601281565b60405160ff90911681526020015b60405180910390f35b610078610104565b604051908152602001610067565b6100ad7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610067565b6100cd6101a5565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610067565b60006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663bb2952fc6101416012600a6102c5565b6040518263ffffffff1660e01b815260040161015f91815260200190565b602060405180830381865afa15801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906102db565b905090565b6000806000806000806101b6610104565b9096909550429450849350600092509050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561021a578160001904821115610200576102006101c9565b8085161561020d57918102915b93841c93908002906101e4565b509250929050565b600082610231575060016102bf565b8161023e575060006102bf565b8160018114610254576002811461025e5761027a565b60019150506102bf565b60ff84111561026f5761026f6101c9565b50506001821b6102bf565b5060208310610133831016604e8410600b841016171561029d575081810a6102bf565b6102a783836101df565b80600019048211156102bb576102bb6101c9565b0290505b92915050565b60006102d460ff841683610222565b9392505050565b6000602082840312156102ed57600080fd5b505191905056fea264697066735822122012c6db5b56c2e9b22d33d76ea21cf60515047ec2c03b4befd9913a5352154efc64736f6c634300081900330000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063313ce567146100515780639c16667c14610070578063d1d8bce714610086578063feaf968c146100c5575b600080fd5b610059601281565b60405160ff90911681526020015b60405180910390f35b610078610104565b604051908152602001610067565b6100ad7f0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b6040516001600160a01b039091168152602001610067565b6100cd6101a5565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610067565b60006001600160a01b037f0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca01663bb2952fc6101416012600a6102c5565b6040518263ffffffff1660e01b815260040161015f91815260200190565b602060405180830381865afa15801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906102db565b905090565b6000806000806000806101b6610104565b9096909550429450849350600092509050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561021a578160001904821115610200576102006101c9565b8085161561020d57918102915b93841c93908002906101e4565b509250929050565b600082610231575060016102bf565b8161023e575060006102bf565b8160018114610254576002811461025e5761027a565b60019150506102bf565b60ff84111561026f5761026f6101c9565b50506001821b6102bf565b5060208310610133831016604e8410600b841016171561029d575081810a6102bf565b6102a783836101df565b80600019048211156102bb576102bb6101c9565b0290505b92915050565b60006102d460ff841683610222565b9392505050565b6000602082840312156102ed57600080fd5b505191905056fea264697066735822122012c6db5b56c2e9b22d33d76ea21cf60515047ec2c03b4befd9913a5352154efc64736f6c63430008190033

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

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.