@huma-finance/widgets 0.0.62-beta.597 → 0.0.62-beta.601
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/cjs/index.cjs
CHANGED
|
@@ -26,8 +26,8 @@ var reactNumberFormat = require('react-number-format');
|
|
|
26
26
|
var ArrowForwardIosIcon = require('@mui/icons-material/ArrowForwardIos');
|
|
27
27
|
var dayjs = require('dayjs');
|
|
28
28
|
var Persona = require('persona');
|
|
29
|
-
var moment = require('moment');
|
|
30
29
|
var sdk = require('@huma-finance/sdk');
|
|
30
|
+
var moment = require('moment');
|
|
31
31
|
var client = require('@apollo/client');
|
|
32
32
|
var Table = require('@mui/material/Table');
|
|
33
33
|
var TableBody = require('@mui/material/TableBody');
|
|
@@ -4559,10 +4559,11 @@ function ChooseAmount$6(_ref) {
|
|
|
4559
4559
|
const lockupEndTime = depositRecord.lastDepositTime.toNumber() + lpConfig.withdrawalLockoutPeriodInDays * SECONDS_IN_A_DAY;
|
|
4560
4560
|
if (nextEpochStartTime < lockupEndTime) {
|
|
4561
4561
|
const lockupEndTimeDayjs = dayjs__default["default"].unix(lockupEndTime).date(1);
|
|
4562
|
+
const withdrawTime = lockupEndTimeDayjs.add(1, 'month');
|
|
4562
4563
|
dispatch(setStep(WIDGET_STEP.Error));
|
|
4563
4564
|
dispatch(setError({
|
|
4564
4565
|
errorReason: 'Redemption too soon',
|
|
4565
|
-
errorMessage: "Your last deposit was on ".concat(shared.timestampToLL(depositRecord.lastDepositTime.toNumber()), ". You can
|
|
4566
|
+
errorMessage: "Your last deposit was on ".concat(shared.timestampToLL(depositRecord.lastDepositTime.toNumber()), ". You can begin submitting redemption requests on ").concat(shared.timestampToLL(lockupEndTimeDayjs.unix()), ", which can be redeemed starting ").concat(shared.timestampToLL(withdrawTime.unix()), ".")
|
|
4566
4567
|
}));
|
|
4567
4568
|
}
|
|
4568
4569
|
}
|
|
@@ -6305,8 +6306,9 @@ function Success$4(_ref) {
|
|
|
6305
6306
|
}, [campaign, dispatch, handleAction, isFirstTimeNotifiUser, notifiChainSupported]);
|
|
6306
6307
|
const content = ["You successfully supplied ".concat(shared.formatMoney(supplyAmount), " ").concat(symbol, ".")];
|
|
6307
6308
|
const getSubContent = () => {
|
|
6308
|
-
const
|
|
6309
|
-
|
|
6309
|
+
const redemptionTime = dayjs__default["default"]().add(lpConfig.withdrawalLockoutPeriodInDays, 'day').date(1);
|
|
6310
|
+
const withdrawTime = redemptionTime.add(1, 'month');
|
|
6311
|
+
return ["You can begin submitting redemption requests on ".concat(shared.timeUtil.timestampToLL(redemptionTime.unix()), ", which can be redeemed starting ").concat(shared.timeUtil.timestampToLL(withdrawTime.unix()), ".")];
|
|
6310
6312
|
};
|
|
6311
6313
|
const getButtonText = () => {
|
|
6312
6314
|
if (hasNextStep) {
|