Get the minimum amount with a slippage tolerance
e.g. Your estimated amount you receive is 10000 with 100 slippage tolerance. The min amount you receive will be 9900.
Parameters
amount: The amount to apply the fee to
slippage_tolerance_bps: The slippage tolerance in bps (should be in range 0..BPS_DENOMINATOR)
Get the minimum amount with a slippage tolerance e.g. Your estimated amount you receive is 10000 with 100 slippage tolerance. The min amount you receive will be 9900.
Parameters
amount
: The amount to apply the fee toslippage_tolerance_bps
: The slippage tolerance in bps (should be in range 0..BPS_DENOMINATOR)Returns
u64
: The minimum amount