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

multi: enforce a minimum market rate that avoids dust redemption outputs #2687

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

buck54321
Copy link
Member

Copy link
Collaborator

@martonp martonp left a comment

Choose a reason for hiding this comment

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

LGTM. I guess we will need a client change as well to not allow submitting anything lower than the minimum on the UI?

Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

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

I see this solves the #2669 doge thing

Comment on lines 6282 to 6415
if rate < mktConf.MinimumRate {
return nil, newError(orderParamsErr, "order's rate is lower than market's minimum rate. %d < %d", rate, mktConf.MinimumRate)
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: Can the rate be formatted differently. Is it possible to show price? Can be hard to read with all the zeros.

image

@buck54321 buck54321 merged commit 01ab269 into decred:master Mar 22, 2024
5 checks passed
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