Code review of a banking middleware