Verified contractPartialBUSL-1.1
UniswapV3Pool
Address0x49228c8a08fe69bd34228491e4ae712dfd6c3e4e
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.7.6
- Same code
31,750 more contracts
Details
- Compiler
- solc 0.7.6+commit.7338295f
- Language
- solidity
- Optimization
- Yes, 800 runs
- EVM version
- istanbul
- License
- BUSL-1.1
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 20,018,289
- Creation transaction
- 0xec8d36791f…28577b50f7
- Main copy (most transactions)
- 0xe0554a47…6d32939f
96 files
The source code is large: one file is shown at a time. Choose a file in the list.
- contracts/UniswapV3Pool.solmain35.5 KB
- ./contracts/NoDelegateCall.sol1.08 KB
- ./contracts/UniswapV3Pool.sol35.5 KB
- ./contracts/interfaces/IERC20Minimal.sol3.07 KB
- ./contracts/interfaces/IUniswapV3Factory.sol4.04 KB
- ./contracts/interfaces/IUniswapV3Pool.sol809 B
- ./contracts/interfaces/IUniswapV3PoolDeployer.sol1.3 KB
- ./contracts/interfaces/callback/IUniswapV3FlashCallback.sol982 B
- ./contracts/interfaces/callback/IUniswapV3MintCallback.sol980 B
- ./contracts/interfaces/callback/IUniswapV3SwapCallback.sol1.29 KB
- ./contracts/interfaces/pool/IUniswapV3PoolActions.sol6.3 KB
- ./contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol2.6 KB
- ./contracts/interfaces/pool/IUniswapV3PoolEvents.sol5.96 KB
- ./contracts/interfaces/pool/IUniswapV3PoolImmutables.sol1.81 KB
- ./contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol1.19 KB
- ./contracts/interfaces/pool/IUniswapV3PoolState.sol6.51 KB
- ./contracts/libraries/BitMath.sol2.79 KB
- ./contracts/libraries/FixedPoint128.sol311 B
- ./contracts/libraries/FixedPoint96.sol380 B
- ./contracts/libraries/FullMath.sol5.12 KB
- ./contracts/libraries/LiquidityMath.sol622 B
- ./contracts/libraries/LowGasSafeMath.sol1.7 KB
- ./contracts/libraries/Oracle.sol16.41 KB
- ./contracts/libraries/Position.sol3.58 KB
- ./contracts/libraries/SafeCast.sol1.05 KB
- ./contracts/libraries/SqrtPriceMath.sol10.77 KB
- ./contracts/libraries/SwapMath.sol4.63 KB
- ./contracts/libraries/Tick.sol9.52 KB
- ./contracts/libraries/TickBitmap.sol4.11 KB
- ./contracts/libraries/TickMath.sol8.64 KB
- ./contracts/libraries/TransferHelper.sol933 B
- ./contracts/libraries/UnsafeMath.sol660 B
- contracts/@uniswap/v3-core/contracts/NoDelegateCall.sol1.08 KB
- contracts/@uniswap/v3-core/contracts/VitDEXPool.sol35.5 KB
- contracts/@uniswap/v3-core/contracts/interfaces/IERC20Minimal.sol3.07 KB
- contracts/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol4.04 KB
- contracts/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol809 B
- contracts/@uniswap/v3-core/contracts/interfaces/IUniswapV3PoolDeployer.sol1.3 KB
- contracts/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3FlashCallback.sol982 B
- contracts/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol980 B
- contracts/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol1.29 KB
- contracts/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol6.3 KB
- contracts/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol2.6 KB
- contracts/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol5.96 KB
- contracts/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol1.81 KB
- contracts/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol1.19 KB
- contracts/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol6.51 KB
- contracts/@uniswap/v3-core/contracts/libraries/BitMath.sol2.79 KB
- contracts/@uniswap/v3-core/contracts/libraries/FixedPoint128.sol311 B
- contracts/@uniswap/v3-core/contracts/libraries/FixedPoint96.sol380 B
- contracts/@uniswap/v3-core/contracts/libraries/FullMath.sol5.13 KB
- contracts/@uniswap/v3-core/contracts/libraries/LiquidityMath.sol622 B
- contracts/@uniswap/v3-core/contracts/libraries/LowGasSafeMath.sol1.7 KB
- contracts/@uniswap/v3-core/contracts/libraries/Oracle.sol16.42 KB
- contracts/@uniswap/v3-core/contracts/libraries/Position.sol3.58 KB
- contracts/@uniswap/v3-core/contracts/libraries/SafeCast.sol1.05 KB
- contracts/@uniswap/v3-core/contracts/libraries/SqrtPriceMath.sol10.77 KB
- contracts/@uniswap/v3-core/contracts/libraries/SwapMath.sol4.63 KB
- contracts/@uniswap/v3-core/contracts/libraries/Tick.sol9.71 KB
- contracts/@uniswap/v3-core/contracts/libraries/TickBitmap.sol4.11 KB
- contracts/@uniswap/v3-core/contracts/libraries/TickMath.sol8.65 KB
- contracts/@uniswap/v3-core/contracts/libraries/TransferHelper.sol933 B
- contracts/@uniswap/v3-core/contracts/libraries/UnsafeMath.sol660 B
- contracts/NoDelegateCall.sol1.08 KB
- contracts/UniswapV3Factory.sol2.85 KB
- contracts/UniswapV3PoolDeployer.sol1.41 KB
- contracts/UniswapV3Pool_VerifiedByNG.sol35.51 KB
- contracts/interfaces/IERC20Minimal.sol3.07 KB
- contracts/interfaces/IUniswapV3Factory.sol4.04 KB
- contracts/interfaces/IUniswapV3Pool.sol809 B
- contracts/interfaces/IUniswapV3PoolDeployer.sol1.3 KB
- contracts/interfaces/callback/IUniswapV3FlashCallback.sol982 B
- contracts/interfaces/callback/IUniswapV3MintCallback.sol980 B
- contracts/interfaces/callback/IUniswapV3SwapCallback.sol1.29 KB
- contracts/interfaces/pool/IUniswapV3PoolActions.sol6.3 KB
- contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol2.6 KB
- contracts/interfaces/pool/IUniswapV3PoolEvents.sol5.96 KB
- contracts/interfaces/pool/IUniswapV3PoolImmutables.sol1.81 KB
- contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol1.19 KB
- contracts/interfaces/pool/IUniswapV3PoolState.sol6.51 KB
- contracts/libraries/BitMath.sol2.79 KB
- contracts/libraries/FixedPoint128.sol311 B
- contracts/libraries/FixedPoint96.sol380 B
- contracts/libraries/FullMath.sol5.13 KB
- contracts/libraries/LiquidityMath.sol622 B
- contracts/libraries/LowGasSafeMath.sol1.7 KB
- contracts/libraries/Oracle.sol16.42 KB
- contracts/libraries/Position.sol3.58 KB
- contracts/libraries/SafeCast.sol1.05 KB
- contracts/libraries/SqrtPriceMath.sol10.77 KB
- contracts/libraries/SwapMath.sol4.63 KB
- contracts/libraries/Tick.sol9.71 KB
- contracts/libraries/TickBitmap.sol4.11 KB
- contracts/libraries/TickMath.sol8.65 KB
- contracts/libraries/TransferHelper.sol933 B
- contracts/libraries/UnsafeMath.sol660 B
./contracts/NoDelegateCall.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.7.6;
/// @title Prevents delegatecall to a contract
/// @notice Base contract that provides a modifier for preventing delegatecall to methods in a child contract
abstract contract NoDelegateCall {
/// @dev The original address of this contract
address private immutable original;
constructor() {
// Immutables are computed in the init code of the contract, and then inlined into the deployed bytecode.
// In other words, this variable won't change when it's checked at runtime.
original = address(this);
}
/// @dev Private method is used instead of inlining into modifier because modifiers are copied into each method,
/// and the use of immutable means the address bytes are copied in every place the modifier is used.
function checkNotDelegateCall() private view {
require(address(this) == original);
}
/// @notice Prevents delegatecall into the modified method
modifier noDelegateCall() {
checkNotDelegateCall();
_;
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "none"
},
"libraries": {},
"optimizer": {
"runs": 800,
"enabled": true
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.