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

Hotfix check payment #28

Merged
merged 1 commit into from
May 6, 2024
Merged

Hotfix check payment #28

merged 1 commit into from
May 6, 2024

Conversation

talvasconcelos
Copy link
Collaborator

Hotfix the check payment when using fiat tickets

Hotfix the check payment when using fiat tickets
@talvasconcelos talvasconcelos requested review from dni and motorina0 April 19, 2024 13:19
# check if price is equal to payment.amount
lower_bound = price * 0.99 # 1% decrease

if not payment.pending and abs(payment.amount) >= lower_bound: # allow 1% error
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is abs required?

@dni
Copy link
Member

dni commented Apr 24, 2024

why is this 1% margin needed here but nowhere else?

@talvasconcelos talvasconcelos merged commit 082f5e7 into main May 6, 2024
@talvasconcelos talvasconcelos deleted the hotfix_fiat_tickets branch May 6, 2024 11:41
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.

3 participants