Skip to content

Refresh wallet balance more regularly.#26

Open
lexzaiello wants to merge 2 commits into
mainfrom
bugfix-walletbalancefreshness
Open

Refresh wallet balance more regularly.#26
lexzaiello wants to merge 2 commits into
mainfrom
bugfix-walletbalancefreshness

Conversation

@lexzaiello

Copy link
Copy Markdown
Contributor

Currently, there is a bug in Osmosis trades which causes transactions to fail to execute, due to the wallet balance being lower than the execution plan specifies. The only explanation for this is that the execution plan is being created with a stale starting amount (wallet balance). One possible explanation for this behavior is rebalancing in between wallet balance fetching and route evaluation. This PR refreshes the wallet balance after rebalancing to remedy this issue.

Note: This will not fix the underlying issue - wallet funds getting stuck somewhere before the trade is executed. Further testing will be done to verify the source of this behavior.

@lexzaiello lexzaiello requested review from bekauz and stiiifff October 3, 2024 13:31
@lexzaiello lexzaiello self-assigned this Oct 3, 2024
@lexzaiello lexzaiello added the bug Something isn't working label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants