Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Fix calculation of fees in multi-asset transactions #398

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

dguenther
Copy link
Member

The total amount + fees was being compared to the balance of the chosen asset, but fees should only ever apply to the $IRON balance. This changes the check to error in these cases:

  • $IRON balance is less than amount + fee if $IRON is chosen
  • $IRON balance is less than fee if $IRON is not chosen
  • chosen asset balance is less than amount

@vercel
Copy link

vercel bot commented Sep 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wallet-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2023 9:33pm

@dguenther dguenther merged commit dcbdd9c into master Sep 22, 2023
@dguenther dguenther deleted the fix-fee-calculation branch September 22, 2023 21:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants