Open secretshardul opened 3 years ago
This can probably be fixed in ones own app by subclassing Provider
and listening for transaction confirmations manually. The other aspect is to use an app specific validator. This demo uses solana-api.projectserum.com
which is public infrastructure shared across many apps so it's not going to be as reliable as using a private one.
We noticed that https://api.mainnet-beta.solana.com
RPC gives much lower latency.
The swap UI makes a lot of RPC calls, which is probably causing this issue. We tried Figment's private RPC, which immediately timed us out. The price refresh rate needs to be reduced.
There's over a 30 second delay before swaps are acknowledged. A red error box shows up, which breaks user experience even though the transaction goes through. We're noticing this for few weeks now. This issue is not faced on Raydium. Tested with v0.2.2.