"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLevConvexStrategy = void 0;
var react_1 = require("react");
var common_1 = require("../common");
var typechain_1 = require("../../typechain");
function useLevConvexStrategy(chain, address) {
    var signerOrProvider = (0, common_1.useSignerOrProvider)(chain);
    return (0, react_1.useMemo)(function () {
        if (!address || !signerOrProvider)
            return;
        return typechain_1.LevConvexBase__factory.connect(address, signerOrProvider);
    }, [address, signerOrProvider]);
}
exports.useLevConvexStrategy = useLevConvexStrategy;
//# sourceMappingURL=useLevConvexStrategy.js.map