-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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.
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/", |
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.
nice catch 😂
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.
lgtm
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.
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
No description provided.