Little refactor about deposit and withdraw