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

[Part 1] feat: refactor v4 to infinity #77

Merged
merged 14 commits into from
Feb 5, 2025
Merged

Conversation

ChefMist
Copy link
Collaborator

@ChefMist ChefMist commented Jan 28, 2025

This PR does the following:

  • update imports from pancake-v4-core to infinity-core
  • rename file name accordingly (eg. V4Router to InfinityRouter)
  • rename variables accordingly

@ChefMist ChefMist changed the title feat: refactor v4 to infinity <WIP> feat: refactor v4 to infinity Jan 28, 2025
@ChefMist ChefMist changed the title <WIP> feat: refactor v4 to infinity <WIP> [Part 1 of 2] feat: refactor v4 to infinity Jan 31, 2025
@ChefMist ChefMist changed the title <WIP> [Part 1 of 2] feat: refactor v4 to infinity <WIP> [Part 1] feat: refactor v4 to infinity Jan 31, 2025
@ChefMist ChefMist changed the title <WIP> [Part 1] feat: refactor v4 to infinity [Part 1] feat: refactor v4 to infinity Jan 31, 2025
@@ -60,7 +60,7 @@ abstract contract BinRouterBase is IBinRouterBase, DeltaResolver {
}

if (amountOut < params.amountOutMinimum) {
revert IV4Router.V4TooLittleReceived(params.amountOutMinimum, amountOut);
revert IInfinityRouter.TooLittleReceived(params.amountOutMinimum, amountOut);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drop the prefix of v4 as its already from IIfinity

chef-omelette
chef-omelette previously approved these changes Feb 3, 2025
Copy link
Contributor

@chef-omelette chef-omelette left a comment

Choose a reason for hiding this comment

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

LGTM

* feat: rename _v4 to without _v4

* Update src/interfaces/external/IV3NonfungiblePositionManager.sol

Co-authored-by: Chef Omelette <[email protected]>

---------

Co-authored-by: Chef Omelette <[email protected]>
@chefburger chefburger merged commit 8eef9be into main Feb 5, 2025
2 checks passed
@chefburger chefburger deleted the feat/refactor-name branch February 5, 2025 06:46
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