cowprotocol / watch-tower

Conducting the music of Composable CoWs 🎶🐮
GNU General Public License v3.0
6 stars 2 forks source link

chore: multicall aggregation #130

Open mfw78 opened 8 months ago

mfw78 commented 8 months ago

Background

The number of calls that may be required for polling during a block may be large, and this can cause momentary flooding of upstream RPCs (especially if doing so in parallel).

Details

Many of these calls can actually be aggregated together in "mega calls" using Multicall3 so as to reduce call overhead.

Acceptance criteria

mfw78 commented 8 months ago

Look at using package: https://www.npmjs.com/package/ethers-multicall-provider