"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDefiEdgeVaultArkiver = void 0;
var useError_1 = require("../useError");
var arkiverTypes_1 = require("../../gql/arkiverTypes");
var useDefiEdgeVaultArkiver = function (address, chain) {
    // TODO SWAP OUT
    // DEFI EDGE VAULT QUERY
    var query = (0, arkiverTypes_1.useArrakisV2VaultQuery)({
        context: { arkiver: 'defiedge' },
        variables: { address: address === null || address === void 0 ? void 0 : address.toLowerCase(), chain: chain || '' },
        pollInterval: 20000,
    });
    var error = query.error;
    (0, useError_1.useError)(error);
    return query;
};
exports.useDefiEdgeVaultArkiver = useDefiEdgeVaultArkiver;
//# sourceMappingURL=useDefiEdgeVaultArkiver.js.map