You cannot compute the stock here, the operation need to be atomic