Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mintdart
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Jun 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
llamaswap ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2025 8:43pm

Copy link

cloudflare-workers-and-pages bot commented Jun 21, 2025

Deploying llamaswap with  Cloudflare Pages  Cloudflare Pages

Latest commit: f591685
Status: ✅  Deploy successful!
Preview URL: https://b6249bc1.llamaswap.pages.dev
Branch Preview URL: https://0x-v2-allowance-holder.llamaswap.pages.dev

View logs

return null;
});

// fetch permit2 quote if allowance holder quote is not available
Copy link
Contributor

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), {
Copy link
Contributor

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?

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.

2 participants