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
Right now, if the user inputs a number of Tec Tokens to sell higher than the total supply Metamask throws an error (since 'calculatePurchaseReturn' in the bonding curve reverts), but the interface doesn't change and just continues showing the last valid number introduced.
Realistically, if somebody tries something like that it will just fail, but for completeness' sake it would be nice to catch the error and notify the user.
The text was updated successfully, but these errors were encountered:
Right now, if the user inputs a number of Tec Tokens to sell higher than the total supply Metamask throws an error (since 'calculatePurchaseReturn' in the bonding curve reverts), but the interface doesn't change and just continues showing the last valid number introduced.
Realistically, if somebody tries something like that it will just fail, but for completeness' sake it would be nice to catch the error and notify the user.
The text was updated successfully, but these errors were encountered: