-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LM] Update arb l1 to l2 event matching logic (#1089)
Previously: - LiquidityManager's `LiquidityTransferred` events were matched to the Arbitrum native bridge's `DepositFinalized` events by sorting all events by block timestamp and assuming they would all come in order. However, it's technically possible for them to come out of order. For example: ``` Send: s1 s2 s3 s4 Finalized: f1 f2 f4 f3 ``` - In this case, we'd attempt to receive transfer 3 which would not yet be ready. This PR: - To get around this, we'll strictly check on the `amount` fields emitted in both events instead of relying on timestamp ordering - Does some refactoring to pull some test util functions into a common test utils file that can be accessed by both arb and op packages.
- Loading branch information
1 parent
dc8599f
commit 0519f29
Showing
6 changed files
with
383 additions
and
104 deletions.
There are no files selected for viewing
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.