Documentation
    Preparing search index...

    Variable getFeesConst

    getFees: (
        options?: Partial<CacheOption>,
    ) => Promise<
        {
            borrowInterestFee: { details: FeeDetail[]; totalValue: number };
            flashloanAndLiquidationFee: { details: FeeDetail[]; totalValue: number };
            totalValue: number;
            v3BorrowFee: { details: FeeDetail[]; totalValue: number };
        },
    > = ...

    Fetches protocol fee information

    This function retrieves detailed fee information including:

    • Total fee value
    • V3 borrow fees
    • Borrow interest fees
    • Flash loan and liquidation fees

    Type declaration

      • (
            options?: Partial<CacheOption>,
        ): Promise<
            {
                borrowInterestFee: { details: FeeDetail[]; totalValue: number };
                flashloanAndLiquidationFee: { details: FeeDetail[]; totalValue: number };
                totalValue: number;
                v3BorrowFee: { details: FeeDetail[]; totalValue: number };
            },
        >
      • Parameters

        • Optionaloptions: Partial<CacheOption>

          Optional caching options

        Returns Promise<
            {
                borrowInterestFee: { details: FeeDetail[]; totalValue: number };
                flashloanAndLiquidationFee: { details: FeeDetail[]; totalValue: number };
                totalValue: number;
                v3BorrowFee: { details: FeeDetail[]; totalValue: number };
            },
        >

        Promise with detailed fee breakdown