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

fix(coin): round VND conversion from USD to avoid missing bonus coin #49

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

quannhg
Copy link
Member

@quannhg quannhg commented Dec 5, 2023

The fix addresses a scenario where the conversion from USD to VND in the completion of a PayPal order might result in a fractional VND value due to the infinite float of the exchange ratio. Rounding the VND result prevents the loss of bonus coins.

The fix addresses a scenario where the conversion from USD to VND in the completion of a PayPal
order might result in a fractional VND value due to the infinite float of the exchange ratio.
Rounding the VND result prevents the loss of bonus coins.
@quannhg quannhg merged commit 3ace76a into staging Dec 5, 2023
2 of 3 checks passed
@quannhg quannhg deleted the fix/rounded-dollar-to-vnd-losing-bonus-coin branch December 5, 2023 05:10
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.

1 participant