Skip to content

Commit

Permalink
feat: Remove V3 logic in Dataworker (#1352)
Browse files Browse the repository at this point in the history
* feat: Remove V3 logic in Dataworker

Some changes to highlight that might need deeper review:
- Replaced all SlowFIllLeaf types with V3SlowFillLeaf. It might be preferable instead to change the upstream type SlowFillLeaf = V3SlowFillLeaf
- We still need to apply isV3 filters when getting fills and deposits from SpokePoolClients because they return union events. Changing these types might save us some compute by removing the typeguards

The motivation for this PR is removing dead code and cleaning up everything. Its a big diff but mostly subtraction!

* Update PoolRebalanceUtils.ts

* Update PoolRebalanceUtils.ts

* Delte fillMathUtils and change deposit type to V3 in updateRunningBalanceForDeposit

* Update package.json

* Update index.ts

* WIP

* wip

* fix

* Update PoolRebalanceUtils.ts

---------

Co-authored-by: Paul <[email protected]>
  • Loading branch information
nicholaspai and pxrl authored Mar 26, 2024
1 parent 548a8d0 commit 0cb2828
Show file tree
Hide file tree
Showing 19 changed files with 767 additions and 3,795 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "relayer-v2",
"version": "0.1.1",
"description": "Across Protocol V2 Relayer Bot",
"version": "0.2.0",
"description": "Across Protocol V3 Relayer Bot",
"repository": "[email protected]:across-protocol/relayer-v2.git",
"author": "UMA Team",
"license": "AGPL-3.0-only",
Expand Down
263 changes: 52 additions & 211 deletions src/clients/BundleDataClient.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 0cb2828

Please sign in to comment.