A fee-charging CPMM should not end a valid swap with a smaller invariant.
Implement invariant_ok.
u128.true if the new invariant is greater than or equal to the old one.Compare:
(1000, 2000)(1099, 1819)You should find that the new invariant is slightly larger because fees stayed inside the pool.