-
Notifications
You must be signed in to change notification settings - Fork 88
use allowance holder api for 0x v2 eip5792 txs #355
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Deploying llamaswap with
|
Latest commit: |
f591685
|
Status: | ✅ Deploy successful! |
Preview URL: | https://b6249bc1.llamaswap.pages.dev |
Branch Preview URL: | https://0x-v2-allowance-holder.llamaswap.pages.dev |
return null; | ||
}); | ||
|
||
// fetch permit2 quote if allowance holder quote is not available |
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.
the code doesnt implement what this comment is saying?
if (!signature) { | ||
throw { reason: 'Signature is required' } | ||
if (rawQuote.isSignatureNeededForSwap && tokens.fromToken.address !== zeroAddress && !signature) { | ||
throw { reason: 'Signature is required' }; | ||
} | ||
|
||
const signatureLengthInHex = numberToHex(size(signature), { |
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.
when signature is empty, does this work?
No description provided.