Skip to content

fix(Earn): validate offer minsize#745

Merged
theborakompanioni merged 1 commit intomasterfrom
fix/740-valid-minimum-amount
May 5, 2024
Merged

fix(Earn): validate offer minsize#745
theborakompanioni merged 1 commit intomasterfrom
fix/740-valid-minimum-amount

Conversation

@theborakompanioni
Copy link
Collaborator

Fixes #740.
However, this is a temporary fix to prevent the backend from dying.

There should be a follow-up PR that adds better explanation more prominently.
e.g. similar to the CoinjoinRequirementSummary/CoinjoinRequirementViolation alerts on "Jam" and "Send".

@theborakompanioni theborakompanioni self-assigned this Apr 29, 2024
@theborakompanioni theborakompanioni force-pushed the fix/740-valid-minimum-amount branch from 9736a5c to 6fcf77b Compare April 29, 2024 11:54
@theborakompanioni theborakompanioni marked this pull request as ready for review April 29, 2024 11:56
@theborakompanioni theborakompanioni marked this pull request as draft April 30, 2024 08:27
@editwentyone
Copy link

any hint why the lowest is 27300 sats? but other than that, approved

@theborakompanioni theborakompanioni marked this pull request as ready for review May 5, 2024 18:32
@theborakompanioni
Copy link
Collaborator Author

theborakompanioni commented May 5, 2024

any hint why the lowest is 27300 sats? but other than that, approved

27 300 is the "dusty minsize" and apparently needed to be substracted from the minsize. I am totally sure as to why that is the case. However, the backend does not like larger values and dies a while later.

Have you reproduced the problem and verified that this PR prevents the issue yourself?

@editwentyone
Copy link

double checked, reproduced, now double approved

@theborakompanioni
Copy link
Collaborator Author

double checked, reproduced, now double approved

Thank you 🙏

@theborakompanioni theborakompanioni merged commit 7aef192 into master May 5, 2024
@theborakompanioni theborakompanioni deleted the fix/740-valid-minimum-amount branch May 5, 2024 19:50
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.

"Earn" Feature fails without explanation if "Minimum amount" size is too high

2 participants