Why are we comparing invariant here with pool_a.amount * pool_a.amount https://github.com/solana-developers/program-examples/blob/43666698d467205ffa9ff8998edf42f62ce10780/tokens/token-swap/anchor/programs/token-swap/src/instructions/swap_exact_tokens_for_tokens.rs#L137-L140
Activity