Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
Uniswap3PriceData
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface Uniswap3SC{ function fee() external view returns (uint24); function slot0() external view returns (uint160 sqrtPriceX96); //pay atention to be the first param returned, otherwise you get other data. } contract Uniswap3PriceData{ function getPriceData(address pool) external view returns (uint160 sqrtPriceX96, uint24 fee){ //create SC Uniswap3SC poolSC = Uniswap3SC(pool); sqrtPriceX96 = poolSC.slot0(); fee = poolSC.fee(); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"getPriceData","outputs":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"uint24","name":"fee","type":"uint24"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061031f806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806372279ba114610030575b600080fd5b61004a600480360381019061004591906101b4565b610061565b60405161005892919061020e565b60405180910390f35b60008060008390508073ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d89190610263565b92508073ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015610125573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014991906102bc565b915050915091565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061018182610156565b9050919050565b61019181610176565b811461019c57600080fd5b50565b6000813590506101ae81610188565b92915050565b6000602082840312156101ca576101c9610151565b5b60006101d88482850161019f565b91505092915050565b6101ea81610156565b82525050565b600062ffffff82169050919050565b610208816101f0565b82525050565b600060408201905061022360008301856101e1565b61023060208301846101ff565b9392505050565b61024081610156565b811461024b57600080fd5b50565b60008151905061025d81610237565b92915050565b60006020828403121561027957610278610151565b5b60006102878482850161024e565b91505092915050565b610299816101f0565b81146102a457600080fd5b50565b6000815190506102b681610290565b92915050565b6000602082840312156102d2576102d1610151565b5b60006102e0848285016102a7565b9150509291505056fea26469706673582212201966c38f602360671c3ac5011c4b361cc1c75d0c6327ad9b74ad0df19061985864736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806372279ba114610030575b600080fd5b61004a600480360381019061004591906101b4565b610061565b60405161005892919061020e565b60405180910390f35b60008060008390508073ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d89190610263565b92508073ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015610125573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014991906102bc565b915050915091565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061018182610156565b9050919050565b61019181610176565b811461019c57600080fd5b50565b6000813590506101ae81610188565b92915050565b6000602082840312156101ca576101c9610151565b5b60006101d88482850161019f565b91505092915050565b6101ea81610156565b82525050565b600062ffffff82169050919050565b610208816101f0565b82525050565b600060408201905061022360008301856101e1565b61023060208301846101ff565b9392505050565b61024081610156565b811461024b57600080fd5b50565b60008151905061025d81610237565b92915050565b60006020828403121561027957610278610151565b5b60006102878482850161024e565b91505092915050565b610299816101f0565b81146102a457600080fd5b50565b6000815190506102b681610290565b92915050565b6000602082840312156102d2576102d1610151565b5b60006102e0848285016102a7565b9150509291505056fea26469706673582212201966c38f602360671c3ac5011c4b361cc1c75d0c6327ad9b74ad0df19061985864736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.