Function borrow_liquidity
The function is called to borrow liquidity out of the reserve
. This function only handles the removal of the coins from the reserve
and not the accounting against the individual user. That is handled in lending_market
.
The function deducts a borrow fee in cTokens, which is added to the special fee store of the current reserve
. The fee is paid immediately and is added to the total debt, which is returned.
There is a check that the total amount borrowed in this reserve
does not exceed a configuration limit and that the remaining amount in the reserve
is above the hardcoded minimum.