data-dex
data-dex copied to clipboard
Use web sockets or other similar tech to dynamically update balances as blockchain state changes
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.
This requires some architecture design before implementing.
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.
This can be a future scope of work as it's needs more architecture design.