You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a breaking bug in TWAMM, where downstream code of beforeSwap is relocking with the PoolManager. With recent changes to PoolManager, relocking/nested locks will now revert.
The relock is not caught because we are not triggering beforeSwap (no swaps) in the tests.
Expected Behavior
Remove relocking behavior. Add a test to TWAMM.t.sol which triggers beforeSwap
Describe the bug
There's a breaking bug in TWAMM, where downstream code of beforeSwap is relocking with the PoolManager. With recent changes to PoolManager, relocking/nested locks will now revert.
The relock is not caught because we are not triggering beforeSwap (no swaps) in the tests.
Expected Behavior
Remove relocking behavior. Add a test to TWAMM.t.sol which triggers beforeSwap
To Reproduce
No response
Additional context
#100 (comment)
The text was updated successfully, but these errors were encountered: