Skip to content

fix(tokens): poll for USDF balance after USDC→USDF sweep#766

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/usdf-balance-poll-after-sweep
May 23, 2026
Merged

fix(tokens): poll for USDF balance after USDC→USDF sweep#766
bmc08gt merged 1 commit into
code/cashfrom
fix/usdf-balance-poll-after-sweep

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 23, 2026

After a successful sweep, the on-chain swap is asynchronous so the initial tokenCoordinator.update() returns 0. Use BalancePoller to actively poll Mint.usdf until the balance becomes displayable, replacing the passive 20s poll cycle with a 5s×12 active window.

@bmc08gt bmc08gt self-assigned this May 23, 2026
@github-actions github-actions Bot added type: fix Bug fix area: tokens Token accounts, balances, token info and removed type: fix Bug fix labels May 23, 2026
After a successful sweep, the on-chain swap is asynchronous so the
balance is not immediately available. Use BalancePoller to actively poll
Mint.usdf until the balance becomes displayable, replacing the passive
20s poll cycle with a 5s x 12 active window.
@bmc08gt bmc08gt force-pushed the fix/usdf-balance-poll-after-sweep branch from f011453 to defccea Compare May 23, 2026 23:39
@github-actions github-actions Bot added the type: fix Bug fix label May 23, 2026
@bmc08gt bmc08gt merged commit 8440ade into code/cash May 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant