waitForChildchainBalancefunction from omg-js documentation or implement your custom helper/service for polling the expected amount after the deposit.
account/get_utxosendpoint to get information about the latest UTXOs. Current implementation returns only confirmed UTXOs that are not used for the pending transaction. One of the ways to mitigate this limitation is to block/disable your wallet UI to prevent sending other transactions until the current transaction is confirmed. Otherwise, you may encounter a
UTXO not foundissue. Alternatively, you can keep track of all of the UTXOs used for your transactions but this will create additional complexity for your application.
Scan QR codebutton for the network a user is currently on (Ethereum or OMG). It's not recommended to use a global scan as it creates an extra decision for a user to make. If possible, have a separate flow for each of the networks to create a clear and consistent association and mental model for a particular user.