"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePendingRedeemAmt = void 0;
var common_1 = require("../common");
function usePendingRedeemAmt(vault, account) {
    var withdrawStatus = (0, common_1.useCallPoll)(3, vault === null || vault === void 0 ? void 0 : vault.getWithdrawStatus, account).res;
    /* @ts-ignore-next-line */
    var sharesBN = (withdrawStatus === null || withdrawStatus === void 0 ? void 0 : withdrawStatus.shares) || (withdrawStatus === null || withdrawStatus === void 0 ? void 0 : withdrawStatus.value);
    var pendingRedeemAmtBN = (0, common_1.useCallPoll)(3, vault === null || vault === void 0 ? void 0 : vault.sharesToUnderlying, sharesBN).res;
    return { pendingRedeemAmtBN: pendingRedeemAmtBN, sharesBN: sharesBN };
}
exports.usePendingRedeemAmt = usePendingRedeemAmt;
//# sourceMappingURL=usePendingRedeemAmt.js.map