# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Abs returns the absolute value of a given number.
BigFloatToBigInt converts a big.Float to a big.Int.
CalculateMedian calculates the median from a list of big.Float.
Float64StringToBigFloat converts a float64 string to a big.Float.
Float64StringToBigInt converts a float64 string to a big.Int.
Float64ToBigInt converts a float64 to a big.Int.
GetScalingFactor returns the scaling factor for the price based on the difference between the token decimals in the erc20 token contracts or similar.
Max returns the maximum of two values.
Min returns the minimum of two values.
ScaleBigFloat scales a big.Float by the given decimals.
SortBigFloats is a stable slices sort for an array of big.Floats.
VerifyPrice verifies that the expected price matches the actual price within an acceptable delta.