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
Currently once you vote, you see the loader for 5-6 seconds - this is because the bet is being placed then. And post that, the “You have staked x tokens..” screen comes
What we want is once they vote, the staked token messaging screen comes right away and the bet placement takes place in backend asynchronously
The text was updated successfully, but these errors were encountered:
@Veercodeprog Study the optimistic UI and try to get the time remaining from client side instead of sending it to backend and displaying the loading.
Similarly, do the same for Wallet balance, keep the balance stored at client side, keep calculating and sending to backend. Once backend has insufficient balance it will send error to client which we can display.
User Current time - Created at = Time left for slot to end
Currently once you vote, you see the loader for 5-6 seconds - this is because the bet is being placed then. And post that, the “You have staked x tokens..” screen comes
What we want is once they vote, the staked token messaging screen comes right away and the bet placement takes place in backend asynchronously
The text was updated successfully, but these errors were encountered: