S Price: $0.886246 (+3.35%)
    /

    Contract

    0xE6e02d3Fa45Ad44574655B6eFb27e9bd22f0f656

    Overview

    S Balance

    Sonic LogoSonic LogoSonic Logo0 S

    S Value

    $0.00

    Multichain Info

    No addresses found
    Transaction Hash
    Method
    Block
    Age
    From
    To

    There are no matching entries

    1 Internal Transaction and 9 Token Transfers found.

    Latest 1 internal transaction

    Parent Transaction Hash Block Age From To Amount
    39775382025-01-15 9:55:5438 days ago1736934954
     Contract Creation
    0 S
    Loading...
    Loading

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

    Contract Name:
    RamsesV3Pool

    Compiler Version
    v0.8.28+commit.7893614a

    Optimization Enabled:
    Yes with 933 runs

    Other Settings:
    cancun EvmVersion
    File 1 of 34 : RamsesV3Pool.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {IRamsesV3PoolActions, IRamsesV3PoolDerivedState, IRamsesV3PoolOwnerActions, IRamsesV3Pool} from './interfaces/IRamsesV3Pool.sol';
    import {SafeCast} from './libraries/SafeCast.sol';
    import {Tick} from './libraries/Tick.sol';
    import {TickBitmap} from './libraries/TickBitmap.sol';
    import {Position} from './libraries/Position.sol';
    import {Oracle} from './libraries/Oracle.sol';
    import {FullMath} from './libraries/FullMath.sol';
    import {FixedPoint128} from './libraries/FixedPoint128.sol';
    import {TransferHelper} from './libraries/TransferHelper.sol';
    import {TickMath} from './libraries/TickMath.sol';
    import {SqrtPriceMath} from './libraries/SqrtPriceMath.sol';
    import {SwapMath} from './libraries/SwapMath.sol';
    import {IRamsesV3PoolDeployer} from './interfaces/IRamsesV3PoolDeployer.sol';
    import {IRamsesV3Factory} from './interfaces/IRamsesV3Factory.sol';
    import {IERC20Minimal} from './interfaces/IERC20Minimal.sol';
    import {IUniswapV3MintCallback} from './interfaces/callback/IUniswapV3MintCallback.sol';
    import {IUniswapV3SwapCallback} from './interfaces/callback/IUniswapV3SwapCallback.sol';
    import {IUniswapV3FlashCallback} from './interfaces/callback/IUniswapV3FlashCallback.sol';
    import {ProtocolActions} from './libraries/ProtocolActions.sol';
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 34 : IERC20.sol
    1
    2
    3
    4
    5
    6
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
    pragma solidity ^0.8.20;
    import {IERC20} from "../token/ERC20/IERC20.sol";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 34 : IERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev Interface of the ERC20 standard as defined in the EIP.
    */
    interface IERC20 {
    /**
    * @dev Emitted when `value` tokens are moved from one account (`from`) to
    * another (`to`).
    *
    * Note that `value` may be zero.
    */
    event Transfer(address indexed from, address indexed to, uint256 value);
    /**
    * @dev Emitted when the allowance of a `spender` for an `owner` is set by
    * a call to {approve}. `value` is the new allowance.
    */
    event Approval(address indexed owner, address indexed spender, uint256 value);
    /**
    * @dev Returns the value of tokens in existence.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 34 : IUniswapV3FlashCallback.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @dev original UniswapV3 callbacks maintained to ensure seamless integrations
    /// @title Callback for IUniswapV3PoolActions#flash
    /// @notice Any contract that calls IUniswapV3PoolActions#flash must implement this interface
    interface IUniswapV3FlashCallback {
    /// @notice Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash.
    /// @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// @param fee0 The fee amount in token0 due to the pool by the end of the flash
    /// @param fee1 The fee amount in token1 due to the pool by the end of the flash
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#flash call
    function uniswapV3FlashCallback(uint256 fee0, uint256 fee1, bytes calldata data) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 34 : IUniswapV3MintCallback.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @dev original UniswapV3 callbacks maintained to ensure seamless integrations
    /// @title Callback for IUniswapV3PoolActions#mint
    /// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface
    interface IUniswapV3MintCallback {
    /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.
    /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity
    /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call
    function uniswapV3MintCallback(uint256 amount0Owed, uint256 amount1Owed, bytes calldata data) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 34 : IUniswapV3SwapCallback.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @dev original UniswapV3 callbacks maintained to ensure seamless integrations
    /// @title Callback for IUniswapV3PoolActions#swap
    /// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
    interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes calldata data) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 34 : IERC20Minimal.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Minimal ERC20 interface for Ramses
    /// @notice Contains a subset of the full ERC20 interface that is used in Ramses V3
    interface IERC20Minimal {
    /// @notice Returns the balance of a token
    /// @param account The account for which to look up the number of tokens it has, i.e. its balance
    /// @return The number of tokens held by the account
    function balanceOf(address account) external view returns (uint256);
    /// @notice Transfers the amount of token from the `msg.sender` to the recipient
    /// @param recipient The account that will receive the amount transferred
    /// @param amount The number of tokens to send from the sender to the recipient
    /// @return Returns true for a successful transfer, false for an unsuccessful transfer
    function transfer(address recipient, uint256 amount) external returns (bool);
    /// @notice Returns the current allowance given to a spender by an owner
    /// @param owner The account of the token owner
    /// @param spender The account of the token spender
    /// @return The current allowance granted by `owner` to `spender`
    function allowance(address owner, address spender) external view returns (uint256);
    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`
    /// @param spender The account which will be allowed to spend a given amount of the owners tokens
    /// @param amount The amount of tokens allowed to be used by `spender`
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 34 : IRamsesV3Factory.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title The interface for the Ramses V3 Factory
    /// @notice The Ramses V3 Factory facilitates creation of Ramses V3 pools and control over the protocol fees
    interface IRamsesV3Factory {
    error IT();
    /// @dev Fee Too Large
    error FTL();
    error A0();
    error F0();
    error PE();
    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks
    /// @param pool The address of the created pool
    event PoolCreated(
    address indexed token0,
    address indexed token1,
    uint24 indexed fee,
    int24 tickSpacing,
    address pool
    );
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 9 of 34 : IRamsesV3Pool.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    import {IRamsesV3PoolImmutables} from './pool/IRamsesV3PoolImmutables.sol';
    import {IRamsesV3PoolState} from './pool/IRamsesV3PoolState.sol';
    import {IRamsesV3PoolDerivedState} from './pool/IRamsesV3PoolDerivedState.sol';
    import {IRamsesV3PoolActions} from './pool/IRamsesV3PoolActions.sol';
    import {IRamsesV3PoolOwnerActions} from './pool/IRamsesV3PoolOwnerActions.sol';
    import {IRamsesV3PoolErrors} from './pool/IRamsesV3PoolErrors.sol';
    import {IRamsesV3PoolEvents} from './pool/IRamsesV3PoolEvents.sol';
    /// @title The interface for a Ramses V3 Pool
    /// @notice A Ramses pool facilitates swapping and automated market making between any two assets that strictly conform
    /// to the ERC20 specification
    /// @dev The pool interface is broken up into many smaller pieces
    interface IRamsesV3Pool is
    IRamsesV3PoolImmutables,
    IRamsesV3PoolState,
    IRamsesV3PoolDerivedState,
    IRamsesV3PoolActions,
    IRamsesV3PoolOwnerActions,
    IRamsesV3PoolErrors,
    IRamsesV3PoolEvents
    {
    /// @notice if a new period, advance on interaction
    function _advancePeriod() external;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 10 of 34 : IRamsesV3PoolDeployer.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title An interface for a contract that is capable of deploying Ramses V3 Pools
    /// @notice A contract that constructs a pool must implement this to pass arguments to the pool
    /// @dev This is used to avoid having constructor arguments in the pool contract, which results in the init code hash
    /// of the pool being constant allowing the CREATE2 address of the pool to be cheaply computed on-chain
    interface IRamsesV3PoolDeployer {
    /// @notice Get the parameters to be used in constructing the pool, set transiently during pool creation.
    /// @dev Called by the pool constructor to fetch the parameters of the pool
    /// Returns factory The factory address
    /// Returns token0 The first token of the pool by address sort order
    /// Returns token1 The second token of the pool by address sort order
    /// Returns fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// Returns tickSpacing The minimum number of ticks between initialized ticks
    function parameters()
    external
    view
    returns (address factory, address token0, address token1, uint24 fee, int24 tickSpacing);
    /// @dev Deploys a pool with the given parameters by transiently setting the parameters storage slot and then
    /// clearing it after deploying the pool.
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param tickSpacing The tickSpacing of the pool
    function deploy(address token0, address token1, int24 tickSpacing) external returns (address pool);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 11 of 34 : IRamsesV3PoolActions.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Permissionless pool actions
    /// @notice Contains pool methods that can be called by anyone
    interface IRamsesV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;
    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param index The index for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    function mint(
    address recipient,
    uint256 index,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 12 of 34 : IRamsesV3PoolDerivedState.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Pool state that is not stored
    /// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
    /// blockchain. The functions here may have variable gas costs.
    interface IRamsesV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(
    uint32[] calldata secondsAgos
    ) external view returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);
    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 13 of 34 : IRamsesV3PoolErrors.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Errors emitted by a pool
    /// @notice Contains all events emitted by the pool
    interface IRamsesV3PoolErrors {
    error LOK();
    error TLU();
    error TLM();
    error TUM();
    error AI();
    error M0();
    error M1();
    error AS();
    error IIA();
    error L();
    error F0();
    error F1();
    error SPL();
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 14 of 34 : IRamsesV3PoolEvents.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Events emitted by a pool
    /// @notice Contains all events emitted by the pool
    interface IRamsesV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 sqrtPriceX96, int24 tick);
    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
    address sender,
    address indexed owner,
    int24 indexed tickLower,
    int24 indexed tickUpper,
    uint128 amount,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 15 of 34 : IRamsesV3PoolImmutables.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Pool state that never changes
    /// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
    interface IRamsesV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IRamsesV3Factory interface
    /// @return The contract address
    function factory() external view returns (address);
    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);
    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);
    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);
    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 16 of 34 : IRamsesV3PoolOwnerActions.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Permissioned pool actions
    /// @notice Contains pool methods that may only be called by the factory owner
    interface IRamsesV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    function setFeeProtocol() external;
    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
    address recipient,
    uint128 amount0Requested,
    uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
    function setFee(uint24 _fee) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 17 of 34 : IRamsesV3PoolState.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Pool state that can change
    /// @notice These methods compose the pool's state, and can change with any frequency including multiple times
    /// per transaction
    interface IRamsesV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// @return tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// @return observationIndex The index of the last oracle observation that was written,
    /// @return observationCardinality The current maximum number of observations stored in the pool,
    /// @return observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// @return feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
    external
    view
    returns (
    uint160 sqrtPriceX96,
    int24 tick,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 18 of 34 : BitMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    /// @title BitMath
    /// @dev This library provides functionality for computing bit properties of an unsigned integer
    library BitMath {
    /// @notice Returns the index of the most significant bit of the number,
    /// where the least significant bit is at index 0 and the most significant bit is at index 255
    /// @dev The function satisfies the property:
    /// x >= 2**mostSignificantBit(x) and x < 2**(mostSignificantBit(x)+1)
    /// @param x the value for which to compute the most significant bit, must be greater than 0
    /// @return r the index of the most significant bit
    function mostSignificantBit(uint256 x) internal pure returns (uint8 r) {
    require(x > 0);
    unchecked {
    if (x >= 0x100000000000000000000000000000000) {
    x >>= 128;
    r += 128;
    }
    if (x >= 0x10000000000000000) {
    x >>= 64;
    r += 64;
    }
    if (x >= 0x100000000) {
    x >>= 32;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 19 of 34 : FixedPoint128.sol
    1
    2
    3
    4
    5
    6
    7
    8
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.4.0;
    /// @title FixedPoint128
    /// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
    library FixedPoint128 {
    uint256 internal constant Q128 = 0x100000000000000000000000000000000;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 20 of 34 : FixedPoint32.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.4.0;
    /// @title FixedPoint32
    /// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
    library FixedPoint32 {
    uint8 internal constant RESOLUTION = 32;
    uint256 internal constant Q32 = 0x100000000;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 21 of 34 : FixedPoint96.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.4.0;
    /// @title FixedPoint96
    /// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
    /// @dev Used in SqrtPriceMath.sol
    library FixedPoint96 {
    uint8 internal constant RESOLUTION = 96;
    uint256 internal constant Q96 = 0x1000000000000000000000000;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 22 of 34 : FullMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.26;
    /// @title Contains 512-bit math functions
    /// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
    /// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
    library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {
    unchecked {
    // 512-bit multiply [prod1 prod0] = a * b
    // Compute the product mod 2**256 and mod 2**256 - 1
    // then use the Chinese Remainder Theorem to reconstruct
    // the 512 bit result. The result is stored in two 256
    // variables such that product = prod1 * 2**256 + prod0
    uint256 prod0; // Least significant 256 bits of the product
    uint256 prod1; // Most significant 256 bits of the product
    assembly {
    let mm := mulmod(a, b, not(0))
    prod0 := mul(a, b)
    prod1 := sub(sub(mm, prod0), lt(mm, prod0))
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 23 of 34 : Oracle.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {PoolStorage, Observation, TickInfo, Slot0} from './PoolStorage.sol';
    /// @title Oracle
    /// @notice Provides price and liquidity data useful for a wide variety of system designs
    /// @dev Instances of stored oracle data, "observations", are collected in the oracle array
    /// Every pool is initialized with an oracle array length of 1. Anyone can pay the SSTOREs to increase the
    /// maximum length of the oracle array. New slots will be added when the array is fully populated.
    /// Observations are overwritten when the full length of the oracle array is populated.
    /// The most recent observation is available, independent of the length of the oracle array, by passing 0 to observe()
    library Oracle {
    error I();
    error OLD();
    /// @notice Transforms a previous observation into a new observation, given the passage of time and the current tick and liquidity values
    /// @dev blockTimestamp _must_ be chronologically equal to or greater than last.blockTimestamp, safe for 0 or 1 overflows
    /// @param last The specified observation to be transformed
    /// @param blockTimestamp The timestamp of the new observation
    /// @param tick The active tick at the time of the new observation
    /// @param liquidity The total in-range liquidity at the time of the new observation
    /// @return Observation The newly populated observation
    function transform(
    Observation memory last,
    uint32 blockTimestamp,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 24 of 34 : PoolStorage.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    struct Slot0 {
    /// @dev the current price
    uint160 sqrtPriceX96;
    /// @dev the current tick
    int24 tick;
    /// @dev the most-recently updated index of the observations array
    uint16 observationIndex;
    /// @dev the current maximum number of observations that are being stored
    uint16 observationCardinality;
    /// @dev the next maximum number of observations to store, triggered in observations.write
    uint16 observationCardinalityNext;
    /// @dev the current protocol fee as a percentage of the swap fee taken on withdrawal
    /// @dev represented as an integer denominator (1/x)%
    uint8 feeProtocol;
    /// @dev whether the pool is locked
    bool unlocked;
    }
    struct Observation {
    /// @dev the block timestamp of the observation
    uint32 blockTimestamp;
    /// @dev the tick accumulator, i.e. tick * time elapsed since the pool was first initialized
    int56 tickCumulative;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 25 of 34 : Position.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {FullMath} from './FullMath.sol';
    import {FixedPoint128} from './FixedPoint128.sol';
    import {FixedPoint32} from './FixedPoint32.sol';
    import {FixedPoint96} from './FixedPoint96.sol';
    import {Oracle} from './Oracle.sol';
    import {SafeCast} from './SafeCast.sol';
    import {Tick} from './Tick.sol';
    import {TickBitmap} from './TickBitmap.sol';
    import {PoolStorage, PositionInfo, PositionCheckpoint, RewardInfo} from './PoolStorage.sol';
    /// @title Position
    /// @notice Positions represent an owner address' liquidity between a lower and upper tick boundary
    /// @dev Positions store additional state for tracking fees owed to the position
    library Position {
    error NP();
    error FTR();
    /// @notice Returns the hash used to store positions in a mapping
    /// @param owner The address of the position owner
    /// @param index The index of the position
    /// @param tickLower The lower tick boundary of the position
    /// @param tickUpper The upper tick boundary of the position
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 26 of 34 : ProtocolActions.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    pragma abicoder v2;
    import {PoolStorage} from './PoolStorage.sol';
    import {TransferHelper} from './TransferHelper.sol';
    import {IRamsesV3Factory} from '../interfaces/IRamsesV3Factory.sol';
    library ProtocolActions {
    error NOT_AUTHORIZED();
    error INVALID_FEE();
    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocolOld The previous value of the token0 protocol fee
    /// @param feeProtocolNew The updated value of the token1 protocol fee
    event SetFeeProtocol(uint8 feeProtocolOld, uint8 feeProtocolNew);
    /// @notice Emitted when the collected protocol fees are withdrawn by the fee collector
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
    event FeeAdjustment(uint24 oldFee, uint24 newFee);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 27 of 34 : SafeCast.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Safe casting methods
    /// @notice Contains methods for safely casting between types
    library SafeCast {
    /// @notice Cast a uint256 to a uint160, revert on overflow
    /// @param y The uint256 to be downcasted
    /// @return z The downcasted integer, now type uint160
    function toUint160(uint256 y) internal pure returns (uint160 z) {
    require((z = uint160(y)) == y);
    }
    /// @notice Cast a int256 to a int128, revert on overflow or underflow
    /// @param y The int256 to be downcasted
    /// @return z The downcasted integer, now type int128
    function toInt128(int256 y) internal pure returns (int128 z) {
    require((z = int128(y)) == y);
    }
    /// @notice Cast a uint256 to a int256, revert on overflow
    /// @param y The uint256 to be casted
    /// @return z The casted integer, now type int256
    function toInt256(uint256 y) internal pure returns (int256 z) {
    require(y < 2 ** 255);
    z = int256(y);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 28 of 34 : SqrtPriceMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {SafeCast} from './SafeCast.sol';
    import {FullMath} from './FullMath.sol';
    import {UnsafeMath} from './UnsafeMath.sol';
    import {FixedPoint96} from './FixedPoint96.sol';
    /// @title Functions based on Q64.96 sqrt price and liquidity
    /// @notice Contains the math that uses square root of price as a Q64.96 and liquidity to compute deltas
    library SqrtPriceMath {
    using SafeCast for uint256;
    /// @notice Gets the next sqrt price given a delta of token0
    /// @dev Always rounds up, because in the exact output case (increasing price) we need to move the price at least
    /// far enough to get the desired output amount, and in the exact input case (decreasing price) we need to move the
    /// price less in order to not send too much output.
    /// The most precise formula for this is liquidity * sqrtPX96 / (liquidity +- amount * sqrtPX96),
    /// if this is impossible because of overflow, we calculate liquidity / (liquidity / sqrtPX96 +- amount).
    /// @param sqrtPX96 The starting price, i.e. before accounting for the token0 delta
    /// @param liquidity The amount of usable liquidity
    /// @param amount How much of token0 to add or remove from virtual reserves
    /// @param add Whether to add or remove the amount of token0
    /// @return The price after adding or removing amount, depending on add
    function getNextSqrtPriceFromAmount0RoundingUp(
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 29 of 34 : SwapMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {FullMath} from './FullMath.sol';
    import {SqrtPriceMath} from './SqrtPriceMath.sol';
    /// @title Computes the result of a swap within ticks
    /// @notice Contains methods for computing the result of a swap within a single tick price range, i.e., a single tick.
    library SwapMath {
    /// @notice Computes the result of swapping some amount in, or amount out, given the parameters of the swap
    /// @dev The fee, plus the amount in, will never exceed the amount remaining if the swap's `amountSpecified` is positive
    /// @param sqrtRatioCurrentX96 The current sqrt price of the pool
    /// @param sqrtRatioTargetX96 The price that cannot be exceeded, from which the direction of the swap is inferred
    /// @param liquidity The usable liquidity
    /// @param amountRemaining How much input or output amount is remaining to be swapped in/out
    /// @param feePips The fee taken from the input amount, expressed in hundredths of a bip
    /// @return sqrtRatioNextX96 The price after swapping the amount in/out, not to exceed the price target
    /// @return amountIn The amount to be swapped in, of either token0 or token1, based on the direction of the swap
    /// @return amountOut The amount to be received, of either token0 or token1, based on the direction of the swap
    /// @return feeAmount The amount of input that will be taken as a fee
    function computeSwapStep(
    uint160 sqrtRatioCurrentX96,
    uint160 sqrtRatioTargetX96,
    uint128 liquidity,
    int256 amountRemaining,
    uint24 feePips
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 30 of 34 : Tick.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {SafeCast} from './SafeCast.sol';
    import {TickMath} from './TickMath.sol';
    import {TickInfo} from './PoolStorage.sol';
    /// @title Tick
    /// @notice Contains functions for managing tick processes and relevant calculations
    library Tick {
    error LO();
    using SafeCast for int256;
    /// @notice Derives max liquidity per tick from given tick spacing
    /// @dev Executed within the pool constructor
    /// @param tickSpacing The amount of required tick separation, realized in multiples of `tickSpacing`
    /// e.g., a tickSpacing of 3 requires ticks to be initialized every 3rd tick i.e., ..., -6, -3, 0, 3, 6, ...
    /// @return The max liquidity per tick
    function tickSpacingToMaxLiquidityPerTick(int24 tickSpacing) internal pure returns (uint128) {
    unchecked {
    int24 minTick = (TickMath.MIN_TICK / tickSpacing) * tickSpacing;
    int24 maxTick = (TickMath.MAX_TICK / tickSpacing) * tickSpacing;
    uint24 numTicks = uint24((maxTick - minTick) / tickSpacing) + 1;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 31 of 34 : TickBitmap.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    import {BitMath} from './BitMath.sol';
    /// @title Packed tick initialized state library
    /// @notice Stores a packed mapping of tick index to its initialized state
    /// @dev The mapping uses int16 for keys since ticks are represented as int24 and there are 256 (2^8) values per word.
    library TickBitmap {
    /// @notice Computes the position in the mapping where the initialized bit for a tick lives
    /// @param tick The tick for which to compute the position
    /// @return wordPos The key in the mapping containing the word in which the bit is stored
    /// @return bitPos The bit position in the word where the flag is stored
    function position(int24 tick) private pure returns (int16 wordPos, uint8 bitPos) {
    unchecked {
    wordPos = int16(tick >> 8);
    bitPos = uint8(int8(tick % 256));
    }
    }
    /// @notice Flips the initialized state for a given tick from false to true, or vice versa
    /// @param self The mapping in which to flip the tick
    /// @param tick The tick to flip
    /// @param tickSpacing The spacing between usable ticks
    function flipTick(mapping(int16 => uint256) storage self, int24 tick, int24 tickSpacing) internal {
    unchecked {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 32 of 34 : TickMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.26;
    /// @title Math library for computing sqrt prices from ticks and vice versa
    /// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports
    /// prices between 2**-128 and 2**128
    library TickMath {
    error T();
    error R();
    /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128
    int24 internal constant MIN_TICK = -887272;
    /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128
    int24 internal constant MAX_TICK = -MIN_TICK;
    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 internal constant MIN_SQRT_RATIO = 4295128739;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;
    /// @notice Calculates sqrt(1.0001^tick) * 2^96
    /// @dev Throws if |tick| > max tick
    /// @param tick The input tick for the above formula
    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 33 of 34 : TransferHelper.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.6.0;
    import {IERC20Minimal} from '../interfaces/IERC20Minimal.sol';
    /// @title TransferHelper
    /// @notice Contains helper methods for interacting with ERC20 tokens that do not consistently return true/false
    library TransferHelper {
    error TF();
    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Calls transfer on token contract, errors with TF if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(address token, address to, uint256 value) internal {
    (bool success, bytes memory data) = token.call(
    abi.encodeWithSelector(IERC20Minimal.transfer.selector, to, value)
    );
    if (!(success && (data.length == 0 || abi.decode(data, (bool))))) revert TF();
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 34 of 34 : UnsafeMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Math functions that do not check inputs or outputs
    /// @notice Contains methods that perform common math functions but do not do any overflow or underflow checks
    library UnsafeMath {
    /// @notice Returns ceil(x / y)
    /// @dev division by 0 has unspecified behavior, and must be checked externally
    /// @param x The dividend
    /// @param y The divisor
    /// @return z The quotient, ceil(x / y)
    function divRoundingUp(uint256 x, uint256 y) internal pure returns (uint256 z) {
    assembly {
    z := add(div(x, y), gt(mod(x, y), 0))
    }
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    {
    "optimizer": {
    "enabled": true,
    "runs": 933
    },
    "evmVersion": "cancun",
    "viaIR": true,
    "outputSelection": {
    "*": {
    "*": [
    "evm.bytecode",
    "evm.deployedBytecode",
    "devdoc",
    "userdoc",
    "metadata",
    "abi"
    ]
    }
    },
    "libraries": {
    "contracts/CL/core/libraries/Oracle.sol": {
    "Oracle": "0x50f6a754f94a6a5ee3d887e6b1f12b55aee0c69c"
    },
    "contracts/CL/core/libraries/Position.sol": {
    "Position": "0x4bd87e0077d12b9b18b158dbe5ea7944135318e6"
    },
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Contract Security Audit

    Contract ABI

    [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AI","type":"error"},{"inputs":[],"name":"AS","type":"error"},{"inputs":[],"name":"F0","type":"error"},{"inputs":[],"name":"F1","type":"error"},{"inputs":[],"name":"I","type":"error"},{"inputs":[],"name":"IIA","type":"error"},{"inputs":[],"name":"L","type":"error"},{"inputs":[],"name":"LOK","type":"error"},{"inputs":[],"name":"M0","type":"error"},{"inputs":[],"name":"M1","type":"error"},{"inputs":[],"name":"NOT_AUTHORIZED","type":"error"},{"inputs":[],"name":"OLD","type":"error"},{"inputs":[],"name":"R","type":"error"},{"inputs":[],"name":"SPL","type":"error"},{"inputs":[],"name":"T","type":"error"},{"inputs":[],"name":"TF","type":"error"},{"inputs":[],"name":"TLM","type":"error"},{"inputs":[],"name":"TLU","type":"error"},{"inputs":[],"name":"TUM","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":true,"internalType":"int24","name":"tickUpper","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":true,"internalType":"int24","name":"tickUpper","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"CollectProtocol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid1","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"observationCardinalityNextOld","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"observationCardinalityNextNew","type":"uint16"}],"name":"IncreaseObservationCardinalityNext","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"tickLower","type":"int24"},{"indexed":true,"internalType":"int24","name":"tickUpper","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"feeProtocol0Old","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"feeProtocol1Old","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"feeProtocol0New","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"feeProtocol1New","type":"uint8"}],"name":"SetFeeProtocol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"int256","name":"amount0","type":"int256"},{"indexed":false,"internalType":"int256","name":"amount1","type":"int256"},{"indexed":false,"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Swap","type":"event"},{"inputs":[],"name":"_advancePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collectProtocol","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeGrowthGlobal0X128","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeGrowthGlobal1X128","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"observationCardinalityNext","type":"uint16"}],"name":"increaseObservationCardinalityNext","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidityPerTick","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"observations","outputs":[{"internalType":"uint32","name":"blockTimestamp","type":"uint32"},{"internalType":"int56","name":"tickCumulative","type":"int56"},{"internalType":"uint160","name":"secondsPerLiquidityCumulativeX128","type":"uint160"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"secondsAgos","type":"uint32[]"}],"name":"observe","outputs":[{"internalType":"int56[]","name":"tickCumulatives","type":"int56[]"},{"internalType":"uint160[]","name":"secondsPerLiquidityCumulativeX128s","type":"uint160[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"}],"name":"periods","outputs":[{"internalType":"uint32","name":"previousPeriod","type":"uint32"},{"internalType":"int24","name":"startTick","type":"int24"},{"internalType":"int24","name":"lastTick","type":"int24"},{"internalType":"uint160","name":"endSecondsPerLiquidityPeriodX128","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"name":"positionPeriodSecondsInRange","outputs":[{"internalType":"uint256","name":"periodSecondsInsideX96","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFees","outputs":[{"internalType":"uint128","name":"","type":"uint128"},{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"slots","type":"bytes32[]"}],"name":"readStorage","outputs":[{"internalType":"bytes32[]","name":"returnData","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint24","name":"_fee","type":"uint24"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setFeeProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slot0","outputs":[{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"observationIndex","type":"uint16"},{"internalType":"uint16","name":"observationCardinality","type":"uint16"},{"internalType":"uint16","name":"observationCardinalityNext","type":"uint16"},{"internalType":"uint8","name":"feeProtocol","type":"uint8"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"name":"snapshotCumulativesInside","outputs":[{"internalType":"int56","name":"tickCumulativeInside","type":"int56"},{"internalType":"uint160","name":"secondsPerLiquidityInsideX128","type":"uint160"},{"internalType":"uint32","name":"secondsInside","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroForOne","type":"bool"},{"internalType":"int256","name":"amountSpecified","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int16","name":"tick","type":"int16"}],"name":"tickBitmap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tick","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint128","name":"liquidityGross","type":"uint128"},{"internalType":"int128","name":"liquidityNet","type":"int128"},{"internalType":"uint256","name":"feeGrowthOutside0X128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthOutside1X128","type":"uint256"},{"internalType":"int56","name":"tickCumulativeOutside","type":"int56"},{"internalType":"uint160","name":"secondsPerLiquidityOutsideX128","type":"uint160"},{"internalType":"uint32","name":"secondsOutside","type":"uint32"},{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

    Deployed Bytecode

    0x6080806040526004361015610012575f80fd5b5f905f3560e01c9081630dfe16811461398257508063128acb081461216c5780631a686502146121395780631ad8b03b146120bb578063252c09d71461202d57806332148f6714611f055780633850c7bd14611e835780634614131914611e46578063490e6cbc14611977578063514ea4bf146118f05780635339c296146118915780636847456a1461170557806370cf754a146116c15780637b7d549d146115c75780638221b8c1146112ed57806385b6672914611021578063883bdbfd14610df95780639918fbb614610c7d578063a02f1069146109e8578063a38807f2146108a7578063c2e0f9b21461088b578063c45a015514610847578063d0c93a7c14610809578063d21220a7146107c5578063d340ef8a14610788578063ddca3f4314610746578063e57c0ca914610674578063ea4a1104146105e7578063eabb5622146104a2578063f305839914610465578063f30dba93146103a65763f637731d1461017e575f80fd5b346103a35760203660031901126103a3576101976139c3565b6001600160a01b035f5160206159005f395f51905f52541661037b576040816101e07f98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c9593614632565b9082516101ec81613af7565b8581526020808201878152858301888152600160608501529251905192519290911b6affffffffffffff000000001663ffffffff919091161760589190911b7effffffffffffffffffffffffffffffffffffffff00000000000000000000001617600160f81b175f5160206159405f395f51905f525561026a613d52565b6001600160a01b0383519161027e83613a8e565b16808252600283900b602080840182905285840188905260016060850181905260808501819052600560a08087019190915260c0909501525f5160206159005f395f51905f5280547901000000000000000000000000000000000000000000000000009690951b62ffffff60a01b167fffffffffff00000000000000000000000000000000000000000000000000000090951666ffffffffffffff60a01b1985161794909417949094177fff00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff167e0105000100000000000000000000000000000000000000000000000000000017909255835190815291820152a180f35b6004827f9cc0b7f8000000000000000000000000000000000000000000000000000000008152fd5b80fd5b50346103a35760203660031901126103a3576101006103f66103c6613a37565b60020b5f527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280660205260405f2090565b8054906001810154906003600282015491015491604051936001600160801b038116855260801d600f0b6020850152604084015260608301528060060b60808301526001600160a01b038160381c1660a083015263ffffffff8160d81c1660c083015260f81c151560e0820152f35b50346103a357806003193601126103a35760207ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280254604051908152f35b50346103a35760203660031901126103a3576004359062ffffff82168092036103a3575f5160206159005f395f51905f52549160ff8360f01c16156105d85760ff60f01b198293165f5160206159005f395f51905f5255730c2e1dd2960879f9461c1d2f6472b72ba12bd61790813b156105d45782906044604051809481937f4f67424900000000000000000000000000000000000000000000000000000000835260048301526001600160a01b037f000000000000000000000000cd2d0637c94fe77c2896bbcbb174ceffb08de6d71660248301525af480156105c9576105b4575b50600160f01b60ff60f01b195f5160206159005f395f51905f525416175f5160206159005f395f51905f525580f35b816105be91613b13565b6103a357805f610585565b6040513d84823e3d90fd5b5050fd5b6004826350dfbc4360e11b8152fd5b50346103a35760203660031901126103a357604060809160043581525f5160206158e05f395f51905f526020522060606040519161062483613af7565b5463ffffffff8116928381528160201c60020b908160208201526001600160a01b038360381c60020b9384604084015260501c169384910152604051938452602084015260408301526060820152f35b50346103a35760203660031901126103a35760043567ffffffffffffffff8111610742576106a6903690600401613a5d565b906106b082613d3a565b906106be6040519283613b13565b8282526106ca83613d3a565b6020830190601f1901368237845b848110156106fc576001908060051b840135546106f58287614024565b52016106d8565b5091925050604051928392602084019060208552518091526040840192915b818110610729575050500390f35b825184528594506020938401939092019160010161071b565b5080fd5b50346103a357806003193601126103a357602062ffffff7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb28015416604051908152f35b50346103a357806003193601126103a35760207ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccc280954604051908152f35b50346103a357806003193601126103a35760206040516001600160a01b037f000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae168152f35b50346103a357806003193601126103a35760206040517f000000000000000000000000000000000000000000000000000000000000006460020b8152f35b50346103a357806003193601126103a35760206040516001600160a01b037f000000000000000000000000cd2d0637c94fe77c2896bbcbb174ceffb08de6d7168152f35b50346103a357806003193601126103a3576108a4613d52565b80f35b50346103a35760403660031901126103a3576108c1613a37565b906108ca613a07565b6108d4818461523c565b604051927f9b7beb6000000000000000000000000000000000000000000000000000000000845260020b600484015260020b602483015263ffffffff421660448301526060826064817350f6a754f94a6a5ee3d887e6b1f12b55aee0c69c5af49182156109db57818091819461096e575b60608463ffffffff876001600160a01b03876040519460060b8552166020840152166040820152f35b92509250506060813d6060116109d3575b8161098c60609383613b13565b810103126107425780518060060b81036109cf5760406109ae60208401613bab565b9201519263ffffffff841684036103a3575090806001600160a01b03610945565b8280fd5b3d915061097f565b50604051903d90823e3d90fd5b50346103a35760c03660031901126103a357610a026139c3565b90610a0b613a17565b610a13613a27565b92610a1c613a47565b9360a4356001600160801b038116808203610c79575f5160206159005f395f51905f525460ff8160f01c1615610c6a5760ff60f01b19165f5160206159005f395f51905f525560405160208101903360601b825260243560348201528660e81b60548201528460e81b6057820152603a8152610a99605a82613b13565b51902086527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280860205260036040872001918254966001600160801b03881698896001600160801b038216115f14610c64575088975b60801c92839150115f14610c5c5750955b856001600160801b0381169182610c06575b50506001600160801b0387169182610ba8575b506001600160a01b03604051941684526020840152604083015260020b9160020b907f70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c060603392a45f5160206159005f395f51905f52805460ff60f01b1916600160f01b179055604080516001600160801b03928316815292909116602083015290f35b80546001600160801b038116608091821c8a900390911b6fffffffffffffffffffffffffffffffff1916179055610c0082857f000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae614bec565b5f610b24565b83546fffffffffffffffffffffffffffffffff19169190036001600160801b0316178255610c5581857f00000000000000000000000069690ed6644b0e735c05b49034b6283ed5bb6969614bec565b855f610b11565b905095610aff565b97610aee565b6004876350dfbc4360e11b8152fd5b8580fd5b50346103a35760a03660031901126103a357602435906001600160a01b0382168092036103a357610cac613a27565b916084358060020b8091036109cf576040519360c0850185811067ffffffffffffffff821117610de5579063ffffffff939291604052600435865260208601928352604086016044358152606087019160020b8252608087019283526001600160a01b0360a08801948642168652604051987fd2e6311b000000000000000000000000000000000000000000000000000000008a525160048a0152511660248801525160448701525160020b60648601525160020b6084850152511660a483015260208260c481734bd87e0077d12b9b18b158dbe5ea7944135318e65af4908115610dd95790610da2575b602090604051908152f35b506020813d602011610dd1575b81610dbc60209383613b13565b81010312610dcd5760209051610d97565b5f80fd5b3d9150610daf565b604051903d90823e3d90fd5b602485634e487b7160e01b81526041600452fd5b50346103a35760203660031901126103a35760043567ffffffffffffffff811161074257610e2b903690600401613a5d565b919063ffffffff4216925f5160206159005f395f51905f52548060a01c60020b61ffff8260b81c169061ffff6001600160801b035f5160206158c05f395f51905f5254169360c81c1693610e7e81613d3a565b95610e8c6040519788613b13565b818752602087019160051b81019036821161101d57915b818310610ffc575050508315610fed57845196610ed8610ec289613d3a565b98610ed06040519a8b613b13565b808a52613d3a565b602089019690601f1901368837805196610ef4610ec289613d3a565b602089019190601f1901368337895b8b8451821015610f6457908a610f5882600194816001600160a01b038f8f8f918f918f938f93610f4f9563ffffffff610f3f8a610f4798614024565b51169061497d565b939097614024565b91169052614024565b9060060b905201610f03565b8a90848d8560405194859460408601906040875251809152606086019290845b818110610fd1575050506020908583038287015251918281520192915b818110610faf575050500390f35b82516001600160a01b0316845285945060209384019390920191600101610fa1565b825160060b855288975060209485019490920191600101610f84565b600486636b93000360e11b8152fd5b823563ffffffff8116810361101957815260209283019201610ea3565b8980fd5b8880fd5b50346103a35760603660031901126103a35761103b6139c3565b906024356001600160801b03811680910361074257604435906001600160801b0382168092036109cf575f5160206159005f395f51905f525460ff8160f01c16156112de5760ff60f01b19165f5160206159005f395f51905f52556040517fc415b95c0000000000000000000000000000000000000000000000000000000081526020816004816001600160a01b037f000000000000000000000000cd2d0637c94fe77c2896bbcbb174ceffb08de6d7165afa80156112d3578490611286575b6001600160a01b03915016330361125e576001600160a01b03604051947fb81955c9000000000000000000000000000000000000000000000000000000008652166004850152602484015260448301526001600160a01b037f00000000000000000000000069690ed6644b0e735c05b49034b6283ed5bb69691660648301526001600160a01b037f000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae16608483015260408260a481730c2e1dd2960879f9461c1d2f6472b72ba12bd6175af49182156109db57818093611213575b50505f5160206159005f395f51905f52805460ff60f01b1916600160f01b179055604080516001600160801b03928316815292909116602083015290f35b915091506040823d604011611256575b8161123060409383613b13565b810103126103a3575061124e602061124783613d26565b9201613d26565b905f806111d5565b3d9150611223565b6004837f3d83866f000000000000000000000000000000000000000000000000000000008152fd5b506020813d6020116112cb575b816112a060209383613b13565b810103126112c757516001600160a01b03811681036112c7576001600160a01b03906110fb565b8380fd5b3d9150611293565b6040513d86823e3d90fd5b6004846350dfbc4360e11b8152fd5b50346103a35760c03660031901126103a3576113076139c3565b61130f613a17565b611317613a27565b91611320613a47565b9260a43567ffffffffffffffff8111610c79576113419036906004016139d9565b9390945f5160206159005f395f51905f525460ff8160f01c16156115b85760ff60f01b19165f5160206159005f395f51905f52556001600160801b0390611386613d52565b169586156103a35786600f0b93878503610dcd576113e1906001600160a01b03604051916113b383613adb565b1693848252602435602083015260020b9485604083015260020b95866060830152600f0b6080820152614e88565b969150968290839189151591826115a8575b8915159485611598575b333b15611594578a8c61143f899360405195869485947fd348799700000000000000000000000000000000000000000000000000000000865260048601613c8e565b038183335af18015611589578b9291879161156a575b505082611550575b50506115285786908261150e575b50506114e657507f7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde608060409788519033825260208201528789820152866060820152a4600160f01b60ff60f01b195f5160206159005f395f51905f525416175f5160206159005f395f51905f525582519182526020820152f35b807f20e5672e0000000000000000000000000000000000000000000000000000000060049252fd5b6115189250613be3565b611520614cf1565b10855f61146b565b6004837f748800af000000000000000000000000000000000000000000000000000000008152fd5b61155a9250613be3565b611562614d76565b10885f61145d565b819293509061157891613b13565b611585578990855f611455565b8480fd5b6040513d88823e3d90fd5b8680fd5b93506115a2614cf1565b936113fd565b90506115b2614d76565b906113f3565b6004886350dfbc4360e11b8152fd5b50346103a357806003193601126103a3575f5160206159005f395f51905f525460ff8160f01c16156105d85760ff60f01b19165f5160206159005f395f51905f525580730c2e1dd2960879f9461c1d2f6472b72ba12bd617803b156116be5781602491604051928380927f425fb0030000000000000000000000000000000000000000000000000000000082526001600160a01b037f000000000000000000000000cd2d0637c94fe77c2896bbcbb174ceffb08de6d71660048301525af480156105c9576105b45750600160f01b60ff60f01b195f5160206159005f395f51905f525416175f5160206159005f395f51905f525580f35b50fd5b50346103a357806003193601126103a35760206040516001600160801b037f000000000000000000000000000000000003b1762b13ec52766279d8d8a13b4e168152f35b50346103a35760803660031901126103a35761171f613a07565b90611728613a17565b606435906001600160801b0382168092036109cf575f5160206159005f395f51905f525460ff8160f01c16156112de5760ff60f01b19165f5160206159005f395f51905f5255611776613d52565b81600f0b90828203610dcd576117c160409586519061179482613adb565b338252600435602083015260020b92838883015260020b938460608301528603600f0b6080820152614e88565b818703968190039592911580159190611887575b50611849575b50855190815284602082015283868201527f0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c60603392a4600160f01b60ff60f01b195f5160206159005f395f51905f525416175f5160206159005f395f51905f525582519182526020820152f35b60030180546001600160801b038781168183160181166fffffffffffffffffffffffffffffffff19918816608093841c0190921b161790555f6117db565b905015155f6117d5565b50346103a35760203660031901126103a357600435908160010b82036103a35760206118e78360010b5f527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280760205260405f2090565b54604051908152f35b50346103a35760203660031901126103a357604060a09160043581527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2808602052206001600160801b03815416906001810154906003600282015491015491604051938452602084015260408301526001600160801b038116606083015260801c6080820152f35b50346103a35760803660031901126103a3576119916139c3565b906024356044359260643567ffffffffffffffff81116112c7576119b99036906004016139d9565b90945f5160206159005f395f51905f525460ff8160f01c1615611e375760ff60f01b19165f5160206159005f395f51905f52556001600160801b035f5160206158c05f395f51905f525416908115611e0f5762ffffff7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2801541691611a47611a408488614e42565b9383614e42565b90611a50614d76565b94611a59614cf1565b9988611ddf575b84611daf575b333b1561101957611aa9918a9160405193849283927fe9cbafb0000000000000000000000000000000000000000000000000000000008452888b60048601613c8e565b038183335af18015611da457908991611d8b575b5050611ac7614d76565b9182611adb611ad4614cf1565b9688613be3565b11611d6357611aeb85918b613be3565b11611d3b576001600160a01b03969798858303948181039660ff5f5160206159005f395f51905f525460e81c169403611c66575b03611b92575b505060405195865260208601526040850152606084015216907fbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca63360803392a3600160f01b60ff60f01b195f5160206159005f395f51905f525416175f5160206159005f395f51905f525580f35b611bb69180611c5b5750885b6001600160801b03811680611c02575b508503614453565b7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280354017ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2803555f80611b25565b6001600160801b03611c55915f5160206159205f395f51905f525460801c01166001600160801b035f5160206159205f395f51905f52549181199060801b169116175f5160206159205f395f51905f5255565b5f611bae565b606490860204611b9e565b83611d2c57611c89838c5b6001600160801b03811680611cd3575b508803614453565b7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280254017ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280255611b1f565b6001600160801b03611d2691815f5160206159205f395f51905f52541601166001600160801b03166001600160801b03195f5160206159205f395f51905f525416175f5160206159205f395f51905f5255565b5f611c81565b611c8983606486890204611c71565b6004887fe90c3493000000000000000000000000000000000000000000000000000000008152fd5b6004897ff704e899000000000000000000000000000000000000000000000000000000008152fd5b81611d9591613b13565b611da057875f611abd565b8780fd5b6040513d8b823e3d90fd5b611dda85897f000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae614bec565b611a66565b611e0a89897f00000000000000000000000069690ed6644b0e735c05b49034b6283ed5bb6969614bec565b611a60565b6004867f9f13f76d000000000000000000000000000000000000000000000000000000008152fd5b6004866350dfbc4360e11b8152fd5b50346103a357806003193601126103a35760207ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280354604051908152f35b50346103a357806003193601126103a35760e0611e9e613b35565b6001600160a01b0381511690602081015160020b9061ffff60408201511661ffff60608301511661ffff6080840151169160c060ff60a086015116940151151594604051968752602087015260408601526060850152608084015260a083015260c0820152f35b50346103a35760203660031901126103a35760043561ffff81168103610742575f5160206159005f395f51905f525460ff8160f01c161561201e57907fff00ff0000ffffffffffffffffffffffffffffffffffffffffffffffffffffff7cffff000000000000000000000000000000000000000000000000000000611fae61ffff8560ff60f01b19600160f01b97165f5160206159005f395f51905f525560d81c169384614dcc565b5f5160206159005f395f51905f52549361ffff8216808203611fe7575b505060d81b16911617175f5160206159005f395f51905f525580f35b7fac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a9160409182519182526020820152a15f80611fcb565b6004836350dfbc4360e11b8152fd5b50346103a35760203660031901126103a35760043561ffff8110156120a75760809150612068905f5160206159405f395f51905f5201613ce3565b63ffffffff81511690602081015160060b9060606001600160a01b03604083015116910151151591604051938452602084015260408301526060820152f35b602482634e487b7160e01b81526032600452fd5b50346103a357806003193601126103a3576040516040810181811067ffffffffffffffff8211176121255760409081525f5160206159205f395f51905f52546001600160801b03811680845260809190911c60209384018190528251918252928101929092529150f35b602483634e487b7160e01b81526041600452fd5b50346103a357806003193601126103a35760206001600160801b035f5160206158c05f395f51905f525416604051908152f35b5034610dcd5760a0366003190112610dcd576121866139c3565b90602435151560243503610dcd57606435906001600160a01b0382168203610dcd5760843567ffffffffffffffff8111610dcd576121c89036906004016139d9565b909263ffffffff42169462093a808604946121e1613b35565b937ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccc2809548063ffffffff8916036136fe575b50604435156136d65760c0850151156136c75760243515613685576001600160a01b038551166001600160a01b038516108061366e575b156136465760409760ff60f01b195f5160206159005f395f51905f5254165f5160206159005f395f51905f52556001600160801b035f5160206158c05f395f51905f5254169760ff60a0880151169863ffffffff82165f525f5160206158e05f395f51905f5260205263ffffffff8b5f205416928b519a6122c98c613a8e565b8b528160208c01528b8b01525f60608b01525f60808b01525f60a08b01528260c08b01526001600160a01b0388511692602089015160020b6024355f1461361e577ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280254915b5f525f5160206158e05f395f51905f5260205263ffffffff6001600160a01b038e5f205460501c1694165f525f5160206158e05f395f51905f526020528c5f205460201c60020b948d519d8e61238381613abe565b60443581525f6020820152015260608d015260808c01525f60a08c015260c08b015260e08a01526101008901527f000000000000000000000000000000000000000000000000000000000000006460020b15955b88511515806135fe575b156130b6576040516123f281613a8e565b5f81525f60208201525f60408201525f60608201525f60808201525f60a08201525f60c08201526001600160a01b0360408b015116815260608a015160020b88612daf577f000000000000000000000000000000000000000000000000000000000000006460020b8105905f81129081613080575b50613075575b60243515612ebb5761248f8160020b906101008260081d60010b920760ff1690565b909160ff8216926124d46001851b5f19908001019160010b5f527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280760205260405f2090565b5416801580159481612e845750815f91610dcd5782600160801b60ff941015612e75575b5080680100000000000000006002921015612e67575b640100000000811015612e59575b62010000811015612e4b575b610100811015612e3d575b6010811015612e2f575b6004811015612e22575b1015612e18575b7f000000000000000000000000000000000000000000000000000000000000006493031660020b900360020b0260020b5b905b1515604083015260020b60208201819052620d89e719811215612dfb5750620d89e71960208201525b6001600160a01b036125c2602083015160020b614042565b168060608301526001600160a01b0360408c015116906024355f14612dea576001600160a01b03881681105b15612de4575086905b60c08c01518c517ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2801545f808312936001600160a01b03871680871015949362ffffff16928615926001600160801b03168188612cee575061266262ffffff86620f42400316876143de565b998715612cdd57612674828b83615343565b9a5b8b8110612c525750985b6001600160a01b038a169a848c149815612bfc578880612bf5575b15612be4575b998a9880612bdd575b15612bce575050505b955b80612bc3575b612bb8575b81612bad575b5015612b8f5750035b60c085015260a0840152608083015260408b01525f6044351315612b3557608081015160c082015101600160ff1b811015610dcd578a51038a5260a0810151600160ff1b811015610dcd5760208b01515f8282039212818312811691831390151617612b215760208b01525b60ff89511680612aed575b506001600160801b0360c08b01511680612ace575b506001600160a01b0360408b0151166001600160a01b0360608301511681145f14612a9f575060408101516127bb575b602435156127af5760205f1991015160020b0160020b5b60020b60608a01526123d7565b6020015160020b6127a2565b60a089015115612a3e575b60243515612a08576001600160801b038a60808101517ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280354905b8c602086015160020b6001600160a01b0360808301511663ffffffff6040606085015160060b940151169160e08701519261010088015160020b9461286f8360020b5f527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280660205260405f2090565b9763ffffffff62093a808404169760018a01908154900390556002890190815490039055600388019166ffffffffffffff8354927effffffff0000000000000000000000000000000000000000000000000000007affffffffffffffffffffffffffffffffffffffff000000000000006001600160a01b038660381c16890360381b1691827fffffffffff0000000000000000000000000000000000000000ffffffffffffff87161760060b90039363ffffffff858516847fffffffffff0000000000000000000000000000000000000000000000000000008916171760d81c16900360d81b169360ff60f81b16179116171790556004865460801d960193855f528460205260405f205491131580612a00575b156129f7575003915b5f5260205260405f2055806024356129ea575b505f81600f0b125f146129d2576129bf8360c06129c79401511691613c1a565b831690613c3a565b1660c08b015261278b565b8260c06129e59301511690831690613bfa565b6129c7565b90505f03600f0b5f61299f565b9150039161298c565b508015612983565b6001600160801b038a7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280254608082015190612800565b6001600160a01b03612a8263ffffffff60408c015116898c602082015160020b61ffff60606001600160801b03602083604088015116950151169401511693614912565b9190911660808b015260060b60608a0152600160a08a01526127c6565b90516001600160a01b03168103612ab7575b506123d7565b612ac090614632565b60020b60608a01525f612ab1565b612adc9060c0830151614453565b60808b01510160808b01525f61275b565b6001600160801b036064819260c085015102048060c08501510360c0850152168160a08d015116011660a08b01525f612746565b634e487b7160e01b5f52601160045260245ffd5b60a0810151600160ff1b811015610dcd578a51018a52612b5e608082015160c083015190613be3565b600160ff1b811015610dcd5760208b01515f8282019283129112908015821691151617612b215760208b015261273b565b9050612ba8915062ffffff81620f424003169084614e6c565b6126cf565b90508614155f6126c6565b9450825f03946126c0565b50835f0386116126bb565b612bd893506153b1565b6126b3565b50896126aa565b50612bf082828c615343565b6126a1565b508561269b565b9099908880612c4b575b15612c3a575b998a9880612c33575b15612c24575050505b956126b5565b612c2e93506152d9565b612c1e565b5089612c15565b50612c4682828c6153e2565b612c0c565b5085612c06565b90508915610dcd578115610dcd578715612c7757612c7190828b6157c9565b98612680565b612caf906001600160a01b038111612cc457612ca0906001600160801b0384169060601b613bf0565b6001600160a01b038b16613be3565b6001600160a01b038116908114612c71575f80fd5b612cd8906001600160801b0384169061452d565b612ca0565b612ce882828c6153e2565b9a612676565b9991508615612dd357612d02818a846153b1565b915b5f879003838110612d16575098612680565b90508915610dcd578115610dcd578715612dc3576001600160a01b038111612d725760601b6001600160801b03821680820615159104015b6001600160a01b038a169080821115610dcd576001600160a01b0391031698612680565b6001600160801b038216612d8b81600160601b846145ad565b918115612daf57600160601b900915612d4e575f19811015610dcd57600101612d4e565b634e487b7160e01b5f52601260045260245ffd5b612dce90828b615756565b612c71565b612dde81838b6152d9565b91612d04565b906125f7565b6001600160a01b03881681116125ee565b620d89e8809113612e0d575b506125aa565b60208201525f612e07565b600101811661254e565b918101831691811c612547565b60049283018416921c61253d565b60089283018416921c612533565b60109283018416921c612528565b60209283018416921c61251c565b60409283018416921c61250e565b60809250821c905060026124f8565b935050507f00000000000000000000000000000000000000000000000000000000000000649160020b900360020b0260020b61257f565b600190810160020b600881901d820b5f9081527ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb280760205260409020545f1960ff61010084071693841b01191680158015939092918361303b578093610dcd5760ff906001600160801b03811615613031575050607f5b67ffffffffffffffff84161561302757603f190160ff165b63ffffffff84161561301d57601f190160ff165b61ffff84161561301357600f190160ff165b60ff841615613009576007190160ff165b600f841615612fff576003190160ff165b6003841615612ff3576001190160ff16926001905b16612fe5575b60ff907f000000000000000000000000000000000000000000000000000000000000006493031660020b0160020b0260020b5b90612581565b5f1990920160ff1691612fac565b9260019060021c612fa6565b9260041c92612f91565b9260081c92612f80565b9260101c92612f6f565b9260201c92612f5d565b9260401c92612f49565b60801c9350612f31565b50915060ff7f00000000000000000000000000000000000000000000000000000000000000649281031660020b0160020b0260020b612fdf565b5f190160020b61246d565b9950505f987f000000000000000000000000000000000000000000000000000000000000006460020b900760020b15155f612467565b88906001600160801b0360208a89606086015160020b8382015160020b809114155f146135b3578161ffff6040613114940151169163ffffffff604086015116908787870151169161ffff6080816060870151169501511694614ab8565b6001600160a01b036040880151169161ffff60b81b73ffffffffffffffffffffffffffffffffffffffff1960608a01519366ffffffffffffff60a01b1961ffff60c81b5f5160206159005f395f51905f52549260c81b16911617169160b81b16179060a01b62ffffff60a01b1617175f5160206159005f395f51905f52555b0151166001600160801b0360c084015116809103613575575b50602435156134db5760808201517ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2802556001600160801b0360a08301511680613482575b505b60243515155f604435130361347057815160443503936020830151935b602435156133a15782851261336f575b613227614d76565b91333b156112c757613252918491604051938492839263fa461e3360e01b84528a8c60048601613c8e565b038183335af18015613364578691849161334b575b505061327291613be3565b61327a614d76565b1061332357506001600160a01b036040945b8186840151169260606001600160801b0360c08301511691015160020b90875194878652866020870152888601526060850152608084015216907fc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca6760a03392a3600160f01b60ff60f01b195f5160206159005f395f51905f525416175f5160206159005f395f51905f525582519182526020820152f35b807fba0b951e0000000000000000000000000000000000000000000000000000000060049252fd5b8192509061335891613b13565b61074257848288613267565b6040513d85823e3d90fd5b61339c858403887f000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae614bec565b61321f565b5f869392931261343e575b6133b4614cf1565b92333b15610dcd576133df915f91604051938492839263fa461e3360e01b84528a8c60048601613c8e565b038183335af190811561343357859161341c575b506133fe9192613be3565b613406614cf1565b1061332357506001600160a01b0360409461328c565b61342992505f9150613b13565b5f836133fe6133f3565b6040513d5f823e3d90fd5b61346b865f03887f00000000000000000000000069690ed6644b0e735c05b49034b6283ed5bb6969614bec565b6133ac565b6020820151938251604435039361320f565b6001600160801b036134d591815f5160206159205f395f51905f52541601166001600160801b03166001600160801b03195f5160206159205f395f51905f525416175f5160206159205f395f51905f5255565b856131f0565b60808201517ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2803556001600160801b0360a0830151168061351c575b506131f2565b6001600160801b0361356f915f5160206159205f395f51905f525460801c01166001600160801b035f5160206159205f395f51905f52549181199060801b169116175f5160206159205f395f51905f5255565b85613516565b6135ad906001600160801b03166001600160801b03195f5160206158c05f395f51905f525416175f5160206158c05f395f51905f5255565b856131ac565b50506001600160a01b0360408601511673ffffffffffffffffffffffffffffffffffffffff195f5160206159005f395f51905f525416175f5160206159005f395f51905f5255613193565b506001600160a01b0385166001600160a01b0360408b01511614156123e1565b7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2803549161232e565b7ffcdf4aa7000000000000000000000000000000000000000000000000000000005f5260045ffd5b506401000276a36001600160a01b03851611612249565b6001600160a01b038551166001600160a01b038516118015612249575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b03851610612249565b6350dfbc4360e11b5f5260045ffd5b7f03fff018000000000000000000000000000000000000000000000000000000005f5260045ffd5b63ffffffff88167ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccc280981905560408781015190516318a230bb60e31b81525f5160206159405f395f51905f52600482015261ffff90911660248201526044810191909152906020826064817350f6a754f94a6a5ee3d887e6b1f12b55aee0c69c5af4918215613433575f92613939575b506001600160a01b0360606139339361384960208b01916137e2835160020b875f525f5160206158e05f395f51905f5260205260405f209081549060381b62ffffff60381b169062ffffff60381b1916179055565b855f525f5160206158e05f395f51905f5260205260405f20907fffff0000000000000000000000000000000000000000ffffffffffffffffffff7dffffffffffffffffffffffffffffffffffffffff0000000000000000000083549260501b169116179055565b63ffffffff613856613bbf565b941684525160020b926020810193845263ffffffff8c165f525f5160206158e05f395f51905f5260205260405f209363ffffffff808351161663ffffffff198654161785555184549060201b66ffffff00000000169066ffffff0000000019161784556138e3604082015160020b859081549060381b62ffffff60381b169062ffffff60381b1916179055565b015182547fffff0000000000000000000000000000000000000000ffffffffffffffffffff16911660501b7dffffffffffffffffffffffffffffffffffffffff0000000000000000000016179055565b5f612212565b91506020823d60201161397a575b8161395460209383613b13565b81010312610dcd576001600160a01b03606061397261393394613bab565b93505061378d565b3d9150613947565b34610dcd575f366003190112610dcd576020906001600160a01b037f00000000000000000000000069690ed6644b0e735c05b49034b6283ed5bb6969168152f35b600435906001600160a01b0382168203610dcd57565b9181601f84011215610dcd5782359167ffffffffffffffff8311610dcd5760208381860195010111610dcd57565b602435908160020b8203610dcd57565b604435908160020b8203610dcd57565b606435908160020b8203610dcd57565b600435908160020b8203610dcd57565b608435906001600160801b0382168203610dcd57565b9181601f84011215610dcd5782359167ffffffffffffffff8311610dcd576020808501948460051b010111610dcd57565b60e0810190811067ffffffffffffffff821117613aaa57604052565b634e487b7160e01b5f52604160045260245ffd5b610120810190811067ffffffffffffffff821117613aaa57604052565b60a0810190811067ffffffffffffffff821117613aaa57604052565b6080810190811067ffffffffffffffff821117613aaa57604052565b90601f8019910116810190811067ffffffffffffffff821117613aaa57604052565b60405190613b4282613a8e565b8160c060ff5f5160206159005f395f51905f52546001600160a01b03811684528060a01c60020b602085015261ffff8160b81c16604085015261ffff8160c81c16606085015261ffff8160d81c166080850152818160e81c1660a085015260f01c161515910152565b51906001600160a01b0382168203610dcd57565b60405190613bcc82613af7565b5f6060838281528260208201528260408201520152565b91908201809211612b2157565b8115612daf570490565b906001600160801b03809116911601906001600160801b038211612b2157565b600f0b6f7fffffffffffffffffffffffffffffff198114612b21575f0390565b906001600160801b03809116911603906001600160801b038211612b2157565b6001600160801b03166001600160801b03195f5160206158c05f395f51905f525416175f5160206158c05f395f51905f5255565b6060908593602096938252868201528160408201520192818452848401375f828201840152601f01601f1916010190565b61ffff821015613ccf5701905f90565b634e487b7160e01b5f52603260045260245ffd5b90604051613cf081613af7565b606081935463ffffffff811683528060201c60060b60208401526001600160a01b038160581c16604084015260f81c1515910152565b51906001600160801b0382168203610dcd57565b67ffffffffffffffff8111613aaa5760051b60200190565b7ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccc28095462093a8063ffffffff4216049063ffffffff821691818303613d9557505050565b508015614003575b7350f6a754f94a6a5ee3d887e6b1f12b55aee0c69c905b828110613dec5750505f198101908111612b21577ff047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccc280955565b613df4613b35565b9061ffff6040830151166001820192838311612b21576040516318a230bb60e31b81525f5160206159405f395f51905f52600482015261ffff92909216602483015260448201849052602082606481885af4918215613433575f92613fad575b50926001600160a01b036060613fa793613f1360206001980191613eac835160020b895f525f5160206158e05f395f51905f5260205260405f209081549060381b62ffffff60381b169062ffffff60381b1916179055565b875f525f5160206158e05f395f51905f5260205260405f20907fffff0000000000000000000000000000000000000000ffffffffffffffffffff7dffffffffffffffffffffffffffffffffffffffff0000000000000000000083549260501b169116179055565b613f1b613bbf565b9063ffffffff871682525160020b93602082019485525f525f5160206158e05f395f51905f5260205260405f209363ffffffff808351161663ffffffff198654161785555184549060201b66ffffff00000000169066ffffff0000000019161784556138e3604082015160020b859081549060381b62ffffff60381b169062ffffff60381b1916179055565b01613db4565b9150926020823d8211613ffb575b81613fc860209383613b13565b81010312610dcd576001600160a01b036060600195613f136020613fee613fa797613bab565b9650505092955050613e54565b3d9150613fbb565b505f19810181811115613d9d57634e487b7160e01b5f52601160045260245ffd5b8051821015613ccf5760209160051b010190565b8115612daf570690565b60020b5f8112156143d857805f03905b620d89e882116143b05760018216156143945770ffffffffffffffffffffffffffffffffff6ffffcb933bd6fad37aa2d162d1a5940015b169160028116614378575b6004811661435c575b60088116614340575b60108116614324575b60208116614308575b604081166142ec575b608081166142d0575b61010081166142b4575b6102008116614298575b610400811661427c575b6108008116614260575b6110008116614244575b6120008116614228575b614000811661420c575b61800081166141f0575b6201000081166141d4575b6202000081166141b9575b62040000811661419e575b6208000016614185575b5f12614177575b6001600160a01b039063ffffffff811661416e5760ff5f5b169060201c011690565b60ff6001614164565b8015612daf575f190461414c565b6b048a170391f7dc42444e8fa290910260801c90614145565b6d2216e584f5fa1ea926041bedfe9890920260801c9161413b565b916e5d6af8dedb81196699c329225ee6040260801c91614130565b916f09aa508b5b7a84e1c677de54f3e99bc90260801c91614125565b916f31be135f97d08fd981231505542fcfa60260801c9161411a565b916f70d869a156d2a1b890bb3df62baf32f70260801c91614110565b916fa9f746462d870fdf8a65dc1f90e061e50260801c91614106565b916fd097f3bdfd2022b8845ad8f792aa58250260801c916140fc565b916fe7159475a2c29b7443b29c7fa6e889d90260801c916140f2565b916ff3392b0822b70005940c7a398e4b70f30260801c916140e8565b916ff987a7253ac413176f2b074cf7815e540260801c916140de565b916ffcbe86c7900a88aedcffc83b479aa3a40260801c916140d4565b916ffe5dee046a99a2a811c461f1969c30530260801c916140ca565b916fff2ea16466c96a3843ec78b326b528610260801c916140c1565b916fff973b41fa98c081472e6896dfb254c00260801c916140b8565b916fffcb9843d60f6159c9db58835c9266440260801c916140af565b916fffe5caca7e10e4e61c3624eaa0941cd00260801c916140a6565b916ffff2e50f5f656932ef12357cf3c7fdcc0260801c9161409d565b916ffff97272373d413259a46990580e213a0260801c91614094565b70ffffffffffffffffffffffffffffffffff600160801b614089565b7f2bc80f3a000000000000000000000000000000000000000000000000000000005f5260045ffd5b80614052565b9091905f905f1984820990848102928380841093039280840393146144455782620f424011156103a357507fde8f6cefed634549b62c77574f722e1ac57e23f24d8fd5cb790fb65668c261399394620f4240910990828211900360fa1b910360061c170290565b505050620f42409192500490565b5f19600160801b8209918160801b918280851094039380850394146144d35783821115610dcd57600160801b82910981805f03168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b5080925015610dcd570490565b5f915f1981830991818102938480851094039380850394146145235783600160601b11156103a3575090600160601b910990828211900360a01b910360601c1790565b5050505060601c90565b5f19600160601b8209918160601b918280851094039380850394146144d35783821115610dcd57600160601b82910981805f03168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b915f1982840992828102928380861095039480860395146146245784831115610dcd5782910981805f03168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b505080925015610dcd570490565b6001600160a01b038116906401000276a3821015806148f5575b156148cd5777ffffffffffffffffffffffffffffffffffffffff000000009060201b16806001600160801b03811160071b90811c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c9060ff821160031b91821c92600f841160021b93841c94600160038711811b96871c1196171717171717179060808210155f146148c357607e1982011c5b800280607f1c8160ff1c1c800280607f1c8160ff1c1c800280607f1c8160ff1c1c800280607f1c8160ff1c1c800280607f1c8160ff1c1c800280607f1c8160ff1c1c80029081607f1c8260ff1c1c80029283607f1c8460ff1c1c80029485607f1c8660ff1c1c80029687607f1c8860ff1c1c80029889607f1c8a60ff1c1c80029a8b607f1c8c60ff1c1c80029c8d80607f1c9060ff1c1c800260cd1c6604000000000000169d60cc1c6608000000000000169c60cb1c6610000000000000169b60ca1c6620000000000000169a60c91c6640000000000000169960c81c6680000000000000169860c71c670100000000000000169760c61c670200000000000000169660c51c670400000000000000169560c41c670800000000000000169460c31c671000000000000000169360c21c672000000000000000169260c11c674000000000000000169160c01c6780000000000000001690607f190160401b1717171717171717171717171717693627a301d71055774c85026f028f6481ab7f045a5af012a19d003aa919810160801d60020b906fdb2df09e81959a81455e260799a0632f0160801d60020b918282145f146148a3575090505b90565b6001600160a01b036148b484614042565b16116148be575090565b905090565b81607f031b6146e7565b7f4980e1be000000000000000000000000000000000000000000000000000000005f5260045ffd5b5073fffd8963efd1fc6a506488495d951d5263988d26821061464c565b9493509061ffff811015613ccf57614938905f5160206159405f395f51905f5201613ce3565b9363ffffffff85511663ffffffff82160361496a575b5050506001600160a01b036040602084015160060b9301511690565b6149749394615433565b905f808061494e565b95949290939163ffffffff851615614a7d5763ffffffff6149b09588031680975f5160206159405f395f51905f526154fb565b909263ffffffff8451168082145f146149df575050506001600160a01b036040602084015160060b9301511690565b63ffffffff8395935116908183145f14614a1057505050506001600160a01b036040602084015160060b9301511690565b63ffffffff818193031692031693602083015160060b9283602083015160060b0360060b928060060b928315612daf57614a68604092896001600160a01b038096948180888198015116978892015116031602613bf0565b1601169460060b91050260060b0160060b9190565b925090925061ffff811015613ccf57614938905f5160206159405f395f51905f5201613ce3565b9061ffff16908115612daf5761ffff160690565b90919293959461ffff821015613ccf57614ae0825f5160206159405f395f51905f5201613ce3565b9663ffffffff88511663ffffffff851614614be157614b2b949261ffff6001989795938382614b2595168383161180614bd1575b15614bc757509889925b0116614aa4565b96615433565b61ffff841015613ccf57805160208083015160408401516060909401517fff0000000000000000000000000000000000000000000000000000000000000090151560f81b167effffffffffffffffffffffffffffffffffffffff000000000000000000000060589590951b9490941663ffffffff909316911b6affffffffffffff00000000161717175f5160206159405f395f51905f52840155565b9050988992614b1e565b508383165f198201841614614b14565b965050925050509190565b5f9291838093604051906001600160a01b0360208301947fa9059cbb000000000000000000000000000000000000000000000000000000008652166024830152604482015260448152614c40606482613b13565b51925af13d15614cea573d67ffffffffffffffff8111613aaa5760405190614c72601f8201601f191660200183613b13565b81523d5f602083013e5b81614cb2575b5015614c8a57565b7f8b986265000000000000000000000000000000000000000000000000000000005f5260045ffd5b8051801592508215614cc7575b50505f614c82565b8192509060209181010312610dcd57602001518015158103610dcd575f80614cbf565b6060614c7c565b6040516370a0823160e01b81523060048201526020816024816001600160a01b037f000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae165afa908115613433575f91614d47575090565b90506020813d602011614d6e575b81614d6260209383613b13565b81010312610dcd575190565b3d9150614d55565b6040516370a0823160e01b81523060048201526020816024816001600160a01b037f00000000000000000000000069690ed6644b0e735c05b49034b6283ed5bb6969165afa908115613433575f91614d47575090565b61ffff8116908115614e335761ffff831691821115614e2d575f5160206159405f395f51905f52905b8261ffff821610614e065750505090565b61ffff811015613ccf5760018161ffff9284018263ffffffff198254161790550116614df5565b91505090565b636b93000360e11b5f5260045ffd5b9190620f424090614e548282866145ad565b9309614e5c57565b905f19811015610dcd5760010190565b929190614e7a8282866145ad565b938215612daf5709614e5c57565b905f905f9060408401805160020b90614eaa6060870192835160020b9061523c565b614eb2613b35565b906001600160a01b03875116602088015192825160020b916001600160801b036080875160020b9b01958651600f0b9463ffffffff602086019d8e5160020b8242169860405197614f0289613abe565b88526020880195865260408801948552606088019283526080880190815260a0880191825260c08801928a845260e08901957f000000000000000000000000000000000000000000000000000000000000006460020b87526101008a0197897f000000000000000000000000000000000003b1762b13ec52766279d8d8a13b4e1689526001600160a01b036040519b7ffc322879000000000000000000000000000000000000000000000000000000008d52511660048c01525160248b01525160020b60448a01525160020b606489015251600f0b60848801525160020b60a4870152511660c48501525160020b60e4840152511661010482015260208161012481734bd87e0077d12b9b18b158dbe5ea7944135318e65af4908115613433575f9161520a575b50988451600f0b61503d575b505050505050565b90919293949597815160020b855160020b908181125f14615095575050505050509061507d61507361508894935160020b614042565b925160020b614042565b9051600f0b91615721565b915b5f8080808080615035565b90919293959997809599505160020b135f146151df575050916001600160a01b0361518961517f615197946151096151c698976001600160801b035f5160206158c05f395f51905f5254169b8c61ffff60408a015116925160020b61ffff60608b0151169261ffff60808c01511694614ab8565b907fffffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffff61ffff60c81b61ffff60b81b5f5160206159005f395f51905f52549360b81b169360c81b16911617175f5160206159005f395f51905f525561517484865116915160020b614042565b8751600f0b91615721565b985160020b614042565b9151168351600f0b916156cc565b9381515f81600f0b125f146151cb57506151b7613c5a9251600f0b613c1a565b6001600160801b031690613c3a565b61508a565b613c5a92506001600160801b031690613bfa565b9097506152049596506151f9929493506150739150614042565b9051600f0b916156cc565b9061508a565b90506020813d602011615234575b8161522560209383613b13565b81010312610dcd57515f615029565b3d9150615218565b9060020b9060020b818112156152b157620d89e7191361528957620d89e81261526157565b7fd7b54ab1000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f9ad612e8000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f2fe0284f000000000000000000000000000000000000000000000000000000005f5260045ffd5b6001600160a01b0382166001600160a01b0382161161533d575b6001600160a01b038116918215610dcd576148a0936fffffffffffffffffffffffffffffffff60601b6001600160a01b03615338948185169403169160601b166145ad565b613bf0565b906152f3565b906001600160a01b0381166001600160a01b038316116153ab575b6001600160a01b038216928315610dcd576fffffffffffffffffffffffffffffffff60601b6001600160a01b0361539f948185169403169160601b16614e6c565b90808206151591040190565b9061535e565b6001600160a01b036001600160801b03916148a09493828116838316116153dc575b031691166144e0565b906153d3565b6001600160a01b036001600160801b0391600160601b938281168383161161542d575b03169216916154158282856145ad565b920961541e5790565b5f19811015610dcd5760010190565b90615405565b9192909261543f613bbf565b5063ffffffff8351168403906001600160a01b036040602086015160060b95015116926001600160801b03811615155f146154eb576001600160801b03905b16918215612daf576001600160a01b039473ffffffff000000000000000000000000000000009263ffffffff604051986154b78a613af7565b16885263ffffffff831660060b9060020b0260060b0160060b602087015260801b1604011660408201526001606082015290565b506001600160801b03600161547e565b969294909493919361550b613bbf565b50615514613bbf565b91615528615522858b613cbf565b50613ce3565b9163ffffffff83511661553c88828b615841565b6156a1575050505050600161ffff91011661556361552261555d8784614aa4565b88613cbf565b83606082015115615686575b63ffffffff61558092511686615841565b1561565e5761ffff6155a5868293615596613bbf565b5061559f613bbf565b50614aa4565b169416935f19858201015b80820160011c906155cd6155226155c78985614038565b8a613cbf565b6060810151156156535760018301906155f26155226155ec8b85614038565b8c613cbf565b6156048863ffffffff8451168b615841565b91828061563b575b61562c5750506156235750505f1901905b906155b0565b9150915061561d565b9a509850949650505050505050565b5061564e63ffffffff8351168a8c615841565b61560c565b50915060010161561d565b7f27e8e875000000000000000000000000000000000000000000000000000000005f5260045ffd5b615580915063ffffffff61569989613ce3565b92505061556f565b93995094975090955093915063ffffffff8216036156c0575050509190565b836148a0949650615433565b905f83600f0b125f146156ff576156ee925f036001600160801b0316916153b1565b600160ff1b811015610dcd575f0390565b615712926001600160801b0316916153e2565b600160ff1b811015610dcd5790565b905f83600f0b125f14615743576156ee925f036001600160801b0316916152d9565b615712926001600160801b031691615343565b9082156157c3576fffffffffffffffffffffffffffffffff60601b6001600160a01b039160601b1691168061578e8185029485613bf0565b14806157ba575b15610dcd576157a692820391614e6c565b6001600160a01b038116908103610dcd5790565b50828211615795565b50905090565b909180156157c3576001600160a01b036fffffffffffffffffffffffffffffffff60601b819460601b169216808202816158038483613bf0565b14615829575b509061581861581d9284613bf0565b613be3565b80820615159104011690565b830183811061580957915061583d92614e6c565b1690565b63ffffffff9182169291168083118015806158af575b6158a2579063ffffffff64ffffffffff939484935f1461589357945b1690811115615885575b169116111590565b64010000000001811661587d565b64010000000001831694615873565b505063ffffffff16101590565b508163ffffffff8416111561585756fef047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2805f047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccc2808f047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2800f047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2804f047b0c59244a0faf8e48cb6b6fde518e6717176152b6dd953628cd9dccb2809a2646970667358221220b64492fd2aa111d61f9982d0c39b8bc03e0ea09d4752f86e4449ff579d2b054964736f6c634300081c0033

    Block Age Transaction Gas Used Reward
    view all blocks produced

    Block Age Uncle Number Difficulty Gas Used Reward
    View All Uncles
    Loading...
    Loading
    Loading...
    Loading

    Validator Index Block Age Amount
    View All Withdrawals

    Transaction Hash Block Age Value Eth2 PubKey Valid
    View All Deposits
    [ Download: CSV Export  ]

    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.