-
Notifications
You must be signed in to change notification settings - Fork 0
feat: fastswap intents #44
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
Conversation
|
@owen-eth must be a member of the Primev team on Vercel to deploy. Learn more about collaboration on Vercel and other options here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
passandscore
left a comment
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.
Lets further review the handling of ETH
contracts/src/FastSettlementV3.sol
Outdated
| uint256 startInputBal = _getBalance(intent.inputToken); | ||
|
|
||
| // Pull funds | ||
| IPermit2.PermitTransferFrom memory permit = IPermit2.PermitTransferFrom({ |
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.
What if the input token is address(0)? We cannot pass that to the permit function.
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.
Yeah ETH handling got messed up, will address. We should not even be allowing ETH as input token - we will need to prompt user to execute a wrapping tx so that WETH can be used instead.
No description provided.