BitGo / eth-multisig-v2

Multi-Sig Wallet v2, supporting original Wallet.sol methods with additional confirmAndExecute improvements to allow for single-transaction signing by multiple owners.
Apache License 2.0
271 stars 101 forks source link

feat(contracts): make v0 contracts similar to v1 #31

Closed mullapudipruthvik closed 1 year ago

mullapudipruthvik commented 1 year ago

Ticket: BG-62483 Earlier for recovery contracts we have enabled sending funds directly from v0 forwarder without having to flush however we cannot do the same with v1/v2 forwarder. Therefore to remain consistent we first flush the token/coin and then send from base address.

The GasUsage for wallet deployment is increased from 350k to 386k however for forwarder deployment there is no chance its still 89k

Changes:

  1. Added flushTokens in wallet contract
  2. Make changes to forwarder such that its very similar to v0 forwarder