refactor and save tx_out on deposit coin