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
How this happens is that: since the Notes balance remails the same untill a block is mined, the website's knowledge of how many notes the user owns will be restricted to the last time the last block was mined.
Prevention methods:
Restrict the user from making consecutive sells, only allow them to make a sell after a certain time limit. This will ensure that the block is mined before they make a transaction. There might still be issues here as well as the Notes are note dynamically updated on the frontend, meaning that the user can just choose not to refresh their page, and make another SELL request after a minute.