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

client/core: Update token parent balances #2201

Merged
merged 1 commit into from Mar 13, 2023

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Mar 3, 2023

When an order involving a token was cancelled, the locked amount in the parent's balance would not be updated. Now, in updateBalances, when a token's balance is update is parents is also updated.

This also moves the updates for the parent asset's balances from sendTradeRequest to prepareTradeRequest.

@martonp martonp changed the title core: Update token parent balances client/core: Update token parent balances Mar 3, 2023
When an order involving a token was cancelled, the locked amount
in the parent's balance would not be updated. Now, in `updateBalances`,
when a token's balance is update is parents is also updated.

This also moves the updates for the parent asset's balances from
`sendTradeRequest` to `prepareTradeRequest`.
Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@chappjc chappjc added this to the 0.6 milestone Mar 13, 2023
@chappjc chappjc merged commit 83d7757 into decred:master Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants