"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUnderlyingDenominated = exports.getVault = exports.resolveTitle = void 0;
const lodash_1 = __importDefault(require("lodash"));
const resolveTitle = (title) => lodash_1.default.startCase(lodash_1.default.toLower(title));
exports.resolveTitle = resolveTitle;
const getVault = (vaults, address) => vaults.find(vault => vault.vaultAddress.toLowerCase() === address || vault.tokenAddress.toLowerCase() === address);
exports.getVault = getVault;
const isUnderlyingDenominated = (vault) => vault.includes('CALL') && !vault.includes('QUOTE');
exports.isUnderlyingDenominated = isUnderlyingDenominated;
//# sourceMappingURL=formatters.js.map