The fastest way to corrupt money is to let an agent build the whole payment system.
Not all code is equally expensive to get wrong. Stop reviewing your agent's output uniformly and start spending your scrutiny where a mistake double-charges a customer.