Skip to content

Is PRBMath compatible with soilidty v0.5, and is PRBMath library used by well know projects? #221

Answered by PaulRBerg
kevin-wad asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Thanks for your kind words and for your question.

Do you know if it is used by well known projects like Uniswap or any other such project?

PRBMath is not used by Uniswap, but it is one of the most popular fixed-point math libraries in Solidity.

Do you think it would be possible to adjust it for solidity v0.5 if I only need to use the sqrt and pow functions from it

That would be difficult because PRBMath uses many features available only in Solidity v0.8. But it is possible to do it - you just need to slog through a refactoring process.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kevin-wad
Comment options

@PaulRBerg
Comment options

Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants