Skip to content
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

Permit2 support for ERC20 Terminals #57

Open
wants to merge 9 commits into
base: feature/remove-fee-discount
Choose a base branch
from

Conversation

xBA5ED
Copy link
Member

@xBA5ED xBA5ED commented Aug 31, 2023

Adds Permit2 support to terminals to improve the UX. Users will no longer need to do two separate transactions (Approve and Pay/AddToBalance), instead they can use Permit2 to give approval in the same transaction.

(This only works if they have given the Permit2 contract approval to spend the tokens)

TODO:

  • Write tests
  • Create interface for Allowance methods
  • Add interface to ERC165
  • SafeCast uint256 to uint160 (?)

@mejango mejango changed the base branch from main to feature/remove-fee-discount September 1, 2023 13:57
@mejango mejango marked this pull request as ready for review September 11, 2023 22:17
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