ETH Price: $2,719.61 (-9.01%)
 

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
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 0x386E4f87...4093c1F6B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TermWstEthPriceFeedV1

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

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

import {
    AggregatorV3Interface
} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";

/// @notice IWstETH represents a Lido wrapped staked eth contract
interface IWstETH {
    /**
     * @notice Get amount of stETH for a one wstETH
     * @return Amount of stETH for 1 wstETH
     */
    function stEthPerToken() external view returns (uint256);
}

contract TermWstEthPriceFeedV1 is AggregatorV3Interface {
    address public immutable referenceToken;
    AggregatorV3Interface immutable ethPriceFeed;
    IWstETH immutable wstEth;

    string _description;

    uint8 immutable feedDecimals;

    constructor(
        address referenceToken_,
        string memory description_,
        AggregatorV3Interface ethPriceFeed_
    ) {
        ethPriceFeed = ethPriceFeed_;

        referenceToken = referenceToken_;
        wstEth = IWstETH(referenceToken_);
        _description = description_;

        feedDecimals = ethPriceFeed.decimals();
    }

    function decimals() external view returns (uint8) {
        return feedDecimals;
    }

    function description() external view returns (string memory) {
        return _description;
    }

    function version() external pure returns (uint256) {
        return 1;
    }

    function getRoundData(
        uint80 /* _roundId */
    )
        external
        pure
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        )
    {
        return (0, 0, 0, 0, 0);
    }

    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        )
    {
        // slither-disable-next-line unused-return
        (, int256 ethPrice, , uint256 ethUpdatedAt, ) = ethPriceFeed
            .latestRoundData();

        int256 wstEthPrice = (int256(wstEth.stEthPerToken()) * ethPrice) / int256(1e18);

        return (
            0,
            wstEthPrice,
            0,
            ethUpdatedAt,
            0
        );
    }
}

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

