maximumAmoutIn function
maximumAmoutIn computes the maximum input amount given the slippage parcentage
Implementation
double maximumAmoutIn(double amount, double slippageTorrelance,
{bool isExactIn = false}) {
if (isExactIn) return amount;
final slippageAmount = amount.toDouble() * slippageTorrelance / 100.00;
return amount + slippageAmount;
}