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

feat(uniswapx-sdk): PriorityOrder type and builder #55

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ConjunctiveNormalForm
Copy link
Member

@ConjunctiveNormalForm ConjunctiveNormalForm commented Jun 27, 2024

[Summary of the change, motivation, and context]

Add PriorityOrder type and builder

Copy link

graphite-app bot commented Jun 27, 2024

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),
Copy link
Contributor

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

Copy link
Member Author

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

@ConjunctiveNormalForm ConjunctiveNormalForm changed the title feat(uniswapx-sdk): PriorityOrder type feat(uniswapx-sdk): PriorityOrder type and builder Jun 28, 2024
Copy link
Contributor

@codyborn codyborn left a 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

sdks/uniswapx-sdk/src/builder/PriorityOrderBuilder.ts Outdated Show resolved Hide resolved
sdks/uniswapx-sdk/src/order/PriorityOrder.ts Outdated Show resolved Hide resolved
sdks/uniswapx-sdk/src/order/PriorityOrder.ts Outdated Show resolved Hide resolved
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.

None yet

3 participants