"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useVaultPerformance = void 0;
var utils_1 = require("../../../utils");
var types_1 = require("../../../gql/types");
var useError_1 = require("../../useError");
var useVaultPerformance = function (chain, vaultAddress) {
    var query = (0, types_1.useVaultPerformanceQuery)({
        context: { chain: chain },
        variables: { addr: (0, utils_1.getSgId)(vaultAddress, chain), first: 999, skip: 0 },
        pollInterval: 60000,
    });
    var error = query.error;
    (0, useError_1.useError)(error);
    return query;
};
exports.useVaultPerformance = useVaultPerformance;
//# sourceMappingURL=useVaultPerformance.js.map