query lends($block: Block_height, $where: Lend_filter, $orderBy: Lend_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
    lends(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
        id
        bucket{
            id
            bucketIndex
            bucketPrice
            exchangeRate
            poolAddress
            collateral
            deposit
            lpb
        }
        bucketIndex
        poolAddress
        lender
        pool{
            id
            createdAtBlockNumber
            createdAtTimestamp
            poolSize
            t0debt
            inflator
            borrowRate
            lendRate
            borrowFeeRate
            depositFeeRate
            pledgedCollateral
            totalInterestEarned
            txCount
            poolType
            loansCount
            maxBorrower
            quoteTokenFlashloaned
            collateralFlashloaned
            hpb
            hpbIndex
            htp
            htpIndex
            lup
            lupIndex
            reserves
            claimableReserves
            claimableReservesRemaining
            burnEpoch
            totalAjnaBurned
            minDebtAmount
            actualUtilization
            targetUtilization
            totalBondEscrowed
            quoteTokenBalance
            collateralBalance
            subsetHash
            tokenIdsPledged
            bucketTokenIds
            tokenIdsAllowed
        }
        lpb
        lpbValueInQuote
        depositTime
    }
}