-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve(relayer): Limit HubPoolClient lookback (#1275)
The HubPoolClient now has logic to override the requested lookback for specific events if it has not previously been updated. This is the same logic that is implemented for the SpokePoolClients. As a result, it's now possible to be much more restrictive on the lookback for the HubPoolClient. The relayer can benefit from this be only querying RootBundle events for the past ~12 hours, which should be sufficient for the InventoryManager to determine repayment chains.
- Loading branch information
Showing
4 changed files
with
19 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ | |
"@openzeppelin/contracts" "4.1.0" | ||
"@uma/core" "^2.18.0" | ||
|
||
"@across-protocol/[email protected].10": | ||
version "0.22.10" | ||
resolved "https://registry.yarnpkg.com/@across-protocol/sdk-v2/-/sdk-v2-0.22.10.tgz#3cba4df6b0c29faf50b68b683f60ce9ed0f3ce92" | ||
integrity sha512-UlGEQrIGXUe0qRz3Cdtl+d2eyMu7sKlTrYUTRME+Ctv6ASo7P277oUPs9QQzpPaUViIWeO4Qh/dJi1wC+y06Rw== | ||
"@across-protocol/[email protected].11": | ||
version "0.22.11" | ||
resolved "https://registry.yarnpkg.com/@across-protocol/sdk-v2/-/sdk-v2-0.22.11.tgz#a6a83e6e0f232d22e37acfaa7a7d59a2c6639b2f" | ||
integrity sha512-e+L52wL81PYnjsK5UvAPzi8SSuI1BJpNL3rYSQ7TWgbr3ds0Iqefy8A6q+ZkjqeqEd6VFdmPU0IUdGtkycUz7A== | ||
dependencies: | ||
"@across-protocol/across-token" "^1.0.0" | ||
"@across-protocol/constants-v2" "^1.0.12" | ||
|