Earlier challenges quoted output. Now mutate pool state.
Implement apply_swap.
x_in * 9_970 / 10_000.new_x = x + effective_inputk = x * ynew_y = k / new_xFor x = 1000, y = 2000, x_in = 100:
99new_x = 1099k = 2_000_000new_y = 1_819Return:
1099 1819