permit2 icon indicating copy to clipboard operation
permit2 copied to clipboard

πŸ”‘πŸ”‘πŸ”‘ next generation token approvals mechanism

Results 46 permit2 issues
Sort by recently updated
recently updated
newest added

i was wondering in _transfer whether the bypass of updating the allowed.amount when approved amount is 2**160-1 is intended to save on gas, as i have tried to test in...

- moving memory variables out of loop - using BLOCK_TIMESTAMP_EXPIRATION in updateAmountAndExpiration - using unchecked in loops - using delete storage instead of resetting value to 0 - using >...

I think it could be better instead of check the [`DOMAIN_SEPARATOR` ](https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol#L78) which some tokens that implement `permit` do not implement like [UNI](https://github.com/Uniswap/governance/blob/master/contracts/Uni.sol). Check instead the `PERMIT_TYPEHASH` in a very...

I had a question about the security of the permits submitted in the Permit2 SignatureTransfer.permitTransferFrom. From my reading, the signature is a signature on the following data: ``` address sellToken...

When i run ``` forge script --broadcast --rpc-url https://evm-rpc-arctic-1.sei-apis.com/ --private-key --verify script/DeployPermit2.s.sol:DeployPermit2 ``` It errors out with ``` [⠊] Compiling... [β ’] Compiling 1 files with 0.8.17Compiler run successful! [β ’] Compiling...

Hi permit2 team, I was wondering if it makes sense to have the integration test status badge on the readme.

What exactly is the difference between `SignatureTransferDetails::requestedAmount` and `TokenPermissions::amount`? If using a permit for less than the max amount, and the nonce will be used & invalidated, then whats the...

In order for Permit2 to comply with [ERC-4337 validation rules](https://eips.ethereum.org/EIPS/eip-4337#forbidden-opcodes)Β and support account abstraction, certain commonly used operations such as checking the current timestamp cannot be run in function calls....

Similar to https://github.com/Uniswap/permit2/pull/237, this is a more narrowed approach to providing a generalized test helper for SignatureTransfer. Currently, the test helpers in `PermitSignature` only generate signatures for a hard-coded `address(this)`....

I needed to add the etherscan api key to deploy permit2 on OP Sepolia