-
Notifications
You must be signed in to change notification settings - Fork 79
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
integrate 0x v2 #278
base: master
Are you sure you want to change the base?
integrate 0x v2 #278
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deploying llamaswap with Cloudflare Pages
|
Note: Replace api key before merging |
// check if permit2 contract approval address matches | ||
if ( | ||
permitApiQuote.permit2 !== null && | ||
permitApiQuote.permit2.eip712.domain.verifyingContract.toLowerCase() !== permit2Address.toLowerCase() |
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.
this check seems useless? since verifyingContract is never used
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.
if user has enough allowance for permit2Address then permit2 will be null
no need for approval signature, but user can sign -> swap via permit2
instead of approving spender from allowanceHolderApiQuote -> swap
example: they approved on matcha.xyz or uniswap.org and trying to swap on llamaswap , we don't need to ask them to approve again
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.
PR looks good from my perspective!
I tried pulling the repo and testing but wasn't able to get the lambdas working (so in my tests, the lambdas were just pointed at prod). In my testing, it appeared the tx went down the AllowanceHolder flow just fine, which is sufficient to start.
That said, I was unable to test the permit2 flow. Happy to help out with testing if you guys need it
For now, things look good from our side - just requesting a rename from Argon => 'Matcha/0x v2'
Co-authored-by: phil-ociraptor <[email protected]>
This reverts commit cb53a25.
No description provided.