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

🐛 [ENG-1897] only generate affiliate fee msg send if amount > 0 #68

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

dhfang
Copy link
Contributor

@dhfang dhfang commented Sep 21, 2023

The computed affiliate message fee can sometimes be 0. Currently, a bank send with a 0 amount will still be created for these cases causing the transaction to fail. This PR adds logic to check if the affiliate fee amount is greater than 0 before generating a bank send for it.

@dhfang dhfang requested review from NotJeremyLiu and removed request for NotJeremyLiu September 21, 2023 14:42
Copy link
Member

@NotJeremyLiu NotJeremyLiu left a comment

Choose a reason for hiding this comment

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

lgtm sir, lets stop those bank sends

@NotJeremyLiu NotJeremyLiu changed the title [ENG-1897] only generate affiliate fee msg send if amount > 0 🐛 [ENG-1897] only generate affiliate fee msg send if amount > 0 Sep 21, 2023
@NotJeremyLiu
Copy link
Member

Added bug emoji to the PR name :)

@NotJeremyLiu NotJeremyLiu merged commit 169bd95 into main Sep 22, 2023
5 checks passed
@NotJeremyLiu NotJeremyLiu deleted the df/affiliate-fee-bug branch September 22, 2023 17:48
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

2 participants