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

Add Display offer implementation #188

Merged
merged 2 commits into from
Dec 4, 2021

Conversation

h4sh3d
Copy link
Member

@h4sh3d h4sh3d commented Dec 4, 2021

Fix #186

Implements fmt::Display on Offer along other types. Change some ToString impl with proper Display for better genericity.

Relax clippy warnings and add msrv in case of new breaking rules.

@TheCharlatan
Copy link
Member

LGTM so far, but didn't we want to include the exchange rate of the two assets?

@h4sh3d
Copy link
Member Author

h4sh3d commented Dec 4, 2021

You would compute automatically when calling display? I thought this should be the user of Offer to decide if/when computing the rate and display it, i.e. in the cli node.

@h4sh3d
Copy link
Member Author

h4sh3d commented Dec 4, 2021

What I mean is: I don't think it is the responsibility of Display to do computation.

Copy link
Member

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

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

That's fair enough.

@TheCharlatan TheCharlatan merged commit 0271f28 into farcaster-project:main Dec 4, 2021
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.

Impl Display on Offer
2 participants