Available Liquidity
Available liquidity is the amount of assets that are readily available for borrowing or withdrawing on every pool. It's taking into account how much assets are deposited in the pool but also how much is already borrowed or reserved for the pool maintainers, as well as the pool reserve, which is the buffer set by the Admins, so the Pool cannot be completely drained.
Available liquidity for the given pool is calculated by the following formula:
available liquidity = total_deposit - reserve_balance - total_deposit * pool_reserve - total_borrow;