Skip to content
Verified contractPartialUNLICENSED

PoolManagerUtils

Address0xc97bfe03e561268cb2e6019331d4635ffa84860f
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.26

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
Yes, 800 runs
EVM version
cancun
License
UNLICENSED
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,335,874
Creation transaction
0x36834a3eca…1e3593298a
Libraries
src/PoolManagerUtils.sol:PoolManagerUtils0x9b61…f153ac

Read1

  • getAmountsOf(IPoolManager,tuple) → (uint128,uint256,uint256,uint256,uint256)

Events3

  • LiquidityBurnt(tuple,uint256)
  • LiquidityMinted(tuple,uint128)
  • ZeroBurn(int24,int24,uint256,uint256)

Errors5

  • DuplicatedPosition(tuple)
  • InvalidPositionData(tuple)
  • PSC()
  • PoolNotInitialized(tuple)
  • ZeroLiquidityAmount(tuple)

ABI as JSON

[
  {
    "name": "DuplicatedPosition",
    "type": "error",
    "inputs": [
      {
        "name": "position",
        "type": "tuple",
        "components": [
          {
            "name": "poolKey",
            "type": "tuple",
            "components": [
              {
                "name": "currency0",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "currency1",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tickSpacing",
                "type": "int24",
                "internalType": "int24"
              },
              {
                "name": "hooks",
                "type": "address",
                "internalType": "contract IHooks"
              }
            ],
            "internalType": "struct PoolKey"
          },
          {
            "name": "lowerTick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "upperTick",
            "type": "int24",
            "internalType": "int24"
          }
        ],
        "internalType": "struct IMultiPositionManager.Position"
      }
    ]
  },
  {
    "name": "InvalidPositionData",
    "type": "error",
    "inputs": [
      {
        "name": "position",
        "type": "tuple",
        "components": [
          {
            "name": "poolKey",
            "type": "tuple",
            "components": [
              {
                "name": "currency0",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "currency1",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tickSpacing",
                "type": "int24",
                "internalType": "int24"
              },
              {
                "name": "hooks",
                "type": "address",
                "internalType": "contract IHooks"
              }
            ],
            "internalType": "struct PoolKey"
          },
          {
            "name": "lowerTick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "upperTick",
            "type": "int24",
            "internalType": "int24"
          }
        ],
        "internalType": "struct IMultiPositionManager.Position"
      }
    ]
  },
  {
    "name": "PSC",
    "type": "error",
    "inputs": []
  },
  {
    "name": "PoolNotInitialized",
    "type": "error",
    "inputs": [
      {
        "name": "poolKey",
        "type": "tuple",
        "components": [
          {
            "name": "currency0",
            "type": "address",
            "internalType": "Currency"
          },
          {
            "name": "currency1",
            "type": "address",
            "internalType": "Currency"
          },
          {
            "name": "fee",
            "type": "uint24",
            "internalType": "uint24"
          },
          {
            "name": "tickSpacing",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "hooks",
            "type": "address",
            "internalType": "contract IHooks"
          }
        ],
        "internalType": "struct PoolKey"
      }
    ]
  },
  {
    "name": "ZeroLiquidityAmount",
    "type": "error",
    "inputs": [
      {
        "name": "position",
        "type": "tuple",
        "components": [
          {
            "name": "poolKey",
            "type": "tuple",
            "components": [
              {
                "name": "currency0",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "currency1",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tickSpacing",
                "type": "int24",
                "internalType": "int24"
              },
              {
                "name": "hooks",
                "type": "address",
                "internalType": "contract IHooks"
              }
            ],
            "internalType": "struct PoolKey"
          },
          {
            "name": "lowerTick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "upperTick",
            "type": "int24",
            "internalType": "int24"
          }
        ],
        "internalType": "struct IMultiPositionManager.Position"
      }
    ]
  },
  {
    "name": "LiquidityBurnt",
    "type": "event",
    "inputs": [
      {
        "name": "position",
        "type": "tuple",
        "indexed": false,
        "components": [
          {
            "name": "poolKey",
            "type": "tuple",
            "components": [
              {
                "name": "currency0",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "currency1",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tickSpacing",
                "type": "int24",
                "internalType": "int24"
              },
              {
                "name": "hooks",
                "type": "address",
                "internalType": "contract IHooks"
              }
            ],
            "internalType": "struct PoolKey"
          },
          {
            "name": "lowerTick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "upperTick",
            "type": "int24",
            "internalType": "int24"
          }
        ],
        "internalType": "struct IMultiPositionManager.Position"
      },
      {
        "name": "liquidity",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "LiquidityMinted",
    "type": "event",
    "inputs": [
      {
        "name": "position",
        "type": "tuple",
        "indexed": false,
        "components": [
          {
            "name": "poolKey",
            "type": "tuple",
            "components": [
              {
                "name": "currency0",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "currency1",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tickSpacing",
                "type": "int24",
                "internalType": "int24"
              },
              {
                "name": "hooks",
                "type": "address",
                "internalType": "contract IHooks"
              }
            ],
            "internalType": "struct PoolKey"
          },
          {
            "name": "lowerTick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "upperTick",
            "type": "int24",
            "internalType": "int24"
          }
        ],
        "internalType": "struct IMultiPositionManager.Position"
      },
      {
        "name": "liquidity",
        "type": "uint128",
        "indexed": false,
        "internalType": "uint128"
      }
    ],
    "anonymous": false
  },
  {
    "name": "ZeroBurn",
    "type": "event",
    "inputs": [
      {
        "name": "tickLower",
        "type": "int24",
        "indexed": false,
        "internalType": "int24"
      },
      {
        "name": "tickUpper",
        "type": "int24",
        "indexed": false,
        "internalType": "int24"
      },
      {
        "name": "amount0",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "amount1",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "getAmountsOf",
    "type": "function",
    "inputs": [
      {
        "name": "poolManager",
        "type": "IPoolManager",
        "internalType": "contract IPoolManager"
      },
      {
        "name": "position",
        "type": "tuple",
        "components": [
          {
            "name": "poolKey",
            "type": "tuple",
            "components": [
              {
                "name": "currency0",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "currency1",
                "type": "address",
                "internalType": "Currency"
              },
              {
                "name": "fee",
                "type": "uint24",
                "internalType": "uint24"
              },
              {
                "name": "tickSpacing",
                "type": "int24",
                "internalType": "int24"
              },
              {
                "name": "hooks",
                "type": "IHooks",
                "internalType": "contract IHooks"
              }
            ],
            "internalType": "struct PoolKey"
          },
          {
            "name": "lowerTick",
            "type": "int24",
            "internalType": "int24"
          },
          {
            "name": "upperTick",
            "type": "int24",
            "internalType": "int24"
          }
        ],
        "internalType": "struct IMultiPositionManager.Position"
      }
    ],
    "outputs": [
      {
        "name": "liquidity",
        "type": "uint128",
        "internalType": "uint128"
      },
      {
        "name": "amount0",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amount1",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "feesOwed0",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "feesOwed1",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.