My current understanding of Uniswap V3 the following code is required to get the address of a pool:

getPool(tokenA, tokenB, FEE)

My problem at this stage is I need to GUESS what the fee could be. I see they are sometimes 0.05% and other times 0.3% or anything inbetween.

How can I get all the pools for tokenA and tokenB without specifying a fee ?


1 Answer 1


The only fee tiers possible in Uniswap v3 at the moment: 1%, 0.3%, 0.05% and 0.01%. (The first three were present by default, the fourth one was voted in through governance.) In the future, more might be added, but it's unlikely there will be many more.

In the code, the fee tiers are expressed in basis points (1/100 of percents) multiplied by 100:

  • for 1% pools the fee tier is 10000
  • for 0.3% pools the fee tier is 3000
  • for 0.05% pools the fee tier is 500
  • for 0.01% pools the fee tier is 100
  • 1
    There is also 0.01% fee tier now voted in through the governance gov.uniswap.org/t/… Mar 16, 2022 at 21:25
  • @MikkoOhtamaa I updated the answer, thanks for pointing it out
    – kfx
    Mar 17, 2022 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.