S Price: $0.410198 (-0.41%)

Contract

0x3D5e2Fa87FF5bF06FEF40409123A2Ce5b00535cE

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

Contract Source Code Verified (Exact Match)

Contract Name:
SwapX3PriceData

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : SwapX3PriceData.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface SwapX3SC{
	function globalState() external view returns (
		uint160 price, 
		int24 tick, 
		uint16 lastFee, 
		uint8 pluginConfig, 
		uint16 communityFee, 
		bool unlocked
	);
}

contract SwapX3PriceData{

	function getPriceData(address pool) external view returns (uint160 sqrtPriceX96, uint24 fee){

		//create SC
        SwapX3SC poolSC = SwapX3SC(pool);
		
		(sqrtPriceX96, , fee, , , ) = poolSC.globalState();
		
	}
	
}

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

608060405234801561001057600080fd5b506103b1806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806372279ba114610030575b600080fd5b61004a6004803603810190610045919061015b565b610061565b6040516100589291906101b5565b60405180910390f35b60008060008390508073ffffffffffffffffffffffffffffffffffffffff1663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d891906102ee565b90919293508361ffff169350909150905050809350819450505050915091565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610128826100fd565b9050919050565b6101388161011d565b811461014357600080fd5b50565b6000813590506101558161012f565b92915050565b600060208284031215610171576101706100f8565b5b600061017f84828501610146565b91505092915050565b610191816100fd565b82525050565b600062ffffff82169050919050565b6101af81610197565b82525050565b60006040820190506101ca6000830185610188565b6101d760208301846101a6565b9392505050565b6101e7816100fd565b81146101f257600080fd5b50565b600081519050610204816101de565b92915050565b60008160020b9050919050565b6102208161020a565b811461022b57600080fd5b50565b60008151905061023d81610217565b92915050565b600061ffff82169050919050565b61025a81610243565b811461026557600080fd5b50565b60008151905061027781610251565b92915050565b600060ff82169050919050565b6102938161027d565b811461029e57600080fd5b50565b6000815190506102b08161028a565b92915050565b60008115159050919050565b6102cb816102b6565b81146102d657600080fd5b50565b6000815190506102e8816102c2565b92915050565b60008060008060008060c0878903121561030b5761030a6100f8565b5b600061031989828a016101f5565b965050602061032a89828a0161022e565b955050604061033b89828a01610268565b945050606061034c89828a016102a1565b935050608061035d89828a01610268565b92505060a061036e89828a016102d9565b915050929550929550929556fea264697066735822122048bb55c5a136214a9613ab33a9c8bfb513e85c0bae81fdee5c07aded589b47c764736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c806372279ba114610030575b600080fd5b61004a6004803603810190610045919061015b565b610061565b6040516100589291906101b5565b60405180910390f35b60008060008390508073ffffffffffffffffffffffffffffffffffffffff1663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa1580156100b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d891906102ee565b90919293508361ffff169350909150905050809350819450505050915091565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610128826100fd565b9050919050565b6101388161011d565b811461014357600080fd5b50565b6000813590506101558161012f565b92915050565b600060208284031215610171576101706100f8565b5b600061017f84828501610146565b91505092915050565b610191816100fd565b82525050565b600062ffffff82169050919050565b6101af81610197565b82525050565b60006040820190506101ca6000830185610188565b6101d760208301846101a6565b9392505050565b6101e7816100fd565b81146101f257600080fd5b50565b600081519050610204816101de565b92915050565b60008160020b9050919050565b6102208161020a565b811461022b57600080fd5b50565b60008151905061023d81610217565b92915050565b600061ffff82169050919050565b61025a81610243565b811461026557600080fd5b50565b60008151905061027781610251565b92915050565b600060ff82169050919050565b6102938161027d565b811461029e57600080fd5b50565b6000815190506102b08161028a565b92915050565b60008115159050919050565b6102cb816102b6565b81146102d657600080fd5b50565b6000815190506102e8816102c2565b92915050565b60008060008060008060c0878903121561030b5761030a6100f8565b5b600061031989828a016101f5565b965050602061032a89828a0161022e565b955050604061033b89828a01610268565b945050606061034c89828a016102a1565b935050608061035d89828a01610268565b92505060a061036e89828a016102d9565b915050929550929550929556fea264697066735822122048bb55c5a136214a9613ab33a9c8bfb513e85c0bae81fdee5c07aded589b47c764736f6c63430008130033

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.