Skip to content

Commit

Permalink
Fix stake amount
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Oct 24, 2024
1 parent d1b9ef8 commit e9402f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/Staking/modalStaking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const ModalStaking = ({ isOpen, onClose }) => {
const selectedMonths = stakingTimestamp ? Math.round(unstakeDate.diffNow().as("months")) : months;
const invalidAmount = +amount > +total;
const invalidMonths = months === maxMonth ? false : months < selectedMonths;
const disabledStake = !amount || invalidAmount || invalidMonths;
const disabledStake = !amount || invalidAmount || invalidMonths || Number(amount) === 0;
const { avgStakeSupplyAPY, avgStakeBorrowAPY, avgStakeNetAPY, totalTokenNetMap } =
useStakeRewardApy();
const [, , multiplier] = useAppSelector(getAccountBoostRatioData);
Expand Down

0 comments on commit e9402f1

Please sign in to comment.