Real CPMMs usually apply a fee before the input amount touches the swap formula.
Implement fee_adjusted_input(x_in).
30 basis points.10_000 basis points = 100%.x_in * 9_970 / 10_000.x_in = 1000
1000 * 9970 / 10000 = 997This challenge isolates fee math so you can reuse it in later swap logic.