When I try to specify a smaller amount, I get errors and swap does not work