// solhint-disable-next-line interface-starts-with-i
interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

  function description() external view returns (string memory);

  function version() external view returns (uint256);

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

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

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"referenceToken_","type":"address"},{"internalType":"string","name":"description_","type":"string"},{"internalType":"contract AggregatorV3Interface","name":"ethPriceFeed_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referenceToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

0x6101006040523480156200001257600080fd5b5060405162001103380380620011038339818101604052810190620000389190620003ad565b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508160009081620000e5919062000673565b5060a05173ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000134573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200015a919062000798565b60ff1660e08160ff1681525050505050620007ca565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001b18262000184565b9050919050565b620001c381620001a4565b8114620001cf57600080fd5b50565b600081519050620001e381620001b8565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200023e82620001f3565b810181811067ffffffffffffffff8211171562000260576200025f62000204565b5b80604052505050565b60006200027562000170565b905062000283828262000233565b919050565b600067ffffffffffffffff821115620002a657620002a562000204565b5b620002b182620001f3565b9050602081019050919050565b60005b83811015620002de578082015181840152602081019050620002c1565b60008484015250505050565b600062000301620002fb8462000288565b62000269565b90508281526020810184848401111562000320576200031f620001ee565b5b6200032d848285620002be565b509392505050565b600082601f8301126200034d576200034c620001e9565b5b81516200035f848260208601620002ea565b91505092915050565b60006200037582620001a4565b9050919050565b620003878162000368565b81146200039357600080fd5b50565b600081519050620003a7816200037c565b92915050565b600080600060608486031215620003c957620003c86200017a565b5b6000620003d986828701620001d2565b935050602084015167ffffffffffffffff811115620003fd57620003fc6200017f565b5b6200040b8682870162000335565b92505060406200041e8682870162000396565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200047b57607f821691505b60208210810362000491576200049062000433565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004fb7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004bc565b620005078683620004bc565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005546200054e62000548846200051f565b62000529565b6200051f565b9050919050565b6000819050919050565b620005708362000533565b620005886200057f826200055b565b848454620004c9565b825550505050565b600090565b6200059f62000590565b620005ac81848462000565565b505050565b5b81811015620005d457620005c860008262000595565b600181019050620005b2565b5050565b601f8211156200062357620005ed8162000497565b620005f884620004ac565b8101602085101562000608578190505b620006206200061785620004ac565b830182620005b1565b50505b505050565b600082821c905092915050565b6000620006486000198460080262000628565b1980831691505092915050565b600062000663838362000635565b9150826002028217905092915050565b6200067e8262000428565b67ffffffffffffffff8111156200069a576200069962000204565b5b620006a6825462000462565b620006b3828285620005d8565b600060209050601f831160018114620006eb5760008415620006d6578287015190505b620006e2858262000655565b86555062000752565b601f198416620006fb8662000497565b60005b828110156200072557848901518255600182019150602085019450602081019050620006fe565b8683101562000745578489015162000741601f89168262000635565b8355505b6001600288020188555050505b505050505050565b600060ff82169050919050565b62000772816200075a565b81146200077e57600080fd5b50565b600081519050620007928162000767565b92915050565b600060208284031215620007b157620007b06200017a565b5b6000620007c18482850162000781565b91505092915050565b60805160a05160c05160e0516108ff62000804600039600061015d015260006102ed0152600061024b0152600061013701526108ff6000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631265b65114610067578063313ce5671461008557806354fd4d50146100a35780637284e416146100c15780639a6fc8f5146100df578063feaf968c14610113575b600080fd5b61006f610135565b60405161007c91906103ed565b60405180910390f35b61008d610159565b60405161009a9190610424565b60405180910390f35b6100ab610181565b6040516100b89190610458565b60405180910390f35b6100c961018a565b6040516100d69190610503565b60405180910390f35b6100f960048036038101906100f4919061056c565b61021c565b60405161010a9594939291906105c1565b60405180910390f35b61011b61023e565b60405161012c9594939291906105c1565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b60006001905090565b60606000805461019990610643565b80601f01602080910402602001604051908101604052809291908181526020018280546101c590610643565b80156102125780601f106101e757610100808354040283529160200191610212565b820191906000526020600020905b8154815290600101906020018083116101f557829003601f168201915b5050505050905090565b6000806000806000806000806000809450945094509450945091939590929450565b60008060008060008060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156102b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d891906106e1565b509350509250506000670de0b6b3a7640000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663035faf826040518163ffffffff1660e01b8152600401602060405180830381865afa158015610356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037a919061075c565b61038491906107b8565b61038e919061085f565b90506000816000846000975097509750975097505050509091929394565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103d7826103ac565b9050919050565b6103e7816103cc565b82525050565b600060208201905061040260008301846103de565b92915050565b600060ff82169050919050565b61041e81610408565b82525050565b60006020820190506104396000830184610415565b92915050565b6000819050919050565b6104528161043f565b82525050565b600060208201905061046d6000830184610449565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156104ad578082015181840152602081019050610492565b60008484015250505050565b6000601f19601f8301169050919050565b60006104d582610473565b6104df818561047e565b93506104ef81856020860161048f565b6104f8816104b9565b840191505092915050565b6000602082019050818103600083015261051d81846104ca565b905092915050565b600080fd5b600069ffffffffffffffffffff82169050919050565b6105498161052a565b811461055457600080fd5b50565b60008135905061056681610540565b92915050565b60006020828403121561058257610581610525565b5b600061059084828501610557565b91505092915050565b6105a28161052a565b82525050565b6000819050919050565b6105bb816105a8565b82525050565b600060a0820190506105d66000830188610599565b6105e360208301876105b2565b6105f06040830186610449565b6105fd6060830185610449565b61060a6080830184610599565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061065b57607f821691505b60208210810361066e5761066d610614565b5b50919050565b60008151905061068381610540565b92915050565b610692816105a8565b811461069d57600080fd5b50565b6000815190506106af81610689565b92915050565b6106be8161043f565b81146106c957600080fd5b50565b6000815190506106db816106b5565b92915050565b600080600080600060a086880312156106fd576106fc610525565b5b600061070b88828901610674565b955050602061071c888289016106a0565b945050604061072d888289016106cc565b935050606061073e888289016106cc565b925050608061074f88828901610674565b9150509295509295909350565b60006020828403121561077257610771610525565b5b6000610780848285016106cc565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107c3826105a8565b91506107ce836105a8565b92508282026107dc816105a8565b91507f8000000000000000000000000000000000000000000000000000000000000000841460008412161561081457610813610789565b5b828205841483151761082957610828610789565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061086a826105a8565b9150610875836105a8565b92508261088557610884610830565b5b600160000383147f8000000000000000000000000000000000000000000000000000000000000000831416156108be576108bd610789565b5b82820590509291505056fea264697066735822122050017415d1a2f5f661b17d67d92241d922447ef2665bd00ececeeabadaf6d10764736f6c634300081700330000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000dfadab6a071e190f51e65a83afd67e9b18bba45000000000000000000000000000000000000000000000000000000000000000165465726d20777374455448205072696365204665656400000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631265b65114610067578063313ce5671461008557806354fd4d50146100a35780637284e416146100c15780639a6fc8f5146100df578063feaf968c14610113575b600080fd5b61006f610135565b60405161007c91906103ed565b60405180910390f35b61008d610159565b60405161009a9190610424565b60405180910390f35b6100ab610181565b6040516100b89190610458565b60405180910390f35b6100c961018a565b6040516100d69190610503565b60405180910390f35b6100f960048036038101906100f4919061056c565b61021c565b60405161010a9594939291906105c1565b60405180910390f35b61011b61023e565b60405161012c9594939291906105c1565b60405180910390f35b7f0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b60007f0000000000000000000000000000000000000000000000000000000000000012905090565b60006001905090565b60606000805461019990610643565b80601f01602080910402602001604051908101604052809291908181526020018280546101c590610643565b80156102125780601f106101e757610100808354040283529160200191610212565b820191906000526020600020905b8154815290600101906020018083116101f557829003601f168201915b5050505050905090565b6000806000806000806000806000809450945094509450945091939590929450565b60008060008060008060007f000000000000000000000000dfadab6a071e190f51e65a83afd67e9b18bba45073ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156102b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d891906106e1565b509350509250506000670de0b6b3a7640000837f0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca073ffffffffffffffffffffffffffffffffffffffff1663035faf826040518163ffffffff1660e01b8152600401602060405180830381865afa158015610356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037a919061075c565b61038491906107b8565b61038e919061085f565b90506000816000846000975097509750975097505050509091929394565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006103d7826103ac565b9050919050565b6103e7816103cc565b82525050565b600060208201905061040260008301846103de565b92915050565b600060ff82169050919050565b61041e81610408565b82525050565b60006020820190506104396000830184610415565b92915050565b6000819050919050565b6104528161043f565b82525050565b600060208201905061046d6000830184610449565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156104ad578082015181840152602081019050610492565b60008484015250505050565b6000601f19601f8301169050919050565b60006104d582610473565b6104df818561047e565b93506104ef81856020860161048f565b6104f8816104b9565b840191505092915050565b6000602082019050818103600083015261051d81846104ca565b905092915050565b600080fd5b600069ffffffffffffffffffff82169050919050565b6105498161052a565b811461055457600080fd5b50565b60008135905061056681610540565b92915050565b60006020828403121561058257610581610525565b5b600061059084828501610557565b91505092915050565b6105a28161052a565b82525050565b6000819050919050565b6105bb816105a8565b82525050565b600060a0820190506105d66000830188610599565b6105e360208301876105b2565b6105f06040830186610449565b6105fd6060830185610449565b61060a6080830184610599565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061065b57607f821691505b60208210810361066e5761066d610614565b5b50919050565b60008151905061068381610540565b92915050565b610692816105a8565b811461069d57600080fd5b50565b6000815190506106af81610689565b92915050565b6106be8161043f565b81146106c957600080fd5b50565b6000815190506106db816106b5565b92915050565b600080600080600060a086880312156106fd576106fc610525565b5b600061070b88828901610674565b955050602061071c888289016106a0565b945050604061072d888289016106cc565b935050606061073e888289016106cc565b925050608061074f88828901610674565b9150509295509295909350565b60006020828403121561077257610771610525565b5b6000610780848285016106cc565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107c3826105a8565b91506107ce836105a8565b92508282026107dc816105a8565b91507f8000000000000000000000000000000000000000000000000000000000000000841460008412161561081457610813610789565b5b828205841483151761082957610828610789565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061086a826105a8565b9150610875836105a8565b92508261088557610884610830565b5b600160000383147f8000000000000000000000000000000000000000000000000000000000000000831416156108be576108bd610789565b5b82820590509291505056fea264697066735822122050017415d1a2f5f661b17d67d92241d922447ef2665bd00ececeeabadaf6d10764736f6c63430008170033

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.