pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

chore: apply quote worker CommandFactory

Open chefilip opened this issue 7 months ago • 2 comments


PR-Codex overview

This PR focuses on restructuring the worker logic in the quote-worker directory.

Detailed summary

  • Moved types from quote-worker to quote-worker/types
  • Refactored commands into separate files
  • Created a CommandFactory to handle command creation
  • Updated command implementations for GetBestTrade and GetBestTradeOffchain
  • Added new MulticallChunkCommand for fetching chunks
  • Updated event handling logic in quote-worker.ts

The following files were skipped due to too many changes: apps/web/src/quote-worker.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

chefilip avatar Jul 19 '24 16:07 chefilip