SaitoTech / saito-lite-rust

a version of the Saito-Lite client written for compatibility with the Saito Rust client and binary data format
24 stars 28 forks source link

Web3: Polling for receiving deposits is not working #2338

Closed umairkhannn closed 9 months ago

umairkhannn commented 9 months ago

So there is the issue where I make an external deposit, and there is no feedback (which is obviously the case, because just scanning the QR code in Saito and setting up the deposit through Mixin, so no signal to trigger UI).... But I'd do an interval:

Furthermore, we aren't getting the declared error when settling a game stake, but we aren't getting the receive data

Image

Player 1 sees in his records that the 1.43 has successfully transferred, Player 2 is stuck in an infinite loop...

Player 2 should be seeing something like this, no?

Image

umairkhannn commented 9 months ago

Receive payment issue fixed.

End of round payment received succesfully: Image

End of game payment received succesfully: Image

umairkhannn commented 9 months ago

" while hamburger menu is open, every 2 seconds, check balance of preferred crypto"

@f8daniel Previously i had set interval for checking balance every 3 seconds, but was discouraged by @arpee due to concerns if user leaves their window/hamburger menu open for hours it would be sending requests to mixin for hours.

So currently I am fetching balance when hamburger menu is toggled.