API change: convert basic.credit_state to basic.credit_drained.