Skip to content

v2.1.0

Compare
Choose a tag to compare
@PaulRBerg PaulRBerg released this 20 Oct 15:02
· 420 commits to main since this release

Added

  • Solidity v0.8.4 custom errors.

Changed

  • Define the upper limit as MAX_UD60x18 / SCALE in the sqrt function.
  • Define xValue var to avoid reading x.value multiple times.
  • Move SCALE > prod1 check at the top of the mulDivFixedPoint function.
  • Refer to add function operands as summands.
  • Refer to sub function operands as minuend and subtrahend.
  • Rename rUnsigned var to rAbs.
  • Set minimum compiler version to 0.8.4.
  • Use MIN_SD59x18 instead of type(int256).min where appropriate.

Removed

  • hardhat/console.sol import.
  • Stale caveat in sqrt function NatSpec.