-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(uniswapx-sdk): PriorityOrder type and builder #55
base: main
Are you sure you want to change the base?
Conversation
Graphite Automations"Request reviewers once CI passes on sdks monorepo" took an action on this PR • (06/27/24)1 reviewer was added and 1 assignee was added to this PR based on 's automation. |
const div = product.div(MPS); | ||
return { | ||
...output, | ||
amount: mod.eq(0) ? div : div.add(1), |
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.
do you need to do this rounding for the input as well? for round down
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 think BigNumber.div() rounds down by default
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.
Left some comments but approving to unblock
[Summary of the change, motivation, and context]
Add PriorityOrder type and builder