Swap fees calculation

when calculating the fees you take for swap, you multiply the amountIn by the max-minus-fee. why don’t you instead take the fee from the return value? in AMM it does matter (unlike with fix exchange rate), so you loose small amount for every swap.
thanks.

1 Like