-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Permit2Lib): add gas cap to DOMAIN_SEPERATOR staticcall (#166)
* test: add failing test for weth9 * fix: add gas cap to DOMAIN_SEPERATOR staticcall Prevents the call from eating a ton of gas w/ fallback tokens and the like. * perf(Permit2Lib): Skip checking DS if token address matches WETH (#167)
- Loading branch information
1 parent
a7cd186
commit 2141eef
Showing
9 changed files
with
307 additions
and
47 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
.forge-snapshots/permit2 + transferFrom2 with WETH9's mainnet address.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
60281 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/permit2 + transferFrom2 with a non EIP-2612 native token with fallback.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
65465 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/permit2 + transferFrom2 with a non EIP-2612 native token.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
60711 | ||
60743 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/permit2 + transferFrom2 with an EIP-2612 native token.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
46265 | ||
46260 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.