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

Middleware protect #152

Open
wants to merge 54 commits into
base: middleware-remove
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
128aacf
create outline
Jun1on Jul 15, 2024
6801684
add liquidity protection
Jun1on Jul 15, 2024
5e6c2ae
add quoter check in beforeswap
Jun1on Jul 15, 2024
9f6788e
increase foundry gas_limit
Jun1on Jul 16, 2024
e3ad3c7
forge fmt
Jun1on Jul 16, 2024
d3e40ff
add function to handle errors
Jun1on Jul 16, 2024
052f21d
enforce implementation address mined
Jun1on Jul 16, 2024
71962b1
fix error bug
Jun1on Jul 17, 2024
9a60e41
bring back random function
Jun1on Jul 17, 2024
daf74ce
Recipient mapping! (#246)
hensha256 Aug 2, 2024
fdf28e4
allow batching sig based approvals through p2 forwarder (#238)
snreynolds Aug 2, 2024
ebf7a4d
Take portion (#250)
hensha256 Aug 2, 2024
30863cc
Pay with balance, and use delta as amount in (#249)
hensha256 Aug 2, 2024
a9e463d
Settle pair (#242)
dianakocsis Aug 2, 2024
e764aec
posm: add staking through subscribers (#229)
snreynolds Aug 2, 2024
912536c
make msgSender public (#253)
hensha256 Aug 2, 2024
eee5a0e
posm: CLEAR_OR_TAKE (#252)
saucepoint Aug 2, 2024
6fe5428
TAKE_PAIR (#254)
dianakocsis Aug 3, 2024
1f28ac2
ERC721Permit (#210)
saucepoint Aug 3, 2024
2f15bb2
Take (#257)
snreynolds Aug 3, 2024
86b5ea3
multicall: bubble up revert reason (#236)
saucepoint Aug 4, 2024
d65f158
Optimise permit hashing (#260)
hensha256 Aug 4, 2024
0c956bf
Replace OZ EIP712 (#256)
saucepoint Aug 4, 2024
60a983e
Take command in router (#261)
hensha256 Aug 4, 2024
dfa1865
posm: Rename File Collisions (#263)
saucepoint Aug 4, 2024
2d07bd4
Align constants with UR (#267)
hensha256 Aug 4, 2024
e2d2508
One BPS library (#268)
hensha256 Aug 4, 2024
eb0cf58
slippage params routing (#264)
hensha256 Aug 4, 2024
41bbc7d
add liquidity view (#270)
snreynolds Aug 4, 2024
ea5f9ec
add bytes, clean up compiliation (#269)
snreynolds Aug 4, 2024
f402aa7
actions with no unlock (#231)
hensha256 Aug 5, 2024
d1f9005
ERC721Permit - PermitForAll (#271)
saucepoint Aug 5, 2024
3b93674
Wrap reverts thrown by subscribers (#273)
gretzke Aug 5, 2024
df47aa9
Some cleanup (#276)
snreynolds Aug 5, 2024
20718d5
Make PositionManager.transferFrom virtual (#278)
brockmiller Aug 5, 2024
cf4e2ad
Use custom revert (#277)
snreynolds Aug 5, 2024
af688af
add mint position event (#279)
snreynolds Aug 5, 2024
bf3b8ad
Provide feesAccrued to subscriber.notifyModifyLiquidity (#282)
saucepoint Aug 6, 2024
17f1a49
OZ: posm - restore permissioning on increase (#290)
saucepoint Aug 7, 2024
7cad2f6
fix: slippage checks (#285)
snreynolds Aug 8, 2024
b890da6
nit: make multicall external (#292)
snreynolds Aug 8, 2024
4d56687
OZ: Remove contract balance swap input (#286)
hensha256 Aug 8, 2024
469f856
move sub unsub (#287)
snreynolds Aug 8, 2024
5ad4439
add view quoter
Jun1on Aug 8, 2024
656afa4
Merge branch 'middleware-remove' into middleware-protect
Jun1on Aug 9, 2024
05ad967
uninheret from middleware-remove
Jun1on Aug 13, 2024
54c12c8
add gas tests with revert quoter
Jun1on Aug 13, 2024
4ad5a3f
Merge branch 'view-quoter' into middleware-protect
Jun1on Aug 13, 2024
8139431
forge test --isolate
Jun1on Aug 13, 2024
81e9692
use view quoter
Jun1on Aug 13, 2024
3f69c05
optimize quoter
Jun1on Aug 13, 2024
6632806
update docs
Jun1on Aug 14, 2024
cea56de
use tstore
Jun1on Aug 15, 2024
5eec68a
update gas snapshots
Jun1on Aug 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .forge-snapshots/BaseActionsRouter_mock10commands.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61756
61749
1 change: 1 addition & 0 deletions .forge-snapshots/MIDDLEWARE_PROTECT-multi-protected.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
178303
1 change: 1 addition & 0 deletions .forge-snapshots/MIDDLEWARE_PROTECT-multi-vanilla.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
143854
1 change: 1 addition & 0 deletions .forge-snapshots/MIDDLEWARE_PROTECT-protected.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
149751
1 change: 1 addition & 0 deletions .forge-snapshots/MIDDLEWARE_PROTECT-vanilla.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
124869
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-deltas-protected.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
138303
138348
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-deltas-vanilla.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
124851
124896
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-fee-protected.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
153543
153544
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-fee-vanilla.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
140103
140104
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-override.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133820
133865
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-protected.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135757
135802
2 changes: 1 addition & 1 deletion .forge-snapshots/MIDDLEWARE_REMOVE-vanilla.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
124822
124867
1 change: 1 addition & 0 deletions .forge-snapshots/NormalSwap.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
79041

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
133206
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
135242

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
127716
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
127854
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_burn_empty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
47059
47167
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_burn_empty_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
46876
46984
1 change: 0 additions & 1 deletion .forge-snapshots/PositionManager_burn_nonEmpty.snap

This file was deleted.

1 change: 0 additions & 1 deletion .forge-snapshots/PositionManager_burn_nonEmpty_native.snap

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
123586
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
123093
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
130664
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
130172
1 change: 0 additions & 1 deletion .forge-snapshots/PositionManager_collect.snap

This file was deleted.

2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
141136
142147
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
149984
150995
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_collect_withClose.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
150995
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_collect_withTakePair.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
150367
1 change: 0 additions & 1 deletion .forge-snapshots/PositionManager_decreaseLiquidity.snap

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
108384
109192
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
116538
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
115910
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_burnEmpty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133885
134740
Original file line number Diff line number Diff line change
@@ -1 +1 @@
126624
127479
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128243
129254
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_decrease_take_take.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
117071

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
155245
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
154247
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133900
137045
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130065
133390
Original file line number Diff line number Diff line change
@@ -1 +1 @@
170759
174306
Original file line number Diff line number Diff line change
@@ -1 +1 @@
140581
144262
1 change: 0 additions & 1 deletion .forge-snapshots/PositionManager_mint.snap

This file was deleted.

2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
336712
341067
1 change: 0 additions & 1 deletion .forge-snapshots/PositionManager_mint_nativeWithSweep.snap

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
349559
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
348861
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_onSameTickLower.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
314694
319049
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_onSameTickUpper.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
315336
319691
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
240918
245273
Original file line number Diff line number Diff line change
@@ -1 +1 @@
370018
375091
Original file line number Diff line number Diff line change
@@ -1 +1 @@
320712
325067
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_mint_withClose.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
376367
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_mint_withSettlePair.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
375507
Original file line number Diff line number Diff line change
@@ -1 +1 @@
416388
420841
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_permit.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
79484
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
62372
1 change: 1 addition & 0 deletions .forge-snapshots/PositionManager_permit_twice.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
45260
1 change: 1 addition & 0 deletions .forge-snapshots/ProtectedSwap.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
205221
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2398
2376
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8543
8455
2 changes: 1 addition & 1 deletion .forge-snapshots/StateView_extsload_getLiquidity.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1509
1487
2 changes: 1 addition & 1 deletion .forge-snapshots/StateView_extsload_getPositionInfo.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2927
2905
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1746
1724
2 changes: 1 addition & 1 deletion .forge-snapshots/StateView_extsload_getSlot0.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1606
1584
2 changes: 1 addition & 1 deletion .forge-snapshots/StateView_extsload_getTickBitmap.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1704
1682
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2756
2734
2 changes: 1 addition & 1 deletion .forge-snapshots/StateView_extsload_getTickInfo.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3090
3068
2 changes: 1 addition & 1 deletion .forge-snapshots/StateView_extsload_getTickLiquidity.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1901
1879
1 change: 1 addition & 0 deletions .forge-snapshots/UnprotectedSwap.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
130276
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_Bytecode.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6942
8389
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
120501
119501
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
119696
118696
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128568
127568
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135398
134398
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn2Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
186897
185939
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn2Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
178832
177874
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn3Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
238421
237461
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn3Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
230380
229420
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134171
133206
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
119274
118309
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
118447
117482
Original file line number Diff line number Diff line change
@@ -1 +1 @@
126298
125230
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
120531
119508
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129403
128380
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
134204
133181
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut2Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
186306
185325
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut2Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
183201
182175
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
238448
237465
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
235367
234339
Loading
Loading