query settle($id: ID!, $block: Block_height){
    settle(id: $id, block: $block){
        id
        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
        }
        liquidationAuction{
            id
            borrower
            lastTakePrice
            collateral
            collateralRemaining
            debt
            debtRemaining
            kicker
            kickTime
            settleTime
            settled
            bondSize
            bondFactor
            neutralPrice
            referencePrice
            thresholdPrice
        }
        loan{
            id
            poolAddress
            borrower
            inLiquidation
            collateralPledged
            thresholdPrice
            tokenIdsPledged
            t0debt
            t0Np
        }
        borrower
        settledDebt
        blockNumber
        blockTimestamp
        transactionHash
    }
}