data-dex icon indicating copy to clipboard operation
data-dex copied to clipboard

Use web sockets or other similar tech to dynamically update balances as blockchain state changes

Open newbreedofgeek opened this issue 2 years ago • 2 comments

This is a complex update that we can do much later on when we are ready.

  • If any event happens on the blackchain that's related to my token balance, when we update the UI automatically. This is the behaviour you see in large DEXs as token values change.

Here is a use-case described by tester.

image

This requires some architecture design before implementing.

newbreedofgeek avatar Feb 27 '23 03:02 newbreedofgeek

We are already doing this. I think this was simply observed wrong in the BoY internal testing.

I just tested now, the wallet is being updated whenever a tx is issued from the user's side.

Do we need a socket that updated itself whenever there is ANY TX ON THE BLOCKCHAIN related to it?

That would require us to use an observing squad probably.

@newbreedofgeek please clarify if current behavior is enough or we should go for more.

damienen avatar Feb 27 '23 14:02 damienen

This can be a future scope of work as it's needs more architecture design.

newbreedofgeek avatar Mar 07 '23 04:03 newbreedofgeek