The liquidityOf was using two divisions with truncations, leading the equals assertion to be 2 wei off. I fixed this by removing one division, and implementing the proper rounding logic by checking for remainders of the division we do. This should be reviewed by Clement to make sure our liquidityOf rounding should be doing this.
…inder
The
liquidityOf
was using two divisions with truncations, leading the equals assertion to be 2 wei off. I fixed this by removing one division, and implementing the proper rounding logic by checking for remainders of the division we do. This should be reviewed by Clement to make sure our liquidityOf rounding should be doing this.