You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the Web Wallet where the Staking flow incorrectly allows the user to proceed with a stake value less than the minimum required stake if the spendable amount is also less than the minimum stake value.
It seems the issue is related to how the component is initialized. Specifically, the onMount logic and the related values should be reviewed to ensure proper validation during initialization.
Steps to Reproduce
Modify the spendable value in StakeContract to a value below the minimum stake, e.g., spendable={duskToLux(70)}
Access the Staking flow in the Web Wallet.
Observe that the Next button is enabled even when the stake amount (e.g., 70 DUSK) is below the minimum stake requirement (1,000 DUSK).
Expected Behavior
The Next button should be disabled if the entered stake value is less than the minimum required stake (1,000 DUSK).
Actual Behavior
The Next button is enabled, allowing the user to proceed with an invalid stake amount.
Potential Cause
The issue may originate from the initialization logic of the component. Specifically, the onMount logic and related values (e.g., minStake and stakeAmount) should be reviewed to ensure they correctly enforce the minimum stake requirement during initialization.
The text was updated successfully, but these errors were encountered:
Description
There is a bug in the Web Wallet where the Staking flow incorrectly allows the user to proceed with a stake value less than the minimum required stake if the spendable amount is also less than the minimum stake value.
It seems the issue is related to how the component is initialized. Specifically, the
onMount
logic and the related values should be reviewed to ensure proper validation during initialization.Steps to Reproduce
spendable
value inStakeContract
to a value below the minimum stake, e.g.,spendable={duskToLux(70)}
Expected Behavior
Actual Behavior
Potential Cause
The issue may originate from the initialization logic of the component. Specifically, the
onMount
logic and related values (e.g., minStake andstakeAmount
) should be reviewed to ensure they correctly enforce the minimum stake requirement during initialization.The text was updated successfully, but these errors were encountered: