@huma-finance/widgets 0.0.51-beta.387 → 0.0.51-beta.393

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
@@ -5098,8 +5098,8 @@ function ChooseAmount$5(_ref) {
5098
5098
  decimals
5099
5099
  } = poolUnderlyingToken;
5100
5100
  const [currentAmount, setCurrentAmount] = useState(0);
5101
- const depositAmount = upScale(currentAmount, decimals);
5102
- const needApprove = toBigNumber(depositAmount).gt(allowance);
5101
+ const depositAmount = upScale(BigNumber.from(currentAmount), decimals);
5102
+ const needApprove = depositAmount.gt(allowance);
5103
5103
  const withdrawlLockoutDays = timeUtil.secondsToDays(withdrawlLockoutSeconds);
5104
5104
  const handleChangeAmount = useCallback(newAmount => {
5105
5105
  setCurrentAmount(newAmount);
@@ -5150,7 +5150,7 @@ function Transfer$6(_ref) {
5150
5150
  const {
5151
5151
  decimals
5152
5152
  } = poolInfo.poolUnderlyingToken;
5153
- const supplyBigNumber = toBigNumber(upScale(supplyAmount, decimals));
5153
+ const supplyBigNumber = upScale(BigNumber.from(supplyAmount), decimals);
5154
5154
  const handleSuccess = useCallback(() => {
5155
5155
  dispatch(setStep(WIDGET_STEP.Done));
5156
5156
  }, [dispatch]);