@huma-finance/widgets 0.0.62-beta.719 → 0.0.62-beta.720

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10218,8 +10218,10 @@ function ApproveAllowance(_ref) {
10218
10218
  iconWrapper: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 220px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(6)),
10219
10219
  description: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n padding: ", ";\n "])), theme.spacing(4), theme.palette.text.secondary, theme.spacing(0, 1))
10220
10220
  };
10221
- const lockupEndTime = dayjs().add((_poolState$withdrawal = poolState.withdrawalLockupPeriodDays) !== null && _poolState$withdrawal !== void 0 ? _poolState$withdrawal : 0, 'day').date(1);
10222
- const withdrawTime = lockupEndTime.add(1, 'month');
10221
+ const {
10222
+ lockupEndTimeUnix,
10223
+ withdrawTimeUnix
10224
+ } = getLenderLockupDates((_poolState$withdrawal = poolState.withdrawalLockupPeriodDays) !== null && _poolState$withdrawal !== void 0 ? _poolState$withdrawal : 0);
10223
10225
  return jsxs(WrapperModal, {
10224
10226
  title: "Auto-Redemption",
10225
10227
  children: [jsx(Box, {
@@ -10230,7 +10232,7 @@ function ApproveAllowance(_ref) {
10230
10232
  })
10231
10233
  }), jsxs(Box, {
10232
10234
  css: styles.description,
10233
- children: ["This allowance transaction will enable auto-redemption for your existing tranche shares. Redemption requests will be automatically submitted on", ' ', timeUtil.timestampToLL(lockupEndTime.unix()), ". Your deposit can be redeemed and yield rewards will stop on", ' ', timeUtil.timestampToLL(withdrawTime.unix()), "."]
10235
+ children: ["This allowance transaction will enable auto-redemption for your existing tranche shares. Redemption requests will be automatically submitted on", ' ', timeUtil.timestampToLL(lockupEndTimeUnix), ". Your deposit can be redeemed and yield rewards will stop on", ' ', timeUtil.timestampToLL(withdrawTimeUnix), "."]
10234
10236
  }), jsx(BottomButton, {
10235
10237
  variant: "contained",
10236
10238
  onClick: handleNext,