Approval Streamlining #2

Open
opened 2025-10-23 18:36:41 +00:00 by tim · 0 comments
Owner

The website should first check whether a sufficient approval for the token already exists, and skip the approval step if possible.

When approving, set the approval amount to 2^256-1, which is 115792089237316195423570985008687907853269984665640564039457584007913129639935 When tokens are approved with this max amount, they never reduce the amount of the approval. This type of "max approval" is a permanent approval regardless of amount, and can be re-used across many swaps.

The website should first check whether a sufficient approval for the token already exists, and skip the approval step if possible. When approving, set the approval amount to 2^256-1, which is `115792089237316195423570985008687907853269984665640564039457584007913129639935` When tokens are approved with this max amount, they never reduce the amount of the approval. This type of "max approval" is a permanent approval regardless of amount, and can be re-used across many swaps.
surbhi added the
mid-pri
label 2025-10-23 21:51:40 +00:00
tim added
low-pri
and removed
mid-pri
labels 2025-11-10 15:13:29 +00:00
tim added this to the User Release milestone 2025-11-10 15:22:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Liquidity.Party/web#2
No description provided.