Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for the position values before calculating subaccount #705

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

ruixhuang
Copy link
Contributor

Position calculation needs oracle price for the market. During initial app loads, the oracle prices might come after the subaccount data. In this case, we will want to delay the subaccount calculation until the oracle prices arrive. Otherwise, the app would display incorrect portfolio values.

Tested it on Android.

Before:
old1.webm

After:
newl1.webm

@ruixhuang ruixhuang marked this pull request as ready for review October 14, 2024 17:15
@ruixhuang ruixhuang merged commit f35a73e into main Oct 14, 2024
3 checks passed
@ruixhuang ruixhuang deleted the feature/loading branch October 14, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants