S Price: $0.427504 (-9.04%)

Contract

0x252Fd8bf35404692b73963f64aCA64358f350AC6

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

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

Contract Name:
Uniswap3PriceData

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : Uniswap3PriceData.sol
// 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();
		
	}
	
}

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

Contract Security Audit

Contract ABI

[{"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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806372279ba114610030575b600080fd5b61004a600480360381019061004591906101b4565b610061565b60405161005892919061020e565b60405180910390f35b60008060008390508073ffffffffffffffffffffffffffffffffffffffff16633850c7bd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d89190610263565b92508073ffffffffffffffffffffffffffffffffffffffff1663ddca3f436040518163ffffffff1660e01b8152600401602060405180830381865afa158015610125573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061014991906102bc565b915050915091565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061018182610156565b9050919050565b61019181610176565b811461019c57600080fd5b50565b6000813590506101ae81610188565b92915050565b6000602082840312156101ca576101c9610151565b5b60006101d88482850161019f565b91505092915050565b6101ea81610156565b82525050565b600062ffffff82169050919050565b610208816101f0565b82525050565b600060408201905061022360008301856101e1565b61023060208301846101ff565b9392505050565b61024081610156565b811461024b57600080fd5b50565b60008151905061025d81610237565b92915050565b60006020828403121561027957610278610151565b5b60006102878482850161024e565b91505092915050565b610299816101f0565b81146102a457600080fd5b50565b6000815190506102b681610290565b92915050565b6000602082840312156102d2576102d1610151565b5b60006102e0848285016102a7565b9150509291505056fea26469706673582212201966c38f602360671c3ac5011c4b361cc1c75d0c6327ad9b74ad0df19061985864736f6c63430008130033

Block Transaction 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

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.