updated for latest deposit API