helpers library
Functions
-
bigIntToDecimal(
BigInt value, int decimals) → double - bigIntToDecimal converts a given big int to decimal number
-
decimalToBigInt(
double value, int decimals) → BigInt - decimalToBigInt converts a given decimal number to big int
-
maximumAmoutIn(
double amount, double slippageTorrelance, {bool isExactIn = false}) → double - maximumAmoutIn computes the maximum input amount given the slippage parcentage
-
minimumAmoutOut(
double amount, double slippageTorrelance, {bool isExactOut = false}) → double - minimumAmoutOut computes the minimum output amount given the slippage parcentage