Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve(relayer): Defer deposit version computation
getUnfilledDeposits() currently unconditionally computes the deposit version (i.e. the ConfigStore VERSION value applicable at the deposit quoteTimestamp), and then filters out all the deposits that have been filled. Determining the relevant version implies a lot of Array.find() calls, all of which is wasted when the object is subsequently discarded.
- Loading branch information