Result of a swap step
Computes the result of swapping some amount in, or amount out, given the parameters of the swap