Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: September 30, 2021

MathUtils

A library that contains functions for calculating differences between two uint256.

Functions

within1

  function within1(
    uint256 a,
    uint256 b
  ) internal returns (bool)

Compares a and b and returns ‘true’ if the difference between a and b is less than 1 or equal to each other.

Parameters:

Name Type Description
a uint256 uint256 to compare with.
b uint256 uint256 to compare with.
Questions or feedback? You can discuss issues and obtain free support on Trident chat channel.
For SushiSwap community support, join the Discord Server None