The firm will devote 5% of net gains from a $3.7bn credit fund to support charities and its AltFinance diversity effort