vector icon indicating copy to clipboard operation
vector copied to clipboard

[contracts] Investigate batched withdrawals

Open rhlsthrm opened this issue 4 years ago • 1 comments

This will greatly reduce router costs.

This is likely not possible with our current architecture.

Idea: Use ChannelFactory.sol to perform batch withdrawals.

  • Pass an array of withdrawal commitment data.
  • For each withdrawal commitment, check if the channel needs deployment, if so, deploy (possibly with deposit).
  • Submit withdrawal.

Need to check about the security ramifications of this.

rhlsthrm avatar Feb 04 '21 11:02 rhlsthrm

For now, let's table this and focus on https://github.com/connext/vector/issues/358 as it involves no contract changes

ArjunBhuptani avatar Feb 05 '21 19:02 ArjunBhuptani