More than $4 million in university funds that were used to convert livestock waste into electricity play a key role in exposing the University of Wisconsin-Oshkosh Foundation to potential bankruptcy as rapidly changing markets have dulled the allure for some sectors of renewable power.