Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
21670782 | 28 mins ago | 0 ETH | |||||
21670782 | 28 mins ago | 0 ETH | |||||
21670782 | 28 mins ago | 0 ETH | |||||
21670782 | 28 mins ago | 0 ETH | |||||
21670782 | 28 mins ago | 0 ETH | |||||
21670782 | 28 mins ago | 0 ETH | |||||
21670586 | 1 hr ago | 0 ETH | |||||
21670586 | 1 hr ago | 0 ETH | |||||
21670586 | 1 hr ago | 0 ETH | |||||
21670586 | 1 hr ago | 0 ETH | |||||
21670586 | 1 hr ago | 0 ETH | |||||
21670586 | 1 hr ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670234 | 2 hrs ago | 0 ETH | |||||
21670007 | 3 hrs ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
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); function getWstETHByStETH( uint256 stethAmount ) external view returns (uint256); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
60a0604052348015600f57600080fd5b506040516103b53803806103b5833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b60805161032a61008b60003960008181608b0152610110015261032a6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063313ce567146100515780639c16667c14610070578063d1d8bce714610086578063feaf968c146100c5575b600080fd5b610059601281565b60405160ff90911681526020015b60405180910390f35b610078610104565b604051908152602001610067565b6100ad7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610067565b6100cd6101a5565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610067565b60006001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663bb2952fc6101416012600a6102c5565b6040518263ffffffff1660e01b815260040161015f91815260200190565b602060405180830381865afa15801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906102db565b905090565b6000806000806000806101b6610104565b9096909550429450849350600092509050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561021a578160001904821115610200576102006101c9565b8085161561020d57918102915b93841c93908002906101e4565b509250929050565b600082610231575060016102bf565b8161023e575060006102bf565b8160018114610254576002811461025e5761027a565b60019150506102bf565b60ff84111561026f5761026f6101c9565b50506001821b6102bf565b5060208310610133831016604e8410600b841016171561029d575081810a6102bf565b6102a783836101df565b80600019048211156102bb576102bb6101c9565b0290505b92915050565b60006102d460ff841683610222565b9392505050565b6000602082840312156102ed57600080fd5b505191905056fea2646970667358221220bd04ec654c6644276a55dc34b99622c5136cfa8f36f9715f0e76c93a83e9401164736f6c634300081900330000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c8063313ce567146100515780639c16667c14610070578063d1d8bce714610086578063feaf968c146100c5575b600080fd5b610059601281565b60405160ff90911681526020015b60405180910390f35b610078610104565b604051908152602001610067565b6100ad7f0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca081565b6040516001600160a01b039091168152602001610067565b6100cd6101a5565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610067565b60006001600160a01b037f0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca01663bb2952fc6101416012600a6102c5565b6040518263ffffffff1660e01b815260040161015f91815260200190565b602060405180830381865afa15801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906102db565b905090565b6000806000806000806101b6610104565b9096909550429450849350600092509050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561021a578160001904821115610200576102006101c9565b8085161561020d57918102915b93841c93908002906101e4565b509250929050565b600082610231575060016102bf565b8161023e575060006102bf565b8160018114610254576002811461025e5761027a565b60019150506102bf565b60ff84111561026f5761026f6101c9565b50506001821b6102bf565b5060208310610133831016604e8410600b841016171561029d575081810a6102bf565b6102a783836101df565b80600019048211156102bb576102bb6101c9565b0290505b92915050565b60006102d460ff841683610222565b9392505050565b6000602082840312156102ed57600080fd5b505191905056fea2646970667358221220bd04ec654c6644276a55dc34b99622c5136cfa8f36f9715f0e76c93a83e9401164736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
-----Decoded View---------------
Arg [0] : wsteth_ (address): 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.