We need to figure out whether the square root method we implement for Uint and Decimal etc. are rounded down or rounded to nearest, and add a comment to specify this (or maybe even rename the function to make it clear). This behavior can greatly impact DeFi protocols.
We need to figure out whether the square root method we implement for
Uint
andDecimal
etc. are rounded down or rounded to nearest, and add a comment to specify this (or maybe even rename the function to make it clear). This behavior can greatly impact DeFi protocols.