credit and debit to funding instrument rather than to customer

Fixes #776