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: Support SettleAndMintRefund in periphery #3

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

ChefSnoopy
Copy link
Collaborator

No description provided.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Checked, oz version keeps 4.9.x

@@ -10,7 +10,7 @@
"test": "forge test",
"dev": "forge test -vvv -w",
"snapshot": "rm -fr .forge-snapshots && forge test",
"prettier": "forge fmt contracts/ && forge fmt test/ && forge fmt script/",
"prettier": "forge fmt src/ && forge fmt test/ && forge fmt script/",
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch 😂

Copy link
Collaborator

@chefburger chefburger left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@ChefMist ChefMist left a comment

Choose a reason for hiding this comment

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

for swap case. msgSender will get the minted the excess token.

for bin case
-> add liquidity: sender get minted excess token
-> remove liquidity: recipient get minted excess token

for nfp case:
-> mint: sender get minted excess token
-> increase liquidity: sender get minted excess token
-> decrease liquidity: sender get minted excess token

not a biggie in my opinion that recipient is the one getting minted excess token in bin case. objective of this is to deal with someone sending extra token to the vault and settle() fail. created pancakeswap/pancake-v4-periphery#4 just for us to track

@ChefSnoopy ChefSnoopy merged commit ba7169c into main Mar 25, 2024
2 checks passed
@ChefSnoopy ChefSnoopy deleted the feature/settle-refund branch March 25, 2024 15:48
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