Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update fee calculation logic to accept price #672
Update fee calculation logic to accept price #672
Changes from 31 commits
8175147
d1975eb
bf31410
90f4729
f13e6bb
ba0b1eb
9cbcadf
d1d11c8
d431e61
ed7827b
c49d037
2d307d2
d9091fe
4ecb8fa
b80bd39
fe7bd46
3f5d950
b963c6b
0f756c3
0c3c8ff
39a3036
c548402
32e187e
f13085a
394d89a
935ba82
cb6fb93
295152c
e2a26e8
9c1c3d2
9dddcfe
d7546e2
fd747ba
81e91b8
17cd96e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a thought.
Hmm, it is the third time when we have updated a lot of places because of the modified number of arguments for the
check
function=DMaybe it makes sense to accumulate all arguments inside of one type like
CheckArgs
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this more. There are no
impl
s ofcheck
and only 4impl
s ofcheck_without_signature
. I'm not too worried about it. It would be a lot more work rn to create a new type--all the places we call those functions. And those places would still need to be changed in the future.This also goes back to the work I did a while ago breaking down the params so functions only use what they need. As soon as we start grouping things together again it gets harder to uphold the Interface Segregation Principle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty ambivalent about this one. I agree that it's a smell if we keep changing the interface, but I don't know if it's worth the work changing now.