Skip to content

V2_SWAP_EXACT_OUT #93

Answered by Elnaril
p-and14 asked this question in Q&A
Feb 24, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @p-and14 !

With the latest SDK version (v2.0.0) you can decode some possible ContractCustomError:

codec.decode.contract_error("0xd81b2f2e0000000000000000000000000000000000000000000000000000000000000000")

The result for this particular error is:

('AllowanceExpired(uint256)', {'deadline': 0})

=> Are you sure you have permit2'ed the Universal Router and approved the permit2 contract for WETH ?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@p-and14
Comment options

@Elnaril
Comment options

@p-and14
Comment options

Answer selected by p-and14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants